/* Stratos design tokens: the one palette and scale every page uses.
   The Flight Deck pages read them through stratos-ui.css; the EFB links this
   file directly and aliases its --efb-* names to these. Themes are switched
   with data-theme on <html> (stored as dl.theme): night (default), day and
   contrast. */

:root {
  --bg:#111316;
  --land:#16191d;
  --coast:#3a4048;
  --grid:rgba(200,210,225,.08);
  --ap:#e8b34d;
  --nav:#4fd1c5;
  --route:#e451f0;
  --own:#ffc53d;
  --txt:#e8eaed;
  --ui:#181b1f;
  --ui2:#22262b;
  --mut:#98a1ab;
  --trf:#8ab4f8;
  --acc:#2f9bff;
  --red:#ff5a52;
  --grn:#3ccf7a;
  --warn:#ffb020;
  --mag:#e451f0;
  --line:rgba(255,255,255,.08);
  --focus:#2f9bff;
  color-scheme:dark;
  font-family:"Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "SF Pro Text", Roboto, system-ui, sans-serif;
  font-synthesis:none;
}
:root[data-theme="day"] {
  --bg:#e7ecf2; --land:#f2f5f8; --coast:#a9b8c7; --grid:rgba(54,78,76,.14);
  --ap:#9a5f20; --nav:#276f66; --route:#a76820; --own:#ac5550;
  --txt:#16222e; --ui:#f7f9fb; --ui2:#e8eef5; --mut:#5d6f82;
  --trf:#2c5d84; --acc:#1f6fb8; --red:#a33d3a; --grn:#2f7d55;
  --warn:#915711; --mag:#715884; --line:rgba(46,70,100,.18); --focus:#9a5f20;
  color-scheme:light;
}
:root[data-theme="night"] {
  --bg:#111316; --land:#16191d; --coast:#3a4048; --grid:rgba(200,210,225,.08);
  --ap:#e8b34d; --nav:#4fd1c5; --route:#e451f0; --own:#ffc53d;
  --txt:#e8eaed; --ui:#181b1f; --ui2:#22262b; --mut:#98a1ab;
  --trf:#8ab4f8; --acc:#2f9bff; --red:#ff5a52; --grn:#3ccf7a;
  --warn:#ffb020; --mag:#e451f0; --line:rgba(255,255,255,.08); --focus:#2f9bff;
  color-scheme:dark;
}
:root[data-theme="contrast"] {
  --bg:#000; --land:#080808; --coast:#fff; --grid:rgba(255,255,255,.36);
  --ap:#ff0; --nav:#0ff; --route:#ff0; --own:#fff;
  --txt:#fff; --ui:#000; --ui2:#171717; --mut:#e6e6e6;
  --trf:#7f7; --acc:#ff0; --red:#ff7777; --grn:#7f7;
  --warn:#ff0; --mag:#f7f; --line:rgba(255,255,255,.55); --focus:#ff0;
  color-scheme:dark;
}

:root {
  /* Spacing: 4px base, 8 steps. Use these instead of ad-hoc pixel gaps. */
  --s-space-1:4px;  --s-space-2:8px;  --s-space-3:12px; --s-space-4:16px;
  --s-space-5:20px; --s-space-6:24px; --s-space-7:32px; --s-space-8:48px;
  /* Radii: one small, one default, one large, one pill. */
  --s-radius-xs:2px; --s-radius-sm:3px; --s-radius-md:4px; --s-radius-lg:6px; --s-radius-pill:999px;
  /* Elevation: two levels only, kept subtle so panels stay flat over the map. */
  --s-elev-1:0 1px 2px rgba(0,0,0,.3);
  --s-elev-2:0 4px 14px rgba(0,0,0,.35);
  /* Type scale, 1.18 ratio. */
  --s-fs-2xs:10px; --s-fs-xs:11px; --s-fs-sm:12px; --s-fs-md:14px;
  --s-fs-lg:16px; --s-fs-xl:20px; --s-fs-2xl:28px; --s-fs-3xl:36px;
  --s-lh-tight:1.15; --s-lh-body:1.5;
  /* Motion: two durations, one ease. Nothing longer than 160ms. */
  --s-dur-1:90ms; --s-dur-2:160ms; --s-ease:cubic-bezier(.2,.7,.3,1);
  --s-hairline:1px solid var(--line);
}

:root {
  /* One type family for every surface, the same list the other pages use;
     the condensed DIN face is kept only for map labels and big airport codes. */
  --s-font:"Segoe UI Variable Text","Segoe UI",-apple-system,BlinkMacSystemFont,"SF Pro Text",Roboto,system-ui,sans-serif;
  --s-font-mono:ui-monospace,"SF Mono","Cascadia Mono",Consolas,monospace;
}
