/* base.css — design tokens, full-screen map, dark map tint.
   From concept/live-air-traffic.html (lines 121–145). Linked from index.html in a fixed
   order that keeps the cascade identical to the concept. */
/* ---------- Design tokens ---------- */
:root {
  --night:   #0C1626;               /* page / map background */
  --panel:   rgba(12, 22, 38, 0.88);/* overlay panels */
  --edge:    rgba(150, 175, 210, 0.22);
  --text:    #E7EDF6;
  --muted:   #9AA8BE;
  --accent:  #7CC7FF;               /* selection, focus, buttons */
  --warn:    #F2C14E;
  --bad:     #FF8A94;
  --good:    #7FE0B5;
  --font: "B612", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

html, body { height: 100%; margin: 0; }
body { background: var(--night); color: var(--text); font: 14px/1.45 var(--font); }

/* Full-screen map */
#map { position: fixed; inset: 0; background: var(--night); }

/* Dark map: re-tint the street-map tiles with a CSS filter (toggleable). */
.map-dark .leaflet-tile-pane {
  filter: invert(1) hue-rotate(195deg) brightness(0.82) contrast(0.92) saturate(0.55);
}

/* Map color "Time of day" (map/preferences.js): tints for the light at the map's center.
   Daylight has no filter; night uses the dark map above. */
#map .leaflet-tile-pane { transition: filter 1.5s ease; }
.map-tone-golden .leaflet-tile-pane { filter: sepia(0.3) saturate(1.15) brightness(0.97) hue-rotate(-5deg); }
.map-tone-dawn .leaflet-tile-pane { filter: brightness(0.7) sepia(0.5) hue-rotate(-38deg) saturate(1.5) contrast(1.02); }
.map-tone-dusk .leaflet-tile-pane { filter: brightness(0.58) sepia(0.65) hue-rotate(-18deg) saturate(1.7) contrast(1.05); }
.map-tone-blue .leaflet-tile-pane { filter: invert(1) hue-rotate(205deg) brightness(1) contrast(0.86) saturate(0.95); }
/* The site name (Admin → Site), set by js/core/site.js and the script in each page’s <head>. */
.site-name::after { content: var(--site-name, ""); }
