/* Wald, Erde und Abendlicht — restrained accents, consistent gallery. */
:root{--cream:#faf6ed;--forest:#294b3f;--copper:#94552c;--sage:#e0e9db;--sand:#eee3d0}
body{background:var(--cream)}
body>header{background:var(--cream);border-bottom-color:#c9cdbf}
.draft{background:var(--sand)}
.intro{background:var(--cream)}
.chronicle-map{background:var(--sage);border-top:3px solid var(--forest)}
.chapters{background:#f7f1e5}
.chapters>.section-head>.eyebrow,.time-comparisons>.eyebrow{color:var(--forest)}
.chapter-list>details{border-bottom-color:#bdc5b6}
.chapter-list>details>summary>span{color:var(--forest);font-weight:700;font-size:18px}
.chapter-list>details[open]>summary{box-shadow:inset 4px 0 var(--copper);padding-left:16px}
.chapter-list>details[open]{background:#fffcf6}
.chapter-list>details>summary h3{color:var(--forest)}
#main-nav a[aria-current=location]{color:var(--copper);text-decoration-color:var(--copper);text-underline-offset:8px}
.time-comparisons{background:#efe5d3}
.film-overview{background:var(--navy);color:var(--cream);border-top:4px solid #b97a4a}
.film-overview .eyebrow{color:#e8bb80}
.film-overview p,.film-overview .film-jump,.film-overview .film-jump h3{color:var(--cream)}
.film-overview .film-jump small,.film-overview .film-jump span{color:#d2e0e6}
.film-overview .film-jump{border-color:#71808c}
.film-overview a:focus-visible{outline-color:#efc38a}
.about{border-top:1px solid #71808c}
.gallery-more,.map-actions button{border-color:#677e6d}
.enlarge-hint{display:block;padding:11px 14px;background:var(--forest);color:white;text-align:center;font-size:16px;font-weight:600;line-height:1.4}
#cm-open,#selected-open{display:block;overflow:hidden;border-radius:3px}
#cm-open:focus-visible,#selected-open:focus-visible{outline:3px solid var(--copper);outline-offset:4px}
.photo-gallery{box-sizing:border-box;width:min(1500px,96vw);max-width:96vw;max-height:94vh;max-height:94dvh;padding:18px 24px;background:#091b27;color:#fff;border:1px solid #667883;border-radius:5px;overflow:auto}
.photo-gallery::backdrop{background:rgba(4,14,20,.94)}
.photo-gallery .gallery-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.photo-gallery .gallery-counter{margin:0;text-align:left;font-size:16px;line-height:1.5;color:#f6e8cf}
.photo-gallery button{font:inherit;min-height:44px;border:1px solid #a8b7bd;border-radius:3px;padding:9px 18px;color:white;background:#203b43;cursor:pointer}
.photo-gallery button:focus-visible{outline:3px solid #efc38a;outline-offset:3px}
.photo-gallery .gallery-close{flex-shrink:0;margin:0;background:transparent}
.photo-gallery .gallery-stage{display:flex;align-items:center;justify-content:center;min-height:140px;touch-action:pan-y pinch-zoom}
.photo-gallery .gallery-stage img{display:block;margin:auto;width:auto;height:auto;max-width:100%;max-height:65vh;max-height:65dvh;object-fit:contain}
.photo-gallery .gallery-caption{font-size:16px;line-height:1.5;margin:12px 0 4px;color:#dce5e9;text-align:center}
.photo-gallery .gallery-status{font-size:14px;line-height:1.4;text-align:center;margin:0;min-height:20px;color:#f6e8cf}
.photo-gallery .gallery-controls{display:flex;justify-content:space-between;gap:16px;margin-top:8px}
.photo-gallery button[aria-disabled=true]{opacity:.45;cursor:default}
@media(max-width:600px){.photo-gallery{padding:12px;width:96vw}.photo-gallery .gallery-top{align-items:flex-start;gap:8px}.photo-gallery .gallery-counter{font-size:14px}.photo-gallery .gallery-close{padding:8px 10px}.photo-gallery .gallery-stage img{max-height:56vh;max-height:56dvh}.photo-gallery .gallery-caption{font-size:14px}.photo-gallery .gallery-controls button{flex:1}.enlarge-hint{font-size:15px}}
@media(max-height:500px){.photo-gallery .gallery-stage img{max-height:42vh;max-height:42dvh}.photo-gallery{padding:10px}.photo-gallery .gallery-top{margin-bottom:4px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.chapter-list details>p.chapter-period{font-size:15px;font-weight:600;color:var(--forest);margin-bottom:20px}
