/* Digital Delight / Search Intelligence / tokens 1.0
   One DOM, two themes. Every colour on the site goes through these semantic tokens.
   Dark is the default; [data-theme] is set on <html> before first paint (header.php). */
html:root,html[data-theme=dark]{color-scheme:dark;--bg:#111611;--surface:#192117;--surface-raised:#202b1c;--text:#edf1e7;--muted:#a7b29f;--subtle:#819077;--line:#36432e;--accent:#cdf675;--action:#cdf675;--action-text:#19270c;--soft:#202d16;--focus:#9bd3ff;--success:#b6e993;--danger:#ffb3a9;--danger-bg:#361e1a;--overlay:#080d08b8;--header:#111611ed;--shadow:0 30px 50px #0006}
html[data-theme=light]{color-scheme:light;--bg:#f5f7f0;--surface:#edf1e6;--surface-raised:#ffffff;--text:#1b2818;--muted:#56634d;--subtle:#68765f;--line:#ccd6c2;--accent:#3c5d1f;--action:#284718;--action-text:#f6ffe9;--soft:#e1edce;--focus:#145da8;--success:#346023;--danger:#a73528;--danger-bg:#fbeae5;--overlay:#17221073;--header:#f5f7f0ed;--shadow:0 30px 50px #1b28181f}
html:root{--font:'Manrope',Arial,sans-serif;--mono:'IBM Plex Mono',ui-monospace,monospace;--container:1320px;--ease:cubic-bezier(.2,.7,.2,1);--duration:220ms;--radius:2px;--header-h:87px}
@media(max-width:700px){html:root{--header-h:76px}}

/* live-main.css ships :root{--bg:var(--bg);--text:var(--text);…} (self-references, i.e. invalid values).
   All token rules therefore use html:root / html[data-theme] (0,1,1) so that bundle cannot void them. */
/* Legacy bridge 1: global variables used by live-main.css and by inline styles of dd/raw pages
   (they were set inline on <html> by the old header). Same names, new values. */
html:root{--primary:var(--text);--primaryDark:var(--text);--primary-dark:var(--text);--brand:var(--accent);--brandDark:var(--accent);--brand-dark:var(--accent);--accentSoft:var(--accent);--accent-soft:var(--accent);--bgAlt:var(--surface);--bg-alt:var(--surface);--textMuted:var(--muted);--text-muted:var(--muted);--border:var(--line)}

/* Legacy bridge 2: the geo-* component layer defines its own palette on .geo-hero/.geo-section/.geo-cta.
   Re-point it at the semantic tokens (higher specificity than the legacy declarations). */
html .geo-hero,html .geo-section,html .geo-cta,html .geo-scope{--geo-green:var(--accent);--geo-green-dim:var(--accent);--geo-green-glow:var(--soft);--geo-bg-section:var(--surface);--geo-bg-body:var(--bg);--geo-bg-surface:var(--surface);--geo-bg-surface-2:var(--surface-raised);--geo-bg-elevated:var(--surface-raised);--geo-border-soft:var(--line);--geo-border:var(--line);--geo-border-2:var(--line);--geo-text-mute:var(--subtle);--geo-text-2nd:var(--muted);--geo-text:var(--muted);--geo-text-strong:var(--text);--geo-text-h:var(--text);--geo-r-xs:var(--radius);--geo-r-sm:var(--radius);--geo-r-md:var(--radius);--geo-r-ui:var(--radius);--geo-font:var(--font);--geo-page-max:var(--container)}
