.cr-book{--cr-ink:#142b30;--cr-teal:#146b62;color:var(--cr-ink);font-family:inherit;max-width:1100px;margin:24px auto;padding:0 12px}
.cr-book-header h2{margin:0;font-size:clamp(25px,3vw,34px);line-height:1.2}.cr-book-header p{color:#62777a;margin:8px 0 22px}
.cr-book-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0 24px}
.cr-book-stats>div{display:flex;flex-direction:column;background:#f0f6f3;border:1px solid #dae8e1;border-radius:14px;padding:16px;text-align:center}
.cr-book-stats strong{font-size:28px;line-height:1.2}.cr-book-stats span{font-size:13px;color:#526b69;margin-top:4px}
.cr-book-note{padding:11px 14px;border-left:3px solid #c99545;background:#fff7e8;font-size:14px}
.cr-book-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(205px,1fr));gap:16px}
.cr-book-card{border:1px solid #dce7e2;border-radius:15px;overflow:hidden;background:white;box-shadow:0 2px 7px rgba(10,40,34,.05)}
.cr-book-art{aspect-ratio:4/3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:linear-gradient(145deg,#e4efeb,#cbdad4);color:#426861;text-align:center;padding:16px}
.cr-book-art span{font-size:22px;letter-spacing:.08em;font-weight:750}.cr-book-art small{font-size:11px;color:#5f817b}
.cr-book-body{padding:14px}.cr-book-rarity{font-size:11px;letter-spacing:.08em;font-weight:700;color:var(--cr-teal)}
.cr-book-body h3{font-size:19px;line-height:1.25;margin:7px 0 4px}.cr-book-body p{font-size:14px;margin:0 0 7px}.cr-book-body small{color:#667b77}.cr-book-body details{margin-top:11px;font-size:12px}.cr-book-body summary{cursor:pointer;color:var(--cr-teal)}
.cr-book-body code{word-break:break-all;font-size:11px}.cr-book-empty{padding:30px;border:1px dashed #adc4b9;background:#f8faf9;border-radius:14px}
@media(max-width:450px){.cr-book-stats>div{padding:10px 5px}.cr-book-stats strong{font-size:23px}.cr-book-stats span{font-size:11px}}

.cr-book-art{overflow:hidden;padding:0;position:relative}
.cr-book-art:has(.cr-book-art-image){background:#edf2ee}
.cr-book-art-image{display:block;width:100%;height:100%;object-fit:contain;max-width:none;max-height:none}
.cr-catalog .cr-book-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}

.cr-book-filters{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0}.cr-book-filters label{display:flex;gap:7px;align-items:center}.cr-book-filters input,.cr-book-filters select{padding:7px;border-radius:6px}.cr-book-card[hidden]{display:none!important}

.cr-book {
    --cr-ink: #172f2c;
    --cr-teal: #226354;
    --cr-border: #d3dfd4;
    max-width: 1080px;
    margin: 24px auto;
    padding: 0 12px;
    color: var(--cr-ink);
}
.cr-book-header h2, .cr-book-hero h2 {
    margin: 0;
    font-size: clamp(28px, 5vw, 46px);
    line-height: 1.12;
}
.cr-book-header p, .cr-book-hero p { margin: 8px 0 0; color: #47665d; }
.cr-book-header { margin-bottom: 20px; }
.cr-book h3 { margin-top: 24px; }
.cr-book a:focus-visible, .cr-book summary:focus-visible { outline: 3px solid #aa5a23; outline-offset: 3px; }
.cr-book-note { padding: 9px 14px; border-left: 3px solid #bd7d3b; background: #fff3df; font-size: 14px; }
.cr-book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
    gap: 14px;
}
.cr-book .cr-book-card {
    display: block;
    overflow: hidden;
    border: 1px solid var(--cr-border);
    border-radius: 16px;
    background: #f9fbf5;
    color: var(--cr-ink);
    box-shadow: 0 3px 12px #172f2c0c;
}
.cr-book a.cr-book-entry { text-decoration: none; }
.cr-book a.cr-book-entry:hover { border-color: var(--cr-teal); }
.cr-book-art {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 58%, #557767, #1d3832);
    color: #e7eede;
}
.cr-book-art img { width: 100%; height: 100%; object-fit: contain; }
.cr-book-mark {
    display: grid;
    place-items: center;
    width: 1.7em;
    height: 1.7em;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: clamp(28px, 7vw, 52px);
}
.cr-book-locked .cr-book-art { background: #dce5da; color: #415b50; }
.cr-book-body { padding: 13px; overflow-wrap: anywhere; }
.cr-book-body h3, .cr-book-body h4 { margin: 0 0 7px; font-size: clamp(15px, 3.2vw, 20px); }
.cr-book-body strong { display: block; color: var(--cr-teal); font-size: 14px; }
.cr-book-body small { display: block; margin-top: 4px; color: #48665c; }
.cr-book-hero {
    display: grid;
    grid-template-columns: minmax(110px, 260px) 1fr;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border: 1px solid var(--cr-border);
    border-radius: 18px;
    background: #f0f5eb;
}
.cr-book-hero .cr-book-art { border-radius: 12px; }
.cr-book .cr-book-link, .cr-book-pages a { color: var(--cr-teal); font-weight: 650; }
.cr-book .cr-book-catches { margin: 0 0 16px; padding: 0; list-style: none; }
.cr-book-catches li { border-bottom: 1px solid var(--cr-border); }
.cr-book-catches summary { padding: 12px 0; cursor: pointer; }
.cr-book-catches summary span { display: inline-block; margin-left: .6em; color: #48665c; font-size: 14px; }
.cr-book-catches p { margin: 0 0 8px; overflow-wrap: anywhere; }
.cr-book-pages { display: flex; flex-wrap: wrap; gap: 14px; }
.cr-book-empty { padding: 18px; border: 1px dashed var(--cr-border); border-radius: 12px; }
@media (max-width: 540px) {
    .cr-book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .cr-book-hero { grid-template-columns: 1fr; }
    .cr-book-hero .cr-book-art { max-height: 210px; }
}

.cr-book-catches dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; }
.cr-book-catches dd { margin: 0; }
.cr-book-art:has(img) { background: #e6eee5; }
.cr-book .cr-book-no-results[hidden] { display: none; }

.cr-book:not(.cr-catalog) .cr-book-art:has(img) {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    box-sizing: border-box;
    padding: 6px;
    min-width: 0;
}
.cr-book:not(.cr-catalog) .cr-book-art img {
    display: block;
    position: static;
    width: 100%;
    height: 100%;
    min-height: 0;
    min-width: 0;
    object-fit: contain;
    object-position: center;
}

/* Keep text and its surface paired, including inside dark WordPress themes. */
.cr-book.cr-book { background: #fff; color: #152d29; padding: clamp(12px,3vw,24px); border-radius: 14px; color-scheme: light; }
.cr-book.cr-book :is(h2,h3,h4,p,label,summary,dt,dd,strong,span,small,code) { color: #152d29; opacity: 1; }
.cr-book.cr-book :is(.cr-book-art,.cr-book-art span,.cr-book-art small) { background-color: #203d36; color: white; }
.cr-book.cr-book .cr-book-body { background: white; color: #152d29; }
.cr-book.cr-book a:not(.cr-book-entry) { color: #095549; text-decoration: underline; }
.cr-book.cr-book :is(input,select,option,code) { background: #fff; color: #152d29; }
.cr-book.cr-book input::placeholder { color: #4c605b; opacity: 1; }
.cr-book.cr-book :is(input,select) { border: 1px solid #526a62; }
.cr-register { display: grid; gap: 1rem; }
.cr-register label { display: grid; gap: .3rem; }
.cr-register input { padding: .65rem; font: inherit; }
.cr-register button { background: #095549; color: white; padding: .75rem; border-radius: 6px; font: inherit; }

.cr-book .cr-walks { margin: 1rem 0; padding: 1rem; border: 1px solid #9eb9aa; border-radius: 12px; background: #f1f7f2; color: #152d29; }
.cr-book .cr-walks h3 { margin-top: 0; }
.cr-walks summary { cursor: pointer; padding: .6rem 0; font-weight: 700; }
.cr-walks li { padding: .35rem 0; overflow-wrap: anywhere; }
.cr-walks time { font-variant-numeric: tabular-nums; }
.cr-walks button { padding: .6rem 1rem; background: #095549; color: #fff; border: 0; border-radius: 6px; }

.cr-walk-thumb {width:72px;display:inline-block;vertical-align:middle;margin:4px 10px 4px 0}.cr-walk-thumb .cr-book-art {aspect-ratio:1}.cr-walk-thumb small {display:none}

.cr-book .cr-trip {background:#fff;color:#17382e;border:1px solid #bccfc5;border-radius:12px;margin:.75rem 0;overflow:hidden}
.cr-book .cr-trip summary {padding:.85rem;line-height:1.5}
.cr-trip summary small {display:block;color:#3e574d;font-weight:400}
.cr-trip-count {display:inline-block;border-radius:1em;background:#deefe5;color:#184533;padding:0 .6em;font-size:.85em}
.cr-book .cr-trip ul {list-style:none;margin:0;padding:0 .85rem}
.cr-book .cr-trip li {display:grid;grid-template-columns:64px minmax(0,1fr);align-items:center;gap:.75rem;padding:.65rem 0;border-top:1px solid #dbe5df}
.cr-trip .cr-walk-thumb {width:100%;margin:0}
.cr-trip .cr-walk-thumb img {width:100%;object-fit:contain}
.cr-trip li time,.cr-trip li strong {display:block;font-size:.85em}
.cr-trip li a {color:#095549;font-weight:700}
.cr-trip form,.cr-trip > p {margin:.75rem}

.cr-book a.cr-photo-card {display:grid;position:relative;isolation:isolate;align-content:end;aspect-ratio:3/4;overflow:hidden;border-radius:12px;background:#203d36}
.cr-book.cr-book .cr-photo-card > .cr-book-art {position:absolute;inset:0;width:100%;height:100%;padding:0;z-index:-1}
.cr-book.cr-book .cr-photo-card .cr-book-art img {object-fit:cover}
.cr-book.cr-book .cr-photo-card > .cr-book-body {padding:2rem .85rem .85rem;background:linear-gradient(transparent,rgba(0,0,0,.88) 2rem);color:white}
.cr-book.cr-book .cr-photo-card .cr-book-body :is(small,h3,strong,time) {color:white}
.cr-book .cr-trip ul {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,165px),1fr));gap:.7rem;padding:.75rem}
.cr-book .cr-trip li {display:block;padding:0;border:0}
.cr-book.cr-book .cr-trip a.cr-photo-card {text-decoration:none;color:white;font-weight:600}
.cr-photo-view {box-sizing:border-box;width:min(94vw,850px);max-height:95vh;padding:12px;border:0;border-radius:12px;background:#111c19;color:white}
.cr-photo-view::backdrop {background:rgba(0,0,0,.8)}
.cr-photo-view img {display:block;width:100%;height:66vh;object-fit:contain;margin:.5rem 0}
.cr-photo-view a {color:white;text-decoration:underline}
.cr-book a.cr-photo-card[hidden] {display:none}
