/* Theme layer loaded after style.css: monument hero, overture, quote, memorial lights,
   and page heads for the reading pages. Kept separate so style.css stays with the atlas work. */
:root{--bg:#000000;--night:#000000;--ridge:#181818}
body{background:var(--bg)}

/* Ornament: a real Shirvan rug border (late 19th c., The Met, CC0), cut into a seamless tile — replaces the drawn pattern */
:root{--rug:url("./assets/ornament-shirvan.webp")}
.ornament{height:32px;background:var(--rug) repeat-x left center/auto 100%;opacity:.8}
.ornament-thin{height:24px;opacity:.55}
.monument-numbers:before{height:28px;background:var(--rug) repeat-x left center/auto 100%;opacity:.85;top:-8px;mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);-webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.dialog-head:before{height:14px;background:var(--rug) repeat-x left center/auto 100%;opacity:.45}
.document-art:before,.document-art:after{height:14px;background:var(--rug) repeat-x left center/auto 100%;opacity:.5}
.flag-az{width:27px;height:auto;border-radius:2px;box-shadow:0 0 0 1px rgb(var(--hi) / .149);display:block}

/* Brand mark: the flag star, inset in an atlas ring. Only the star turns; the ring and the Z stay still. */
.mark-star{filter:drop-shadow(0 0 5px rgb(var(--brass-rgb) / .451))}
.mark-ring{opacity:.92}
.mark-ticks{opacity:.8}
@media(prefers-reduced-motion:reduce){.brand:hover .mark-star{transform:none}}
.foot-brand svg{fill:var(--brass);stroke:none}
/* Home: cards for the newer pages */
.path-heroes{--glow:rgb(var(--brass-2-rgb) / .188);--accent:var(--brass-2);--accent-line:var(--brass-line)}
.path-return{--glow:rgb(var(--green-rgb) / .196);--accent:var(--green);--accent-line:rgb(var(--green-rgb) / .333)}
.path-today{--glow:rgb(var(--blue-rgb) / .188);--accent:var(--peri);--accent-line:rgb(var(--blue-rgb) / .333)}
.path-places{--glow:rgb(var(--brass-rgb) / .18);--accent:var(--brass);--accent-line:var(--brass-line)}
/* Seven cards: the leftover one sits in the middle of the last row */
@media(min-width:961px){.paths .path:last-child:nth-of-type(3n+1){grid-column:2}}
.memorial-actions .ghost-button{display:inline-flex;align-items:center;gap:8px}
.memorial-actions .ghost-button .i{width:17px;height:17px;color:var(--brass)}

/* Chronicle: prologue and post-war cards */
.tag-era{color:var(--ink-2);border-color:var(--border-strong)!important;background:rgb(var(--hi) / .031)}
.era-card .dc-date b{color:var(--ink-2)}
.era-card .dc-body{background:transparent}
.rail-months{flex-wrap:wrap}

/* Icons: Lucide symbols from assets/icons.svg; stroke and colour come from here */
.i{width:1.15em;height:1.15em;flex-shrink:0;display:inline-block;vertical-align:-.2em;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;overflow:visible}
.i-fill{fill:currentColor;stroke-width:1.5}
.start-button .i{width:16px;height:16px;transition:transform .3s var(--ease)}
.start-button:hover .i{transform:translateX(3px)}
.path-go .i,.ch-go .i,.dc-atlas .i,.quote-link .i,.story-more .i{width:15px;height:15px;transition:transform .3s var(--ease)}
.path:hover .path-go .i,.chapter:hover .ch-go .i,.dc-atlas:hover .i,.quote-link:hover .i{transform:translateX(4px)}
.path-icon .i{width:22px;height:22px;stroke:var(--accent);stroke-width:1.6}
.ov-skip{display:inline-flex;align-items:center;gap:8px}.ov-skip .i{width:14px;height:14px}
#method-open{display:inline-flex;align-items:center;gap:8px}#method-open .i{width:15px;height:15px;color:var(--brass)}
.source-entry a .i{width:.85em;height:.85em;vertical-align:.02em;opacity:.7}
.search>.i.search-i{position:absolute;left:14px;top:50%;width:18px;height:18px;margin-top:-8px;color:var(--muted);pointer-events:none}
.tabbar .i,.more-sheet .i{width:21px;height:21px;stroke-width:1.6}
.more-sheet .i{color:var(--brass)}

/* Header: sticks and frosts once the page scrolls */
.page-home .header,.page-chronicle .header,.page-losses .header,.page-heroes .header,.page-return .header{position:sticky;top:0;z-index:30;max-width:none;transition:background-color .3s var(--ease),box-shadow .3s var(--ease),backdrop-filter .3s var(--ease)}
.page-home .header>*,.page-chronicle .header>*,.page-losses .header>*,.page-heroes .header>*,.page-return .header>*{position:relative}
.scrolled .header{background:#000000d9;backdrop-filter:blur(14px) saturate(1.3);-webkit-backdrop-filter:blur(14px) saturate(1.3);box-shadow:0 1px 0 rgb(var(--hi) / .071),0 20px 40px -30px rgb(0 0 0 / var(--shade))}
.page-chronicle .chron-tools{top:76px}
.page-chronicle .rail{top:164px}
.page-chronicle .day-card,.page-chronicle .month{scroll-margin-top:160px}
.foot-actions{display:flex;gap:16px;flex-wrap:wrap}
.foot-actions button{font-size:12px;font-weight:600;color:var(--ink-2)}

/* ===== Intro film (intro.js): eleven scenes, a story-style progress bar and controls ===== */
@property --ov-glow{syntax:'<color>';inherits:true;initial-value:#e2b45f26}
.overture{--ov-glow:rgb(var(--brass-rgb) / .149);position:fixed;inset:0;z-index:120;display:flex;flex-direction:column;color:var(--ink);background:var(--night);transition:opacity .8s var(--ease),visibility .8s var(--ease),--ov-glow 1.2s var(--ease)}
.overture[data-tone="pre"]{--ov-glow:rgb(var(--crimson-deep-rgb) / .302)}
.overture[data-tone="war"]{--ov-glow:rgb(var(--brass-rgb) / .141)}
.overture[data-tone="gold"]{--ov-glow:rgb(var(--brass-rgb) / .239)}
.overture[data-tone="loss"]{--ov-glow:rgb(var(--crimson-rgb) / .18)}
.overture[data-tone="green"]{--ov-glow:rgb(var(--green-rgb) / .2)}
.overture.out{opacity:0;visibility:hidden}
body.ov-on{overflow:hidden}
.ov-bar{position:absolute;top:18px;left:24px;right:24px;display:flex;gap:4px;z-index:2}
.ov-bar i{flex:1;height:3px;border-radius:2px;background:rgb(var(--hi) / .122);overflow:hidden}
.ov-bar b{display:block;height:100%;width:0;background:var(--brass-2)}
.ov-bar .past b{width:100%}
.ov-bar .now b{animation:ovfill var(--t) var(--ease) forwards}
.overture.paused .ov-bar .now b{animation-play-state:paused}
@keyframes ovfill{to{width:100%}}
.ov-stage{position:relative;flex:1;display:grid;place-items:center;padding:64px 24px 96px;cursor:pointer;overflow:hidden}
.ov-scene{grid-area:1/1;width:100%;max-width:900px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:16px;opacity:0;transform:translateY(16px);filter:blur(6px);transition:opacity .7s var(--ease),transform .9s var(--ease),filter .9s var(--ease);cursor:auto}
.ov-scene.on{opacity:1;transform:none;filter:none}
.ov-scene.out{opacity:0;transform:translateY(-12px);filter:blur(4px);transition-duration:.5s}
.ov-kicker{font-family:var(--mono);font-size:12px;letter-spacing:.22em;color:var(--brass)}
.ov-h{font-family:var(--serif);font-weight:600;font-size:clamp(36px,6.2vw,72px);line-height:1.04;letter-spacing:-.02em;margin:0}
.ov-h b{font-weight:400;color:var(--brass-2)}
.ov-h em{font-style:normal;font-weight:400;background:linear-gradient(100deg,var(--brass-2) 10%,var(--brass) 50%,var(--crimson) 110%);-webkit-background-clip:text;background-clip:text;color:transparent;padding-right:.08em}
.ov-p{font-size:clamp(14px,1.45vw,18px);line-height:1.6;color:var(--ink-2);max-width:640px;margin:0}
.ov-vis{margin-top:12px;width:100%;display:flex;flex-direction:column;align-items:center}
.ov-occ li,.ov-chips li,.ov-hand li,.ov-tiles li,.ov-un b{opacity:0;transform:translateY(8px);transition:opacity .6s var(--ease),transform .6s var(--ease);transition-delay:calc(.45s + var(--i) * .2s)}
.ov-scene.on :is(.ov-occ li,.ov-chips li,.ov-hand li,.ov-tiles li,.ov-un b){opacity:1;transform:none}
.ov-occ{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 24px;width:min(100%,700px);text-align:left}
.ov-occ li{display:flex;justify-content:space-between;align-items:baseline;gap:12px;border-bottom:1px solid rgb(var(--crimson-rgb) / .251);padding:8px 2px;font-size:14px}
.ov-occ b{font-weight:700}
.ov-occ span{font-family:var(--mono);font-size:12px;color:var(--rose);text-align:right}
.ov-un{display:flex;flex-wrap:wrap;justify-content:center;align-items:baseline;gap:12px 32px}
.ov-un b{font-family:var(--mono);font-weight:500;font-size:clamp(24px,3.4vw,36px);color:var(--rose)}
.ov-un small{flex-basis:100%;font-size:12px;letter-spacing:.06em;color:var(--muted)}
.ov-curve{width:min(100%,700px)}
.ov-num{font-family:var(--serif);font-weight:600;font-size:clamp(36px,5vw,60px);line-height:1;color:var(--brass-2);font-variant-numeric:tabular-nums}
.ov-unit{margin-left:8px;font-size:14px;color:var(--muted)}
.ov-curve svg{display:block;width:100%;height:auto;margin-top:12px;overflow:visible}
.ov-curve rect{fill:var(--brass);opacity:0;transition:opacity .4s var(--ease);transition-delay:calc(.3s + var(--i) * 45ms)}
.ov-scene.on .ov-curve rect{opacity:.5}
.ov-line{fill:none;stroke:var(--brass-2);stroke-width:2.5;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset 3.4s var(--ease) .3s}
.ov-scene.on .ov-line{stroke-dashoffset:0}
.ov-cease{stroke:var(--peri);stroke-dasharray:3 4;opacity:.6}
.ov-curve text{font-family:var(--mono);font-size:12px;fill:var(--faint);text-anchor:middle}
.ov-chips,.ov-hand{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;justify-content:center;gap:12px}
.ov-chips li,.ov-hand li{display:flex;flex-direction:column;align-items:center;gap:2px;padding:12px 16px;border:1px solid var(--brass-line);border-radius:16px;background:rgb(var(--brass-rgb) / .051);min-width:104px}
.ov-chips b,.ov-hand b{font-family:var(--serif);font-weight:600;font-size:20px}
.ov-chips span,.ov-hand span{font-family:var(--mono);font-size:12px;letter-spacing:.06em;color:var(--brass-2)}
.ov-hand li{min-width:150px;border-color:rgb(var(--teal-rgb) / .333);background:rgb(var(--teal-rgb) / .059)}
.ov-hand b{font-size:24px}
.ov-hand span{color:var(--teal)}
.ov-star{width:64px;height:64px;fill:none;stroke:var(--brass);stroke-width:1;animation:ovspin 40s linear infinite}
@keyframes ovspin{to{transform:rotate(360deg)}}
.ov-faces{display:grid;grid-template-columns:repeat(15,minmax(0,1fr));gap:4px;width:min(100%,780px)}
.ov-faces img{display:block;width:100%;height:auto;aspect-ratio:56/66;object-fit:cover;border-radius:4px;filter:grayscale(.55) sepia(.2);opacity:0;transform:scale(.94);transition:opacity 1s var(--ease),transform 1s var(--ease);transition-delay:var(--d)}
.ov-scene.on .ov-faces img{opacity:.9;transform:none}
.ov-tiles{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;width:min(100%,640px)}
.ov-tiles li{display:flex;flex-direction:column;align-items:center;gap:4px;padding:16px 12px;border:1px solid rgb(var(--green-rgb) / .267);border-radius:16px;background:rgb(var(--green-rgb) / .063)}
.ov-tiles .i{width:22px;height:22px;color:var(--green)}
.ov-tiles b{font-family:var(--serif);font-weight:600;font-size:24px}
.ov-tiles span{font-size:12px;line-height:1.35;color:var(--muted)}
.ov-final .ov-h{font-size:clamp(60px,10vw,128px)}
.ov-final .ov-vis{display:contents}
.ov-final .ov-star{order:-1}
.ov-cta{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:16px}
.ov-cta .start-button,.ov-cta .ghost-button{padding:12px 24px;font-size:14px}
.ov-cta .ghost-button{background:rgb(var(--hi) / .024)}
.ov-ctrl{position:absolute;left:24px;bottom:24px;z-index:2;display:flex;align-items:center;gap:8px}
.ov-ctrl button{width:40px;height:40px;border-radius:50%;border:1px solid var(--border-strong);background:rgb(var(--hi) / .024);color:var(--ink-2);display:grid;place-items:center}
.ov-ctrl button:hover:not(:disabled){border-color:var(--brass-line);color:var(--brass-2)}
.ov-ctrl .i{width:18px;height:18px}
.ov-count{margin-left:8px;font-family:var(--mono);font-size:12px;color:var(--faint)}
.ov-skip{position:absolute;right:24px;bottom:24px;z-index:2;font-size:12px;font-weight:600;color:var(--muted);padding:12px 16px;border:1px solid var(--border-strong);border-radius:999px}
.ov-skip:hover:not(:disabled){color:var(--ink);border-color:var(--brass-line)}
.intro-play{display:inline-flex;align-items:center;gap:8px}
.intro-play .i{width:18px;height:18px;color:var(--brass)}
.intro-play small{font-family:var(--mono);font-size:12px;font-weight:500;color:var(--muted)}
@media(max-width:760px){
  .ov-bar{top:12px;left:14px;right:14px;gap:4px}
  .ov-stage{padding:48px 16px 80px}
  .ov-scene{gap:12px}
  .ov-occ{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}
  .ov-occ li{font-size:12px;padding:8px 2px}
  .ov-faces{grid-template-columns:repeat(10,minmax(0,1fr));gap:4px}
  .ov-faces img:nth-child(n+41){display:none}
  .ov-tiles{gap:8px}.ov-tiles li{padding:12px 8px}.ov-tiles b{font-size:20px}
  .ov-chips li{min-width:0;padding:8px 12px}.ov-chips b{font-size:18px}
  .ov-hand li{min-width:0;flex:1}.ov-hand b{font-size:20px}
  .ov-ctrl{left:14px;bottom:calc(14px + env(safe-area-inset-bottom))}
  .ov-ctrl button{width:38px;height:38px}
  .ov-skip{right:14px;bottom:calc(14px + env(safe-area-inset-bottom))}
}
@media(prefers-reduced-motion:reduce){
  .overture *{transition-duration:.01s!important;transition-delay:0s!important}
  .ov-star{animation:none}
}

/* ===== Monument hero ===== */

.monument{position:relative;margin:0 calc(50% - 50vw);min-height:calc(100svh - 79px);display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden;isolation:isolate}
.monument-photo{position:absolute;inset:0;margin:0;z-index:-2}
.monument-photo img{width:100%;height:100%;object-fit:cover;object-position:50% 60%;filter:grayscale(.35) sepia(.35) saturate(.9) brightness(.42) contrast(1.12);transform-origin:60% 60%;animation:kenburns 26s var(--ease) both}
@keyframes kenburns{from{transform:scale(1.12)}}
.monument:before{content:'';position:absolute;inset:0;z-index:-1;background:#000000f0}
.monument-photo figcaption{position:absolute;right:var(--gutter);top:18px;font-size:12px;color:rgb(var(--hi) / .502);letter-spacing:.02em}
.monument-photo figcaption a{color:inherit;text-decoration:underline;text-decoration-color:rgb(var(--hi) / .251);text-underline-offset:3px}
.ridges{position:absolute;left:0;right:0;bottom:0;width:100%;height:clamp(140px,22vh,260px);z-index:-1;pointer-events:none}
.ridges .r1{fill:#13141f;opacity:.55}.ridges .r2{fill:#0e0f17;opacity:.82}.ridges .r3{fill:var(--bg)}
.monument-inner{position:relative;width:100%;max-width:1600px;margin:0 auto;padding:clamp(64px,12vh,96px) var(--gutter) 0}
.monument-inner .eyebrow{display:flex;align-items:center;gap:12px}
.monument h1{font-size:clamp(48px,7.6vw,96px);font-weight:400;line-height:.98;margin:24px 0 0;text-shadow:0 10px 60px rgb(0 0 0 / calc(.533 * var(--shade)))}
.monument h1 em{font-weight:400}
.monument-inner>p{color:var(--ink-2);font-size:clamp(16px,1.3vw,18px);margin:24px 0 0;max-width:560px;text-shadow:0 2px 20px rgb(0 0 0 / var(--shade))}
.monument .hero-actions{margin-top:32px}
.monument-numbers{position:relative;width:100%;max-width:1600px;margin:clamp(40px,8vh,96px) auto 0;padding:24px var(--gutter) clamp(32px,5vh,48px);display:grid;grid-template-columns:repeat(4,1fr);gap:0}
.monument-numbers:before{content:'';position:absolute;left:var(--gutter);right:var(--gutter)}
.monument-numbers div{display:flex;flex-direction:column;padding:16px 24px 0 0}
.monument-numbers div+div{padding-left:24px;border-left:1px solid rgb(var(--hi) / .078)}
.monument-numbers dd{margin:0;font-family:var(--serif);font-weight:600;font-size:clamp(36px,4.6vw,72px);line-height:1;color:var(--brass-2);font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.monument-numbers div:nth-child(3) dd{color:var(--ink)}
.monument-numbers div:nth-child(4) dd{color:var(--rose)}
.monument-numbers dt{font-size:14px;font-weight:600;color:var(--ink-2);margin-top:8px}
.monument-numbers dt small{display:block;font-family:var(--mono);font-size:12px;font-weight:400;color:var(--faint);margin-top:4px}
.scroll-cue{position:absolute;left:50%;bottom:16px;width:24px;height:38px;margin-left:-12px;border:1.5px solid rgb(var(--hi) / .251);border-radius:16px}
.scroll-cue span{position:absolute;left:50%;top:8px;width:3px;height:7px;margin-left:-2px;border-radius:2px;background:var(--brass-2);animation:cue 2s ease-in-out infinite}
@keyframes cue{60%{transform:translateY(12px);opacity:0}61%{transform:none;opacity:0}}

/* ===== Quote ===== */
.quote{position:relative;text-align:center;padding:clamp(80px,14vh,96px) 0 clamp(64px,12vh,96px);display:flex;flex-direction:column;align-items:center}
.quote:before,.quote:after{content:'';position:absolute;left:50%;width:1px;height:clamp(40px,8vh,80px);background:transparent}
.quote:before{top:0}.quote:after{bottom:0;transform:rotate(180deg)}
.quote-star{width:46px;height:46px;fill:none;stroke:var(--brass);stroke-width:1.1;animation:spin 40s linear infinite;transform-origin:center}
.quote blockquote{margin:24px 0 0}
.quote blockquote p{margin:0;font-family:var(--serif);font-weight:600;font-size:clamp(36px,7vw,96px);line-height:1;letter-spacing:-.025em}
.quote blockquote p:before{content:'“';color:var(--brass);margin-right:.04em}
.quote blockquote p:after{content:'”';color:var(--brass);margin-left:.02em}
.quote blockquote em{font-style:normal;font-weight:400;background:linear-gradient(100deg,var(--brass-2),var(--brass) 60%,var(--crimson) 130%);-webkit-background-clip:text;background-clip:text;color:transparent;padding-right:.06em}
.quote-cite{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;font-family:var(--mono);font-size:12px;color:var(--muted);margin:24px 0 0}
.quote-cite .src-chips{margin:0}
.quote-link{margin-top:16px;font-size:12px;font-weight:700;color:var(--brass-2);display:inline-flex;gap:8px}
.quote-link span{transition:transform .3s var(--ease)}.quote-link:hover span{transform:translateX(4px)}

/* ===== Memorial ===== */
.memorial{position:relative;padding:clamp(64px,12vh,96px) 0 40px;margin:40px calc(50% - 50vw) 0;background:transparent;display:flex;flex-direction:column;align-items:center}
.memorial-head{text-align:center;max-width:960px;padding:0 var(--gutter)}
.memorial-head h2{font-family:var(--serif);font-weight:600;font-size:clamp(36px,5vw,72px);line-height:1.04;letter-spacing:-.02em;margin:12px 0 0}
.memorial-head h2 em{font-style:normal;color:var(--brass-2)}
.memorial-head p{color:var(--muted);font-size:16px;margin:16px auto 0;max-width:600px}
.lights{display:block;margin:48px auto 0;max-width:calc(100% - 2*var(--gutter))}
.memorial-foot{width:100%;max-width:1200px;padding:0 var(--gutter);margin-top:32px;display:flex;align-items:flex-end;justify-content:space-between;gap:32px;flex-wrap:wrap}
.memorial-numbers{display:flex;gap:40px;margin:0}
.memorial-numbers div{display:flex;flex-direction:column}
.memorial-numbers dt{font-size:12px;color:var(--muted);order:2;margin-top:8px}
.memorial-numbers dd{margin:0;font-family:var(--serif);font-weight:600;font-size:clamp(36px,5vw,60px);line-height:1;color:var(--brass-2)}
.memorial-numbers .crim dd{color:var(--rose)}
.memorial-numbers small{order:3;display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-family:var(--mono);font-size:12px;color:var(--faint);margin-top:8px}
.memorial-numbers small .src-chips{margin:0}
.memorial-actions{display:flex;gap:12px;flex-wrap:wrap}

/* ===== Reading pages: page head on a ridge horizon ===== */
.page-chronicle .page-head,.page-losses .page-head,.page-heroes .page-head,.page-return .page-head{padding-bottom:64px}
.page-chronicle .page-head:after,.page-losses .page-head:after,.page-heroes .page-head:after,.page-return .page-head:after{content:'';position:absolute;left:calc(var(--gutter) * -1);right:calc(var(--gutter) * -1);bottom:0;height:90px;pointer-events:none;z-index:-1;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0 52L120 30L230 44L360 16L470 38L600 10L720 34L850 18L980 42L1100 20L1230 40L1340 26L1440 44V90H0Z' fill='%23e2b45f' fill-opacity='.05'/%3E%3Cpath d='M0 70L150 54L300 66L460 48L620 64L780 50L940 68L1100 52L1260 66L1440 56V90H0Z' fill='%23e2b45f' fill-opacity='.06'/%3E%3C/svg%3E") center bottom/100% 100% no-repeat}
.page-head h1{font-weight:400}
.page-head h1 em{font-weight:400}

/* ===== Tab bar "Daha" and its sheet (phones only; the header nav covers wider screens) ===== */
.more-sheet{display:none}
@media(max-width:760px){
  .tabbar{grid-template-columns:repeat(5,1fr)!important}
  .tab-more{display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 2px 8px;border-radius:12px;font-size:12px;font-weight:600;color:var(--muted)}
  .tab-more.on,.tab-more[aria-expanded="true"]{color:var(--brass-2);background:rgb(var(--brass-rgb) / .11)}
  .more-sheet{display:flex;flex-direction:column;gap:2px;position:fixed;left:10px;right:10px;bottom:calc(84px + env(safe-area-inset-bottom));z-index:36;padding:8px;border-radius:16px;border:1px solid var(--border-strong);background:rgb(var(--surface-rgb) / .961);backdrop-filter:blur(16px) saturate(1.4);-webkit-backdrop-filter:blur(16px) saturate(1.4);box-shadow:0 24px 50px -16px rgb(0 0 0 / var(--shade));animation:pop .3s var(--ease)}
  .more-sheet[hidden]{display:none!important}
  .more-sheet a,.more-sheet button{display:flex;align-items:center;gap:16px;padding:12px 16px;border-radius:12px;font-size:14px;font-weight:600;color:var(--ink-2);text-align:left}
  .more-sheet a[aria-current="page"]{color:var(--brass-2);background:rgb(var(--brass-rgb) / .11)}
  .more-sheet a:hover,.more-sheet button:hover:not(:disabled){background:rgb(var(--hi) / .039);color:var(--ink)}
  .more-sheet button+button{border-top:1px solid var(--border);border-radius:0 0 12px 12px}
  .more-sheet a+button{margin-top:4px;border-top:1px solid var(--border);border-radius:0}
}
.site-nav .nav-item{white-space:nowrap}
@media(max-width:1480px){
  .site-nav .nav-item{padding:8px 12px}
}
@media(max-width:1100px) and (min-width:761px){
  .brand small{display:none}
  .header{gap:16px}
}
@media(max-width:980px) and (min-width:761px){
  .brand-text{display:none}
}
@media(max-width:1180px){
  .site-nav{gap:2px!important}
  .site-nav .nav-item{padding:8px 12px;font-size:12px}
  .silence-button span{display:none}
  .silence-button{padding:8px}
}
@media(max-width:760px){
  .page-chronicle .chron-tools{top:64px}
  .monument{min-height:calc(100svh - 67px)}
  .monument-inner{padding-top:48px}
  .monument h1{font-size:36px}
  .monument-inner>p{margin-top:16px}
  .monument .hero-actions{margin-top:24px}
  .monument:before{background:#000000cc}
  .monument-numbers{grid-template-columns:1fr 1fr;row-gap:16px;margin-top:40px}
  .monument-numbers div:nth-child(3){padding-left:0;border-left:0}
  .monument-numbers dd{font-size:36px}
  .monument-photo figcaption{top:auto;bottom:6px;right:12px;font-size:12px}
  .scroll-cue{display:none}
  .quote blockquote p{font-size:36px}
  .memorial-numbers{gap:24px}
  .memorial-foot{flex-direction:column;align-items:stretch}
  .memorial-actions>*{flex:1;justify-content:center}
}
@media(prefers-reduced-motion:reduce){
  .monument-photo img{animation:none}
}

/* ===== Device coverage: small phones, tablets in portrait, desktop scrollbars ===== */
/* The full-bleed home sections use 100vw, which includes a classic desktop scrollbar: clip the sideways overflow
   (clip, not hidden, so the sticky header and tools keep working). */
body{overflow-x:clip}
/* Tablets in portrait (761–900px): the nav pills tighten so the row still fits. */
@media(max-width:900px) and (min-width:761px){
  .header{gap:12px}
  .site-nav .nav-item{padding:8px 8px;font-size:12px}
}
/* Small phones (≤380px): the brand subtitle gives way so the header stays on one line. */
@media(max-width:380px){
  .brand small{display:none}
  .brand{gap:12px}
  .header{gap:8px}
}
/* Filter pills scroll sideways instead of pushing the page wider. */
.hero-filters{max-width:100%;overflow-x:auto;scrollbar-width:none}
.hero-filters::-webkit-scrollbar{display:none}
.hero-filters button{flex-shrink:0;white-space:nowrap}
@media(max-width:760px){
  .hero-filters{flex-wrap:wrap;overflow:visible}
}
.ev-head{flex-wrap:wrap}
/* Chronology on phones: a 1fr column would grow to its widest card; minmax(0,1fr) keeps it to the screen. */
@media(max-width:960px){.chron-layout{grid-template-columns:minmax(0,1fr)}}
/* Long lists: the browser skips layout and paint for cards that are off screen (the chronology is ~40 000 px tall). */
.day-card{content-visibility:auto;contain-intrinsic-size:auto 360px}
.pl-list>li{content-visibility:auto;contain-intrinsic-size:auto 58px}
/* Short laptop screens (1366×768 and similar): the atlas fits without scrolling; the key-moment row gives way first,
   the ruler still reaches every step. */
@media(min-width:961px) and (max-height:760px){
  .page-atlas .atlas-shell{min-height:480px}
  .page-atlas .ruler-hint{display:none}
}
@media(min-width:961px) and (max-height:700px){
  .page-atlas .moments{display:none}
}
/* Phones in landscape (short screens): an icon-only tab bar, a map that fits the screen, a tighter intro film. */
@media(max-height:500px) and (orientation:landscape){
  .tabbar{padding:4px;bottom:calc(6px + env(safe-area-inset-bottom))}
  .tabbar a,.tab-more{padding:8px 2px;gap:0}
  .tabbar span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .more-sheet{bottom:calc(56px + env(safe-area-inset-bottom));max-height:calc(100svh - 72px);overflow-y:auto}
  body{padding-bottom:calc(58px + env(safe-area-inset-bottom))}
  .map-frame{min-height:max(260px,calc(100svh - 120px))}
  .ov-bar{top:8px}
  .ov-stage{padding:32px 16px 64px}
  .ov-scene{gap:8px}
  .ov-h{font-size:clamp(24px,8vh,36px)}
  .ov-final .ov-h{font-size:48px}
  .ov-p{font-size:12px;line-height:1.45}
  .ov-vis{margin-top:4px}
  .ov-occ li{padding:4px 2px;font-size:12px}
  .ov-un b{font-size:24px}
  .ov-num{font-size:30px}
  .ov-curve svg{max-height:110px}
  .ov-faces{width:min(100%,520px)}
  .ov-faces img:nth-child(n+31){display:none}
  .ov-star{width:44px;height:44px}
  .ov-ctrl,.ov-skip{bottom:calc(10px + env(safe-area-inset-bottom))}
  .ov-ctrl button{width:34px;height:34px}
}

/* ===== Design system (elayadesign redesign skill, full design values) =====
   One typeface (Manrope; Geist Mono for numbers and data), no italics, weights up to bold, flat neutral surfaces from
   the approved dark set (#000, #181818, #1F1F1F, #272727, #313131), one accent (brass), a white→grey gradient on page
   headings only, one motion curve. Map and chart colours stay: they encode data, not decoration. */
:root{--bg:#000000;--bg-2:#181818;--surface:#181818;--panel:#1f1f1f;--raised:#272727;--night:#000000;--ridge:#181818;
 --ink:#ededed;--ink-2:#c4c4c4;--muted:#9b9b9b;--faint:#6e6e6e;--border:#ffffff28;--border-strong:#ffffff42;
 --serif:'Manrope',system-ui,sans-serif;--mono:'Geist Mono',ui-monospace,monospace;--ease:cubic-bezier(.22,1,.36,1);--radius:16px}
/* Theme tokens for the colours that used to be written out: the dark values here, the light ones in light.css.
   --hi tints surfaces on hover (white on dark, ink on light); --shade scales every black shadow. */
:root{--hi:255 255 255;--shade:1;--head-a:#ffffff;--head-b:#9b9b9b;--surface-rgb:24 24 24;--panel-rgb:31 31 31;--ink-rgb:245 239 227;
 --brass-rgb:226 180 95;--brass-2-rgb:243 211 154;--brass-deep:#a57d3b;--crimson-rgb:208 65 95;--crimson-deep-rgb:142 42 92;
 --teal-rgb:79 193 198;--green-rgb:104 176 122;--blue-rgb:111 134 255;--peri:#a9b8ff;--peri-rgb:169 184 255;
 --sky:#b8c4ff;--sky-2:#9fb0ff;--sky-2-rgb:159 176 255;--lilac:#c3b2ff;--lilac-rgb:195 178 255;
 --rose:#ff8fa6;--rose-2:#ffc2cf;--rose-3:#ff6f8c;--rose-hatch:#ff7d97;--mint:#8fd6a0;--mint-2:#a8e0b5;--plum:#d38bb0;--plum-2:#c76a99;
 --trans-hatch:#d6d2e6;--peace-deep:#3d4a8f;--trans-deep:#5d5a6c}
/* Page headings: Heading 1 is text-6xl at most, Heading 2 text-5xl; semibold; the gradient sits on the text only. */
h1,.page-head h1{font-size:clamp(36px,5vw,60px);line-height:1}
.monument h1{font-size:clamp(40px,6vw,60px);line-height:1}
.section-head h2{font-size:clamp(30px,3.6vw,48px);line-height:1.1}
:is(h1,.section-head h2,.ov-h,.quote blockquote p){font-family:var(--font);font-weight:600;letter-spacing:-.025em;
 background:linear-gradient(90deg,var(--head-a),var(--head-b));-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
:is(h1,.section-head h2,.ov-h,.quote blockquote p) em{background:none;color:inherit;-webkit-text-fill-color:inherit;padding-right:0}
em,i,cite{font-style:normal}
:is(h2,h3,h4,strong,b) em{color:var(--muted)}
.monument h1,.monument-inner>p,.page-head h1,.page-head>p{max-width:680px}
h1,h2,h3,h4,.ov-h{text-wrap:balance}
p,li,dd,figcaption{text-wrap:pretty}
/* Flat surfaces: decorative overlays and glows are gone; the photo keeps a flat scrim for legible text. */
.map-vignette,.page-atlas .map-vignette,.path:before,.photo:after{display:none}
.monument:before{background:#00000099}
.story,.page-atlas .story{background:var(--surface)}
.page-atlas .story-actions{background:var(--surface)}
/* States on every control: hover already shifts colour; pressed scales down, focus shows a ring. */
:where(button,a.start-button,a.ghost-button,.nav-item,.path,.chapter,.page-toc a,.pl-row,.tp-item,.chip,.filter,.legend-toggle,.m-tabs button):active:not(:disabled):not(.lb-nav){transform:scale(.98)}
:where(a,button,input,select,summary,[tabindex]):focus-visible{outline:2px solid var(--brass);outline-offset:2px}
/* Loading: a pulsing skeleton bar instead of a spinner dot (opacity only). */
.loading-dot{width:48px;height:8px;border-radius:4px;background:var(--raised);animation:skeleton 1.2s var(--ease) infinite alternate}
@keyframes skeleton{from{opacity:.35}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.loading-dot{animation:none;opacity:.7}}
/* Gradient headings paint only inside their own box, and at line-height 1 the tails of ş ç ğ g y (and Cyrillic д у р)
   and the marks on İ Ö Ü Й Ё fall outside it. Room above and below, given back by the margins, so nothing moves. */
:is(h1,.section-head h2,.ov-h,.quote blockquote p){padding-block:.14em .22em;margin-bottom:-.22em}
h1{margin-top:calc(16px - .14em)}
.section-head h2,.page-head h1{margin-top:calc(12px - .14em)}
.monument h1{margin-top:calc(24px - .14em)}
.ov-h,.quote blockquote p{margin-top:-.14em}
