/* SynapticSci mode: DARK (v3.4, audit 2026-09-25). A colour mode, not a theme: it combines with Commercial or Product.
   Follows the system setting unless the page opts out with <html data-mode="light">; <html data-mode="dark"> forces it.
   Screen only — print always uses the paper palette. The identity holds: warm ink ground, paper-toned text, Ultramarine
   lifted until links and buttons read at AA, patina for evidence. Every pair is checked by scripts/check-contrast.mjs. */
@media screen and (prefers-color-scheme: dark){
  :root:not([data-mode="light"]){
    color-scheme:dark;
    --ink:#f1ece1;            /* text: 15.5:1 on paper */
    --ink-soft:#aba391;       /* secondary text: 7.3:1 on paper, 6.6:1 on surface */
    --paper:#171510;          /* page ground */
    --surface:#211e18;        /* cards, tiles */
    --rule:#3a362e;           /* hairlines */
    --primary:#8ea0ec;        /* Ultramarine, lifted: links 7.3:1; button fill with surface text 6.6:1 */
    --primary-deep:#b4c0f4;   /* hover/active */
    --primary-wash:#1f2744;   /* selected / callout fill */
    --patina:#2fb8a5;
    --patina-deep:#4cc7b4;    /* evidence text: 8.8:1 */
    --status-ready:#7fbf63;
    --status-withheld:#f07a90;
    --status-review-bg:#26221b;
    --pen:#b4c0f4;
    --border-control:#7d7565; /* 3.6:1 on surface */
    --viz-3:#6b7fd4; --viz-5:#b4c0f4; /* v3.9: viz-3 stays the mid blue (4.4:1); #8ea0ec was --primary, so series 1 and 3 collided */
    --fig-tint-1:color-mix(in srgb,var(--fig-hue-1) 26%,var(--surface)); --fig-tint-2:color-mix(in srgb,var(--fig-hue-2) 26%,var(--surface));
    --fig-tint-3:color-mix(in srgb,var(--fig-hue-3) 26%,var(--surface)); --fig-tint-4:color-mix(in srgb,var(--fig-hue-4) 26%,var(--surface));
    --fig-wash-1:color-mix(in srgb,var(--fig-hue-1) 44%,var(--surface)); --fig-wash-2:color-mix(in srgb,var(--fig-hue-2) 44%,var(--surface));
    --fig-wash-3:color-mix(in srgb,var(--fig-hue-3) 44%,var(--surface)); --fig-wash-4:color-mix(in srgb,var(--fig-hue-4) 44%,var(--surface));
    --fig-on-1:#171510; --fig-edge:transparent; /* v3.9: Gold and Cadmium hold their values; Ultramarine and Patina follow --primary and --patina */
    --ground-ink:#0e0d0a;     /* the ink slab sits darker than the page */
    --on-ink-text:#f1ece1;
    --band-bg:#182a6e; --band-text:#fcfaf4; --band-soft:#e9edfa; --band-label:#c9c2b0;
    --band-action-bg:#fcfaf4; --band-action-text:#182a6e;
    --elevation-paper:0 8px 26px rgba(0,0,0,.45);
    --scrim:rgba(0,0,0,.7);
    --nb-dim:rgba(0,0,0,.45); --notebook-edge:var(--border-control); --nb-sheet-graph:color-mix(in srgb,var(--primary) 5%,transparent); /* v3.15 notebooks (DS-2 to DS-4): a black veil (ink is light here), the binding keyline (4.0:1 on paper, 3.6:1 on surface), a fainter sheet graph */
  }
  /* v3.5: mode-aware content — the reverse logo, a diagram drawn for the dark ground */
  :root:not([data-mode="light"]) .ss-when-dark{display:revert}
  :root:not([data-mode="light"]) .ss-when-light{display:none}
}
@media screen{
  [data-mode="dark"]{
    color-scheme:dark;
    --ink:#f1ece1; --ink-soft:#aba391; --paper:#171510; --surface:#211e18; --rule:#3a362e;
    --primary:#8ea0ec; --primary-deep:#b4c0f4; --primary-wash:#1f2744;
    --patina:#2fb8a5; --patina-deep:#4cc7b4;
    --status-ready:#7fbf63; --status-withheld:#f07a90; --status-review-bg:#26221b;
    --pen:#b4c0f4; --border-control:#7d7565; --viz-3:#6b7fd4; --viz-5:#b4c0f4;
    --fig-tint-1:color-mix(in srgb,var(--fig-hue-1) 26%,var(--surface)); --fig-tint-2:color-mix(in srgb,var(--fig-hue-2) 26%,var(--surface));
    --fig-tint-3:color-mix(in srgb,var(--fig-hue-3) 26%,var(--surface)); --fig-tint-4:color-mix(in srgb,var(--fig-hue-4) 26%,var(--surface));
    --fig-wash-1:color-mix(in srgb,var(--fig-hue-1) 44%,var(--surface)); --fig-wash-2:color-mix(in srgb,var(--fig-hue-2) 44%,var(--surface));
    --fig-wash-3:color-mix(in srgb,var(--fig-hue-3) 44%,var(--surface)); --fig-wash-4:color-mix(in srgb,var(--fig-hue-4) 44%,var(--surface));
    --fig-on-1:#171510; --fig-edge:transparent; /* v3.9: Gold and Cadmium hold their values; Ultramarine and Patina follow --primary and --patina */
    --ground-ink:#0e0d0a; --on-ink-text:#f1ece1;
    --band-bg:#182a6e; --band-text:#fcfaf4; --band-soft:#e9edfa; --band-label:#c9c2b0;
    --band-action-bg:#fcfaf4; --band-action-text:#182a6e;
    --elevation-paper:0 8px 26px rgba(0,0,0,.45);
    --scrim:rgba(0,0,0,.7);
    --nb-dim:rgba(0,0,0,.45); --notebook-edge:var(--border-control); --nb-sheet-graph:color-mix(in srgb,var(--primary) 5%,transparent); /* v3.15 notebooks (DS-2 to DS-4): a black veil (ink is light here), the binding keyline (4.0:1 on paper, 3.6:1 on surface), a fainter sheet graph */
  }
  [data-mode="dark"] .ss-when-dark{display:revert}
  [data-mode="dark"] .ss-when-light{display:none}
}
