/* 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 the other three.

   INTERIM ACCENT, owner request 1167, 2026-08-23 (amends request 1151 for
   this founding only): the three new atlases do not wait on the settled
   Psychology mark. --gold, --gold-soft and --gold-bg below are JADE
   (#2E9E62 dark theme, #12492C light theme), the proposed hue at 148
   degrees on the family wheel (between Nature's forest green near 135 and
   Mathematics's verdigris near 161), staged and WCAG-checked at
   sites\DivinityAtlas\images\family-identity\preview-psychology.html
   before this file was written. This is INTERIM, not the owner's chosen
   accent: the mark concept (a top down brain) is settled but no specific
   candidate mark has been approved (owner requests 1160, 1161, 1162,
   1166), so request 1167 authorizes shipping the best current candidate
   and this proposed accent now, swapped for whichever the owner actually
   picks, later, in this one file, with no other change needed anywhere
   else in the codebase. Values read directly from the preview page's own
   WCAG-computed swatches, never recomputed here: dark #2E9E62 measures
   5.69 on --ground, 5.17 on --panel, 4.72 on --panel2 (all clear 4.5:1);
   soft #49DF8F measures 11.26 / 10.22 / 9.34. Light #12492C measures 9.08
   / 8.45 / 9.49; soft #19623B measures 6.42 / 5.97 / 6.70.

   --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) rather than a hardcoded literal, because a
   saturated accent can drop that default ink under the 4.5:1 AA floor. In
   the dark theme, dark ink (#1a1508) on #2E9E62 clears at 5.35 to 1, the
   same shape Divinity, Science and Political already use, so the dark
   blocks below omit the token and take the engine default. In the light
   theme, dark ink on #12492C FAILS at 1.75 to 1, but white text clears
   with wide margin at 10.42 to 1, the same shape Science and Political
   already use for their own light theme fills; the light blocks below set
   --gold-bg-ink:#fff explicitly for this reason. */

: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:#2E9E62; --gold-soft:#49DF8F; --gold-bg:#2E9E62;
  --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:#12492C; --gold-soft:#19623B; --gold-bg:#12492C; --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:#2E9E62; --gold-soft:#49DF8F; --gold-bg:#2E9E62;
  --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:#12492C; --gold-soft:#19623B; --gold-bg:#12492C; --gold-bg-ink:#fff;
  --shadow:0 14px 30px -18px rgba(60,48,20,.45);
}
