/* tokens.enc.css — GENERATED by bin/build_tokens.py from src/Design/tokens.json — do NOT hand-edit.
 * =============================================================================
 * src/Design/tokens.json is THE single source of token VALUES for the ONE Verifera
 * Encyclopaedia aesthetic, shared VERBATIM across both editions:
 *   • Health edition   → camdenmedicals.co.uk/encyclopaedia/*
 *   • Careers edition   → verifera.co.uk/encyclopaedia/*   (Verifera Talent)
 * 0-hex rule: hex literals live ONLY in tokens.json. Change a value there + re-run
 * `bin/build_tokens.py`; `--check` locks the artifacts to the source.
 */

.enc, :root {
  /* ── Brand atoms — identical in both prior encodings (vf == cm), now single-sourced. ── */
  --enc-navy: #061645;  /* on cream 14.8:1 AAA — primary heading / dark ground */
  --enc-navy-700: #0B2160;  /* hover / elevated navy */
  --enc-navy-500: #1B3A7A;  /* navy tint — focus ring / tinted-band headings */
  --enc-gold: #FFB300;  /* FILL/RULE/MARK only (1.7:1 as text = fail) */
  --enc-gold-ink: #6B4A00;  /* AA-safe gold-as-text on cream 5.2:1 */
  --enc-gold-pale: #FFF4D6;  /* gold wash — facet hover / verified-mark fill */
  --enc-cream: #FAF7F2;  /* canonical body ground (Aesop apothecary register) */
  --enc-cream-deep: #F3EDE3;  /* warmer trust-section ground */
  --enc-card: #FFFFFF;  /* cards / utility panels */
  /* ── Resolved forks — canonicalised 2026-06-10 to Verifera live values (operator veto at PR review). ── */
  --enc-ink: #1D2433;  /* body ink — Verifera live (navy-tinted); supersedes --cm-ink #1A1A1A */
  --enc-ink-soft: #5B6475;  /* soft ink — Verifera live; Camden --cm-ink-3 #6B6B6B kept as --enc-ink-3 (distinct dial-caption role) */
  --enc-line: #E8E3D9;  /* rule/line — Verifera live; supersedes --cm-rule #E3DED5 */
  --enc-green: #0A6B3F;  /* link/stat green — Verifera live; supersedes --cm-* link green #2F6B4F (which remains the SAFETY-ok token) */
  /* ── Convergence aliases — aliasing collapses the drift — these can no longer diverge from their target. ── */
  --enc-rule: var(--enc-line);  /* was Camden --cm-rule #E3DED5 vs Verifera --vf-line #E8E3D9 — converged */
  --enc-rule-strong: #CFC8BC;  /* emphasised divider — promoted from Camden --cm-rule-strong local 2026-07-04 (veto-#2) */
  --enc-paper: var(--enc-card);  /* was Camden --cm-paper == Verifera --vf-card (#FFFFFF) — alias */
  --enc-island-dark: #14141A;  /* dark-mode island ground — promoted from Camden --cm-island-dark local 2026-07-04 (veto-#2) */
  --enc-ink-3: #6B6B6B;  /* Camden dial tertiary-caption text (AA 5.2:1 @>=13px) — distinct role from --enc-ink-soft */
  --enc-ink-2: #4A4A4A;  /* Camden secondary text (AA 8.0:1) — promoted from --cm-ink-2 local 2026-07-04 (veto-#2) */
  /* ── Structure — radius / shadow / measure. ── */
  --enc-radius: 12px;
  --enc-radius-sm: 8px;
  --enc-shadow: 0 1px 2px rgba(6, 22, 69, .04), 0 8px 28px rgba(6, 22, 69, .06);
  --enc-maxw: 1200px;
  --enc-prose: 38rem;
  /* ── Type families — memo §2 — no weight >= 700 anywhere. ── */
  --enc-font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --enc-font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --enc-font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  /* ── Type scale — memo §2.2 — sizes + tracking. ── */
  --enc-fs-display: 3rem;  /* 48px section-landing H1 (Cormorant 500) */
  --enc-fs-h1-editorial: 2.625rem;  /* 42px entry / editorial H1 (Cormorant 500) */
  --enc-fs-body-lg: 1.0625rem;  /* 17px long-form prose */
  --enc-fs-body: 1rem;  /* 16px body */
  --enc-fs-caption: 0.8125rem;  /* 13px footnote / byline */
  --enc-fs-meta: 0.78rem;  /* 12.5px eyebrow / small-caps / chip */
  --enc-fs-mono: 0.78rem;  /* 12.5px PMID / DOI codes */
  --enc-track-meta: 0.06em;
  --enc-track-mono: -0.02em;
  /* ── Space — memo §4.1 — 4px base. ── */
  --enc-space-4: 4px;
  --enc-space-8: 8px;
  --enc-space-12: 12px;
  --enc-space-16: 16px;
  --enc-space-24: 24px;
  /* ── Radius — memo §4.4. ── */
  --enc-radius-chip: 4px;  /* dial chips / utility cards */
  --enc-radius-label: 6px;  /* CEGA Evidence Label container / dossier cards */
  --enc-radius-pill: 9999px;  /* verification + facet chips */
  /* ── CEGA Dial-1 · Evidence — EVIDENCE-blue ramp (memo §3). ── */
  --enc-ev-50: #EEF3FB;
  --enc-ev-100: #DCE6F6;
  --enc-ev-300: #9DB6E0;
  --enc-ev-500: #3A62A8;
  --enc-ev-700: #21407A;
  /* ── CEGA Honest-low — grey-blue (FR-1 — low EVIDENCE renders HERE, never red). ── */
  --enc-low-50: #EEF0F2;
  --enc-low-100: #E1E5EA;
  --enc-low-500: #5E6B7A;
  --enc-low-700: #3E4855;
  /* ── CEGA Dial-4 · Safety — HARM only — the ONLY red in the system. ── */
  --enc-safe-ok: #2F6B4F;
  --enc-safe-watch: #B26A00;
  --enc-safe-harm: #B3261E;
  --enc-safe-harm-bg: #FBEBEA;
  --enc-safe-unrev: #5E6B7A;
  /* ── CEGA Dial-2 · Verification — neutral review state. ── */
  --enc-verif-ink: #44474D;
  --enc-verif-bg: #ECEDEF;
  --enc-verif-full: #2F6B4F;
  --enc-verif-partial: #B26A00;
  --enc-verif-none: #8A8F98;
  /* ── CEGA Context bands — traditional AMBER · online-source GREY (cannot raise tier). ── */
  --enc-trad-amber: #8A5A00;
  --enc-trad-bg: #FBF1DC;
  --enc-online-grey: #5C6066;
  --enc-online-bg: #EEEFF1;
  /* ── Semantic utility — UI states only — never repurposed for evidence. ── */
  --enc-info: #21407A;
  --enc-success: #2F6B4F;
  --enc-warning: #B26A00;
  --enc-error: #B3261E;
  /* ── Motion — memo §5 — drives chip-hover / link-underline only. ── */
  --enc-duration-fast: 180ms;
  --enc-duration-colors: 200ms;
  --enc-ease-fast: cubic-bezier(0.4, 0, 0.2, 1);
  --enc-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* prefers-reduced-motion: pharma-tier WCAG 2.2 AA — collapse motion to instant (memo §5.4) */
@media (prefers-reduced-motion: reduce) {
  .enc, :root { --enc-duration-fast: 0.01ms; --enc-duration-colors: 0.01ms; }
}
