/* "Match site styling" — injected last into an embed when the editor leaves the
   toggle on. Re-points the colour-variable names AI tools commonly generate at
   the house tokens, forces site fonts, light mode and a transparent background
   so the graphic sits on the article page.
   ponytail: name-matching heuristic. Embeds using other variable names or
   hard-coded colours only get the font/background changes; the house brief in
   the editor guide is the reliable route. Add aliases here as new ones appear. */

:root:root:root {
  color-scheme: light !important;

  --bg: transparent !important; --background: transparent !important; --page: transparent !important;
  --bg-card: var(--sig-card) !important; --card: var(--sig-card) !important; --surface: var(--sig-card) !important;
  --fg: var(--sig-ink) !important; --foreground: var(--sig-ink) !important; --ink: var(--sig-ink) !important; --text: var(--sig-body-ink) !important;
  --fg-muted: var(--sig-body-ink) !important; --muted: var(--sig-muted-ink) !important; --text-muted: var(--sig-muted-ink) !important;
  --fg-label: var(--sig-muted-ink) !important; --label: var(--sig-muted-ink) !important;
  --accent: var(--sig-accent) !important; --primary: var(--sig-accent) !important; --brand: var(--sig-accent) !important;
  --accent-subtle: var(--sig-accent-soft) !important; --accent-soft: var(--sig-accent-soft) !important;
  --rule: var(--sig-line) !important; --border: var(--sig-line) !important; --line: var(--sig-line) !important;
  --good: var(--sig-good) !important; --success: var(--sig-good) !important; --good-bg: var(--sig-good-soft) !important;
  --warn: var(--sig-warn) !important; --warning: var(--sig-warn) !important; --warn-bg: var(--sig-warn-soft) !important;

  --c1: var(--sig-series-1) !important; --c2: var(--sig-series-2) !important; --c3: var(--sig-series-3) !important; --c4: var(--sig-series-4) !important;
  --c5: var(--sig-series-5) !important; --c6: var(--sig-series-6) !important; --c7: var(--sig-series-7) !important; --c8: var(--sig-series-8) !important;
}

html, body {
  background: transparent !important;
  color: var(--sig-body-ink);
}

/* The article column already provides gutters. */
body { margin: 0 !important; padding: 0 !important; }

*:not(code):not(pre):not(kbd):not(samp) { font-family: var(--sig-font) !important; }

/* Display serifs are often weight 400; Plex needs bold to read as a heading. */
h1, h2, h3, h4 { font-weight: 700 !important; letter-spacing: -0.012em; color: var(--sig-ink); }
