:root {
  color-scheme: dark;
  --bg: #0b0e0c;
  --bg-deep: #070908;
  --panel: #131713;
  --panel-strong: #181d19;
  --panel-soft: #101310;
  --ink: #f4f5ef;
  --ink-soft: #d7dad2;
  --muted: #989f97;
  --line: #2d342e;
  --line-bright: #434b43;
  --accent: #d8ff45;
  --accent-ink: #11140d;
  --cyan: #72ddff;
  --violet: #b69cff;
  --orange: #ffb44a;
  --red: #ff626b;
  --green: #4ee394;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --shadow: 0 24px 80px rgba(0, 0, 0, .28);
  --content: 1180px;
  --header-height: 72px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 8% 2%, rgba(216, 255, 69, .065), transparent 28rem),
    radial-gradient(circle at 92% 14%, rgba(114, 221, 255, .05), transparent 30rem),
    var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
  content: "";
  pointer-events: none;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  color: inherit;
}

img,
svg,
object,
iframe {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 10px;
  left: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  transform: translateY(-150%);
  transition: transform .18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  height: calc(var(--header-height) + var(--safe-top));
  padding-top: var(--safe-top);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: rgba(11, 14, 12, .86);
  backdrop-filter: blur(18px) saturate(130%);
}

.header-inner {
  display: flex;
  align-items: center;
  width: min(var(--content), calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  padding-right: var(--safe-right);
  padding-left: var(--safe-left);
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 11px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(216, 255, 69, .16), 0 8px 24px rgba(216, 255, 69, .08);
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 14px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.brand-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  gap: 3px;
  align-items: center;
  margin-left: auto;
}

.desktop-nav a {
  position: relative;
  padding: 10px 11px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease;
}

.desktop-nav a:hover {
  background: rgba(255,255,255,.05);
  color: var(--ink);
}

.desktop-nav a[aria-current="page"] {
  background: var(--accent);
  color: var(--accent-ink);
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.header-meta::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(78, 227, 148, .09);
  content: "";
}

main {
  min-height: calc(100vh - var(--header-height) - 120px);
}

.site-footer {
  width: min(var(--content), calc(100% - 40px));
  margin: 72px auto 0;
  padding: 28px var(--safe-right) 34px var(--safe-left);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.footer-mark {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: var(--ink-soft);
  font-weight: 750;
  letter-spacing: .04em;
}

.footer-mark::before {
  width: 18px;
  height: 3px;
  background: var(--accent);
  content: "";
}

.mobile-dock {
  display: none;
}

.icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.button {
  display: inline-flex;
  min-height: 48px;
  justify-content: center;
  gap: 9px;
  align-items: center;
  padding: 11px 17px;
  border: 1px solid var(--line-bright);
  border-radius: 13px;
  background: var(--panel-strong);
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease;
}

.button:hover {
  border-color: #5b655b;
  background: #202620;
  transform: translateY(-1px);
}

.button--primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.button--primary:hover {
  border-color: #e4ff7c;
  background: #e4ff7c;
}

.button--ghost {
  background: transparent;
}

.button--small {
  min-height: 42px;
  padding: 8px 13px;
  font-size: 13px;
}

.button[disabled] {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}

.eyebrow {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 2px;
  background: currentColor;
  content: "";
}

.app-loading {
  display: flex;
  min-height: 52vh;
  justify-content: center;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.app-loading span {
  width: 12px;
  height: 12px;
  border: 2px solid var(--line-bright);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Landing page */
.home-shell,
.page-shell {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
  padding-right: var(--safe-right);
  padding-left: var(--safe-left);
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  min-height: min(680px, calc(100vh - var(--header-height)));
  padding: 72px 0 66px;
}

.hero-status {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 24px;
  padding: 7px 11px;
  border: 1px solid rgba(216,255,69,.2);
  border-radius: 999px;
  background: rgba(216,255,69,.06);
  color: #dffb76;
  font-size: 11px;
  font-weight: 780;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(78,227,148,.09);
}

.home-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(54px, 8vw, 104px);
  font-weight: 900;
  letter-spacing: -.065em;
  line-height: .89;
  text-wrap: balance;
}

.home-hero h1 em {
  display: block;
  color: var(--accent);
  font-style: normal;
}

.hero-lead {
  max-width: 610px;
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.field-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(140deg, rgba(216,255,69,.1), transparent 38%),
    var(--panel);
  box-shadow: var(--shadow);
}

.field-card::before,
.field-card::after {
  position: absolute;
  border: 1px solid rgba(216,255,69,.15);
  border-radius: 50%;
  content: "";
}

.field-card::before {
  width: 330px;
  height: 330px;
  right: -80px;
  bottom: -80px;
}

.field-card::after {
  width: 210px;
  height: 210px;
  right: -20px;
  bottom: -20px;
}

.field-card__grid {
  position: absolute;
  inset: 0;
  opacity: .28;
  background-image:
    linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(135deg, black, transparent 75%);
}

.field-card__content {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  min-height: 430px;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
}

.field-card__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.field-card__code {
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.field-card__pin {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
}

.field-card__pin .icon {
  width: 25px;
  height: 25px;
}

.field-card__bottom strong {
  display: block;
  max-width: 250px;
  font-size: 32px;
  letter-spacing: -.045em;
  line-height: 1.05;
}

.field-card__bottom p {
  max-width: 260px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.section-intro {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin: 18px 0 24px;
}

.section-intro h2 {
  max-width: 680px;
  margin: 8px 0 0;
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -.045em;
  line-height: 1;
}

.section-intro p:last-child {
  max-width: 340px;
  margin: 0;
  color: var(--muted);
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.route-card {
  --card-accent: var(--accent);
  position: relative;
  display: flex;
  min-height: 250px;
  overflow: hidden;
  flex-direction: column;
  grid-column: span 4;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}

.route-card::after {
  position: absolute;
  width: 140px;
  height: 140px;
  right: -70px;
  bottom: -70px;
  border: 1px solid color-mix(in srgb, var(--card-accent) 28%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 28px color-mix(in srgb, var(--card-accent) 3%, transparent);
  content: "";
}

.route-card:hover {
  border-color: color-mix(in srgb, var(--card-accent) 45%, var(--line));
  background: #171c18;
  transform: translateY(-4px);
}

.route-card--wide {
  grid-column: span 8;
}

.route-card--full {
  grid-column: span 12;
}

.route-card--cyan { --card-accent: var(--cyan); }
.route-card--orange { --card-accent: var(--orange); }
.route-card--violet { --card-accent: var(--violet); }

.route-card__top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.route-card__number {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  letter-spacing: .08em;
}

.route-card__icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 13px;
  background: color-mix(in srgb, var(--card-accent) 12%, transparent);
  color: var(--card-accent);
}

.route-card__content {
  margin-top: auto;
  padding-top: 36px;
}

.route-card h3 {
  margin: 0;
  font-size: clamp(25px, 3vw, 36px);
  letter-spacing: -.04em;
  line-height: 1;
}

.route-card p {
  max-width: 420px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.route-card__arrow {
  position: absolute;
  z-index: 1;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--card-accent);
  transition: transform .2s ease, background-color .2s ease;
}

.route-card:hover .route-card__arrow {
  background: color-mix(in srgb, var(--card-accent) 12%, transparent);
  transform: translate(2px, -2px);
}

/* Shared page headers */
.page-shell {
  padding-top: 42px;
}

.back-link {
  display: inline-flex;
  min-height: 42px;
  gap: 8px;
  align-items: center;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover {
  color: var(--ink);
}

.back-link .icon {
  width: 18px;
  height: 18px;
}

.page-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  margin-bottom: 36px;
  padding: 0 0 34px;
  border-bottom: 1px solid var(--line);
}

.page-hero::after {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 92px;
  height: 2px;
  background: var(--accent);
  content: "";
}

.page-hero h1 {
  margin: 11px 0 0;
  font-size: clamp(47px, 8vw, 88px);
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: .92;
  text-wrap: balance;
}

.page-hero__lead {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 2vw, 19px);
}

.page-index {
  display: grid;
  min-width: 124px;
  justify-items: end;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.page-index strong {
  color: var(--ink);
  font-size: 52px;
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: 1;
}

.content-section {
  margin-top: 46px;
}

.content-section__head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.content-section__head h2 {
  margin: 0;
  font-size: clamp(25px, 4vw, 36px);
  letter-spacing: -.04em;
}

.content-section__head p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 15px 16px;
  border: 1px solid rgba(114,221,255,.18);
  border-radius: 14px;
  background: rgba(114,221,255,.055);
  color: #c6dce2;
  font-size: 13px;
}

.notice .icon {
  width: 19px;
  height: 19px;
  margin-top: 1px;
  color: var(--cyan);
}

/* Frequency */
.frequency-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 295px;
  gap: 18px;
  align-items: start;
}

.tool-panel,
.info-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.tool-panel {
  padding: clamp(18px, 3vw, 28px);
}

.tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: end;
}

.field-label {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.segment-wrap {
  min-width: 150px;
  flex: 0 1 230px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(var(--segment-count, 2), minmax(72px, 1fr));
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-deep);
}

.date-wrap {
  min-width: 190px;
  flex: 0 1 220px;
}

.select-control {
  position: relative;
  display: block;
}

.select-control select {
  width: 100%;
  height: 56px;
  appearance: none;
  padding: 0 44px 0 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  background: var(--bg-deep);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 760;
  cursor: pointer;
}

.select-control select:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(216,255,69,.12);
}

.select-control .icon {
  position: absolute;
  top: 50%;
  right: 15px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transform: translateY(-50%) rotate(90deg);
  pointer-events: none;
}

.segmented button {
  min-height: 46px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.segmented button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 6px 20px rgba(216,255,69,.08);
}

.search-field {
  min-width: 0;
  flex: 1 1 280px;
}

.search-control {
  position: relative;
}

.search-control > .icon {
  position: absolute;
  top: 50%;
  left: 17px;
  width: 21px;
  height: 21px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.search-control input {
  width: 100%;
  height: 56px;
  padding: 0 52px 0 49px;
  border: 1px solid var(--line-bright);
  border-radius: 14px;
  background: #0d100e;
  color: var(--ink);
  font-size: 16px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.search-control input::placeholder {
  color: #727a73;
}

.search-control input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(216,255,69,.08);
}

.search-control input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.clear-search {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transform: translateY(-50%);
}

.clear-search:hover {
  background: var(--panel-strong);
  color: var(--ink);
}

.clear-search .icon {
  width: 18px;
  height: 18px;
}

.search-hint {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.info-panel {
  position: sticky;
  top: calc(var(--header-height) + 18px);
  padding: 22px;
}

.info-panel h2 {
  margin: 0 0 18px;
  font-size: 17px;
  letter-spacing: -.02em;
}

.dataset-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.dataset-stat {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-soft);
}

.dataset-stat strong {
  display: block;
  font-size: 21px;
  letter-spacing: -.04em;
}

.dataset-stat span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
  text-transform: uppercase;
}

.legend {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.legend-row {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 10px;
  align-items: center;
  color: var(--ink-soft);
  font-size: 12px;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--status-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--status-color) 9%, transparent);
}

.legend-row small {
  color: var(--muted);
  font-size: 11px;
}

.analysis-note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.frequency-results {
  margin-top: 18px;
}

.results-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  min-height: 34px;
  margin-bottom: 10px;
}

.results-head h2 {
  margin: 0;
  font-size: 15px;
}

.results-head span {
  color: var(--muted);
  font-size: 12px;
}

.result-list {
  display: grid;
  gap: 10px;
}

.station-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--panel);
}

.station-card__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.012);
}

.station-card__header h3 {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 18px;
  letter-spacing: -.025em;
}

.station-card__header span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
}

.platform-list {
  display: grid;
}

.platform-row {
  --status-color: var(--green);
  display: grid;
  grid-template-columns: minmax(170px, .9fr) minmax(150px, 1fr) 106px;
  gap: 20px;
  align-items: center;
  min-height: 82px;
  padding: 14px 18px;
}

.platform-row + .platform-row {
  border-top: 1px solid var(--line);
}

.platform-row--orange { --status-color: var(--orange); }
.platform-row--red { --status-color: var(--red); }

.platform-ident {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: center;
}

.platform-badge {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--status-color) 25%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--status-color) 8%, transparent);
  color: var(--status-color);
  font-size: 13px;
  font-weight: 850;
}

.platform-copy {
  min-width: 0;
}

.platform-copy strong {
  display: block;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-copy span {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coverage-block {
  min-width: 0;
}

.coverage-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
}

.mode-list {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coverage-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #272d28;
}

.coverage-track span {
  display: block;
  width: var(--coverage-width);
  height: 100%;
  border-radius: inherit;
  background: var(--status-color);
}

.coverage-number {
  justify-self: end;
  text-align: right;
}

.coverage-number strong {
  display: block;
  color: var(--status-color);
  font-size: 22px;
  letter-spacing: -.04em;
}

.coverage-number span {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 720;
  text-transform: uppercase;
}

.empty-state {
  display: grid;
  min-height: 250px;
  place-items: center;
  padding: 36px 20px;
  border: 1px dashed var(--line-bright);
  border-radius: var(--radius);
  background: rgba(19,23,19,.48);
  text-align: center;
}

.empty-state__inner {
  max-width: 390px;
}

.empty-state__icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin: 0 auto 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--panel);
  color: var(--accent);
}

.empty-state h3 {
  margin: 0;
  font-size: 20px;
}

.empty-state p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.quick-searches {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 18px;
}

.quick-searches button {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-strong);
  color: var(--ink-soft);
  font-size: 11px;
  cursor: pointer;
}

.quick-searches button:hover {
  border-color: var(--line-bright);
  color: var(--ink);
}

.error-panel {
  padding: 22px;
  border: 1px solid rgba(255,98,107,.25);
  border-radius: var(--radius);
  background: rgba(255,98,107,.06);
  color: #ffd3d6;
}

/* Documents and rules */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.choice-card {
  position: relative;
  display: grid;
  min-height: 230px;
  grid-template-rows: auto 1fr;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.choice-card:hover,
.choice-card[aria-pressed="true"] {
  border-color: rgba(216,255,69,.42);
  background: #171c17;
  transform: translateY(-2px);
}

.choice-card[aria-pressed="true"] {
  box-shadow: inset 0 3px 0 var(--accent);
}

.choice-card__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.choice-card__icon {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border-radius: 14px;
  background: rgba(216,255,69,.09);
  color: var(--accent);
}

.format-badge {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.choice-card__content {
  align-self: end;
  display: block;
}

.choice-card__title {
  display: block;
  align-self: end;
  margin: 32px 0 0;
  font-size: clamp(25px, 4vw, 34px);
  letter-spacing: -.04em;
  line-height: 1.05;
}

.choice-card__description {
  display: block;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.document-viewer,
.map-viewer {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.viewer-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  min-height: 68px;
  padding: 11px 13px 11px 18px;
  border-bottom: 1px solid var(--line);
}

.viewer-title {
  min-width: 0;
}

.viewer-title strong {
  display: block;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viewer-title span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.viewer-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

.document-frame,
.map-frame {
  width: 100%;
  height: min(76vh, 880px);
  border: 0;
  background: #090b09;
}

.pdf-fallback {
  display: grid;
  min-height: 420px;
  place-items: center;
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.document-feature {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.document-cover {
  position: relative;
  display: flex;
  min-height: 430px;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  background:
    radial-gradient(circle at 90% 15%, rgba(216,255,69,.18), transparent 170px),
    #171c17;
}

.document-cover::after {
  position: absolute;
  width: 260px;
  height: 260px;
  right: -100px;
  bottom: -90px;
  border: 2px solid rgba(216,255,69,.18);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(216,255,69,.025), 0 0 0 72px rgba(216,255,69,.018);
  content: "";
}

.document-cover__mark {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 17px;
  background: var(--accent);
  color: var(--accent-ink);
}

.document-cover__copy {
  position: relative;
  z-index: 1;
}

.document-cover__copy span {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.document-cover__copy strong {
  display: block;
  margin-top: 11px;
  font-size: 35px;
  letter-spacing: -.05em;
  line-height: .98;
}

.document-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 5vw, 58px);
}

.document-details h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 48px);
  letter-spacing: -.05em;
  line-height: 1;
}

.document-details > p {
  max-width: 590px;
  margin: 18px 0 0;
  color: var(--muted);
}

.document-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.meta-chip {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 11px;
}

.document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

/* Maps */
.map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 13px;
}

.map-card {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  grid-template-rows: auto 1fr;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease;
}

.map-card:hover,
.map-card[aria-pressed="true"] {
  border-color: rgba(216,255,69,.42);
  transform: translateY(-2px);
}

.map-card[aria-pressed="true"] {
  box-shadow: inset 0 -3px 0 var(--accent);
}

.map-art {
  position: relative;
  display: block;
  height: 165px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #0e120f;
}

.map-art::before {
  position: absolute;
  inset: -25px;
  opacity: .65;
  background-image:
    repeating-radial-gradient(circle at 70% 40%, transparent 0 20px, rgba(216,255,69,.14) 21px 22px),
    linear-gradient(38deg, transparent 46%, rgba(114,221,255,.25) 47% 49%, transparent 50%),
    linear-gradient(-26deg, transparent 48%, rgba(255,255,255,.09) 49% 50%, transparent 51%);
  content: "";
  transform: rotate(-8deg);
}

.map-art--preview::before {
  display: none;
}

.map-art--preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.map-card:hover .map-art--preview img,
.map-card[aria-pressed="true"] .map-art--preview img {
  transform: scale(1.025);
}

.map-art--postal::before {
  background-image:
    linear-gradient(30deg, rgba(182,156,255,.13) 25%, transparent 25% 75%, rgba(182,156,255,.13) 75%),
    linear-gradient(-30deg, rgba(255,180,74,.1) 25%, transparent 25% 75%, rgba(255,180,74,.1) 75%);
  background-size: 62px 62px;
}

.map-art--division::before {
  background-image:
    repeating-radial-gradient(ellipse at 20% 100%, transparent 0 28px, rgba(216,255,69,.18) 29px 31px),
    repeating-radial-gradient(ellipse at 90% 10%, transparent 0 44px, rgba(114,221,255,.12) 45px 47px);
}

.map-art__format {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 14px;
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(7,9,8,.72);
  color: var(--ink-soft);
  font: 700 9px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .09em;
}

.map-card__body {
  display: block;
  padding: 18px;
}

.map-card__title {
  display: block;
  margin: 0;
  font-size: 18px;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.map-card__description {
  display: block;
  min-height: 42px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.map-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.map-image-frame {
  display: grid;
  min-height: min(76vh, 880px);
  place-items: center;
  padding: 22px;
  background: #090b09;
}

.map-image-frame img {
  width: 100%;
  max-height: min(70vh, 820px);
  object-fit: contain;
}

/* Questions */
.question-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.question-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color .18s ease, transform .18s ease;
}

.question-card:hover {
  border-color: var(--line-bright);
  transform: translateY(-2px);
}

.question-card__image {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  place-items: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #080a09;
  cursor: zoom-in;
  padding: 0;
}

.question-card__image:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: -4px;
}

.question-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.question-card__image::after {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  background: rgba(7,9,8,.78);
  color: white;
  content: "+";
  font-size: 22px;
  font-weight: 300;
  backdrop-filter: blur(10px);
}

.question-card__body {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 15px 16px;
}

.question-card__body span {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
}

.question-card__body strong {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Resources */
.resource-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 14px;
  align-items: stretch;
}

.resource-card,
.links-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.resource-card {
  display: flex;
  min-height: 340px;
  flex-direction: column;
  padding: clamp(22px, 4vw, 34px);
  background:
    radial-gradient(circle at 100% 0, rgba(216,255,69,.1), transparent 250px),
    var(--panel);
}

.resource-card__icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  background: var(--accent);
  color: var(--accent-ink);
}

.resource-card__body {
  margin-top: auto;
  padding-top: 42px;
}

.resource-card h2,
.links-card h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 37px);
  letter-spacing: -.045em;
  line-height: 1;
}

.resource-card p {
  max-width: 520px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.links-card {
  padding: clamp(22px, 4vw, 30px);
}

.links-card > p {
  margin: 12px 0 22px;
  color: var(--muted);
  font-size: 13px;
}

.link-list {
  display: grid;
  gap: 8px;
}

.external-link {
  display: grid;
  min-width: 0;
  grid-template-columns: 39px minmax(0, 1fr) 20px;
  gap: 11px;
  align-items: center;
  min-height: 62px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel-soft);
  text-decoration: none;
  transition: border-color .16s ease, background-color .16s ease;
}

.external-link:hover {
  border-color: var(--line-bright);
  background: var(--panel-strong);
}

.external-link__icon {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 11px;
  background: rgba(114,221,255,.08);
  color: var(--cyan);
}

.external-link__copy {
  min-width: 0;
}

.external-link__copy strong,
.external-link__copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.external-link__copy strong {
  font-size: 12px;
}

.external-link__copy span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.external-link > .icon {
  width: 17px;
  height: 17px;
  color: var(--muted);
}

/* Dialogs */
dialog {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}

dialog::backdrop {
  background: rgba(0,0,0,.76);
  backdrop-filter: blur(8px);
}

.more-dialog {
  width: min(460px, calc(100% - 24px));
  max-width: none;
  margin: auto auto max(12px, var(--safe-bottom));
  border: 1px solid var(--line-bright);
  border-radius: 24px;
  background: #151916;
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
}

.more-dialog__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px 18px 12px;
}

.more-dialog__header strong {
  font-size: 18px;
  letter-spacing: -.025em;
}

.dialog-close {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel-soft);
  color: var(--ink);
  cursor: pointer;
}

.more-links {
  display: grid;
  gap: 7px;
  padding: 4px 12px 14px;
}

.more-links a {
  display: grid;
  min-height: 64px;
  grid-template-columns: 42px 1fr 20px;
  gap: 12px;
  align-items: center;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-soft);
  text-decoration: none;
}

.more-links a span:first-child {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: rgba(216,255,69,.08);
  color: var(--accent);
}

.more-links a strong {
  font-size: 14px;
}

.more-links a > .icon {
  width: 17px;
  color: var(--muted);
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  background: #050605;
}

.lightbox__layout {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-rows: calc(68px + var(--safe-top)) minmax(0, 1fr) calc(76px + var(--safe-bottom));
}

.lightbox__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding-top: max(10px, var(--safe-top));
  padding-right: max(14px, var(--safe-right));
  padding-bottom: 10px;
  padding-left: max(14px, var(--safe-left));
  border-bottom: 1px solid rgba(255,255,255,.09);
}

.lightbox__title {
  min-width: 0;
}

.lightbox__title strong,
.lightbox__title span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lightbox__title strong {
  font-size: 14px;
}

.lightbox__title span {
  color: var(--muted);
  font-size: 11px;
}

.lightbox__stage {
  display: grid;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  padding: 12px;
}

.lightbox__stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  touch-action: pinch-zoom;
  user-select: none;
}

.lightbox__controls {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
  gap: 12px;
  align-items: center;
  padding-top: 10px;
  padding-right: max(14px, var(--safe-right));
  padding-bottom: max(10px, var(--safe-bottom));
  padding-left: max(14px, var(--safe-left));
  border-top: 1px solid rgba(255,255,255,.09);
}

.lightbox__controls .button:first-child {
  justify-self: start;
}

.lightbox__controls .button:last-child {
  justify-self: end;
}

.lightbox__counter {
  color: var(--muted);
  font: 700 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .08em;
}

.toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: 24px;
  max-width: calc(100% - 28px);
  padding: 10px 14px;
  border: 1px solid var(--line-bright);
  border-radius: 12px;
  background: #202620;
  color: var(--ink);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .18s ease, transform .18s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Error page */
.error-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.error-card {
  width: min(520px, 100%);
  padding: clamp(30px, 8vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  text-align: center;
}

.error-card .eyebrow {
  justify-content: center;
}

.error-card h1 {
  margin: 20px 0 0;
  color: var(--accent);
  font-size: clamp(84px, 24vw, 150px);
  letter-spacing: -.08em;
  line-height: .8;
}

.error-card p:not(.eyebrow) {
  margin: 26px 0;
  color: var(--muted);
}

@media (max-width: 1080px) {
  .desktop-nav a { padding-inline: 8px; }
  .header-meta { display: none; }
  .frequency-layout { grid-template-columns: minmax(0, 1fr) 265px; }
  .question-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --header-height: 64px; }

  body { padding-bottom: calc(84px + var(--safe-bottom)); }
  .site-header { position: sticky; }
  .header-inner { width: min(var(--content), calc(100% - 28px)); }
  .brand img { width: 34px; height: 34px; }
  .desktop-nav { display: none; }
  .brand-copy span { display: none; }

  .mobile-dock {
    position: fixed;
    z-index: 80;
    right: max(10px, var(--safe-right));
    bottom: max(10px, var(--safe-bottom));
    left: max(10px, var(--safe-left));
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    min-height: 68px;
    padding: 5px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px;
    background: rgba(20,24,21,.94);
    box-shadow: 0 18px 55px rgba(0,0,0,.5);
    backdrop-filter: blur(18px) saturate(140%);
  }

  .mobile-dock a,
  .mobile-dock button {
    display: grid;
    min-width: 0;
    place-items: center;
    align-content: center;
    gap: 3px;
    padding: 4px 2px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--muted);
    font-size: 10px;
    font-weight: 720;
    text-decoration: none;
    cursor: pointer;
  }

  .mobile-dock a[aria-current="page"],
  .mobile-dock button.is-current {
    background: rgba(216,255,69,.1);
    color: var(--accent);
  }

  .mobile-dock .icon { width: 21px; height: 21px; }

  .site-footer { margin-top: 54px; padding-bottom: 18px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }

  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 58px 0 52px;
  }

  .home-hero h1 { font-size: clamp(54px, 13vw, 84px); }
  .field-card { min-height: 340px; }
  .field-card__content { min-height: 340px; }
  .route-card { grid-column: span 6; }
  .route-card--wide { grid-column: span 6; }
  .route-card--full { grid-column: span 12; }

  .frequency-layout { grid-template-columns: 1fr; }
  .info-panel { position: static; }
  .info-panel h2 { display: none; }
  .info-panel { padding: 16px; }
  .dataset-stats { grid-template-columns: repeat(4, 1fr); }
  .legend { grid-template-columns: repeat(3, 1fr); padding-top: 15px; }
  .legend-row { grid-template-columns: 10px 1fr; }
  .legend-row small { display: none; }
  .analysis-note { grid-column: 1 / -1; }

  .resource-layout { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .home-shell,
  .page-shell,
  .site-footer {
    width: min(100% - 28px, var(--content));
  }

  .page-shell { padding-top: 26px; }
  .back-link { margin-bottom: 22px; }
  .page-hero { grid-template-columns: 1fr; margin-bottom: 24px; padding-bottom: 26px; }
  .page-hero h1 { font-size: clamp(45px, 15vw, 72px); }
  .page-index { display: none; }
  .page-hero__lead { margin-top: 15px; }
  .content-section { margin-top: 34px; }
  .content-section__head { align-items: flex-start; flex-direction: column; }

  .home-hero { gap: 35px; padding-top: 45px; }
  .home-hero h1 { letter-spacing: -.07em; }
  .hero-lead { margin-top: 23px; font-size: 17px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .field-card { min-height: 300px; }
  .field-card__content { min-height: 300px; padding: 22px; }
  .field-card__bottom strong { font-size: 27px; }
  .section-intro { align-items: flex-start; flex-direction: column; margin-top: 8px; }
  .section-intro h2 { font-size: 38px; }

  .route-grid { grid-template-columns: 1fr; }
  .route-card,
  .route-card--wide,
  .route-card--full { min-height: 210px; grid-column: auto; }
  .route-card h3 { font-size: 29px; }

  .tool-panel { padding: 15px; }
  .tool-row { align-items: stretch; flex-direction: column; gap: 13px; }
  .date-wrap,
  .segment-wrap { width: 100%; min-width: 0; flex-basis: auto; }
  .search-control input { height: 58px; font-size: 16px; }
  .dataset-stats { grid-template-columns: 1fr 1fr; }
  .legend { grid-template-columns: 1fr; }
  .legend-row { grid-template-columns: 10px 1fr auto; }
  .legend-row small { display: block; }

  .station-card__header { align-items: flex-start; padding: 15px; }
  .station-card__header h3 { font-size: 17px; }
  .platform-row {
    grid-template-columns: minmax(0, 1fr) 86px;
    gap: 12px;
    padding: 14px 15px;
  }
  .platform-ident { min-width: 0; }
  .coverage-block { grid-column: 1 / -1; grid-row: 2; }
  .coverage-number { grid-column: 2; grid-row: 1; }

  .choice-grid { grid-template-columns: 1fr; }
  .choice-card { min-height: 205px; }
  .viewer-toolbar { align-items: flex-start; flex-direction: column; padding: 14px; }
  .viewer-actions { width: 100%; }
  .viewer-actions .button { flex: 1; }
  .document-frame,
  .map-frame { height: 68vh; }
  .document-feature { grid-template-columns: 1fr; }
  .document-cover { min-height: 280px; }
  .document-details { padding: 26px 22px 30px; }
  .document-actions { align-items: stretch; flex-direction: column; }

  .map-grid { grid-template-columns: 1fr; }
  .map-card__description { min-height: 0; }
  .map-art { height: 142px; }

  .question-grid {
    display: flex;
    width: calc(100% + 14px);
    gap: 12px;
    overflow-x: auto;
    padding: 1px 14px 14px 1px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }
  .question-card { width: min(83vw, 340px); flex: 0 0 auto; scroll-snap-align: start; }

  .lightbox__controls { grid-template-columns: 1fr auto 1fr; }
  .lightbox__controls .button { min-width: 50px; padding-inline: 12px; }
  .lightbox__controls .button span { display: none; }
  .more-dialog { border-radius: 22px; }
}

@media (max-width: 390px) {
  .home-hero h1 { font-size: 50px; }
  .page-hero h1 { font-size: 44px; }
  .header-inner { width: calc(100% - 22px); }
  .brand-copy strong { font-size: 13px; }
  .platform-badge { width: 37px; height: 37px; }
  .platform-row { grid-template-columns: minmax(0, 1fr) 78px; }
  .coverage-number strong { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
