/* Airport pages (/airport/ICAO/, built by airport_pages.py). Same dark theme as the map. */
:root {
  --bg: #0E1116; --surface: #161B22; --surface-2: #1F2630; --surface-3: #262E3A;
  --fg: #E6EDF3; --fg-muted: #9AA7B4; --outline: #2A323D; --primary: #7CC4FF;
  --good: #3FD47E; --warn: #FFB86B; --bad: #FF7A7A;
  --mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
/* Like the map, the page reads as an app: a tap on a word doesn't select it (on Android, Chrome's
   Touch to Search would pop up). Only what's worth copying stays selectable: the raw reports and the
   FAA's remarks. airport-page.js also marks taps as handled, which is what Chrome looks for. */
body { user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
pre.raw, ul.rmk { user-select: text; -webkit-user-select: text; }
body { background: var(--bg); color: var(--fg); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); }
.muted { color: var(--fg-muted); }
.small { font-size: 13px; }
b.warn, .warn { color: var(--warn); }

.bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 16px; padding: 10px 16px;
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--outline); }
.bar .back { text-decoration: none; font-weight: 600; background: var(--surface-2); padding: 6px 12px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px; }
.mi { width: 18px; height: 18px; fill: currentColor; flex: none; }
.bar .brand { font-weight: 700; color: var(--fg); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.bar .brand img { width: 22px; height: 22px; }

main { max-width: 1180px; margin: 0 auto; padding: 8px 16px 48px; }
.hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin: 18px 0 10px; flex-wrap: wrap; }
.title { display: flex; align-items: center; gap: 10px; }
h1 { font-size: 34px; margin: 0; letter-spacing: .01em; }
.cat { --c: #7D8590; color: var(--c); border: 1.5px solid var(--c); border-radius: 6px; padding: 1px 7px; font-weight: 700; font-size: 13px;
  background: color-mix(in srgb, var(--c) 14%, transparent); white-space: nowrap; }
.cat-VFR { --c: #2ECC71; } .cat-MVFR { --c: #3D9BFF; } .cat-IFR { --c: #FF4D4F; } .cat-LIFR { --c: #D65BFF; }
.cat-bg-VFR { background: #2ECC71; } .cat-bg-MVFR { background: #3D9BFF; } .cat-bg-IFR { background: #FF4D4F; }
.cat-bg-LIFR { background: #D65BFF; } .cat-bg-UNKNOWN { background: #7D8590; }
.cat-fill-VFR { fill: #2ECC71; } .cat-fill-MVFR { fill: #3D9BFF; } .cat-fill-IFR { fill: #FF4D4F; }
.cat-fill-LIFR { fill: #D65BFF; } .cat-fill-UNKNOWN { fill: #7D8590; }
.name { font-size: 17px; margin-top: 2px; }
.ids { font-size: 13px; margin-top: 2px; }
.clock { text-align: right; background: var(--surface); border-radius: 12px; padding: 8px 14px; }
.clock .k, .tile .k, .best .k { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-muted); }
.clock .v { font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; }
/* Most visitors land here from a search; this shows them the map exists. The picture is the live map
   (snapshot.py, retaken every 10 minutes), the same on every page. */
.map-card { display: flex; align-items: center; gap: 14px; margin: 4px 0 14px; padding: 10px; text-decoration: none; color: var(--fg);
  background: var(--surface); border: 1px solid var(--outline); border-radius: 14px; }
.map-card:hover { border-color: var(--primary); }
.map-card:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.map-card img { width: 136px; height: 71px; object-fit: cover; border-radius: 10px; flex: none; background: var(--surface-2); }
.map-card .t { font-weight: 700; font-size: 16px; }
.map-card .d { color: var(--fg-muted); font-size: 13px; margin-top: 2px; }
.map-card .go { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: #0B1A26; background: var(--primary);
  font-weight: 700; padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 560px) {
  .map-card .go span { display: none; }
  .map-card .go { padding: 9px; }
  .map-card img { width: 104px; height: 54px; }
}
/* The sky's side view (sky.js draws the SVG at the box's width). */
.sky-box { background: var(--surface-2); border-radius: 10px; padding: 8px 10px 4px; margin-top: 8px; }
.sky-box .k { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-muted); }
.sky-draw { min-height: 100px; }
.sky-svg { display: block; margin-top: 2px; }
.sky-label { font: 600 11px system-ui, sans-serif; }
.sky-tick { font: 9.5px system-ui, sans-serif; fill: #6B7684; }
.sky-grid { stroke: #2E3744; stroke-width: 1; }
.sky-ground { stroke: #5A6573; stroke-width: 1.5; }
/* The same in words, for screen readers and search engines: the drawing says it for everyone else. */
.sky-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0; }
.disclaimer { background: #3A2E14; color: #FFD089; border-radius: 10px; padding: 8px 12px; font-size: 13px; margin: 0 0 14px; }
.disclaimer b { color: #FFE2B0; }
.stale-warning { background: #3A1D22; color: #FFB4B4; border: 1px solid #FF4D4F66; border-radius: 10px; padding: 9px 12px; font-size: 14px; margin: 0 0 10px; }
.stale-warning b { color: #FFD0D0; }
.stale-warning[hidden] { display: none; }
.wx.gone { display: none !important; }
.windrow.quiet { grid-template-columns: 210px; }

.cols { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } .clock { text-align: left; } }
.col { display: grid; gap: 14px; }
.card { background: var(--surface); border-radius: 14px; padding: 14px 16px; min-width: 0; }
h2 { font-size: 16px; margin: 0 0 10px; }
h2 .small { font-weight: 400; margin-left: 6px; }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tile { background: var(--surface-2); border-radius: 10px; padding: 8px 10px; }
.tile .v { font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; }
.tile .s { font-size: 12px; color: var(--fg-muted); }
/* The value that sets the flight category (ceiling, visibility or both): outlined and tinted in the
   category's colour, with the category as a tag beside its label. */
.lim-MVFR { --lim: #3D9BFF; } .lim-IFR { --lim: #FF4D4F; } .lim-LIFR { --lim: #D65BFF; }
.limit { box-shadow: inset 0 0 0 1.5px var(--lim); background: color-mix(in srgb, var(--lim) 12%, var(--surface-2)); }
.limit .v { color: var(--lim); }
.lim-tag { display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 4px; font-size: 10px; font-weight: 700;
  letter-spacing: .04em; line-height: 1.5; color: #0B1A26; background: var(--lim); vertical-align: 1px; }
@media (max-width: 420px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
pre.raw { font-family: var(--mono); font-size: 13px; background: #0B0F14; color: #D7F5DD; border-radius: 10px; padding: 9px 11px;
  margin: 10px 0 0; white-space: pre-wrap; word-break: break-word; }

.windrow { display: grid; grid-template-columns: 210px 1fr; gap: 14px; align-items: center; margin-bottom: 10px; }
@media (max-width: 480px) { .windrow { grid-template-columns: 1fr; justify-items: center; text-align: center; } .comps { justify-content: center; } }
.diagram { width: 210px; height: 210px; }
.diagram .ring { fill: none; stroke: var(--outline); }
.diagram .n { fill: var(--fg-muted); font-size: 9px; text-anchor: middle; }
.diagram .rwy { stroke: #8892A0; stroke-linecap: butt; }
.diagram .rwy.on { stroke: var(--good); }
.diagram .lbl { fill: var(--fg-muted); font-size: 6.5px; text-anchor: middle; font-weight: 600; }
.diagram .lbl .on { fill: var(--good); }
.diagram .wind { stroke: var(--primary); stroke-width: 2.5; }
.diagram .windhead { fill: var(--primary); }
.best .bigrwy { font-size: 30px; font-weight: 700; line-height: 1.1; margin: 2px 0 8px; }
.rwy-word { font-size: 17px; font-weight: 400; color: var(--fg-muted); }
.comps { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.pill { background: var(--surface-2); border-radius: 999px; padding: 3px 10px; font-weight: 650; font-size: 14px; }
.pill.g, .g { color: var(--good); }
.pill.o, .o { color: var(--warn); }
.r { color: var(--bad); }

table { border-collapse: collapse; width: 100%; font-size: 14px; }
.rwys th { text-align: left; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--fg-muted); font-weight: 600; padding: 6px 8px 6px 0; }
.rwys td { padding: 6px 8px 6px 0; border-top: 1px solid var(--outline); vertical-align: top; font-variant-numeric: tabular-nums; }
.rwys tr.on td:first-child b { color: var(--good); }
.rwys tr.dims td { border-top: none; padding-top: 0; padding-bottom: 10px; color: var(--fg-muted); font-size: 12.5px; }
.rwys td.notes { font-size: 13px; color: var(--fg-muted); }
@media (max-width: 560px) { .rwys th:nth-child(4), .rwys td:nth-child(4) { display: none; } }

.trend { width: 100%; height: auto; display: block; }
.trend .spd { fill: #3B6E99; }
.trend .gst { stroke: var(--warn); stroke-width: 2; }
.trend .dir { fill: var(--fg); font-size: 12px; text-anchor: middle; }
.trend .vrb { fill: var(--fg-muted); font-size: 9px; text-anchor: middle; }
.trend .ax { fill: var(--fg-muted); font-size: 10px; text-anchor: middle; }
.trend .ax.l { text-anchor: start; }
.trend .base { stroke: var(--outline); }

.timeline { position: relative; height: 16px; margin-top: 4px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.timeline .seg { position: absolute; top: 0; bottom: 0; opacity: .85; }
.timeline.thin { height: 7px; background: transparent; }
.ticks { position: relative; height: 18px; font-size: 11px; color: var(--fg-muted); }
.ticks span { position: absolute; transform: translateX(-50%); top: 2px; }

.btns { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.btn { text-decoration: none; background: var(--surface-2); color: var(--fg); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; font-weight: 600; }
.btn.primary { background: var(--primary); color: #0E1116; }
details { border-top: 1px solid var(--outline); padding: 8px 0; }
summary { cursor: pointer; font-weight: 600; }
summary .count { background: var(--surface-3); color: var(--fg-muted); border-radius: 999px; padding: 0 8px; font-size: 12px; margin-left: 4px; }
ul.plates { columns: 2; column-gap: 18px; padding-left: 18px; margin: 8px 0 0; font-size: 13.5px; }
ul.plates li { break-inside: avoid; margin: 2px 0; }
@media (max-width: 480px) { ul.plates { columns: 1; } }

.freqs th { text-align: left; color: var(--fg-muted); font-weight: 500; padding: 6px 10px 6px 0; width: 34%; vertical-align: top; }
.freqs td { padding: 6px 0; font-variant-numeric: tabular-nums; }
.freqs tr + tr th, .freqs tr + tr td { border-top: 1px solid var(--outline); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--surface-2); border-radius: 999px; padding: 4px 11px; font-size: 13.5px; }
.chip.warn { color: var(--warn); }
.tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
ul.nearby { list-style: none; margin: 0; padding: 0; }
ul.nearby li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--outline); font-size: 14px; }
ul.nearby li:first-child { border-top: none; }
ul.nearby .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
ul.nearby .nd { margin-left: auto; color: var(--fg-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
ul.nearby .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
ul.rmk { margin: 0; padding-left: 18px; font-size: 14px; }
ul.rmk li + li { margin-top: 4px; }
.src { margin-top: 18px; border-top: 1px solid var(--outline); padding-top: 10px; }
.aprs { display: grid; gap: 2px; margin-top: 6px; font-size: 13px; }
.apr { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 4px 0; border-top: 1px solid var(--outline); }
.apr:first-child { border-top: none; }
.apr b { font-variant-numeric: tabular-nums; }
.apr a { white-space: nowrap; }
ul.rmk { font-family: var(--mono); font-size: 12.5px; }
.windrow.nodiagram { grid-template-columns: 1fr; }
table.taf { margin-top: 10px; font-size: 13.5px; }

.taf th { text-align: left; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--fg-muted); font-weight: 600; padding: 4px 8px 4px 0; }
.taf td { padding: 6px 8px 6px 0; border-top: 1px solid var(--outline); vertical-align: top; font-variant-numeric: tabular-nums; }
.taf td.when { white-space: nowrap; }
@media (max-width: 560px) { .taf th:nth-child(5), .taf td:nth-child(5) { display: none; } }
.src p { margin: 4px 0; }
.src a { color: var(--fg-muted); }

/* Wind graph: values under the pointer or finger. */
/* A long press would otherwise start text selection or the phone's callout menu. */
.trend-wrap { position: relative; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.trend { touch-action: pan-y; cursor: crosshair; }
.trend .hit { fill: transparent; }
.trend .col.active .spd { fill: var(--primary); }
.trend .col.active .hit { fill: #ffffff0d; }
.trend-tip { position: absolute; top: -6px; transform: translate(-50%, -100%); pointer-events: none; z-index: 1;
  display: grid; gap: 1px; background: var(--surface-3); border: 1px solid var(--outline); border-radius: 8px;
  padding: 5px 9px; font-size: 12.5px; white-space: nowrap; box-shadow: 0 4px 14px #0008; font-variant-numeric: tabular-nums; }
.trend-tip[hidden] { display: none; }
.trend-hint { margin: 4px 0 0; }

/* Favorite star (the map's list). */
.fav { background: none; border: none; padding: 4px; margin-left: -2px; cursor: pointer; display: grid; place-items: center; border-radius: 50%; }
.fav svg { width: 24px; height: 24px; }
.fav .off { fill: var(--fg-muted); }
.fav .on { fill: #FFD54A; display: none; }
.fav[aria-pressed="true"] .on { display: inline; }
.fav[aria-pressed="true"] .off { display: none; }
.fav:hover { background: #ffffff12; }
.fav:focus-visible, .back:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.fav[hidden] { display: none; }
