/* ============================================================
   The Fresnel Post — modern coastal archive
   Deep-water ink, fog-grey records, warm paper, and a measured
   amber signal. Shared selectors keep every static route aligned.
   ============================================================ */

@font-face {
  font-family: "Open Runde";
  src: url("/assets/fonts/open-runde-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Open Runde";
  src: url("/assets/fonts/open-runde-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/geist-mono-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/geist-mono-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

/* Keep the existing token names where content components already depend on them. */
:root {
  color-scheme: light;
  --header-h: 102px;
  --paper: #f8f6ef;
  --paper-deep: #e8eeec;
  --paper-card: #fffefa;
  --ink: #13384a;
  --ink-soft: #3b5865;
  --ink-faint: #536d78;
  --rule: #c9d4d4;
  --rule-soft: #dfe6e4;
  --sea: #36697a;
  --sea-pale: #e1ebec;
  --accent: #94521d;
  --accent-deep: #814117;
  --beacon: #d6a34a;
  --fog: #b8c9cc;
  --radius-sm: 5px;
  --radius-md: 10px;
  --radius-pill: 999px;
  --shadow-1: 0 2px 8px rgba(19, 56, 74, 0.07);
  --shadow-2: 0 12px 30px rgba(19, 56, 74, 0.15);
  --font-serif: "Newsreader", Georgia, serif;
  --font-sans: "Open Runde", "Avenir Next", Arial, sans-serif;
  --font-mono: "Geist Mono", Consolas, monospace;
  --scrollbar-track: var(--paper-deep);
  --scrollbar-thumb: var(--sea);
  --scrollbar-thumb-hover: var(--accent);
  --serif: var(--font-serif);
  --mono: var(--font-mono);
  --muted: var(--ink-faint);
  --type-body: 1rem;
  --type-reading: 1.0625rem;
  --type-label: 0.7rem;
  --w-wide: 1240px;
  --w-text: 45rem;
  --t-fast: 180ms;
}

/* ---------- shared scrollbar treatment ---------- */
/* Standard scrollbar properties cover Firefox and the page viewport. */
:root,
* {
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  scrollbar-width: thin;
}

/* WebKit scrollbar parts add the rounded thumb and its amber hover state. */
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-track {
  border-radius: var(--radius-pill);
  background-color: var(--scrollbar-track);
}
*::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  background-color: var(--scrollbar-thumb);
  background-clip: content-box;
}
*::-webkit-scrollbar-thumb:hover {
  background-color: var(--scrollbar-thumb-hover);
}
*::-webkit-scrollbar-corner {
  background-color: var(--scrollbar-track);
}

/* ---------- reset and reading defaults ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background-color: var(--paper); }
body {
  margin: 0;
  padding-top: var(--header-h);
  position: relative;
  isolation: isolate;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--type-body);
  line-height: 1.62;
  font-optical-sizing: auto;
}

/* Shared ambient layers keep the paper surface and reading content above the motion. */
body::before,
body::after {
  position: fixed;
  inset: -4vw;
  z-index: -1;
  pointer-events: none;
  content: "";
}

/* Concentric Fresnel rings and a warm beacon halo keep the shared atmosphere legible. */
body::before {
  background:
    radial-gradient(ellipse at 82% 24%, rgba(214, 163, 74, 0.17), transparent 36%),
    radial-gradient(circle at 82% 24%,
      transparent 0 5.1rem,
      rgba(54, 105, 122, 0.13) 5.16rem 5.24rem,
      transparent 5.3rem 8.1rem,
      rgba(54, 105, 122, 0.095) 8.16rem 8.24rem,
      transparent 8.3rem 11.4rem,
      rgba(54, 105, 122, 0.07) 11.46rem 11.54rem,
      transparent 11.6rem);
  opacity: 0.82;
  transform-origin: 82% 24%;
  animation: fresnel-ambient-breathe 22s ease-in-out infinite alternate;
}

/* Layered fog and coast contours make the shared horizon visible without adding page height. */
body::after {
  background:
    radial-gradient(ellipse 54% 19% at 13% 31%, rgba(184, 201, 204, 0.38), transparent 72%),
    radial-gradient(ellipse 47% 17% at 83% 58%, rgba(184, 201, 204, 0.3), transparent 74%),
    radial-gradient(ellipse 62% 36% at 50% 119%,
      transparent 66%,
      rgba(54, 105, 122, 0.105) 66.15% 66.45%,
      transparent 66.55% 77%,
      rgba(54, 105, 122, 0.08) 77.15% 77.45%,
      transparent 77.55%);
  opacity: 0.9;
  animation: harbor-fog-drift 38s ease-in-out infinite alternate;
}

/* Transform and opacity keep the slow ambient motion out of layout and paint geometry. */
@keyframes fresnel-ambient-breathe {
  from { opacity: 0.56; transform: scale(0.975); }
  to { opacity: 0.96; transform: scale(1.025); }
}
@keyframes harbor-fog-drift {
  from { transform: translate3d(-2.4%, 0.25%, 0); }
  to { transform: translate3d(2.4%, -0.4%, 0); }
}

/* Keep the atmosphere perceptible on phones while leaving the reading column clear. */
@media (max-width: 760px) {
  body::before { opacity: 0.58; }
  body::after { opacity: 0.68; animation-duration: 46s; }
}

/* Reduced-motion users keep a still atmosphere with no background animation. */
@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after {
    animation: none;
  }
}
img { display: block; max-width: 100%; height: auto; }
a {
  color: inherit;
  text-decoration-color: rgba(19, 56, 74, 0.42);
  text-decoration-thickness: 0.07em;
  text-underline-offset: 3px;
}
a:hover { color: var(--sea); }
/* Emphasize the two Google privacy controls without changing other prose links. */
a.privacy-google-link {
  color: var(--sea);
  font-weight: 700;
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}
a.privacy-google-link:hover,
a.privacy-google-link:focus-visible { color: #94651c; }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}
h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.18;
  text-wrap: balance;
}
p { margin: 0 0 1.1em; text-wrap: pretty; }
.container { width: min(100% - 48px, var(--w-wide)); margin-inline: auto; }
main { min-height: 55vh; }

/* ---------- small editorial labels ---------- */
.kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--type-label);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.45;
  text-transform: uppercase;
}
.kicker--muted { color: var(--ink-faint); }

/* ---------- shared navigation ---------- */
.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  background: rgba(248, 246, 239, 0.97);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 4px 18px rgba(19, 56, 74, 0.045);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.site-header::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--ink) 0 83%, var(--beacon) 83% 88%, var(--ink) 88%);
  content: "";
}
.datebar {
  display: block;
  padding: 5px 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.59rem;
  letter-spacing: 0.065em;
  line-height: 1.35;
  text-transform: uppercase;
}
.datebar-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header .container > .datebar { display: flex; justify-content: space-between; gap: 16px; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 11px 0; }
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: clamp(18px, 2.4vw, 32px); }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 46px; height: 46px; flex: none; border-radius: 10px; }
.brand-name {
  display: block;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.48rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
  white-space: nowrap;
}
.brand-name em { color: var(--accent); font-style: italic; }
.brand-tag {
  display: block;
  margin-top: 3px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.075em;
  line-height: 1.25;
  text-transform: uppercase;
}
.primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  transition: color var(--t-fast) ease, background-color var(--t-fast) ease, border-color var(--t-fast) ease;
}
.primary-nav a::after {
  position: absolute;
  right: 13px;
  bottom: 5px;
  left: 13px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--beacon);
  content: "";
  transition: transform var(--t-fast) ease;
}
.primary-nav a:hover { background: var(--sea-pale); color: var(--ink); }
.primary-nav a:hover:not([aria-current="page"])::after { transform: scaleX(1); }
/* The current section uses a beacon marker so its selected state stays clear without an underline. */
.primary-nav a[aria-current="page"] {
  padding-left: 24px;
  border-color: var(--rule-soft);
  background: var(--sea-pale);
  color: var(--ink);
  font-weight: 700;
}
.primary-nav a[aria-current="page"]::before {
  position: absolute;
  top: 50%;
  left: 11px;
  width: 5px;
  height: 5px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--accent);
  content: "";
}
.primary-nav a:focus-visible { border-radius: var(--radius-pill); outline-offset: 2px; }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 17px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
}
.nav-toggle:hover { background: var(--ink-soft); }

/* Shared action styles keep the primary route obvious without adding new behavior. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 48px;
  padding: 12px 21px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  box-shadow: inset 0 -3px 0 rgba(214, 163, 74, 0.9);
  text-decoration: none;
  transition: background var(--t-fast) ease, color var(--t-fast) ease, transform var(--t-fast) ease;
}
.button:hover { background: var(--paper); color: var(--ink); }
/* Keep the homepage hero call-to-action flat without changing other shared buttons. */
.hero-actions .button { box-shadow: none; }
.text-link { display: inline-flex; align-items: center; gap: 0.35em; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- footer ---------- */
.site-footer {
  margin-top: 88px;
  border-top: 3px solid var(--beacon);
  background: var(--ink);
  color: #d8e2e2;
}
.site-footer a { color: var(--paper); text-decoration-color: rgba(248, 246, 239, 0.42); }
.site-footer a:hover { color: var(--beacon); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.25fr;
  gap: 36px;
  padding: 52px 0 42px;
}
.footer-brand .brand-lockup { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.footer-mark { width: 44px; height: 44px; flex: none; border-radius: 9px; }
.footer-brand .brand-name { color: var(--paper); font-size: 1.34rem; }
.footer-brand .brand-name em { color: var(--beacon); }
.footer-brand p { max-width: 360px; margin-top: 15px; color: #d8e2e2; font-size: 0.9rem; }
.footer-col h2, .footer-col h3 {
  margin: 0 0 13px;
  color: var(--beacon);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-col ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer-col a, .footer-contact { font-size: 0.9rem; }
.footer-contact .mail {
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0 24px;
  border-top: 1px solid rgba(184, 201, 204, 0.28);
  color: #c4d1d3;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.6;
}

/* ---------- homepage introduction and lead stories ---------- */
.hero { padding: 46px 0 24px; }
.hero--home {
  position: relative;
  overflow: hidden;
  padding: clamp(42px, 5.5vw, 72px) 0 34px;
  border-bottom: 1px solid var(--rule);
  /* Keep the editorial split while letting the shared harbor atmosphere show through. */
  background: linear-gradient(105deg, rgba(248, 246, 239, 0.84) 0 56%, rgba(232, 238, 236, 0.62) 100%);
  text-align: left;
}
.hero--home .container {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
}
.hero-copy { position: relative; z-index: 1; min-width: 0; }
/* The SVG owns its scene motion and reduced-motion fallback; this rule only controls layout. */
.hero-visual { width: 86%; max-width: 560px; justify-self: end; margin: -16px -12px -24px 0; }
.hero-visual img { display: block; width: 100%; height: auto; }
.hero--home .kicker { margin-bottom: 17px; color: var(--accent); }
.hero--home h1 {
  max-width: 760px;
  margin: 0 0 22px;
  font-size: clamp(3rem, 4.8vw, 4.5rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
}
.hero-intro { max-width: 680px; margin: 0; color: var(--ink-soft); font-size: var(--type-reading); line-height: 1.62; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 18px 24px; margin-top: 27px; }
.feature-band { padding: 14px 0 8px; }
.feature-heading { margin-bottom: 14px; }
.feature-heading .kicker { display: inline-flex; align-items: center; gap: 9px; }
.feature-heading .kicker::before { width: 7px; height: 7px; border-radius: 50%; background: var(--beacon); content: ""; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(270px, 0.8fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.lead-card { display: block; text-decoration: none; }
.lead-card:hover h2, .side-item:hover h3, .acard:hover h3 { color: var(--sea); text-decoration: none; }
.plate {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper-card);
  box-shadow: var(--shadow-1);
}
.plate img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 280ms ease; }
.lead-card:hover .plate img, .acard:hover .plate img { transform: scale(1.015); }
.acard:hover .plate { border-color: var(--beacon); }
.plate::after { display: none; }
.plate-no {
  position: absolute;
  z-index: 1;
  top: 14px;
  right: 14px;
  padding: 6px 11px;
  border: 1px solid rgba(248, 246, 239, 0.72);
  border-radius: var(--radius-pill);
  background: rgba(19, 56, 74, 0.92);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}
.lead-card h2 { margin: 19px 0 11px; font-size: clamp(2rem, 4.2vw, 3.45rem); line-height: 1.04; }
.standfirst { color: var(--ink-soft); font-size: 1.08rem; line-height: 1.58; }
.byline { margin: 14px 0 0; color: var(--ink-faint); font-family: var(--font-mono); font-size: 0.69rem; line-height: 1.5; }
.byline strong { color: var(--ink-soft); font-weight: 700; }
.hero-side { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.side-item { display: block; padding: 18px 1px; border-bottom: 1px solid var(--rule); text-decoration: none; }
.side-item h3 { margin: 6px 0 0; font-size: 1.3rem; line-height: 1.18; }
.side-item .kicker { margin-bottom: 6px; }
.side-item.archive-link { display: flex; align-items: center; justify-content: space-between; color: var(--ink); font-size: 0.82rem; font-weight: 700; }
.side-item.archive-link:hover { color: var(--ink-soft); }
.hero-side-title { padding: 14px 1px 4px; color: var(--ink-faint); font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.07em; text-transform: uppercase; }

/* The home lead gives one story room to breathe before the smaller archive picks. */
.home-lead-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: clamp(24px, 4vw, 54px);
  text-decoration: none;
}
.home-lead-card .plate img { aspect-ratio: 4 / 3; }
.home-lead-copy h2 { margin: 9px 0 13px; font-size: clamp(2rem, 3.3vw, 3.2rem); line-height: 1.06; }
.home-lead-card:hover h2 { color: var(--sea); text-decoration: none; }
.home-lead-copy .standfirst { margin-bottom: 0; }

/* Station atlas markers communicate broad regions only; the cards carry the facts. */
.atlas-heading { align-items: end; }
.atlas-heading > div .kicker { margin-bottom: 6px; }
.atlas-heading h2 { margin-bottom: 0; }
.atlas-scale-note { padding-bottom: 3px; color: var(--ink-faint); font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.035em; }
.atlas-layout { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: 22px; }
.atlas-map { min-width: 0; padding: 10px; border: 1px solid var(--rule); border-radius: 9px; background: var(--paper-deep); }
.atlas-map-drawing { display: block; width: 100%; height: auto; }
.atlas-water { fill: #e1ebec; }
.atlas-graticule path { fill: none; stroke: rgba(54, 105, 122, 0.18); stroke-width: 1; stroke-dasharray: 3 7; }
.atlas-continent, .atlas-island { fill: var(--paper); stroke: #9aafb0; stroke-width: 2; stroke-linejoin: round; }
.atlas-coast-detail { fill: none; stroke: #718f94; stroke-width: 2.5; stroke-linecap: round; }
.atlas-route { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-dasharray: 5 7; stroke-linecap: round; }
.atlas-marker circle { stroke: var(--paper-card); stroke-width: 3; }
.atlas-marker text { fill: var(--paper-card); font-family: var(--font-mono); font-size: 14px; font-weight: 700; text-anchor: middle; }
.atlas-marker--one circle { fill: var(--ink); }
.atlas-marker--two circle { fill: var(--sea); }
.atlas-marker--three circle { fill: var(--accent); }
.atlas-marker--four circle { fill: #527a82; }
.atlas-marker--five circle { fill: #8a6953; }
.atlas-marker--six circle { fill: #a77b31; }
.atlas-caption { margin: 2px 5px 8px; color: var(--ink-faint); font-size: 0.73rem; line-height: 1.45; }
.atlas-legend { display: flex; flex-wrap: wrap; gap: 9px 17px; margin: 0 5px 3px; padding: 0; color: var(--ink-soft); font-size: 0.76rem; list-style: none; }
.atlas-legend li { display: inline-flex; align-items: center; gap: 7px; }
.atlas-legend-number { display: inline-grid; width: 21px; aspect-ratio: 1; place-items: center; border-radius: 50%; color: var(--paper-card); font-family: var(--font-mono); font-size: 0.62rem; line-height: 1; }
.atlas-legend li:nth-child(1) .atlas-legend-number { background: var(--ink); }
.atlas-legend li:nth-child(2) .atlas-legend-number { background: var(--sea); }
.atlas-legend li:nth-child(3) .atlas-legend-number { background: var(--accent); }
.atlas-legend li:nth-child(4) .atlas-legend-number { background: #527a82; }
.atlas-legend li:nth-child(5) .atlas-legend-number { background: #8a6953; }
.atlas-legend li:nth-child(6) .atlas-legend-number { background: #a77b31; }
.station-cards.atlas-stations { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.atlas-station-card .sc-head { align-items: flex-start; padding: 10px 13px 9px; font-size: 0.59rem; }
.atlas-station-card .sc-head > span:first-child { min-width: 0; }
.atlas-station-card .sc-body { padding: 11px 14px 13px; }
.atlas-station-card .sc-body a { margin-bottom: 8px; font-size: 1.18rem; }
.atlas-station-card .sc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.atlas-station-card .sc-grid .row { display: block; min-width: 0; }
.atlas-station-card .sc-grid .k { display: block; margin-bottom: 2px; font-size: 0.55rem; }
.atlas-station-card .sc-grid .v { display: block; font-size: 0.72rem; line-height: 1.35; }

/* A small signal diagram adds a useful reference point without adding another story list. */
/* Keep the signal guide's left edge consistent with its neutral card outline. */
.signal-guide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr); align-items: center; gap: clamp(24px, 5vw, 70px); padding: clamp(24px, 4vw, 42px); border: 1px solid var(--rule); border-left: 1px solid var(--rule); border-radius: 9px; background: var(--paper-deep); }
.signal-guide-copy .kicker { margin-bottom: 7px; }
.signal-guide-copy h2 { margin: 0 0 9px; font-size: clamp(2rem, 3.5vw, 3rem); }
.signal-guide-copy p:not(.kicker) { max-width: 38rem; margin-bottom: 13px; color: var(--ink-soft); }
.signal-guide-copy .more { color: var(--ink); }
/* Light observation panel: only the small lamp and timeline animate. */
.signal-cycle { min-width: 0; padding: 20px; border: 1px solid var(--rule); border-radius: 7px; background: var(--paper-card); }
.signal-observer { display: grid; justify-items: center; gap: 10px; padding: 22px 12px; margin-bottom: 16px; border-radius: 5px; background: #12333f; color: #f7f5ed; }
.signal-lamp { display: grid; place-items: center; width: 86px; height: 86px; border: 1px solid #70919a; border-radius: 50%; background: #0b242e; }
.signal-lamp span { width: 44px; height: 44px; border-radius: 50%; background: #fffefa; box-shadow: 0 0 20px 8px #fff6d075; opacity: 0; }
.signal-lamp.is-lit span { opacity: 1; }
.signal-phase { margin: 0; min-height: 1.5em; font: 700 0.82rem/1.5 var(--font-sans); text-align: center; }
.signal-clock { font: 0.85rem/1.4 var(--font-mono); font-variant-numeric: tabular-nums; }
.signal-cycle-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 14px; margin-bottom: 12px; }
.signal-cycle-button { min-height: 44px; padding: 9px 14px; border: 1px solid var(--ink); border-radius: var(--radius-pill); background: var(--ink); color: var(--paper); font: 700 0.75rem/1.2 var(--font-sans); cursor: pointer; }
.signal-cycle-button:hover { background: var(--sea); color: #fff; }
.signal-cycle-button:focus-visible { outline: 3px solid var(--beacon); outline-offset: 3px; }
.signal-cycle-status { flex: 1 1 180px; margin: 0; color: var(--ink-soft); font-size: 0.75rem; line-height: 1.5; }
.signal-cycle-track { position: relative; height: 4px; margin: 16px 0 8px; background: var(--rule); }
.signal-cycle-track::after { position: absolute; left: 50%; top: -3px; width: 2px; height: 10px; background: var(--ink-soft); content: ""; }
.signal-cycle-progress { position: absolute; inset: 0; background: var(--sea); transform: scaleX(0); transform-origin: left center; }
.signal-cycle.is-playing .signal-cycle-progress { will-change: transform; }
.signal-cycle-foot { display: flex; justify-content: space-between; gap: 8px; color: var(--ink-soft); font: 0.65rem/1.5 var(--font-mono); }
.signal-disclaimer { margin: 14px 0 0; font-size: 0.75rem; line-height: 1.5; color: var(--ink-soft); }


/* Three navigation signals are explanatory modules, separate from the article cards. */
.signal-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.signal-type { position: relative; min-width: 0; padding: 22px 22px 21px; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper-card); }
.signal-type-mark { display: inline-grid; width: 40px; height: 40px; margin-bottom: 25px; place-items: center; border: 1px solid var(--rule); border-radius: 50%; color: var(--sea); font-family: var(--font-mono); font-size: 0.64rem; }
.signal-type-mark--light { color: #866422; background: rgba(214, 163, 74, 0.13); }
.signal-type-mark--radar { color: var(--sea); background: rgba(75, 119, 129, 0.1); }
.signal-type-mark--ais { color: #4f6d5e; background: rgba(93, 133, 108, 0.1); }
.signal-type .kicker { margin-bottom: 6px; }
.signal-type h3 { margin: 0 0 9px; font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.15; }
.signal-type p:not(.kicker) { min-height: 4.5em; margin: 0 0 16px; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.55; }
.signal-type .more { font-size: 0.8rem; }

.home-endmatter { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; }
.home-endmatter .button { white-space: nowrap; }

/* ---------- article collections and reusable content modules ---------- */
.section-band { padding: clamp(48px, 6vw, 82px) 0 0; }
.band-head {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 13px;
  padding-bottom: 13px;
  border-bottom: 0;
}
.band-head::after { position: absolute; right: 0; bottom: 0; left: 0; height: 1px; background: var(--rule); content: ""; }
.band-head h2 { position: relative; margin: 0; padding-left: 16px; font-size: clamp(1.7rem, 2.6vw, 2.25rem); line-height: 1.1; }
.band-head h2::before { position: absolute; top: 0.13em; bottom: 0.13em; left: 0; width: 3px; background: var(--beacon); content: ""; }
.band-head .more, .more {
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.band-head .more:hover, .more:hover { text-decoration: underline; text-underline-offset: 4px; }
.light-list { margin: 0; padding: 0; list-style: none; }
.light-list li { border-bottom: 1px solid var(--rule-soft); }
.light-list a {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 16px;
  padding: 15px 2px;
  text-decoration: none;
}
.light-list a:hover .ll-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.light-list .ll-date { color: var(--ink-faint); font-family: var(--font-mono); font-size: 0.68rem; font-variant-numeric: tabular-nums; }
.light-list .ll-title { font-family: var(--font-serif); font-size: 1.18rem; font-weight: 500; line-height: 1.32; }
.light-list .ll-cat { color: var(--ink-faint); font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.035em; text-transform: uppercase; }
.card-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.acard { display: block; min-width: 0; overflow: hidden; border-radius: var(--radius-md); text-decoration: none; }
.acard .plate { border-radius: var(--radius-md); }
.acard .plate img { aspect-ratio: 4 / 3; }
.acard-body { display: block; padding: 17px 2px 0; }
.acard h3 { margin: 8px 0 8px; font-size: 1.36rem; line-height: 1.16; }
.acard p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; line-height: 1.55; }
.split-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; gap: clamp(30px, 5vw, 64px); }
.split-band > * { min-width: 0; }
.split-band .light-list .ll-cat { display: none; }
.split-band .light-list a { grid-template-columns: 105px minmax(0, 1fr); }
.split-band .can-stick { position: sticky; }
.band-side, .band-side-rail { min-width: 0; }
.cat-notes { margin-top: 30px; }
.cat-notes .band-head { margin-bottom: 0; }
.cat-notes ul { margin: 0; padding: 0; border-top: 1px solid var(--rule); list-style: none; }
.cat-notes li { border-bottom: 1px solid var(--rule-soft); }
.cat-notes li a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 2px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-decoration: none;
}
.cat-notes li a:hover { color: var(--ink); }
.cat-notes .cn-count, .cat-notes .cn-all { color: var(--ink-faint); font-family: var(--font-mono); font-size: 0.64rem; white-space: nowrap; }
.milestones ul li { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 13px; padding: 11px 0; }
.milestones .ms-year { padding-top: 2px; color: var(--ink); font-family: var(--font-mono); font-size: 0.72rem; font-variant-numeric: tabular-nums; }
.milestones .ms-t { color: var(--ink); font-family: var(--font-sans); font-size: 0.9rem; }
.milestones .ms-t a, .glossary .gl-grid li a { color: inherit; text-decoration: none; }
.milestones .ms-t a:hover, .glossary .gl-grid li a:hover { text-decoration: underline; text-underline-offset: 3px; }
.milestones .ms-p { display: block; margin-top: 3px; color: var(--ink-faint); font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.02em; }
.glossary .gl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
.glossary .gl-grid li a { display: block; padding: 11px 2px; border-bottom: 1px solid var(--rule-soft); font-family: var(--font-sans); font-size: 0.9rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  background: var(--paper-card);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  text-decoration: none;
}
.chip:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.station-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.station-card {
  position: relative;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper-card);
  box-shadow: none;
}
.station-card::before { display: none; }
.station-card .sc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 17px 12px;
  border-bottom: 1px solid var(--rule-soft);
  background: var(--paper-deep);
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}
.station-card .sc-head .num { color: var(--accent); font-weight: 700; }
.station-card .sc-body { padding: 15px 17px 17px; }
.station-card .sc-body a { display: block; margin-bottom: 12px; font-family: var(--font-serif); font-size: 1.36rem; font-weight: 500; line-height: 1.15; text-decoration: none; }
.station-card .sc-grid { display: grid; gap: 7px; font-family: var(--font-sans); font-size: 0.82rem; }
.sc-grid .row { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 10px; }
.sc-grid .k { padding-top: 1px; color: var(--ink-faint); font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.035em; text-transform: uppercase; }
.sc-grid .v { color: var(--ink); }
.sc-note { margin: 13px 0 0; padding-top: 11px; border-top: 1px solid var(--rule-soft); color: var(--ink-soft); font-size: 0.78rem; line-height: 1.5; }
/* The closing method note uses the same quiet outline instead of an amber stripe. */
.note-strip { display: flex; align-items: flex-start; gap: 17px; padding: 20px 22px; border: 1px solid var(--rule); border-left: 1px solid var(--rule); border-radius: 8px; background: var(--paper-deep); }
.note-strip .ns-icon { width: 32px; height: 32px; flex: none; margin-top: 2px; opacity: 0.72; }
.note-strip p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }
.note-strip a { color: var(--ink); font-weight: 700; }

/* ---------- history timeline ---------- */
.timeline { position: relative; margin: 11px 0 4px; padding-top: 8px; }
.timeline .tl-track { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.timeline .tl-track::before { position: absolute; top: 9px; right: 0; left: 0; height: 1px; background: var(--rule); content: ""; }
.tl-item { position: relative; padding-top: 26px; }
.tl-item::before { position: absolute; top: 3px; left: 0; width: 13px; height: 13px; border: 2px solid var(--paper); border-radius: 50%; background: var(--beacon); box-shadow: 0 0 0 1px var(--ink); content: ""; }
.tl-item .tl-year { color: var(--ink); font-family: var(--font-mono); font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.tl-item a { display: block; margin-top: 5px; font-family: var(--font-serif); font-size: 1rem; line-height: 1.3; text-decoration: none; }
.tl-item a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tl-item .tl-place { display: block; margin-top: 4px; color: var(--ink-faint); font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.035em; text-transform: uppercase; }

/* ---------- breadcrumbs and reading pages ---------- */
.breadcrumb { padding: 22px 0 0; color: var(--ink-faint); font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.035em; text-transform: uppercase; }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb .sep { margin: 0 8px; color: #a9a79c; }
.article-head { max-width: 820px; margin: 0 auto; padding: 39px 0 9px; text-align: left; }
.article-head h1 { max-width: 800px; margin: 8px 0 18px; font-size: clamp(2.6rem, 5.6vw, 4.75rem); letter-spacing: -0.035em; line-height: 1.04; }
.article-head .standfirst { max-width: 720px; margin: 0; font-size: 1.17rem; line-height: 1.58; }
.article-cover { max-width: 1050px; margin: 31px auto 6px; }
.article-cover img { width: 100%; max-height: 68vh; border: 1px solid var(--rule); border-radius: 8px; object-fit: cover; box-shadow: var(--shadow-1); }
.article-cover figcaption { padding: 11px 2px 0; color: var(--ink-faint); font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.01em; line-height: 1.55; }
.article-cover figcaption .credit { text-transform: uppercase; letter-spacing: 0.045em; }
.article-body { max-width: var(--w-text); margin: 0 auto; padding: 28px 0 8px; font-size: var(--type-reading); line-height: 1.72; }
.article-body > p:first-of-type::first-letter { float: none; padding: 0; color: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; }
.article-body h2 { margin: 1.8em 0 0.52em; font-size: 1.95rem; line-height: 1.14; }
.article-body h3 { margin: 1.45em 0 0.4em; font-size: 1.43rem; line-height: 1.2; }
.article-body ul, .article-body ol { margin: 0 0 1.15em; padding-left: 1.4em; }
.article-body li { margin-bottom: 0.45em; }
.article-body blockquote { margin: 1.7em 0; padding: 14px 18px; border-left: 3px solid var(--beacon); background: var(--paper-deep); color: var(--ink-soft); font-family: var(--font-serif); font-size: 1.22em; line-height: 1.45; }
.log-note { margin: 1.8em 0; padding: 19px 21px; border: 1px solid var(--rule); border-radius: var(--radius-md); background: var(--paper-deep); font-size: 0.94rem; }
.log-note .ln-label { display: block; margin-bottom: 8px; color: var(--ink-faint); font-family: var(--font-mono); font-size: 0.63rem; letter-spacing: 0.06em; text-transform: uppercase; }
.log-note p:last-child { margin-bottom: 0; }
.article-body .station-card, .article-foot .station-card { max-width: 100%; }
.article .station-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 2em 0; }
.sources-box { margin: 2.5em 0 0; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper-card); overflow: hidden; }
.sources-box .sb-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 20px; border-bottom: 1px solid var(--rule); background: var(--paper-deep); }
.sources-box .sb-head h2 { margin: 0; font-family: var(--font-serif); font-size: 1.35rem; }
.sources-box .sb-head .sb-tag { color: var(--ink-faint); font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.05em; text-transform: uppercase; }
.sources-box ol { margin: 0; padding: 18px 22px 18px 44px; font-size: 0.88rem; }
.sources-box li { margin-bottom: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.sources-box .src-meta { display: block; margin-top: 3px; color: var(--ink-faint); font-family: var(--font-mono); font-size: 0.66rem; overflow-wrap: anywhere; }
.sources-box a { overflow-wrap: anywhere; }
.article-foot { max-width: var(--w-wide); margin: 0 auto; padding: 10px 0 0; }
.related-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 16px 0 8px; }

/* ---------- section, archive, and legal pages ---------- */
.cat-hero { padding: 32px 0 38px; border-bottom: 1px solid var(--rule); }
.cat-hero h1 { max-width: 950px; margin: 7px 0 13px; font-size: clamp(2.9rem, 6vw, 5.2rem); letter-spacing: -0.045em; line-height: 1.01; }
.cat-hero .cat-desc { max-width: 720px; margin: 0; color: var(--ink-soft); font-size: 1.08rem; line-height: 1.6; }
.cat-count { margin: 16px 0 0; color: var(--ink-faint); font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.035em; text-transform: uppercase; }
.archive-block { margin-top: 40px; }
.archive-block h2 { display: flex; align-items: baseline; gap: 10px; padding-bottom: 11px; border-bottom: 1px solid var(--rule); font-size: 1.7rem; }
.static-body { max-width: var(--w-text); margin: 0 auto; padding: 31px 0 0; }
.static-body h2 { margin: 1.7em 0 0.48em; font-size: 1.8rem; line-height: 1.15; }
.static-body h3 { margin: 1.35em 0 0.4em; font-size: 1.35rem; line-height: 1.2; }
.static-body address { padding: 15px 18px; border: 1px solid var(--rule); border-radius: var(--radius-md); background: var(--paper-deep); font-family: var(--font-sans); font-size: 0.92rem; font-style: normal; }
.static-meta { color: var(--ink-faint); font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.02em; line-height: 1.65; }
.contact-table { width: 100%; margin: 1.2em 0 1.6em; border-collapse: collapse; font-size: 0.94rem; }
.contact-table th, .contact-table td { padding: 13px 14px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.contact-table th { width: 34%; color: var(--ink-faint); font-family: var(--font-mono); font-size: 0.64rem; font-weight: 400; letter-spacing: 0.035em; text-transform: uppercase; }
.contact-table .mail { color: var(--ink); font-family: var(--font-sans); font-size: 0.9rem; font-weight: 700; overflow-wrap: anywhere; }
.error-hero { padding: 76px 0 52px; text-align: center; }
.error-hero h1 { margin: 10px auto 17px; font-size: clamp(3.2rem, 7vw, 5.5rem); }
.error-hero .err-code { color: var(--ink-faint); font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
.error-hero p { max-width: 580px; margin: 0 auto 22px; color: var(--ink-soft); }
.mt-0 { margin-top: 0; }
.center { text-align: center; }

/* Keep the skip link hidden visually until keyboard focus, but always available to assistive technology. */
.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  transform: translateY(calc(-100% - 14px));
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- repeatable viewport reveals ---------- */
/*
   The runtime owns opacity and transform keyframes through the Web Animations
   API. These tokens keep the motion language in CSS, where responsive values
   can be recalculated when the viewport crosses a breakpoint.
*/
.viewport-reveal {
  --viewport-reveal-x: 0px;
  --viewport-reveal-y: 26px;
  --viewport-reveal-tilt: 0.9deg;
  --viewport-reveal-scale: 0.988;
  --viewport-reveal-origin: 50% 78%;
  transform-origin: var(--viewport-reveal-origin);
}

/* Reading landmarks use a shorter, quieter lift than cards and feature blocks. */
.viewport-reveal--content {
  --viewport-reveal-y: 15px;
  --viewport-reveal-tilt: 0.35deg;
  --viewport-reveal-scale: 0.997;
  --viewport-reveal-origin: 50% 84%;
}

/* Give the large home atlas a clear lift while keeping its map and legend grouped. */
.viewport-reveal--atlas {
  --viewport-reveal-y: 34px;
  --viewport-reveal-tilt: 0deg;
  --viewport-reveal-scale: 0.986;
  --viewport-reveal-origin: 50% 88%;
}

/* Card groups alternate direction on wide layouts to establish reading order. */
.viewport-reveal--from-left {
  --viewport-reveal-x: -24px;
  --viewport-reveal-y: 18px;
  --viewport-reveal-origin: 72% 78%;
}
.viewport-reveal--from-right {
  --viewport-reveal-x: 24px;
  --viewport-reveal-y: 18px;
  --viewport-reveal-origin: 28% 78%;
}

/* Horizontal movement is removed on phones so content stays inside its gutter. */
@media (max-width: 760px) {
  .viewport-reveal--from-left,
  .viewport-reveal--from-right {
    --viewport-reveal-x: 0px;
    --viewport-reveal-origin: 50% 78%;
  }
}

/* If the runtime is skipped or motion is disabled, every target remains readable. */
@media (prefers-reduced-motion: reduce) {
  .viewport-reveal,
  .viewport-reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* ---------- responsive editorial layouts ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .station-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline .tl-track { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 24px; }
  .timeline .tl-track::before { display: none; }
  .tl-item { padding-top: 0; padding-left: 22px; }
  .tl-item::before { top: 3px; }
}
@media (max-width: 940px) {
  :root { --header-h: 68px; }
  .datebar { display: none; }
  .masthead { padding: 10px 0; }
  .masthead-row { flex-wrap: wrap; gap: 0; }
  .brand { min-height: 42px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 1.08rem; }
  .brand-tag { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  /* Keep the mobile menu in the render tree so it can animate in both directions. */
  .primary-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    /* Keep every entry reachable on short landscape screens and at text zoom.
       The JS controller measures the sticky header's current bottom edge. */
    max-height: calc(100vh - var(--nav-top, 68px));
    max-height: calc(100dvh - var(--nav-top, 68px));
    overflow-y: auto;
    overscroll-behavior-y: contain;
    display: block;
    padding: 10px 24px 18px;
    border-bottom: 1px solid var(--rule);
    background: var(--paper);
    box-shadow: var(--shadow-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transform-origin: top center;
    pointer-events: none;
    transition:
      opacity 180ms ease,
      transform 240ms cubic-bezier(0.16, 1, 0.3, 1),
      visibility 0s linear 240ms;
  }
  .primary-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition:
      opacity 180ms ease,
      transform 240ms cubic-bezier(0.16, 1, 0.3, 1),
      visibility 0s;
  }
  .primary-nav ul { align-items: stretch; flex-direction: column; gap: 2px; }
  .primary-nav a { padding: 11px 12px; font-size: 0.92rem; }
  .station-cards.atlas-stations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  /* Preserve the open/closed states while removing the menu's motion. */
  .primary-nav,
  .primary-nav.open {
    transition: none;
    transform: none;
  }
}
@media (max-width: 820px) {
  .station-cards.atlas-stations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .signal-types { grid-template-columns: minmax(0, 1fr); }
  .signal-type p:not(.kicker) { min-height: 0; }
}
@media (max-width: 760px) {
  .container { width: min(100% - 40px, var(--w-wide)); }
  .hero--home .container { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .hero-visual { width: min(100%, 600px); justify-self: center; margin: -8px auto -32px; }
  .hero-grid, .split-band { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .home-lead-card { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .home-lead-card .plate img { aspect-ratio: 16 / 10; }
  .hero-side { border-top: 1px solid var(--rule); }
  .split-band .can-stick { position: static; }
  .card-row, .related-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .light-list a, .split-band .light-list a { grid-template-columns: 100px minmax(0, 1fr); }
  .light-list .ll-cat { display: none; }
  .station-cards.atlas-stations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .signal-guide { grid-template-columns: minmax(0, 1fr); }
  .home-endmatter { grid-template-columns: minmax(0, 1fr); }
  .home-endmatter .button { justify-self: start; }
}
@media (max-width: 560px) {
  :root { --header-h: 64px; }
  body { font-size: 0.98rem; }
  .container { width: min(100% - 36px, var(--w-wide)); }
  .hero--home { padding: 56px 0 35px; }
  .hero--home h1 { font-size: clamp(2.65rem, 11vw, 3.8rem); letter-spacing: -0.04em; }
  .hero-intro { font-size: 1rem; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 15px; }
  .hero-visual { width: min(100%, 420px); margin: -5px auto -28px; }
  .button { width: 100%; }
  .text-link { align-self: flex-start; }
  .atlas-heading { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .atlas-scale-note { justify-self: start; padding-bottom: 0; }
  .feature-band { padding-top: 7px; }
  .lead-card h2 { font-size: 2rem; }
  .section-band { padding-top: 50px; }
  .band-head { align-items: flex-start; }
  .band-head .more { padding-top: 5px; }
  .card-row, .related-row, .station-cards, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .station-cards.atlas-stations { grid-template-columns: minmax(0, 1fr); }
  .atlas-station-card .sc-head .num { white-space: nowrap; }
  .atlas-station-card .sc-grid { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .atlas-station-card .sc-grid .row { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 10px; }
  .atlas-station-card .sc-grid .k { margin-bottom: 0; }
  .acard .plate img { aspect-ratio: 16 / 10; }
  .light-list a, .split-band .light-list a { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 2px; }
  .light-list .ll-date { order: -1; }
  .timeline .tl-track { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .glossary .gl-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { gap: 26px; padding: 40px 0 28px; }
  .footer-legal { flex-direction: column; }
  .article-head { padding-top: 26px; text-align: left; }
  .article-head h1 { font-size: clamp(2.35rem, 11vw, 3.6rem); }
  .article-head .standfirst { font-size: 1.05rem; }
  .article-cover { margin-top: 22px; }
  .article-body { padding-top: 22px; font-size: 1rem; line-height: 1.72; }
  .article-body h2 { font-size: 1.65rem; }
  .article-body h3 { font-size: 1.28rem; }
  .article .station-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .cat-hero { padding-top: 19px; }
  .cat-hero h1 { font-size: clamp(2.7rem, 12vw, 4rem); }
  .contact-table th { display: block; width: 100%; padding: 13px 14px 3px; }
  .contact-table td { display: block; width: 100%; padding-top: 3px; }
  .sc-grid .row { grid-template-columns: 92px minmax(0, 1fr); }
  .note-strip { gap: 13px; padding: 17px; }
  .plate-no { top: 9px; right: 9px; font-size: 0.57rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before, body::after { animation: none !important; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

