/* TOKENS ONLY; structure lives in _engine.css. Generated from
   sites\HistoryAtlas\App_Themes\History\site.css's final shape (read its
   header for the request 985 and 989 history), with the accent tokens
   Law's own; see Arts's site.css header for the full shape this header
   now mirrors.

   THE ACCENT CHANGED, owner request 1136 (2026-08-23): the owner viewed
   all seventeen atlas accents side by side on the family homepage and
   found the violet cluster too similar to tell apart at a glance. Old
   dusty violet #ad75b1 soft #ba91bd, light #8d3f93 soft #9b45a1
   (request 1052 polish, 2026-08-22) replaced by indigo, dark #4a5ab0
   soft #a0a9d7, light #3a478a soft #4d5db4. The mark itself is
   unchanged; only the accent hue moved.

   Contrast recomputed against the actual family surfaces for the new
   values. Dark theme: #4a5ab0 on --ground measures 3.11 to 1, on
   --panel 2.83 to 1, on --panel2 2.58 to 1; #a0a9d7 on --ground
   measures 8.42 to 1, on --panel 7.65 to 1, on --panel2 6.99 to 1.
   Light theme: #3a478a on --ground measures 7.48 to 1, on --panel
   6.96 to 1, on --panel2 7.81 to 1; #4d5db4 on --ground measures
   5.17 to 1, on --panel 4.81 to 1, on --panel2 5.40 to 1. The light
   theme pair clears the 4.5 to 1 text minimum on every family surface
   as required; the dark theme accent alone does not (--gold is used
   as a decorative/interactive tint there, not body text), matching the
   owner's own decided base hex, unadjusted; the dark soft tint clears
   the bar with wide margin.

   THE GOLD-BG FILL ROLE: a genuine new gap, flagged here rather than
   fixed, because fixing it means editing the hardlinked _engine.css,
   outside this lane's claim. In the dark theme the engine hardcodes
   dark ink (#1a1508) on --gold-bg for buttons, active tabs and similar
   fills. #1a1508 on #4a5ab0 measures only 2.93 to 1, well under the
   4.5 bar (the old violet cleared this at 5.16 to 1, so this is a
   regression the accent swap causes, not a pre-existing state); white
   text on #4a5ab0 measures 6.21 to 1 and clears comfortably, but the
   engine's fill rule does not offer that choice today. In the light
   theme dark ink on #3a478a fails at 2.12 to 1 but white text clears
   at 8.58 to 1, the same deferred, pre-existing pattern every other
   atlas's light-theme fill already carries. RECOMMENDATION for the
   conductor: the engine needs a per-atlas --gold-bg-ink token (light
   or dark) rather than the single hardcoded #1a1508 in _engine.css;
   Medicine and Literature hit the same class of gap in this same pass,
   see their own site.css headers.

   RESOLVED by lane w-engineink-1528 (2026-08-23): _engine.css now reads
   ink as var(--gold-bg-ink, #1a1508) on every --gold-bg fill (default
   unchanged everywhere the token is unset), and this file now sets
   --gold-bg-ink:#fff in all four theme blocks below. Dark theme: white
   on #4a5ab0 measures 6.21 to 1, clearing the 4.5 bar (the
   hardcoded #1a1508 measured 2.93 to 1). Light theme: white on
   #3a478a measures 8.58 to 1 (#1a1508 measured 2.12 to 1); the
   light-theme accent here is darker than the dark-theme one, not
   lighter, so white clears both themes and no dark-ink branch is
   needed. Medicine and Literature carry the same fix in this same pass. */

: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:#4a5ab0; --gold-soft:#a0a9d7; --gold-bg:#4a5ab0; --gold-bg-ink:#fff;
  --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:#3a478a; --gold-soft:#4d5db4; --gold-bg:#3a478a; --gold-bg-ink:#fff;
  --shadow:0 14px 30px -18px rgba(60,48,20,.45);
}}

/* The two explicit data-theme blocks, mirroring the engine's own four-state
   shape so the header's System/Light/Dark toggle lands Law's accent in
   every state; see Science's site.css request 989 comment for the defect
   these exist to close. */
: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:#4a5ab0; --gold-soft:#a0a9d7; --gold-bg:#4a5ab0; --gold-bg-ink:#fff;
  --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:#3a478a; --gold-soft:#4d5db4; --gold-bg:#3a478a; --gold-bg-ink:#fff;
  --shadow:0 14px 30px -18px rgba(60,48,20,.45);
}
