/* ==========================================================================
   GateMog site styles. Tokens come from tokens.css; nothing here names a color.
   Mobile first. Every number that updates sits in tabular figures so it never
   jitters. One violet per screen. The traffic light means the line, only.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
a { color: var(--accent-deep); text-decoration: none; text-underline-offset: 0.15em; }
a:hover { text-decoration: underline; }
[data-theme="night"] a { color: var(--accent-2); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: var(--radius-xs); z-index: 100; }
.skip:focus { left: 8px; }
.num, .tnum { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.wrap { width: min(100% - 32px, 1120px); margin-inline: auto; }
.wrap-narrow { width: min(100% - 32px, 760px); margin-inline: auto; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3, h4 { margin: 0; line-height: 1.12; font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-family: var(--font-display); }
h1 { font-size: clamp(2.1rem, 2.6vw + 1.4rem, 3.6rem); }
h2 { font-size: clamp(1.65rem, 1.4vw + 1.1rem, 2.4rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; font-family: var(--font-ui); font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--text-2); max-width: 60ch; }
.eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-deep); margin: 0 0 10px; }
[data-theme="night"] .eyebrow { color: var(--accent-2); }
.muted { color: var(--text-3); }
.small { font-size: 0.875rem; }
.section { padding: 56px 0; }
.section-head { max-width: 62ch; margin-bottom: 28px; }
.section-head p { color: var(--text-2); }
@media (min-width: 760px) { .section { padding: 80px 0; } }

/* ---------- Buttons, chips, pills ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: var(--radius-pill); border: 1px solid transparent; font-weight: 600; cursor: pointer; text-decoration: none; transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast); white-space: nowrap; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px var(--glow); }
.btn-primary:hover { background: var(--accent-deep); box-shadow: var(--shadow-glow); }
[data-theme="night"] .btn-primary:hover { background: var(--accent-2); color: #120b33; }
.btn-secondary { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text); border-color: transparent; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 0.9rem; }
.btn-lg { min-height: 52px; padding: 12px 26px; font-size: 1.05rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; }
.icon-btn svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent-deep); cursor: pointer; }
[data-theme="night"] .link-btn { color: var(--accent-2); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); background: var(--surface-2); font-size: 0.92rem; font-weight: 500; cursor: pointer; transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast); }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"], .chip[aria-selected="true"], .chip.is-on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chip-scroll::-webkit-scrollbar { display: none; }
.chip-scroll .chip { flex: 0 0 auto; }

.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 3px 10px; border-radius: var(--radius-pill); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill-quiet { background: var(--quiet-soft); color: var(--quiet-ink); }
.pill-moderate { background: var(--moderate-soft); color: var(--moderate-ink); }
.pill-heavy { background: var(--heavy-soft); color: var(--heavy-ink); }
.pill-closed { background: var(--closed-soft); color: var(--closed-ink); }
.pill-normal { background: var(--accent-soft); color: var(--accent-deep); }
[data-theme="night"] .pill-normal { color: var(--accent-2); }
.pill-busy { background: var(--moderate-soft); color: var(--moderate-ink); }
.pill-peak { background: var(--heavy-soft); color: var(--heavy-ink); }
.pill-plain { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.pill-plain::before { display: none; }
.src { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--text-3); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 2px 10px; background: var(--surface); }
.src svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ---------- Topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur)); border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.55rem; letter-spacing: -0.02em; color: var(--text); text-decoration: none; }
.wordmark:hover { text-decoration: none; }
.wordmark .mark { width: 30px; height: 30px; border-radius: 9px; flex: 0 0 auto; }
.nav { margin-left: auto; }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 4px; }
.nav-links a { display: inline-block; padding: 8px 12px; border-radius: var(--radius-pill); color: var(--text-2); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--surface-2); text-decoration: none; }
.topbar-cta { margin-left: 4px; }
.topbar-cta .long { display: none; }
.menu-btn { margin-left: auto; }
.menu-btn .menu-close { display: none; }
.menu-btn[aria-expanded="true"] .menu-open { display: none; }
.menu-btn[aria-expanded="true"] .menu-close { display: block; }
.theme-btn .i-moon { display: none; }
[data-theme="night"] .theme-btn .i-sun { display: none; }
[data-theme="night"] .theme-btn .i-moon { display: block; }
@media (max-width: 899px) {
  .nav-links.is-open { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 64px; padding: 12px 16px 18px; background: var(--bg-elev); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-1); }
  .nav-links.is-open a { display: block; padding: 12px 14px; font-size: 1.05rem; }
}
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .menu-btn { display: none; }
  .topbar-cta .long { display: inline; }
}

/* ---------- Search (omni box) ---------- */
.omni { position: relative; width: 100%; max-width: 640px; }
.omni-input { width: 100%; min-height: 56px; padding: 12px 52px 12px 48px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); background: var(--surface-solid); font: inherit; font-size: 1.05rem; color: var(--text); box-shadow: var(--shadow-1); }
.omni-input::placeholder { color: var(--text-3); }
.omni-input:focus { outline: none; border-color: var(--accent); box-shadow: var(--shadow-glow); }
.omni-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; fill: none; stroke: var(--text-3); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.omni-go { position: absolute; right: 6px; top: 6px; bottom: 6px; min-height: 0; padding: 0 16px; }
.omni-list { position: absolute; left: 0; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-m); box-shadow: var(--shadow-2); z-index: 30; max-height: 360px; overflow: auto; }
.omni-list[hidden] { display: none; }
.omni-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-xs); cursor: pointer; }
.omni-list li[aria-selected="true"], .omni-list li:hover { background: var(--accent-soft); }
.omni-code { font-family: var(--font-mono); font-weight: 600; min-width: 44px; color: var(--accent-deep); }
[data-theme="night"] .omni-code { color: var(--accent-2); }
.omni-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.omni-sub { color: var(--text-3); font-size: 0.85rem; }
.omni-empty { padding: 12px; color: var(--text-3); }
.topbar .omni { display: none; max-width: 360px; margin-left: 12px; }
.topbar .omni-input { min-height: 40px; padding: 6px 14px 6px 40px; font-size: 0.95rem; box-shadow: none; }
.topbar .omni-icon { left: 14px; width: 16px; height: 16px; }
@media (min-width: 1040px) { .topbar .omni { display: block; } }
body.home .topbar .omni { display: none; }

/* ---------- Hero ---------- */
.stage { background: var(--stage-bg); border-bottom: 1px solid var(--border); }
.hero { padding: 56px 0 40px; }
.hero h1 { max-width: 16ch; }
.hero .lead { margin-top: 16px; }
.hero-grid { display: grid; gap: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 22px; }
.hero-fine { color: var(--text-3); font-size: 0.875rem; margin-top: 14px; }
@media (min-width: 900px) { .hero { padding: 80px 0 64px; } .hero-grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; } }

/* The demo board in the hero */
.board { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-l); box-shadow: var(--shadow-2); padding: 20px; }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.board-title { font-family: var(--font-display); font-size: 1.35rem; }
.board-rows { display: grid; gap: 10px; }
.board-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-s); background: var(--surface-2); border: 1px solid var(--border); }
.board-row .t { font-weight: 600; }
.board-row .a { color: var(--text-3); font-size: 0.82rem; display: block; font-weight: 400; }
.board-row .w { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 1.05rem; }
.board-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; color: var(--text-3); font-size: 0.82rem; flex-wrap: wrap; }

/* ---------- Facts strip ---------- */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.fact { padding: 18px; border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--border); }
.fact .n { font-family: var(--font-display); font-size: 2.2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.fact .l { color: var(--text-2); font-size: 0.92rem; margin-top: 6px; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Cards and grids ---------- */
.card-grid { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .card-grid { grid-template-columns: repeat(3, 1fr); } .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
.card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: var(--radius-m); background: var(--bg-elev); border: 1px solid var(--border); box-shadow: var(--shadow-1); transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast); }
.card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.card h3 { font-size: 1.2rem; }
.card h3 a { color: inherit; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card p { margin: 0; color: var(--text-2); font-size: 0.95rem; }
.card-kicker { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.card-meta { color: var(--text-3); font-size: 0.85rem; margin-top: auto; }
.card-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-deep); display: grid; place-items: center; }
.card-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[data-theme="night"] .card-icon { color: var(--accent-2); }

/* Airport tiles (home, airports index) */
.ap-grid { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .ap-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .ap-grid { grid-template-columns: repeat(5, 1fr); } }
.ap { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: var(--radius-s); background: var(--bg-elev); border: 1px solid var(--border); min-height: 112px; transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast); }
.ap:hover { transform: translateY(-2px); border-color: var(--accent); }
.ap-code { font-family: var(--font-mono); font-weight: 600; font-size: 1.25rem; letter-spacing: 0.02em; }
.ap-city { color: var(--text-2); font-size: 0.9rem; line-height: 1.25; }
.ap a { color: inherit; }
.ap a::after { content: ""; position: absolute; inset: 0; }
.ap .pill { margin-top: auto; align-self: flex-start; }
.ap .w { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-3); }
.ap.is-skel .pill { opacity: 0.5; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 22px; border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--border); counter-increment: step; }
.step::before { content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.step h3 { font-size: 1.15rem; margin-bottom: 6px; }
.step p { margin: 0; color: var(--text-2); }

/* ---------- Definition block (answer engines) ---------- */
.definition { padding: 26px; border-radius: var(--radius-m); background: var(--bg-elev); border: 1px solid var(--border); border-left: 4px solid var(--accent); }
.definition p { margin: 0; font-size: 1.08rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius-s); background: var(--bg-elev); }
.faq summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: translateY(-70%) rotate(45deg); transition: transform var(--dur-fast); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq .faq-a { padding: 0 18px 18px; color: var(--text-2); }
.faq .faq-a p:last-child { margin-bottom: 0; }

/* ---------- Honest box, callouts ---------- */
.callout { padding: 18px 20px; border-radius: var(--radius-s); background: var(--surface); border: 1px solid var(--border); }
.callout h2, .callout h3 { font-family: var(--font-ui); font-size: 1rem; font-weight: 700; letter-spacing: 0; margin-bottom: 8px; }
.callout ul { margin: 0; padding-left: 18px; }
.callout-note { border-left: 4px solid var(--accent); }
.callout-warn { border-left: 4px solid var(--moderate); }
.disclaimer { font-size: 0.85rem; color: var(--text-3); padding: 14px 16px; border-radius: var(--radius-s); background: var(--surface); border: 1px dashed var(--border-strong); }

/* ---------- Closing band ---------- */
.band { padding: 48px 24px; border-radius: var(--radius-l); background: var(--accent-grad); color: #fff; text-align: center; }
.band h2 { color: #fff; }
.band p { color: rgba(255, 255, 255, 0.85); max-width: 52ch; margin-inline: auto; }
.band .btn-primary { background: #fff; color: #2a2290; box-shadow: none; }
.band .btn-primary:hover { background: #f1efff; color: #2a2290; }

/* ---------- Footer ---------- */
.footer { margin-top: 64px; border-top: 1px solid var(--border); background: var(--bg-2); padding: 40px 0 24px; color: var(--text-2); font-size: 0.92rem; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 2fr; } }
.footer-brand p { max-width: 44ch; }
.footer-note { font-size: 0.82rem; color: var(--text-3); }
.footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (min-width: 520px) { .footer-links { grid-template-columns: repeat(3, 1fr); } }
.footer-h { font-family: var(--font-ui); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a, .footer-links .link-btn { color: var(--text-2); }
.footer-base { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--text-3); }
.footer-base p { margin: 0 0 6px; }

/* ---------- Consent bar ---------- */
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; padding: 14px 16px; border-radius: var(--radius-m); background: var(--bg-elev); border: 1px solid var(--border); box-shadow: var(--shadow-2); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 0.9rem; }
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1 1 260px; }
@media (min-width: 760px) { .consent { left: auto; max-width: 520px; } }

/* ---------- Breadcrumbs ---------- */
.crumbs { padding: 18px 0 0; font-size: 0.88rem; color: var(--text-3); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--border-strong); }
.crumbs a { color: var(--text-2); }

/* ---------- Forecast components (airport and terminal pages) ---------- */
.ap-hero { padding: 28px 0 24px; }
.ap-hero h1 { max-width: 22ch; }
.ap-hero .lead { margin-top: 10px; }
.ap-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 14px; color: var(--text-3); font-size: 0.88rem; align-items: center; }
.ap-meta .live { font-weight: 500; }
.controls { display: grid; gap: 12px; margin: 20px 0 8px; }
.control-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }

.now { display: grid; gap: 16px; padding: 22px; border-radius: var(--radius-l); background: var(--bg-elev); border: 1px solid var(--border); box-shadow: var(--shadow-1); }
@media (min-width: 760px) { .now { grid-template-columns: 1.2fr 1fr; padding: 28px; } }
.now-main { display: flex; flex-direction: column; gap: 10px; }
.now-where { color: var(--text-2); font-weight: 500; }
.now-wait { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: clamp(2.6rem, 6vw + 1rem, 4.4rem); line-height: 1; letter-spacing: -0.02em; font-weight: 500; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.now-wait .unit { font-family: var(--font-ui); font-size: 1rem; color: var(--text-3); letter-spacing: 0; font-weight: 500; }
.now-wait.is-closed { font-size: clamp(1.8rem, 4vw + 0.6rem, 2.6rem); }
.now-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.now-side { display: grid; gap: 10px; align-content: start; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: var(--radius-xs); background: var(--surface); border: 1px solid var(--border); font-size: 0.92rem; }
.kv .k { color: var(--text-3); }
.kv .v { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.now-links { display: flex; flex-wrap: wrap; gap: 8px; }
.alert-strip { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-s); background: var(--moderate-soft); color: var(--moderate-ink); font-size: 0.92rem; }
.alert-strip[hidden] { display: none; }
.alert-strip.is-heavy { background: var(--heavy-soft); color: var(--heavy-ink); }

/* Hourly strip */
.strip-wrap { position: relative; margin-top: 8px; }
.strip { display: flex; gap: 6px; overflow-x: auto; padding: 8px 2px 10px; scroll-snap-type: x proximity; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.hour { flex: 0 0 64px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px 8px; border-radius: var(--radius-s); border: 1px solid transparent; background: transparent; cursor: pointer; text-align: center; }
.hour:hover { background: var(--surface-2); }
.hour[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.hour.is-now { border-color: var(--border-strong); }
.hour .h { font-size: 0.8rem; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hour.is-now .h { color: var(--text); font-weight: 600; }
.hour .bars { position: relative; width: 26px; height: 72px; display: flex; align-items: flex-end; justify-content: center; }
.hour .usual { position: absolute; left: 4px; right: 4px; bottom: 0; border-radius: 4px 4px 0 0; background: var(--bar-usual); }
.hour .bar { position: relative; width: 14px; border-radius: 5px 5px 0 0; min-height: 3px; }
.hour .bar.q { background: var(--quiet); }
.hour .bar.m { background: var(--moderate); }
.hour .bar.hv { background: var(--heavy); }
.hour .bar.c { background: var(--closed); opacity: 0.5; }
.hour .m { font-family: var(--font-mono); font-size: 0.86rem; font-variant-numeric: tabular-nums; font-weight: 500; }
.hour .d { font-size: 0.68rem; color: var(--accent-deep); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; height: 12px; }
[data-theme="night"] .hour .d { color: var(--accent-2); }
.strip-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 0.8rem; color: var(--text-3); margin-top: 4px; align-items: center; }
.strip-legend .sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 5px; }
.hour-detail { margin-top: 10px; padding: 12px 14px; border-radius: var(--radius-s); background: var(--surface); border: 1px solid var(--border); font-size: 0.95rem; }
.hour-detail b { font-variant-numeric: tabular-nums; }

/* 7-day list */
.days { display: grid; gap: 8px; list-style: none; margin: 8px 0 0; padding: 0; }
.day { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--radius-s); background: var(--bg-elev); border: 1px solid var(--border); cursor: pointer; text-align: left; width: 100%; }
.day:hover { border-color: var(--accent); }
.day[aria-expanded="true"] { border-color: var(--accent); }
.day .dn { font-weight: 600; }
.day .dd { display: block; color: var(--text-3); font-size: 0.8rem; font-weight: 400; }
.range { display: block; position: relative; height: 10px; border-radius: 5px; background: var(--meter-track); }
.range .fill { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: linear-gradient(90deg, var(--quiet), var(--moderate) 55%, var(--heavy)); }
.range .lab { position: absolute; top: 14px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.range .lab.lo { left: 0; }
.range .lab.hi { right: 0; }
.day .rg { display: block; padding: 2px 0 0; min-width: 0; }
.day .pk { display: block; font-size: 0.8rem; color: var(--text-3); margin-top: 8px; }
.day .pk b { color: var(--text); font-weight: 500; font-size: 0.85rem; }
.day-detail { grid-column: 1 / -1; padding: 10px 0 0; color: var(--text-2); font-size: 0.92rem; }
.day-detail[hidden] { display: none; }
@media (max-width: 520px) { .day { grid-template-columns: 86px 1fr auto; gap: 8px; padding: 10px; } .day .pill { font-size: 0.72rem; padding: 2px 8px; } .day .pill::before { display: none; } }

/* Terminal grid */
.terms { display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 760px) { .terms { grid-template-columns: repeat(2, 1fr); } }
.term { padding: 18px; border-radius: var(--radius-m); background: var(--bg-elev); border: 1px solid var(--border); display: grid; gap: 12px; }
.term.is-sel { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.term-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.term-head h3 { font-size: 1.2rem; }
.term-head a { color: inherit; }
.term-air { color: var(--text-3); font-size: 0.86rem; line-height: 1.4; }
.lanes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lane { padding: 10px; border-radius: var(--radius-xs); background: var(--surface); border: 1px solid var(--border); display: grid; gap: 4px; text-align: center; }
.lane .ln { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-3); }
.lane .lw { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 1.05rem; font-weight: 500; }
.lane .lw.na { color: var(--text-3); font-family: var(--font-ui); font-size: 0.85rem; }
.lane .pill { justify-self: center; font-size: 0.7rem; min-height: 20px; padding: 1px 8px; }
.term-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.85rem; color: var(--text-3); }

/* Calculator and report */
.tool { padding: 22px; border-radius: var(--radius-m); background: var(--bg-elev); border: 1px solid var(--border); box-shadow: var(--shadow-1); display: grid; gap: 14px; }
.tool h2 { font-size: 1.5rem; }
.form-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, 1fr); } .form-grid .full { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--text-2); }
.field input, .field select { min-height: 44px; padding: 8px 12px; border-radius: var(--radius-xs); border: 1px solid var(--border-strong); background: var(--surface-solid); color: var(--text); font: inherit; font-variant-numeric: tabular-nums; }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.result { padding: 16px 18px; border-radius: var(--radius-s); background: var(--accent-soft); border: 1px solid var(--accent-soft-2); display: grid; gap: 8px; }
.result[hidden] { display: none; }
.result .big { font-family: var(--font-display); font-size: 1.9rem; line-height: 1.1; }
.result .big .num { font-family: var(--font-mono); font-size: 1.6rem; }
.result ul { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 0.92rem; }
.report-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.report-state { font-size: 0.92rem; color: var(--text-2); }
.report-state b { font-variant-numeric: tabular-nums; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-s); background: var(--bg-elev); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.tbl th, .tbl td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.tbl th { font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-3); font-weight: 600; background: var(--surface); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Two-column page sections on airport pages */
.ap-section { padding: 36px 0 0; }
.ap-section h2 { margin-bottom: 14px; }
.ap-section .section-sub { color: var(--text-2); margin-bottom: 16px; max-width: 64ch; }
.ap-two { display: grid; gap: 24px; }
@media (min-width: 980px) { .ap-two { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.sticky { position: sticky; top: 80px; }

/* Skeleton */
.skel { color: transparent !important; background: linear-gradient(90deg, var(--meter-track), var(--surface-2), var(--meter-track)); background-size: 200% 100%; border-radius: 6px; animation: gm-shimmer 1.2s linear infinite; }
@keyframes gm-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }
.no-js .js-only { display: none; }
.js .no-js-only { display: none; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* ---------- Ask GateMog ---------- */
.ask { margin-top: 24px; padding: 22px; border-radius: var(--radius-m); background: var(--bg-elev); border: 1px solid var(--border); box-shadow: var(--shadow-1); display: grid; gap: 12px; }
.ask h2 { font-size: 1.5rem; }
.ask-form { display: flex; gap: 8px; flex-wrap: wrap; }
.ask-form .omni-input { flex: 1 1 260px; min-height: 48px; padding-left: 16px; box-shadow: none; }
.ask-answer { padding: 14px 16px; border-radius: var(--radius-s); background: var(--accent-soft); border: 1px solid var(--accent-soft-2); white-space: pre-line; line-height: 1.55; }
.ask-answer.is-busy { color: var(--text-3); }
.ask-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ask-chips .chip { min-height: 30px; font-size: 0.82rem; padding: 4px 10px; }

/* ---------- motion: numbers tween, bars grow, rows rise; all off under reduced motion ---------- */
body { transition: background-color var(--dur-med), color var(--dur-med); }
.pill, .lane .lw, .now-wait, .src { transition: background var(--dur-fast), color var(--dur-fast), opacity var(--dur-fast); }
@keyframes gm-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes gm-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes gm-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes gm-pop { 0% { transform: scale(0.96); opacity: 0.6; } 100% { transform: none; opacity: 1; } }
@keyframes gm-drift { 0%, 100% { background-position: 0% 0%, 100% 0%, 70% 100%, 0 0; } 50% { background-position: 20% 15%, 80% 10%, 50% 85%, 0 0; } }
.js .hour .bar { transform-origin: bottom; animation: gm-grow var(--dur-med) var(--ease-out) both; animation-delay: calc(var(--i, 0) * 12ms); }
.js .hour .usual { transform-origin: bottom; animation: gm-grow var(--dur-slow) var(--ease-out) both; }
.js .range .fill { transform-origin: left; animation: gm-fill var(--dur-slow) var(--ease-out) both; animation-delay: calc(var(--i, 0) * 50ms); }
.js .days > li { animation: gm-up var(--dur-med) var(--ease-out) both; animation-delay: calc(var(--i, 0) * 45ms); }
.js .board-row { animation: gm-up var(--dur-med) var(--ease-out) both; animation-delay: calc(var(--i, 0) * 80ms); }
.js .now-pill-pop { animation: gm-pop var(--dur-med) var(--ease-spring) both; }
.js .ask-answer:not([hidden]) { animation: gm-up var(--dur-med) var(--ease-out) both; }
.stage { background-size: 140% 140%; }
@media (prefers-reduced-motion: no-preference) { .stage { animation: gm-drift 26s ease-in-out infinite; } }
@media (prefers-reduced-motion: reduce) { .js .hour .bar, .js .hour .usual, .js .range .fill, .js .days > li, .js .board-row, .js .now-pill-pop, .js .ask-answer:not([hidden]) { animation: none; } }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 20px); padding: 12px 18px; border-radius: var(--radius-pill); background: var(--text); color: var(--bg); font-size: 0.92rem; box-shadow: var(--shadow-2); opacity: 0; transition: opacity var(--dur-med), transform var(--dur-med) var(--ease-out); z-index: 70; pointer-events: none; max-width: calc(100% - 32px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
