/* Dossier design tokens. Taken from the approved design (design/*.dc.html) and the
   DAM design language (ts-dam-fe/styles/tokens.css). Components use these variables,
   never raw hex. Theme is set on <html data-theme> before first paint (see index.html). */
:root {
  /* Brand */
  --red: #D0021B;            --red-hover: #E70909;
  --red-text: #D0021B;       /* red words and links */
  /* Surfaces and text, light */
  --page: #FAF9F6;           --surface: #F8F6F2;
  --tone-1: rgba(26,26,26,.06);  --tone-2: rgba(26,26,26,.11);
  --tone-solid: #F0EDE7;     --tone-solid-hover: #E6E2DA;
  --text: #1A1A1A;           --text-2: #2E2E2E;
  --text-quiet: #5F5F5F;     /* captions, counts. Solid surfaces only, never on glass */
  --rule: #D8D4CE;           --field-active: #FFFFFF;
  --active-tint: #FBE6E8;    --active-text: #B10218;
  --inverse-bg: #1A1A1A;     --inverse-text: #FAF9F6;
  --on-red: #FFFFFF;         --media-chip: #2A2A2A;
  /* Dossier cards. Lists sit on white cards; excluded leads sit on a darker card. */
  --lead-on: #FFFFFF;        --lead-off: #ECE8E1;
  /* Glass */
  --glass: rgba(250,249,246,.78);
  --glass-text-2: #2E2E2E;
  --glass-blur: blur(24px) saturate(140%);
  --glass-edge: inset 0 1px 0 rgba(255,255,255,.75), inset 0 0 0 1px rgba(255,255,255,.4);
  --menu-bg: rgba(250,249,246,.96);
  --menu-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 0 0 1px rgba(26,26,26,.06), 0 24px 48px rgba(26,26,26,.16);
  --tab-on: rgba(255,255,255,.62);
  --tab-on-edge: inset 0 1px 0 rgba(255,255,255,.95), inset 1px 0 0 rgba(255,255,255,.6), inset -1px 0 0 rgba(255,255,255,.6);
  --scrim: rgba(22,22,22,.42);
  /* Shape, space, type, motion */
  --radius: 6px;
  --space: 8px;              --margin: 64px;  --gutter: 32px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-ui: Barlow, Calibri, sans-serif;
  --title: 40px;  --section: 22px;  --body: 15px;  --label: 12px;
  --ease-out: cubic-bezier(.2,.7,.2,1);
  --t-hover: 120ms;  --t-enter: 320ms;
  --focus: 0 0 0 2px var(--page), 0 0 0 4px var(--text);
}

:root[data-theme="dark"] {
  --red-text: #FF4D5E;
  --page: #161616;           --surface: #1E1E1E;
  --tone-1: rgba(255,255,255,.08);  --tone-2: rgba(255,255,255,.13);
  --tone-solid: #242424;     --tone-solid-hover: #2E2E2E;
  --text: #EDEAE4;           --text-2: #D8D4CE;
  --text-quiet: #A8A39B;     --rule: #3A3A3A;
  --field-active: #0F0F0F;
  --active-tint: rgba(255,77,94,.18);  --active-text: #FF7A86;
  --inverse-bg: #EDEAE4;     --inverse-text: #161616;
  --lead-on: #242424;        --lead-off: #101010;
  --glass: rgba(30,30,30,.72);         --glass-text-2: #D8D4CE;
  --glass-edge: inset 0 1px 0 rgba(255,255,255,.10), inset 0 0 0 1px rgba(255,255,255,.06);
  --menu-bg: rgba(30,30,30,.96);
  --menu-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 1px rgba(255,255,255,.06), 0 24px 48px rgba(0,0,0,.5);
  --tab-on: rgba(255,255,255,.09);
  --tab-on-edge: inset 0 1px 0 rgba(255,255,255,.16);
  --scrim: rgba(0,0,0,.55);
}

@media (prefers-reduced-motion: reduce) {
  :root { --t-hover: 0ms; --t-enter: 0ms; }
}

@supports not (backdrop-filter: blur(1px)) {
  :root { --glass: #F8F6F2; --menu-bg: #F8F6F2; }
  :root[data-theme="dark"] { --glass: #1E1E1E; --menu-bg: #1E1E1E; }
}
