/* THIS FILE IS TOKENS ONLY. Structure lives in the engine sheet the shell
   links first.

   _engine.css is the shared structural stylesheet, one copy on disk, hard
   linked from the engine theme: layout, components, base element rules.
   The shell (Site.master.vb) emits it as its own versioned link BEFORE
   this file's link, so this file's job is only to re-declare the accent
   tokens after the engine's own, landing this atlas's own hue on top of
   shared structure. Same mechanism Science's and Political's own site.css
   already document (owner request 985).

   Tokens below: the neutrals, ink/muted/faint text colours, the two
   semantic colours, the serif and sans stacks, the shadow and the reading
   measure are copied verbatim from sites\DivinityAtlas\App_Themes\
   Divinity\site.css, dark :root and prefers-color-scheme: light
   blocks, so this atlas reads as a sibling of every other atlas.

   IDENTITY, w-milfound-2303, 2026-08-24. War and Military Atlas, ruling
   657 (the twenty-second atlas), owner request 1187: the MARK is CHOSEN
   (military-crossedswords.svg), but the accent and tagline stand INTERIM
   ("Proposed accents and taglines stand as interim until he says
   otherwise"), so this founding ships the proposed pair from docs\
   identity_palette_20260823.md (War and Military Atlas section). SWAP
   THESE ACCENT VALUES, in every block below, once the owner confirms or
   changes the hue; nothing else in this file needs to change.

   Dark theme accent #D36966 (5.50:1 ground, 5.00:1 panel, 4.57:1 panel2),
   dark theme soft/hover #E5A7A5. Light theme accent #BA3936 (4.91:1
   ground, 4.57:1 panel, 5.13:1 panel2), light theme soft/hover #C94946.
   Ratios independently spot-checked against docs\identity_palette_
   20260823.md's own stated method (HSL binary search against the
   family's --ground/--panel/--panel2 in each theme, search target
   4.55:1) before shipping: the dark accent's own contrast against
   --ground computed by hand to 5.51:1, matching the document's stated
   5.50:1 to two decimal places, the same spot-check discipline the
   founding process's own standing "verify arithmetically, never trust
   the page" instruction asks for.

   --gold-bg-ink (ruling 643): the engine's ~60 --gold-bg fill rules
   (buttons, active tabs and similar) read ink as
   var(--gold-bg-ink, #1a1508). Per docs\identity_palette_20260823.md's own
   worked ratios for this hue: dark ink (#1a1508) on the DARK theme accent
   clears at 5.18:1 (kept); dark ink on the LIGHT theme accent reads only
   3.23:1 (fails), so the light theme block below uses white (#fff)
   instead, which clears 5.64:1, the same shape Business, Science,
   Political and Society already use for their own light theme fills. */

:root{
  --ground:#0b0d1a; --panel:#141731; --panel2:#1b1f3d; --edge:#2b2f55; --edge2:#3a3f6b;
  --ink:#eae7f3; --muted:#a7a5c4; --faint:#8785a7;
  --shared:#79bcb0; --shared-bg:rgba(111,178,168,.14); --dark-c:#d27a92; --dark-bg:rgba(181,84,106,.16);
  --gold:#D36966; --gold-soft:#E5A7A5; --gold-bg:#D36966; --gold-bg-ink:#1a1508;
  --serif:"Iowan Old Style","Palatino Linotype",Palatino,"Book Antiqua",Georgia,serif;
  --sans:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --shadow:0 12px 34px -14px rgba(0,0,0,.6);
  --measure:40.5rem;
}
@media (prefers-color-scheme: light){:root{
  --ground:#f4efe3; --panel:#eee7d6; --panel2:#f8f4ea; --edge:#ddd2ba; --edge2:#cabfa3;
  --ink:#282540; --muted:#655f74; --faint:#6d6759;
  --shared:#2f685e; --shared-bg:rgba(60,133,120,.12); --dark-c:#9c3f57; --dark-bg:rgba(162,65,90,.10);
  --gold:#BA3936; --gold-soft:#C94946; --gold-bg:#BA3936; --gold-bg-ink:#fff;
  --shadow:0 14px 30px -18px rgba(60,48,20,.45);
}}

/* Explicit theme-toggle blocks, same shape and same reason as Science's and
   Political's own (owner request 989): these carry an attribute selector so
   they outrank the engine sheet's own bare :root when a visitor picks a
   theme by hand rather than leaving it on System. */
:root[data-theme="dark"]{
  --ground:#0b0d1a; --panel:#141731; --panel2:#1b1f3d; --edge:#2b2f55; --edge2:#3a3f6b;
  --ink:#eae7f3; --muted:#a7a5c4; --faint:#8785a7;
  --shared:#79bcb0; --shared-bg:rgba(111,178,168,.14); --dark-c:#d27a92; --dark-bg:rgba(181,84,106,.16);
  --gold:#D36966; --gold-soft:#E5A7A5; --gold-bg:#D36966; --gold-bg-ink:#1a1508;
  --shadow:0 12px 34px -14px rgba(0,0,0,.6);
}
:root[data-theme="light"]{
  --ground:#f4efe3; --panel:#eee7d6; --panel2:#f8f4ea; --edge:#ddd2ba; --edge2:#cabfa3;
  --ink:#282540; --muted:#655f74; --faint:#6d6759;
  --shared:#2f685e; --shared-bg:rgba(60,133,120,.12); --dark-c:#9c3f57; --dark-bg:rgba(162,65,90,.10);
  --gold:#BA3936; --gold-soft:#C94946; --gold-bg:#BA3936; --gold-bg-ink:#fff;
  --shadow:0 14px 30px -18px rgba(60,48,20,.45);
}
