/* SkyRadar 24 airport and directory pages (v2, 2026-11-17): dark like the live map's bar and the airport
   board, flat panels with thin borders, yellow for what is live. No gradients, no shadows, no pills. */
:root {
    --bg: #121418; --panel: #1a1d22; --panel2: #15181c; --line: #2a2e35; --line2: #22262c;
    --ink: #e6e8eb; --dim: #8b929c; --link: #8cc4ff; --brand: #ffd21f; --bar: #1b1d21; --green: #4cd964; --blue: #7fc4ff;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, sans-serif; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.top { display: flex; align-items: center; gap: 16px; min-height: 50px; padding: 0 16px; background: var(--bar); border-bottom: 1px solid #000; }
.brand { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 800; letter-spacing: .5px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 24px; height: 24px; }
.brand b { color: var(--brand); }
.top nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.top nav a { color: #f2f3f5; font-weight: 600; }
.top nav .lang { color: #b9bec6; font-weight: 400; }
.page { max-width: 1180px; margin: 0 auto; padding: 10px 16px 30px; }
.crumbs { margin: 4px 0 10px; color: var(--dim); font-size: 13px; }
.crumbs a { color: #b9bec6; }
.box { margin-bottom: 14px; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 3px; }
h1 { margin: 0 0 4px; font-size: 24px; }
h2 { margin: 0 0 12px; font-size: 16px; letter-spacing: .2px; }
h2 small, h3 small { color: var(--dim); font-weight: 400; font-size: 13px; }
.note { margin: 8px 0 0; color: var(--dim); font-size: 12.5px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.btn { display: inline-block; padding: 8px 14px; background: var(--brand); color: #111; border-radius: 3px; font-weight: 700; }
.btn:hover { text-decoration: none; background: #ffe066; }
.foot { margin: 6px 0 0; color: var(--dim); font-size: 12.5px; }
.foot a { color: #b9bec6; }

/* ---------- hero: live map with the airport card on it ---------- */
.hero { position: relative; margin-bottom: 14px; border: 1px solid #000; border-radius: 3px; overflow: hidden; background: #0c0e11; }
.hero .apmap { height: 480px; }
.hero-card { position: absolute; top: 14px; left: 14px; width: 340px; max-width: calc(100% - 28px); padding: 14px 16px; background: rgba(20, 22, 26, .94); border: 1px solid var(--line); border-radius: 3px; z-index: 2; }
.hero-code { color: var(--brand); font: 800 40px/1 "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: 2px; }
.hero-card h1 { margin: 6px 0 2px; font-size: 16px; line-height: 1.3; }
.hero-place { margin: 0 0 8px; color: #b9bec6; }
.hero-time { margin: 0 0 6px; color: var(--dim); font-size: 12px; }
.hero-time b { color: #fff; font: 700 20px/1 "DejaVu Sans Mono", Menlo, Consolas, monospace; margin-right: 4px; }
.metar { margin: 0 0 12px; color: #d3d6db; font-size: 13px; }
.metar code { display: block; margin-top: 4px; color: var(--dim); font-size: 11px; overflow-wrap: anywhere; }
.hero-count { position: absolute; right: 12px; top: 12px; padding: 5px 9px; background: rgba(20, 22, 26, .94); border: 1px solid var(--line); border-radius: 3px; color: var(--ink); font-size: 12.5px; font-weight: 600; z-index: 2; }
.hero-count:empty { display: none; }
.maplibregl-ctrl-attrib { background: rgba(20, 22, 26, .85) !important; color: #b9bec6; }
.maplibregl-ctrl-attrib a { color: #b9bec6 !important; }

/* ---------- live airport board: black display, yellow letters ---------- */
.board { margin-bottom: 14px; background: #0c0e11; border: 1px solid #000; border-radius: 3px; color: var(--brand); overflow: hidden; }
.board-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 14px; background: var(--bar); border-bottom: 2px solid var(--brand); min-height: 46px; }
.board-tabs { display: flex; gap: 2px; }
.board-tabs button { padding: 12px 14px 10px; background: none; border: 0; border-bottom: 3px solid transparent; color: #b9bec6; font: 700 14px/1 "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: .6px; text-transform: uppercase; cursor: pointer; }
.board-tabs button[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.board-title { display: none; margin-right: auto; color: #fff; font-weight: 800; font-size: 18px; letter-spacing: 1px; }
.board-title span { color: #b9bec6; font-weight: 400; font-size: 14px; letter-spacing: 0; }
.board-clock { color: #fff; white-space: nowrap; }
.board-clock b { font: 700 22px/1 "DejaVu Sans Mono", Menlo, Consolas, monospace; color: var(--brand); letter-spacing: 1px; }
.board-clock span { color: var(--dim); font-size: 12px; }
.board .pane { display: none; }
.board .pane.on { display: block; }
.board .pane h3 { display: none; margin: 0; padding: 10px 12px 6px; color: #fff; font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; }
.fids { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.fids th { padding: 7px 10px; color: var(--dim); font: 600 11px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: .8px; text-align: left; text-transform: uppercase; border-bottom: 1px solid #262a30; }
.fids td { padding: 7px 10px; border-bottom: 1px solid #1d2026; vertical-align: top; }
.fids tbody tr:nth-child(even) td { background: #111418; }
.fids tbody tr { cursor: pointer; }
.fids tbody tr:hover td { background: #1f242b; }
.fids .v { display: inline-block; }
.fids small { display: block; margin-top: 1px; color: #7d848e; font-size: 11px; font-weight: 400; letter-spacing: 0; text-transform: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.fids td.c-time { width: 1%; white-space: nowrap; font: 700 16px/1.25 "DejaVu Sans Mono", Menlo, Consolas, monospace; }
.fids .c-flight { white-space: nowrap; font-weight: 700; font-size: 15px; letter-spacing: .4px; }
.fids .c-place { font-weight: 700; font-size: 15px; letter-spacing: .4px; }
.fids td.c-status { white-space: nowrap; color: #e6e8eb; font-weight: 600; font-size: 13.5px; }
.fids .c-status small { color: inherit; opacity: .8; font-weight: 600; font-size: 12px; }
.fids .empty { padding: 18px 10px; color: var(--dim); }
.s-landed .c-status, .s-tookOff .c-status, .s-climb .c-status { color: var(--green) !important; }
.s-final .c-status, .s-approach .c-status { color: var(--brand) !important; }
.s-final .c-status .v { animation: fids-blink 1.2s steps(2, start) infinite; }
.s-ground .c-status { color: #b9bec6 !important; }
.s-taxi .c-status { color: var(--blue) !important; }
.s-landed td:not(.c-status) { color: #c9a50f; }
@keyframes fids-blink { to { visibility: hidden; } }
.fids .flip .v { animation: fids-flip .55s ease-out; transform-origin: 50% 60%; }
@keyframes fids-flip { 0% { transform: rotateX(90deg); opacity: .2; } 60% { transform: rotateX(-12deg); opacity: 1; } 100% { transform: rotateX(0); } }
.board-note { margin: 0; padding: 8px 12px 10px; color: #7d848e; font-size: 11.5px; border-top: 1px solid #1d2026; }

/* ---------- lines: route map + busiest destinations ---------- */
.routes { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; }
.routemap { height: 380px; border: 1px solid var(--line); border-radius: 3px; background: #0c0e11; }
.top-dest { margin: 0; padding: 0; list-style: none; counter-reset: d; }
.top-dest li { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 6px 0 9px; border-bottom: 1px solid var(--line2); }
.top-dest li a, .top-dest li span { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-dest li b { display: inline-block; min-width: 38px; color: var(--brand); }
.top-dest li small { color: var(--dim); font-variant-numeric: tabular-nums; }
.top-dest li i { position: absolute; left: 0; bottom: 3px; height: 3px; background: var(--brand); opacity: .55; border-radius: 1px; }
details.more { margin-top: 12px; }
details.more summary { cursor: pointer; color: var(--link); font-weight: 600; padding: 6px 0; }
.table-wrap { overflow-x: auto; }
.list { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.list th { padding: 7px 8px; background: var(--panel2); border-bottom: 1px solid var(--line); color: var(--dim); font-size: 12px; font-weight: 600; text-align: left; white-space: nowrap; }
.list td { padding: 7px 8px; border-bottom: 1px solid var(--line2); }
.list b { color: var(--brand); }
.list .n { text-align: right; width: 1%; white-space: nowrap; }

/* ---------- airlines, facts, nearby ---------- */
.airline-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
.airline-grid li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; padding: 8px 10px; background: var(--panel2); border: 1px solid var(--line2); border-radius: 3px; }
.airline-grid b { grid-row: span 2; align-self: center; min-width: 30px; color: var(--brand); font-size: 16px; }
.airline-grid span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.airline-grid small { color: var(--dim); }
.intro { margin: 0 0 10px; color: #c3c7cd; }
.facts { width: 100%; border-collapse: collapse; }
.facts th, .facts td { padding: 6px 8px; border-top: 1px solid var(--line2); text-align: left; }
.facts th { width: 40%; color: var(--dim); font-weight: 400; }
.facts td { font-weight: 600; }
.near { list-style: none; margin: 0; padding: 0; }
.near li { padding: 7px 0; border-bottom: 1px solid var(--line2); }
.near b { color: var(--brand); }
.near small { color: var(--dim); }

/* ---------- directory ---------- */
.dir-hero .apmap { height: 520px; }
.dir-hero .hero-card { width: 380px; }
.dir-hero .hero-card h1 { font-size: 22px; margin-top: 0; }
.search { width: 100%; padding: 10px 12px; background: #0c0e11; border: 1px solid #3a3f47; border-radius: 3px; color: #fff; font-size: 15px; }
.search:focus { outline: 2px solid var(--brand); outline-offset: -1px; }
.results { margin: 6px 0 0; padding: 0; list-style: none; }
.results li a { display: block; padding: 7px 4px; border-bottom: 1px solid var(--line2); color: var(--ink); }
.results li a:hover { background: #22262c; text-decoration: none; }
.results b { display: inline-block; min-width: 40px; color: var(--brand); }
.sr-tip .maplibregl-popup-content { padding: 4px 8px; background: #1b1d21; color: #fff; font-size: 12px; font-weight: 600; border-radius: 3px; }
.sr-tip .maplibregl-popup-tip { display: none; }
.busiest { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
.busiest a { display: block; padding: 10px; background: var(--panel2); border: 1px solid var(--line2); border-radius: 3px; color: var(--ink); }
.busiest a:hover { border-color: var(--brand); text-decoration: none; }
.busiest b { display: block; color: var(--brand); font-size: 22px; letter-spacing: 1px; }
.busiest span { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.busiest small { color: var(--dim); }
.jump { margin: 0; line-height: 1.9; }
.jump a { margin-right: 10px; white-space: nowrap; color: #c3c7cd; }
.countries { columns: 3 300px; column-gap: 14px; }
.country { break-inside: avoid; margin-bottom: 14px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 3px; }
.country h3 { margin: 0 0 6px; font-size: 14px; }
.country ul { margin: 0; padding: 0; list-style: none; }
.country li { padding: 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.country li a { color: #c3c7cd; }
.country li b { display: inline-block; min-width: 36px; color: var(--brand); }

@media (min-width: 1000px) {
    .board-tabs { display: none; }
    .board-title { display: block; }
    .board-panes { display: grid; grid-template-columns: 1fr 1fr; }
    .board .pane, .board .pane.on { display: block; }
    .board .pane + .pane { border-left: 2px solid var(--bar); }
    .board .pane h3 { display: block; }
}
@media (max-width: 1000px) {
    .airline-grid { grid-template-columns: repeat(2, 1fr); }
    .busiest { grid-template-columns: repeat(3, 1fr); }
    .routes { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .top { flex-wrap: wrap; padding: 8px 12px; gap: 6px 12px; }
    .top nav { margin-left: 0; }
    .page { padding: 8px 10px 24px; }
    .box { padding: 12px; }
    .two { grid-template-columns: 1fr; }
    .list .opt { display: none; }
    /* the card goes under the map on a phone */
    .hero .apmap { height: 300px; }
    .hero-card { position: static; width: auto; max-width: none; border: 0; border-top: 1px solid var(--line); background: var(--panel); }
    .hero-code { font-size: 32px; }
    .hero-count { top: 8px; right: 8px; font-size: 11.5px; }
    .dir-hero .apmap { height: 280px; }
    .dir-hero .hero-card { width: auto; }
    .busiest { grid-template-columns: repeat(2, 1fr); }
    .airline-grid { grid-template-columns: 1fr; }
    .routemap { height: 260px; }
    .board-top { padding: 0 8px; }
    .board-clock span { display: none; }
    .board-clock b { font-size: 18px; }
    .board-tabs button { padding: 12px 10px 10px; font-size: 13px; }
    .fids { table-layout: fixed; }
    .fids th, .fids td { padding: 6px 6px; overflow-wrap: anywhere; }
    .fids th { font-size: 10px; letter-spacing: .3px; }
    .fids th:nth-child(1) { width: 18%; }
    .fids th:nth-child(2) { width: 26%; }
    .fids th:nth-child(3) { width: 29%; }
    .fids th:nth-child(4) { width: 27%; }
    .fids td.c-time { font-size: 13px; }
    .fids .c-flight { white-space: normal; font-size: 13px; letter-spacing: 0; }
    .fids .c-place { overflow-wrap: normal; word-break: normal; font-size: 12.5px; letter-spacing: 0; }
    .fids td.c-status { white-space: normal; font-size: 12.5px; }
    .fids small { max-width: none; white-space: normal; }
    .fids .c-status small { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .fids .flip .v, .s-final .c-status .v { animation: none; } }

/* airport photo in the hero card (2026-11-18, Wikimedia Commons) */
.ap-photo { margin: -14px -16px 12px; }
.ap-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #1b1d21; border-bottom: 1px solid var(--line); }
.ap-photo figcaption { padding: 4px 16px 0; color: var(--dim, #9aa1ab); font-size: 10.5px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-photo figcaption a { color: inherit; }
@media (max-width: 720px) { .ap-photo { margin: -14px -16px 10px; } .ap-photo img { aspect-ratio: 16 / 8; } }
