/* ==========================================================================
   SYNTROPIA LINDY ENGINE - 30 SOVEREIGN COLOR RHETORIC THEMES
   Canonical Reference: Manual_Estrategico_Identidade_Visual_Retorica_e_150_Estilos.md
   ========================================================================== */

:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-subtle: #6b7280;
  --accent-gold: #f59e0b;
  --accent-green: #10b981;

  /* Default Fallback (VoltGrid) */
  --bg-primary: #0a0e17;
  --bg-surface: #111827;
  --bg-card: #162032;
  --bg-card-hover: #1c2a42;
  --border-subtle: #24344d;
  --border-focus: #38bdf8;
  --accent-primary: #38bdf8;
  --accent-blue: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.15);
  --badge-bg: rgba(56, 189, 248, 0.12);
  --badge-border: rgba(56, 189, 248, 0.35);
  --tool-output-bg: #0d1527;
  --hero-glow: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.12) 0%, transparent 65%);
  --header-bg: rgba(17, 24, 39, 0.88);
}

/* --------------------------------------------------------------------------
   THEME MATRICES (30 INDEPENDENT NICHE COLOR IDENTITIES)
   -------------------------------------------------------------------------- */
/* THEME: BEEKEEPING (apiculture-amber) */
[data-theme="apiculture-amber"] {
  --bg-primary: #120e06;
  --bg-surface: #1a1409;
  --bg-card: #241c0e;
  --bg-card-hover: #302613;
  --border-subtle: #423219;
  --border-focus: #f59e0b;
  --accent-primary: #f59e0b;
  --accent-blue: #f59e0b;
  --accent-glow: rgba(245, 158, 11, 0.15);
  --badge-bg: rgba(245, 158, 11, 0.12);
  --badge-border: rgba(245, 158, 11, 0.35);
  --tool-output-bg: #1c1507;
  --hero-glow: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.12) 0%, transparent 65%);
  --header-bg: rgba(26, 20, 9, 0.88);
}

/* THEME: WOODWORKING (warm-craft-joinery) */
[data-theme="warm-craft-joinery"] {
  --bg-primary: #140f0b;
  --bg-surface: #1e1610;
  --bg-card: #291e17;
  --bg-card-hover: #38281e;
  --border-subtle: #4a3424;
  --border-focus: #d97706;
  --accent-primary: #d97706;
  --accent-blue: #d97706;
  --accent-glow: rgba(217, 119, 6, 0.15);
  --badge-bg: rgba(217, 119, 6, 0.12);
  --badge-border: rgba(217, 119, 6, 0.35);
  --tool-output-bg: #1c140d;
  --hero-glow: radial-gradient(circle at 50% 0%, rgba(217, 119, 6, 0.12) 0%, transparent 65%);
  --header-bg: rgba(30, 22, 16, 0.88);
}

/* THEME: CHICKENS (pastured-poultry) */
[data-theme="pastured-poultry"] {
  --bg-primary: #0e140f;
  --bg-surface: #141c15;
  --bg-card: #1c271e;
  --bg-card-hover: #263529;
  --border-subtle: #314434;
  --border-focus: #22c55e;
  --accent-primary: #22c55e;
  --accent-blue: #22c55e;
  --accent-glow: rgba(34, 197, 94, 0.15);
  --badge-bg: rgba(34, 197, 94, 0.12);
  --badge-border: rgba(34, 197, 94, 0.35);
  --tool-output-bg: #131f15;
  --hero-glow: radial-gradient(circle at 50% 0%, rgba(34, 197, 94, 0.12) 0%, transparent 65%);
  --header-bg: rgba(20, 28, 21, 0.88);
}

/* THEME: ELECTRICAL (nec-circuit-standards) */
[data-theme="nec-circuit-standards"] {
  --bg-primary: #0c0e14;
  --bg-surface: #131722;
  --bg-card: #1a2030;
  --bg-card-hover: #232b40;
  --border-subtle: #303b54;
  --border-focus: #eab308;
  --accent-primary: #eab308;
  --accent-blue: #eab308;
  --accent-glow: rgba(234, 179, 8, 0.15);
  --badge-bg: rgba(234, 179, 8, 0.12);
  --badge-border: rgba(234, 179, 8, 0.35);
  --tool-output-bg: #141724;
  --hero-glow: radial-gradient(circle at 50% 0%, rgba(234, 179, 8, 0.12) 0%, transparent 65%);
  --header-bg: rgba(19, 23, 34, 0.88);
}

/* THEME: BUNIONS (anatomical-barefoot) */
[data-theme="anatomical-barefoot"] {
  --bg-primary: #0b1414;
  --bg-surface: #111d1d;
  --bg-card: #192a2a;
  --bg-card-hover: #213737;
  --border-subtle: #2d4c4c;
  --border-focus: #14b8a6;
  --accent-primary: #14b8a6;
  --accent-blue: #14b8a6;
  --accent-glow: rgba(20, 184, 166, 0.15);
  --badge-bg: rgba(20, 184, 166, 0.12);
  --badge-border: rgba(20, 184, 166, 0.35);
  --tool-output-bg: #102121;
  --hero-glow: radial-gradient(circle at 50% 0%, rgba(20, 184, 166, 0.12) 0%, transparent 65%);
  --header-bg: rgba(17, 29, 29, 0.88);
}

/* THEME: WATER-FILTERS (pure-water-osmosis) */
[data-theme="pure-water-osmosis"] {
  --bg-primary: #081119;
  --bg-surface: #0e1b27;
  --bg-card: #152737;
  --bg-card-hover: #1d3449;
  --border-subtle: #274561;
  --border-focus: #38bdf8;
  --accent-primary: #38bdf8;
  --accent-blue: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.15);
  --badge-bg: rgba(56, 189, 248, 0.12);
  --badge-border: rgba(56, 189, 248, 0.35);
  --tool-output-bg: #0c1f30;
  --hero-glow: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.12) 0%, transparent 65%);
  --header-bg: rgba(14, 27, 39, 0.88);
}

/* THEME: SHARPENING (honing-metallurgy) */
[data-theme="honing-metallurgy"] {
  --bg-primary: #0f1217;
  --bg-surface: #171b22;
  --bg-card: #202630;
  --bg-card-hover: #2b3340;
  --border-subtle: #3b4657;
  --border-focus: #94a3b8;
  --accent-primary: #cbd5e1;
  --accent-blue: #cbd5e1;
  --accent-glow: rgba(203, 213, 225, 0.15);
  --badge-bg: rgba(203, 213, 225, 0.12);
  --badge-border: rgba(203, 213, 225, 0.35);
  --tool-output-bg: #151b24;
  --hero-glow: radial-gradient(circle at 50% 0%, rgba(203, 213, 225, 0.12) 0%, transparent 65%);
  --header-bg: rgba(23, 27, 34, 0.88);
}

/* THEME: CAST-IRON (heritage-cast-iron) */
[data-theme="heritage-cast-iron"] {
  --bg-primary: #12100e;
  --bg-surface: #1b1714;
  --bg-card: #26201b;
  --bg-card-hover: #332b24;
  --border-subtle: #473b31;
  --border-focus: #ea580c;
  --accent-primary: #f97316;
  --accent-blue: #f97316;
  --accent-glow: rgba(249, 115, 22, 0.15);
  --badge-bg: rgba(249, 115, 22, 0.12);
  --badge-border: rgba(249, 115, 22, 0.35);
  --tool-output-bg: #1d1712;
  --hero-glow: radial-gradient(circle at 50% 0%, rgba(249, 115, 22, 0.12) 0%, transparent 65%);
  --header-bg: rgba(27, 23, 20, 0.88);
}

/* THEME: RAINWATER (rainwater-harvest) */
[data-theme="rainwater-harvest"] {
  --bg-primary: #0a1317;
  --bg-surface: #0f1c22;
  --bg-card: #162831;
  --bg-card-hover: #1e3540;
  --border-subtle: #294757;
  --border-focus: #0284c7;
  --accent-primary: #0ea5e9;
  --accent-blue: #0ea5e9;
  --accent-glow: rgba(14, 165, 233, 0.15);
  --badge-bg: rgba(14, 165, 233, 0.12);
  --badge-border: rgba(14, 165, 233, 0.35);
  --tool-output-bg: #0f2029;
  --hero-glow: radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.12) 0%, transparent 65%);
  --header-bg: rgba(15, 28, 34, 0.88);
}

/* THEME: SOURDOUGH (artisan-sourdough) */
[data-theme="artisan-sourdough"] {
  --bg-primary: #140e0a;
  --bg-surface: #1c140e;
  --bg-card: #271c14;
  --bg-card-hover: #35261b;
  --border-subtle: #4a3525;
  --border-focus: #b45309;
  --accent-primary: #d97706;
  --accent-blue: #d97706;
  --accent-glow: rgba(217, 119, 6, 0.15);
  --badge-bg: rgba(217, 119, 6, 0.12);
  --badge-border: rgba(217, 119, 6, 0.35);
  --tool-output-bg: #1e140d;
  --hero-glow: radial-gradient(circle at 50% 0%, rgba(217, 119, 6, 0.12) 0%, transparent 65%);
  --header-bg: rgba(28, 20, 14, 0.88);
}

/* THEME: SMALL-ENGINE (small-engine-carb) */
[data-theme="small-engine-carb"] {
  --bg-primary: #111114;
  --bg-surface: #19191d;
  --bg-card: #232328;
  --bg-card-hover: #2f2f36;
  --border-subtle: #41414a;
  --border-focus: #f97316;
  --accent-primary: #f97316;
  --accent-blue: #f97316;
  --accent-glow: rgba(249, 115, 22, 0.15);
  --badge-bg: rgba(249, 115, 22, 0.12);
  --badge-border: rgba(249, 115, 22, 0.35);
  --tool-output-bg: #1c1a17;
  --hero-glow: radial-gradient(circle at 50% 0%, rgba(249, 115, 22, 0.12) 0%, transparent 65%);
  --header-bg: rgba(25, 25, 29, 0.88);
}

/* THEME: RAM-PUMPS (hydraulic-ram-pump) */
[data-theme="hydraulic-ram-pump"] {
  --bg-primary: #0a1114;
  --bg-surface: #101b20;
  --bg-card: #17272e;
  --bg-card-hover: #20343e;
  --border-subtle: #2d4856;
  --border-focus: #eab308;
  --accent-primary: #eab308;
  --accent-blue: #eab308;
  --accent-glow: rgba(234, 179, 8, 0.15);
  --badge-bg: rgba(234, 179, 8, 0.12);
  --badge-border: rgba(234, 179, 8, 0.35);
  --tool-output-bg: #122026;
  --hero-glow: radial-gradient(circle at 50% 0%, rgba(234, 179, 8, 0.12) 0%, transparent 65%);
  --header-bg: rgba(16, 27, 32, 0.88);
}

/* THEME: SEED-SAVING (botanical-seed-heirloom) */
[data-theme="botanical-seed-heirloom"] {
  --bg-primary: #0c140d;
  --bg-surface: #121c13;
  --bg-card: #19271a;
  --bg-card-hover: #223424;
  --border-subtle: #2f4932;
  --border-focus: #16a34a;
  --accent-primary: #22c55e;
  --accent-blue: #22c55e;
  --accent-glow: rgba(34, 197, 94, 0.15);
  --badge-bg: rgba(34, 197, 94, 0.12);
  --badge-border: rgba(34, 197, 94, 0.35);
  --tool-output-bg: #122114;
  --hero-glow: radial-gradient(circle at 50% 0%, rgba(34, 197, 94, 0.12) 0%, transparent 65%);
  --header-bg: rgba(18, 28, 19, 0.88);
}

/* THEME: LIVING-SOIL (living-soil-compost) */
[data-theme="living-soil-compost"] {
  --bg-primary: #11140b;
  --bg-surface: #181d10;
  --bg-card: #222916;
  --bg-card-hover: #2e371e;
  --border-subtle: #3f4b2a;
  --border-focus: #84cc16;
  --accent-primary: #84cc16;
  --accent-blue: #84cc16;
  --accent-glow: rgba(132, 204, 22, 0.15);
  --badge-bg: rgba(132, 204, 22, 0.12);
  --badge-border: rgba(132, 204, 22, 0.35);
  --tool-output-bg: #19210e;
  --hero-glow: radial-gradient(circle at 50% 0%, rgba(132, 204, 22, 0.12) 0%, transparent 65%);
  --header-bg: rgba(24, 29, 16, 0.88);
}

/* THEME: NANO-REEF (nano-reef-actinic) */
[data-theme="nano-reef-actinic"] {
  --bg-primary: #070918;
  --bg-surface: #0c1025;
  --bg-card: #131936;
  --bg-card-hover: #1b234a;
  --border-subtle: #273366;
  --border-focus: #a855f7;
  --accent-primary: #c084fc;
  --accent-blue: #c084fc;
  --accent-glow: rgba(192, 132, 252, 0.18);
  --badge-bg: rgba(192, 132, 252, 0.12);
  --badge-border: rgba(192, 132, 252, 0.35);
  --tool-output-bg: #111433;
  --hero-glow: radial-gradient(circle at 50% 0%, rgba(168, 85, 247, 0.15) 0%, transparent 65%);
  --header-bg: rgba(12, 16, 37, 0.88);
}

/* THEME: SHRIMP (dwarf-shrimp-biotope) */
[data-theme="dwarf-shrimp-biotope"] {
  --bg-primary: #091412;
  --bg-surface: #0e1e1b;
  --bg-card: #152b27;
  --bg-card-hover: #1d3b35;
  --border-subtle: #285149;
  --border-focus: #ef4444;
  --accent-primary: #f87171;
  --accent-blue: #f87171;
  --accent-glow: rgba(248, 113, 113, 0.15);
  --badge-bg: rgba(248, 113, 113, 0.12);
  --badge-border: rgba(248, 113, 113, 0.35);
  --tool-output-bg: #152420;
  --hero-glow: radial-gradient(circle at 50% 0%, rgba(239, 68, 68, 0.12) 0%, transparent 65%);
  --header-bg: rgba(14, 30, 27, 0.88);
}

/* THEME: LEATHERCRAFT (fine-leathercraft) */
[data-theme="fine-leathercraft"] {
  --bg-primary: #140f0c;
  --bg-surface: #1d1611;
  --bg-card: #271e17;
  --bg-card-hover: #342820;
  --border-subtle: #48382d;
  --border-focus: #b45309;
  --accent-primary: #d97706;
  --accent-blue: #d97706;
  --accent-glow: rgba(217, 119, 6, 0.15);
  --badge-bg: rgba(217, 119, 6, 0.12);
  --badge-border: rgba(217, 119, 6, 0.35);
  --tool-output-bg: #1e1610;
  --hero-glow: radial-gradient(circle at 50% 0%, rgba(217, 119, 6, 0.12) 0%, transparent 65%);
  --header-bg: rgba(29, 22, 17, 0.88);
}

/* THEME: ESPRESSO (specialty-espresso-crema) */
[data-theme="specialty-espresso-crema"] {
  --bg-primary: #120c08;
  --bg-surface: #1a120c;
  --bg-card: #241911;
  --bg-card-hover: #302217;
  --border-subtle: #433021;
  --border-focus: #ea580c;
  --accent-primary: #f97316;
  --accent-blue: #f97316;
  --accent-glow: rgba(249, 115, 22, 0.15);
  --badge-bg: rgba(249, 115, 22, 0.12);
  --badge-border: rgba(249, 115, 22, 0.35);
  --tool-output-bg: #1d130a;
  --hero-glow: radial-gradient(circle at 50% 0%, rgba(249, 115, 22, 0.12) 0%, transparent 65%);
  --header-bg: rgba(26, 18, 12, 0.88);
}

/* THEME: BONSAI (bonsai-akadama-zen) */
[data-theme="bonsai-akadama-zen"] {
  --bg-primary: #11130d;
  --bg-surface: #181c13;
  --bg-card: #21261b;
  --bg-card-hover: #2c3324;
  --border-subtle: #3c4632;
  --border-focus: #16a34a;
  --accent-primary: #4ade80;
  --accent-blue: #4ade80;
  --accent-glow: rgba(74, 222, 128, 0.15);
  --badge-bg: rgba(74, 222, 128, 0.12);
  --badge-border: rgba(74, 222, 128, 0.35);
  --tool-output-bg: #191f14;
  --hero-glow: radial-gradient(circle at 50% 0%, rgba(74, 222, 128, 0.12) 0%, transparent 65%);
  --header-bg: rgba(24, 28, 19, 0.88);
}

/* THEME: CHARCUTERIE (salumi-charcuterie-curing) */
[data-theme="salumi-charcuterie-curing"] {
  --bg-primary: #150d0e;
  --bg-surface: #1d1214;
  --bg-card: #28191c;
  --bg-card-hover: #352125;
  --border-subtle: #4b2f34;
  --border-focus: #dc2626;
  --accent-primary: #ef4444;
  --accent-blue: #ef4444;
  --accent-glow: rgba(239, 68, 68, 0.15);
  --badge-bg: rgba(239, 68, 68, 0.12);
  --badge-border: rgba(239, 68, 68, 0.35);
  --tool-output-bg: #1e1114;
  --hero-glow: radial-gradient(circle at 50% 0%, rgba(239, 68, 68, 0.12) 0%, transparent 65%);
  --header-bg: rgba(29, 18, 20, 0.88);
}

/* THEME: KNIVES (cutlery-damascus-steel) */
[data-theme="cutlery-damascus-steel"] {
  --bg-primary: #0d1117;
  --bg-surface: #141922;
  --bg-card: #1c232f;
  --bg-card-hover: #252f3f;
  --border-subtle: #344258;
  --border-focus: #38bdf8;
  --accent-primary: #38bdf8;
  --accent-blue: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.15);
  --badge-bg: rgba(56, 189, 248, 0.12);
  --badge-border: rgba(56, 189, 248, 0.35);
  --tool-output-bg: #131b27;
  --hero-glow: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.12) 0%, transparent 65%);
  --header-bg: rgba(20, 25, 34, 0.88);
}

/* THEME: HANGING (structural-fasteners) */
[data-theme="structural-fasteners"] {
  --bg-primary: #111216;
  --bg-surface: #181a1f;
  --bg-card: #21242b;
  --bg-card-hover: #2b2f38;
  --border-subtle: #3c414d;
  --border-focus: #eab308;
  --accent-primary: #eab308;
  --accent-blue: #eab308;
  --accent-glow: rgba(234, 179, 8, 0.15);
  --badge-bg: rgba(234, 179, 8, 0.12);
  --badge-border: rgba(234, 179, 8, 0.35);
  --tool-output-bg: #191c24;
  --hero-glow: radial-gradient(circle at 50% 0%, rgba(234, 179, 8, 0.12) 0%, transparent 65%);
  --header-bg: rgba(24, 26, 31, 0.88);
}

/* THEME: PLANTAR (plantar-biomechanics) */
[data-theme="plantar-biomechanics"] {
  --bg-primary: #0a131b;
  --bg-surface: #0f1c27;
  --bg-card: #162737;
  --bg-card-hover: #1e354a;
  --border-subtle: #294762;
  --border-focus: #0ea5e9;
  --accent-primary: #38bdf8;
  --accent-blue: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.15);
  --badge-bg: rgba(56, 189, 248, 0.12);
  --badge-border: rgba(56, 189, 248, 0.35);
  --tool-output-bg: #0f2133;
  --hero-glow: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.12) 0%, transparent 65%);
  --header-bg: rgba(15, 28, 39, 0.88);
}

/* THEME: SCIATICA (spine-radiculopathy) */
[data-theme="spine-radiculopathy"] {
  --bg-primary: #0a1219;
  --bg-surface: #0f1a23;
  --bg-card: #152431;
  --bg-card-hover: #1d3142;
  --border-subtle: #274258;
  --border-focus: #0284c7;
  --accent-primary: #0284c7;
  --accent-blue: #0284c7;
  --accent-glow: rgba(2, 132, 199, 0.15);
  --badge-bg: rgba(2, 132, 199, 0.12);
  --badge-border: rgba(2, 132, 199, 0.35);
  --tool-output-bg: #0e1e2c;
  --hero-glow: radial-gradient(circle at 50% 0%, rgba(2, 132, 199, 0.12) 0%, transparent 65%);
  --header-bg: rgba(15, 26, 35, 0.88);
}

/* THEME: WATER-HEATER (water-heating-plumbing) */
[data-theme="water-heating-plumbing"] {
  --bg-primary: #121013;
  --bg-surface: #1a171c;
  --bg-card: #242027;
  --bg-card-hover: #302b34;
  --border-subtle: #433c49;
  --border-focus: #f97316;
  --accent-primary: #f97316;
  --accent-blue: #f97316;
  --accent-glow: rgba(249, 115, 22, 0.15);
  --badge-bg: rgba(249, 115, 22, 0.12);
  --badge-border: rgba(249, 115, 22, 0.35);
  --tool-output-bg: #1d1921;
  --hero-glow: radial-gradient(circle at 50% 0%, rgba(249, 115, 22, 0.12) 0%, transparent 65%);
  --header-bg: rgba(26, 23, 28, 0.88);
}

/* THEME: POOL (cpo-aquabalance) */
[data-theme="cpo-aquabalance"] {
  --bg-primary: #060e17;
  --bg-surface: #0b1725;
  --bg-card: #102135;
  --bg-card-hover: #162d47;
  --border-subtle: #1f3d61;
  --border-focus: #06b6d4;
  --accent-primary: #06b6d4;
  --accent-blue: #06b6d4;
  --accent-glow: rgba(6, 182, 212, 0.15);
  --badge-bg: rgba(6, 182, 212, 0.12);
  --badge-border: rgba(6, 182, 212, 0.35);
  --tool-output-bg: #09192c;
  --hero-glow: radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.12) 0%, transparent 65%);
  --header-bg: rgba(11, 23, 37, 0.88);
}

/* THEME: SOLAR (voltgrid-tetris) */
[data-theme="voltgrid-tetris"] {
  --bg-primary: #0c0f16;
  --bg-surface: #121722;
  --bg-card: #1a2130;
  --bg-card-hover: #232c40;
  --border-subtle: #2f3c57;
  --border-focus: #eab308;
  --accent-primary: #facc15;
  --accent-blue: #facc15;
  --accent-glow: rgba(250, 204, 21, 0.15);
  --badge-bg: rgba(250, 204, 21, 0.12);
  --badge-border: rgba(250, 204, 21, 0.35);
  --tool-output-bg: #131a29;
  --hero-glow: radial-gradient(circle at 50% 0%, rgba(250, 204, 21, 0.12) 0%, transparent 65%);
  --header-bg: rgba(18, 23, 34, 0.88);
}

/* THEME: AIR-FRYER (aerocrisp-convection) */
[data-theme="aerocrisp-convection"] {
  --bg-primary: #140e0b;
  --bg-surface: #1d1410;
  --bg-card: #271b16;
  --bg-card-hover: #34241d;
  --border-subtle: #493329;
  --border-focus: #f97316;
  --accent-primary: #f97316;
  --accent-blue: #f97316;
  --accent-glow: rgba(249, 115, 22, 0.15);
  --badge-bg: rgba(249, 115, 22, 0.12);
  --badge-border: rgba(249, 115, 22, 0.35);
  --tool-output-bg: #1f1510;
  --hero-glow: radial-gradient(circle at 50% 0%, rgba(249, 115, 22, 0.12) 0%, transparent 65%);
  --header-bg: rgba(29, 20, 16, 0.88);
}

/* THEME: CANINE-RAW (canine-barf-nutrition) */
[data-theme="canine-barf-nutrition"] {
  --bg-primary: #140c0e;
  --bg-surface: #1d1114;
  --bg-card: #27171b;
  --bg-card-hover: #341f24;
  --border-subtle: #492b33;
  --border-focus: #dc2626;
  --accent-primary: #ef4444;
  --accent-blue: #ef4444;
  --accent-glow: rgba(239, 68, 68, 0.15);
  --badge-bg: rgba(239, 68, 68, 0.12);
  --badge-border: rgba(239, 68, 68, 0.35);
  --tool-output-bg: #1e1114;
  --hero-glow: radial-gradient(circle at 50% 0%, rgba(239, 68, 68, 0.12) 0%, transparent 65%);
  --header-bg: rgba(29, 17, 20, 0.88);
}

/* THEME: DIVIDENDS (bloomberg-terminal) */
[data-theme="bloomberg-terminal"] {
  --bg-primary: #050a07;
  --bg-surface: #0a130e;
  --bg-card: #0f1d15;
  --bg-card-hover: #162a1f;
  --border-subtle: #203d2d;
  --border-focus: #10b981;
  --accent-primary: #10b981;
  --accent-blue: #10b981;
  --accent-glow: rgba(16, 185, 129, 0.15);
  --badge-bg: rgba(16, 185, 129, 0.12);
  --badge-border: rgba(16, 185, 129, 0.35);
  --tool-output-bg: #0c1711;
  --hero-glow: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.12) 0%, transparent 65%);
  --header-bg: rgba(10, 19, 14, 0.88);
}

/* --------------------------------------------------------------------------
   GLOBAL RESET & SMOOTH SCROLLING
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  background-image: var(--hero-glow);
  background-repeat: no-repeat;
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* --------------------------------------------------------------------------
   STICKY HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.standards-header {
  background-color: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  font-size: 1.5rem;
}

.brand-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-text strong {
  color: var(--accent-primary);
}

.brand-badge {
  background-color: var(--badge-bg);
  color: var(--accent-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  border: 1px solid var(--badge-border);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.standards-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-btn {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.nav-btn:hover, .active-btn {
  color: #fff;
  background-color: var(--bg-card);
  border-color: var(--border-focus);
}

.highlight-tool-btn {
  background: var(--badge-bg) !important;
  border-color: var(--badge-border) !important;
  color: var(--accent-primary) !important;
  font-weight: 700 !important;
}

.highlight-tool-btn:hover {
  background: var(--border-focus) !important;
  color: #fff !important;
}

/* --------------------------------------------------------------------------
   LAYOUT CONTAINER & HERO
   -------------------------------------------------------------------------- */
.standards-container {
  max-width: 1040px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}

.matrix-hero {
  text-align: center;
  margin-bottom: 2rem;
}

.hero-pill {
  display: inline-block;
  background-color: var(--badge-bg);
  color: var(--accent-primary);
  border: 1px solid var(--badge-border);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
  color: #ffffff;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}

.hero-image-banner {
  width: 100%;
  height: 320px;
  border-radius: 14px;
  overflow: hidden;
  margin: 2rem 0;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.niche-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --------------------------------------------------------------------------
   SPONSOR BANNER
   -------------------------------------------------------------------------- */
.sponsor-banner {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
  font-size: 0.88rem;
}

.sponsor-tag {
  background-color: var(--badge-bg);
  color: var(--accent-primary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--badge-border);
  white-space: nowrap;
}

.sponsor-banner p {
  color: var(--text-muted);
  margin: 0;
}

.sponsor-banner a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
  margin-left: 0.5rem;
}

/* --------------------------------------------------------------------------
   INTERACTIVE TOOL DOCK (CALCULATOR / BALANCER)
   -------------------------------------------------------------------------- */
.interactive-tool-dock {
  background: var(--bg-surface);
  border: 1px solid var(--border-focus);
  border-radius: 16px;
  padding: 2.25rem;
  margin: 3.5rem 0;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 24px var(--accent-glow);
  position: relative;
  overflow: hidden;
}

.interactive-tool-dock::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  background: var(--hero-glow);
  pointer-events: none;
}

.tool-header-block {
  margin-bottom: 1.75rem;
}

.tool-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
  display: inline-block;
}

.tool-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.tool-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 800px;
}

.tool-body-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.25rem;
  align-items: stretch;
}

.tool-inputs-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.input-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-field-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
}

.field-val-display {
  font-family: var(--font-mono);
  color: var(--accent-primary);
  font-weight: 700;
}

.tool-slider-control {
  width: 100%;
  accent-color: var(--accent-primary);
  cursor: pointer;
}

.tool-output-col {
  background: var(--tool-output-bg);
  border: 1px solid var(--border-focus);
  border-radius: 12px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.output-top-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.output-big-metric {
  font-family: var(--font-mono);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1.1;
  margin: 0.75rem 0;
}

.output-status-pill {
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.status-safe {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.output-advisory-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

/* --------------------------------------------------------------------------
   FIELD PROTOCOLS SECTION
   -------------------------------------------------------------------------- */
.protocols-section {
  margin: 4.5rem 0 2.5rem 0;
}

.section-head-row {
  margin-bottom: 1.75rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.protocols-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.protocol-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.protocol-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-focus);
}

.proto-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

.proto-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.proto-summary {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.proto-steps {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.85rem;
}

.proto-step-item {
  font-size: 0.82rem;
  color: var(--text-main);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.proto-step-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-primary);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   MATRIX SCREENER GRID (CARDS)
   -------------------------------------------------------------------------- */
.matrix-section {
  margin: 4.5rem 0 2.5rem 0;
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.matrix-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.matrix-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-focus);
  background-color: var(--bg-card-hover);
}

.card-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.card-icon {
  font-size: 1.25rem;
}

.card-cat {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.35;
  color: #ffffff;
}

.card-stats {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.8rem;
  gap: 0.5rem;
}

.stat-row span {
  color: var(--text-subtle);
  text-transform: capitalize;
}

.stat-row strong {
  font-family: var(--font-mono);
  color: var(--text-main);
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-bottom {
  margin-top: 1rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border-subtle);
}

.view-spec {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* --------------------------------------------------------------------------
   SPEC CARD / SUBPAGES
   -------------------------------------------------------------------------- */
.breadcrumb-trail {
  font-size: 0.85rem;
  color: var(--text-subtle);
  margin-bottom: 1.5rem;
}

.breadcrumb-trail a {
  color: var(--accent-primary);
  text-decoration: none;
}

.spec-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2rem;
}

.card-header-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon-avatar {
  font-size: 2.2rem;
}

.spec-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-primary);
  font-weight: 700;
}

.spec-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
}

.quick-answer-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-focus);
  border-radius: 10px;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.quick-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-primary);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.quick-text {
  font-size: 0.95rem;
  color: var(--text-main);
}

.specs-bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.bento-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.tile-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-subtle);
}

.tile-value {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-main);
}

.field-notes-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.notes-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.notes-body {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.6;
}

.related-section {
  margin-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
}

.related-section h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.related-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.related-mini-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.85rem;
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: border-color 0.2s ease;
}

.related-mini-card:hover {
  border-color: var(--border-focus);
}

.mini-icon {
  font-size: 1.2rem;
}

.mini-category {
  display: block;
  font-size: 0.7rem;
  color: var(--text-subtle);
}

/* --------------------------------------------------------------------------
   EDITORIAL HUB & TOPIC CLUSTER ARCHITECTURE
   Canonical: Post Pilar (Cover Story) + Satélites (Cluster Grid)
   -------------------------------------------------------------------------- */

/* Cover Story (Featured Pillar Post) on Hub Homepage */
.cover-story-container {
  margin: 2.5rem 0 3.5rem 0;
}

.cover-story-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-surface) 100%);
  border: 2px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2.25rem 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 30px var(--accent-glow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.cover-story-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-focus);
}

.cover-story-badge-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.cover-pill-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
}

.cover-read-time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cover-story-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 800;
  line-height: 1.22;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.cover-story-title a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.2s ease;
}

.cover-story-title a:hover {
  color: var(--accent-primary);
}

.cover-story-excerpt {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  max-width: 950px;
}

.cover-story-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
}

.cover-author-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cover-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.cover-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-primary);
  color: #000;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 14px var(--accent-glow);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.cover-cta-btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

/* Topic Cluster: Satellite Articles Grid */
.cluster-articles-section {
  margin: 4rem 0;
}

.cluster-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.cluster-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cluster-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-focus);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.cluster-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.cluster-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-primary);
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.cluster-time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-subtle);
}

.cluster-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 0.6rem;
}

.cluster-card:hover .cluster-card-title {
  color: var(--accent-primary);
}

.cluster-card-snippet {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.cluster-card-link-text {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   DEDICATED ARTICLE LAYOUT & CONTEXTUAL BRIDGE
   -------------------------------------------------------------------------- */
.article-page-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem 1.5rem;
}

.article-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.article-breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.article-breadcrumbs a:hover {
  color: var(--accent-primary);
}

/* Canonical Contextual Bridge: Connects Satellite back to Master Pillar */
.cluster-bridge-banner {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border-focus);
  border-left: 4px solid var(--accent-primary);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0 2rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.bridge-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.bridge-content {
  flex-grow: 1;
}

.bridge-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-primary);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.bridge-content p {
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text-main);
  margin: 0;
}

.bridge-content a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}

/* Article Editorial Header */
.article-editorial-header {
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 2rem;
}

.article-kicker-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.article-main-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.article-meta-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

/* Article Body Typography */
.article-rich-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-main);
}

.article-rich-body h2 {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 2.5rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.article-rich-body h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 2rem 0 0.75rem 0;
}

.article-rich-body p {
  margin-bottom: 1.4rem;
  color: #e5e7eb;
}

.article-rich-body ul, .article-rich-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.article-rich-body li {
  margin-bottom: 0.6rem;
  line-height: 1.65;
}

.article-rich-body strong {
  color: #ffffff;
}

/* Callout Boxes */
.article-callout {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--border-focus);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
}

.article-callout.warning {
  border-left-color: var(--accent-gold);
}

.article-callout.pro-tip {
  border-left-color: var(--accent-green);
}

.callout-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.callout-body {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* Article Data Table */
.article-table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
}

.article-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}

.article-data-table th {
  background: var(--bg-surface);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.article-data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.article-data-table tr:hover td {
  background: var(--bg-card-hover);
  color: var(--text-main);
}

/* Sister Cluster Cards at Bottom of Article */
.sister-cluster-section {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-subtle);
}

.sister-cluster-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.sister-cluster-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.sister-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.standards-footer {
  border-top: 1px solid var(--border-subtle);
  margin-top: 5rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.footer-inner p {
  font-size: 0.82rem;
  color: var(--text-subtle);
}

.footer-nav-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.footer-nav-row a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-nav-row a:hover {
  color: var(--accent-primary);
}

/* --------------------------------------------------------------------------
   RESPONSIVE QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .tool-body-grid {
    grid-template-columns: 1fr;
  }
  .standards-nav {
    display: none;
  }
  .cover-story-card {
    padding: 1.5rem;
  }
  .cluster-articles-grid {
    grid-template-columns: 1fr;
  }
}

