/* SkyNetwork — the blue gradients of the logo on calm light or deep-navy surfaces.
   Big type and plenty of air, translucent chrome, quiet motion. Live traffic still reads like ATC strips. */

/* ---- tokens ---- */
:root {
  color-scheme: light;
  /* Surfaces: paper, a sky-tinted band, raised cards and fields. */
  --paper: #ffffff;
  --surface: #f2f6fb;
  --surface-2: #e9f0f9;
  --card-bg: #ffffff;
  --field-bg: #ffffff;
  /* Text and lines, tinted towards the navy of the logo. */
  --ink: #0a1b33;
  --slate: #56677f;
  --line: #e0e8f2;
  --line-strong: #c4d2e4;
  --field: #c9d6e6;
  /* Brand blues, taken from the logo: bright S #1a79e1, body #3387e1, sphere #5ba0e9, pale arcs #d0ebff. */
  --accent: #1a6fe0;
  --accent-ink: #1158c2;
  --accent-2: #5ba0e9;
  --on-accent: #ffffff;
  --accent-soft: #ebf3fe; --accent-soft-line: #cfe1fb;
  --grad-button: linear-gradient(180deg, #1d72e6 0%, #0f5bcf 100%);
  --grad-button-hover: linear-gradient(180deg, #2479ec 0%, #1263d9 100%);
  --grad-title: linear-gradient(115deg, #0a1b33 0%, #0f3571 55%, #1a6fe0 100%);
  --grad-word: linear-gradient(90deg, #1a6fe0 0%, #3a8ef0 100%);
  --grad-num: linear-gradient(180deg, #0f3571 0%, #1a6fe0 100%);
  --grad-deep: linear-gradient(165deg, #03102a 0%, #06265c 55%, #0b4aa6 100%);
  --glow: rgba(91,160,233,.26);
  --glow-2: rgba(26,111,224,.10);
  --btn-shadow: 0 8px 20px -8px rgba(15,91,207,.55);
  --mark-glow: drop-shadow(0 16px 32px rgba(26,111,224,.30));
  --mark-big: url("/img/brand/mark-256.png"); --mark-small: url("/img/brand/mark-64.png");
  /* Status. */
  --live: #189a5c;
  --warn: #c9851a;
  --danger: #cf3f3f;
  --ok-soft: #e8f7ef; --ok-soft-line: #c9ebd8; --ok-text: #16663e;
  --warn-soft: #fcf4e6; --warn-soft-line: #f2e0bd;
  --danger-soft: #fdeeee; --danger-soft-line: #f5d2d2; --danger-text: #8f2b2b;
  --dot-off: #a8b4c4;
  /* Chrome: translucent header and glass panels with a bright top edge; shadows tinted blue. */
  --header-bg: rgba(255,255,255,.94);
  --chrome-bg: rgba(255,255,255,.72);
  --panel-bg: rgba(255,255,255,.96);
  --glass-bg: rgba(255,255,255,.8);
  --edge-bright: rgba(255,255,255,.8);
  --shadow: rgba(16,52,110,.09);
  --shadow-strong: rgba(16,52,110,.2);
  --row-hover: #f6f9fd;
  --staff-bar-bg: linear-gradient(90deg, #04112b 0%, #0a3a82 100%);
  --staff-bar-text: #c3d3ea; --staff-bar-strong: #ffffff;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%2356677f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  /* Map: sector borders, the selected aircraft's route, airport diagrams when zoomed in. */
  --map-fir: rgba(80,110,150,.42);
  --map-route: #1a6fe0;
  --map-flown: #e07b2a;
  --apt-apron: #dfe6ef; --apt-building: #c8d2df; --apt-runway: #7a879a; --apt-taxiway: #a9b6c6; --apt-label: #56677f; --apt-rwy: #c2410c;
  /* Strip edges by facility, as on a controller's strip board. */
  --f-del: #7d8fa8;
  --f-gnd: #2f9d6a;
  --f-twr: #cf8a1c;
  --f-app: #1a6fe0;
  --f-ctr: #6d55d8;
  --f-atis: #0e8f8f;
  --f-pilot: #9aa9bd;

  --display: "Manrope", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --radius: 12px;
  --wrap: 1160px;
  --r-panel: 28px; --r-card: 20px;

  /* Motion: one curve, no overshoot; things appear from where they are. */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-reveal: 700ms; --t-hover: 200ms; --t-press: 120ms; --t-fade: 700ms;
}

/* Dark theme: chosen with the header switch (data-theme), otherwise the system setting. Deep navy, like the logo on black. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #050b17;
  --surface: #0a1426;
  --surface-2: #0f1c33;
  --card-bg: #0c182d;
  --field-bg: #081226;
  --ink: #e8f1fd;
  --slate: #93a6c2;
  --line: #16243c;
  --line-strong: #253857;
  --field: #2a3d5e;
  --accent: #5aa8f7;
  --accent-ink: #8cc4fa;
  --accent-2: #3a8ef0;
  --on-accent: #ffffff;
  --accent-soft: rgba(90,168,247,.13); --accent-soft-line: rgba(90,168,247,.3);
  --grad-button: linear-gradient(180deg, #1d72e6 0%, #0f5bcf 100%);
  --grad-button-hover: linear-gradient(180deg, #2a7ff0 0%, #1466dc 100%);
  --grad-title: linear-gradient(115deg, #ffffff 0%, #d2e7fd 50%, #7dbcf7 100%);
  --grad-word: linear-gradient(90deg, #5aa8f7 0%, #a9d4fa 100%);
  --grad-num: linear-gradient(180deg, #ffffff 0%, #8cc4fa 100%);
  --grad-deep: linear-gradient(165deg, #030a1a 0%, #062150 55%, #0b4396 100%);
  --glow: rgba(40,120,230,.30);
  --glow-2: rgba(90,168,247,.10);
  --btn-shadow: 0 10px 24px -10px rgba(40,130,250,.6);
  --mark-glow: drop-shadow(0 12px 36px rgba(60,150,255,.38));
  --mark-big: url("/img/brand/mark-deep-256.png"); --mark-small: url("/img/brand/mark-deep-64.png");
  --live: #3ccf85;
  --warn: #e8b04e;
  --danger: #f07474;
  --ok-soft: rgba(60,207,133,.12); --ok-soft-line: rgba(60,207,133,.3); --ok-text: #7fe0ae;
  --warn-soft: rgba(232,176,78,.12); --warn-soft-line: rgba(232,176,78,.3);
  --danger-soft: rgba(240,116,116,.12); --danger-soft-line: rgba(240,116,116,.32); --danger-text: #f6a3a3;
  --dot-off: #56687f;
  --header-bg: rgba(5,11,23,.94);
  --chrome-bg: rgba(5,11,23,.7);
  --panel-bg: rgba(12,24,45,.96);
  --glass-bg: rgba(12,24,45,.8);
  --edge-bright: rgba(255,255,255,.06);
  --shadow: rgba(0,0,0,.4);
  --shadow-strong: rgba(0,0,0,.62);
  --row-hover: #0e1b31;
  --staff-bar-bg: linear-gradient(90deg, #020815 0%, #082a63 100%);
  --staff-bar-text: #9fb3cf; --staff-bar-strong: #ffffff;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%2393a6c2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --map-fir: rgba(140,170,210,.32); --map-route: #6fb3f7; --map-flown: #f4a15d;
  --apt-apron: #121d2e; --apt-building: #1f2c40; --apt-runway: #5f6f88; --apt-taxiway: #3d4c63; --apt-label: #93a6c2; --apt-rwy: #f07a4a;
  --f-del: #8fa1ba; --f-gnd: #49c08a; --f-twr: #eab04f; --f-app: #5aa8f7; --f-ctr: #a08cf0; --f-atis: #3cc7c7; --f-pilot: #5d6f88;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #050b17;
    --surface: #0a1426;
    --surface-2: #0f1c33;
    --card-bg: #0c182d;
    --field-bg: #081226;
    --ink: #e8f1fd;
    --slate: #93a6c2;
    --line: #16243c;
    --line-strong: #253857;
    --field: #2a3d5e;
    --accent: #5aa8f7;
    --accent-ink: #8cc4fa;
    --accent-2: #3a8ef0;
    --on-accent: #ffffff;
    --accent-soft: rgba(90,168,247,.13); --accent-soft-line: rgba(90,168,247,.3);
    --grad-button: linear-gradient(180deg, #1d72e6 0%, #0f5bcf 100%);
    --grad-button-hover: linear-gradient(180deg, #2a7ff0 0%, #1466dc 100%);
    --grad-title: linear-gradient(115deg, #ffffff 0%, #d2e7fd 50%, #7dbcf7 100%);
    --grad-word: linear-gradient(90deg, #5aa8f7 0%, #a9d4fa 100%);
    --grad-num: linear-gradient(180deg, #ffffff 0%, #8cc4fa 100%);
    --grad-deep: linear-gradient(165deg, #030a1a 0%, #062150 55%, #0b4396 100%);
    --glow: rgba(40,120,230,.30);
    --glow-2: rgba(90,168,247,.10);
    --btn-shadow: 0 10px 24px -10px rgba(40,130,250,.6);
    --mark-glow: drop-shadow(0 12px 36px rgba(60,150,255,.38));
    --mark-big: url("/img/brand/mark-deep-256.png"); --mark-small: url("/img/brand/mark-deep-64.png");
    --live: #3ccf85;
    --warn: #e8b04e;
    --danger: #f07474;
    --ok-soft: rgba(60,207,133,.12); --ok-soft-line: rgba(60,207,133,.3); --ok-text: #7fe0ae;
    --warn-soft: rgba(232,176,78,.12); --warn-soft-line: rgba(232,176,78,.3);
    --danger-soft: rgba(240,116,116,.12); --danger-soft-line: rgba(240,116,116,.32); --danger-text: #f6a3a3;
    --dot-off: #56687f;
    --header-bg: rgba(5,11,23,.94);
    --chrome-bg: rgba(5,11,23,.7);
    --panel-bg: rgba(12,24,45,.96);
    --glass-bg: rgba(12,24,45,.8);
    --edge-bright: rgba(255,255,255,.06);
    --shadow: rgba(0,0,0,.4);
    --shadow-strong: rgba(0,0,0,.62);
    --row-hover: #0e1b31;
    --staff-bar-bg: linear-gradient(90deg, #020815 0%, #082a63 100%);
    --staff-bar-text: #9fb3cf; --staff-bar-strong: #ffffff;
    --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%2393a6c2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --map-fir: rgba(140,170,210,.32); --map-route: #6fb3f7; --map-flown: #f4a15d;
    --apt-apron: #121d2e; --apt-building: #1f2c40; --apt-runway: #5f6f88; --apt-taxiway: #3d4c63; --apt-label: #93a6c2; --apt-rwy: #f07a4a;
    --f-del: #8fa1ba; --f-gnd: #49c08a; --f-twr: #eab04f; --f-app: #5aa8f7; --f-ctr: #a08cf0; --f-atis: #3cc7c7; --f-pilot: #5d6f88;
  }
}

/* ---- base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15.5px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(26,111,224,.2); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0 0 .5em; }
/* Titles carry the logo gradient, navy into brand blue; the box hugs the text so the whole gradient shows,
   and a little padding keeps descenders inside the painted area. */
h1 {
  font-size: clamp(32px, 4.4vw, 48px); line-height: 1.08; font-weight: 800; letter-spacing: -0.035em;
  width: fit-content; max-width: 100%; padding-bottom: .08em; text-wrap: balance;
  background: var(--grad-title); -webkit-background-clip: text; background-clip: text; color: transparent;
}
h2 { font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -0.025em; }
h3 { font-size: 18px; line-height: 1.3; font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
.mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--slate); }
.small { font-size: 13px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---- header ---- */
/* A translucent layer the page scrolls under: bright top edge, hairline below that hides while the page sits at the top. */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--header-bg); }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .site-header { background: var(--chrome-bg); -webkit-backdrop-filter: blur(22px) saturate(1.8); backdrop-filter: blur(22px) saturate(1.8); }
}
.site-header::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--edge-bright); pointer-events: none; }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); pointer-events: none; transition: opacity 300ms var(--ease); }
html.at-top .site-header::after { opacity: 0; }
.site-header.open { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
#scroll-top { position: absolute; top: 0; left: 0; width: 1px; height: 1px; pointer-events: none; }
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
/* The mark from the logo and the wordmark: Sky in ink, Network in the brand gradient. */
.brand { display: flex; align-items: center; gap: 10px; flex: none; font: 800 18px/1 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand .brand-mark { width: 30px; height: 30px; display: block; filter: drop-shadow(0 2px 6px rgba(26,111,224,.28)); transition: transform var(--t-hover) var(--ease); }
.brand:hover .brand-mark { transform: scale(1.06); }
.brand .mark-dark { display: none; }
:root[data-theme="dark"] .brand .mark-light { display: none; }
:root[data-theme="dark"] .brand .mark-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .mark-light { display: none; }
  :root:not([data-theme="light"]) .brand .mark-dark { display: block; }
}
.brand .brand-net { margin-left: 0; background: var(--grad-word); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; justify-content: center; gap: 2px; flex: 1; white-space: nowrap; }
.nav a, .user-nav a { color: var(--slate); font: 500 14px/1.2 var(--body); padding: 8px 12px; border-radius: 999px; transition: color var(--t-hover) var(--ease), background-color var(--t-hover) var(--ease); }
.nav a:hover, .user-nav a:hover { color: var(--ink); text-decoration: none; }
.nav a.active { color: var(--accent-ink); background: var(--accent-soft); }
.user-nav { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.user-nav form { margin: 0; }
.user-nav .me { display: inline-flex; align-items: center; gap: 8px; padding: 4px; }
.user-nav .me .initials { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--grad-button); color: #fff; font: 700 11px var(--display); letter-spacing: .02em; box-shadow: var(--btn-shadow); }
/* On desktop the account link is just the initials (name in the tooltip): the menu stays on one line in every language. */
.user-nav .me img.initials { object-fit: cover; padding: 0; }
.user-nav .me .name { display: none; }
.site-header .nav-toggle { display: none; }

/* ---- language and theme switches ---- */
.prefs { display: flex; align-items: center; gap: 2px; margin-right: 4px; }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; color: var(--slate); padding: 7px 9px; border-radius: 999px; font-size: 12.5px; transition: color var(--t-hover) var(--ease), background-color var(--t-hover) var(--ease); }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { color: var(--ink); background: var(--surface); }
.lang-menu[open] summary { color: var(--ink); background: var(--surface); }
.lang-menu .menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 160px; background: var(--card-bg); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: 0 16px 40px -12px var(--shadow-strong); z-index: 1100; }
.lang-menu .menu a { display: block; padding: 8px 12px; border-radius: 9px; color: var(--ink); }
.lang-menu .menu a:hover { background: var(--surface); text-decoration: none; }
.lang-menu .menu a.active { color: var(--accent-ink); background: var(--accent-soft); font-weight: 600; }
.theme-toggle { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; color: var(--slate); cursor: pointer; transition: color var(--t-hover) var(--ease), background-color var(--t-hover) var(--ease); }
.theme-toggle:hover { background: var(--surface); color: var(--ink); }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}

/* ---- buttons ---- */
/* Everything presses down on pointer-down; the primary action wears the logo's blue gradient. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 14px/1.2 var(--body); padding: 10px 18px; min-height: 40px; border-radius: var(--radius);
  border: 1px solid var(--line-strong); background: var(--card-bg); color: var(--ink); cursor: pointer;
  transition: background-color var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease), color var(--t-hover) var(--ease),
              box-shadow var(--t-hover) var(--ease), transform var(--t-press) var(--ease);
}
.btn:hover { border-color: var(--accent); color: var(--accent-ink); text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad-button); border-color: transparent; color: var(--on-accent); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), var(--btn-shadow); }
.btn-primary:hover { background: var(--grad-button-hover); border-color: transparent; color: var(--on-accent); box-shadow: inset 0 1px 0 rgba(255,255,255,.26), 0 12px 26px -10px rgba(15,91,207,.62); }
.btn-danger { color: var(--danger); }
.btn-danger:hover { border-color: var(--danger); color: var(--danger); }
.btn-small { padding: 6px 12px; min-height: 32px; font-size: 13px; border-radius: 10px; }
.user-nav .btn { font-weight: 600; }
/* Header links are slate; the buttons among them keep their own colours. */
.user-nav .btn-primary, .user-nav .btn-primary:hover { padding: 8px 16px; color: var(--on-accent); }
/* Pill: the main call to action. */
.btn-pill { border-radius: 999px; padding: 12px 26px; font-size: 15.5px; min-height: 48px; }
.user-nav .btn-pill { padding: 8px 18px; font-size: 14px; min-height: 36px; }
.btn-pill:focus-visible { outline-offset: 3px; border-radius: 999px; }
/* Text link with a chevron that nudges on hover. */
.chev-link { display: inline-flex; align-items: center; gap: 4px; font: 500 15.5px var(--body); color: var(--accent); transition: color var(--t-hover) var(--ease); }
.chev-link:hover { color: var(--accent-ink); text-decoration: none; }
.chev-link .chev { flex: none; transition: transform var(--t-hover) var(--ease); }
.chev-link:hover .chev { transform: translateX(3px); }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; }
.link-button:hover { text-decoration: underline; }

/* ---- page ---- */
/* A soft sky glow at the top of every page; the home hero paints its own. */
main { position: relative; isolation: isolate; min-height: calc(100vh - 64px - 140px); }
main::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 460px; z-index: -1; pointer-events: none;
  background: radial-gradient(900px 340px at 50% -120px, var(--glow), transparent 72%); }
.page { padding-top: 56px; padding-bottom: 88px; }
.page-head { margin-bottom: 32px; }
.page-head p { color: var(--slate); max-width: 660px; font-size: 16.5px; }
.eyebrow { font: 600 12px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.section-head > a { white-space: nowrap; }
.band { background: var(--surface); }

/* ---- live dot ---- */
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px var(--ok-soft); flex: none; }
.dot.off { background: var(--dot-off); box-shadow: none; }

/* ---- strips (live traffic) ---- */
.strips { display: grid; gap: 8px; }
.strips.two { grid-template-columns: 1fr 1fr; }
.strip {
  --edge: var(--f-pilot);
  display: grid; grid-template-columns: 128px 1fr auto; align-items: center; gap: 14px;
  padding: 12px 16px 12px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-bg);
  box-shadow: inset 4px 0 0 var(--edge); transition: border-color var(--t-hover) var(--ease);
}
.strip:hover { border-color: var(--line-strong); }
.strip .cs { font: 600 14px var(--mono); letter-spacing: .02em; color: var(--ink); }
.strip .who { color: var(--slate); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strip .freq { font: 600 14px var(--mono); color: var(--accent-ink); }
.strip.DEL { --edge: var(--f-del); }
.strip.GND { --edge: var(--f-gnd); }
.strip.TWR { --edge: var(--f-twr); }
.strip.APP { --edge: var(--f-app); }
.strip.CTR, .strip.FSS { --edge: var(--f-ctr); }
.strip.ATIS { --edge: var(--f-atis); }
.strip a.cs:hover { color: var(--accent); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; }
.facts dt { color: var(--slate); font-size: 12px; }
.facts dd { margin: 0; }
.key-box { font: 600 14px var(--mono); word-break: break-all; user-select: all; padding: 14px 16px; border: 1px dashed var(--accent); border-radius: 12px; background: var(--accent-soft); }
.empty { padding: 32px 24px; border: 1px dashed var(--line-strong); border-radius: 16px; color: var(--slate); text-align: center; background: var(--surface); }

/* ---- cards / lists ---- */
.grid { display: grid; gap: 16px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card { border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: var(--card-bg); }
a.card { color: inherit; display: block; transition: transform var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease); }
a.card:hover { border-color: var(--line-strong); box-shadow: 0 14px 36px -14px var(--shadow-strong); transform: translateY(-2px); text-decoration: none; }
.card h3 { margin-bottom: 6px; }
.card .meta { color: var(--slate); font-size: 13px; margin-bottom: 8px; }
.card .btn { margin-top: 4px; }
.date-chip { display: inline-block; font: 600 12px var(--mono); color: var(--accent-ink); background: var(--accent-soft); border: 1px solid var(--accent-soft-line); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.news-list { display: grid; }

/* ---- banners (events, news) ---- */
.card.with-banner { padding-top: 0; overflow: hidden; }
.card-banner { display: block; position: relative; overflow: hidden; width: calc(100% + 44px); max-width: none; margin: 0 -22px 16px; aspect-ratio: 16 / 7; background: var(--surface); }
.card-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.page-banner { display: block; width: 100%; max-height: 380px; aspect-ratio: 16 / 6; object-fit: cover; border-radius: 20px; border: 1px solid var(--line); margin-bottom: 32px; background: var(--surface); box-shadow: 0 24px 60px -30px var(--shadow-strong); }
.news-item.with-thumb { display: grid; grid-template-columns: 176px 1fr; column-gap: 22px; }
.news-item.with-thumb > :not(.news-thumb) { grid-column: 2; }
.news-thumb { grid-row: 1 / span 3; position: relative; display: block; overflow: hidden; width: 176px; aspect-ratio: 16 / 10; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.news-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* The layout chosen in the editor: height on its own page and the part kept in view when the picture is cropped.
   "Whole picture" is never cropped: on its page it keeps its own shape, on cards it sits over a blurred copy of itself. */
.page-banner.banner-strip { aspect-ratio: 4 / 1; max-height: 300px; }
.page-banner.banner-tall { aspect-ratio: 16 / 9; max-height: 640px; }
.page-banner.banner-full { width: auto; max-width: 100%; height: auto; max-height: min(760px, 85vh); aspect-ratio: auto; object-fit: contain; margin-left: auto; margin-right: auto; }
.focus-top, .focus-top > img { object-position: 50% 0; }
.focus-bottom, .focus-bottom > img { object-position: 50% 100%; }
.card-media { position: relative; }
.banner-fill { display: none; }
.banner-full > img:not(.banner-fill) { position: relative; object-fit: contain; }
.banner-full > img.banner-fill { display: block; position: absolute; inset: 0; object-fit: cover; filter: blur(18px) saturate(1.2); transform: scale(1.15); opacity: .6; }
/* Banner editor: a live preview (its page and a card) and segmented choices for the height and the crop. */
.banner-field { display: grid; gap: 14px; }
.banner-look { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 18px; align-items: start; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.banner-look[hidden] { display: none; }
.banner-look figure { display: grid; gap: 8px; min-width: 0; margin: 0; }
.banner-look figcaption { font-size: 12.5px; color: var(--slate); }
.banner-look .page-banner { margin-bottom: 0; border-radius: 12px; box-shadow: none; }
.banner-look .page-banner.banner-full { max-height: 320px; }
.banner-look .card-media { border-radius: 12px; border: 1px solid var(--line); background: var(--card-bg); }
.banner-choices { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.choice { min-width: 0; margin: 0; padding: 0; border: 0; transition: opacity var(--t-hover) var(--ease); }
.choice legend { padding: 0; margin-bottom: 7px; font-weight: 600; font-size: 13.5px; }
.choice[disabled] { opacity: .45; }
.segmented { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.segmented label { position: relative; display: block; font-weight: 500; font-size: 13.5px; cursor: pointer; }
.choice[disabled] .segmented label { cursor: default; }
.segmented input[type=radio] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; }
.segmented span { display: block; padding: 8px 14px; border-radius: 9px; color: var(--slate); white-space: nowrap; transition: background-color var(--t-hover) var(--ease), color var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease); }
.segmented label:hover span { color: var(--ink); }
.segmented input:checked + span { background: var(--card-bg); color: var(--ink); box-shadow: 0 1px 3px var(--shadow-strong), 0 0 0 1px var(--line); }
.segmented input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (max-width: 760px) { .banner-look { grid-template-columns: 1fr; } }
/* Language tabs of the event and news editors: the Russian and the English version live in one form. */
.lang-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.lang-tabs .hint { font-size: 12.5px; color: var(--slate); }
.lang-part { display: grid; gap: 18px; }
.lang-part[hidden] { display: none; }
.banner-field .lang-part { gap: 10px; }
.news-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.news-item:first-child { padding-top: 0; }
.news-item h3 { margin-bottom: 4px; }
.prose { max-width: 740px; }
.prose p { white-space: pre-line; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { position: relative; padding: 24px 22px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--card-bg); }
.step::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--grad-button); color: #fff; font: 700 14px var(--display); margin-bottom: 14px; box-shadow: var(--btn-shadow); }

/* ---- staff: member list ---- */
.members-title { display: flex; align-items: center; gap: 12px; font-size: 30px; }
.count-chip { font: 600 13px var(--mono); color: var(--slate); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; letter-spacing: 0; }
.members-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-bottom: 16px; }
.members-search { display: flex; gap: 8px; flex: 1 1 320px; max-width: 520px; }
.members-search input { flex: 1; min-width: 0; }
.seg-links a { display: block; padding: 8px 14px; border-radius: 9px; color: var(--slate); font-weight: 500; font-size: 13.5px; white-space: nowrap;
  transition: background-color var(--t-hover) var(--ease), color var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease); }
.seg-links a:hover { color: var(--ink); text-decoration: none; }
.seg-links a.on { background: var(--card-bg); color: var(--ink); box-shadow: 0 1px 3px var(--shadow-strong), 0 0 0 1px var(--line); }
.seg-count { display: inline-block; min-width: 20px; margin-left: 6px; padding: 1px 6px; border-radius: 999px; font-size: 12px; font-weight: 600;
  text-align: center; font-variant-numeric: tabular-nums; color: var(--warn); background: var(--warn-soft); box-shadow: inset 0 0 0 1px var(--warn-soft-line); }
.members-note { max-width: 760px; margin: -4px 0 14px; }
/* Tick members and suspend or delete them together. */
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 10px 12px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.bulk-bar input[name=reason] { flex: 1 1 220px; max-width: 360px; min-height: 38px; padding: 7px 12px; }
.bulk-bar .btn[disabled] { opacity: .45; cursor: default; }
.bulk-count { min-width: 110px; font-size: 13.5px; color: var(--slate); font-variant-numeric: tabular-nums; }
/* Fixed columns: the member column takes the room that is left and cuts long names and emails short (the whole
   value is in the tooltip); on a phone the ratings and the date give way. */
.members-table { table-layout: fixed; }
.members-table td { vertical-align: middle; }
.members-table th.tick { width: 48px; }
.members-table th.cid { width: 96px; }
.members-table th.rating { width: 150px; }
.members-table th.date { width: 168px; }
.members-table th.state { width: 150px; }
.members-table .tick { padding-right: 0; }
.members-table .who a, .members-table .who span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.members-table .who a { font-weight: 600; color: var(--ink); }
.members-table .who span { font-size: 12.5px; color: var(--slate); margin-top: 2px; }
.members-table .rating, .members-table .date { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.members-table .state-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.members-table tr.suspicious td { background: color-mix(in srgb, var(--warn-soft) 55%, transparent); }
@media (max-width: 760px) {
  .members-table .rating, .members-table .date { display: none; }
  .members-table th.cid { width: 76px; }
  .members-table th.state { width: 124px; }
  .members-table th, .members-table td { padding-left: 10px; padding-right: 10px; }
}
.nowrap { white-space: nowrap; }
/* Docs: the simulators SkyPilot works with. */
.sim-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }

/* ---- tables ---- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--card-bg); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font: 600 11.5px var(--body); color: var(--slate); letter-spacing: .06em; text-transform: uppercase; background: var(--surface); }
th, td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tr:hover td { background: var(--row-hover); }
td.num { font-variant-numeric: tabular-nums; }
.badge { display: inline-block; font: 600 11.5px var(--body); padding: 3px 9px; border-radius: 999px; background: var(--surface); color: var(--slate); border: 1px solid var(--line); white-space: nowrap; }
.badge.ok { color: var(--live); background: var(--ok-soft); border-color: var(--ok-soft-line); }
.badge.warn { color: var(--warn); background: var(--warn-soft); border-color: var(--warn-soft-line); }
.badge.danger { color: var(--danger); background: var(--danger-soft); border-color: var(--danger-soft-line); }
.badge.accent { color: var(--accent-ink); background: var(--accent-soft); border-color: var(--accent-soft-line); }

/* ---- forms ---- */
.form { display: grid; gap: 18px; max-width: 560px; align-content: start; }
/* Deleting an account: set apart, so nobody gets there by accident. */
.danger-zone { border: 1px solid var(--danger-soft-line); background: var(--danger-soft); }
.danger-zone:not(.card) { padding: 18px; border-radius: 16px; }
.danger-zone .btn-danger { background: var(--card-bg); }
.form.wide { max-width: 820px; }
.row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
label { display: grid; gap: 7px; font-weight: 600; font-size: 13.5px; }
label .hint { font-weight: 400; color: var(--slate); font-size: 12.5px; }
input, select, textarea {
  font: 15px var(--body); color: var(--ink); background: var(--field-bg);
  border: 1px solid var(--field); border-radius: var(--radius); padding: 10px 14px; min-height: 44px; width: 100%;
  transition: border-color var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease);
}
select { -webkit-appearance: none; appearance: none; background: var(--field-bg) var(--select-arrow) no-repeat right 14px center / 12px 8px; padding-right: 38px; }
input.mono, textarea.mono { font-family: var(--mono); font-size: 14px; text-transform: uppercase; }
textarea { min-height: 120px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--line-strong); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; accent-color: var(--accent); }
input[type=file] { padding: 9px 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; }
.check input { width: auto; margin-top: 4px; }
/* Registration: a field only bots fill in (people never see it, the keyboard skips it). */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* Staff member list: tick members and suspend them together. */
.alert { padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); margin-bottom: 18px; }
.alert.error { border-color: var(--danger-soft-line); background: var(--danger-soft); color: var(--danger-text); }
.alert.ok { border-color: var(--ok-soft-line); background: var(--ok-soft); color: var(--ok-text); }
.field-error { color: var(--danger); font-size: 13px; font-weight: 400; }
/* Sign-in and registration: one raised card with the mark on top. */
.auth-box { max-width: 460px; margin: 0 auto; padding: 40px 40px 30px; background: var(--card-bg); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: 0 1px 2px var(--shadow), 0 36px 80px -36px var(--shadow-strong); }
.auth-box::before { content: ""; display: block; width: 56px; height: 56px; margin: 0 auto 18px; background: var(--mark-big) center / contain no-repeat; filter: var(--mark-glow); }
.auth-box h1 { margin-left: auto; margin-right: auto; text-align: center; }
.auth-box > p.muted { text-align: center; }
.auth-box .form { max-width: none; }
.auth-box .btn-primary { width: 100%; min-height: 48px; border-radius: 999px; font-size: 15px; }
.big-cid { font: 700 44px var(--mono); letter-spacing: .04em; margin: 8px 0 16px; background: var(--grad-num); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; }

/* ---- profile ---- */
.profile-head { display: flex; align-items: center; gap: 20px; margin-bottom: 32px; }
.profile-head h1 { margin-bottom: 2px; }
.avatar { width: 72px; height: 72px; flex: none; border-radius: 50%; background: var(--grad-button); display: grid; place-items: center; font: 700 24px var(--display); color: #fff; box-shadow: var(--btn-shadow); }
img.avatar { object-fit: cover; background: var(--panel-bg); }
.avatar-edit { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-bottom: 28px; background: var(--card-bg); }
.stat { padding: 18px 20px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; width: fit-content; font: 800 26px/1.2 var(--display); letter-spacing: -0.02em; background: var(--grad-num); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--slate); font-size: 13px; }

/* ---- ratings on profiles ---- */
.rating-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.rating-card { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: grid; gap: 4px; background: var(--card-bg); }
.rating-card .label { font: 600 11.5px var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.rating-card b { font-weight: 600; font-size: 14px; }

/* ---- side navigation (account, docs, staff) ---- */
.with-side { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 48px; }
.side { position: sticky; top: 88px; align-self: start; }
.side a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--slate); font-weight: 500; font-size: 14.5px; transition: color var(--t-hover) var(--ease), background-color var(--t-hover) var(--ease); }
.side a:hover { background: var(--surface); color: var(--ink); text-decoration: none; }
.side a.active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.side .side-title { font: 600 11.5px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--slate); margin: 20px 12px 8px; }
.side .side-title:first-child { margin-top: 0; }
.side .count { float: right; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font: 600 11.5px/20px var(--mono); text-align: center; }

/* ---- map page ---- */
.map-page { position: relative; height: calc(100vh - 64px); height: calc(100dvh - 64px); }
.map-page #map { position: absolute; inset: 0; }
.map-panel, .map-card {
  position: absolute; z-index: 1000; background: var(--panel-bg);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 1px 2px var(--shadow), 0 18px 48px -16px var(--shadow-strong);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .map-panel, .map-card { background: var(--glass-bg); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); }
}
.map-panel { top: 16px; left: 16px; padding: 16px 18px; width: 324px; display: grid; gap: 12px; }
.mp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.layers-menu { position: relative; flex: none; }
.layers-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--slate); font: 500 12.5px var(--body); background: var(--card-bg); transition: color var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease); }
.layers-menu summary::-webkit-details-marker { display: none; }
.layers-menu summary svg { width: 15px; height: 15px; }
.layers-menu summary:hover, .layers-menu[open] summary { color: var(--accent-ink); border-color: var(--accent-soft-line); background: var(--accent-soft); }
.layers-menu .menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; display: grid; gap: 10px; padding: 14px; background: var(--card-bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px -12px var(--shadow-strong); z-index: 1100; }
.layers-menu .menu .check { font-size: 13.5px; color: var(--ink); align-items: center; }
.layers-menu .menu .check input { margin: 0; }
.layers-menu .menu .btn { margin-top: 4px; }
.mp-search { position: relative; }
.mp-search svg { position: absolute; left: 12px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); color: var(--slate); pointer-events: none; }
.mp-search input { padding-left: 34px; }
.map-panel b { font: 800 22px var(--display); letter-spacing: -0.02em; }
.map-panel input[type=search] { padding: 8px 12px 8px 34px; min-height: 40px; font-size: 14px; border-radius: 999px; }
.map-panel .check { font-size: 13px; color: var(--slate); }
.map-card { top: 16px; right: 16px; width: 370px; max-height: calc(100% - 32px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: none; }
/* No scroll bars in the card: it scrolls with the wheel or a finger, like a sheet on a phone. */
.map-card::-webkit-scrollbar { display: none; width: 0; height: 0; }
.map-card[hidden] { display: none; }
.map-card.closing { pointer-events: none; }
.mc-head { display: flex; align-items: flex-start; gap: 10px; padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.mc-head .cs { font: 700 21px var(--mono); letter-spacing: .02em; line-height: 1.2; }
.mc-head > div { min-width: 0; }
.mc-head .who { color: var(--slate); font-size: 13px; overflow-wrap: anywhere; }
.mc-head .close { margin-left: auto; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--surface); color: var(--slate); font-size: 18px; line-height: 1; cursor: pointer; padding: 0; }
.mc-head .close:hover { color: var(--ink); background: var(--surface-2); }
.mc-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.mc-body { padding: 14px 18px 18px; display: grid; gap: 14px; }
.mc-route { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: start; }
.mc-route .apt { min-width: 0; overflow-wrap: anywhere; }
.mc-route .apt b { display: block; font: 700 19px var(--mono); }
.mc-route .apt span { display: block; color: var(--slate); font-size: 12px; line-height: 1.3; }
.mc-route .apt:last-child { text-align: right; }
.mc-route .arrow { color: var(--accent); padding-top: 4px; }
.mc-flight { display: grid; gap: 8px; }
.mc-progress { position: relative; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.mc-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--map-flown), #f0a15e); border-radius: 3px; transition: width 1s cubic-bezier(.22, 1, .36, 1); }
.mc-progress b { position: absolute; top: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--accent); border: 2px solid var(--card-bg); transform: translateY(-50%); box-shadow: 0 0 0 1px var(--accent); transition: left 1s cubic-bezier(.22, 1, .36, 1); }
.mc-times { display: flex; justify-content: space-between; gap: 8px; font: 600 13px var(--mono); }
.mc-times span { display: grid; gap: 1px; text-align: center; min-width: 0; }
.mc-times span:first-child { text-align: left; }
.mc-times span:last-child { text-align: right; }
.mc-times small { font: 500 10.5px var(--body); color: var(--slate); text-transform: uppercase; letter-spacing: .05em; }
.badge.phase { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.badge.phase.on-the-ground, .badge.phase.arrived { color: var(--slate); background: var(--surface); border-color: var(--line); }
.badge.phase.climbing, .badge.phase.departing { color: #fff; background: var(--live); border-color: var(--live); }
.badge.phase.descending, .badge.phase.arriving { color: #fff; background: var(--warn); border-color: var(--warn); }
.mc-grid b small { font: 500 11px var(--body); white-space: nowrap; }
details.mc-sec { border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; background: var(--card-bg); }
details.mc-sec summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 10px 0;
  font: 600 12px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
details.mc-sec summary::-webkit-details-marker { display: none; }
details.mc-sec summary i { width: 8px; height: 8px; border-right: 2px solid var(--slate); border-bottom: 2px solid var(--slate); transform: rotate(45deg); transition: transform 320ms cubic-bezier(.22, 1, .36, 1); margin-right: 3px; }
/* Sections open and close smoothly where the browser can animate to the content's own height. */
@supports (interpolate-size: allow-keywords) {
  .map-card { interpolate-size: allow-keywords; }
  details.mc-sec::details-content { height: 0; overflow: clip; transition: height 340ms cubic-bezier(.22, 1, .36, 1), content-visibility 340ms allow-discrete; }
  details.mc-sec[open]::details-content { height: auto; }
}
details.mc-sec[open] summary i { transform: rotate(-135deg); }
details.mc-sec[open] summary { border-bottom: 1px solid var(--line); }
details.mc-sec > :not(summary) { margin: 12px 0; }
details.mc-sec .mc-block + .mc-block { margin-top: 12px; }
.mc-chart { display: block; width: 100%; height: 90px; }
.mc-chart.draw { animation: mc-draw 1s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes mc-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
.mc-chart polyline { fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.mc-chart .alt { stroke: var(--accent); }
.mc-chart .gs { stroke: var(--warn); }
.mc-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11px; margin-top: 6px; }
.mc-legend .alt { color: var(--accent); }
.mc-legend .gs { color: var(--warn); }
.mc-route-text b { color: var(--accent); font-weight: 600; }
.mc-tools { position: sticky; bottom: 0; display: flex; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--panel-bg); }
.mc-tools button { flex: 1; display: inline-flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-bg); color: var(--slate); font: 500 11px var(--body); cursor: pointer; transition: color var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease), transform var(--t-press) var(--ease); }
.mc-tools button:hover { color: var(--ink); border-color: var(--line-strong); }
.mc-tools button:active { transform: scale(.96); }
.mc-tools button.on { color: var(--accent-ink); border-color: var(--accent-soft-line); background: var(--accent-soft); }
.mc-tools svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mc-progress-text { display: flex; justify-content: space-between; gap: 8px; color: var(--slate); font-size: 12px; margin-top: 4px; }
.mc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card-bg); }
.mc-grid div { min-width: 0; padding: 9px 11px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mc-grid div:nth-child(3n) { border-right: 0; }
.mc-grid div:nth-last-child(-n+3) { border-bottom: 0; }
.mc-grid span { display: block; margin-bottom: 2px; color: var(--slate); font-size: 12px; line-height: 1.3; overflow-wrap: break-word; }
.mc-grid b { font: 600 14px var(--mono); overflow-wrap: anywhere; }
.mc-block .eyebrow { margin-bottom: 4px; }
.mc-text { font: 13px/1.5 var(--mono); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; word-break: break-word; }
.mc-list { display: grid; gap: 6px; }

.plane { color: var(--ink); position: relative; }
.plane svg { display: block; transition: transform 1.2s cubic-bezier(.22, 1, .36, 1); }
/* An aircraft that connects grows in, one that leaves fades away, a selected one sends out one ring. */
.plane.born { animation: plane-in 700ms cubic-bezier(.22, 1, .36, 1) both; }
@keyframes plane-in { from { opacity: 0; scale: .3; } to { opacity: 1; scale: 1; } }
.plane.gone { opacity: 0; scale: .5; transition: opacity 380ms ease, scale 380ms ease; }
.plane.selected::after { content: ""; position: absolute; left: 0; top: 0; width: 22px; height: 22px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--accent); pointer-events: none;
  animation: plane-ring 1s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes plane-ring { from { opacity: .9; scale: .5; } to { opacity: 0; scale: 2.4; } }
@media (prefers-reduced-motion: reduce) {
  .plane.born { animation: none; }
  .plane.selected::after { display: none; }
  .plane svg { transition: none; }
}
.plane.nohdg svg { opacity: .55; }
/* The callsign under the symbol; a halo in the page colour keeps it readable over the map. */
.plane .cs { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); font: 600 10.5px/1 var(--mono); color: var(--ink); white-space: nowrap; pointer-events: none;
  text-shadow: 0 0 3px var(--paper), 0 0 3px var(--paper), 0 0 4px var(--paper), 0 1px 2px var(--paper); }
.plane.selected .cs { color: var(--accent); }
.leaflet-container.no-cs .plane .cs { display: none; }
.plane.ground { opacity: .7; }
.plane.selected { color: var(--accent); filter: drop-shadow(0 0 5px color-mix(in srgb, var(--accent) 65%, transparent)); }
.atc-label { font: 600 11px var(--mono); color: #fff; background: var(--f-ctr); padding: 2px 6px; border-radius: 6px; white-space: nowrap; cursor: pointer; box-shadow: 0 4px 12px -4px rgba(0,0,0,.35); }
.atc-label.APP { background: var(--f-app); }
.apt-badge { display: inline-flex; align-items: center; gap: 2px; font: 600 11px var(--mono); background: var(--card-bg); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 6px; padding: 1px 3px 1px 5px; white-space: nowrap; cursor: pointer; box-shadow: 0 6px 20px -6px var(--shadow-strong); }
.apt-badge i { font-style: normal; color: #fff; border-radius: 4px; padding: 0 3px; }
.apt-badge .DEL { background: var(--f-del); }
.apt-badge .GND { background: var(--f-gnd); }
.apt-badge .TWR { background: var(--f-twr); }
.apt-badge .APP { background: var(--f-app); }
.apt-badge .ATIS { background: var(--f-atis); }
.atis-text { font: 12px/1.5 var(--mono); white-space: pre-wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin: 6px 0 0; }
.apt-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 2px solid var(--map-route); }

/* ---- map hover popover ---- */
/* Anchored to badges and sector labels; grows from the anchor with a short spring. */
.map-pop {
  position: absolute;
  z-index: 1000;
  pointer-events: auto;
  background: var(--card-bg);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: 0 12px 32px -8px var(--shadow-strong), 0 2px 6px -2px var(--shadow);
  min-width: 210px;
  max-width: 300px;
  overflow: hidden;
}
.map-pop[hidden] { display: none; }
@keyframes map-pop-in {
  from { opacity: 0; scale: .93; }
  to   { opacity: 1; scale: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .map-pop:not([hidden]) { animation: map-pop-in 160ms cubic-bezier(.22, 1, .36, 1) both; }
}
.pop-row { padding: 6px 10px; }
.pop-row + .pop-row { border-top: 1px solid var(--line); }
.pop-head { display: flex; align-items: center; gap: 5px; }
/* Facility chips inside the popover, same palette as the badge chips. */
.pop-head i { font-style: normal; font: 700 10px/16px var(--mono); color: #fff; border-radius: 3px; padding: 0 4px; flex-shrink: 0; }
.pop-head .DEL { background: var(--f-del); }
.pop-head .GND { background: var(--f-gnd); }
.pop-head .TWR { background: var(--f-twr); }
.pop-head .APP { background: var(--f-app); }
.pop-head .CTR, .pop-head .FSS { background: var(--f-ctr); }
.pop-head .ATIS { background: var(--f-atis); }
.pop-cs { font: 700 12px var(--mono); letter-spacing: .02em; color: var(--ink); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pop-freq { font: 600 11px var(--mono); color: var(--accent-ink); white-space: nowrap; flex-shrink: 0; }
.pop-who { font-size: 11px; color: var(--slate); margin-top: 2px; padding-left: 27px; line-height: 1.35; }
/* First line of the ATIS text, clipped to one line. */
.pop-atis { font: 10.5px/1.4 var(--mono); color: var(--slate); margin-top: 1px; padding-left: 27px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
/* Departure and arrival counts below the controller rows. */
.pop-foot { display: flex; gap: 16px; padding: 4px 10px 5px; font-size: 11px; color: var(--slate);
  border-top: 1px solid var(--line); background: var(--surface); }
.fir-label { background: none; border: 0; box-shadow: none; font: 700 11px var(--mono); color: var(--f-ctr); text-shadow: 0 0 3px var(--paper), 0 0 3px var(--paper); }
.fir-label::before { display: none; }
/* Airport codes as on radar screens: plain bold text, the bigger airports a little brighter. */
.apt-code { display: inline-block; transform: translate(-50%, 9px); font: 700 11px var(--body); letter-spacing: .02em; color: var(--slate);
  opacity: .8; white-space: nowrap; cursor: pointer; text-shadow: 0 0 3px var(--paper), 0 0 2px var(--paper); }
.apt-code.r0 { color: var(--ink); opacity: .75; font-size: 12px; }
.apt-code:hover { color: var(--accent); opacity: 1; }
/* Route points and airway names of the selected flight. */
.wp { position: relative; width: 10px; height: 10px; }
.wp svg { display: block; width: 10px; height: 10px; }
.wp svg path { fill: var(--map-route); }
.wp.passed svg path { fill: var(--map-flown); opacity: .7; }
.wp i { position: absolute; left: 13px; top: -3px; font: 600 10px var(--mono); font-style: normal; color: var(--ink); white-space: nowrap;
  text-shadow: 0 0 3px var(--paper), 0 0 3px var(--paper), 0 0 2px var(--paper); }
.wp.passed i { color: var(--slate); }
.aw-lbl { display: inline-block; font: 600 9px var(--mono); letter-spacing: .04em; color: var(--map-route); white-space: nowrap; opacity: .9;
  text-shadow: 0 0 3px var(--paper), 0 0 3px var(--paper), 0 0 2px var(--paper); }
.aw-lbl.passed { color: var(--map-flown); }
.apt-lbl { display: inline-block; transform: translate(-50%, -50%); font: 600 10px var(--mono); color: var(--apt-label); white-space: nowrap;
  text-shadow: 0 0 3px var(--paper), 0 0 3px var(--paper); }
.apt-lbl.rwy { font-size: 12px; font-weight: 700; color: var(--apt-rwy); }
.apt-lbl.twy { font-size: 11px; color: var(--ink); }
.apt-lbl.gate { color: var(--accent); }
:root .leaflet-container { font: 13px var(--body); background: var(--surface); }
:root .leaflet-tooltip { background: var(--card-bg); color: var(--ink); border-color: var(--line); border-radius: 8px; box-shadow: 0 8px 24px -8px var(--shadow-strong); font: 600 12px var(--mono); }
:root .leaflet-tooltip-top::before { border-top-color: var(--card-bg); }
:root .leaflet-bar { border: 1px solid var(--line) !important; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 28px -12px var(--shadow-strong); }
:root .leaflet-bar a, :root .leaflet-bar a:hover { background: var(--card-bg); color: var(--ink); border-bottom-color: var(--line); width: 34px; height: 34px; line-height: 34px; }
:root .leaflet-bar a:hover { background: var(--surface); }
:root .leaflet-popup-content-wrapper, :root .leaflet-popup-tip { background: var(--card-bg); color: var(--ink); box-shadow: 0 10px 28px -10px var(--shadow-strong); }
:root .leaflet-popup-content-wrapper { border-radius: 14px; }
:root .leaflet-container .leaflet-control-attribution { background: color-mix(in srgb, var(--paper) 80%, transparent); color: var(--slate); border-radius: 8px 0 0 0; }
:root .leaflet-container .leaflet-control-attribution a { color: var(--slate); }
.labels-pane { pointer-events: none; }

/* ---- staff area ---- */
.staff-bar { background: var(--staff-bar-bg); color: var(--staff-bar-text); font-size: 13px; }
.staff-bar .wrap { display: flex; align-items: center; gap: 12px; height: 38px; }
.staff-bar b { color: var(--staff-bar-strong); letter-spacing: .08em; text-transform: uppercase; font-size: 11.5px; }
.staff-bar a { color: var(--staff-bar-text); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 28px; }
.kpi { border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: var(--card-bg); }
.kpi b { display: block; width: fit-content; font: 800 28px/1.2 var(--display); letter-spacing: -0.02em; background: var(--grad-num); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kpi span { color: var(--slate); font-size: 13px; }
.inline-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.inline-form input, .inline-form select { width: auto; }
.inline-form .btn { min-height: 44px; }
.simbrief-box { display: grid; gap: 12px; max-width: 820px; margin-bottom: 24px; padding: 18px 20px; }
.simbrief-box input { min-width: 240px; }
.thread { display: grid; gap: 10px; margin-bottom: 20px; }
.msg { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; background: var(--card-bg); }
.msg.staff { background: var(--accent-soft); border-color: var(--accent-soft-line); }
.msg .meta { font-size: 12.5px; color: var(--slate); margin-bottom: 4px; }
.msg p { white-space: pre-line; margin: 0; }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 36px 0 44px; color: var(--slate); font-size: 13.5px; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-footer .wrap > span { display: inline-flex; align-items: center; gap: 12px; }
.site-footer .wrap > span::before { content: ""; flex: none; width: 26px; height: 26px; background: var(--mark-small) center / contain no-repeat; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { color: var(--slate); transition: color var(--t-hover) var(--ease); }
.site-footer a:hover { color: var(--ink); text-decoration: none; }

/* ---- home ----
   Bands alternate paper / sky surface by position; panels sit one step above their band.
   Everything here is scoped to .sec so the other pages keep their bordered cards and 56 px rhythm. */
.sec { padding: clamp(80px, 11vw, 136px) 0; }
main > .sec:nth-child(even) { background: var(--surface); }
.sec :is(.card, .board, .step, .empty) { background: var(--surface); }
main > .sec:nth-child(even) :is(.card, .board, .step, .empty) { background: var(--card-bg); }
.sec .card-media { background: var(--paper); }
main > .sec:nth-child(even) .card-media { background: var(--surface); }

/* hero: the mark in its glow, the title in the logo gradient, the live map below */
.sec.hero { padding: clamp(48px, 7vw, 84px) 0 clamp(72px, 9vw, 112px);
  background:
    radial-gradient(1100px 560px at 50% -160px, var(--glow), transparent 72%),
    radial-gradient(560px 340px at 88% 12%, var(--glow-2), transparent 70%),
    radial-gradient(560px 340px at 12% 22%, var(--glow-2), transparent 70%),
    var(--paper); }
.hero-text { text-align: center; max-width: 780px; margin: 0 auto; }
.hero-text::before { content: ""; display: block; width: clamp(78px, 8.5vw, 104px); aspect-ratio: 1; margin: 0 auto 26px;
  background: var(--mark-big) center / contain no-repeat; filter: var(--mark-glow); }
html.motion .hero-text::before { animation: mark-in 1100ms var(--ease) both; }
@keyframes mark-in { from { opacity: 0; transform: translateY(10px) scale(.9); } to { opacity: 1; transform: none; } }
.hero-text .eyebrow { display: inline-flex; align-items: center; margin-bottom: 20px; padding: 6px 14px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid var(--accent-soft-line); color: var(--accent-ink); }
.hero h1 { font: 800 clamp(40px, 6.6vw, 80px)/1.02 var(--display); letter-spacing: -0.04em; max-width: 15ch; margin: 0 auto 22px; padding-bottom: .1em; }
.hero p.lead { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; letter-spacing: -0.005em; color: var(--slate); max-width: 620px; margin: 0 auto 34px; }
.hero-actions { display: flex; justify-content: center; align-items: center; gap: 24px; flex-wrap: wrap; }

/* The screen: the live map in a rounded panel with a bright top edge and a deep, blue-tinted shadow.
   Stacking inside it: Leaflet panes <= 700, chip and link 800, Leaflet controls 1000, the edge 1001 (no pointer events). */
.hero-screen { position: relative; isolation: isolate; margin-top: 56px; border-radius: var(--r-panel); overflow: hidden; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), 0 2px 6px var(--shadow), 0 44px 90px -34px var(--shadow-strong); }
.hero-screen::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 1px 0 var(--edge-bright); pointer-events: none; z-index: 1001; }
.hero-screen .hero-map { height: clamp(360px, 52vw, 560px); border: 0; border-radius: 0; background: var(--surface); }
.screen-chip, .screen-link { position: absolute; top: 16px; z-index: 800; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px 10px 12px; min-height: 38px;
  border-radius: 999px; background: var(--panel-bg); box-shadow: inset 0 0 0 1px var(--line), 0 8px 24px -10px var(--shadow-strong); color: var(--ink); font: 500 13px/1 var(--body); white-space: nowrap; }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .screen-chip, .screen-link { background: var(--glass-bg); -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5); }
}
.screen-chip { left: 16px; pointer-events: none; }
.screen-chip b { font-weight: 600; font-variant-numeric: tabular-nums; }
.screen-chip .sep { color: var(--slate); }
.screen-chip .dot { position: relative; box-shadow: none; }
.screen-chip .dot:not(.off)::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--live); animation: halo 2.4s ease-out infinite; }
@keyframes halo { from { transform: scale(1); opacity: .6; } to { transform: scale(1.9); opacity: 0; } }
.screen-link { right: 16px; gap: 4px; font-weight: 600; color: var(--accent-ink); }
.screen-link:hover { color: var(--accent-ink); text-decoration: none; }
.screen-link:focus-visible { outline-offset: 3px; border-radius: 999px; }
.screen-link .chev { transition: transform var(--t-hover) var(--ease); }
.screen-link:hover .chev { transform: translateX(3px); }

/* numbers strip: the figures in the logo gradient */
.nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; text-align: center; }
.nums .num b { display: block; font: 800 clamp(34px, 4.6vw, 56px)/1.05 var(--display); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; min-width: 3ch;
  background: var(--grad-num); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nums .num span { display: block; margin-top: 8px; font: 500 13.5px/1.4 var(--body); color: var(--slate); }
.nums .num small { display: block; margin-top: 2px; font-size: 13px; color: var(--slate); }

/* section heads, board, strips, empty states */
.sec-head { text-align: center; max-width: 660px; margin: 0 auto 48px; }
.sec-head h2 { font: 700 clamp(32px, 4.4vw, 52px)/1.06 var(--display); letter-spacing: -0.03em; max-width: 20ch; margin: 0 auto 14px; text-wrap: balance; }
.sec-head p { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.45; letter-spacing: -0.005em; color: var(--slate); max-width: 560px; margin: 0 auto; }
.sec-more { text-align: center; margin: 40px 0 0; }

.board { border-radius: var(--r-card); padding: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.sec .strips.two { gap: 8px; }
.sec .strip { border: 0; border-radius: 12px; padding: 13px 16px 13px 20px; background: var(--card-bg); box-shadow: inset 4px 0 0 var(--edge), 0 1px 2px var(--shadow); }
main > .sec:nth-child(even) .strip { background: var(--surface); }
.sec .empty { border: 0; padding: 48px 24px; border-radius: var(--r-card); box-shadow: inset 0 0 0 1px var(--line); color: var(--slate); font-size: 15px; text-align: center; }
.board .empty { box-shadow: none; padding: 32px 24px; }
.empty-icon { display: block; width: 40px; height: 40px; margin: 0 auto 12px; color: var(--accent); opacity: .75; }
.sec .empty p { margin: 0; }
.sec .empty .dot { display: inline-block; vertical-align: middle; margin-right: 8px; }

/* cards: the hairline is an inset layer, the hover shadow a separate layer that fades in (transform and opacity only) */
.sec .grid.three { grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.sec .card { position: relative; isolation: isolate; border: 0; border-radius: var(--r-card); padding: 0; transition: transform var(--t-hover) var(--ease); }
.sec .card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; z-index: 1; }
.sec .card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 1px 2px var(--shadow), 0 20px 44px -16px var(--shadow-strong); opacity: 0; transition: opacity var(--t-hover) var(--ease); pointer-events: none; z-index: -1; }
.sec a.card:hover { transform: translateY(-4px); text-decoration: none; color: inherit; box-shadow: none; }
.sec a.card:hover::after { opacity: 1; }
.sec a.card:active { transform: scale(.99); }
.sec a.card:focus-visible { outline-offset: 3px; border-radius: var(--r-card); }
.card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-card) var(--r-card) 0 0; }
.card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-media .arc { display: block; width: 100%; height: 100%; color: var(--accent-2); opacity: .7; }
.sec .card .card-media.blank { background: linear-gradient(160deg, var(--accent-soft), transparent 70%); box-shadow: inset 0 -1px 0 var(--line); }
.card-body { display: block; padding: 24px; }
.sec .card h3 { font-size: 19px; line-height: 1.25; letter-spacing: -0.015em; margin: 0 0 8px; }
.sec .card p { font-size: 15px; line-height: 1.5; color: var(--slate); margin: 0; }
.sec .card .airports { display: block; margin-top: 12px; font-size: 13px; color: var(--slate); }
.sec .card .date-chip { margin-bottom: 12px; }
.card-date { display: block; font-size: 13px; color: var(--accent); font-weight: 500; margin-bottom: 8px; }

/* steps */
.sec .steps { gap: 20px; }
.sec .step { border: 0; border-radius: var(--r-card); padding: 30px 26px; box-shadow: inset 0 0 0 1px var(--line); }
.sec .step::before { width: 36px; height: 36px; font-size: 15px; margin-bottom: 18px; }
.sec .step h3 { font-size: 19px; letter-spacing: -0.015em; margin-bottom: 8px; }
.sec .step p { font-size: 15px; line-height: 1.5; color: var(--slate); margin: 0; }

/* closing band: deep navy with the glowing mark, like the logo on its dark background */
main > #cta { position: relative; overflow: hidden; color: #e8f1fd;
  background:
    radial-gradient(900px 420px at 50% 118%, rgba(58,143,240,.55), transparent 70%),
    radial-gradient(700px 300px at 50% -40%, rgba(140,200,250,.16), transparent 70%),
    var(--grad-deep); }
.cta { text-align: center; max-width: 660px; }
.cta::before { content: ""; display: block; width: 84px; aspect-ratio: 1; margin: 0 auto 26px; background: url("/img/brand/mark-256.png") center / contain no-repeat;
  filter: drop-shadow(0 0 28px rgba(120,190,255,.45)); }
.cta h2 { font: 700 clamp(32px, 4.4vw, 52px)/1.06 var(--display); letter-spacing: -0.03em; margin: 0 0 14px; text-wrap: balance; color: #ffffff; }
.cta p { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.45; color: rgba(222,236,252,.78); margin: 0 auto; max-width: 560px; }
.cta .cta-actions { margin-top: 34px; }
.cta .btn-primary { background: #ffffff; color: #0b3f8f; box-shadow: 0 14px 34px -12px rgba(0,0,0,.55); }
.cta .btn-primary:hover { background: #eaf3fe; color: #0b3f8f; }
.cta a:not(.btn) { color: #a9d4fa; }

/* Reveals: hidden only under html.motion (set in the page head when motion is allowed); home.js adds .in once and then drops the attribute.
   Last in the home block on purpose: it must outrank the card hover transition while the reveal runs. */
html.motion [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
html.motion [data-reveal].in { opacity: 1; transform: none; }
@media print { [data-reveal] { opacity: 1 !important; transform: none !important; } }

/* ---- responsive ---- */
@media (max-width: 960px) {
  .with-side, .grid.three, .grid.two, .strips.two, .steps { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
  .nums { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .hero-screen .hero-map { height: clamp(320px, 75vw, 420px); }
  .sec .grid.three, .sec .steps, .sec .strips.two { grid-template-columns: 1fr; }
  .stats, .kpis { grid-template-columns: repeat(2, 1fr); }
  .rating-cards { grid-template-columns: 1fr; }
  .news-item.with-thumb { grid-template-columns: 1fr; }
  .news-item.with-thumb > :not(.news-thumb) { grid-column: 1; }
  .news-thumb { grid-row: auto; margin-bottom: 10px; }
  .news-thumb { width: 100%; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 1060px) {
  .site-header .nav-toggle { display: inline-flex; margin-left: auto; }
  .site-header .wrap { flex-wrap: wrap; height: auto; min-height: 64px; padding-top: 12px; padding-bottom: 12px; }
  .nav, .user-nav { display: none; width: 100%; flex: 0 0 100%; flex-direction: column; align-items: stretch; }
  .nav a, .user-nav a { padding: 12px 14px; font-size: 16px; border-radius: 12px; }
  .user-nav { gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
  .user-nav .btn-pill { min-height: 46px; font-size: 15px; }
  .user-nav .me .name { display: inline; }
  .site-header.open .nav, .site-header.open .user-nav { display: flex; }
  .prefs { margin: 0 0 6px; }
}
@media (max-width: 760px) {
  .map-panel { left: 12px; right: 12px; top: 12px; width: auto; gap: 8px; padding: 12px 14px; }
  .map-card { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 55%; border-radius: 20px 20px 0 0; }
  .strip { grid-template-columns: 104px 1fr; }
  .strip .freq { grid-column: 2; }
  .screen-link { top: auto; right: auto; bottom: 16px; left: 16px; min-height: 44px; padding: 0 16px 0 14px; }
  .auth-box { padding: 32px 22px 24px; border-radius: 20px; }
  .page { padding-top: 40px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .hero-actions { gap: 16px; }
  .screen-chip { white-space: normal; max-width: calc(100% - 32px); line-height: 1.3; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .screen-chip, .screen-link, .map-panel, .map-card { background: var(--panel-bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --line: #9fb0c6; --line-strong: #6f829c; --slate: #3f4f66; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
/* Gradient text falls back to plain colour where backgrounds are not painted. */
@media (forced-colors: active) {
  h1, .brand .brand-net, .nums .num b, .stat b, .kpi b, .big-cid { background: none; color: CanvasText; }
}
@media print {
  h1, .brand .brand-net, .nums .num b, .stat b, .kpi b, .big-cid { background: none; color: #000; }
  main::before { display: none; }
}

/* ---- status page (/staff/status): a summary, grouped lists like the system settings, a day of history per check ---- */
.status-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.status-top p { max-width: 640px; margin: 0; }
.status-top form { flex: none; margin-top: 6px; }

.status-summary { --tone: var(--live); display: flex; align-items: center; gap: 20px; padding: 26px 28px; margin-bottom: 36px;
  border-radius: var(--r-card); border: 1px solid var(--ok-soft-line); background: linear-gradient(135deg, var(--ok-soft) 0%, var(--card-bg) 72%); }
.status-summary.warn { --tone: var(--warn); border-color: var(--warn-soft-line); background: linear-gradient(135deg, var(--warn-soft) 0%, var(--card-bg) 72%); }
.status-summary.danger { --tone: var(--danger); border-color: var(--danger-soft-line); background: linear-gradient(135deg, var(--danger-soft) 0%, var(--card-bg) 72%); }
.status-summary h2 { font-size: 26px; margin: 0 0 4px; }
.status-summary p { margin: 0; }
.status-orb { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--tone);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--tone) 18%, transparent), 0 0 24px color-mix(in srgb, var(--tone) 55%, transparent); }
.status-summary.danger .status-orb { animation: status-pulse 2.4s var(--ease) infinite; }
@keyframes status-pulse { 50% { box-shadow: 0 0 0 11px color-mix(in srgb, var(--tone) 8%, transparent), 0 0 32px color-mix(in srgb, var(--tone) 60%, transparent); } }

.status-group { margin-bottom: 36px; }
.status-group > h2 { font-size: 20px; margin-bottom: 12px; }
.status-group-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.status-group-head h2 { font-size: 20px; margin: 0; }
.status-list { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--card-bg); overflow: hidden; }
.status-row { --tone: var(--live); padding: 16px 20px; }
.status-row.warn { --tone: var(--warn); }
.status-row.danger { --tone: var(--danger); }
.status-row.unknown { --tone: var(--dot-off); }
.status-row + .status-row, .problem-row + .problem-row { border-top: 1px solid var(--line); }
.status-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.status-head h3 { margin: 0; font: 600 15.5px/1.35 var(--body); color: var(--ink); letter-spacing: 0; }
.status-value { color: var(--slate); font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tone) 16%, transparent); }
.status-timeline { display: grid; grid-template-columns: repeat(48, 1fr); gap: 2px; height: 16px; margin: 12px 0 0 22px; }
.status-timeline i { border-radius: 3px; background: var(--live); opacity: .8; }
.status-timeline i.warn { background: var(--warn); opacity: 1; }
.status-timeline i.danger { background: var(--danger); opacity: 1; }
.status-timeline i.unknown { background: var(--dot-off); opacity: .45; }
.status-timeline i.none { background: var(--line); opacity: 1; }
.status-legend { display: flex; justify-content: space-between; margin: 8px 20px 0 42px; }
.status-problem { margin: 14px 0 0 22px; padding: 14px 16px; border-radius: 12px;
  background: color-mix(in srgb, var(--tone) 8%, var(--card-bg)); border: 1px solid color-mix(in srgb, var(--tone) 26%, transparent); }
.status-problem p { margin: 0 0 6px; color: var(--ink); line-height: 1.5; }
.status-problem .status-fix { color: var(--slate); margin-bottom: 0; }
.status-command { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.status-command code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; padding: 8px 12px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line); font: 13px/1.5 var(--mono); color: var(--ink); }
.status-command .btn { flex: none; }
.status-empty { padding: 22px; border: 1px dashed var(--line-strong); border-radius: var(--r-card); text-align: center; margin: 0; }
.problem-row { padding: 14px 20px; }
.problem-row[hidden] { display: none; }
.problem-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.problem-count { font: 600 12.5px var(--mono); color: var(--slate); }
.problem-time { margin-left: auto; }
.problem-message { margin: 8px 0 0; font: 13.5px/1.5 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.problem-row details { margin-top: 8px; }
.problem-row summary { cursor: pointer; color: var(--accent-ink); font-size: 13px; }
.problem-row pre { margin: 8px 0 0; padding: 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line);
  font: 12px/1.5 var(--mono); overflow-x: auto; white-space: pre-wrap; }
.side .count.warn { background: var(--warn); }
.side .count.danger { background: var(--danger); }
@media (max-width: 720px) {
  .status-top { flex-direction: column; }
  .status-summary { padding: 22px; }
  .status-head { grid-template-columns: auto 1fr; }
  .status-value { grid-column: 2; text-align: left; }
  .status-timeline, .status-problem { margin-left: 0; }
  .status-legend { margin-left: 20px; }
  .problem-time { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .status-summary.danger .status-orb { animation: none; } }

/* ---- site regulations (/docs/terms): a legal text set for reading, with its contents and a download ---- */
.terms { max-width: 780px; }
.terms-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.terms-head h1 { font-size: 32px; line-height: 1.15; margin-bottom: 8px; }
.terms-head p { margin: 0; }
.terms-head .btn { flex: none; margin-top: 30px; }
.terms-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0 0 24px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--line); }
.terms-meta div { padding: 12px 16px; background: var(--card-bg); }
.terms-meta dt { font: 600 11.5px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--slate); margin-bottom: 4px; }
.terms-meta dd { margin: 0; font-size: 14px; color: var(--ink); }
.terms p, .terms li { line-height: 1.7; color: var(--ink); }
.terms-toc { display: grid; gap: 2px; margin: 24px 0 8px; padding: 14px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.terms-toc a { padding: 6px 10px; border-radius: 8px; color: var(--ink); font-size: 14.5px; }
.terms-toc a:hover { background: var(--card-bg); color: var(--accent-ink); text-decoration: none; }
.terms section { scroll-margin-top: 96px; }
.terms h2 { font-size: 21px; margin: 40px 0 12px; }
.terms-letters { list-style: none; padding-left: 20px; }
.terms-letters li { margin-bottom: 6px; }
.terms-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.terms-foot > div { display: grid; gap: 4px; font-size: 14px; color: var(--slate); }
.terms-foot b { color: var(--ink); text-transform: uppercase; font-size: 12.5px; letter-spacing: .06em; }
.terms-stamp { padding: 16px; border: 1px solid var(--line-strong); border-radius: 14px; text-align: center; }
@media (max-width: 720px) {
  .terms-head { flex-direction: column; }
  .terms-head .btn { margin-top: 0; }
  .terms-meta, .terms-foot { grid-template-columns: 1fr; }
}

/* ---- friends on the map: amber, like the star that marks them ---- */
.map-page { --friend: #e59f12; }
.plane.friend, .plane.friend .cs { color: var(--friend); }
.plane.friend .cs::before { content: "★"; margin-right: 2px; }
.plane.friend.selected { color: var(--accent); }
.atc-label.friend, .apt-badge.friend { box-shadow: 0 0 0 2px var(--friend), 0 4px 12px -4px rgba(0,0,0,.35); }
.mc-head .star { display: grid; place-items: center; flex: none; width: 28px; height: 28px; margin-left: auto; padding: 0; border: 0; border-radius: 50%; background: var(--surface); color: var(--slate); cursor: pointer;
  transition: color var(--t-hover) var(--ease), background-color var(--t-hover) var(--ease), transform var(--t-press) var(--ease); }
.mc-head .star + .close { margin-left: 6px; }
.mc-head .star svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.mc-head .star:hover { color: var(--friend); background: var(--surface-2); }
.mc-head .star:active { transform: scale(.9); }
.mc-head .star.on { color: var(--friend); }
.mc-head .star.on svg { fill: currentColor; }
/* Added a moment ago: the star pops once. */
.mc-head .star.pop svg { animation: star-pop 520ms cubic-bezier(.34, 1.56, .64, 1); }
@keyframes star-pop { 0% { transform: scale(.6) rotate(-20deg); } 60% { transform: scale(1.25) rotate(6deg); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .mc-head .star.pop svg { animation: none; } }
/* Friends on the air, in the map panel. */
.mp-friends { display: grid; gap: 2px; max-height: 180px; overflow-y: auto; padding-top: 10px; border-top: 1px solid var(--line); scrollbar-width: thin; }
.mp-friends[hidden] { display: none; }
.mp-friends-head { margin: 0 0 4px 8px; font: 600 11px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--friend); }
.mp-friends button { display: flex; align-items: baseline; gap: 8px; width: 100%; padding: 6px 8px; border: 0; border-radius: 10px; background: none; color: var(--ink); text-align: left; cursor: pointer;
  transition: background-color var(--t-hover) var(--ease); }
.mp-friends button:hover { background: var(--surface-2); }
.mp-friends .cs { font: 600 13px var(--mono); }
.mp-friends .who { min-width: 0; overflow: hidden; font-size: 12.5px; color: var(--slate); text-overflow: ellipsis; white-space: nowrap; }
/* The friends page in the account. */
.friend-list { display: grid; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.friend-list li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--card-bg); }
.friend-list .who { flex: 1; min-width: 0; }
.friend-list .who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend-list .status { font-size: 13px; color: var(--slate); }
.friend-list .status.on { color: var(--live); font-weight: 600; }
