/* aircraftaviation.com, static build (Nov 2026). Phone first, calm, few colors. */
:root {
  --navy: #0b1d36;
  --gold: #c9a227;
  --bg: #f5f5f7;
  --card: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #e5e5ea;
  --link: #0b1d36;
  --accent: #0a5bd6;
  --r: 16px;
  --tap: 44px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --card: #1c1c1e;
    --ink: #f5f5f7;
    --muted: #a1a1a6;
    --line: #2c2c2e;
    --link: #f5f5f7;
    --accent: #4da3ff;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 12px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.47 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 2px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h2 { font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 12px; }
h3 { font-size: 1.02rem; line-height: 1.3; margin: 0 0 4px; }
p { margin: 0 0 8px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.meta, .fine, .lede { color: var(--muted); }
.meta { font-size: 0.8rem; margin: 0 0 2px; }
.fine { font-size: 0.8rem; margin: 12px 0 0; }
.lede { font-size: 0.95rem; }

/* Header */
.top { background: var(--navy); color: #fff; padding-top: env(safe-area-inset-top); }
.top-in { max-width: 1240px; margin: 0 auto; padding: 12px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; min-height: var(--tap); }
.brand img { border-radius: 8px; }
.brand .name { margin: 0; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; }
.brand .tagline { display: block; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.jump { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.jump a { color: #fff; text-decoration: none; font-size: 0.9rem; padding: 0 12px; min-height: var(--tap); display: inline-flex; align-items: center; border-radius: 999px; white-space: nowrap; }
.jump a:hover { background: rgba(255,255,255,0.12); color: #fff; }
@media (max-width: 640px) {
  .jump { margin: 0 -8px; width: calc(100% + 16px); }
  .jump a { background: rgba(255,255,255,0.08); }
}

/* Layout: phone = one column in priority order; desktop = ad/podcasts | map/news | events */
.grid { max-width: 1240px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.col { display: contents; }
#map { order: 1; } #events { order: 2; } #news { order: 3; } #podcasts { order: 4; } #sponsor { order: 5; } #reports { order: 6; } #tools { order: 7; }
@media (min-width: 1024px) {
  .grid { display: grid; grid-template-columns: 280px minmax(0, 1fr) 320px; align-items: start; gap: 20px; padding: 24px; }
  .col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
  .col > * { order: 0 !important; }
}
.card { background: var(--card); border-radius: var(--r); padding: 20px; }
@media (max-width: 640px) { .card { padding: 16px; } }

/* Map */
.aa-map { height: 340px; border-radius: 12px; overflow: hidden; background: #dfe7f0; z-index: 0; }
@media (min-width: 641px) { .aa-map { height: 420px; } }
@media (min-width: 1024px) { .aa-map { height: 520px; } }
.leaflet-container { font: inherit; }
.aa-map.leaflet-container .leaflet-bar a { width: var(--tap); height: var(--tap); line-height: var(--tap); font-size: 22px; }
.aa-map .leaflet-popup-close-button { width: var(--tap) !important; height: var(--tap) !important; font-size: 22px !important; line-height: var(--tap) !important; }
.aa-map .leaflet-popup-content { margin-right: 36px; }
.leaflet-popup-content { font-size: 0.9rem; line-height: 1.4; margin: 12px 14px; }
.leaflet-popup-content h3 { font-size: 0.98rem; }
.leaflet-popup-content p { margin: 0 0 4px; }
.leaflet-popup-content a { display: inline-flex; align-items: center; min-height: var(--tap); }
.pin { width: 100%; height: 100%; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,0.3); }
.hit { width: var(--tap); height: var(--tap); display: flex; align-items: center; justify-content: center; }
.hit .pin { width: var(--s); height: var(--s); }
.p-ch { background: #1f6fd1; } .p-247 { background: #18a7b5; } .p-up, .p-live { background: #19a35b; } .p-past { background: #9aa5b3; }
.p-live { animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(25,163,91,.6); } 100% { box-shadow: 0 0 0 12px rgba(25,163,91,0); } }
@media (prefers-reduced-motion: reduce) { .p-live { animation: none; } }
.status { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #19a35b; }
.status.past { color: #6b7686; }
.legend { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.8rem; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.d-ch { background: #1f6fd1; } .d-247 { background: #18a7b5; } .d-up { background: #19a35b; } .d-past { background: #9aa5b3; }
.fold > summary { cursor: pointer; min-height: var(--tap); display: flex; align-items: center; font-weight: 600; font-size: 0.95rem; list-style: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-left: 10px; margin-top: -4px; transition: transform .2s; }
.fold[open] > summary::after { transform: rotate(225deg); margin-top: 4px; }
.chan-list { list-style: none; padding: 0; margin: 4px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 2px 16px; font-size: 0.88rem; }
.chan-list li { padding: 6px 0; cursor: pointer; }
.chan-list li a { display: inline-flex; align-items: center; min-height: var(--tap); }
.chan-list span { display: block; font-size: 0.76rem; color: var(--muted); }

/* Roll-up rows (events, podcasts) */
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li + li { border-top: 1px solid var(--line); }
.row > summary { list-style: none; cursor: pointer; min-height: 52px; padding: 10px 28px 10px 0; display: flex; flex-direction: column; justify-content: center; position: relative; -webkit-tap-highlight-color: transparent; }
.row > summary::-webkit-details-marker { display: none; }
.row > summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.row[open] > summary::after { transform: translateY(-30%) rotate(225deg); }
.row .when { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.row .what { font-weight: 600; font-size: 0.98rem; line-height: 1.3; }
.pods .row .when { font-weight: 400; }
.row .more { padding: 0 0 14px; font-size: 0.92rem; }
.row .more p { margin: 0 0 6px; }
.row .where { color: var(--muted); }
.note { border-left: 3px solid var(--gold); padding-left: 8px; font-size: 0.85rem; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px !important; }
.pill { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 16px; border-radius: 999px; background: var(--navy); color: #fff; text-decoration: none; font-weight: 600; font-size: 0.88rem; line-height: 1; border: 0; cursor: pointer; font-family: inherit; }
.pill:hover { color: #fff; background: #17325a; }
.pill.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
@media (prefers-color-scheme: dark) { .pill { background: #2c2c2e; } .pill:hover { background: #3a3a3c; } }

/* News */
.story + .story { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.story h3 a { text-decoration: none; }
.story h3 a:hover { text-decoration: underline; }
.story p:last-child { font-size: 0.92rem; color: var(--ink); margin: 0; }

/* Sponsor */
.ad { padding: 12px; text-align: center; }
.ad-label { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.ad img { display: block; width: 100%; max-width: 300px; margin: 0 auto; border-radius: 10px; }

/* Plain lists */
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { padding: 10px 0; }
.plain li + li { border-top: 1px solid var(--line); }
.plain a { display: inline-flex; align-items: center; min-height: var(--tap); }
.plain .meta { display: block; }
.tools li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.stores { display: flex; gap: 12px; font-size: 0.85rem; }
.stores a { min-height: var(--tap); display: inline-flex; align-items: center; }

/* About + footer */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.about { max-width: 640px; margin: 24px auto 32px; text-align: center; color: var(--muted); font-size: 0.95rem; }
.about h2 { color: var(--ink); font-size: 1.05rem; }
.archive-link { margin-top: 16px; }
.foot { background: var(--navy); color: #c7ced9; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); font-size: 0.88rem; }
.foot-in { max-width: 1240px; margin: 0 auto; text-align: center; }
.foot a, .foot .linkish { color: #fff; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 18px; margin: 0; }
.foot-links a, .linkish { min-height: var(--tap); display: inline-flex; align-items: center; }
.linkish { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 2px; cursor: pointer; }
.copy { margin: 6px 0 0; color: #8f9bb0; }
.copy a { display: inline-flex; align-items: center; min-height: var(--tap); }

/* Sub pages */
.narrow { max-width: 760px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.page-h { font-size: 2rem; letter-spacing: -0.02em; margin: 12px 0 4px; }
.post h2 { font-size: 1.5rem; }
.prose { font-size: 1rem; }
.prose img { display: block; border-radius: 10px; margin: 8px 0; }
.prose figure { margin: 16px 0; }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.policy h1 { font-size: 1.8rem; margin: 0 0 4px; }
.policy h2 { margin-top: 24px; }
.policy table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.policy th, .policy td { text-align: left; padding: 8px 6px; border-top: 1px solid var(--line); vertical-align: top; }

/* Consent bar */
.consent { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 1000; max-width: 560px; margin: 0 auto; background: var(--card); color: var(--ink); border-radius: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.18); padding: 14px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 0.9rem; }
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1 1 240px; }
.consent-btns { display: flex; gap: 8px; }
.consent button { min-height: var(--tap); padding: 0 16px; border-radius: 999px; border: 0; font-weight: 600; font-size: 0.9rem; font-family: inherit; cursor: pointer; background: var(--line); color: var(--ink); }
.consent button.primary { background: var(--navy); color: #fff; }
@media (prefers-color-scheme: dark) { .consent button.primary { background: var(--accent); } }
.linkish.inline { color: var(--link); min-height: 0; display: inline; text-decoration-color: currentColor; }
.policy code { font-size: 0.85em; }
@media (max-width: 640px) { .aa-map.popup-open .leaflet-control-zoom { display: none; } }

/* Phone and tablet folds ("Show all N"). Only with JS (.js on <html>); desktop keeps its columns as they are. */
.showall { display: none; }
@media (max-width: 1023px) {
  .js .is-folded > .extra { display: none; }
  .js .showall:not([hidden]) { display: flex; align-items: center; justify-content: center; width: 100%; min-height: var(--tap); margin-top: 12px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--bg); color: var(--ink); font: inherit; font-weight: 600; font-size: 0.92rem; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
  .js .showall:hover { background: var(--line); }
  .js .showall::after { content: ""; width: 7px; height: 7px; margin-left: 10px; margin-top: -3px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
  .js .showall[aria-expanded="true"]::after { transform: rotate(225deg); margin-top: 3px; }
}
@media (max-width: 640px) {
  .aa-map { height: 300px; }
  .fine { margin-top: 8px; }
}

/* Archive posts roll up on phone and tablet; on desktop the summary looks like a plain heading. */
.postfold > summary { list-style: none; display: block; position: relative; }
.postfold > summary::-webkit-details-marker { display: none; }
.postfold > summary h2 { margin: 0; }
@media (max-width: 1023px) {
  .postfold > summary { cursor: pointer; min-height: var(--tap); padding-right: 30px; }
  .postfold > summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
  .postfold[open] > summary::after { transform: translateY(-30%) rotate(225deg); }
  .postfold[open] > summary { margin-bottom: 8px; }
  .post h2 { font-size: 1.2rem; }
}
.prose { overflow-wrap: anywhere; }
