/* Tailodds -- shared styles.
   Palette and type follow docs/mockups/*.dc.html (design v3, 2026-09-24).
   Colour-blind-safe pairing: blue = Yes/late, orange = No/on-time -- never
   conveyed by hue alone, always paired with the word "Yes"/"No" or a label. */

:root {
  color-scheme: light;
  --bg: #F6F4EF;
  --ink: #15171C;
  --ink-soft: #3F4450;
  --muted: #5F6472;
  --border: #E4E0D8;
  --border-soft: #EEEAE2;
  --border-strong: #C9C4B8;
  --card-bg: #FFFFFF;
  --row-hover: #FBFAF7;
  --neutral-soft-bg: #EEF0F4;
  --track: #D9DEE8;
  --track-soft: #F3F1EC;
  --bar-track: #C9D3E6;
  --on-accent: #FFFFFF;
  --link-hover: #0E3278;
  --shadow: 0 12px 28px rgba(0,0,0,.18);

  /* the header/hero band is dark in both themes */
  --header-bg: #15171C;
  --header-edge: transparent;
  --header-fg: #F6F4EF;
  --brand: #F5A524;              /* tailodds amber; the header is dark in both themes */
  --header-muted: #C9CDD6;
  --header-raised: #22252C;
  --header-line: #3A3E48;
  --header-chip-line: #5B606C;
  --header-accent: #F2A477;
  --search-bg: #262930;
  --search-placeholder: #9096A3;
  --on-focus: #0B1A3A;

  --blue: #1D5BD6;
  --blue-deep: #1446A8;
  --blue-soft-bg: #E8EFFC;
  --blue-soft-fg: #1446A8;

  --orange: #B44A12;
  --orange-deep: #8F3A0E;
  --orange-soft-bg: #FBEDE4;
  --orange-soft-fg: #8F3A0E;

  /* every question asks "will the bad thing happen?": Yes = late/cancelled = red, No = green */
  --bad: #C0322B;
  --bad-soft-bg: #FCE9E7;
  --bad-soft-fg: #9B2620;
  --good: #1E7A46;
  --good-soft-bg: #E5F3EA;
  --good-soft-fg: #17613A;

  /* one bold line colour per question -- blue / violet / teal / amber, kept
     clear of the red/green used for Yes/No */
  --q-arr15: #1D5BD6;
  --q-arr60: #7C3AED;
  --q-dep15: #0B8AA3;
  --q-cancel: #C25E00;

  /* chart furniture */
  --chart-axis: #5F6472;
  --chart-tick: #3F4450;
  --chart-grid: #D9D4CA;
  --chart-future: #8A8F9C;
  --chart-cursor: #15171C;
  --zone-history: rgba(21,23,28,0.025);
  --zone-forecast: rgba(21,23,28,0.05);
  --zone-live: rgba(29,91,214,0.08);
  --zone-air: rgba(29,91,214,0.14);
  --hc-usual: #A7B4CC;
  --hc-past: #E7E3DB;

  --focus: #8FB2F5;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

/* Dark theme: follows the system unless the visitor picked light explicitly
   (data-theme="light"), and always applies when they picked dark. The two
   blocks must stay identical. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0D0F13;
    --ink: #ECEDF0;
    --ink-soft: #C3C7D0;
    --muted: #8F95A3;
    --border: #272B34;
    --border-soft: #1F222A;
    --border-strong: #3A3F4B;
    --card-bg: #15181E;
    --row-hover: #1A1D24;
    --neutral-soft-bg: #252932;
    --track: #2C313B;
    --track-soft: #20242C;
    --bar-track: #34405A;
    --on-accent: #0D0F13;
    --link-hover: #B5CFFF;
    --shadow: 0 12px 28px rgba(0,0,0,.6);
    --header-bg: #08090C;
    --header-edge: #1F222A;
    --header-fg: #ECEDF0;
    --header-muted: #A9AEBA;
    --header-raised: #171A20;
    --header-line: #2E323B;
    --header-chip-line: #3F4450;
    --header-accent: #FFB285;
    --search-bg: #1A1D23;
    --search-placeholder: #7D8391;
    --on-focus: #0B1A3A;
    --blue: #5B9BFF;
    --blue-deep: #8DB9FF;
    --blue-soft-bg: #17243B;
    --blue-soft-fg: #A3C6FF;
    --orange: #F08A4B;
    --orange-deep: #FFA570;
    --orange-soft-bg: #36221A;
    --orange-soft-fg: #FFB78C;
    --bad: #FF5F55;
    --bad-soft-bg: #3A1818;
    --bad-soft-fg: #FF8F87;
    --good: #3DD68C;
    --good-soft-bg: #112E1F;
    --good-soft-fg: #62E3A3;
    --q-arr15: #5B9BFF;
    --q-arr60: #B38CFF;
    --q-dep15: #2FCBE0;
    --q-cancel: #FFA42E;
    --chart-axis: #8F95A3;
    --chart-tick: #B4B9C4;
    --chart-grid: #2F343E;
    --chart-future: #6B7180;
    --chart-cursor: #ECEDF0;
    --zone-history: rgba(255,255,255,0.015);
    --zone-forecast: rgba(255,255,255,0.035);
    --zone-live: rgba(91,155,255,0.07);
    --zone-air: rgba(91,155,255,0.13);
    --hc-usual: #56627A;
    --hc-past: #2F343E;
    --focus: #8FB2F5;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0D0F13;
  --ink: #ECEDF0;
  --ink-soft: #C3C7D0;
  --muted: #8F95A3;
  --border: #272B34;
  --border-soft: #1F222A;
  --border-strong: #3A3F4B;
  --card-bg: #15181E;
  --row-hover: #1A1D24;
  --neutral-soft-bg: #252932;
  --track: #2C313B;
  --track-soft: #20242C;
  --bar-track: #34405A;
  --on-accent: #0D0F13;
  --link-hover: #B5CFFF;
  --shadow: 0 12px 28px rgba(0,0,0,.6);
  --header-bg: #08090C;
  --header-edge: #1F222A;
  --header-fg: #ECEDF0;
  --header-muted: #A9AEBA;
  --header-raised: #171A20;
  --header-line: #2E323B;
  --header-chip-line: #3F4450;
  --header-accent: #FFB285;
  --search-bg: #1A1D23;
  --search-placeholder: #7D8391;
  --on-focus: #0B1A3A;
  --blue: #5B9BFF;
  --blue-deep: #8DB9FF;
  --blue-soft-bg: #17243B;
  --blue-soft-fg: #A3C6FF;
  --orange: #F08A4B;
  --orange-deep: #FFA570;
  --orange-soft-bg: #36221A;
  --orange-soft-fg: #FFB78C;
  --bad: #FF5F55;
  --bad-soft-bg: #3A1818;
  --bad-soft-fg: #FF8F87;
  --good: #3DD68C;
  --good-soft-bg: #112E1F;
  --good-soft-fg: #62E3A3;
  --q-arr15: #5B9BFF;
  --q-arr60: #B38CFF;
  --q-dep15: #2FCBE0;
  --q-cancel: #FFA42E;
  --chart-axis: #8F95A3;
  --chart-tick: #B4B9C4;
  --chart-grid: #2F343E;
  --chart-future: #6B7180;
  --chart-cursor: #ECEDF0;
  --zone-history: rgba(255,255,255,0.015);
  --zone-forecast: rgba(255,255,255,0.035);
  --zone-live: rgba(91,155,255,0.07);
  --zone-air: rgba(91,155,255,0.13);
  --hc-usual: #56627A;
  --hc-past: #2F343E;
  --focus: #8FB2F5;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  max-width: 100%;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; margin: 0; }
.mono, .num { font-family: 'IBM Plex Mono', monospace; }
a { color: var(--blue-deep); }
a:hover { color: var(--link-hover); }
p { line-height: 1.55; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 100;
  background: var(--ink); color: var(--header-fg); padding: 10px 16px;
  border-radius: var(--radius-sm); transition: top .15s ease;
}
.skip-link:focus { top: 8px; }

:focus-visible {
  outline: 2.5px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------------------------------------------------------------- header */

.site-header {
  background: var(--header-bg);
  color: var(--header-fg);
  position: relative;
}
.site-header-inner {
  min-height: 64px;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--header-fg);
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 18px;
  letter-spacing: -0.02em; font-size: 21px;
}
.brand-accent { color: var(--brand); }
.site-search {
  flex-grow: 1; min-width: 200px; max-width: 520px;
  display: flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 14px; border-radius: 10px; background: var(--search-bg);
}
.site-search input {
  flex-grow: 1; background: transparent; border: none; outline: none;
  color: var(--header-fg); font: 400 14px 'IBM Plex Sans', sans-serif;
  min-width: 0;
}
.site-search input::placeholder { color: var(--search-placeholder); }
.site-nav { display: flex; gap: 20px; font-size: 14px; font-weight: 500; }
.site-nav a { color: var(--header-fg); text-decoration: none; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.sample-chip {
  margin-left: auto;
  font: 500 11px 'IBM Plex Mono', monospace; letter-spacing: 0.06em;
  padding: 4px 8px; border: 1px solid var(--header-chip-line); border-radius: 6px; color: var(--header-muted);
  white-space: nowrap;
}
.search-results {
  position: absolute; left: 24px; right: 24px; top: 100%; z-index: 50;
  background: var(--card-bg); color: var(--ink); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow);
  max-width: 520px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  max-height: min(70vh, 560px);
}

/* ------------------------------------------------------------- containers */

main { display: block; }
.page { max-width: 1320px; margin: 0 auto; padding: 32px 24px 48px; }
.page-narrow { max-width: 1000px; }

.card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
}

.schedule-note {
  font-size: 13px; color: var(--muted); background: var(--border-soft);
  border-radius: var(--radius-sm); padding: 10px 14px; margin: 0 0 20px;
  line-height: 1.5;
}

.site-footer {
  border-top: 1px solid var(--border); padding: 24px; margin-top: 32px;
}
.site-footer p { max-width: 900px; margin: 0 auto; font-size: 13px; color: var(--muted); }
.site-footer a { color: var(--muted); }

/* ------------------------------------------------------------------ hero */

.hero {
  background: var(--header-bg); color: var(--header-fg);
  padding: 32px 24px 36px;
  display: flex; gap: 40px; align-items: flex-end; flex-wrap: wrap;
}
.hero-main { flex: 1 1 480px; display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.hero h1 { font-size: clamp(28px, 4vw, 46px); letter-spacing: -0.02em; line-height: 1.08; }
.hero p { color: var(--header-muted); margin: 0; max-width: 620px; }
.hero-form { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-form input {
  flex: 1 1 260px; height: 52px; padding: 0 16px; border-radius: 12px;
  border: 1px solid var(--header-line); background: var(--header-raised); color: var(--header-fg);
  font: 400 16px 'IBM Plex Sans', sans-serif;
}
.hero-form button {
  height: 52px; padding: 0 22px; border-radius: 12px; border: none;
  background: var(--focus); color: var(--on-focus); font: 600 15px 'IBM Plex Sans', sans-serif;
  cursor: pointer;
}
.hero-stats {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px;
  width: 300px; flex-shrink: 0;
}
.hero-stat {
  background: var(--header-raised); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 4px;
}
.hero-stat .num { font-family: 'Space Grotesk', sans-serif; font-size: 28px; font-weight: 600; }
.hero-stat span:last-child { font-size: 13px; color: var(--header-muted); }

/* --------------------------------------------------------- home content */

.home-columns { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; padding: 28px 24px 0; max-width: 1320px; margin: 0 auto; }
.airports-board { flex: 2 1 640px; min-width: 0; padding: 0; }
.airports-board-head { padding: 0 0 14px; }
.airports-board-head h2 { margin: 0; }
.airports-board-head p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

/* legend for the hour charts */
.hchart-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; padding: 0; font-size: 12px; color: var(--muted); }
.hchart-legend li { display: inline-flex; align-items: center; gap: 6px; }
.lg-bar { width: 8px; height: 12px; border-radius: 2px 2px 0 0; background: var(--hc-usual); }
.lg-wx { width: 8px; height: 12px; border-radius: 2px 2px 0 0; background: var(--bad); }
.lg-past { width: 8px; height: 12px; border-radius: 2px 2px 0 0; background: var(--hc-past); }

/* airport tiles: small multiples, one shared scale */
.apt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.apt-tile { display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 12px; color: var(--ink); text-decoration: none; min-width: 0; }
.apt-tile:hover { border-color: var(--border-strong); }
.apt-tile:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.apt-id { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.apt-code { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 700; letter-spacing: .01em; }
.apt-name { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1 1 auto; min-width: 0; }
.apt-rank { font-size: 11px; color: var(--muted); }
.apt-tile .status-chip { align-self: flex-start; font-size: 11px; padding: 3px 9px; line-height: 1.3; }
.apt-nums { display: flex; align-items: flex-end; gap: 22px; }
.apt-num { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.apt-num .big { font-family: 'Space Grotesk', sans-serif; font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.apt-num .mid { font-family: 'Space Grotesk', sans-serif; font-size: 28px; font-weight: 600; line-height: 1; }
.apt-num .lbl { font-size: 12px; color: var(--muted); line-height: 1.35; white-space: nowrap; margin-top: 4px; }
.apt-deltas { display: flex; flex-wrap: wrap; gap: 6px; font-size: 11px; }
.apt-deltas .delta { padding: 2px 7px; border-radius: 999px; background: var(--neutral-soft-bg); color: var(--ink-soft); white-space: nowrap; }
.apt-deltas .delta.wx { background: var(--bad-soft-bg); color: var(--bad-soft-fg); }
.apt-deltas .delta.up { color: var(--bad-soft-fg); }
.apt-deltas .delta.down { color: var(--good-soft-fg); }

.hchart { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.hchart-plot { position: relative; height: 64px; margin-right: 30px; border-bottom: 1px solid var(--chart-grid); }
.hchart-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hc-bar { fill: var(--hc-usual); }
.hc-wx { fill: var(--bad); }
.hc-bar.past, .hc-wx.past { fill: var(--hc-past); }
.hc-grid { stroke: var(--chart-grid); stroke-width: 1; stroke-dasharray: 2 3; }
.hc-now { stroke: var(--chart-cursor); stroke-width: 1.25; }
.hc-hit { fill: transparent; }
.hc-hit:hover { fill: var(--zone-forecast); }
.hc-grid-label { position: absolute; right: -30px; bottom: 50%; transform: translateY(50%); width: 26px; font-size: 10px; color: var(--muted); pointer-events: none; }
.hc-now-label { position: absolute; top: -14px; transform: translateX(-50%); font-size: 10px; color: var(--ink-soft); pointer-events: none; }
.hchart-x { position: relative; height: 13px; margin-right: 30px; font-size: 10px; color: var(--muted); }
.hchart-x span { position: absolute; transform: translateX(-50%); }
.apt-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--border-soft); padding-top: 8px; }
.apt-foot b { color: var(--ink); font-weight: 600; }
.apt-foot .apt-wx { text-align: right; margin-left: auto; }

/* the worst airport gets a full-width tile with a taller chart */
.apt-tile.featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(230px, 0.9fr) 1.6fr; grid-template-areas: "id chart" "chip chart" "nums chart" "deltas chart" "foot foot"; column-gap: 28px; row-gap: 10px; padding: 20px; align-content: start; }
.apt-tile.featured .apt-deltas { grid-area: deltas; }
.apt-tile.featured .apt-id { grid-area: id; }
.apt-tile.featured .status-chip { grid-area: chip; }
.apt-tile.featured .apt-nums { grid-area: nums; }
.apt-tile.featured .hchart { grid-area: chart; align-self: end; }
.apt-tile.featured .hchart-plot { height: 150px; }
.apt-tile.featured .apt-foot { grid-area: foot; }
.apt-tile.featured .apt-code { font-size: 26px; }
.apt-tile.featured .apt-num .big { font-size: 64px; }
.apt-tile.featured .apt-num .mid { font-size: 36px; }

/* hover tip for chart bars (static/js/app.js) */
.hc-tip { position: fixed; z-index: 50; max-width: 260px; padding: 7px 10px; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: 12px; line-height: 1.4; pointer-events: none; box-shadow: var(--shadow); }
.hc-tip[hidden] { display: none; }

.board-table-view { margin-top: 12px; padding: 0; overflow: hidden; }
.board-table-view summary { cursor: pointer; padding: 12px 16px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.board-table-view[open] summary { border-bottom: 1px solid var(--border-soft); }
.board-table-view .board-table a { font-weight: 600; color: var(--ink); }
.board-table { width: 100%; border-collapse: collapse; }
.board-table thead th {
  text-align: left; font: 500 11px 'IBM Plex Mono', monospace; letter-spacing: 0.05em;
  color: var(--muted); padding: 8px 10px; border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.board-table td { padding: 10px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; font-size: 14px; }
.board-table tbody tr:hover { background: var(--row-hover); }
.board-table .num-col { text-align: right; }
.airport-cell { display: flex; flex-direction: column; }
.airport-cell a { font-weight: 600; font-size: 15px; text-decoration: none; color: var(--ink); }
.airport-cell a:hover { text-decoration: underline; }
.airport-cell .name { font-size: 12px; color: var(--muted); }
.status-chip { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.status-chip.gs { background: var(--orange); color: var(--on-accent); }
.status-chip.gdp { background: var(--orange-soft-bg); color: var(--orange-deep); }
.status-chip.wx { border: 1px solid var(--orange); color: var(--orange-deep); background: transparent; }
.status-chip.ok { background: var(--neutral-soft-bg); color: var(--ink-soft); }
.weather-text { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.bar-cell { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.bar-track { display: inline-block; height: 6px; border-radius: 3px; background: var(--bar-track); }
.bar-track.hot { background: var(--orange); }
.footnote { padding: 12px 0 16px; font-size: 12px; line-height: 1.5; color: var(--muted); margin: 0; }

.questions-col { flex: 1 1 340px; min-width: 300px; display: flex; flex-direction: column; gap: 12px; }
.question-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; text-decoration: none; color: var(--ink); }
.question-card:hover { border-color: var(--border-strong); }
.question-card .qtop { display: flex; gap: 12px; align-items: flex-start; }
.question-card .qtitle { flex-grow: 1; font-size: 15px; font-weight: 600; line-height: 1.35; }
.question-card .qtag { display: block; font: 400 11px 'IBM Plex Mono', monospace; color: var(--muted); margin-top: 4px; }
.question-card .qodds { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pct-big { font-family: 'Space Grotesk', sans-serif; font-size: 24px; font-weight: 600; flex-shrink: 0; }
/* min-width:0 on both the row and its pill children so the flex-shrink that
   keeps this 100%-basis row from overflowing its card (it sits next to
   .pct-big in .qodds) can actually reach the pills' text instead of being
   blocked by their default min-width:auto -- otherwise, long enough labels
   push the pills past the card's rounded right edge. */
.yesno-row { display: flex; gap: 8px; width: 100%; min-width: 0; }
.pill { flex: 1 1 0; min-width: max-content; height: 36px; padding: 0 14px; white-space: nowrap; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; gap: 6px; }
.pill.yes { background: var(--bad-soft-bg); color: var(--bad-soft-fg); }
.pill.no { background: var(--good-soft-bg); color: var(--good-soft-fg); }
.pill.na { background: var(--neutral-soft-bg); color: var(--ink-soft); }
.pill.big { height: 44px; font-size: 15px; }

/* ------------------------------------------------------------ flight page */

.flight-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.flight-tags { display: flex; align-items: center; gap: 10px; font: 500 12px 'IBM Plex Mono', monospace; letter-spacing: 0.05em; color: var(--muted); flex-wrap: wrap; }
.flight-tags .badge { padding: 4px 11px; border-radius: 999px; background: var(--blue-soft-bg); color: var(--blue-deep); }
.flight-title { font-size: clamp(24px, 3.4vw, 36px); letter-spacing: -0.02em; margin: 6px 0; }
.flight-sub { font-size: 15px; color: var(--ink-soft); }
.flight-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.flight-meta .updated { font: 400 12px 'IBM Mono', 'IBM Plex Mono', monospace; color: var(--muted); }
.watch-btn {
  height: 44px; padding: 0 20px; border: none; border-radius: 10px;
  background: var(--ink); color: var(--bg); font: 600 15px 'IBM Plex Sans', sans-serif;
  display: inline-flex; align-items: center; gap: 8px; cursor: not-allowed; opacity: .55;
}

.layout-2col { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; }
.col-main { flex: 2 1 560px; min-width: 300px; display: flex; flex-direction: column; gap: 24px; }
.col-aside { flex: 1 1 320px; min-width: 280px; display: flex; flex-direction: column; gap: 20px; }

.chart-card { display: flex; flex-direction: column; gap: 12px; }
.chart-top { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.chart-stat { flex: 1 1 280px; display: flex; flex-direction: column; gap: 4px; }
.chart-stat .q-label { font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.chart-stat .stat-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pct-huge { font-family: 'Space Grotesk', sans-serif; font-size: 48px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.stat-row .chance-label { font-size: 14px; color: var(--ink-soft); }
.stat-row .move { font: 500 13px 'IBM Plex Mono', monospace; color: var(--orange-deep); }
.confidence { width: 240px; display: flex; flex-direction: column; gap: 6px; }
.confidence .label { font: 500 11px 'IBM Plex Mono', monospace; letter-spacing: 0.05em; color: var(--muted); }
.confidence-bars { display: flex; gap: 4px; }
.confidence-bars span { flex-grow: 1; height: 8px; border-radius: 4px; background: var(--track); }
.confidence-bars span.filled { background: var(--blue); }
.confidence-desc { font-size: 13px; color: var(--ink-soft); }

.chart-svg-wrap { width: 100%; }
.chart-svg-wrap svg { width: 100%; height: auto; display: block; }

.question-picks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; padding-top: 4px; border-top: 1px solid var(--border-soft); }
.q-pick-btn {
  display: flex; align-items: center; gap: 16px; width: 100%; box-sizing: border-box;
  padding: 14px 18px; background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 12px; cursor: pointer; font: inherit; color: inherit; text-align: left;
  flex-wrap: wrap;
}
.q-pick-btn.selected { border: 2px solid var(--ink); padding: 13px 17px; }
/* flex-basis:0 (not the default "auto") so the wrap decision ignores the
   question text's own max-content width -- with "auto" a long question
   (e.g. "Arrive at ATL more than 15 minutes late?") could by itself exceed
   the space left after .q-figures and force the whole figures group onto
   its own line even when there was visually enough room, once its text
   wrapped internally. min-width is still the real floor: below that, and
   only then, .q-figures wraps to its own row. */
.q-pick-btn .q-body { flex: 1 1 0%; min-width: 180px; display: flex; flex-direction: column; gap: 4px; }
.q-pick-btn .q-body .qq { font-size: 16px; font-weight: 600; }
.q-pick-btn .q-body .qsub { font-size: 13px; color: var(--muted); }
/* q-move/q-pct/yesno-row (or q-said/yesno-row when resolved) travel together
   as one unit: without this wrapper, .q-pick-btn's own flex-wrap could drop
   just the pill row onto its own line at certain mid-range widths (~960-1100px)
   while the percentage stayed on the line above, leaving a dangling row of
   pills under a ragged gap. Grouping them means the whole cluster wraps as
   one, right-aligned, or stays put -- never splits. */
.q-pick-btn .q-figures { display: flex; align-items: center; gap: 16px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.q-pick-btn .q-move { font: 500 12px 'IBM Plex Mono', monospace; color: var(--orange-deep); width: 90px; text-align: right; }
.q-pick-btn .q-pct { font-family: 'Space Grotesk', sans-serif; font-size: 26px; font-weight: 600; width: 72px; text-align: right; }

.drivers-list { display: flex; flex-direction: column; gap: 12px; }
.driver-row { display: flex; gap: 12px; align-items: flex-start; }
.driver-chip { flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font: 600 14px 'IBM Plex Mono', monospace; }
.driver-chip.up { background: var(--orange-soft-bg); color: var(--orange-deep); }
.driver-chip.down { background: var(--blue-soft-bg); color: var(--blue-deep); }
.driver-body { display: flex; flex-direction: column; gap: 4px; flex-grow: 1; min-width: 0; }
.driver-text { font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.driver-bar-row { display: flex; align-items: center; gap: 8px; width: 100%; max-width: 160px; }
.driver-bar { display: block; height: 4px; border-radius: 2px; }
.driver-bar.up { background: var(--orange); }
.driver-bar.down { background: var(--blue); }

.weather-strip { display: flex; gap: 16px; flex-wrap: wrap; }
.weather-col { flex: 1 1 140px; display: flex; flex-direction: column; gap: 6px; }
.weather-col .wcode { font-weight: 600; font-size: 14px; }
.weather-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-soft); gap: 8px; }
.weather-row span:last-child { font-family: 'IBM Plex Mono', monospace; }

.related-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.related-list a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; text-decoration: none; color: var(--ink); }
.related-list .rq { flex-grow: 1; font-size: 14px; font-weight: 500; line-height: 1.35; }
.related-list .rpct { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 600; }

/* -------------------------------------------------------------- airport page */

.airport-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.airport-stats { display: flex; gap: 24px; flex-wrap: wrap; margin: 16px 0; }
.airport-stat { display: flex; flex-direction: column; gap: 2px; }
.airport-stat .num { font-family: 'Space Grotesk', sans-serif; font-size: 26px; font-weight: 600; }
.airport-stat span:last-child { font-size: 12px; color: var(--muted); }

/* Wraps .flight-table so its 7 columns (Flight/Route/Departs/Arrives/Status/
   Arrive 15+ late/Cancelled) scroll horizontally instead of being silently
   clipped by the page's overflow-x:hidden on narrow screens -- the table is
   wider than a phone viewport well before the text itself would wrap. */
.flight-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.flight-table { width: 100%; min-width: 640px; border-collapse: collapse; }
.flight-table thead th { text-align: left; font: 500 11px 'IBM Plex Mono', monospace; letter-spacing: 0.05em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--border-soft); white-space: nowrap; }
.flight-table td { padding: 10px; border-bottom: 1px solid var(--border-soft); font-size: 14px; }
.flight-table td.status-cell { font-size: 12px; color: var(--muted); }
.flight-table a { text-decoration: none; color: var(--ink); font-weight: 600; }
.flight-table a:hover { text-decoration: underline; }
.empty-state { padding: 32px 20px; text-align: center; color: var(--muted); }

/* -------------------------------------------------------------- track record */

.tr-columns { display: flex; gap: 24px; align-items: stretch; flex-wrap: wrap; }
.tr-col { flex: 1 1 320px; min-width: 280px; display: flex; flex-direction: column; gap: 12px; }
.tr-col.wide { flex: 2 1 420px; }
.skill-row { display: flex; align-items: center; gap: 12px; }
.skill-row .h-label { width: 100px; font: 500 12px 'IBM Plex Mono', monospace; color: var(--ink-soft); }
.skill-track { flex-grow: 1; height: 26px; background: var(--track-soft); border-radius: 6px; display: flex; overflow: hidden; }
.skill-fill { display: block; height: 26px; background: var(--blue); border-radius: 6px; }
.skill-val { width: 50px; text-align: right; font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 600; }
.tr-summary-row { display: flex; gap: 16px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border-soft); flex-wrap: wrap; }
.tr-summary-item { flex: 1 1 140px; display: flex; flex-direction: column; gap: 2px; }
.tr-summary-item .num { font-family: 'Space Grotesk', sans-serif; font-size: 24px; font-weight: 600; }
.tr-summary-item span:last-child { font-size: 12px; color: var(--muted); }

.worst-table { width: 100%; border-collapse: collapse; }
.worst-table th { text-align: left; font: 500 11px 'IBM Plex Mono', monospace; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--border-soft); letter-spacing: .04em; }
.worst-table td { padding: 8px; border-bottom: 1px solid var(--border-soft); font-size: 13px; }
.worst-table .num-col { text-align: right; font-family: 'IBM Plex Mono', monospace; }
.miss-bad { color: var(--orange-deep); font-weight: 600; }

.methodology { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ------------------------------------------------------------------ misc */

.range-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.range-toggle button {
  border: none; background: transparent; padding: 6px 14px; font: 500 12px 'IBM Plex Mono', monospace;
  cursor: pointer; color: var(--ink-soft);
}
.range-toggle button.active { background: var(--ink); color: var(--bg); }

/* ------------------------------------------------------------------ mobile */

@media (max-width: 900px) {
  .page, .home-columns { padding-left: 16px; padding-right: 16px; }
  .hero { padding-left: 16px; padding-right: 16px; }
  .hero-stats { width: 100%; }
  .site-header-inner { padding: 10px 16px; }
  .sample-chip { order: 5; margin-left: 0; }
  .search-results { left: 16px; right: 16px; }
}

@media (max-width: 720px) {
  /* .home-columns and .layout-2col switch main axis from row to column here;
     any child with a pixel flex-basis meant for its *width* in the row
     layout (e.g. "flex: 2 1 640px") would otherwise inherit that number as a
     minimum *height* once stacked, so every such child gets flex-basis:auto
     reset below. .airports-board also has overflow:hidden (to clip the
     table to the card's rounded corners), so without this reset its stale
     640px height silently clipped every row past the second -- a real
     content-hiding bug, not just a cosmetic gap. */
  .home-columns, .layout-2col { flex-direction: column; }
  .airports-board { width: 100%; flex-basis: auto; }
  .apt-grid { grid-template-columns: minmax(0, 1fr); }
  .apt-tile.featured { display: flex; padding: 16px; }
  .apt-tile.featured .hchart { align-self: stretch; }
  .apt-tile.featured .hchart-plot { height: 96px; }
  .apt-tile.featured .apt-num .big { font-size: 52px; }
  .board-table thead { display: none; }
  .board-table, .board-table tbody, .board-table tr, .board-table td { display: block; width: 100%; }
  .board-table tr { padding: 12px 4px; border-bottom: 1px solid var(--border-soft); }
  .board-table td { border: none; padding: 3px 0; }
  .board-table td.num-col { text-align: left; }
  .bar-cell { justify-content: flex-start; }
  .flight-head { flex-direction: column; align-items: flex-start; }
  .flight-meta { align-items: flex-start; width: 100%; }
  .watch-btn { width: 100%; justify-content: center; }
  .chart-top { flex-direction: column; align-items: flex-start; }
  .chart-top .chart-stat { flex: 1 1 auto; }
  .confidence { width: 100%; }
  .q-pick-btn { gap: 10px; }
  .q-pick-btn .q-move { display: none; }
  /* .range-toggle buttons are ~27px tall at the base padding -- below the
     44px touch-target minimum -- so give them more room to tap on phones. */
  .range-toggle button { padding: 13px 16px; min-height: 44px; }
}

.typical-tag { display: inline-block; font: 500 10px 'IBM Plex Mono', monospace; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border: 1px solid currentColor; border-radius: 4px; padding: 0 4px; vertical-align: 1px; }

.q-said { font: 500 13px 'IBM Plex Mono', monospace; color: var(--muted); white-space: nowrap; align-self: center; }
.pill.outcome { font-weight: 600; flex: 0 0 auto; padding: 0 18px; }

.flight-table td, .flight-table th { vertical-align: middle; }

/* search dropdowns: anchored directly under their input */
.site-search { position: relative; }
.site-search .search-results { left: 0; right: 0; top: calc(100% + 6px); max-width: none; min-width: 320px; }
.search-anchor { position: relative; }
.search-anchor .search-results { left: 0; right: 0; top: calc(100% + 6px); max-width: 640px; }

/* ------------------------------------------------------------ theme toggle */

.site-header { box-shadow: inset 0 -1px 0 var(--header-edge); }
.theme-toggle {
  flex-shrink: 0; width: 36px; height: 36px; padding: 0; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--header-chip-line); color: var(--header-muted);
  cursor: pointer;
}
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { color: var(--header-fg); border-color: var(--header-muted); }
.theme-toggle .ti { display: none; }
.theme-toggle[data-mode="system"] .ti-system,
.theme-toggle[data-mode="dark"] .ti-dark,
.theme-toggle[data-mode="light"] .ti-light,
.theme-toggle:not([data-mode]) .ti-system { display: block; }
@media (max-width: 900px) {
  .brand { order: 0; }
  .theme-toggle { order: 1; margin-left: auto; }
  .site-search { order: 2; }
  .site-nav { order: 3; }
}

/* ------------------------------------------------------- multi-line chart */

.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0; padding: 0; list-style: none; }
.legend-item {
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 12px 4px 10px;
  border: 1px solid var(--border); border-radius: 999px; background: transparent;
  font: 500 13px 'IBM Plex Sans', sans-serif; color: var(--ink-soft); cursor: pointer;
}
.legend-item:hover { border-color: var(--border-strong); }
.legend-item .ldot { width: 10px; height: 10px; border-radius: 50%; background: var(--lc); flex-shrink: 0; }
.legend-item .lpct { font: 600 13px 'IBM Plex Mono', monospace; color: var(--lc); }
.legend-item[aria-pressed="false"] { color: var(--muted); border-style: dashed; }
.legend-item[aria-pressed="false"] .ldot { background: transparent; box-shadow: inset 0 0 0 2px var(--lc); }
.legend-item[aria-pressed="false"] .lpct { color: var(--muted); }
.legend-item.is-selected { border-color: var(--lc); color: var(--ink); }
.legend-item.is-selected .lname { font-weight: 600; }

.chart-svg-wrap { position: relative; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.chart-svg-wrap svg:focus { outline: none; }
.chart-svg-wrap svg:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 4px; border-radius: 6px; }
@media (max-width: 720px) {
  .legend-item { min-height: 40px; }
}

/* "How late will it be?" ladder: mutually exclusive ranges, Kalshi-style rows */
.ladder-card { margin-top: 24px; }
.ladder-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.ladder-head h2 { font-size: 18px; }
.ladder-tag { font: 600 11px 'IBM Plex Mono', monospace; letter-spacing: .06em; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; }
.ladder-tag.live { color: var(--bad); border-color: currentColor; }
.ladder { list-style: none; margin: 0; padding: 0; }
.ladder-row { display: flex; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border-soft); }
.ladder-row:last-child { border-bottom: 0; }
.ladder-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ladder-label { font-size: 15px; font-weight: 500; color: var(--ink); }
.ladder-bar { display: block; height: 4px; }
.ladder-bar span { display: block; height: 100%; min-width: 3px; border-radius: 2px; background: var(--bad); }
.ladder-row.good .ladder-bar span { background: var(--good); }
.ladder-row.cancel .ladder-bar span { background: var(--q-cancel); }
.ladder-pct { flex: 0 0 auto; min-width: 72px; text-align: center; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--border); font-size: 15px; font-weight: 600; color: var(--ink); }
.ladder-row.good .ladder-pct { border-color: var(--good); }
.ladder-row.bad .ladder-pct { border-color: var(--bad); }
.ladder-row.cancel .ladder-pct { border-color: var(--q-cancel); }
.ladder-row.miss { opacity: .45; }
.ladder-row.hit .ladder-pct { background: var(--good-soft-bg); color: var(--good-soft-fg); }
.ladder-row.hit.bad .ladder-pct, .ladder-row.hit.cancel .ladder-pct { background: var(--bad-soft-bg); color: var(--bad-soft-fg); }
.ladder-note { margin: 10px 0 0; font-size: 12px; color: var(--muted); }

/* ------------------------------------------------------- search autocomplete */

.search-results .ac-sec {
  padding: 10px 16px 4px; font: 600 11px 'IBM Plex Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.search-results .ac-row { display: block; border-bottom: 1px solid var(--border-soft); text-decoration: none; color: var(--ink); }
.search-results .ac-opt { display: flex; align-items: baseline; gap: 12px; padding: 10px 16px; font-size: 14px; }
.search-results .ac-opt:hover, .search-results .ac-opt[aria-selected="true"] { background: var(--blue-soft-bg); color: var(--ink); }
.search-results .ac-opt[aria-selected="true"] { box-shadow: inset 3px 0 0 var(--blue); }
.ac-code { font: 600 14px 'IBM Plex Mono', monospace; min-width: 36px; }
.ac-name { min-width: 0; }
.ac-sub { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.search-results .ac-flight { padding: 10px 16px 12px; cursor: pointer; }
.search-results .ac-flight:hover { background: var(--row-hover); }
.ac-flight-main { font-size: 14px; color: var(--ink); }
.ac-flight-main strong { font-family: 'IBM Plex Mono', monospace; font-weight: 600; }
.ac-carrier { color: var(--muted); }
.ac-note { font-size: 12px; color: var(--orange-deep); white-space: nowrap; }
.ac-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ac-msg { padding: 14px 16px; font-size: 14px; color: var(--muted); }
.ac-msg.ac-warn { color: var(--orange-deep); background: var(--orange-soft-bg); font-size: 13px; padding: 10px 16px; }
.ac-foot { padding: 8px 16px 10px; font-size: 11px; color: var(--muted); }

/* date chips: autocomplete, "other days" on the flight page, the no-JS results */
.date-chip {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px;
  min-height: 40px; justify-content: center;
  padding: 4px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--card-bg);
  font: 600 13px 'IBM Plex Sans', sans-serif; color: var(--ink); text-decoration: none; line-height: 1.2;
}
a.date-chip:hover { border-color: var(--blue); color: var(--ink); }
.date-chip .dc-sub { font: 400 11.5px 'IBM Plex Mono', monospace; color: var(--muted); white-space: nowrap; }
.date-chip.is-selected { border-color: var(--blue); background: var(--blue-soft-bg); }
.date-chip.is-typical { border-style: dashed; }
.date-chip[aria-selected="true"] { outline: 2.5px solid var(--blue); outline-offset: 1px; }

/* the "which day?" select next to each search box */
.search-date {
  flex-shrink: 0; appearance: none; -webkit-appearance: none; cursor: pointer;
  font: 500 13px 'IBM Plex Sans', sans-serif; color: var(--header-fg);
  background-color: transparent; border: 1px solid var(--header-chip-line); border-radius: 999px;
  height: 28px; padding: 0 26px 0 11px; max-width: 120px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 13px center, right 9px center; background-size: 4px 4px, 4px 4px; background-repeat: no-repeat;
}
.search-date option { color: var(--ink); background: var(--card-bg); }
.search-date:hover { border-color: var(--header-muted); }
.hero-form .hero-date {
  height: 52px; border-radius: 12px; padding: 0 34px 0 14px; font-size: 15px; max-width: none;
  border-color: var(--header-line); background-color: var(--header-raised);
  background-position: right 19px center, right 15px center; background-size: 5px 5px, 5px 5px;
}

/* day strip on the home board and airport pages */
.date-strip { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; padding: 2px 2px 6px; margin: 0 0 14px; }
.date-strip a {
  flex: 0 0 auto; display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 58px; min-height: 44px; padding: 5px 12px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--card-bg); color: var(--ink); text-decoration: none; line-height: 1.15;
}
.date-strip a:hover { border-color: var(--border-strong); color: var(--ink); }
.date-strip a[aria-current="date"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.date-strip .ds-day { font-weight: 600; font-size: 14px; }
.date-strip .ds-num { font: 400 12px 'IBM Plex Mono', monospace; opacity: .8; }
.date-strip .ds-typ { font: 500 9.5px 'IBM Plex Mono', monospace; letter-spacing: .04em; text-transform: uppercase; opacity: .75; }
.home-day { max-width: 1320px; margin: 18px auto 0; padding: 0 24px; }
.home-day .schedule-note { margin: 0; }

/* flight/airport header date */
.flight-date { font: 600 15px 'IBM Plex Sans', sans-serif; color: var(--ink); margin-top: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.flight-date-rel {
  font: 600 11px 'IBM Plex Mono', monospace; letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px; background: var(--ink); color: var(--bg);
}
.other-days { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -6px 0 20px; }
.other-days-label { font: 500 12px 'IBM Plex Mono', monospace; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.typical-note {
  margin: 0 0 20px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; line-height: 1.5;
  background: var(--blue-soft-bg); color: var(--ink); border-left: 4px solid var(--blue);
}
.typical-note-tag {
  display: inline-block; margin-right: 6px; font: 600 11px 'IBM Plex Mono', monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-deep);
}

/* no-JS search results page */
.search-page h2 { font-size: 17px; margin-bottom: 10px; }
.search-page-sec { font: 600 11px 'IBM Plex Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }
.search-page-msg { margin: 0 0 8px; color: var(--orange-deep); font-size: 14px; }
.search-page-flights { list-style: none; margin: 0; padding: 0; }
.search-page-flights li { padding: 10px 0; border-bottom: 1px solid var(--border-soft); }
.spf-main { color: var(--ink); text-decoration: none; }
.spf-dates { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.missing-card p { font-size: 15px; }

@media (max-width: 900px) {
  .home-day { padding: 0 16px; }
  .site-search .search-results { min-width: 0; }
}
@media (max-width: 720px) {
  .hero-form .hero-date { flex: 1 1 auto; }
  .hero-form button { flex: 1 1 auto; }
}
.date-chip.is-next { border-color: var(--blue); }

/* airport page flight list on phones: each flight is a compact grid (no sideways scrolling) */
.flight-table .t-short { display: none; }
@media (max-width: 720px) {
  .flight-table .t-long { display: none; }
  .flight-table .t-short { display: inline; }
  .flight-table { min-width: 0; }
  .flight-table thead { display: none; }
  .flight-table, .flight-table tbody { display: block; }
  .flight-table tr {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 48px 44px; column-gap: 8px; row-gap: 2px;
    grid-template-areas: "flight route late cx" "dep arr late cx" "status status late cx";
    padding: 10px 0; border-bottom: 1px solid var(--border-soft);
  }
  .flight-table td { display: block; padding: 0; border: none; font-size: 13px; min-width: 0; overflow-wrap: anywhere; }
  .flight-table .c-flight { grid-area: flight; }
  .flight-table .c-flight .weather-text { display: none; }
  .flight-table .c-route { grid-area: route; white-space: nowrap; }
  .flight-table .c-dep { grid-area: dep; font-size: 12px; color: var(--ink-soft); white-space: nowrap; overflow-wrap: normal; }
  .flight-table .c-arr { grid-area: arr; font-size: 12px; color: var(--ink-soft); white-space: nowrap; overflow-wrap: normal; }
  .flight-table .c-status { grid-area: status; }
  .flight-table .c-late { grid-area: late; }
  .flight-table .c-cx { grid-area: cx; }
  .flight-table .c-late, .flight-table .c-cx { text-align: right; align-self: center; font-size: 15px; font-weight: 600; }
  .flight-table .c-late::after, .flight-table .c-cx::after {
    content: attr(data-label); display: block; font: 500 10px 'IBM Plex Mono', monospace; color: var(--muted); font-weight: 400;
  }
  .flight-table .c-arr::before { content: "\2192\00a0"; color: var(--muted); }
}
@media (max-width: 360px) {
  .flight-table tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px 36px; column-gap: 6px; }
  .flight-table .c-dep, .flight-table .c-arr { font-size: 11px; }
  .flight-table .c-late::after { content: "late"; }
  .flight-table .c-cx::after { content: "canc."; }
}
