/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
/* flypass design system — "Timetable Editorial" (D5, 2026-06).
   A beautifully typeset European air/rail TIMETABLE as a living document:
   dense data set like a fine book, not a "UI". Light-first newsprint, real
   type craft (serif masthead, tabular mono figures, grotesque footnotes),
   footnote-mark status system, hairline rules, flat warm tone. */

:root {
  /* ── D5 newsprint palette (canonical) ───────────────────── */
  --news: #FBFAF6;          /* warm newsprint page */
  --paper: #FFFFFF;         /* raised sheet surface (controls, panels) */
  --paper-2: #F4F1E9;       /* recessed surface (header strip, th, code chips) */
  --ink: #1A1A1A;           /* primary ink */
  --ink-2: #3C382F;         /* secondary ink — AA on news */
  --quiet: #6B675E;         /* footnote ink — ~5:1 on news (WCAG AA) */
  --rule-red: #C8102E;      /* section rules / today / cheapest — ~5.9:1 on news */
  --rule-red-deep: #A50D26; /* red text on tinted highlight (keeps AA) */
  --rule: #CFC9BC;          /* hairline rule */
  --rule-strong: #1A1A1A;   /* heavy rule = ink */
  --highlight: #FBF1C4;     /* pencil wash on the matched/cheapest row */
  --good: #1A6B4A;          /* deep green — AA on news (heat/insights) */
  --good-dim: #DCEFE4;      /* green wash */
  --warn: #8A5A00;          /* deep amber — AA on news (was a bright fail) */
  --danger: #B3261E;        /* withdrawn / error red — AA on news */

  /* ── semantic remap (existing class names keep working) ──── */
  --bg: var(--news);
  --bg-2: var(--paper-2);
  --panel: var(--paper);
  --panel-2: var(--paper-2);
  --border: var(--rule);
  --border-strong: #B7B0A0;
  --text: var(--ink);
  --text-dim: var(--ink-2);
  --muted: var(--quiet);
  --accent: var(--rule-red);
  --accent-soft: var(--rule-red);
  --accent-tint: rgba(200,16,46,0.07);   /* selected cmdk option / active row */
  --violet: #2E4A7A;
  --violet-deep: var(--ink);              /* Reserve = solid ink button */
  --radius: 2px;            /* crisp editorial corners (no SaaS rounding) */
  --radius-sm: 2px;
  --touch-min: 24px;        /* WCAG 2.5.8 minimum tap-target (touch) */

  /* spacing scale — 8px-anchored editorial rhythm */
  --sp-1: 4px;  --sp-2: 6px;  --sp-3: 8px;  --sp-4: 12px; --sp-5: 16px;
  --sp-6: 16px; --sp-7: 20px; --sp-8: 20px; --sp-9: 24px; --sp-10: 32px;
  /* type scale */
  --fs-xs: 10.5px; --fs-sm: 12px; --fs-base: 13px; --fs-md: 14px;
  --fs-lg: 16px;   --fs-xl: 20px; --fs-2xl: 24px;
  /* motion + z-index */
  --dur-fast: .12s; --dur: .15s; --ease: cubic-bezier(.2,.6,.2,1);
  --z-sticky: 1; --z-colpick: 20; --z-modal: 50; --z-cmdk: 60;
  --focus: 0 0 0 2px var(--news), 0 0 0 4px var(--rule-red);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --grot: "IBM Plex Sans", ui-sans-serif, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --sans: var(--grot);
  /* flat newsprint: in-flow surfaces use rules, not shadows (depth-coherent).
     Only true overlays lift. */
  --shadow: none;
  --shadow-pop: 0 10px 34px rgba(26,26,26,0.16);
}

* { box-sizing: border-box; }

/* Keyboard focus — single red ring on every interactive element.
   Mouse clicks don't trigger :focus-visible, so this is keyboard-only. */
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 2px; }
.btn:focus-visible, .pbtn:focus-visible, .reserve:focus-visible { border-radius: var(--radius-sm); }
.chip:focus-visible, .pin:focus-visible { border-radius: 2px; }
.field select:focus-visible, .field input:focus-visible { box-shadow: var(--focus); border-color: var(--ink); }

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--news);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "onum" 1, "pnum" 1;  /* oldstyle proportional figures in prose */
}

a { color: inherit; }
/* every figure that must align is tabular mono lining */
.num { font-family: var(--mono); font-feature-settings: tabular-nums lining-nums; font-variant-numeric: tabular-nums lining-nums; }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px 80px; }

/* ── Masthead (the timetable nameplate) ─────────────────── */
.hero {
  background: var(--news);
  border-bottom: 3px double var(--ink);
  padding: 28px 0 12px;
  margin-bottom: 0;
}
.hero .wrap { display: block; padding-bottom: 0; }
.mast-top {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--grot); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--quiet); margin-bottom: 12px; gap: 12px; flex-wrap: wrap;
}
.mast-top .ed { color: var(--ink); font-weight: 600; }
.brand { display: block; text-align: center; }
.brand h1 {
  font-family: var(--serif); font-size: 52px; line-height: .95; margin: 0;
  font-weight: 700; letter-spacing: .015em; color: var(--ink);
}
.brand h1 .mark { display: none; }   /* drop the emoji plane — nameplate is type-only */
.brand .tag {
  display: block; font-family: var(--grot); font-size: 11px; letter-spacing: .34em;
  text-transform: uppercase; color: var(--ink); margin-top: 10px; font-weight: 500;
}
.brand .wedge {
  display: inline-block; margin-top: 9px; font-family: var(--grot); font-size: 10px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--rule-red); font-weight: 600;
  background: none; border: none; padding: 0;
}
.brand .wedge::before { content: "— "; }
.brand .wedge::after { content: " —"; }
.hero .meta { display: none; }   /* the live tally moves to the editorial lede + colophon */

/* ── Editorial lede (the running hero, below the masthead) ─ */
.lede {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  padding: 16px 0; border-bottom: 1px solid var(--rule);
  border-top: 1px solid var(--ink); margin-top: 12px;
}
.lede .ask {
  font-family: var(--serif); font-size: 22px; font-style: italic; font-weight: 400;
  color: var(--ink); max-width: 52ch; line-height: 1.2;
}
.lede .ask b { font-style: normal; font-weight: 600; }
.lede .hero-num { text-align: right; white-space: nowrap; }
.lede .hero-num .lbl {
  display: block; font-family: var(--grot); font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--quiet); margin-bottom: 2px;
}
.lede .hero-num .big {
  font-family: var(--mono); font-size: 30px; font-weight: 600; line-height: 1;
  font-feature-settings: tabular-nums lining-nums;
  font-variant-numeric: tabular-nums lining-nums; color: var(--ink); letter-spacing: -.01em;
}
.lede .hero-num .big .unit { font-size: 16px; color: var(--quiet); font-weight: 400; }
.lede .hero-num .stamp {
  display: block; font-family: var(--grot); font-size: 10px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--rule-red); margin-top: 5px; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums;
}

.disclaimer {
  font-family: var(--grot); color: var(--quiet); font-size: 11.5px; line-height: 1.55;
  margin: 12px 0 14px; max-width: 90ch;
}

/* ── Coverage banner ────────────────────────────────────── */
.coverage {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--grot); background: var(--paper-2);
  border: 1px solid var(--rule); border-left: 3px solid var(--good);
  border-radius: var(--radius-sm); padding: 8px 16px; margin-bottom: 16px; font-size: 12.5px; color: var(--ink-2);
}
.coverage strong { color: var(--ink); font-family: var(--mono); font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.coverage.partial { border-left-color: var(--warn); }
.coverage.expired { border-left-color: var(--danger); background: #FBEDEC; }
.coverage.idle { border-left-color: var(--quiet); }
.coverage.stale { border-left-color: var(--warn); background: #FBF6E9; }
.cov-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.cov-dot.idle { background: var(--quiet); }
.cov-dot.stale { background: var(--warn); }
.cov-found { color: var(--good); font-weight: 600; }
.cov-empty { color: var(--quiet); }
.cov-err { color: var(--danger); font-weight: 600; }
.cov-tag { background: #FBF6E9; color: var(--warn); border-radius: 2px; padding: 2px 8px; font-size: 10.5px; margin-left: 4px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.coverage code { background: var(--paper); padding: 1px 6px; border: 1px solid var(--rule); border-radius: 2px; color: var(--ink); font-family: var(--mono); font-size: 12px; }

/* ── Controls (the filter rail — utilitarian, grotesque) ─── */
.controls {
  display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end;
  font-family: var(--grot);
  background: var(--paper); border: 1px solid var(--rule); border-top: 2px solid var(--ink);
  border-radius: var(--radius); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-family: var(--grot); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--quiet); font-weight: 600; }
.field select, .field input {
  background: var(--paper); color: var(--ink); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 8px 12px; font-size: 14px; min-width: 160px; outline: none;
  font-family: var(--grot);
}
.field select:focus, .field input:focus { border-color: var(--ink); }
.field input[type="number"], .field input[type="time"] { font-family: var(--mono); font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.field input[type="number"] { min-width: 96px; }
.presets { display: flex; gap: 4px; margin-top: 4px; }
.mini { background: var(--paper); border: 1px solid var(--border-strong); color: var(--quiet); border-radius: 2px; padding: 4px 8px; min-height: var(--touch-min); display: inline-flex; align-items: center; font-size: 11.5px; font-family: var(--mono); cursor: pointer; transition: all var(--dur-fast); }
.mini:hover { color: var(--ink); border-color: var(--ink); }
.mini.active { background: var(--ink); border-color: var(--ink); color: var(--news); }
.watch-chip { background: none; border-color: var(--rule-red); color: var(--rule-red); }
.watch-chip:hover { background: var(--rule-red); border-color: var(--rule-red); color: var(--news); }

.btn {
  background: var(--ink); color: var(--news); border: 1px solid var(--ink); border-radius: var(--radius-sm);
  padding: 8px 20px; font-family: var(--grot); font-size: 13px; font-weight: 600; letter-spacing: .02em;
  cursor: pointer; transition: background var(--dur); text-transform: uppercase;
}
.btn:hover { background: #000; }
.btn.secondary { background: var(--paper); border: 1px solid var(--border-strong); color: var(--ink-2); }
.btn.secondary:hover { background: var(--paper); border-color: var(--ink); color: var(--ink); }
.btn:disabled { opacity: 0.45; cursor: default; }

/* ── Date chips → crisp section tabs ────────────────────── */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px; }
.chip {
  font-family: var(--grot); background: var(--paper); border: 1px solid var(--border-strong); color: var(--ink-2);
  border-radius: 2px; padding: 8px 12px; font-size: 12.5px; cursor: pointer; white-space: nowrap; transition: all .12s;
}
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: var(--news); }
.chip-count {
  display: inline-block; margin-left: 7px; padding: 1px 6px; border-radius: 2px;
  font-size: 10.5px; font-weight: 600; font-family: var(--mono); font-feature-settings: "tnum"; font-variant-numeric: tabular-nums;
  background: var(--paper-2); color: var(--ink-2); line-height: 1.4;
}
.chip.active .chip-count { background: rgba(251,250,246,0.26); color: var(--news); }

/* ── Stat line + view toggle ────────────────────────────── */
.statline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-family: var(--grot); color: var(--quiet); margin: 8px 4px 12px; font-size: 12.5px; }
.statline strong { color: var(--ink); font-family: var(--mono); font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.spin { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.viewtoggle { margin-left: auto; display: inline-flex; gap: 0; background: var(--paper); border: 1px solid var(--border-strong); border-radius: 2px; padding: 0; overflow: hidden; }
.vbtn { font-family: var(--grot); background: transparent; border: none; border-right: 1px solid var(--rule); color: var(--quiet); border-radius: 0; padding: 8px 12px; font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; cursor: pointer; }
.viewtoggle .vbtn:last-child { border-right: none; }
.vbtn:hover { color: var(--ink); background: var(--paper-2); }
.vbtn.active { background: var(--ink); color: var(--news); }
.colpick { position: relative; display: inline-block; margin-left: 8px; }
.colpick > .vbtn { background: var(--paper); border: 1px solid var(--border-strong); border-radius: 2px; }
.colpick-menu { position: absolute; right: 0; top: 110%; z-index: 20; background: var(--paper); border: 1px solid var(--ink); border-radius: 2px; padding: 8px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow-pop); }
.colpick-menu label { font-family: var(--grot); display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); text-transform: capitalize; white-space: nowrap; cursor: pointer; }

/* ── Timetable ──────────────────────────────────────────── */
.tablewrap { overflow-x: auto; border: none; border-top: 1.5px solid var(--ink); border-radius: 0; background: transparent; box-shadow: none; }
table { width: 100%; border-collapse: collapse; min-width: 960px; font-feature-settings: tabular-nums lining-nums; font-variant-numeric: tabular-nums lining-nums; }
thead th {
  position: -webkit-sticky;
  position: sticky; top: 0; background: var(--news); color: var(--quiet);
  text-align: left; font-family: var(--grot); font-size: 9.5px; text-transform: uppercase; letter-spacing: .12em; font-weight: 600;
  padding: 8px 12px 4px; border-bottom: 1.5px solid var(--ink); z-index: 1; white-space: nowrap;
}
thead th.sortable { cursor: pointer; -webkit-user-select: none; -moz-user-select: none; user-select: none; }
thead th.sortable:hover { color: var(--ink); }
tbody td { padding: 8px 12px; border-bottom: 1px solid var(--rule); white-space: nowrap; vertical-align: baseline; }
tbody tr:nth-child(even) { background: transparent; }
tbody tr.route:hover { background: rgba(26,26,26,0.035); }
tbody tr:last-child td { border-bottom: none; }
.route { font-weight: 500; color: var(--ink); }
.code { color: var(--ink); font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: .02em; }
.time { font-family: var(--mono); font-feature-settings: tabular-nums lining-nums; font-variant-numeric: tabular-nums lining-nums; color: var(--ink-2); }
.aycf { font-family: var(--mono); color: var(--ink); font-weight: 600; font-feature-settings: tabular-nums lining-nums; font-variant-numeric: tabular-nums lining-nums; }
.reg { font-family: var(--mono); color: var(--quiet); text-decoration: line-through; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.save { font-family: var(--mono); color: var(--good); font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.dur { font-family: var(--mono); color: var(--ink-2); font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.seen { color: var(--quiet); font-family: var(--grot); font-size: 12px; }

/* right-align numeric columns so decimals line up */
td.aycf, td.reg, td.save, td.dur, td.ralign, th.ralign { text-align: right; }

/* AYCF price heat — quiet INK tiers (no paint). cheapest reads via the row
   wash + mark, not a fill; pricier fares only deepen toward warn/danger ink. */
.aycf.heat-great { color: var(--ink); }
.aycf.heat-ok    { color: var(--ink); }
.aycf.heat-mid   { color: var(--warn); }
.aycf.heat-high  { color: var(--danger); }
.aycf.heat-unknown { color: var(--quiet); font-weight: 500; }

/* ── Day-section rule (centered hairline date divider) ──── */
tr.daysec td { padding: 18px 0 7px; border-bottom: none; background: transparent; }
.daysec .rule { display: flex; align-items: center; gap: 16px; color: var(--rule-red); }
.daysec .rule::before, .daysec .rule::after { content: ""; flex: 1 1; border-top: 1px solid var(--rule-red); }
.daysec .rule span { font-family: var(--grot); font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; font-weight: 600; white-space: nowrap; }

/* ── Footnote-mark status (replaces colored pills) ──────── */
td.status { font-family: var(--grot); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; text-align: right; color: var(--quiet); }
td.status .live { color: var(--rule-red); font-weight: 600; }
td.status .confirmed { color: var(--ink-2); }
td.status .stale { color: var(--quiet); }
td.status .withdrawn { color: var(--danger); font-weight: 600; }
/* superscript footnote marks on the route + price */
sup.mark { font-family: var(--grot); font-weight: 600; font-size: 11px; line-height: 0; }
sup.mark.star { color: var(--rule-red); }
sup.mark.dag { color: var(--quiet); }

/* cheapest / matched row — pencil wash + margin red rule-tick */
tbody tr.route.cheapest { background: var(--highlight); }
tbody tr.route.cheapest:hover { background: #FAEEB6; }
tbody tr.route.cheapest td:first-child { box-shadow: inset 3px 0 0 var(--rule-red); }
tr.route.cheapest td.aycf { color: var(--rule-red-deep); font-weight: 700; }

/* withdrawn row — struck, dimmed */
tbody tr.gone td { opacity: 0.5; }
tbody tr.gone td.route { text-decoration: line-through; -webkit-text-decoration-color: var(--quiet); text-decoration-color: var(--quiet); }

/* thin loading rule atop the table during a refetch that already shows data */
.loadbar { height: 2px; width: 100%; background: linear-gradient(90deg, transparent, var(--rule-red), transparent); background-size: 40% 100%; animation: loadslide 1.1s infinite linear; }
@keyframes loadslide { from { background-position: -40% 0; } to { background-position: 140% 0; } }

/* skeleton rows — newsprint-toned placeholders (zero CLS) */
.skel {
  display: inline-block; height: 11px; width: 64px; border-radius: 2px; vertical-align: middle;
  background: linear-gradient(90deg, var(--paper-2) 25%, var(--rule) 37%, var(--paper-2) 63%);
  background-size: 400% 100%; animation: skelsweep 1.4s ease infinite;
}
.skel-pin { width: 14px; height: 14px; border-radius: 2px; }
.skel-row td::before { content: none; }
@keyframes skelsweep { from { background-position: 100% 0; } to { background-position: 0 0; } }
.gone td { opacity: 0.5; }

/* legacy badge fallbacks (kept for any non-status usage; muted to newsprint) */
.badge { font-family: var(--grot); font-size: 9.5px; padding: 2px 7px; border-radius: 2px; background: var(--paper-2); color: var(--ink-2); letter-spacing: .05em; text-transform: uppercase; }
.badge.gone { background: #FBEDEC; color: var(--danger); }
.badge.fresh1 { background: var(--good-dim); color: var(--good); }
.badge.fresh2 { background: var(--paper-2); color: var(--ink-2); }
.badge.fresh3 { background: var(--paper-2); color: var(--quiet); }

/* Reserve = a quiet editorial "book" link, not a filled button — a timetable
   carries booking as a marginal link, not a CTA stripe down every row. */
.reserve { font-family: var(--grot); color: var(--ink); background: none; border: none; padding: 4px 0; min-height: var(--touch-min); display: inline-flex; align-items: center; text-decoration: none; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.reserve::after { content: " →"; color: var(--quiet); }
.reserve:hover { color: var(--rule-red); text-decoration: underline; text-underline-offset: 3px; }
.reserve:hover::after { color: var(--rule-red); }
.pin { background: none; border: none; cursor: pointer; font-size: 15px; color: var(--rule); line-height: 1; min-width: 36px; min-height: 36px; }
.pin:hover { color: var(--rule-red); }
.pin.on { color: var(--rule-red); }
.routelink { font-family: var(--serif); background: none; border: none; color: var(--ink); font-weight: 500; cursor: pointer; padding: 0; font-size: 16px; text-align: left; }
.routelink:hover { color: var(--rule-red); text-decoration: underline; text-underline-offset: 2px; }
.routelink .city { font-style: italic; }
.hist-ic { color: var(--quiet); font-size: 11px; }

/* ── Footnote apparatus (the timetable colophon) ────────── */
.apparatus {
  margin-top: 20px; border-top: 1px solid var(--ink); padding-top: 12px;
  display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  font-family: var(--grot); font-size: 11px; color: var(--quiet); line-height: 1.55;
}
.apparatus .marks { max-width: 64ch; }
.apparatus sup { color: var(--rule-red); font-weight: 600; }
.apparatus sup.dag { color: var(--quiet); }
.apparatus b { color: var(--ink); font-family: var(--mono); font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.apparatus .colophon { text-align: right; white-space: nowrap; }

/* Modal — a lifted overlay (genuine elevation, so it may use shadow) */
.modal-overlay { position: fixed; inset: 0; background: rgba(26,26,26,0.42); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.modal { background: var(--paper); border: 1px solid var(--ink); border-radius: var(--radius); width: min(560px, 100%); max-height: 80vh; display: flex; flex-direction: column; box-shadow: var(--shadow-pop); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 2px solid var(--ink); }
.modal-head strong { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.modal-body { overflow-y: auto; padding: 8px 16px 16px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { font-family: var(--grot); display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 13px; }
.ev-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.ev-app .ev-dot { background: var(--good); }
.ev-rem .ev-dot { background: var(--danger); }
.empty { font-family: var(--serif); font-style: italic; padding: 48px 24px; text-align: center; color: var(--quiet); font-size: 16px; }
.empty code { font-style: normal; background: var(--paper-2); padding: 2px 7px; border: 1px solid var(--rule); border-radius: 2px; color: var(--ink); font-family: var(--mono); font-size: 12px; }

/* per-route availability heatmap (window dates × time-of-day buckets) */
.heatwrap { padding: 4px 0 14px; margin-bottom: 6px; border-bottom: 1px solid var(--rule); }
.heat-title { font-family: var(--grot); font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.heat-sub { font-weight: 400; color: var(--quiet); }
.heatstrip { display: flex; flex-direction: column; gap: 4px; }
.heatrow { display: grid; grid-template-columns: 64px repeat(4, 1fr); grid-gap: 4px; gap: 4px; }
.heatcell { display: flex; align-items: center; justify-content: center; height: 24px; border-radius: 2px; font-family: var(--mono); font-size: 12px; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.heatlabel { justify-content: flex-end; padding-right: 6px; color: var(--ink-2); font-family: var(--grot); font-size: 11px; }
.heathd { color: var(--quiet); font-family: var(--grot); font-size: 10px; letter-spacing: .03em; height: 16px; }
.heathead { margin-bottom: 1px; }
/* intensity ramp — newsprint green tiers, dependency-free */
.hm-0 { background: var(--paper-2); color: transparent; }
.hm-1 { background: #E3F0E8; color: var(--good); font-weight: 600; }
.hm-2 { background: #BFE0CD; color: var(--good); font-weight: 600; }
.hm-3 { background: #7FC3A0; color: #08321F; font-weight: 700; }

/* ── Insights ───────────────────────────────────────────── */
.insights { padding: 18px 0; }
.ins-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); grid-gap: 0; gap: 0; margin-bottom: 20px; border-top: 1px solid var(--rule); }
.ins-card { background: transparent; border: none; border-bottom: 1px solid var(--rule); border-right: 1px solid var(--rule); padding: 14px 16px; }
.ins-k { font-family: var(--grot); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--quiet); font-weight: 600; }
.ins-v { font-family: var(--mono); font-size: 28px; color: var(--ink); letter-spacing: -.02em; margin: 4px 0 2px; font-feature-settings: tabular-nums lining-nums; font-variant-numeric: tabular-nums lining-nums; }
.ins-v .ins-sub { font-size: 12px; }
.ins-sub { font-family: var(--grot); font-size: 11.5px; color: var(--quiet); }
.ins-chart { background: transparent; border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 14px; }
.ins-bars { display: flex; align-items: flex-end; gap: 3px; height: 140px; }
.ins-bar-col { flex: 1 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.ins-bar { width: 100%; min-height: 2px; background: var(--rule-red); border-radius: 0; }
.ins-bar-lbl { font-family: var(--mono); font-size: 9px; color: var(--quiet); margin-top: 4px; height: 12px; }
.ins-note { font-family: var(--grot); color: var(--quiet); font-size: 12px; margin-top: 14px; }
.ins-live { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); grid-gap: 12px; gap: 12px; margin-bottom: 20px; }
.ins-live-col { background: transparent; border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 14px; }
.ins-list { list-style: none; margin: 0; padding: 0; }
.ins-list li { font-family: var(--grot); display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--rule); font-size: 13px; }
.ins-list li:last-child { border-bottom: none; }
.ins-route { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ins-price { font-family: var(--mono); color: var(--good); font-weight: 600; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; flex: none; }

/* ── Alerts ─────────────────────────────────────────────── */
.alerts-add { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.alerts-banner { font-family: var(--grot); padding: 10px 0; font-size: 12.5px; color: var(--ink-2); border-bottom: 1px solid var(--rule); }
.alerts-banner.on { color: var(--ink); }
.alerts-banner code { background: var(--paper-2); padding: 1px 6px; border: 1px solid var(--rule); border-radius: 2px; font-family: var(--mono); font-size: 12px; color: var(--ink); }
.match-now { font-family: var(--grot); font-size: 12.5px; color: var(--good); font-weight: 600; }

/* ── Pager ──────────────────────────────────────────────── */
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 16px; border-top: 1px solid var(--rule); }
.pbtn { font-family: var(--grot); background: var(--paper); border: 1px solid var(--border-strong); color: var(--ink); border-radius: 2px; padding: 8px 16px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.pbtn:hover:not(:disabled) { background: var(--ink); color: var(--news); border-color: var(--ink); }
.pbtn:disabled { opacity: 0.4; cursor: default; }
.pinfo { color: var(--quiet); font-family: var(--mono); font-size: 12.5px; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }

/* ── Map ────────────────────────────────────────────────── */
.mapview { display: grid; grid-template-columns: 1fr minmax(220px, 300px); grid-gap: 14px; gap: 14px; align-items: start; }
.mapwrap { border: 1px solid var(--ink); border-radius: var(--radius); background: var(--paper); overflow: hidden; box-shadow: var(--shadow); }
.map .node { transition: opacity var(--dur) var(--ease); }
.map .dot.active { fill: var(--rule-red); stroke: var(--ink); stroke-width: 1.2; }
.maplist { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); display: flex; flex-direction: column; max-height: 600px; overflow: hidden; }
.maplist-head { font-family: var(--grot); padding: 10px 14px; border-bottom: 1.5px solid var(--ink); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--quiet); font-weight: 600; }
.maplist-scroll { overflow-y: auto; }
.maplist-row { font-family: var(--serif); display: flex; align-items: baseline; justify-content: space-between; gap: 10px; width: 100%; text-align: left; background: none; border: none; border-bottom: 1px solid var(--rule); padding: 9px 14px; cursor: pointer; color: var(--ink); transition: background var(--dur-fast); }
.maplist-row:hover, .maplist-row.active { background: var(--highlight); }
.maplist-row:last-child { border-bottom: none; }
.maplist-city { font-size: 15px; font-weight: 500; }
.maplist-count { color: var(--quiet); font-weight: 400; font-family: var(--mono); font-size: 11.5px; }
.maplist-price { font-family: var(--mono); font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 13px; color: var(--ink); }
.maplist-price.heat-great { color: var(--ink); }
.maplist-price.heat-ok { color: var(--ink); }
.maplist-price.heat-mid { color: var(--warn); }
.maplist-price.heat-high { color: var(--danger); }
@media (max-width: 860px) { .mapview { grid-template-columns: 1fr; } .maplist { max-height: 340px; } }
.map { width: 100%; height: auto; display: block; background: var(--paper); }
.map .landmass { fill: rgba(26,26,26,0.04); stroke: rgba(26,26,26,0.14); stroke-width: 1; }
.map .grid { stroke: rgba(26,26,26,0.06); stroke-width: 1; }
.map .route { stroke: rgba(107,103,94,0.28); stroke-width: 0.8; }
.map .route.hot { stroke: var(--rule-red); stroke-width: 1.4; }
.map .dot { fill: var(--ink-2); }
.map .dot.origin { fill: var(--rule-red); stroke: var(--news); stroke-width: 1.5; }
.map .label { fill: var(--ink); font-size: 13px; font-weight: 600; font-family: var(--mono); paint-order: stroke; stroke: var(--news); stroke-width: 3px; }
.maplegend { font-family: var(--grot); display: flex; gap: 18px; flex-wrap: wrap; align-items: center; padding: 10px 15px; font-size: 12px; color: var(--quiet); border-top: 1px solid var(--rule); }
.maplegend .muted { opacity: 0.7; }
.swatch { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.swatch.origin { background: var(--rule-red); }
.swatch.dest { background: var(--ink-2); }

/* ── Command palette (⌘K) ──────────────────────────────── */
.cmdk-overlay { position: fixed; inset: 0; background: rgba(26,26,26,0.4); display: flex; align-items: flex-start; justify-content: center; z-index: var(--z-cmdk); padding: 12vh 20px 20px; }
.cmdk { width: min(560px, 100%); background: var(--paper); border: 1px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-pop); overflow: hidden; }
.cmdk-input { font-family: var(--serif); width: 100%; box-sizing: border-box; background: var(--paper); color: var(--ink); border: none; border-bottom: 2px solid var(--ink); padding: 16px; font-size: 17px; outline: none; }
.cmdk-input::placeholder { color: var(--quiet); font-style: italic; }
.cmdk-list { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow-y: auto; }
.cmdk-opt { font-family: var(--grot); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 2px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.cmdk-opt.active { background: var(--accent-tint); color: var(--ink); }
.cmdk-hint { font-family: var(--mono); font-size: 11px; color: var(--quiet); background: var(--paper-2); border: 1px solid var(--rule); border-radius: 2px; padding: 1px 7px; }
.cmdk-empty { font-family: var(--serif); font-style: italic; padding: 16px; text-align: center; color: var(--quiet); font-size: 14px; }

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 720px) {
  .hero { padding: 20px 0 10px; }
  .brand h1 { font-size: 34px; }
  .brand .tag { font-size: 9px; letter-spacing: .22em; }
  .mast-top { font-size: 8.5px; }
  .lede { flex-direction: column; align-items: flex-start; gap: 14px; }
  .lede .ask { font-size: 18px; }
  .lede .hero-num { text-align: left; }
  .controls { padding: 13px; gap: 10px; }
  .field select, .field input { min-width: 130px; }
  .viewtoggle { margin-left: 0; flex-wrap: wrap; }
  .wrap { padding: 0 16px 64px; }

  /* Timetable → stacked editorial cards (no sideways scroll on phones).
     thead is visually hidden but stays in the a11y tree. */
  .flights-table { overflow-x: visible; border: none; border-top: 1.5px solid var(--ink); background: transparent; box-shadow: none; }
  .flights-table table { min-width: 0; }
  .flights-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .flights-table tbody tr.route { display: block; position: relative; background: var(--paper); border: 1px solid var(--rule); border-left: 2px solid var(--ink); border-radius: 0; padding: 12px 14px; margin-bottom: 8px; box-shadow: none; }
  .flights-table tbody tr.route.cheapest { background: var(--highlight); border-left-color: var(--rule-red); }
  .flights-table tbody tr.route.cheapest td:first-child { box-shadow: none; }
  .flights-table tbody tr.route:hover { background: var(--paper); }
  .flights-table tbody tr.gone { opacity: 1; }
  .flights-table tbody tr.daysec { display: block; }
  .flights-table tbody tr.daysec td { padding: 14px 0 6px; display: block; }
  .flights-table tbody tr:last-child td { border-bottom: none; }
  .flights-table tbody td { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 3px 0; border: none; white-space: normal; text-align: right; }
  .flights-table tbody td::before { content: attr(data-label); font-family: var(--grot); color: var(--quiet); font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; text-align: left; flex: none; align-self: center; }
  .flights-table tbody td.route { font-size: 16px; }
  .flights-table tbody td.aycf { font-size: 17px; padding-top: 6px; }
  /* mobile keeps the STATUS column (governor's note: carry trust-in-freshness) */
  .flights-table tbody td.status { display: flex; }
  .flights-table tbody td.status::before { content: "Status"; }
  /* pin: top-right corner, no label */
  .flights-table tbody td.cell-pin { position: absolute; top: 6px; right: 8px; padding: 0; }
  .flights-table tbody td.cell-pin::before { content: none; }
  /* reserve: full-width outlined tap target at the card foot (mobile only) */
  .flights-table tbody td.cell-act { padding-top: 10px; }
  .flights-table tbody td.cell-act::before { content: none; }
  .flights-table tbody td.cell-act .reserve { display: block; width: 100%; text-align: center; padding: 12px; border: 1px solid var(--ink); color: var(--ink); font-size: 11px; }
  .flights-table tbody td.cell-act .reserve::after { content: none; }
  .flights-table tbody td[data-label="Seen"],
  .flights-table tbody td.route[data-label="From"] { padding-right: calc(var(--sp-10) + var(--sp-3)); }
  .flights-table tbody td .routelink { min-height: var(--touch-min); display: inline-flex; align-items: center; }
  .flights-table .pager { border-top: none; }
  .apparatus { flex-direction: column; gap: 10px; }
  .apparatus .colophon { text-align: left; }
}

