/* ============================================================
   greatsouthbasin.nz — survey-chart design system
   The page is a descent: ocean surface → basin floor → strata,
   then the pivot from resource (glacial blue) to fund (gold).
   ============================================================ */

/* ---------- fonts (self-hosted) ---------- */
@font-face {
  font-family: 'Instrument Serif';
  src: url('../fonts/instrument-serif-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('../fonts/instrument-serif-400-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-var.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/ibm-plex-mono-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/ibm-plex-mono-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  /* the water column: page background is interpolated between these by scroll */
  --sea-0: #0b2130;      /* photic surface water */
  --sea-1: #081826;      /* mid water */
  --sea-2: #050f18;      /* abyssal */
  --strata: #120e0a;     /* sub-seafloor, warm rock dark */
  --bg: var(--sea-0);    /* live, set by JS */

  --surface: #0d2130;          /* card */
  --surface-2: #102636;        /* raised card */
  --ink: #e9f1f2;
  --ink-2: #a9bec6;
  --ink-3: #6e8894;
  --hairline: rgba(233, 241, 242, 0.12);
  --hairline-soft: rgba(233, 241, 242, 0.07);

  /* semantic accents: cold = the resource, warm = the fund */
  --glacial: #2e9ec4;
  --glacial-bright: #63c4e2;
  --gold: #c2842c;
  --gold-bright: #e4b366;
  --seafoam: #2fa877;
  --coral: #ce5f4b;

  /* chart tokens (validated categorical set, dark surface) */
  --series-1: #2e9ec4;
  --series-2: #c2842c;
  --series-3: #2fa877;
  --series-4: #ce5f4b;
  --grid: rgba(233, 241, 242, 0.08);
  --axis: rgba(233, 241, 242, 0.22);

  --font-display: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Archivo', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;

  --measure: 68ch;
  --col: min(1120px, calc(100vw - 48px));
  --rail-w: 84px;
}

/* ---------- reset-ish ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.45s linear;
  overflow-x: hidden;
}
::selection { background: rgba(46, 158, 196, 0.35); }
img, svg { max-width: 100%; display: block; }
a { color: var(--glacial-bright); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--glacial-bright); outline-offset: 3px; border-radius: 2px; }

/* ---------- depth rail (signature) ---------- */
#depth-rail {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--rail-w);
  border-right: 1px solid var(--hairline-soft);
  z-index: 40;
  font-family: var(--font-mono);
  pointer-events: none;
  display: flex; flex-direction: column; justify-content: flex-end;
}
#depth-readout {
  position: absolute; top: 50%; left: 0; width: 100%;
  transform: translateY(-50%);
  text-align: center;
}
#depth-readout .dr-val {
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  letter-spacing: 0.02em; display: block;
}
#depth-readout .dr-unit {
  font-size: 9px; letter-spacing: 0.18em; color: var(--ink-3);
  text-transform: uppercase; display: block; margin-top: 2px;
}
#depth-readout::before, #depth-readout::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  width: 26px; height: 1px; background: var(--hairline);
}
#depth-readout::before { top: -14px; }
#depth-readout::after { bottom: -14px; }
#rail-ticks { position: absolute; inset: 0; overflow: hidden; }
.rail-tick {
  position: absolute; right: 0; width: 10px; height: 1px;
  background: var(--hairline);
}
.rail-tick.major { width: 18px; }
.rail-tick .rt-label {
  position: absolute; right: 24px; top: -7px;
  font-size: 9px; color: var(--ink-3); letter-spacing: 0.05em;
  white-space: nowrap;
}
@media (max-width: 900px) { #depth-rail { display: none; } }

/* ---------- layout primitives ---------- */
.wrap { width: var(--col); margin: 0 auto; }
@media (min-width: 901px) {
  .wrap { width: min(1120px, calc(100vw - var(--rail-w) - 64px)); margin-left: calc(var(--rail-w) + 32px); }
  @media (min-width: 1400px) {
    .wrap { margin-left: auto; margin-right: auto; }
  }
}
.measure { max-width: var(--measure); }

section.station { padding: 120px 0 96px; position: relative; }
@media (max-width: 640px) { section.station { padding: 84px 0 64px; } }

/* station header: the survey-log line */
.stn-head { margin-bottom: 40px; }
.stn-meta {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3);
  display: flex; gap: 18px; flex-wrap: wrap; align-items: baseline;
  margin-bottom: 18px;
}
.stn-meta .stn-no { color: var(--glacial-bright); font-weight: 500; }
.stn-meta .stn-no.gold { color: var(--gold-bright); }
.stn-head h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(34px, 5vw, 54px); line-height: 1.08;
  letter-spacing: 0.005em; max-width: 20ch;
}
.stn-head h2 em { font-style: italic; color: var(--glacial-bright); }
.stn-head h2 .gold-em { font-style: italic; color: var(--gold-bright); }
.stn-lede {
  margin-top: 22px; max-width: var(--measure);
  font-size: 19px; line-height: 1.6; color: var(--ink-2); font-weight: 400;
}
.stn-lede strong { color: var(--ink); font-weight: 600; }

p + p { margin-top: 1em; }
.prose { max-width: var(--measure); color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 600; }

/* ---------- hero ---------- */
#hero {
  min-height: 100svh; position: relative;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  padding: 72px 0 150px;
}
#hero .wrap { position: relative; z-index: 3; }
.hero-coords {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 26px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.hero-coords .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--glacial-bright); }
#hero h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(46px, 8.5vw, 108px); line-height: 1.0;
  letter-spacing: 0.002em; max-width: 14ch;
}
#hero h1 em { font-style: italic; color: var(--glacial-bright); }
.hero-sub {
  margin-top: 30px; max-width: 56ch; font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-2); line-height: 1.6;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-stats {
  margin-top: 44px; display: flex; gap: 44px; flex-wrap: wrap;
}
.hero-stat .hs-val {
  font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 40px);
  color: var(--ink); line-height: 1.1;
}
.hero-stat .hs-val em { font-style: italic; }
.hero-stat .hs-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3); margin-top: 7px; max-width: 22ch;
}
#seismic-hero {
  position: absolute; left: 0; right: 0; bottom: 0; height: 44vh;
  z-index: 1; opacity: 0.9; pointer-events: none;
}
.hero-scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 4; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-decoration: none;
}
.hero-scroll-cue .cue-line {
  width: 1px; height: 42px;
  background: linear-gradient(to bottom, transparent, var(--glacial-bright));
  animation: cue-drop 2.4s ease-in-out infinite;
}
@keyframes cue-drop {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); transform-origin: top; opacity: 0.15; }
}

/* ---------- cards & panels ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--hairline-soft);
  border-radius: 10px;
  padding: 28px;
}
.panel + .panel { margin-top: 20px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.stat-tile {
  background: var(--surface); border: 1px solid var(--hairline-soft);
  border-radius: 10px; padding: 22px 24px;
}
.stat-tile .st-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3);
}
.stat-tile .st-val {
  font-family: var(--font-display); font-size: 34px; line-height: 1.15;
  color: var(--ink); margin-top: 8px;
}
.stat-tile .st-val .unit { font-size: 20px; color: var(--ink-2); }
.stat-tile .st-note { font-size: 13px; color: var(--ink-2); margin-top: 8px; line-height: 1.5; }
.stat-tile.cold .st-val { color: var(--glacial-bright); }
.stat-tile.gold .st-val { color: var(--gold-bright); }

/* ---------- map ---------- */
#map-panel {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 28px; align-items: start;
}
@media (max-width: 860px) { #map-panel { grid-template-columns: 1fr; } }
#map-frame {
  position: relative; border: 1px solid var(--hairline);
  border-radius: 10px; overflow: hidden; background: #08141f;
}
#gsb-map { width: 100%; height: auto; display: block; }
#map-frame .map-caption {
  position: absolute; left: 12px; bottom: 10px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3); pointer-events: none;
}
.map-legend { display: flex; flex-direction: column; gap: 0; }
.map-toggle-row {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px;
}
.map-toggle {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-2);
  background: transparent; border: 1px solid var(--hairline);
  border-radius: 999px; padding: 7px 14px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.map-toggle .sw { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); }
.map-toggle[aria-pressed="true"] { color: var(--ink); border-color: rgba(233,241,242,0.35); background: rgba(233,241,242,0.05); }
.map-toggle[aria-pressed="true"] .sw.wells { background: var(--glacial-bright); }
.map-toggle[aria-pressed="true"] .sw.basin { background: var(--seafoam); }
.map-toggle[aria-pressed="true"] .sw.wind { background: var(--gold-bright); }
.map-toggle:hover { border-color: rgba(233,241,242,0.4); }
#map-detail { min-height: 180px; }
#map-detail .md-empty { color: var(--ink-3); font-size: 14px; line-height: 1.6; }
#map-detail h4 {
  font-family: var(--font-display); font-size: 26px; font-weight: 400; color: var(--ink);
}
#map-detail .md-meta {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--glacial-bright); margin: 6px 0 12px;
}
#map-detail p { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
.well-dot { cursor: pointer; }
.well-dot circle.halo { transition: r 0.15s ease, opacity 0.15s ease; }

/* ---------- timeline ---------- */
#timeline { position: relative; margin-top: 12px; }
#timeline::before {
  content: ''; position: absolute; left: 7px; top: 4px; bottom: 4px;
  width: 1px; background: var(--hairline);
}
.tl-item { position: relative; padding: 0 0 34px 42px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--glacial);
  transition: background 0.2s;
}
.tl-item.discovery::before { border-color: var(--seafoam); }
.tl-item.setback::before { border-color: var(--coral); }
.tl-item.policy::before { border-color: var(--gold-bright); }
.tl-year {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; color: var(--ink-3);
}
.tl-item h4 { font-size: 17px; font-weight: 600; color: var(--ink); margin: 3px 0 5px; }
.tl-item p { font-size: 14.5px; color: var(--ink-2); max-width: 62ch; }
.tl-item .tl-more-btn {
  background: none; border: none; color: var(--glacial-bright);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  cursor: pointer; padding: 4px 0 0; text-transform: uppercase;
}
.tl-item .tl-more-btn:hover { color: var(--ink); }
.tl-more { display: none; margin-top: 8px; font-size: 14px; color: var(--ink-2); max-width: 62ch; }
.tl-item.open .tl-more { display: block; }

/* ---------- charts ---------- */
.chart-card {
  background: var(--surface); border: 1px solid var(--hairline-soft);
  border-radius: 10px; padding: 24px 24px 16px; position: relative;
}
.chart-card h3 { font-size: 16px; font-weight: 600; color: var(--ink); }
.chart-card .cc-sub { font-size: 13px; color: var(--ink-3); margin-top: 3px; margin-bottom: 14px; }
.chart-card svg text {
  font-family: var(--font-mono); font-size: 12.5px; fill: var(--ink-3);
}
.chart-legend {
  display: flex; gap: 18px; flex-wrap: wrap; margin: 4px 0 14px;
  font-size: 12.5px; color: var(--ink-2);
}
.chart-legend .lg { display: inline-flex; align-items: center; gap: 7px; }
.chart-legend .lg i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.chart-legend .lg i.dot { width: 9px; height: 9px; border-radius: 50%; }
.viz-tip {
  position: fixed; z-index: 90; pointer-events: none;
  background: #061019; border: 1px solid var(--hairline);
  border-radius: 8px; padding: 10px 13px; min-width: 150px;
  font-size: 12.5px; color: var(--ink-2);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
  opacity: 0; transition: opacity 0.12s;
}
.viz-tip.on { opacity: 1; }
.viz-tip .tt-title {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px;
}
.viz-tip .tt-row { display: flex; align-items: baseline; gap: 8px; padding: 1.5px 0; }
.viz-tip .tt-row i { width: 12px; height: 2.5px; border-radius: 2px; flex: none; align-self: center; }
.viz-tip .tt-row .v { color: var(--ink); font-weight: 600; margin-left: auto; font-family: var(--font-mono); font-size: 12px; }
.table-view-btn {
  background: none; border: none; color: var(--ink-3); cursor: pointer;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 8px 0 2px; display: inline-block;
}
.table-view-btn:hover { color: var(--ink); }
.chart-table { display: none; margin-top: 10px; overflow-x: auto; }
.chart-table.on { display: block; }
.chart-table table {
  border-collapse: collapse; width: 100%; font-size: 12.5px;
  font-family: var(--font-mono);
}
.chart-table th, .chart-table td {
  text-align: right; padding: 6px 10px; border-bottom: 1px solid var(--hairline-soft);
  color: var(--ink-2); font-weight: 400; white-space: nowrap;
}
.chart-table th { color: var(--ink-3); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; }
.chart-table th:first-child, .chart-table td:first-child { text-align: left; }

/* ---------- the turn (pivot interstitial) ---------- */
#turn {
  padding: 150px 0; text-align: center; position: relative;
}
#turn .turn-rule {
  width: 1px; height: 70px; margin: 0 auto 34px;
  background: linear-gradient(to bottom, var(--glacial), var(--gold));
}
#turn h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(30px, 4.6vw, 52px); line-height: 1.15;
  max-width: 24ch; margin: 0 auto;
}
#turn h2 em { font-style: italic; color: var(--gold-bright); }
#turn p {
  margin: 26px auto 0; max-width: 52ch; color: var(--ink-2); font-size: 18px;
}

/* ---------- calculator ---------- */
#calc-panel {
  display: grid; grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.4fr);
  gap: 26px; align-items: start;
}
@media (max-width: 900px) { #calc-panel { grid-template-columns: 1fr; } }
.calc-controls {
  background: var(--surface); border: 1px solid var(--hairline-soft);
  border-radius: 10px; padding: 26px;
}
.calc-group { padding: 16px 0; border-bottom: 1px solid var(--hairline-soft); }
.calc-group:first-child { padding-top: 0; }
.calc-group:last-of-type { border-bottom: none; }
.calc-label-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; gap: 10px; }
.calc-label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.calc-val {
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  color: var(--gold-bright); white-space: nowrap;
}
.calc-val.cold { color: var(--glacial-bright); }
.calc-note { font-size: 12px; color: var(--ink-3); margin-top: 8px; line-height: 1.5; }
input[type="range"] {
  width: 100%; appearance: none; -webkit-appearance: none; height: 26px;
  background: transparent; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 3px; background: rgba(233,241,242,0.15); border-radius: 2px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold-bright); margin-top: -7.5px;
  border: 3px solid #0d2130;
  box-shadow: 0 0 0 1px rgba(233,241,242,0.25);
}
input[type="range"]::-moz-range-track {
  height: 3px; background: rgba(233,241,242,0.15); border-radius: 2px;
}
input[type="range"]::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold-bright); border: 3px solid #0d2130;
  box-shadow: 0 0 0 1px rgba(233,241,242,0.25);
}
.calc-preset-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.calc-preset {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--hairline); background: transparent; color: var(--ink-2);
  cursor: pointer; transition: all 0.15s;
}
.calc-preset:hover { border-color: rgba(233,241,242,0.4); color: var(--ink); }
.calc-preset.on { border-color: var(--gold-bright); color: var(--gold-bright); background: rgba(196,132,44,0.08); }
.calc-outputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
@media (max-width: 420px) { .calc-outputs { grid-template-columns: 1fr; } }
.calc-out {
  background: var(--surface); border: 1px solid var(--hairline-soft);
  border-radius: 10px; padding: 18px 20px;
}
.calc-out .co-label {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--ink-3);
}
.calc-out .co-val {
  font-family: var(--font-display); font-size: clamp(26px, 3vw, 36px);
  color: var(--gold-bright); margin-top: 6px; line-height: 1.1;
}
.calc-out .co-val.cold { color: var(--glacial-bright); }
.calc-out .co-sub { font-size: 12px; color: var(--ink-2); margin-top: 5px; }
.calc-equiv { font-size: 14px; color: var(--ink-2); line-height: 1.7; margin-top: 16px; }
.calc-equiv strong { color: var(--gold-bright); font-weight: 600; }

/* ---------- ledger (pro/con) ---------- */
.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .ledger { grid-template-columns: 1fr; } }
.ledger-col { border: 1px solid var(--hairline-soft); border-radius: 10px; padding: 26px; background: var(--surface); }
.ledger-col h3 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; font-weight: 500; margin-bottom: 18px;
}
.ledger-col.for h3 { color: var(--glacial-bright); }
.ledger-col.against h3 { color: var(--coral); }
.ledger-col ul { list-style: none; }
.ledger-col li { padding: 12px 0; border-top: 1px solid var(--hairline-soft); font-size: 14.5px; color: var(--ink-2); }
.ledger-col li strong { color: var(--ink); font-weight: 600; display: block; margin-bottom: 3px; }

/* ---------- comparison strip (norway) ---------- */
.compare-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 28px 0; }
@media (max-width: 760px) { .compare-strip { grid-template-columns: 1fr; } }
.compare-cell {
  border: 1px solid var(--hairline-soft); border-radius: 10px;
  padding: 26px; background: var(--surface);
}
.compare-cell .cc-flag {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.compare-cell .cc-flag i { width: 8px; height: 8px; border-radius: 50%; }
.compare-cell.norway .cc-flag i { background: var(--gold-bright); }
.compare-cell.nz .cc-flag i { background: var(--glacial-bright); }
.compare-cell .cc-big {
  font-family: var(--font-display); font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05; color: var(--ink);
}
.compare-cell.norway .cc-big { color: var(--gold-bright); }
.compare-cell .cc-rows { margin-top: 18px; }
.compare-cell .cc-row {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 8px 0; border-top: 1px solid var(--hairline-soft);
  font-size: 13.5px; color: var(--ink-2);
}
.compare-cell .cc-row b { color: var(--ink); font-weight: 600; font-family: var(--font-mono); font-size: 12.5px; white-space: nowrap; }

/* ---------- sources ---------- */
#sources details {
  border-top: 1px solid var(--hairline-soft); padding: 14px 0;
}
#sources summary {
  cursor: pointer; font-weight: 600; font-size: 15px; color: var(--ink);
  list-style: none; display: flex; align-items: center; gap: 10px;
}
#sources summary::before {
  content: '+'; font-family: var(--font-mono); color: var(--glacial-bright);
  width: 14px; flex: none;
}
#sources details[open] summary::before { content: '−'; }
#sources summary::-webkit-details-marker { display: none; }
#sources ul { list-style: none; padding: 12px 0 6px 24px; }
#sources li { font-size: 13.5px; color: var(--ink-2); padding: 5px 0; line-height: 1.5; }
#sources li a { color: var(--glacial-bright); word-break: break-word; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--hairline-soft);
  padding: 48px 0 64px; margin-top: 60px;
}
footer .foot-coords {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-3); line-height: 2;
}
footer p { font-size: 13px; color: var(--ink-3); max-width: 70ch; margin-top: 14px; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- misc ---------- */
.footnote { font-size: 12.5px; color: var(--ink-3); line-height: 1.6; max-width: var(--measure); }
.divider-wave { height: 1px; background: var(--hairline-soft); margin: 44px 0; border: none; }
.badge {
  display: inline-block; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase; padding: 3px 9px;
  border: 1px solid var(--hairline); border-radius: 999px; color: var(--ink-3);
}
.badge.uncertain { color: var(--gold-bright); border-color: rgba(228,179,102,0.35); }
