/* Sun & Moon: the dark theme. Everything here overrides site.css.

   The page links this file with media="(prefers-color-scheme: dark)" and
   data-theme-dark, so it follows the OS. When the visitor picks Light or Dark
   in Settings, the boot script (Presentation/boot.js) and the settings island
   set the media of every link[data-theme-dark] to "not all" or "all". Every
   page must look right in both themes: give each new color in site.css its
   dark counterpart here, and a page's own stylesheet a -dark companion linked
   the same way (facts-dark.css), never a prefers-color-scheme block (a test
   checks the light stylesheets have none). */

/* ---- Palette ------------------------------------------------------------ */
:root {
  color-scheme: dark;
  --bg: #0f1218;
  --surface: #181c25;
  --text: #e9eaee;
  --muted: #9aa1ad;
  --line: #2a303c;
  --accent-sun: #f4a340;
  --accent-sun-soft: #2a2116;
  --accent-moon: #9fb0e6;
  --accent-moon-soft: #1c2234;
  --accent-twilight: #d39cc6;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4);
}

/* ---- Twilight picture --------------------------------------------------- */
.twilight-frame { stroke: rgb(255 255 255 / 0.12); }

/* ---- Daylight map ------------------------------------------------------- */
.map-frame { background: #243553; }
.map-land { fill: #56617a; stroke: #6d7891; }
.map-borders { stroke: #59637a; }
.map-graticule { stroke: rgb(255 255 255 / 0.12); }

/* ---- Eclipse kinds ------------------------------------------------------ */
.kind-total { background: #f6efe2; color: #1d1f24; }
.kind-annular, .kind-hybrid { background: #3a2a14; color: #f4c27a; }
.eclipse-lunar .kind-partial, #lunar .kind-partial, .kind-moon.kind-partial { background: #3b1f1a; color: #f0a191; }

/* ---- Eclipse maps ------------------------------------------------------- */
.eclipse-frame { background-color: #1d2a44; background-image: url("/dist/map/land-dark.svg"); }
.band { fill: #f4a340; fill-opacity: 0.17; }
.central-path { fill: #120900; fill-opacity: 0.75; stroke: #f4c27a; stroke-opacity: 0.5; }
.moon-down { fill: #000; fill-opacity: 0.32; }
.contact-line { stroke: #9fb0e6; }
.contact-u1, .contact-u2, .contact-u3, .contact-u4 { stroke: #f0a191; }
.contact-label text { fill: #e9eaee; stroke: rgb(0 0 0 / 0.6); }

/* ---- Eclipse dashboard -------------------------------------------------- */
.safety-inline { color: #f4c27a; }
.sky-ground { fill: #1a2416; }

/* ---- Lunar shadow diagram ----------------------------------------------- */
.penumbra { fill: rgb(159 176 230 / 0.12); stroke: rgb(159 176 230 / 0.4); }
.moon-disk circle { fill: #e6e2d3; fill-opacity: 0.6; stroke: #9fb0e6; }

/* ---- Eclipse safety note ------------------------------------------------ */
.safety { background: #2a2116; border-color: #5c4420; color: #f4c27a; }
