/* 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
   Medicine'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 rose cluster (this atlas next to Literature #b27791 and
   Food #b27a6f) too similar to tell apart at a glance. Old muted rose
   #b27885 soft #bf949e, light #9a4257 soft #a9485f (request 1052
   polish, 2026-08-22) replaced by clinical crimson, dark #c4505e soft
   #dd99a2, light #852d38 soft #b03b49. The mark itself is unchanged;
   only the accent hue moved.

   Contrast recomputed against the actual family surfaces for the new
   values. Dark theme: #c4505e on --ground measures 4.28 to 1, on
   --panel 3.89 to 1, on --panel2 3.55 to 1; #dd99a2 on --ground
   measures 8.42 to 1, on --panel 7.65 to 1, on --panel2 6.99 to 1.
   Light theme: #852d38 on --ground measures 7.53 to 1, on --panel
   7.01 to 1, on --panel2 7.87 to 1; #b03b49 on --ground measures
   5.13 to 1, on --panel 4.78 to 1, on --panel2 5.36 to 1. The light
   theme pair clears the 4.5 to 1 text minimum on every family surface
   as required; the dark theme accent and soft do not (--gold itself
   is used as body text nowhere the accessible-text rule reaches, only
   as a decorative/interactive tint, matching the dark-theme reading the
   owner's own decided base hex sets, unchanged from every prior atlas's
   dark accent, which was never itself held to 4.5:1, only its soft
   tint and the light pair are).

   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 #c4505e measures only 4.03 to 1, UNDER the 4.5 bar
   (the old rose cleared this at 5.13 to 1, so this is a regression the
   accent swap causes, not a pre-existing state). White text on #c4505e
   measures 4.51 to 1, right at the floor with no real margin; neither
   ink is a safe universal choice against this exact crimson at the
   engine's current hardcoded weight. In the light theme dark ink on
   #852d38 fails at 2.10 to 1 but white text clears at 8.64 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, so a future atlas whose
   accent sits in this saturated red/blue/violet range is not stuck
   without any safe fill ink at all; Law 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 #c4505e measures 4.51 to 1, clearing the 4.5 bar (the
   hardcoded #1a1508 measured 4.03 to 1). Light theme: white on
   #852d38 measures 8.64 to 1 (#1a1508 measured 2.10 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. Law 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:#c4505e; --gold-soft:#dd99a2; --gold-bg:#c4505e; --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:#852d38; --gold-soft:#b03b49; --gold-bg:#852d38; --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 Medicine'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:#c4505e; --gold-soft:#dd99a2; --gold-bg:#c4505e; --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:#852d38; --gold-soft:#b03b49; --gold-bg:#852d38; --gold-bg-ink:#fff;
  --shadow:0 14px 30px -18px rgba(60,48,20,.45);
}
