/* ==========================================================================
   微光島 · Lumen Island — Taiwan Child Maltreatment Atlas
   Editorial design system: night archive → paper daylight
   ========================================================================== */

@font-face {
  font-family: "Noto Serif TC";
  src: url("../fonts/NotoSerifTC-subset.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --ink: #07090b;
  --ink-2: #0a0e11;
  --ink-3: #10161a;
  --bone: #ede8dc;
  --bone-2: #c8c3b6;
  --muted: #949da0;
  --faint: #7d888c;
  --line: rgba(237, 232, 220, 0.14);
  --line-2: rgba(237, 232, 220, 0.07);
  --amber: #f0b25b;
  --amber-2: #c98a3c;
  --ember: #d75c3a;
  --patina: #7fa99c;
  --paper: #f2ede2;
  --paper-2: #e9e2d3;
  --paper-ink: #14120e;
  --paper-muted: #5d574c;
  --paper-line: rgba(20, 18, 14, 0.16);
  --paper-line-2: rgba(20, 18, 14, 0.08);
  --rust: #8c3b24;

  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", "STSong", serif;
  --sans: "PingFang TC", "Noto Sans TC", "Hiragino Sans GB", "Microsoft JhengHei", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "IBM Plex Mono", Menlo, Consolas, monospace;

  --pad: clamp(20px, 4.6vw, 68px);
  --maxw: 1320px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --nav-h: 68px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html { overflow-x: clip; }
body {
  margin: 0;
  max-width: 100%;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-weight: 350;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, h5, p, dl, dd, figure, blockquote, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
input[type="range"] { font: inherit; }
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: -80px; z-index: 999;
  background: var(--bone); color: var(--ink); padding: 12px 18px;
  font-size: 13px; border-radius: 2px; transition: top 0.2s;
}
.skip:focus { top: 16px; }

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ---------- atmosphere ---------- */
.grain {
  position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: 0.05;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120;
  background: transparent; pointer-events: none;
}
.progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--amber-2), var(--amber));
}


/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}
.nav--paper { border-bottom-color: rgba(20, 18, 14, 0.12); }
.nav.nav--paper.is-scrolled { background: rgba(242, 237, 226, 0.9); }
.nav--paper .brand__zh { color: var(--paper-ink); }
.nav--paper .brand__en { color: #6b6459; border-left-color: rgba(20, 18, 14, 0.18); }
.nav--paper .nav__links a { color: rgba(20, 18, 14, 0.68); }
.nav--paper .nav__links a:hover, .nav--paper .nav__links a.is-active { color: var(--paper-ink); }
.nav--paper .nav__hotline { border-color: rgba(20, 18, 14, 0.2); }
.nav--paper .nav__hotline:hover { background: rgba(20, 18, 14, 0.05); border-color: rgba(20, 18, 14, 0.45); }
.nav--paper .nav__hotline-txt { color: var(--paper-ink); }
.nav--paper .nav__hotline-num { color: var(--rust); }
.nav--paper .brand__dot { background: var(--rust); box-shadow: 0 0 12px rgba(140, 59, 36, 0.45); }
.nav.is-scrolled {
  background: rgba(7, 9, 11, 0.72);
  border-bottom-color: var(--line-2);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
}
.nav__inner {
  height: 100%; width: min(100% - 2 * var(--pad), 1440px); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 12px 2px rgba(240, 178, 91, 0.55);
  flex: none;
}
.brand__zh { font-family: var(--serif); font-weight: 700; font-size: 17px; letter-spacing: 0.14em; }
.brand__en {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--faint);
  border-left: 1px solid var(--line); padding-left: 12px; margin-left: 4px;
}
.nav__links { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); }
.nav__links a {
  position: relative; font-size: 12.5px; letter-spacing: 0.1em; color: var(--muted);
  padding: 6px 0; transition: color 0.25s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 3px; height: 3px;
  border-radius: 50%; background: var(--amber); transform: translateX(-50%) scale(0);
  transition: transform 0.25s var(--ease);
}
.nav__links a:hover { color: var(--bone); }
.nav__links a.is-active { color: var(--bone); }
.nav__links a.is-active::after { transform: translateX(-50%) scale(1); }
.nav__hotline {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 15px 7px 13px; transition: border-color 0.3s, background 0.3s;
}
.nav__hotline:hover { border-color: rgba(240, 178, 91, 0.55); background: rgba(240, 178, 91, 0.07); }
.nav__hotline-num { font-family: var(--mono); font-size: 12px; color: var(--amber); letter-spacing: 0.05em; }
.nav__hotline-txt { font-size: 11px; letter-spacing: 0.08em; color: var(--bone-2); }

/* ---------- shell / chapters ---------- */
main section[id] { scroll-margin-top: calc(var(--nav-h) + 14px); }
main:focus { outline: none; }
.shell { width: min(100% - 2 * var(--pad), var(--maxw)); margin-inline: auto; }
.chapter { position: relative; padding-block: clamp(88px, 11vw, 170px); }
.chapter__head { position: relative; }
.chapter__index {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--faint);
}
.chapter__index span { color: var(--amber); }
.chapter__index::after { content: ""; width: 54px; height: 1px; background: var(--line); }
.chapter__title {
  margin: 22px 0 26px;
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(38px, 5.2vw, 82px);
  line-height: 1.14; letter-spacing: 0.005em;
  text-wrap: balance;
}
.chapter__lead {
  max-width: 47ch; font-size: clamp(15px, 1.15vw, 17px);
  line-height: 2; color: var(--bone-2); font-weight: 320;
}
.body-copy {
  max-width: 46ch; font-size: 15px; line-height: 2.05;
  color: var(--muted); font-weight: 350;
}
.body-copy strong, .chapter__lead strong { color: var(--bone); font-weight: 600; }
.kicker {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 14px;
}
.kicker__line { width: 38px; height: 1px; background: var(--amber); display: inline-block; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 2px; border: 1px solid transparent;
  font-size: 13px; letter-spacing: 0.08em; line-height: 1;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
}
.btn svg { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-1px); }
.btn--solid { background: var(--bone); color: var(--ink); }
.btn--solid:hover { background: var(--amber); }
.btn--ghost { border-color: var(--line); color: var(--bone-2); }
.btn--ghost:hover { border-color: var(--bone); color: var(--bone); }
.btn--sm { padding: 9px 16px; font-size: 11.5px; }
.btn--ink { background: var(--paper-ink); color: var(--paper); }
.btn--ink:hover { background: var(--rust); }
.btn--line { border-color: var(--paper-line); color: var(--paper-ink); }
.btn--line:hover { background: rgba(20, 18, 14, 0.06); }

/* ---------- reveal ---------- */
.reveal { transition: opacity 0.95s var(--ease), transform 0.95s var(--ease); }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.1s; }
.reveal.d3 { transition-delay: 0.12s; }
.reveal.d4 { transition-delay: 0.2s; }
html.js .reveal { opacity: 0; transform: translateY(26px); }
html.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; min-height: 100svh;
  padding-top: calc(var(--nav-h) + clamp(20px, 3.4vh, 48px));
  padding-bottom: 22px;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(52% 46% at 76% 34%, rgba(240, 178, 91, 0.11), transparent 70%),
    radial-gradient(40% 40% at 12% 82%, rgba(127, 169, 156, 0.07), transparent 70%),
    radial-gradient(90% 70% at 50% 0%, rgba(20, 30, 34, 0.6), transparent 70%);
}
.hero__grid {
  position: relative; z-index: 2;
  width: min(100% - 2 * var(--pad), 1440px); margin-inline: auto;
  display: grid; grid-template-columns: 1.02fr 0.98fr; align-items: center;
  gap: clamp(24px, 4vw, 72px);
  flex: 1;
}
.hero__copy { padding-top: 1vh; }
.hero__kicker { color: var(--bone-2); }
.hero__title {
  margin: 26px 0 10px;
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(78px, 11.2vw, 188px);
  line-height: 0.9; letter-spacing: 0.015em;
  display: flex;
}
.hero__title-a { color: var(--bone); }
.hero__title-b {
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(237, 232, 220, 0.82);
  text-stroke: 1.4px rgba(237, 232, 220, 0.82);
  margin-left: 0.02em;
}
.hero__en {
  font-family: var(--mono); font-size: clamp(9px, 0.9vw, 11px);
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--faint);
  margin-top: 18px;
}
.hero__en-i { color: var(--amber); font-style: normal; }
.hero__lead {
  margin-top: 30px; max-width: 38ch;
  font-size: clamp(15px, 1.18vw, 17.5px); line-height: 2.05;
  color: var(--bone-2); font-weight: 320;
}
.hero__lead strong { color: var(--bone); font-weight: 500; }
.hero__cta { display: flex; gap: 12px; margin-top: 38px; flex-wrap: wrap; }
.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(30px, 4.4vh, 56px); border-top: 1px solid var(--line);
}
.hero__stat { padding: 20px 18px 0 0; }
.hero__stat + .hero__stat { border-left: 1px solid var(--line-2); padding-left: 18px; }
.hero__stat dt {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--faint);
}
.hero__stat dd {
  margin-top: 10px; font-family: var(--serif); font-weight: 600;
  font-size: clamp(22px, 2.2vw, 32px); line-height: 1; letter-spacing: -0.01em;
}
.hero__stat-sub { display: block; margin-top: 9px; font-size: 10.5px; color: var(--faint); letter-spacing: 0.03em; font-weight: 350; }
.num--accent { color: var(--amber); }
.pct { font-family: var(--serif); font-size: 0.55em; color: var(--amber); vertical-align: 0.28em; }

.hero__map {
  position: relative; align-self: stretch;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  min-height: 0; padding: 10px 0 30px;
}
.map-plate { width: 100%; }
.map-plate--full { aspect-ratio: 1000 / 1740; }
.map-plate--hero { max-width: 640px; margin-inline: auto; display: flex; justify-content: center; }
.map-plate--hero svg { height: min(74vh, 760px); width: auto; max-width: 100%; }
.map-plate--hero .county__label,
.map-plate--hero .inset-label,
.map-plate--hero .map-grat-label,
.map-plate--hero .map-scale-text,
.map-plate--hero .map-scale-line { display: none; }
.map-plate svg { width: 100%; height: auto; overflow: visible; animation: mapIn 0.9s var(--ease) both; }
@keyframes mapIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .map-plate svg { animation: none; } }
.hero__map-meta {
  display: flex; gap: 22px; margin-top: 6px;
  font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.24em; color: var(--faint);
}
.hero__map-note {
  margin-top: 8px; font-size: 10px; color: var(--faint); letter-spacing: 0.06em;
}
.hero__foot {
  position: relative; z-index: 2;
  width: min(100% - 2 * var(--pad), 1440px); margin: 0 auto;
  padding-top: 20px; border-top: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.hero__notice {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; color: var(--faint); letter-spacing: 0.02em;
}
.hero__notice-dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--ember);
  box-shadow: 0 0 10px rgba(215, 92, 58, 0.8); flex: none;
}
.hero__notice a { color: var(--bone-2); border-bottom: 1px solid var(--line); }
.hero__notice a:hover { color: var(--amber); border-color: var(--amber); }
.scroll-cue { display: flex; align-items: center; gap: 12px; }
.scroll-cue__line {
  width: 1px; height: 34px; background: linear-gradient(180deg, transparent, var(--amber));
  position: relative; overflow: hidden;
}
.scroll-cue__line::after {
  content: ""; position: absolute; left: -1px; top: -100%; width: 3px; height: 60%;
  background: var(--amber); animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue { 0% { top: -60%; } 60%, 100% { top: 110%; } }
.scroll-cue__txt {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.3em;
  color: var(--faint); text-transform: uppercase; writing-mode: vertical-rl;
}

/* ---------- hero entrance ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.hero__copy > * { animation: rise 1s var(--ease) both; }
.hero__copy > .hero__kicker { animation-delay: 0.05s; }
.hero__copy > .hero__title { animation-delay: 0.12s; }
.hero__copy > .hero__en { animation-delay: 0.2s; }
.hero__copy > .hero__lead { animation-delay: 0.28s; }
.hero__copy > .hero__cta { animation-delay: 0.36s; }
.hero__copy > .hero__stats { animation-delay: 0.44s; }
.hero__map { animation: fade 1.4s var(--ease) both 0.15s; }
.hero__foot { animation: fade 1.2s var(--ease) both 0.5s; }
@media (prefers-reduced-motion: reduce) {
  .hero__copy > *, .hero__map, .hero__foot { animation: none; }
}

/* ---------- map svg internals ---------- */
.map-sea { opacity: 0.9; }
.map-sea-line { fill: none; stroke: rgba(127, 169, 156, 0.3); stroke-width: 0.7; }
.map-grat-line { stroke: rgba(237, 232, 220, 0.055); stroke-width: 0.5; stroke-dasharray: 2 6; }
.map-grat-label {
  fill: rgba(237, 232, 220, 0.22); font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.12em;
}
.county {
  stroke: rgba(237, 232, 220, 0.14); stroke-width: 0.8;
  transition: fill 0.7s var(--ease), stroke 0.25s, stroke-width 0.25s, opacity 0.35s;
  cursor: pointer;
}
.county:hover {
  stroke: #fff8ec; stroke-width: 2; outline: none;
}
.county:focus-visible {
  stroke: #ffffff; stroke-width: 3; outline: none;
  filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 10px rgba(255, 255, 255, 0.95));
}
.county.is-active {
  stroke: #fff4df; stroke-width: 1.9;
  filter: drop-shadow(0 0 14px rgba(240, 178, 91, 0.55));
}
.county.is-region-dim { opacity: 0.28; }
.county__label {
  font-family: var(--sans); font-size: 18px; font-weight: 500;
  fill: rgba(240, 236, 226, 0.86); letter-spacing: 0.04em;
  text-anchor: middle; pointer-events: none;
  paint-order: stroke; stroke: rgba(7, 9, 11, 0.75); stroke-width: 3px;
  transition: opacity 0.3s;
}
.county__label.is-active { fill: #fff; font-weight: 700; }
.county__label.is-region-dim { opacity: 0.32; }
.county__dot { fill: rgba(240, 178, 91, 0.9); pointer-events: none; }
.inset-box {
  fill: rgba(237, 232, 220, 0.018); stroke: rgba(237, 232, 220, 0.14);
  stroke-width: 0.7; stroke-dasharray: 2 5;
}
.inset-label {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
  fill: rgba(237, 232, 220, 0.6);
}
.map-scale-line { stroke: rgba(237, 232, 220, 0.4); stroke-width: 0.9; }
.map-scale-text {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  fill: rgba(237, 232, 220, 0.64);
}
.map-scan { opacity: 0; }
.map-plate--hero .map-scan { opacity: 1; animation: scan 7.5s linear infinite 1.6s; }
@keyframes scan {
  0% { transform: translateX(-360px); opacity: 0; }
  12% { opacity: 0.85; }
  88% { opacity: 0.85; }
  100% { transform: translateX(1180px); opacity: 0; }
}
.map-frame-ticks line { stroke: rgba(237, 232, 220, 0.25); stroke-width: 0.8; }
.map-frame-ticks text {
  font-family: var(--mono); font-size: 8px; fill: rgba(237, 232, 220, 0.3);
  letter-spacing: 0.1em;
}

/* ==========================================================================
   01 COUNT
   ========================================================================== */
.count-grid {
  display: grid; grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(40px, 6vw, 96px); margin-top: clamp(48px, 6vw, 80px);
  align-items: start;
}
.count-figure {
  display: flex; align-items: baseline; gap: 18px;
  border-bottom: 1px solid var(--line); padding-bottom: 20px;
}
.count-figure__num {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(54px, 8.4vw, 126px); line-height: 0.94; letter-spacing: -0.025em;
  background: linear-gradient(175deg, #fff6e6 8%, #f0c98f 55%, #c98a3c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.count-figure__unit { font-size: 13px; color: var(--faint); letter-spacing: 0.1em; }
.count-figure__note {
  margin-top: 16px; font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint);
}
.count-main .body-copy { margin-top: 26px; }

.derived { border-top: 1px solid var(--line); }
.derived__item {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline;
  gap: 6px 16px; padding: 20px 0; border-bottom: 1px solid var(--line-2);
}
.derived__label {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--faint);
}
.derived__value {
  font-family: var(--serif); font-weight: 600; font-size: 30px;
  line-height: 1; color: var(--bone); text-align: right;
}
.derived__value small { font-size: 12px; color: var(--faint); font-weight: 400; margin: 0 2px 0 4px; }
.derived__desc { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }

.pullquote {
  margin-top: clamp(64px, 8vw, 110px);
  padding-left: clamp(20px, 3vw, 36px);
  border-left: 1px solid var(--amber);
}
.pullquote p:first-child {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(20px, 2.5vw, 33px); line-height: 1.75; color: var(--bone-2);
  max-width: 30ch;
}
.pullquote p:first-child strong { color: var(--bone); font-weight: 700; }
.pullquote__cite {
  margin-top: 22px; font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.14em; color: var(--faint);
}
.pullquote--wide { margin-top: clamp(56px, 7vw, 96px); }
.pullquote--wide p:first-child { max-width: 40ch; }

/* ==========================================================================
   02 MAP
   ========================================================================== */
.map-layout {
  display: grid; grid-template-columns: 344px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 68px); margin-top: clamp(40px, 5vw, 64px);
  align-items: start;
}
.map-panel { position: sticky; top: calc(var(--nav-h) + 28px); }
.seg { display: flex; border: 1px solid var(--line); }
.seg__btn {
  flex: 1; padding: 11px 6px; font-size: 12px; letter-spacing: 0.06em;
  color: var(--muted); transition: background 0.25s, color 0.25s;
}
.seg__btn + .seg__btn { border-left: 1px solid var(--line); }
.seg__btn:hover { color: var(--bone); background: rgba(237, 232, 220, 0.03); }
.seg__btn.is-active { background: var(--bone); color: var(--ink); }

.year { margin-top: 26px; }
.year__top { display: flex; align-items: baseline; justify-content: space-between; }
.year__label {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--faint);
}
.year__value {
  font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.year__control { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.icon-btn {
  width: 32px; height: 32px; flex: none; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; color: var(--bone-2);
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.icon-btn:hover { border-color: var(--amber); color: var(--amber); }
.icon-btn svg { width: 14px; height: 14px; }
.icon-btn .icon-pause { display: none; }
.icon-btn[aria-pressed="true"] .icon-play { display: none; }
.icon-btn[aria-pressed="true"] .icon-pause { display: block; }
.range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 22px;
  background: transparent; cursor: pointer;
}
.range::-webkit-slider-runnable-track {
  height: 1px; background: linear-gradient(90deg, var(--amber-2) 0%, var(--amber) 100%);
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%;
  background: var(--bone); border: 2px solid var(--ink);
  box-shadow: 0 0 0 1px var(--amber-2), 0 0 14px rgba(240, 178, 91, 0.7);
  margin-top: -6px;
}
.range::-moz-range-track { height: 1px; background: var(--amber-2); }
.range::-moz-range-thumb {
  width: 13px; height: 13px; border-radius: 50%; background: var(--bone);
  border: 2px solid var(--ink); box-shadow: 0 0 0 1px var(--amber-2);
}
.year__ticks {
  display: flex; justify-content: space-between; margin-top: 2px;
  font-family: var(--mono); font-size: 8.5px; color: var(--faint); letter-spacing: 0.04em;
}

.county-card { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 24px; }
.county-card__eyebrow {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--amber);
}
.county-card__name {
  margin-top: 10px; font-family: var(--serif); font-weight: 700;
  font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1;
}
.county-card__en {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--faint); margin-top: 4px;
}
.county-card__value { display: flex; align-items: baseline; gap: 8px; margin-top: 18px; }
.county-card__value .num {
  font-family: var(--serif); font-weight: 600; font-size: clamp(36px, 3.6vw, 46px);
  line-height: 1; letter-spacing: -0.02em; color: var(--bone);
}
.county-card__unit { font-size: 12px; color: var(--faint); }
.county-card__delta {
  margin-top: 8px; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.06em; color: var(--muted);
}
.delta-up { color: var(--amber); }
.delta-down { color: var(--patina); }
.spark { height: 54px; margin-top: 18px; }
.county-card__mini {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 18px; border-top: 1px solid var(--line-2);
}
.county-card__mini div { padding-top: 10px; }
.county-card__mini div + div { border-left: 1px solid var(--line-2); padding-left: 12px; }
.county-card__mini dt {
  font-family: var(--mono); font-size: 8px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--faint);
}
.county-card__mini dd { margin-top: 4px; font-size: 13px; color: var(--bone-2); font-variant-numeric: tabular-nums; }
.county-card__share { margin-top: 6px; font-size: 10.5px; color: var(--faint); letter-spacing: 0.04em; min-height: 1em; }
.county-card__hint { margin-top: 16px; font-size: 11px; color: var(--faint); line-height: 1.7; }

.legend { margin-top: 30px; }
.legend__head, .legend__foot {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 8px; letter-spacing: 0.14em; color: var(--faint);
}
.legend__bar {
  height: 6px; margin: 7px 0;
  background: linear-gradient(90deg, #131a1d 0%, #2c2418 25%, #6b4520 50%, #b06f2b 76%, #f0b25b 100%);
}
.print-note { display: none; }
.map-panel__note {
  margin-top: 18px; font-size: 10.5px; line-height: 1.7; color: var(--faint);
}

.map-stage { position: relative; }
.map-frame {
  position: relative; padding: clamp(10px, 1.4vw, 20px);
  border: 1px solid var(--line);
  background:
    radial-gradient(58% 42% at 52% 38%, rgba(240, 178, 91, 0.055), transparent 70%),
    linear-gradient(180deg, #0a0e11 0%, #070a0c 100%);
}
.map-corner {
  position: absolute; width: 13px; height: 13px; pointer-events: none;
  border-color: rgba(240, 178, 91, 0.75); border-style: solid;
}
.map-corner--tl { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.map-corner--tr { top: -1px; right: -1px; border-width: 1px 1px 0 0; }
.map-corner--bl { bottom: -1px; left: -1px; border-width: 0 0 1px 1px; }
.map-corner--br { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }
.map-tooltip {
  position: absolute; z-index: 6; pointer-events: none;
  padding: 8px 12px; border: 1px solid rgba(240, 178, 91, 0.45);
  background: rgba(10, 14, 16, 0.94);
  font-size: 12px; letter-spacing: 0.03em; color: var(--bone);
  opacity: 0; transform: translate(-50%, -130%);
  transition: opacity 0.15s; white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.map-tooltip.is-on { opacity: 1; }
.map-tooltip b { font-family: var(--serif); font-weight: 600; margin-left: 8px; color: var(--amber); }
.map-readout {
  display: none; pointer-events: none; position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 5;
  background: rgba(10, 14, 16, 0.92); border: 1px solid rgba(240, 178, 91, 0.32);
  padding: 12px 14px; align-items: baseline; justify-content: space-between; gap: 12px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.map-readout__name { font-family: var(--serif); font-size: 17px; font-weight: 600; }
.map-readout__val { font-family: var(--serif); font-size: 20px; color: var(--amber); font-variant-numeric: tabular-nums; }
.map-readout__sub { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.08em; color: var(--faint); display: block; margin-top: 2px; }
@media (max-width: 980px) { .map-readout.is-on { display: flex; } }
.map-stage__caption {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 13px; font-family: var(--mono); font-size: 8.5px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint);
}

.rank-block { margin-top: clamp(64px, 8vw, 104px); }
.rank-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.rank-title { font-family: var(--serif); font-weight: 700; font-size: clamp(22px, 2.2vw, 30px); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 11px; letter-spacing: 0.05em; color: var(--muted);
  transition: all 0.25s;
}
.chip:hover { color: var(--bone); border-color: rgba(237, 232, 220, 0.35); }
.chip.is-active { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.rank-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-top: 22px;
  border-top: 1px solid var(--line); padding-top: 16px;
}
.rank-dl {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; letter-spacing: 0.06em; color: var(--bone-2);
  border-bottom: 1px solid var(--line); padding-bottom: 3px;
  transition: color 0.25s, border-color 0.25s;
}
.rank-dl svg { width: 14px; height: 14px; }
.rank-dl:hover { color: var(--amber); border-color: rgba(240, 178, 91, 0.5); }
.rank-foot__note { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.1em; color: var(--faint); }
.rank-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(28px, 4vw, 64px); margin-top: 26px;
}
.rank-row {
  position: relative;
  display: grid; grid-template-columns: 26px 108px minmax(0, 1fr) 62px;
  align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--line-2);
  transition: background 0.25s;
}
.rank-row__hit {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: none; border: 0; cursor: pointer; z-index: 2;
}
.rank-row__hit:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.rank-row > span { pointer-events: none; }
.rank-row:hover { background: rgba(237, 232, 220, 0.022); }
.rank-row__idx { font-family: var(--mono); font-size: 9px; color: var(--faint); }
.rank-row__name { font-size: 13px; color: var(--bone-2); transition: color 0.2s; }
.rank-row:hover .rank-row__name { color: var(--bone); }
.rank-row__track { height: 4px; background: rgba(237, 232, 220, 0.055); position: relative; overflow: hidden; }
.rank-row__bar {
  position: absolute; inset: 0 auto 0 0; width: 0;
  background: linear-gradient(90deg, var(--amber-2), var(--amber));
  transition: width 1s var(--ease);
}
.rank-row__val {
  text-align: right; font-family: var(--serif); font-size: 14px;
  color: var(--bone); font-variant-numeric: tabular-nums;
}
.rank-row.is-dimmed .rank-row__name,
.rank-row.is-dimmed .rank-row__val { color: var(--faint); }
.rank-row.is-dimmed .rank-row__idx { opacity: 0.55; }
.rank-row.is-dimmed .rank-row__bar { opacity: 0.32; }
.rank-row.is-active { background: rgba(240, 178, 91, 0.06); }
.rank-row.is-active .rank-row__name { color: var(--amber); }
.rank-row.is-active .rank-row__bar { box-shadow: 0 0 14px rgba(240, 178, 91, 0.5); }
.rank-row.is-hover { background: rgba(240, 178, 91, 0.04); }
.county.is-hover { stroke: rgba(255, 244, 223, 0.9); stroke-width: 1.4; }
.data-table tbody tr.is-active { background: rgba(140, 59, 36, 0.08); }

/* ==========================================================================
   03 SHAPE
   ========================================================================== */
.shape-grid {
  display: grid; grid-template-columns: 1.38fr 0.62fr;
  gap: clamp(40px, 5vw, 88px); margin-top: clamp(44px, 5vw, 68px);
  align-items: start;
}
.stack { display: flex; gap: 2px; height: 9px; margin-bottom: clamp(30px, 4vw, 48px); }
.stack__seg { height: 100%; width: 0; transition: width 1.1s var(--ease); }
.type-list { border-top: 1px solid var(--line); }
.type-row {
  display: grid; grid-template-columns: 1fr auto;
  gap: 4px 20px; padding: 19px 0;
  border-bottom: 1px solid var(--line-2);
  cursor: default;
}
.type-row__head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.type-row__name { font-family: var(--serif); font-weight: 600; font-size: clamp(17px, 1.7vw, 22px); }
.type-row__en {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--faint);
}
.type-row__val {
  font-family: var(--serif); font-size: clamp(19px, 1.9vw, 25px);
  color: var(--bone); font-variant-numeric: tabular-nums; text-align: right;
}
.type-row__pct {
  grid-column: 2; text-align: right; font-family: var(--mono);
  font-size: 10px; color: var(--muted); letter-spacing: 0.06em;
}
.type-row__track {
  grid-column: 1 / -1; height: 2px; margin-top: 10px;
  background: rgba(237, 232, 220, 0.06); position: relative;
}
.type-row__bar {
  position: absolute; inset: 0 auto 0 0; width: 0;
  transition: width 1.1s var(--ease); background: var(--c, var(--amber));
}
.type-row.is-hot .type-row__name { color: var(--ember); }

.shape-aside {
  border-top: 1px solid var(--line); padding-top: 26px;
  position: sticky; top: calc(var(--nav-h) + 28px);
}
.shape-aside__kicker {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.26em;
  color: var(--ember); text-transform: uppercase;
}
.shape-aside__big {
  font-family: var(--serif); font-weight: 600; font-size: clamp(52px, 5.4vw, 74px);
  line-height: 1; margin-top: 12px; letter-spacing: -0.02em;
}
.shape-aside__big .num { color: var(--bone); }
.shape-aside__title {
  margin-top: 18px; font-family: var(--serif); font-weight: 600;
  font-size: clamp(18px, 1.7vw, 22px); line-height: 1.6; color: var(--bone);
}
.shape-aside .body-copy { margin-top: 18px; }
.gender-split { margin-top: 26px; }
.gender-split__bar { display: flex; gap: 2px; height: 7px; }
.gender-split__f, .gender-split__m { display: block; height: 100%; }
.gender-split__f { width: 85.5%; }
.gender-split__m { width: 14.5%; }
.gender-split__f { background: var(--ember); }
.gender-split__m { background: var(--patina); }
.gender-split__legend {
  display: flex; gap: 18px; margin-top: 10px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; color: var(--muted);
}
.gender-split__legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dot--f { background: var(--ember); }
.dot--m { background: var(--patina); }

/* ==========================================================================
   04 AGE
   ========================================================================== */
.age-wrap {
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line); padding-top: 28px;
}
.age-head {
  display: grid; grid-template-columns: 1fr 96px 1fr;
  font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--faint); text-align: center;
}
.age-head span:first-child { text-align: right; }
.age-head span:last-child { text-align: left; }
.age-chart { margin-top: 6px; }
.age-row {
  display: grid; grid-template-columns: 1fr 96px 1fr;
  align-items: center; min-height: 48px;
}
.age-row__side { display: flex; align-items: center; height: 20px; padding-right: 36px; }
.age-row__side--m { padding-right: 0; padding-left: 36px; }
.age-row__side--m { justify-content: flex-end; }
.age-row__bar {
  height: 16px; width: 0; transition: width 1.05s var(--ease);
  position: relative; display: flex; align-items: center;
}
.age-row__bar--m { background: linear-gradient(90deg, rgba(127, 169, 156, 0.28), rgba(127, 169, 156, 0.9)); }
.age-row__bar--f { background: linear-gradient(90deg, rgba(240, 178, 91, 0.9), rgba(240, 178, 91, 0.3)); }
.age-row__bar span {
  position: absolute; font-family: var(--mono); font-size: 10px;
  color: var(--bone-2); white-space: nowrap;
}
.age-row__bar span { opacity: 0; transition: opacity 0.5s 0.5s; }
.age-chart.is-drawn .age-row__bar span { opacity: 1; }
.age-row__bar--m span { left: -8px; transform: translateX(-100%); }
.age-row__bar--f span { right: -8px; transform: translateX(100%); }
.age-row__label {
  text-align: center; font-family: var(--serif); font-weight: 600;
  font-size: 16px; color: var(--bone-2); font-variant-numeric: tabular-nums;
}
.age-row__label small { display: block; font-family: var(--mono); font-size: 8px; font-weight: 400; color: var(--faint); letter-spacing: 0.1em; margin-top: 2px; }
.age-axis {
  display: grid; grid-template-columns: 1fr 96px 1fr;
  margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line-2);
}
.age-axis__side { display: flex; justify-content: space-between; gap: 8px; }
.age-axis__side--m { padding-left: 36px; }
.age-axis__side--f { padding-right: 36px; }
.age-axis__side span, .age-axis__mid {
  font-family: var(--mono); font-size: 8.5px; color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.age-axis__mid { text-align: center; }

.age-notes {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px); margin-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--line); padding-top: 30px;
}
.age-notes li { display: grid; gap: 12px; }
.age-notes__num {
  font-family: var(--serif); font-size: clamp(32px, 3.2vw, 44px);
  font-weight: 600; color: var(--amber); line-height: 1;
}
.age-notes__num small { font-size: 0.45em; color: var(--faint); margin-left: 2px; }
.age-notes p { font-size: 13px; line-height: 1.95; color: var(--muted); }
.age-notes strong { color: var(--bone-2); font-weight: 600; }

/* ==========================================================================
   05 WITNESS
   ========================================================================== */
.witness-grid {
  display: grid; grid-template-columns: 1.34fr 0.66fr;
  gap: clamp(40px, 5vw, 88px); margin-top: clamp(44px, 5vw, 68px);
  align-items: start;
}
.source-list { border-top: 1px solid var(--line); }
.source-row {
  display: grid; grid-template-columns: 1fr auto;
  gap: 6px 20px; padding: 17px 0; border-bottom: 1px solid var(--line-2);
}
.source-row__head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.source-row__name { font-size: 15px; color: var(--bone); }
.source-row__en { font-family: var(--mono); font-size: 8px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.source-row__val { font-family: var(--serif); font-size: 18px; font-variant-numeric: tabular-nums; text-align: right; }
.source-row__pct { grid-column: 2; text-align: right; font-family: var(--mono); font-size: 9.5px; color: var(--muted); }
.source-row__track { grid-column: 1 / -1; height: 3px; background: rgba(237, 232, 220, 0.055); margin-top: 8px; }
.source-row__bar { height: 100%; width: 0; background: var(--c, var(--amber)); transition: width 1.1s var(--ease); }
.witness-aside { border-top: 1px solid var(--line); padding-top: 26px; }
.witness-aside__big {
  font-family: var(--serif); font-weight: 600; font-size: clamp(44px, 4.4vw, 62px);
  line-height: 1; letter-spacing: -0.02em;
}
.witness-aside__big .num { color: var(--patina); }
.witness-aside__title {
  margin-top: 16px; font-family: var(--serif); font-weight: 600;
  font-size: clamp(17px, 1.6vw, 21px); line-height: 1.65;
}
.witness-aside .body-copy { margin-top: 16px; }
.general-list { margin-top: 24px; border-top: 1px solid var(--line-2); }
.general-list li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 9px 0; border-bottom: 1px solid var(--line-2);
  font-size: 12px; color: var(--muted);
}
.general-list b { font-family: var(--serif); font-weight: 600; color: var(--bone-2); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   06 CURVE
   ========================================================================== */
.curve {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(237, 232, 220, 0.018), transparent 60%);
  padding: 22px 22px 10px;
}
.curve__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 8px; }
.curve__title {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted);
}
.curve__delta { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--amber); }
.curve__delta--down { color: var(--patina); }
.chart { width: 100%; height: 220px; }
.chart--lg { height: 306px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.curve-pair {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 22px; margin-top: 22px;
}
.chart-axis line { stroke: rgba(237, 232, 220, 0.13); stroke-width: 0.7; }
.chart-axis text {
  font-family: var(--mono); font-size: 9.5px; fill: rgba(237, 232, 220, 0.64);
  letter-spacing: 0.06em;
}
.chart-line { fill: none; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.chart-dot { fill: var(--ink); stroke-width: 1.6; transition: r 0.2s; }
.chart-hover-line { stroke: rgba(240, 178, 91, 0.55); stroke-width: 0.9; stroke-dasharray: 2 3; opacity: 0; }
.chart-hover-dot { opacity: 0; }
.chart-tip {
  position: absolute; z-index: 8; pointer-events: none;
  background: rgba(10, 14, 16, 0.95); border: 1px solid rgba(240, 178, 91, 0.4);
  padding: 7px 11px; font-family: var(--mono); font-size: 10px;
  color: var(--bone); letter-spacing: 0.06em; opacity: 0; transition: opacity 0.15s;
  transform: translate(-50%, -140%); white-space: nowrap;
}
.chart-wrap { position: relative; }
.reading {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 44px); margin-top: clamp(48px, 6vw, 76px);
  border-top: 1px solid var(--line); padding-top: 28px;
}
.reading li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.reading__n {
  font-family: var(--mono); font-size: 9px; color: var(--amber);
  border: 1px solid rgba(240, 178, 91, 0.35); border-radius: 50%;
  width: 22px; height: 22px; display: grid; place-items: center; flex: none;
}
.reading p { font-size: 12.5px; line-height: 1.95; color: var(--muted); }
.reading strong { display: block; color: var(--bone-2); font-weight: 600; margin-bottom: 4px; }

/* ==========================================================================
   PAPER THEME (07 NIGHT / 08 ACT / 09 METHOD)
   ========================================================================== */
.theme-paper {
  background: var(--paper);
  color: var(--paper-ink);
  position: relative;
}
.theme-paper::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 40% at 82% 8%, rgba(140, 59, 36, 0.05), transparent 65%),
    radial-gradient(50% 40% at 8% 92%, rgba(47, 74, 68, 0.06), transparent 65%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 30%);
}
.theme-paper .shell { position: relative; z-index: 2; }
.theme-paper .chapter__index { color: var(--paper-muted); }
.theme-paper .chapter__index span { color: var(--rust); }
.theme-paper .chapter__index::after { background: var(--paper-line); }
.theme-paper .chapter__lead { color: #4a443a; }
.theme-paper .chapter__lead strong { color: var(--paper-ink); }
.theme-paper .body-copy { color: #4f4a40; }
.theme-paper .kicker { color: var(--paper-muted); }

.chapter--night {
  padding-bottom: clamp(80px, 10vw, 140px);
  border-top: 1px solid rgba(240, 178, 91, 0.28);
}
.stories { margin-top: clamp(48px, 6vw, 76px); display: grid; gap: clamp(56px, 7vw, 96px); }
.story {
  max-width: 700px; border-top: 1px solid var(--paper-line); padding-top: 26px;
}
.story--offset { margin-left: auto; max-width: 620px; }
.story__meta {
  display: flex; gap: 20px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--paper-muted);
}
.story__no { color: var(--rust); }
.story__quote {
  margin: 22px 0 24px;
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(27px, 3.4vw, 46px); line-height: 1.4; letter-spacing: 0.01em;
  color: var(--paper-ink); text-wrap: balance;
}
.story__text { font-size: 15px; line-height: 2.15; color: #3f3a31; max-width: 58ch; }
.story__foot {
  margin-top: 18px; font-size: 11.5px; color: var(--paper-muted);
  font-family: var(--mono); letter-spacing: 0.04em;
}
.story__foot::before { content: "— "; }
.stories__end {
  margin: clamp(88px, 11vw, 150px) auto 0; max-width: 22ch; text-align: center;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(25px, 3.1vw, 44px); line-height: 1.85; color: #2c2820;
}
.stories__end strong { font-weight: 900; color: var(--rust); }
.stories__note {
  margin-top: 30px; text-align: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--paper-muted);
}
.stories__note a { color: var(--rust); border-bottom: 1px solid rgba(140, 59, 36, 0.4); }

/* act */
.act-grid {
  display: grid; grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(18px, 2.4vw, 28px); margin-top: clamp(44px, 5vw, 64px);
  align-items: stretch;
}
.help-card {
  background: var(--paper-ink); color: var(--paper);
  padding: clamp(26px, 3.4vw, 44px); position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.help-card::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
  border-radius: 50%; background: radial-gradient(circle, rgba(240, 178, 91, 0.16), transparent 68%);
  pointer-events: none;
}
.help-card__label {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.24em;
  text-transform: uppercase; color: rgba(242, 237, 226, 0.62);
}
.help-card__title { font-family: var(--serif); font-size: 20px; margin-top: 8px; letter-spacing: 0.08em; }
.help-card__num {
  display: block; font-family: var(--serif); font-weight: 600;
  font-size: clamp(96px, 12vw, 168px); line-height: 0.94; letter-spacing: -0.03em;
  color: var(--amber); margin: 10px 0 6px;
  transition: color 0.3s;
}
.help-card__num:hover { color: #ffd79a; }
.help-card__desc {
  font-size: 13.5px; line-height: 1.95; color: rgba(242, 237, 226, 0.68);
  max-width: 38ch; margin-top: 10px;
}
.help-card__actions { display: flex; gap: 10px; margin-top: auto; padding-top: 28px; flex-wrap: wrap; }
.help-card .btn--line { border-color: rgba(242, 237, 226, 0.25); color: var(--paper); }
.help-card .btn--line:hover { background: rgba(242, 237, 226, 0.08); }
.help-card .btn--ink { background: var(--amber); color: var(--ink); }
.help-card .btn--ink:hover { background: #ffd79a; }

.hotlines { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 1.6vw, 18px); }
.hotline {
  border: 1px solid var(--paper-line); padding: 18px;
  display: flex; align-items: center; gap: 16px;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.hotline:hover { background: rgba(20, 18, 14, 0.035); border-color: rgba(20, 18, 14, 0.3); transform: translateY(-2px); }
.hotline__num {
  font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.05;
  min-width: 74px; color: var(--paper-ink); letter-spacing: -0.01em;
}
.hotline__body { display: grid; gap: 3px; }
.hotline__body strong { font-size: 12.5px; font-weight: 600; }
.hotline__body small { font-size: 10.5px; color: var(--paper-muted); line-height: 1.5; }

.act-columns {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px); margin-top: clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--paper-line); padding-top: 34px;
}
.act-col__title {
  font-family: var(--serif); font-weight: 600; font-size: clamp(20px, 2vw, 25px);
  display: flex; align-items: baseline; gap: 12px;
}
.act-col__title span {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  color: var(--rust); font-weight: 400;
}
.check-list, .step-list { margin-top: 22px; }
.check-list li, .step-list li {
  padding: 13px 0; border-bottom: 1px solid var(--paper-line-2);
  font-size: 13.5px; line-height: 1.85; color: #3f3a31;
}
.check-list li { display: grid; grid-template-columns: auto 1fr; gap: 12px; }
.check-list li::before {
  content: ""; width: 6px; height: 6px; margin-top: 9px;
  border: 1px solid var(--rust); border-radius: 50%;
}
.step-list { counter-reset: step; }
.step-list li { counter-increment: step; display: grid; grid-template-columns: auto 1fr; gap: 14px; }
.step-list li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-size: 9.5px; color: var(--rust); padding-top: 4px;
}
.step-list strong, .check-list strong { font-weight: 600; }
.act-col__note { margin-top: 18px; font-size: 11px; color: var(--paper-muted); }

.duty {
  margin-top: clamp(48px, 6vw, 72px);
  border: 1px solid var(--paper-line); padding: clamp(22px, 3vw, 32px);
  background: rgba(20, 18, 14, 0.03);
  display: grid; grid-template-columns: 190px 1fr; gap: 24px; align-items: start;
}
.duty__label {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--rust); padding-top: 4px;
}
.duty__text { font-size: 13.5px; line-height: 2; color: #3f3a31; }
.duty__text strong { color: var(--paper-ink); font-weight: 700; }
.act-close {
  margin: clamp(72px, 9vw, 120px) auto 0; max-width: 22ch; text-align: center;
  font-family: var(--serif); font-size: clamp(26px, 3.3vw, 46px); line-height: 1.8;
}
.act-close strong { color: var(--rust); font-weight: 900; }

/* method */
.chapter--method { padding-top: 0; }
.method-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px); margin-top: clamp(40px, 5vw, 60px);
}
.method-block__title {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--paper-muted); margin-bottom: 8px;
}
.defs > div { padding: 14px 0; border-bottom: 1px solid var(--paper-line-2); }
.defs dt { font-size: 13.5px; font-weight: 600; color: var(--paper-ink); }
.defs dd { margin-top: 5px; font-size: 12.5px; line-height: 1.9; color: #4f4a40; }
.limits li {
  padding: 13px 0; border-bottom: 1px solid var(--paper-line-2);
  font-size: 12.5px; line-height: 1.9; color: #4f4a40;
}
.limits strong { color: var(--paper-ink); }
.table-block { margin-top: clamp(56px, 7vw, 88px); }
.table-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.table-actions { display: flex; gap: 8px; }
.table-scroll { overflow-x: auto; margin-top: 18px; }
.table-scroll:focus-visible { outline: 2px solid var(--rust); outline-offset: 4px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 560px; }
.data-table th {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 500; color: var(--paper-muted);
  text-align: right; padding: 10px 12px; border-bottom: 1px solid var(--paper-ink);
  white-space: nowrap;
}
.data-table th:first-child, .data-table td:first-child { text-align: left; }
.data-table td {
  text-align: right; padding: 10px 12px; border-bottom: 1px solid var(--paper-line-2);
  font-variant-numeric: tabular-nums; color: #3f3a31;
}
.data-table tbody tr { transition: background 0.2s; }
.data-table tbody tr:hover { background: rgba(20, 18, 14, 0.04); }
.data-table td:first-child { font-weight: 600; color: var(--paper-ink); }
.data-table tbody th {
  text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--paper-line-2);
  font-family: var(--sans); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0; text-transform: none; color: var(--paper-ink);
}
.table-link {
  display: inline-block; padding: 2px 0; background: none; border: 0;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
  border-bottom: 1px solid transparent;
}
.table-link:hover { border-bottom-color: var(--rust); color: var(--rust); }
.table-link:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }
.table-link small { margin-left: 8px; font-family: var(--mono); font-size: 8px; color: var(--paper-muted); letter-spacing: 0.08em; }
.data-table td:first-child small {
  font-family: var(--mono); font-size: 8px; color: var(--paper-muted);
  margin-left: 8px; letter-spacing: 0.08em;
}
.table-note { margin-top: 12px; font-size: 10.5px; color: var(--paper-muted); }
.credits {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px); margin-top: clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--paper-line); padding-top: 30px;
}
.credits h4 {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--paper-muted);
}
.credits p { margin-top: 10px; font-size: 11.5px; line-height: 1.9; color: #4f4a40; }
.credits a { border-bottom: 1px solid var(--paper-line); }
.credits a:hover { color: var(--rust); border-color: var(--rust); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--ink); color: var(--bone);
  padding-top: clamp(64px, 8vw, 110px); overflow: hidden;
  border-top: 1px solid var(--line-2);
}
.footer__top {
  display: grid; grid-template-columns: 1fr auto;
  gap: clamp(40px, 5vw, 80px); align-items: start;
}
.footer__mark { font-family: var(--serif); font-weight: 900; font-size: 38px; letter-spacing: 0.16em; }
.footer__en {
  margin-top: 10px; font-family: var(--mono); font-size: 8.5px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint);
}
.footer__tag { margin-top: 22px; font-size: 13px; color: var(--muted); }
.footer__nav { display: grid; grid-template-columns: repeat(3, auto); gap: clamp(28px, 4vw, 64px); }
.footer__nav h5 {
  font-family: var(--mono); font-size: 8px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 12px;
}
.footer__nav a { display: block; font-size: 12px; color: var(--bone-2); padding: 5px 0; transition: color 0.2s; }
.footer__nav a:hover { color: var(--amber); }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: clamp(40px, 5vw, 64px); padding: 20px 0 0;
  border-top: 1px solid var(--line-2);
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; color: var(--faint);
}
.footer__bottom a { color: var(--bone-2); border-bottom: 1px solid var(--line); }
.footer__top-link { margin-left: 14px; white-space: nowrap; }
.footer__huge {
  margin-top: 18px; text-align: center;
  font-family: var(--serif); font-weight: 900; line-height: 0.78;
  font-size: clamp(92px, 23vw, 330px); letter-spacing: 0.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(237, 232, 220, 0.12);
  transform: translateY(16%); user-select: none;
}
.noscript {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
  background: var(--amber); color: var(--ink); padding: 14px 20px;
  font-size: 13px; text-align: center;
}
.noscript a { border-bottom: 1px solid currentColor; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
  .hero__grid { grid-template-columns: 1fr; gap: 8px; }
  .hero { min-height: auto; padding-bottom: 32px; }
  .hero__copy { padding-top: 5vh; max-width: 660px; }
  .hero__map { order: 2; padding: 0 0 8px; }
  .map-plate--hero { max-width: none; min-height: min(42vh, 400px); }
  .map-plate--hero svg { height: min(42vh, 400px); width: auto; }
  .hero__stats { margin-top: 38px; }
  .hero__map-meta, .hero__map-note { display: none; }

  .map-layout { grid-template-columns: 1fr; }
  .map-panel { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; align-items: start; }
  .map-panel .seg { grid-column: 1; }
  .map-panel .county-card { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; border-top: 0; padding-top: 0; }
  .map-panel .year { grid-column: 1; }
  .map-panel .legend, .map-panel__note { grid-column: 1; }
  .map-stage { margin-top: 32px; }
}

@media (max-width: 980px) {
  .nav__links { display: none; }
  .map-frame { padding-bottom: 68px; }
  .count-grid, .shape-grid, .witness-grid { grid-template-columns: 1fr; gap: 44px; }
  .shape-aside, .witness-aside { position: static; }
  .age-notes, .reading { grid-template-columns: 1fr; gap: 26px; }
  .curve-pair { grid-template-columns: 1fr; }
  .act-grid { grid-template-columns: 1fr; }
  .hotlines { grid-template-columns: 1fr 1fr; }
  .act-columns { grid-template-columns: 1fr; gap: 40px; }
  .method-grid { grid-template-columns: 1fr; gap: 40px; }
  .credits { grid-template-columns: 1fr; gap: 26px; }
  .footer__top { grid-template-columns: 1fr; }
  .duty { grid-template-columns: 1fr; gap: 10px; }
  .rank-list { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --nav-h: 58px; }
  .map-plate--full .county__label,
  .map-plate--full .inset-label,
  .map-plate--full .map-grat-label,
  .map-plate--full .map-scale-text,
  .map-plate--full .map-scale-line { display: none; }
  .brand__en { display: none; }
  .nav__hotline { padding: 6px 12px 6px 10px; }
  .hero__title { font-size: clamp(68px, 20vw, 116px); }
  .map-plate--hero svg { height: min(38vh, 330px); }
  .map-plate--hero { min-height: min(38vh, 330px); }
  .hero__copy { padding-top: 3vh; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .hero__stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .hero__stat:nth-child(n + 3) { border-top: 1px solid var(--line-2); margin-top: 16px; padding-top: 16px; }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 18px; }
  .scroll-cue { display: none; }
  .map-panel { grid-template-columns: 1fr; }
  .map-panel .county-card { grid-column: 1; grid-row: auto; margin-top: 26px; border-top: 1px solid var(--line); padding-top: 20px; }
  .map-panel .legend { margin-top: 22px; }
  .county-card__hint { display: none; }
  .rank-row { grid-template-columns: 22px 84px minmax(0, 1fr) 54px; gap: 9px; }
  .rank-row__name { font-size: 12px; }
  .hotlines { grid-template-columns: 1fr; }
  .story--offset { margin-left: 0; }
  .data-table { font-size: 11.5px; }
  .data-table th { padding: 9px 8px; }
  .data-table td { padding: 9px 8px; }
  .footer__huge { transform: translateY(10%); }
  .count-figure { flex-wrap: wrap; gap: 8px; }
}

@media (max-width: 460px) {
  .hero__cta .btn { flex: 1; }
  .age-row { grid-template-columns: 1fr 70px 1fr; }
  .age-row__label { font-size: 14px; }
  .age-head, .age-axis { grid-template-columns: 1fr 70px 1fr; }
  .type-row__name { font-size: 17px; }
  .help-card__num { font-size: 104px; }
  .footer__bottom { font-size: 8px; }
}

/* ==========================================================================
   MOTION PREFERENCES / PRINT
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html.js .reveal, html.js .reveal.is-in { opacity: 1 !important; transform: none !important; }
  .map-plate--hero .map-scan { display: none; }
}

@media print {
  /* ---- chrome that has no meaning on paper ---- */
  .nav, .progress, .grain, .scroll-cue, .map-panel, .night-rail,
  .hero__map, .hero__glow, .map-tooltip, .map-readout, .rank-dl, .series-data { display: none !important; }
  .footer__huge, .footer__nav { display: none !important; }

  /* ---- page setup ---- */
  @page { size: A4; margin: 14mm 13mm; }
  html.js .reveal, html.js .reveal.is-in { opacity: 1 !important; transform: none !important; }
  html, body { background: #fff !important; color: #111 !important; font-size: 10pt; }
  .hero, .chapter, .footer { background: #fff !important; color: #111 !important; padding-block: 0 !important; }
  .hero { height: auto !important; min-height: 0 !important; display: block !important; padding-bottom: 6mm !important; }
  .hero__grid { display: block !important; width: 100% !important; }
  .hero__copy { max-width: none !important; padding: 0 !important; }

  /* ---- typography for paper ---- */
  .hero__title { font-size: 40pt !important; line-height: 1 !important; margin: 0 0 2mm !important; }
  .hero__title-a, .hero__title-b { color: #111 !important; -webkit-text-stroke: 0 !important; }
  .hero__en, .hero__kicker { font-size: 7pt !important; letter-spacing: 0.2em !important; color: #555 !important; }
  .hero__lead { font-size: 11pt !important; max-width: none !important; margin: 3mm 0 !important; color: #111 !important; }
  .hero__cta, .scroll-cue { display: none !important; }
  .hero__stats { display: flex !important; flex-wrap: wrap; gap: 0 8mm; margin: 4mm 0 2mm !important; border-top: 1pt solid #bbb !important; padding-top: 2mm; }
  .hero__stat { border: 0 !important; padding: 0 !important; margin: 0 !important; }
  .hero__stat dd { font-size: 16pt !important; margin-top: 1mm !important; color: #111 !important; }
  .hero__stat dt, .hero__stat-sub { color: #555 !important; font-size: 7pt !important; }

  .chapter__index { color: #666 !important; font-size: 7pt !important; }
  .chapter__index span { color: #111 !important; }
  .chapter__title { font-size: 20pt !important; line-height: 1.2 !important; margin: 1.5mm 0 2.5mm !important; }
  .chapter__lead, .body-copy { font-size: 9.5pt !important; line-height: 1.65 !important; color: #222 !important; max-width: none !important; }
  .chapter__head { margin-bottom: 4mm; }
  .pullquote { margin-top: 6mm !important; padding-left: 4mm !important; border-left: 2pt solid #111 !important; }
  .pullquote p:first-child { font-size: 12pt !important; color: #111 !important; max-width: none !important; }
  .pullquote__cite, .stories__note { color: #555 !important; }

  /* ---- collapse every screen grid into a single print column ---- */
  .count-grid, .shape-grid, .witness-grid, .method-grid, .act-grid, .act-columns,
  .curve-pair, .age-notes, .reading, .hotlines, .night-layout, .hero__grid,
  .map-layout, .footer__top, .credits, .table-head, .table-actions, .rank-head {
    display: block !important;
  }
  .count-grid > *, .shape-grid > *, .witness-grid > *, .method-grid > *,
  .act-grid > *, .act-columns > *, .curve-pair > *, .hotlines > *,
  .credits > *, .table-head > *, .rank-head > * { margin-bottom: 4mm; }
  .hotline { display: flex !important; }
  .age-notes li, .reading li { display: block !important; margin-bottom: 3mm; }
  .curve-pair > * { break-inside: avoid; }

  /* ---- page flow ---- */
  .chapter { break-before: auto; }
  .chapter__head { break-after: avoid; }
  .chapter__head, .story, .type-row, .source-row, .age-row, .help-card,
  .duty, .act-col, .rank-row, .credits { break-inside: avoid; }
  /* large blocks are allowed to split; only their rows must stay whole */
  .type-list, .source-list, .age-chart, .method-block, .reading, .age-notes,
  .curve-pair, .act-columns, .data-table { break-inside: auto; }
  .method-block { break-inside: avoid; }
  .data-table thead { display: table-header-group; }
  .data-table tr { break-inside: avoid; }
  .story { max-width: none !important; margin: 0 0 8mm !important; }
  .story--offset { margin-left: 0 !important; max-width: none !important; }
  .stories { gap: 8mm !important; }

  /* ---- data blocks ---- */
  .map-layout, .map-stage { display: block !important; }
  .map-stage { display: none !important; }
  .print-note {
    display: block !important; font-size: 9pt; line-height: 1.7;
    color: #333; border-left: 2pt solid #999; padding-left: 3mm; margin-top: 3mm;
  }
  .map-stage { margin: 0 !important; }
  .map-frame { border: 1pt solid #999 !important; background: #fff !important; padding: 3mm !important; }
  .map-plate--full { aspect-ratio: auto !important; }
  .rank-block { display: none !important; }
  .rank-list { column-count: 2; column-gap: 8mm; }
  .rank-row { break-inside: avoid; }
  .curve, .curve-pair { break-inside: avoid; }
  .chart { height: auto !important; }
  .chart svg { width: 100% !important; height: auto !important; }
  .chart-tip { display: none !important; }
  .reading, .age-notes { break-inside: avoid; }
  .readout, .map-panel { display: none !important; }

  .data-table { font-size: 8.5pt !important; min-width: 0 !important; }
  .data-table th, .data-table td { padding: 1.5mm 2mm !important; border-color: #bbb !important; color: #111 !important; }
  .table-scroll { overflow: visible !important; }

  /* ---- ink-safe display type ---- */
  .count-figure__num, .shape-aside__big .num, .witness-aside__big .num, .help-card__num {
    color: #111 !important; -webkit-text-fill-color: #111 !important;
    background: none !important; -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
  }
  .footer__mark { color: #111 !important; }
  .county { stroke: #666 !important; }
  .county__label, .inset-label, .map-grat-label, .map-scale-text { fill: #111 !important; stroke: #fff !important; }
  .inset-box { stroke: #666 !important; }
  .help-card { background: #f4f2ec !important; color: #111 !important; border: 1pt solid #999 !important; }
  .help-card__desc, .help-card__label, .help-card__title { color: #111 !important; }
  .help-card .btn { display: none !important; }
  .legend__bar, .stack, .gender-split__bar, .age-row__bar, .type-row__bar,
  .source-row__bar, .rank-row__bar, .map-svg, .map-frame {
    print-color-adjust: exact; -webkit-print-color-adjust: exact;
  }
  a { text-decoration: none; }
  .hero__notice { display: flex !important; color: #111 !important; }
}

/* ==========================================================================
   DESKTOP HERO — full-bleed island plate
   ========================================================================== */
@media (min-width: 1181px) {
  .hero { height: 100svh; min-height: 780px; }
  .hero__grid { grid-template-columns: 1fr; align-items: center; }
  .hero__copy { max-width: 600px; padding-top: 0; position: relative; z-index: 3; }
  .hero__map {
    position: absolute; top: -34px; bottom: -26px; right: -30px; width: 52%;
    padding: 0; justify-content: center; z-index: 1;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 100%);
  }
  .map-plate--hero {
    flex: 1; min-height: 0; max-width: none;
    display: flex; align-items: center; justify-content: center;
  }
  .map-plate--hero svg { height: 100%; width: auto; max-width: none; }
  .hero__map-meta, .hero__map-note { position: relative; text-align: center; }
  .hero__foot { border-top-color: var(--line-2); }
}

@media (min-width: 1181px) and (max-width: 1360px) {
  .hero__copy { max-width: 540px; }
  .hero__title { font-size: clamp(72px, 9.8vw, 132px); }
  .hero__lead { font-size: 15.5px; }
  .hero__map { width: 50%; }
}

/* ---------- night: two-column editorial layout with case index ---------- */
.night-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 262px;
  gap: clamp(36px, 5vw, 88px); align-items: start;
}
.night-main { min-width: 0; }
.night-rail { position: sticky; top: calc(var(--nav-h) + 44px); padding-top: 4px; }
.night-rail__ghost {
  font-family: var(--serif); font-weight: 900; font-size: 82px; line-height: 0.8;
  letter-spacing: 0.02em; color: transparent;
  -webkit-text-stroke: 1px rgba(20, 18, 14, 0.22);
  margin-bottom: 18px;
}
.night-rail__label {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--paper-muted);
  padding-bottom: 13px; border-bottom: 1px solid var(--paper-line);
}
.night-rail__list li {
  display: flex; align-items: baseline; gap: 10px;
  padding: 13px 0; border-bottom: 1px solid var(--paper-line-2);
}
.night-rail__list span { font-family: var(--mono); font-size: 9px; color: var(--rust); }
.night-rail__list b { font-family: var(--serif); font-weight: 600; font-size: 15px; }
.night-rail__list small {
  margin-left: auto; font-family: var(--mono); font-size: 9px;
  color: var(--paper-muted); letter-spacing: 0.06em;
}
.night-rail__note { margin-top: 18px; font-size: 11px; line-height: 1.95; color: var(--paper-muted); }
.night-rail__hot {
  margin-top: 26px; font-family: var(--mono); font-size: 8.5px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--paper-muted);
}
.night-rail__hot a {
  display: block; margin-top: 2px; font-family: var(--serif);
  font-size: 36px; font-weight: 600; color: var(--rust); letter-spacing: 0;
}
@media (max-width: 1024px) {
  .night-layout { grid-template-columns: 1fr; }
  .night-rail { display: none; }
}


/* ==========================================================================
   FORCED COLORS / HIGH CONTRAST
   ========================================================================== */
@media (forced-colors: active) {
  .grain, .hero__glow, .map-scan, .map-plate--hero .map-sea { display: none !important; }
  .county { fill: Canvas !important; stroke: CanvasText !important; }
  .county.is-active, .county:hover, .county:focus-visible { stroke: Highlight !important; }
  .inset-box { fill: Canvas !important; stroke: CanvasText !important; }
  .county__label, .inset-label, .map-grat-label, .map-scale-text { fill: CanvasText !important; stroke: Canvas !important; }
  .hero__title-b, .footer__huge { -webkit-text-stroke-color: CanvasText; color: Canvas; }
  .count-figure__num {
    color: CanvasText !important; background: none !important;
    -webkit-background-clip: border-box !important; background-clip: border-box !important;
  }
  .btn, .seg, .chip, .hotline, .help-card, .data-table th, .data-table td,
  .rank-row, .source-row, .type-row, .story { border-color: CanvasText; }
  .help-card { background: Canvas; color: CanvasText; }
  .legend__bar, .stack__seg, .gender-split__bar { background: CanvasText !important; }
  .rank-row__bar, .type-row__bar, .source-row__bar, .age-row__bar { background: CanvasText !important; }
}


/* ---------- accessible yearly series table ---------- */
.series-data {
  margin-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.series-data summary {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em;
  color: var(--muted); cursor: pointer; padding: 10px 0;
  list-style: none;
}
.series-data summary::-webkit-details-marker { display: none; }
.series-data summary::before { content: "+ "; color: var(--amber); }
.series-data[open] summary::before { content: "− "; }
.series-data summary:hover { color: var(--bone); }
.series-data__body { margin-top: 8px; }
.series-table { min-width: 0; }
.series-table th, .series-table td { padding: 8px 12px; }
/* the yearly table lives in the dark chapter, not on paper */
.series-table th { color: var(--faint); border-bottom-color: var(--line); }
.series-table td { color: var(--bone-2); border-bottom-color: var(--line-2); }
.series-table tbody th { color: var(--bone); border-bottom-color: var(--line-2); }
.series-table tbody tr:hover { background: rgba(237, 232, 220, 0.04); }

/* short landscape phones (e.g. 844×390): keep the hero to one screen */
@media (max-height: 520px) and (orientation: landscape) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero { min-height: 0; padding-top: calc(var(--nav-h) + 12px); padding-bottom: 12px; }
  .hero__copy { padding-top: 0; max-width: 560px; }
  .hero__title { font-size: clamp(40px, 9vh, 68px); margin: 10px 0 6px; }
  .hero__lead { margin-top: 14px; font-size: 13.5px; line-height: 1.85; }
  .hero__cta { margin-top: 16px; }
  .hero__cta .btn { padding: 10px 16px; font-size: 12px; }
  .hero__stats { margin-top: 18px; }
  .hero__stat { padding-top: 10px; }
  .hero__stat dd { font-size: 20px; }
  .hero__stat-sub { margin-top: 4px; font-size: 9px; }
  .map-plate--hero { display: none; }
  .hero__map { display: none; }
  .hero__foot { padding-top: 10px; }
  .chapter { padding-block: clamp(48px, 7vh, 72px); }
  .chapter__title { font-size: clamp(30px, 6.4vh, 46px); }
}
