/* HoldingPattern website. Light and dark from the same palette; dark is chosen, not inverted. */
:root {
  color-scheme: light;
  --page: #f6f7f8; --surface: #ffffff; --surface-2: #f1f3f5; --ink: #191919; --ink-2: #666666;
  --grid: #e7e7e7; --axis: #c2c2c2; --border: rgba(11, 11, 11, 0.10); --shadow: 0 6px 24px rgba(0, 0, 0, .10);
  --s1: #257de0; --s2: #f47230; --s3: #00b894; --muted: #cfcfcf; --crit: #dc3c3d; --good: #0aac23;
  --land: #efefec; --coast: #d4d4cf; --sea: #ffffff; --accent-wash: rgba(37, 125, 224, 0.08);
  --map-sea: #e8edf2; --map-land: #fbfbf9; --map-coast: #cdd3cb; --map-ring: rgba(25, 25, 25, .30);
  --map-label: #3d3d3d; --map-halo: rgba(251, 251, 249, .92); --ph-other: #8a8a8a; --ph-ground: #b9b9b9;
  --icon-edge: rgba(0, 0, 0, .45);
  --top-h: 52px; --tab-h: 58px; --panel-w: 380px;
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0b0b0b; --surface: #191919; --surface-2: #222222; --ink: #efefef; --ink-2: #9c9c9c;
    --grid: #303030; --axis: #474747; --border: rgba(255, 255, 255, 0.10); --shadow: 0 6px 24px rgba(0, 0, 0, .5);
    --s1: #338ced; --s2: #e76624; --s3: #00a888; --muted: #474747; --good: #0aac23;
    --land: #222222; --coast: #353535; --sea: #191919; --accent-wash: rgba(51, 140, 237, 0.12);
    --map-sea: #0f1419; --map-land: #1c1e21; --map-coast: #30353a; --map-ring: rgba(239, 239, 239, .26);
    --map-label: #c4c4c4; --map-halo: rgba(15, 20, 25, .9); --ph-other: #8f8f8f; --ph-ground: #5f5f5f;
    --icon-edge: rgba(0, 0, 0, .7);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0b0b0b; --surface: #191919; --surface-2: #222222; --ink: #efefef; --ink-2: #9c9c9c;
  --grid: #303030; --axis: #474747; --border: rgba(255, 255, 255, 0.10); --shadow: 0 6px 24px rgba(0, 0, 0, .5);
  --s1: #338ced; --s2: #e76624; --s3: #00a888; --muted: #474747; --good: #0aac23;
  --land: #222222; --coast: #353535; --sea: #191919; --accent-wash: rgba(51, 140, 237, 0.12);
  --map-sea: #0f1419; --map-land: #1c1e21; --map-coast: #30353a; --map-ring: rgba(239, 239, 239, .26);
  --map-label: #c4c4c4; --map-halo: rgba(15, 20, 25, .9); --ph-other: #8f8f8f; --ph-ground: #5f5f5f;
  --icon-edge: rgba(0, 0, 0, .7);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); overflow: hidden;
  display: grid; grid-template-rows: var(--top-h) minmax(0, 1fr); height: 100dvh; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--s1); }
:focus-visible { outline: 2px solid var(--s1); outline-offset: 2px; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ top bar */
.top { display: flex; align-items: center; gap: 18px; padding: 0 14px; padding-left: max(14px, env(safe-area-inset-left));
  padding-right: max(14px, env(safe-area-inset-right)); background: var(--surface); border-bottom: 1px solid var(--border); z-index: 5; }
.top { min-width: 0; overflow: hidden; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; flex: none; }
.brand svg { width: 26px; height: 26px; flex: none; }
.brand svg rect { fill: none; stroke: var(--s2); stroke-width: 3; }
.brand svg circle { fill: var(--ink); }
.brand-name { font-weight: 680; letter-spacing: -.01em; }
.brand-sub { color: var(--ink-2); font-size: 13px; white-space: nowrap; }
.tabs { display: flex; gap: 2px; margin-left: 6px; }
.tabs button { border: 0; background: none; padding: 7px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 560; }
.tabs button:hover { background: var(--surface-2); color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--surface-2); color: var(--ink); }
.status { margin-left: auto; display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; flex: 1 1 auto; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2);
  font-size: 12px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; min-width: 0; flex: 0 1 auto; overflow: hidden; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-2); flex: none; }
.pill.live i { background: var(--good); animation: pulse 2s infinite; }
.pill.sim i { background: var(--s1); animation: pulse 2s infinite; }
.pill.replay i { background: var(--s2); }
.pill.off i { background: var(--crit); }
.pill b { font-weight: inherit; overflow: hidden; text-overflow: ellipsis; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .pill i { animation: none !important; } }
.clock { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 14px; white-space: nowrap; flex: none; }
.connect { flex: none; border: 0; border-radius: 999px; padding: 6px 13px; background: var(--s1); color: #fff; font-weight: 650;
  font-size: 13px; white-space: nowrap; min-height: 32px; }
.connect.on { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--border); }
.connect:disabled { opacity: .7; cursor: progress; }
.banner .btn { margin-left: 6px; margin-top: 4px; padding: 5px 11px; font-size: 13px; }
.banner.live { background: color-mix(in srgb, var(--good) 10%, transparent); border-color: color-mix(in srgb, var(--good) 35%, transparent); }

/* ------------------------------------------------------------------ layout */
main { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) var(--panel-w); min-height: 0; }
main.pageview { grid-template-columns: minmax(0, 1fr); }
main.pageview .mapwrap, main.pageview .panel { display: none; }
.mapwrap { position: relative; min-height: 0; background: var(--map-sea); overflow: hidden; }
#map { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; display: block; }
#map:active { cursor: grabbing; }
.panel { min-height: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--page); border-left: 1px solid var(--border);
  padding: 14px 14px 28px; scrollbar-width: thin; }
.page { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 28px 20px 48px; }
.tabbar { display: none; }

@media (max-width: 899px) {
  body { grid-template-rows: var(--top-h) minmax(0, 1fr) calc(var(--tab-h) + env(safe-area-inset-bottom)); }
  .tabs { display: none; }
  .brand-sub { display: none; }
  main { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(240px, 48%) minmax(0, 1fr); }
  main.pageview { grid-template-rows: minmax(0, 1fr); }
  .panel { border-left: 0; border-top: 1px solid var(--border); padding: 12px 12px 24px; }
  .page { padding: 20px 14px 36px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom); z-index: 5; }
  .tabbar button { border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    font-size: 11px; font-weight: 600; color: var(--ink-2); padding: 6px 0; }
  .tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar button[aria-current="page"] { color: var(--s1); }
}
@media (max-width: 480px) { .top { gap: 10px; padding: 0 10px; } .clock { font-size: 13px; } .pill { font-size: 10.5px; padding: 4px 8px; letter-spacing: .02em; } .brand-name { font-size: 15px; } }
@media (max-width: 400px) { .brand-name { display: none; } }
@media (max-width: 480px) { .connect:not([hidden]) ~ .clock { display: none; } .connect { padding: 5px 10px; font-size: 12px; } }
@media (min-width: 1400px) { :root { --panel-w: 420px; } }

/* ------------------------------------------------------------------ map overlays */
.map-ctl { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; }
.map-ctl button { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface);
  box-shadow: var(--shadow); font-size: 20px; line-height: 1; display: grid; place-items: center; padding: 0; }
.map-ctl svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; margin: 0; padding: 0; font-size: 12.5px; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 2px var(--surface); }
.k-arr { background: var(--s1); } .k-dep { background: var(--s3); } .k-hold { background: var(--s2); } .k-oth { background: var(--ph-other); }
.map-legend { position: absolute; left: 10px; bottom: 10px; background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--border); border-radius: 10px; padding: 6px 10px; max-width: calc(100% - 70px); backdrop-filter: blur(6px); }
.mapwrap:has(.player:not([hidden])) .map-legend { bottom: 70px; }
.k-apt { background: var(--map-label) !important; border-radius: 1px !important; }

.player { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  background: color-mix(in srgb, var(--surface) 94%, transparent); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow);
  backdrop-filter: blur(6px); }
.pp, .pexit { width: 36px; height: 36px; flex: none; border-radius: 50%; border: 0; background: var(--s1); color: #fff; display: grid; place-items: center; padding: 0; }
.pp svg { width: 18px; height: 18px; fill: currentColor; }
.pp .i-play { display: none; } .pp.paused .i-play { display: block; } .pp.paused .i-pause { display: none; }
.pexit { background: var(--surface-2); color: var(--ink); font-size: 22px; }
.scrub { position: relative; flex: 1; min-width: 80px; height: 36px; display: flex; align-items: center; }
.ticks { position: absolute; left: 8px; right: 8px; top: 3px; height: 8px; pointer-events: none; }
.ticks span { position: absolute; top: 0; width: 3px; height: 8px; border-radius: 2px; transform: translateX(-1px); background: var(--s2); }
.ticks span.ga { background: var(--ink); height: 8px; width: 0; border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-bottom: 8px solid var(--ink); background: none; transform: translateX(-4px); border-radius: 0; }
.ticks span.dv { background: var(--ink); transform: translateX(-3px) rotate(45deg); width: 6px; height: 6px; top: 1px; border-radius: 1px; }
#seek { width: 100%; margin: 12px 0 0; accent-color: var(--s1); height: 24px; }
.ptime { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 13px; min-width: 76px; text-align: center; }
#speed { border: 1px solid var(--border); background: var(--surface); border-radius: 8px; padding: 6px 4px; font-size: 13px; }
@media (max-width: 520px) { .player { gap: 6px; padding: 6px 8px; left: 6px; right: 6px; bottom: 6px; } .ptime { min-width: 64px; font-size: 12px; } .map-legend { font-size: 11.5px; gap: 4px 10px; } }

/* ------------------------------------------------------------------ panel content */
.pane > * + * { margin-top: 14px; }
.ph { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 8px; }
.ph h2 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin: 0; font-weight: 650; }
.ph small { color: var(--ink-2); font-size: 12px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 11px; min-width: 0; }
.kpi .v { font-size: 22px; font-weight: 680; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.kpi .v small { font-size: 13px; font-weight: 560; color: var(--ink-2); margin-left: 2px; }
.kpi .l { font-size: 12px; color: var(--ink-2); line-height: 1.3; margin-top: 3px; }
.kpi.hold .v { color: var(--ink); } .kpi.hold .l::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--s2); margin-right: 5px; }
.note { color: var(--ink-2); font-size: 13px; margin: 0; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { border-top: 1px solid var(--grid); }
.list li:first-child { border-top: 0; }
.row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; width: 100%; text-align: left;
  border: 0; background: none; padding: 9px 2px; border-radius: 8px; }
button.row:hover { background: var(--surface-2); }
.row .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); }
.row .ic svg { width: 16px; height: 16px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke: var(--ink-2); }
.ic.arr svg { stroke: var(--s1); } .ic.dep svg { stroke: var(--s3); } .ic.hold svg { stroke: var(--s2); } .ic.ink svg { stroke: var(--ink); }
.ic.crit svg { stroke: var(--crit); }
.row .main { min-width: 0; }
.row .t1 { font-weight: 620; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .t2 { color: var(--ink-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .side { text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.row .side b { color: var(--ink); font-size: 14px; }
.chip { display: inline-block; white-space: nowrap; font-size: 11.5px; font-weight: 650; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.chip.arr { background: color-mix(in srgb, var(--s1) 16%, transparent); color: var(--ink); }
.chip.dep { background: color-mix(in srgb, var(--s3) 18%, transparent); color: var(--ink); }
.chip.hold { background: color-mix(in srgb, var(--s2) 20%, transparent); color: var(--ink); }
.bar { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-top: 5px; }
.bar i { display: block; height: 100%; background: var(--s1); border-radius: 3px; }
.empty { color: var(--ink-2); font-size: 13.5px; padding: 6px 2px; margin: 0; }
.banner { background: var(--accent-wash); border: 1px solid color-mix(in srgb, var(--s1) 25%, transparent); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; }
.banner b { font-weight: 650; }
.btn { border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 7px 12px; font-weight: 600; font-size: 14px; }
.btn.primary { background: var(--s1); border-color: var(--s1); color: #fff; }
.btn:hover { filter: brightness(1.05); }

/* selected aircraft */
.sel { position: sticky; top: -14px; z-index: 2; margin: -14px -14px 14px; padding: 12px 14px; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
@media (max-width: 899px) { .sel { top: -12px; margin: -12px -12px 12px; } }
.sel-h { display: flex; align-items: center; gap: 10px; }
.sel-h h3 { margin: 0; font-size: 18px; letter-spacing: -.01em; }
.sel-h .x { margin-left: auto; border: 0; background: var(--surface-2); width: 30px; height: 30px; border-radius: 50%; font-size: 18px; line-height: 1; }
.sel-sub { color: var(--ink-2); font-size: 13px; margin: 2px 0 8px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.facts div { min-width: 0; }
.facts b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.facts span { font-size: 11.5px; color: var(--ink-2); }
.spark { width: 100%; height: 44px; display: block; margin-top: 8px; }
.spark path.a { fill: color-mix(in srgb, var(--s1) 14%, transparent); stroke: none; }
.spark path.l { fill: none; stroke: var(--s1); stroke-width: 2; stroke-linejoin: round; }
.spark line { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 2 3; }
.spark-x { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-2); margin-top: 2px; font-variant-numeric: tabular-nums; }
.pred { margin-top: 8px; font-size: 13.5px; }

/* featured replays and days */
.feat { display: block; width: 100%; text-align: left; border: 1px solid var(--border); background: var(--surface); border-radius: 14px; padding: 12px 14px; }
.feat + .feat { margin-top: 8px; }
.feat:hover { border-color: color-mix(in srgb, var(--s1) 45%, var(--border)); }
.feat .d { font-size: 12px; color: var(--ink-2); font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.feat h3 { font-size: 15.5px; margin: 2px 0 4px; letter-spacing: -.01em; }
.feat p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.feat.on { border-color: var(--s1); box-shadow: 0 0 0 1px var(--s1) inset; }
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.day { border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 7px 8px; text-align: left; }
.day b { display: block; font-size: 13.5px; }
.day span { font-size: 11.5px; color: var(--ink-2); display: block; }
.day.on { border-color: var(--s1); box-shadow: 0 0 0 1px var(--s1) inset; }

/* ------------------------------------------------------------------ pages (insights, model, about) */
.wrap { max-width: 1120px; margin: 0 auto; }
.eyebrow { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 6px; font-weight: 650; }
h1 { font-size: clamp(24px, 4vw, 34px); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 8px; }
.lede { color: var(--ink-2); margin: 0; max-width: 68ch; font-size: 15.5px; }
.grid { display: grid; gap: 14px; margin-top: 18px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 899px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g2 { grid-template-columns: minmax(0, 1fr); } }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; min-width: 0; }
.tile .label { font-size: 13px; color: var(--ink-2); }
.tile .fig { font-size: 28px; font-weight: 680; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.tile .fig small { font-size: 15px; font-weight: 560; color: var(--ink-2); margin-left: 3px; }
.tile .sub { font-size: 12.5px; color: var(--ink-2); }
.card h2 { font-size: 16px; margin: 0 0 2px; letter-spacing: -.01em; }
.card .sub { color: var(--ink-2); font-size: 13px; margin: 0 0 12px; }
.map-desk { display: block; } .map-mob { display: none; }
@media (max-width: 640px) { .map-desk { display: none; } .map-mob { display: block; } }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--grid); vertical-align: middle; }
th { color: var(--ink-2); font-weight: 600; font-size: 12px; }
.tbl { overflow-x: auto; margin: 0 -4px; }
td .btn { padding: 3px 9px; font-size: 12.5px; }
.prose { max-width: 70ch; margin: 0 auto; }
.prose h2 { font-size: 18px; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--ink); }
.prose li + li { margin-top: 6px; }
.flow { padding-left: 20px; }
.imp { list-style: none; padding: 0; margin: 0; }
.imp li { display: grid; grid-template-columns: minmax(0, 1fr) 70px; gap: 3px 10px; padding: 6px 0; border-top: 1px solid var(--grid); font-size: 13.5px; }
.imp li:first-child { border-top: 0; }
.imp .bar { grid-column: 1 / -1; margin: 0; }
.imp .v { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }

/* server-rendered SVG charts (same classes as the report) */
svg.chart { width: 100%; height: auto; display: block; font-family: inherit; }
svg .grid { stroke: var(--grid); stroke-width: 1; }
svg .axis { stroke: var(--axis); stroke-width: 1; }
svg .tick { fill: var(--ink-2); font-size: 11.5px; font-variant-numeric: tabular-nums; }
svg .cat { fill: var(--ink); font-size: 12px; }
svg .vlabel { fill: var(--ink); font-size: 12px; font-variant-numeric: tabular-nums; }
svg .bar.s1 { fill: var(--s1); } svg .bar.muted { fill: var(--muted); }
svg .line.s1 { fill: none; stroke: var(--s1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
svg .dot { stroke: var(--surface); stroke-width: 2; }
svg .dot.s1 { fill: var(--s1); } svg .dot.s2 { fill: var(--s2); }
svg:not(.map) .mark .dot { opacity: 0; }
svg:not(.map) .mark:hover .dot, svg:not(.map) .mark:focus .dot { opacity: 1; }
svg .hit { fill: transparent; }
svg .hitline { fill: none; stroke: transparent; stroke-width: 14; stroke-linejoin: round; }
svg .mark { outline: none; cursor: default; }
svg .mark:hover .bar, svg .mark:focus .bar { filter: brightness(1.15); }
svg .mark:focus-visible .bar, svg .mark:focus-visible .dot { stroke: var(--ink); stroke-width: 1.5; }
svg .xhair { stroke: var(--axis); stroke-width: 1; visibility: hidden; }
svg .sea { fill: var(--sea); }
svg .land { fill: var(--land); stroke: var(--coast); stroke-width: 1; }
svg .ring { fill: none; stroke: var(--axis); stroke-width: 1; }
svg .ringlabel, svg .reflabel { fill: var(--ink-2); font-size: 11px; }
svg .refapt { fill: var(--ink-2); }
svg .aptlabel { fill: var(--ink); font-size: 12px; font-weight: 650; }
svg .runway { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
svg .scale { stroke: var(--ink-2); stroke-width: 2; }
svg .trk { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; opacity: .8; }
svg .trk.s1 { stroke: var(--s1); } svg .trk.s3 { stroke: var(--s3); }
svg .mark:hover .trk, svg .mark:focus .trk { stroke-width: 3.5; opacity: 1; }
/* the insights map follows the live map's colours: holds orange, go-arounds ink, diversions dashed grey */
.imap svg .trk.s1 { stroke: var(--s2); }
.imap svg .dot.s2 { fill: var(--ink); }
.imap svg .trk.s3 { stroke: var(--ink-2); stroke-dasharray: 6 5; }
svg .sc { fill: var(--s1); fill-opacity: .45; }
svg .diag { stroke: var(--ink-2); stroke-dasharray: 4 4; stroke-width: 1; }
#tip { position: fixed; z-index: 20; pointer-events: none; background: var(--surface); color: var(--ink); border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 10px; font-size: 12.5px; box-shadow: var(--shadow); max-width: 300px; display: flex; flex-direction: column; gap: 2px; }
#tip strong { font-size: 14px; font-weight: 650; }
#tip span { color: var(--ink-2); }
.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + 18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 30;
  background: var(--ink); color: var(--page); padding: 9px 14px; border-radius: 10px; font-size: 13.5px; box-shadow: var(--shadow); max-width: 90vw; }
@media (min-width: 900px) { .toast { bottom: 24px; } }
@media (forced-colors: active) { svg .trk, svg .bar, svg .dot { forced-color-adjust: none; } }

/* ------------------------------------------------------------------ India explorer: search, layers, airport card, chart dialog */
main.mapfull { grid-template-columns: minmax(0, 1fr); }
main.mapfull .panel { display: none; }
@media (max-width: 899px) { .only-wide { display: none !important; } }
.map-ctl button[aria-pressed="true"], .map-ctl button[aria-expanded="true"] { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--s1); }
.map-ctl #zindia { font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.search { position: absolute; left: 10px; top: 10px; width: min(380px, calc(100% - 66px)); z-index: 4; }
.search > svg { position: absolute; left: 11px; top: 11px; width: 16px; height: 16px; fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.search input { width: 100%; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow);
  padding: 0 34px 0 34px; font-size: 14.5px; }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd { position: absolute; right: 9px; top: 9px; font: 600 11px/18px system-ui, sans-serif; color: var(--ink-2); border: 1px solid var(--border);
  border-radius: 5px; padding: 0 6px; background: var(--surface-2); }
.search input:focus + kbd { display: none; }
@media (hover: none) { .search kbd { display: none; } }
.qres { list-style: none; margin: 6px 0 0; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow);
  max-height: min(420px, 60vh); overflow-y: auto; }
.qres li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 8px; padding: 7px 9px; border-radius: 8px; cursor: pointer; }
.qres li .kind { grid-row: span 2; align-self: center; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2);
  background: var(--surface-2); border-radius: 6px; padding: 2px 6px; min-width: 64px; text-align: center; }
.qres li b { font-weight: 620; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qres li small { color: var(--ink-2); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qres li:hover, .qres li[aria-selected="true"] { background: var(--accent-wash); }
.qres li.none { display: block; color: var(--ink-2); font-size: 13px; cursor: default; }
.layerbox { position: absolute; right: 54px; top: 10px; z-index: 4; margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); padding: 10px 14px 12px; display: grid; gap: 7px; font-size: 14px; min-width: 210px; }
.layerbox legend { float: left; width: 100%; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); font-weight: 650; padding: 0; margin-bottom: 2px; }
.layerbox label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.layerbox input { accent-color: var(--s1); width: 16px; height: 16px; }
@media (max-width: 899px) { .map-ctl button { width: 34px; height: 34px; } .search input { height: 36px; } .search > svg { top: 10px; } }

.apt-card .apt-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.apt-card h2 { font-size: 17px; margin: 0; letter-spacing: -.01em; line-height: 1.25; }
.apt-card .eyebrow { margin-bottom: 2px; }
.apt-card > .note { margin-top: 4px; }
.apt-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.apt-actions .btn { padding: 5px 10px; font-size: 13px; }
.chip.live { background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--ink); }
.chip.live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--good); margin-right: 5px; vertical-align: 1px; }
.mixes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 380px) { .mixes { grid-template-columns: minmax(0, 1fr); } }
.mix h3 { font-size: 12.5px; color: var(--ink-2); margin: 0 0 4px; font-weight: 650; }
.mix .imp li { grid-template-columns: minmax(0, 1fr) 34px; font-size: 13px; }
.linkish { border: 0; background: none; padding: 0; color: var(--ink); text-align: left; text-decoration: underline; text-decoration-color: var(--grid);
  text-underline-offset: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.linkish:hover { text-decoration-color: var(--s1); }
details.ref summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
details.ref summary::-webkit-details-marker { display: none; }
details.ref summary h2 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin: 0; font-weight: 650; }
details.ref summary h2::before { content: "▸ "; }
details.ref[open] summary h2::before { content: "▾ "; }
details.ref summary small { color: var(--ink-2); font-size: 12px; }
details.ref[open] summary { margin-bottom: 8px; }
details.ref .btn { margin-top: 8px; font-size: 13px; padding: 5px 10px; }
.list.compact li.kv { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; padding: 6px 2px; font-size: 13px; }
.list.compact li.kv span { color: var(--ink-2); }
.filter-card .ph { align-items: center; }
.filter-card .x { border: 0; background: var(--surface-2); width: 28px; height: 28px; border-radius: 50%; font-size: 17px; line-height: 1; margin-left: auto; }
.seg { display: inline-flex; margin: 4px 4px 0 0; }
.seg .btn { margin: 0; border-radius: 0; padding: 4px 10px; font-size: 12.5px; }
.seg .btn:first-child { border-radius: 9px 0 0 9px; } .seg .btn:last-child { border-radius: 0 9px 9px 0; border-left: 0; }
.seg .btn.on { background: var(--ink); color: var(--page); border-color: var(--ink); }

dialog.dlg { width: min(1080px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border: 1px solid var(--border); border-radius: 16px; padding: 0;
  background: var(--page); color: var(--ink); box-shadow: var(--shadow); overflow: hidden; display: none; }
dialog.dlg[open] { display: flex; flex-direction: column; }
dialog.dlg::backdrop { background: rgba(0, 0, 0, .45); }
.dlg-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px 6px; background: var(--surface); }
.dlg-h h2 { margin: 0; font-size: 19px; letter-spacing: -.01em; }
.dlg-h .x { border: 0; background: var(--surface-2); width: 34px; height: 34px; border-radius: 50%; font-size: 20px; line-height: 1; flex: none; }
.dlg-tabs { display: flex; gap: 2px; padding: 0 14px 0; background: var(--surface); border-bottom: 1px solid var(--border); overflow-x: auto; }
.dlg-tabs button { border: 0; background: none; padding: 9px 12px; font-weight: 600; color: var(--ink-2); border-bottom: 2px solid transparent; white-space: nowrap; }
.dlg-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--s1); }
.dlg-b { padding: 14px 18px; overflow-y: auto; }
.dlg-b h3 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin: 14px 0 6px; font-weight: 650; }
.dlg-b h3:first-child { margin-top: 0; }
.chart-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 820px) { .chart-grid { grid-template-columns: minmax(0, 1fr); } }
.warn { margin: 0; padding: 10px 18px 14px; font-size: 12.5px; color: var(--ink-2); border-top: 1px solid var(--border); background: var(--surface); }
.warn b { color: var(--crit); }
svg.plan { width: 100%; height: auto; display: block; background: var(--map-sea); border-radius: 12px; border: 1px solid var(--border); font-family: inherit; }
svg.plan .ring { fill: none; stroke: var(--map-ring); stroke-dasharray: 4 5; }
svg.plan .rwy { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
svg.plan .cl { stroke: var(--ink-2); stroke-width: 1.3; stroke-dasharray: 6 4; }
svg.plan .cl.on { stroke: var(--s1); stroke-width: 2.2; stroke-dasharray: none; }
svg.plan .tick { stroke: var(--ink-2); stroke-width: 1.2; }
svg.plan .rwlbl { fill: var(--ink); font-size: 11.5px; font-weight: 650; paint-order: stroke; stroke: var(--map-halo); stroke-width: 3px; }
svg.plan .rwlbl.on { fill: var(--s1); }
svg.plan .lbl { fill: var(--map-label); font-size: 11px; paint-order: stroke; stroke: var(--map-halo); stroke-width: 3px; }
svg.plan .lbl.s { font-size: 9.5px; fill: var(--ink-2); }
svg.plan .nav { fill: none; stroke: var(--ink); stroke-width: 1.4; }
svg.plan .nav.ndb { stroke-dasharray: 2 2; }
svg.plan .holdp { fill: none; stroke: var(--s2); stroke-width: 1.8; opacity: .75; stroke-linejoin: round; }
svg.plan .route { fill: none; stroke: var(--s1); stroke-width: 1.3; opacity: .45; stroke-linejoin: round; }
svg.plan .gate { fill: var(--s1); }
svg.plan .ac { fill: var(--s1); stroke: var(--surface); stroke-width: 1.5; }
svg.plan .north { fill: var(--ink); }

/* visible to screen readers and crawlers, not drawn */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
