/* 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.

   REAL ACCENT, cerulean, owner request 1160, ruling 653. The chosen mark
   is society-ring.svg (logo.svg here); this file carries the chosen hue,
   not a placeholder (founding_process_20260823.md Phase B: Society
   already has a chosen identity, applied directly, real not interim).

   CONTRAST INDEPENDENTLY VERIFIED THIS SESSION, NO DEVIATION NEEDED.
   Unlike Education, whose owner-given hex failed the family's 4.5:1 floor
   and needed a corrected pair, the owner's own hex here, #419BC8 (hue
   about 200 degrees, between Arts's cyan-teal near 188 and Science's blue
   near 212), clears 4.5:1 against every one of --ground/--panel/--panel2
   in BOTH themes with real margin, verified by hand this session using
   the sRGB relative-luminance contrast formula rather than trusted on the
   identity preview page's own say-so (the founding process's own standing
   instruction, after Education's own preview page was found carrying a
   stale swatch):
     dark theme  --gold:#419BC8  (contrast 6.22:1 ground, 5.64:1 panel, 5.15:1 panel2)
     light theme --gold:#184962  (contrast 8.44:1 ground, 7.86:1 panel, 8.82:1 panel2)
   --gold-soft is the lighter/brighter hover variant at the same hue
   (#7DC4E8 dark, #216282 light), also independently verified to clear
   4.5:1 with wide margin against all three neutrals in both themes.

   --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). Dark ink (#1a1508) on the dark theme's
   --gold-bg (#419BC8) clears 4.5:1 at 5.85:1, the same shape Divinity,
   Science, Political and Education already use. In the light theme, dark
   ink on the light --gold-bg (#184962) FAILS badly (about 1.9:1); white
   text clears with wide margin (about 9.7:1), the same shape Science,
   Political, Psychology and Education 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:#419BC8; --gold-soft:#7DC4E8; --gold-bg:#419BC8; --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:#184962; --gold-soft:#216282; --gold-bg:#184962; --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:#419BC8; --gold-soft:#7DC4E8; --gold-bg:#419BC8; --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:#184962; --gold-soft:#216282; --gold-bg:#184962; --gold-bg-ink:#fff;
  --shadow:0 14px 30px -18px rgba(60,48,20,.45);
}
