/* Avyon. Plain CSS, tokens first, markup carries no presentation. */
:root {
  color-scheme: light dark;

  --navy-950: #081726; --navy-900: #0d2238; --navy-800: #16324f; --navy-600: #2c5378;
  --sky-500: #2f7fb8;  --sky-300: #7fc1ea;  --sky-100: #dcefFa;
  --amber-600: #b45f06; --amber-400: #ffb347;
  --paper-0: #ffffff;  --paper-50: #f5f8fb; --paper-100: #e8eef4; --paper-300: #c6d2de;
  --ink-900: #0f1c2a;  --ink-600: #44566a;

  --bg:        light-dark(var(--paper-50), var(--navy-950));
  --surface:   light-dark(var(--paper-0), var(--navy-900));
  --line:      light-dark(var(--paper-300), var(--navy-600));
  --line-soft: light-dark(var(--paper-100), var(--navy-800));
  --text:      light-dark(var(--ink-900), #e9f1f8);
  --muted:     light-dark(var(--ink-600), #a3b7ca);
  --link:      light-dark(#1b5f93, var(--sky-300));
  --accent:    light-dark(var(--amber-600), var(--amber-400));
  --night-bg:  light-dark(#eceaf6, #1b1f44);
  --bar:       light-dark(var(--sky-500), var(--sky-300));

  /* The scope stays dark in both schemes, like an instrument. */
  --scope-bg: var(--navy-900); --scope-line: #3d6288; --scope-text: #a9c3db;
  --scope-low: var(--sky-300); --scope-high: #6f8aa5; --scope-zone: var(--amber-400);

  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-5: 1.5rem; --space-6: 2.25rem;
  --radius: .6rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --measure: 68ch;
  accent-color: var(--accent);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font: 1rem/1.5 var(--font); background: var(--bg); color: var(--text); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a { color: var(--link); text-underline-offset: .15em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
h1 { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.1rem); line-height: 1.15; margin: 0 0 var(--space-2); text-wrap: balance; }
h2 { font-size: 1.15rem; margin: 0 0 var(--space-3); }
p { margin: 0 0 var(--space-4); }
small { font-size: .6em; font-weight: 500; }
.h1-sub { font-weight: 400; color: var(--muted); font-size: .65em; }
.lede { color: var(--muted); max-inline-size: var(--measure); }
.muted { color: var(--muted); } .small { font-size: .875rem; }
.visually-hidden, .skip:not(:focus) { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; inset: var(--space-2) auto auto var(--space-2); background: var(--surface); padding: var(--space-2) var(--space-3); z-index: 5; }

.site-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-5);
  padding: var(--space-3) max(var(--space-4), 50vw - 36rem); background: var(--navy-900); color: #fff; }
.brand { display: flex; align-items: center; gap: var(--space-2); color: inherit; text-decoration: none; }
.brand-mark { inline-size: 1.6rem; block-size: 1.6rem; fill: var(--amber-400); }
.brand-name { font-weight: 700; font-size: 1.2rem; letter-spacing: .01em; }
.brand-place { color: #a9c3db; font-size: .875rem; }
.site-head nav { display: flex; gap: var(--space-1); }
.site-head nav a { color: #dbe8f3; text-decoration: none; padding: var(--space-2) var(--space-3); border-radius: 99rem; min-block-size: 2.75rem; display: inline-flex; align-items: center; }
.site-head nav a[aria-current] { background: var(--navy-600); color: #fff; }
.site-head nav a:hover { color: #fff; text-decoration: underline; }

main { padding: var(--space-5) max(var(--space-4), 50vw - 36rem) var(--space-6); display: grid; gap: var(--space-5); }
main > * { margin-block: 0; min-inline-size: 0; }
main > h1 + .lede { margin-block-start: calc(var(--space-3) * -1); }
.site-foot { padding: var(--space-5) max(var(--space-4), 50vw - 36rem); border-block-start: 1px solid var(--line-soft); color: var(--muted); font-size: .875rem; }
.crumb { font-size: .875rem; margin-block-end: calc(var(--space-4) * -1); }
.crumb a::before { content: "\2190\00a0" / ""; }

.overhead { background: var(--amber-400); color: var(--navy-950); padding: var(--space-3) var(--space-4); border-radius: var(--radius); font-weight: 650; }

.live-grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); align-items: start; }
.live-side { display: grid; gap: var(--space-5); }

.scope { margin: 0; background: var(--scope-bg); border-radius: var(--radius); overflow: hidden; }
.scope svg { display: block; inline-size: 100%; block-size: auto; aspect-ratio: 1; }
.scope figcaption { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); justify-content: space-between; padding: var(--space-2) var(--space-3) var(--space-3); color: var(--scope-text); font-size: .8125rem; }
.scope line, .scope circle, .scope ellipse, .scope polyline { vector-effect: non-scaling-stroke; fill: none; }
.ring { stroke: var(--scope-line); stroke-width: 1; }
.zone { stroke: var(--scope-zone); stroke-width: 1.5; stroke-dasharray: 4 4; fill: color-mix(in oklab, var(--scope-zone) 10%, transparent) !important; }
.runway { stroke: #fff; stroke-width: 5; stroke-linecap: butt; }
.centerline { stroke: var(--scope-line); stroke-width: 1.5; stroke-dasharray: 2 6; }
.home { fill: #fff; }
.track { stroke: var(--scope-low); stroke-width: 2.5; stroke-linejoin: round; }
.cpa { fill: var(--scope-zone) !important; }
.scope text { fill: var(--scope-text); font-size: 30px; font-family: var(--font); }
.scope .compass { text-anchor: middle; font-weight: 700; }
.scope .place-label { font-weight: 700; fill: #fff; }
.ac path { fill: var(--scope-low); }
.ac text { fill: #fff; font-size: 30px; font-weight: 650; paint-order: stroke; stroke: var(--scope-bg); stroke-width: 8px; }
.scope .is-close text { font-size: 19px; }
.ac .alt { font-weight: 400; fill: var(--scope-text); }
.ac.is-high path { fill: var(--scope-high); } .ac.is-high text { fill: var(--scope-high); }
.ac.is-zone path { fill: var(--scope-zone); } .ac.is-zone text { fill: var(--scope-zone); }
.legend { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); }
.key { display: inline-block; inline-size: .7rem; block-size: .7rem; border-radius: 50%; margin-inline-start: var(--space-2); }
.key-zone { background: var(--scope-zone); } .key-low { background: var(--scope-low); } .key-high { background: var(--scope-high); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: var(--space-3); }
.stat { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: var(--space-3) var(--space-4); display: grid; }
.stat-n { font-size: 1.75rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat-n a { color: inherit; }
.stat-l { color: var(--muted); font-size: .875rem; }

.nearby { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.nearby li { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: var(--space-2) var(--space-3); display: grid; }
.nearby li.is-zone { border-color: var(--accent); border-inline-start-width: .3rem; }
.nearby .who { font-weight: 650; } .nearby .what { color: var(--muted); font-size: .875rem; }

.card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: var(--space-4); }
.card > :last-child { margin-block-end: 0; }
.facts { margin: 0; display: grid; grid-template-columns: minmax(8rem, auto) 1fr; gap: var(--space-2) var(--space-4); }
.facts dt { color: var(--muted); } .facts dd { margin: 0; }
.method summary { cursor: pointer; padding-block: var(--space-2); }
.prose { max-inline-size: var(--measure); } .prose h2 { margin-block-start: var(--space-5); }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: var(--space-5); color: var(--muted); }
.more { font-weight: 650; }

.filters { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-4); align-items: end; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: var(--space-4); }
.filters .quick { flex-basis: 100%; margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-4); }
.filters label { display: grid; gap: var(--space-1); font-size: .875rem; color: var(--muted); }
.filters .check { display: flex; align-items: center; gap: var(--space-2); min-block-size: 2.75rem; color: var(--text); }
.filters input[type=date], .filters select { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: .4rem; padding: var(--space-2); min-block-size: 2.75rem; }
.filters input[type=checkbox] { inline-size: 1.25rem; block-size: 1.25rem; }
button, .button-quiet { font: inherit; font-weight: 650; min-block-size: 2.75rem; padding: var(--space-2) var(--space-4); border-radius: .4rem; cursor: pointer; display: inline-flex; align-items: center; text-decoration: none; }
button { background: var(--navy-800); color: #fff; border: 1px solid var(--navy-800); }
.button-quiet { border: 1px solid var(--line); color: var(--link); }

.two-up { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); align-items: start; }

.hours { list-style: none; margin: 0 0 var(--space-2); padding: 0; display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; block-size: 11rem; }
.hours li { display: grid; grid-template-rows: 1.1rem 1fr 1.2rem; justify-items: stretch; min-inline-size: 0; border-radius: 3px; }
.hours li.is-night { background: var(--night-bg); }
.hours .count { grid-row: 1; font-size: .6875rem; text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.hours .bar { grid-row: 2; align-self: end; block-size: calc(var(--pct) * 1%); min-block-size: 1px; background: var(--bar); border-radius: 2px 2px 0 0; }
.hours .hour { grid-row: 3; font-size: .6875rem; text-align: center; white-space: nowrap; color: var(--muted); visibility: hidden; }
.hours .has-tick .hour { visibility: visible; justify-self: start; }

.table-wrap { overflow: auto; max-inline-size: 100%; container-type: inline-size; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); }
.table-wrap.short { max-block-size: 14rem; }
table { border-collapse: separate; border-spacing: 0; inline-size: 100%; font-variant-numeric: tabular-nums; }
th, td { text-align: start; padding: var(--space-2) var(--space-3); border-block-end: 1px solid var(--line-soft); vertical-align: top; }
thead { position: sticky; inset-block-start: 0; z-index: 1; }
thead th { background: var(--surface); font-size: .8125rem; color: var(--muted); font-weight: 600; white-space: nowrap; border-block-end-color: var(--line); }
tbody th { font-weight: 500; white-space: nowrap; }
.days tbody th { white-space: normal; }
tbody tr:last-child > * { border-block-end: 0; }
.num { text-align: end; white-space: nowrap; }
tr.is-night > * { background: var(--night-bg); }
.tag { display: inline-block; font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 0 .4em; border-radius: .3em; border: 1px solid currentColor; color: var(--accent); vertical-align: .1em; }
.tag-night { color: var(--muted); }

@container (width < 40rem) {
  .passes, .passes thead, .passes tbody, .passes tr, .passes th, .passes td { display: block; }
  .passes thead { display: none; }
  .passes tr { padding: var(--space-2) 0; border-block-end: 1px solid var(--line); }
  .passes tr:last-child { border-block-end: 0; }
  .passes th, .passes td { border: 0; padding: var(--space-1) var(--space-3); text-align: start; white-space: normal; }
  .passes tbody th { font-weight: 650; }
  .passes td:empty { display: none; }
  .passes td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); }
}

@media (prefers-reduced-motion: no-preference) {
  .ac { transition: transform 1s linear; }
}
@media print {
  .site-head nav, .filters, .site-foot, .scope { display: none; }
  body { background: #fff; color: #000; }
}

.sev { display: inline-block; font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: .1em .5em; border-radius: 99rem; color: #10202f; background: var(--sev, #cfd8e3); white-space: nowrap; vertical-align: .1em; }
.sev-0 { --sev: #cfd8e3; } .sev-1 { --sev: #b9dcf2; } .sev-2 { --sev: #ffe08a; } .sev-3 { --sev: #ffb347; } .sev-4 { --sev: #ff8a65; } .sev-5 { --sev: #f0627e; }
.scale tr.is-here > * { background: color-mix(in oklab, var(--accent) 16%, var(--surface)); font-weight: 650; }

/* Tooltips: native popovers opened by a small button. */
.tip { all: unset; box-sizing: border-box; display: inline-grid; place-items: center; inline-size: 1.25rem; block-size: 1.25rem; border-radius: 50%; border: 1px solid currentColor; font-size: .75rem; font-weight: 700; line-height: 1; color: var(--link); cursor: pointer; vertical-align: .1em; position: relative; }
.tip::after { content: ""; position: absolute; inset: -.6rem; }
.scope .tip { color: var(--sky-300); }
.tip:focus-visible, .tip-chip:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.tip-key { display: none; margin: 0; padding: var(--space-3); gap: var(--space-2); flex-wrap: wrap; align-items: center; font-size: .8125rem; color: var(--muted); border-block-end: 1px solid var(--line); }
.tip-chip { all: unset; box-sizing: border-box; cursor: pointer; padding: .35rem .7rem; min-block-size: 2rem; border: 1px solid var(--line); border-radius: 99rem; color: var(--link); background: var(--bg); }
@container (width < 40rem) { .tip-key { display: flex; } }
.tip-pop { inset: auto; margin: 0; inline-size: min(22rem, calc(100vw - 2rem)); padding: var(--space-3) var(--space-4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: 0 .5rem 1.5rem rgb(0 0 0 / .25); font-size: .9375rem; font-weight: 400; text-align: start; text-transform: none; letter-spacing: 0; white-space: normal;
  /* Fallback: a card pinned near the bottom of the screen. */
  position: fixed; inset-block-end: 1rem; inset-inline: 0; margin-inline: auto; }
.tip-pop p { margin: var(--space-1) 0 0; }
.tip-pop::backdrop { background: transparent; }
@supports (position-area: bottom) {
  /* Where supported, sit next to the button that opened it. */
  .tip-pop { inset: auto; margin: .4rem; position-area: bottom; position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline; }
}

/* Tilted 3D scope */
.scope:has(.scope3d) { background: radial-gradient(120% 90% at 50% 0%, #1b3f63 0%, var(--navy-900) 55%, var(--navy-950) 100%); }
.scope svg.scope3d { aspect-ratio: auto; }
.scope3d .gs-0 { stop-color: #2a5b86; } .scope3d .gs-1 { stop-color: #173a5b; } .scope3d .gs-2 { stop-color: #0e2740; }
.scope3d .zs-0 { stop-color: #ffb347; stop-opacity: .38; } .scope3d .zs-1 { stop-color: #ffb347; stop-opacity: .06; }
.scope3d .ps-0 { stop-color: #fff; stop-opacity: .7; } .scope3d .ps-1 { stop-color: #fff; stop-opacity: .05; }
.scope3d .disc { fill: url(#g-ground) !important; stroke: #6fa3cf; stroke-width: 1.5; }
.scope3d .disc-edge { fill: #06111d !important; opacity: .7; }
.scope3d .ring { stroke: #7fb3dc; stroke-opacity: .45; }
.scope3d .zone3d { fill: url(#g-zone) !important; stroke: var(--scope-zone); stroke-width: 1.5; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.scope3d .runway3d { fill: #f4f8fb; } .scope3d .runway-shadow { fill: #06111d; opacity: .6; }
.scope3d .pole line { stroke: url(#g-pole); stroke-width: 2; vector-effect: non-scaling-stroke; }
.scope3d .pole line:first-child { stroke: #cfe3f3; stroke-opacity: .45; stroke-dasharray: 2 4; }
.scope3d .pole .tick { stroke: #cfe3f3; stroke-opacity: .7; }
.scope3d .pole text { font-size: 22px; fill: #9fbcd6; }
.scope3d .house-front { fill: #fff; } .scope3d .house-side { fill: #b9cbdb; } .scope3d .house-roof { fill: var(--amber-400); } .scope3d .house-roof-side { fill: #d98a1f; }
.scope3d .house-shadow { fill: #06111d !important; opacity: .55; }
.scope3d .house polygon { stroke: none; }
.scope3d .ac .shadow { fill: #06111d !important; opacity: .55; }
.scope3d .ac .ping { fill: none; stroke: var(--scope-zone); stroke-width: 2; vector-effect: non-scaling-stroke; opacity: 0; }
.scope3d .ac .stalk { stroke: var(--scope-low); stroke-opacity: .55; stroke-width: 1.5; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.scope3d .ac .body { fill: var(--scope-low); filter: url(#f-glow); }
.scope3d .ac .wing { fill: #fff; fill-opacity: .55; }
.scope3d .ac.is-high .body { fill: var(--scope-high); filter: none; } .scope3d .ac.is-high .stalk { stroke: var(--scope-high); stroke-opacity: .3; }
.scope3d .ac.is-zone .body { fill: var(--scope-zone); } .scope3d .ac.is-zone .stalk { stroke: var(--scope-zone); stroke-opacity: .9; }
.scope3d .ac { transition: none; }
.scope-note { flex-basis: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .scope3d .ac.is-zone .ping { animation: ping 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
  @keyframes ping { from { opacity: .9; transform: scale(.4); } to { opacity: 0; transform: scale(2.6); } }
}

/* Patterns */
.stat-n-small { font-size: 1.05rem; line-height: 1.3; }
.hours li.is-unseen .bar { background: transparent; }
.site-head nav { flex-wrap: wrap; }
.heat { inline-size: auto; min-inline-size: 100%; }
.heat th, .heat td { padding: var(--space-1) var(--space-2); }
.heat .hh { text-align: center; font-weight: 500; min-inline-size: 1.75rem; padding-inline: 0; }
.heat .hh abbr { text-decoration: none; }
.heat .hh.is-night { background: var(--night-bg); }
.heat .hc { text-align: center; padding: 0; block-size: 1.9rem; min-inline-size: 1.75rem; font-size: .75rem; border-inline-start: 1px solid var(--surface); }
.heat tbody th { position: sticky; inset-inline-start: 0; background: var(--surface); z-index: 1; }
.heat .l0 { background: light-dark(#eef3f8, #12283f); }
.heat .l1 { background: light-dark(#cfe5f5, #1d4a70); }
.heat .l2 { background: light-dark(#93c6ea, #2a6da3); }
.heat .l3 { background: light-dark(#ffcf7a, #b9791c); color: light-dark(#10202f, #fff); }
.heat .l4 { background: light-dark(#f59e42, #e8891a); color: #10202f; font-weight: 700; }
.heat .off { background: repeating-linear-gradient(135deg, transparent 0 4px, var(--line-soft) 4px 6px); }

/* Miles beside nautical miles */
.mi { font-size: .8em; font-weight: 400; opacity: .8; }
.scope text .mi, .scope tspan.mi { font-size: .78em; }

/* Whose house the figures are measured from */
.whose { background: var(--surface); border: 1px solid var(--line-soft); border-inline-start: .3rem solid var(--accent); border-radius: var(--radius); padding: var(--space-3) var(--space-4); }
.linkish { all: unset; color: var(--link); text-decoration: underline; cursor: pointer; }
.linkish:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Terracina map */
.hood { display: block; inline-size: 100%; block-size: auto; background: light-dark(#e9f1e4, #14261c); border-radius: var(--radius); touch-action: manipulation; }
.hood-fig { margin: 0; } .hood-fig figcaption { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); align-items: center; padding-block-start: var(--space-2); font-size: .875rem; color: var(--muted); }
.hood polyline { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hood .water { fill: light-dark(#b9dcf2, #1d4a70); }
.hood .outer { stroke: light-dark(#c9ced4, #3a4652); stroke-width: 60; }
.hood .st { stroke: light-dark(#fff, #46586b); stroke-width: 26; }
.hood .svc { stroke: light-dark(#fff, #46586b); stroke-width: 12; }
.hood .b { fill: light-dark(#c9b9a6, #6d6257); stroke: light-dark(#8c7b68, #2b2520); stroke-width: 2; }
.hood[data-pick] .b { cursor: pointer; }
.hood[data-pick] .b:hover { fill: var(--sky-300); }
.hood .b.is-home { fill: var(--sky-500); } .hood .b.is-mine { fill: #2e9e5b; } .hood .b.is-ref { fill: var(--amber-400); }
.hood .b.is-picked { fill: #e0457b; stroke: #fff; stroke-width: 6; }
.hood .pin { fill: none; stroke-width: 7; } .hood .pin-ref { stroke: var(--amber-600); } .hood .pin-mine { stroke: #2e9e5b; } .hood .pin-home { stroke: var(--sky-500); }
.hood text { font-family: var(--font); text-anchor: middle; paint-order: stroke; stroke: light-dark(#fff, #0d1b12); stroke-width: 12px; stroke-linejoin: round; }
.hood .st-name { font-size: 62px; fill: var(--muted); font-style: italic; }
.hood .home-label { font-size: 58px; font-weight: 700; fill: var(--text); }
.hk { display: inline-block; inline-size: .8rem; block-size: .8rem; border-radius: 2px; margin-inline-start: var(--space-2); }
.hk-ref { background: var(--amber-400); } .hk-mine { background: #2e9e5b; } .hk-home { background: var(--sky-500); }
.home-list { margin: 0; padding-inline-start: 1.2rem; columns: 16rem; }

.home-dialog { inline-size: min(40rem, calc(100vw - 1.5rem)); max-block-size: calc(100dvh - 1.5rem); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); }
.home-dialog::backdrop { background: rgb(4 12 22 / .6); }
.home-form { display: grid; gap: var(--space-3); padding: var(--space-4); }
.home-form > * { margin: 0; }
.home-fields { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: end; }
.home-fields label { display: grid; gap: var(--space-1); font-size: .875rem; color: var(--muted); }
.home-fields input, .home-fields select { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: .4rem; padding: var(--space-2); min-block-size: 2.75rem; }
.home-fields input { inline-size: 7rem; }
.home-form .hood { max-block-size: 45dvh; }
.home-form .check { display: flex; gap: var(--space-2); align-items: center; }
.home-form .check input { inline-size: 1.25rem; block-size: 1.25rem; flex: none; }
.home-hint { font-weight: 600; }
.home-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* Contact cards */
.contact-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.contact-grid .big { font-size: 1.25rem; font-weight: 700; overflow-wrap: anywhere; }

/* Aircraft details */
.scope3d .ac, .nearby li[data-hex] { cursor: pointer; }
.scope3d .ac:focus-visible { outline: none; } .scope3d .ac:focus-visible .body { stroke: #fff; stroke-width: 3; }
.ac-pop { position: fixed; inset: auto 0 1rem 0; margin-inline: auto; inline-size: min(26rem, calc(100vw - 1.5rem)); max-block-size: 70dvh; overflow: auto; padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: 0 .75rem 2rem rgb(0 0 0 / .35); }
.ac-pop h2 { font-size: 1.35rem; margin-block-end: var(--space-2); }
.ac-pop dl { margin: 0 0 var(--space-3); display: grid; grid-template-columns: minmax(7rem, 40%) 1fr; gap: var(--space-1) var(--space-3); font-size: .9375rem; }
.ac-pop dt { color: var(--muted); } .ac-pop dd { margin: 0; }
.ac-pop p { margin: 0 0 var(--space-2); }
.scope3d .hood-st { fill: none; stroke: #e6eef6; stroke-opacity: .55; stroke-width: 1; vector-effect: non-scaling-stroke; }
.scope3d .hood-name { font-size: 20px; fill: #cfe3f3; font-style: italic; }
[hidden] { display: none !important; }
button.button-quiet { background: transparent; color: var(--link); border: 1px solid var(--line); }

.route { color: var(--muted); font-size: .875rem; }

/* Loudest and quietest time cards */
.time-cards { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); margin-block: var(--space-3); }
.time-card { gap: var(--space-1); border-inline-start: .3rem solid var(--line); }
.time-card.is-loud { border-inline-start-color: var(--accent); } .time-card.is-quiet { border-inline-start-color: #2e9e5b; }
/* Smaller cards on wide screens */
@media (min-width: 56rem) {
  .stats { grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); gap: var(--space-2); }
  .stat { padding: var(--space-2) var(--space-3); }
  .stat-n { font-size: 1.25rem; }
  .stat-l { font-size: .8125rem; }
  .stat-n-small { font-size: .9375rem; }
  .time-cards { grid-template-columns: repeat(2, minmax(0, 22rem)); }
}
