/* ============================================================================
   EUREKA · Theme bridge.
   Maps the legacy public-page colour variables onto the live theme tokens so
   EVERY public page follows the saved theme — without rewriting each page.
   Load order on a page: theme.css → theme-custom.css → theme-bridge.css,
   placed AFTER the page's own <style> so these win the cascade.
   Defaults are identical to the old hardcoded values, so unthemed pages look
   unchanged; once a theme is saved, every page recolours.
   (Admin pages do NOT load this — they keep their own identity.)
   ============================================================================ */

/* MONO6_SWITCH_START — managed by the admin Theme editor (/admin/theme.html); do not edit by hand */
@import url("/kit/theme-mono6.css");
/* MONO6_SWITCH_END */

/* Global dark theme (html[data-theme="dark"]) — overrides the colour tokens. */
@import url("/kit/theme-dark.css");

:root {
  --accent: var(--color-accent);
  --accent-dark: var(--color-accent-strong);
  --accent-soft: var(--color-accent-soft);
  --premium: var(--color-accent);
  --bg: var(--color-bg);
  --panel: var(--color-surface);
  --ink: var(--color-ink);
  --muted: var(--color-muted);
  --line: var(--color-line);
  /* Alias per la landing (usa nomi legacy che non esistono nel tema) → segue il tema senza toccare landing.css */
  --color-text: var(--color-ink);
  --color-text-muted: var(--color-muted);
  --color-text-secondary: var(--color-muted);
  --color-border: var(--color-line);
  --success: var(--color-success);
  --error: var(--color-danger);
}
/* Titoli GRANDI (hero + titoli di sezione): seguono il token "colore titoli"
   (Theme). Default = colore testo. NON tocca h3/titoli card, link footer, ecc. */
h1, .pub-section-title { color: var(--color-heading, var(--color-ink)); }
