/* ============================================================
   guide.theme.css  -  GENERATED PER CLIENT by strategy-hub-builder
   --------------------------------------------------------------
   This is the ONLY stylesheet rewritten per client. It defines:
     1. the :root color tokens (chrome = client primary; signature
        gradients = distinct hues, mildly brand-tinted), and
     2. the per-module identity rules (.guide-chip.c-<id> + .swbtn.to-<id>)
        generated from modules/_registry.json - one pair per installed module.
   guide.css is structural and references these vars; it never changes.

   HOW THE BUILDER FILLS THIS FILE (see references/02-theming.md):
   - #1f4e9c / #0693e3  = client primary + its lighter partner
       (from design-system-creator tokens.css --color-primary). Drives the
       nav, --grad-brand, eyebrows, KPI default underline, TOC active.
   - #1b1e34 / #16224a / #1f4e9c = dark hero gradient stops, derived
       from the client primary (dark -> mid -> primary). Drives every hero.
   - The per-guide signature gradients + chip/swbtn rules are emitted by
       assets/scripts/color_engine.py (deterministic OKLCH brand-complementary
       harmony, WCAG-AA-solved, distinctness + CVD guarded, wgos lime fixed) and
       REPLACE the fallback region at the bottom of this file. The defaults shown
       there are the no-theme Bluebot fallback. See references/02-theming.md.
   ============================================================ */
:root{
  /* --- structural neutrals + semantics --- */
  --ink:#11142a; --navy:#1b1e34; --navy-2:#0e1228;
  /* backgrounds + lines are TINTED toward the brand hue by color_engine
     (dominance tactic). Defaults below = neutral Bluebot set (no-theme fallback). */
  --bg:#eef3fb; --bg-2:#e6edf8; --card:#ffffff;
  --line:#dce5f2; --line-2:#e9eff7;
  /* default neutrals: --bg #eef3fb / --bg-2 #e6edf8 / --line #dce5f2 / --line-2 #e9eff7 */
  --t1:#11142a; --t2:#475069; --t3:#8a93ab;
  --good:#16b981; --warn:#f59e0b; --bad:#ef4444;
  --money:#16b981; --money-2:#2bb673; --amber:#f5a623; --pink:#ec4899;
  --cyan:#8ed1fc; --sky:#5f91ce; --teal:#4aeadc;
  --shadow-sm:0 1px 2px rgba(17,20,42,.06),0 1px 3px rgba(17,20,42,.05);
  --shadow:0 6px 18px -6px rgba(20,40,90,.16),0 2px 6px -2px rgba(20,40,90,.08);
  --shadow-lg:0 24px 60px -18px rgba(15,30,70,.32),0 8px 20px -10px rgba(15,30,70,.18);
  --radius:18px; --radius-sm:12px;
  --nav-h:64px;
  --font:"Segoe UI",-apple-system,BlinkMacSystemFont,system-ui,Roboto,"Helvetica Neue",Arial,sans-serif;

  /* --- CLIENT CHROME (themed from extracted primary; default = Bluebot blue) --- */
  --brand:#1f4e9c;            /* client PRIMARY (default #1f4e9c) */
  --brand-2:#0693e3;          /* client SECONDARY brand color (dominance tactic;
                                      color_engine sets CHROME_2 = 2nd brand color,
                                      not just a lighter primary). default #0693e3.
                                      Used by guide.css for CTAs/links/accents. */
  --grad-brand:linear-gradient(135deg,#1f4e9c 0%,#0693e3 100%);
  --grad-deep:linear-gradient(155deg,#1b1e34 0%,#16224a 45%,#1f4e9c 120%);
  /* default deep stops: #1b1e34 / #16224a / #1f4e9c */

  /* --- SIGNATURE GUIDE GRADIENTS (distinct per module; brand-tinted) --- */
  /* topical = FIXED blue (default palette; no longer reuses chrome). */
  --topical:#1f6ed2; --grad-topical:linear-gradient(135deg,#1f6ed2 0%,#5a9be8 100%);
  --orange:#ff5f1f; --orange-2:#ff8a3d;
  --grad-orange:linear-gradient(135deg,#ff5f1f 0%,#ff9a3d 100%);
  --purple:#8b5cf6;
  --grad-purple:linear-gradient(135deg,#8b5cf6 0%,#6366f1 100%);
  --geo:#0891b2; --geo-2:#22a8c8;
  --grad-geo:linear-gradient(135deg,#0891b2 0%,#22a8c8 100%);
  --grad-money:linear-gradient(135deg,#16b981 0%,#4aeadc 100%);
  /* core module slots: green (local-seo) + magenta (social-search) */
  --green:#15a34a; --grad-green:linear-gradient(135deg,#15a34a 0%,#4ade80 100%);
  --magenta:#db2777; --grad-magenta:linear-gradient(135deg,#db2777 0%,#f472b6 100%);
  /* agency-fixed flagship slot: lime (wellness-growth-os). NEVER client-tinted
     (see references/02-theming.md): the WGOS guide always renders agency navy + lime. */
  --navy-wgos:#1d2d61; --lime:#a4bd23; --lime-2:#c3da4d;
  --grad-lime:linear-gradient(135deg,#a4bd23 0%,#c3da4d 100%);
}

/* ============================================================
   PER-MODULE IDENTITY  (generated from modules/_registry.json)
   One .guide-chip.c-<id> + one .swbtn.to-<id> block per module.
   The .swbtn muted text/border colors are derived from the slot hue.
   ============================================================ */
/* __MODULE_CHIP_RULES__ + __MODULE_SWBTN_RULES__ regions:
   color_engine.py emits the brand-complementary block (`--css`) that REPLACES
   everything below this comment down to the end of the file: a `:root{ --g-<slug>:
   linear-gradient(...) }` set + one `.guide-chip.c-<slug>` and one `.swbtn.to-<slug>`
   (+:hover) per SELECTED guide, all WCAG-AA-solved + distinctness/CVD-guarded, with
   wgos lime fixed. The blocks below are the no-theme FALLBACK (the old fixed default
   set) used only if the engine is not run. See references/02-theming.md. */
.guide-chip.c-topical{background:var(--grad-topical)}
.guide-chip.c-brand{background:var(--grad-orange)}
.guide-chip.c-ai{background:var(--grad-purple)}
.guide-chip.c-geo{background:var(--grad-geo)}
.guide-chip.c-local{background:var(--grad-green)}
.guide-chip.c-social{background:var(--grad-magenta)}
.guide-chip.c-wgos{background:var(--grad-lime);color:#1d2d61}

/* __MODULE_SWBTN_RULES__ - worked example (the four core modules):
   Emit ONE base rule per installed module, keyed by the module's navSlug
   (07-color-slots.md), and the navSlug MUST match the to-<slug> class the
   switcher writes - a mismatch (e.g. to-growth vs to-wgos) drops the button to
   the guide.css fallback color and verify.py check [5] FAILS the build. Each text
   tint must be a LIGHT shade of the slot hue (it sits on the dark nav pill);
   guide.css still guarantees a legible fallback if a rule is ever missing. */
.swbtn.to-topical{color:#a8c6f3;border-color:rgba(31,110,210,.6)}
.swbtn.to-topical:hover{background:var(--grad-topical);color:#fff;border-color:transparent;box-shadow:0 5px 16px -4px rgba(6,147,227,.65)}
.swbtn.to-brand{color:#ffc4a3;border-color:rgba(255,95,31,.55)}
.swbtn.to-brand:hover{background:var(--grad-orange);color:#fff;border-color:transparent;box-shadow:0 5px 16px -4px rgba(255,95,31,.6)}
.swbtn.to-ai{color:#cbb8f7;border-color:rgba(139,92,246,.6)}
.swbtn.to-ai:hover{background:var(--grad-purple);color:#fff;border-color:transparent;box-shadow:0 5px 16px -4px rgba(139,92,246,.6)}
.swbtn.to-geo{color:#7ec5db;border-color:rgba(8,145,178,.6)}
.swbtn.to-geo:hover{background:var(--grad-geo);color:#fff;border-color:transparent;box-shadow:0 5px 16px -4px rgba(8,145,178,.6)}
.swbtn.to-local{color:#9ce8b8;border-color:rgba(21,163,74,.6)}
.swbtn.to-local:hover{background:var(--grad-green);color:#fff;border-color:transparent;box-shadow:0 5px 16px -4px rgba(21,163,74,.6)}
.swbtn.to-social{color:#f7b3d4;border-color:rgba(219,39,119,.6)}
.swbtn.to-social:hover{background:var(--grad-magenta);color:#fff;border-color:transparent;box-shadow:0 5px 16px -4px rgba(219,39,119,.6)}
.swbtn.to-wgos{color:#d4e87a;border-color:rgba(164,189,35,.6)}
.swbtn.to-wgos:hover{background:linear-gradient(135deg,#6c7e00 0%,#8a9e1a 100%);color:#ffffff;border-color:transparent;box-shadow:0 5px 16px -4px rgba(164,189,35,.55)}

/* topical = fixed blue, decoupled from chrome (default palette). The gcard rule is
   keyed by href so it hits the Topical Map card regardless of its positional c-class. */
.gcard[href*="topical-map"] .gc-top,.gcard[href*="topical-map"] .gc-ic{background:var(--grad-topical)}
.gchip.t-topical{background:var(--grad-topical)}
.sc-tag.t-topical{background:var(--topical)}
