/* ════════════════════════════════════════════════════════════════
   Property of JIL Sovereign Technologies, Inc. (DE).
   All Rights Reserved. 2025-2026 Patent Pending.
   Author: Jeff Mendonca (Dallas TX)
   File:   apps/central-portal/public/assets/jil-v14.css
   Repo:   jammer-x/jil-sovereign-full-go-live
   Version: 2026.03.30-965
   ════════════════════════════════════════════════════════════════
   JIL SOVEREIGN V17 DESIGN SYSTEM
   Light-first theme with blue tech accents + gold premium signals
   ════════════════════════════════════════════════════════════════ */

/* ── Design Tokens (fallbacks - light theme default, overridden by jil-tokens.css) ── */
:root {
  --bg-0: #FFFFFF;
  --bg-1: #FFFFFF;
  --bg-2: #FFFFFF;
  --bg-soft: #F0F2F5;
  --bg-muted: #F0F2F5;
  --bg: #FFFFFF;
  --bg-graphite: #102A43;
  --glow: 0 0 40px rgba(37,99,235,0.12);
  --text: #0F172A;
  --text-heading: #0F172A;
  --text-muted: #1E293B;
  --text-secondary: #0F172A;
  --gold: #C9A227;
  --gold-hover: #A87C1F;
  --gold-light: rgba(201,162,39,0.20);
  --blue: #2563EB;
  --blue-hover: #1D4ED8;
  --blue-light: rgba(37,99,235,0.10);
  --navy: #102A43;
  --navy-mid: #0F172A;
  --white: #FFFFFF;
  --border: #CBD5E1;
  --border-light: #CBD5E1;
  --border-0: #CBD5E1;
  --border-1: #CBD5E1;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(16,42,67,0.04);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --transition: 0.25s ease;
  --surface: #FFFFFF;
  --muted: #1E293B;
  --dark-gray: #0F172A;
  --line: #CBD5E1;
  --accent: #2563EB;
  --accent-a: #2563EB;
  --accent-b: #2563EB;
  --accent-c: #C9A227;
  --teal: #2563EB;
  --glass: rgba(255,255,255,0.85);
  --glass-border: #CBD5E1;
}

/* ── Font Stack (DM Sans + DM Mono) ────────────────────────────
   Site-wide standard. Body and hero h1s are both DM Sans;
   code/pills/monospace get DM Mono. Canonical-lock 2026-05-10:
   sans-serif only - serif display fonts have been removed. */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=DM+Mono:wght@400;500&display=swap');

/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }

body {
  font-family: 'DM Sans', 'Helvetica Neue', Helvetica, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-0);
  padding-top: 64px;
  overflow-x: hidden;
}

code, kbd, pre, samp, .mono, [class*="-mono"] {
  font-family: 'DM Mono', 'IBM Plex Mono', 'Menlo', 'SF Mono', 'Courier New', monospace;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ── Typography - 4-Level Hierarchy ─────────────────────────────
   Level 1: Page/Hero titles       (v2-hero-title)
   Level 2: Section titles         (v2-section-title)
   Level 3: Subtitles/Leads        (v2-section-subtitle, v2-body-lg)
   Level 4: Body copy              (v2-body, v2-small)
   Eyebrow: Labels/Tags            (v2-label)
   ───────────────────────────────────────────────────────────── */

/* Level 1 - Page / Hero Title. Canonical-lock 2026-05-10: sans-serif
   only. Editorial serif direction (Instrument Serif / DM Serif
   Display) was reverted in Phase 4; this stack matches body. */
.v2-hero-title {
  font-family: 'DM Sans', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(2rem, 3.75vw, 3.25rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}
.v2-hero-title em {
  font-family: 'DM Sans', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-style: italic;
  font-weight: 600;
  color: var(--gold, #C9A227);
}
/* Level 2 - Section Title */
.v2-section-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-heading);
  letter-spacing: -0.015em;
}
/* Level 3 - Subtitle / Lead */
.v2-section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 680px;
}
/* Eyebrow - Labels & Tags
   WCAG AA fix 2026-05-14: --gold (#C9A227) on cream bg only hits 2.31:1
   contrast — fails AA. Switch to --label-eyebrow (#7C5F18 light /
   --gold-soft dark) which hits 5.56:1 ✓ AA while staying gold-toned. */
.v2-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--label-eyebrow, var(--gold));
}
/* Level 4 - Body Copy */
.v2-body { font-size: 0.9375rem; line-height: 1.7; color: var(--text); }
.v2-body-lg { font-size: 1.0625rem; line-height: 1.7; color: var(--text); }
.v2-small { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.6; }

/* Standard alignment - all content left-aligned */
.v2-hero-title,
.v2-section-title,
.v2-section-subtitle { text-align: left; }

/* ── Standard Hero (all pages) ────────────────────────────────── */
.v2-hero {
  padding: 3rem 0 2rem;
  background:
    radial-gradient(900px 520px at 50% -10%, rgba(212,175,55,0.12) 0%, transparent 60%),
    linear-gradient(160deg, var(--bg-0) 0%, var(--surface, #fff) 50%, var(--bg-0) 100%);
}
.v2-hero .v2-label { margin-bottom: 0.75rem; }
.v2-hero .v2-hero-title { margin-bottom: 1rem; }
.v2-hero .v2-section-subtitle { margin-bottom: 1.25rem; }

/* ── Layout ───────────────────────────────────────────────────── */
.v2-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.v2-container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}
.v2-section {
  padding: 2.75rem 0;
}
.v2-section-lg {
  padding: 3.25rem 0;
}
.v2-section-alt {
  background: var(--gradient-section, linear-gradient(180deg, var(--bg-surface, #10171C) 0%, var(--bg-page, #0A0D10) 100%));
  color: #F5F5F5;
}
.v2-section-alt .v2-section-title,
.v2-section-alt .v2-hero-title { color: #FFFFFF; }
.v2-section-alt .v2-section-subtitle,
.v2-section-alt .v2-body,
.v2-section-alt .v2-small { color: #E8E8E8; }
.v2-section-alt .v2-label { color: var(--gold); }
/* Dark section: all standard HTML elements must use light text */
.v2-section-alt h2,
.v2-section-alt h3,
.v2-section-alt h4 { color: #FFFFFF; }
.v2-section-alt p,
.v2-section-alt li,
.v2-section-alt td,
.v2-section-alt dd,
.v2-section-alt dt,
.v2-section-alt blockquote,
.v2-section-alt figcaption,
.v2-section-alt span,
.v2-section-alt div { color: #E8E8E8; }
.v2-section-alt th { color: #FFFFFF; background: rgba(255,255,255,0.08); }
.v2-section-alt strong,
.v2-section-alt b { color: #FFFFFF; }
.v2-section-alt a { color: #00D4AA; }
.v2-section-alt a:hover { color: #33E0BB; }
.v2-section-alt a.btn-primary,
.v2-section-alt a.btn-gold,
.v2-section-alt a.btn-white { color: #111113; }
.v2-section-alt a.btn-outline { color: #F5F5F5; border-color: #F5F5F5; }
.v2-section-alt a.btn-outline:hover { background: #F5F5F5; color: #111113; }
.v2-section-alt code { color: #e2e8f0; background: rgba(0,0,0,0.35); }
.v2-section-alt table { border-color: rgba(245,245,245,0.1); }
.v2-section-alt td,
.v2-section-alt th { border-color: rgba(245,245,245,0.1); }
.v2-section-alt .v2-card { background: rgba(245,245,245,0.06); border-color: rgba(245,245,245,0.1); }
.v2-section-alt .v2-card h3 { color: #FFFFFF; }
.v2-section-alt .v2-card p { color: #E8E8E8; }
.v2-section-navy,
.v2-section-graphite {
  background: var(--gradient-section, linear-gradient(180deg, var(--bg-surface, #10171C) 0%, var(--bg-page, #0A0D10) 100%));
  color: #F5F5F5;
}
.v2-section-navy .v2-section-title,
.v2-section-navy .v2-hero-title,
.v2-section-graphite .v2-section-title,
.v2-section-graphite .v2-hero-title { color: #FFFFFF; }
.v2-section-navy .v2-section-subtitle,
.v2-section-navy .v2-body,
.v2-section-navy .v2-small,
.v2-section-graphite .v2-section-subtitle,
.v2-section-graphite .v2-body,
.v2-section-graphite .v2-small { color: #E8E8E8; }
/* Dark section: all standard HTML elements (navy/graphite) */
.v2-section-navy h2, .v2-section-graphite h2,
.v2-section-navy h3, .v2-section-graphite h3,
.v2-section-navy h4, .v2-section-graphite h4 { color: #FFFFFF; }
.v2-section-navy p, .v2-section-graphite p,
.v2-section-navy li, .v2-section-graphite li,
.v2-section-navy td, .v2-section-graphite td,
.v2-section-navy dd, .v2-section-graphite dd,
.v2-section-navy span, .v2-section-graphite span,
.v2-section-navy div, .v2-section-graphite div { color: #E8E8E8; }
.v2-section-navy th, .v2-section-graphite th { color: #FFFFFF; background: rgba(255,255,255,0.08); }
.v2-section-navy strong, .v2-section-graphite strong,
.v2-section-navy b, .v2-section-graphite b { color: #FFFFFF; }
.v2-section-navy a, .v2-section-graphite a { color: #00D4AA; }
.v2-section-navy a.btn-primary, .v2-section-graphite a.btn-primary,
.v2-section-navy a.btn-gold, .v2-section-graphite a.btn-gold,
.v2-section-navy a.btn-white, .v2-section-graphite a.btn-white { color: #111113; }
.v2-section-navy a.btn-outline, .v2-section-graphite a.btn-outline { color: #F5F5F5; border-color: #F5F5F5; }
.v2-section-navy a.btn-outline:hover, .v2-section-graphite a.btn-outline:hover { background: #F5F5F5; color: #111113; }
.v2-section-navy code, .v2-section-graphite code { color: #e2e8f0; background: rgba(0,0,0,0.35); }
.v2-section-navy table, .v2-section-graphite table,
.v2-section-navy td, .v2-section-graphite td,
.v2-section-navy th, .v2-section-graphite th { border-color: rgba(245,245,245,0.1); }

.v2-text-center { text-align: center; }
.v2-mx-auto { margin-left: auto; margin-right: auto; }

/* ── Grid ─────────────────────────────────────────────────────── */
.v2-grid { display: grid; gap: 1.5rem; }
.v2-grid-2 { grid-template-columns: repeat(2, 1fr); }
.v2-grid-3 { grid-template-columns: repeat(3, 1fr); }
.v2-grid-4 { grid-template-columns: repeat(4, 1fr); }
.v2-grid-6 { grid-template-columns: repeat(6, 1fr); }
.v2-flex { display: flex; }
.v2-flex-center { display: flex; align-items: center; justify-content: center; }
.v2-flex-between { display: flex; align-items: center; justify-content: space-between; }
.v2-flex-col { flex-direction: column; }
.v2-gap-1 { gap: 0.5rem; }
.v2-gap-2 { gap: 1rem; }
.v2-gap-3 { gap: 1.5rem; }
.v2-gap-4 { gap: 1.5rem; }

/* ── Navigation (overridden by jil-header.css when loaded) ───── */
.v2-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--bg-overlay, rgba(10,13,20,0.85));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle, rgba(255,255,255,0.08));
  transition: box-shadow var(--transition), background var(--transition);
}
.v2-header.scrolled {
  box-shadow: var(--shadow-md);
}
.v2-nav {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.v2-nav-item:has(.v2-mega-dropdown-full) {
  position: static;
}
.v2-nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
  height: 100%;
}
.v2-nav-logo img {
  display: block;
  height: 36px;
  width: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.v14-logo-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary, var(--text));
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.v2-nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
}
.v2-nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.v2-nav-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0 0.85rem;
  height: 100%;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
  white-space: nowrap;
}
.v2-nav-link:hover { color: var(--text-primary, var(--text)); }
.v2-nav-link.active { color: var(--gold); }
.v2-mobile-link.active h4 { color: var(--gold); }
.v2-nav-link .chevron {
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform 0.3s;
  margin-top: 1px;
}
.v2-nav-item:hover .chevron { transform: rotate(180deg); }

/* ── Nav Mega Dropdown ───────────────────────────────────────── */
.v2-mega-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  min-width: 720px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-lg);
  z-index: 10000;
}
.v2-nav-item:hover .v2-mega-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.v2-mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.v2-mega-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--transition);
}
.v2-mega-item:hover { background: var(--bg-1); }
.v2-mega-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  background: var(--blue-tint, rgba(47,107,255,0.12));
}
.v2-mega-text h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.15rem;
}
.v2-mega-text p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ── 6-Column Docs Mega Dropdown ─────────────────────────────── */
.v2-mega-dropdown-full {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  width: 960px;
  max-width: calc(100vw - 2rem);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-lg);
  z-index: 10000;
}
.v2-nav-item:hover .v2-mega-dropdown-full {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.v2-mega-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding: 0.75rem 1rem;
}
.v2-mega-grid-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}
.v2-mega-col-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-light);
}
.v2-mega-link {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 0.3rem 0;
  transition: color 0.2s;
}
.v2-mega-link:hover { color: var(--gold); }

/* Simple dropdown (non-mega) */
.v2-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-lg);
  z-index: 10000;
}
/* Hover bridge - prevents accidental dropdown close when moving cursor */
.v2-dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}
.v2-nav-item:hover .v2-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.v2-dropdown-item {
  display: block;
  padding: 0.6rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--transition);
}
.v2-dropdown-item:hover { background: var(--bg-1); color: var(--gold); }

/* ── Nav Actions (right side) ────────────────────────────────── */
.v2-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 100%;
}

/* ── Nav CTA Buttons ───────────────────────────────────────── */
.v14-btn-demo {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border: 1px solid var(--border-subtle, var(--border));
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.v14-btn-demo:hover {
  border-color: var(--border-strong, var(--border-1));
  color: var(--text-primary, var(--text));
}
.v14-btn-buy {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-soft, #F0F2F5);
  color: var(--text-primary, #0F172A);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border: 1px solid var(--border-subtle, #D6E0EB);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.v14-btn-buy:hover {
  background: #D6E0EB;
  border-color: #CBD5E1;
  transform: translateY(-1px);
}

/* ── Hamburger (Mobile) ──────────────────────────────────────── */
.v2-hamburger {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle, var(--border));
  border-radius: 6px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 10001;
  padding: 12px 10px;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
.v2-hamburger:active {
  background: var(--bg-soft);
}
.v2-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary, var(--text));
  position: absolute;
  left: 10px;
  right: 10px;
  width: calc(100% - 20px);
  transition: all 0.3s ease;
  border-radius: 2px;
}
.v2-hamburger span:nth-child(1) { top: 12px; }
.v2-hamburger span:nth-child(2) { top: 21px; }
.v2-hamburger span:nth-child(3) { top: 30px; }
.v2-hamburger.open { background: var(--bg-soft); }
.v2-hamburger.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.v2-hamburger.open span:nth-child(2) { opacity: 0; }
.v2-hamburger.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ── Mobile Menu ─────────────────────────────────────────────── */
.v2-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-overlay, rgba(10,13,20,0.92));
  backdrop-filter: blur(20px);
  z-index: 10000;
  padding: 5rem 1.5rem 2rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.v2-mobile-menu.open { display: block; }
body.v2-menu-open { overflow: hidden; }
.v2-mobile-section { margin-bottom: 1.5rem; }
.v2-mobile-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle, var(--border));
}
.v2-mobile-link {
  display: block;
  padding: 0.75rem 0;
  text-decoration: none;
  border-bottom: 1px solid var(--border-subtle, var(--border));
}
.v2-mobile-link h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary, var(--text));
}
.v2-mobile-link p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.1rem;
}
.v2-mobile-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.875rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 1rem;
  background: var(--gold);
  color: var(--text-on-gold, #111113);
  text-decoration: none;
}

/* ── Buttons ──────────────────────────────────────────────────── */
/* Squared cranberry primary CTA (site-wide 2026-04-24). Matches
   retail's "Browse all Products" button. */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--crimson, #9B1C1F);
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 0;
  border: 1px solid var(--crimson, #9B1C1F);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--crimson-2, #7D1516);
  border-color: var(--crimson-2, #7D1516);
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(155, 28, 31, 0.18);
}
.btn-primary-lg {
  font-size: 1.05rem;
  padding: 16px 32px;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-heading);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 980px;
  border: 1px solid var(--text-heading);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-outline:hover {
  background: var(--text-heading);
  color: var(--white);
  transform: translateY(-1px);
}
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--bg-soft, #F0F2F5);
  color: var(--text-primary, #0F172A);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 980px;
  border: 1px solid var(--border-subtle, #D6E0EB);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-gold:hover {
  background: #D6E0EB;
  border-color: #CBD5E1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--white);
  color: var(--text-heading);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-white:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-sm { font-size: 0.82rem; padding: 8px 16px; }

/* ── Cards ────────────────────────────────────────────────────── */
.v2-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all var(--transition);
}
.v2-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-1);
}
.v2-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  background: var(--blue-tint, rgba(47,107,255,0.12));
  color: var(--blue);
}
.v2-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}
.v2-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.v2-card-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text);
  margin-top: 0.5rem;
}
.v2-card-feature::before {
  content: '\2713';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Stats Row ────────────────────────────────────────────────── */
.v2-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.v2-stat { text-align: center; }
.v2-stat-value {
  font-size: 1.625rem;
  font-weight: 300;
  color: var(--text-heading);
  line-height: 1.2;
}
.v2-stat-label {
  font-size: 0.75rem;
  color: var(--gold);
  margin-top: 0.25rem;
}
.v2-section-navy .v2-stat-value,
.v2-section-graphite .v2-stat-value { color: #FFFFFF; }
.v2-section-navy .v2-stat-label,
.v2-section-graphite .v2-stat-label { color: var(--gold); }

/* ── Timeline ─────────────────────────────────────────────────── */
.v2-timeline {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  position: relative;
  padding: 2rem 0;
}
.v2-timeline::before {
  content: '';
  position: absolute;
  top: 2.75rem;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
}
.v2-timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  position: relative;
  z-index: 1;
  padding: 0 0.5rem;
}
.v2-timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--bg-0);
  box-shadow: 0 0 0 2px var(--gold);
  margin-bottom: 0.75rem;
}
.v2-timeline-dot.gold {
  background: var(--gold);
  box-shadow: 0 0 0 2px var(--gold);
}
.v2-timeline-dot.muted {
  background: var(--border);
  box-shadow: 0 0 0 2px var(--border);
}
.v2-timeline-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.v2-timeline-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-top: 0.25rem;
}
.v2-timeline-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  max-width: 160px;
}

/* ── FAQ Accordion ────────────────────────────────────────────── */
.v2-faq-list { max-width: 720px; margin: 0 auto; }
.v2-faq-item {
  border-bottom: 1px solid var(--border);
}
.v2-faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-heading);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.v2-faq-q::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--gold);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 1rem;
}
.v2-faq-q.open::after {
  content: '\2212';
}
.v2-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.v2-faq-a.open {
  max-height: 500px;
  padding-bottom: 1.25rem;
}
.v2-faq-a p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.v2-section-alt .v2-faq-item,
.v2-section-graphite .v2-faq-item { border-color: rgba(255,255,255,0.12); }
.v2-section-alt .v2-faq-q,
.v2-section-graphite .v2-faq-q { color: #FFFFFF; }
.v2-section-alt .v2-faq-q::after,
.v2-section-graphite .v2-faq-q::after { color: var(--gold); }
.v2-section-alt .v2-faq-a p,
.v2-section-graphite .v2-faq-a p { color: #E8E8E8; }

/* ── Callout / Highlight Box ─────────────────────────────────── */
.v2-callout {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  text-align: center;
}
.v2-callout-gold {
  background: rgba(212,175,55,0.06);
  border-color: rgba(212,175,55,0.2);
}

/* ── Badges ───────────────────────────────────────────────────── */
.v2-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  background: var(--blue-tint, rgba(47,107,255,0.12));
  color: var(--blue);
}
.v2-badge-gold {
  background: rgba(212,175,55,0.08);
  color: var(--gold);
}
.v2-badge-green {
  background: var(--blue-tint, rgba(47,107,255,0.12));
  color: var(--blue);
}

/* ── Divider ──────────────────────────────────────────────────── */
.v2-divider {
  height: 1px;
  background: var(--border);
  margin: 3rem 0;
}

/* ── Footer ───────────────────────────────────────────────────── */
.v2-footer {
  background: var(--white);
  color: var(--text);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
}
.v2-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
.v2-footer-brand p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
  line-height: 1.6;
  max-width: 280px;
}
.v2-footer-brand img { height: 40px; margin-bottom: 0.5rem; }
.v2-footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 1rem;
}
.v2-footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--text);
  text-decoration: none;
  padding: 0.3rem 0;
  transition: color var(--transition);
}
.v2-footer-col a:hover { color: var(--gold); }
.v2-footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.v2-footer-bottom a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}
.v2-footer-bottom a:hover { color: var(--gold); }
.v2-footer-legal {
  display: flex;
  gap: 1.5rem;
}

/* ── Scroll Fade-In Animations ────────────────────────────────── */
.v2-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.v2-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.v2-fade-in-delay-1 { transition-delay: 0.1s; }
.v2-fade-in-delay-2 { transition-delay: 0.2s; }
.v2-fade-in-delay-3 { transition-delay: 0.3s; }
.v2-fade-in-delay-4 { transition-delay: 0.4s; }

/* ── "Not" Block (Credibility) ────────────────────────────────── */
.v2-not-block {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem 0;
  font-size: 0.9375rem;
  color: var(--text);
}
.v2-not-block::before {
  content: '\2715';
  color: var(--error, #EF4444);
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ── Countdown Timer ─────────────────────────────────────────── */
.v2-countdown {
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.v2-countdown-unit {
  text-align: center;
}
.v2-countdown-value {
  font-size: 2rem;
  font-weight: 300;
  color: var(--text-heading);
  line-height: 1;
  min-width: 60px;
  display: block;
}
.v2-countdown-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
  margin-top: 0.25rem;
}

/* ── Form Styles ─────────────────────────────────────────────── */
.v2-form-group { margin-bottom: 1.25rem; }
.v2-form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.375rem;
}
.v2-form-input,
.v2-form-textarea,
.v2-form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.v2-form-input:focus,
.v2-form-textarea:focus,
.v2-form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.12);
}
.v2-form-textarea { min-height: 120px; resize: vertical; }

/* ── Table Styles ─────────────────────────────────────────────── */
.v2-table {
  width: 100%;
  border-collapse: collapse;
}
.v2-table th,
.v2-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.v2-table th {
  font-weight: 600;
  color: var(--text-heading);
  background: var(--bg-1);
}
.v2-table td { color: var(--text); }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .v2-nav-links,
  .v2-nav-actions { display: none; }
  .v2-hamburger { display: block; }
  .v2-mega-dropdown,
  .v2-mega-dropdown-full,
  .v2-dropdown { display: none; }
  .v2-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .v2-grid-6 { grid-template-columns: repeat(3, 1fr); }
  .v2-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  /* Use 56px to match the mobile nav height set in jil-header.css */
  body { padding-top: 56px !important; }
  .v2-nav { height: 56px; padding: 0 1rem; }
  .v2-nav-logo img { height: 28px; width: 28px; }
  .v14-logo-text { font-size: 1rem; }
  .v2-section { padding: 2.25rem 0; }
  .v2-section-lg { padding: 2.5rem 0; }
  .v2-hero { padding: 2.25rem 0 1.5rem; }
  .v2-container,
  .v2-container-narrow { padding: 0 1.25rem; }
  .v2-grid-2,
  .v2-grid-3 { grid-template-columns: 1fr; }
  .v2-grid-4 { grid-template-columns: 1fr; }
  .v2-hero-title { font-size: 1.75rem; }
  .v2-section-title { font-size: 1.375rem; }
  .v2-section-subtitle { font-size: 0.9375rem; }
  .v2-body-lg { font-size: 0.9375rem; }
  .v2-stats { gap: 1.5rem; justify-content: center; }
  .v2-stat-value { font-size: 1.375rem; }
  .v2-timeline { flex-direction: column; gap: 1.5rem; align-items: flex-start; padding-left: 1.5rem; }
  .v2-timeline::before { width: 2px; height: 100%; top: 0; left: 6px; right: auto; }
  .v2-timeline-item { flex-direction: row; text-align: left; gap: 1rem; }
  .v2-timeline-dot { margin-bottom: 0; flex-shrink: 0; }
  .v2-footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .v2-footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .v2-countdown-value { font-size: 1.5rem; min-width: 48px; }
  .v2-mega-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .v2-mega-grid-6 { grid-template-columns: repeat(2, 1fr); }
  /* Card padding reduction for mobile */
  .v2-card { padding: 1.5rem; }
  .v2-callout { padding: 1.5rem; }
  /* Table scrolling for mobile */
  table:not(.jil-table) {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
@media (max-width: 480px) {
  .v2-container,
  .v2-container-narrow { padding: 0 1rem; }
  .v2-section { padding: 2rem 0; }
  .v2-card { padding: 1.25rem; }
  .v2-callout { padding: 1.25rem; }
  .btn-primary, .btn-outline, .btn-gold, .btn-white {
    padding: 12px 20px;
    font-size: 0.875rem;
  }
  .v2-hero-title { font-size: 1.5rem; }
  .v2-section-title { font-size: 1.125rem; }
  .v2-section-subtitle { font-size: 0.875rem; }
  .v2-faq-q { font-size: 0.875rem; padding: 1rem 0; }
  .v2-faq-a { font-size: 0.875rem; padding: 0 0 1rem; }
  .v2-mega-grid-4 { grid-template-columns: 1fr; }
  .v2-mega-grid-6 { grid-template-columns: 1fr; }
  .v2-footer-grid { gap: 1rem; }
}

/* ── Mobile: Force inline-style grids to stack ───────────────── */
@media (max-width: 768px) {
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns:repeat(4"],
  [style*="grid-template-columns: repeat(4"],
  [style*="grid-template-columns:repeat(5"],
  [style*="grid-template-columns: repeat(5"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── Utility ──────────────────────────────────────────────────── */
.v2-mt-1 { margin-top: 0.5rem; }
.v2-mt-2 { margin-top: 1rem; }
.v2-mt-3 { margin-top: 1.5rem; }
.v2-mt-4 { margin-top: 2rem; }
.v2-mt-6 { margin-top: 3rem; }
.v2-mb-1 { margin-bottom: 0.5rem; }
.v2-mb-2 { margin-bottom: 1rem; }
.v2-mb-3 { margin-bottom: 1.5rem; }
.v2-mb-4 { margin-bottom: 2rem; }
.v2-mb-6 { margin-bottom: 3rem; }
.v2-pt-0 { padding-top: 0; }
.v2-pb-0 { padding-bottom: 0; }
.v2-hidden { display: none; }
.v2-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ── Doc Page Overrides (for /docs/*.html pages using v14) ────── */
.v2-doc-body {
  padding-top: 64px;
  background: var(--bg-0);
}
.v2-doc-content {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2.5rem 3rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  color: var(--text);
}
.v2-doc-content h1,
.v2-doc-content h2,
.v2-doc-content h3 { color: var(--text-heading); }
.v2-doc-content a { color: var(--blue); }
.v2-doc-content code { background: var(--bg-1); color: var(--text-heading); padding: 2px 6px; border-radius: 4px; }
.v2-doc-content pre { background: var(--bg-1); border: 1px solid var(--border); border-radius: 10px; padding: 15px; overflow-x: auto; }
.v2-doc-content pre code { background: none; padding: 0; }
@media (max-width: 768px) {
  .v2-doc-body { padding-top: 56px; }
  .v2-doc-content { margin: 0.75rem; padding: 1.25rem; }
  .v2-doc-content h1 { font-size: 1.5rem; }
  .v2-doc-content h2 { font-size: 1.25rem; }
  .v2-doc-content h3 { font-size: 1.125rem; }
  .v2-doc-content pre { font-size: 0.8rem; padding: 12px; }
}

/* ════════════════════════════════════════════════════════════════
   JIL FX - Visual Enhancements (v16 - restrained)
   ════════════════════════════════════════════════════════════════ */

/* ── 1. Hero Background (subtle) ──────────────────────────────── */
.jil-fx-hero-bg { position: relative; overflow: hidden; }
.jil-fx-hero-bg > .v2-container { position: relative; z-index: 1; }

.jil-fx-hero-grid { display: none; }
.jil-fx-hero-orb { display: none; }

/* ── 2. Gradient Text (gold accent) ──────────────────────────── */
.jil-fx-grad-text {
  color: var(--text-heading);
  -webkit-text-fill-color: var(--text-heading);
}

/* ── 4. Card Hover ───────────────────────────────────────────── */
.jil-fx-glow-hover {
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.jil-fx-glow-hover:hover {
  border-color: var(--border-1);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.wedge-winner.jil-fx-glow-hover:hover {
  border-color: rgba(212,175,55,0.5);
  box-shadow: 0 8px 24px rgba(212,175,55,0.08);
}

/* ── 5. Staggered Entrance Animations ─────────────────────────── */
.jil-fx-stagger-children > * {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.jil-fx-stagger-children.visible > * { opacity: 1; transform: translateY(0); }
.jil-fx-stagger-children.visible > *:nth-child(1) { transition-delay: 0s; }
.jil-fx-stagger-children.visible > *:nth-child(2) { transition-delay: 0.08s; }
.jil-fx-stagger-children.visible > *:nth-child(3) { transition-delay: 0.08s; }
.jil-fx-stagger-children.visible > *:nth-child(4) { transition-delay: 0.16s; }
.jil-fx-stagger-children.visible > *:nth-child(5) { transition-delay: 0.24s; }
.jil-fx-stagger-children.visible > *:nth-child(6) { transition-delay: 0.32s; }

/* ── 6. Phone Mockup (no float) ──────────────────────────────── */
.jil-fx-float-phone { }

/* ── 7. Button Shimmer (removed) ─────────────────────────────── */
.jil-fx-shimmer { }

/* ── 8. Pulsing Dots (removed) ───────────────────────────────── */
.jil-fx-pulse-dot { }

/* ── 9. Mission Banner (no gradient shift) ───────────────────── */
.jil-fx-grad-shift { }

/* ── Light Theme Overrides ────────────────────────────────────── */
/* Dark-section classes use hardcoded light text for dark backgrounds.
   In sovereign-light, these sections get light backgrounds so text must be dark. */
[data-theme="sovereign-light"] .v2-section-alt,
[data-theme="sovereign-light"] .v2-section-navy,
[data-theme="sovereign-light"] .v2-section-graphite {
  background: var(--gradient-section);
  color: var(--text-primary);
}
[data-theme="sovereign-light"] .v2-section-alt .v2-section-title,
[data-theme="sovereign-light"] .v2-section-alt .v2-hero-title,
[data-theme="sovereign-light"] .v2-section-navy .v2-section-title,
[data-theme="sovereign-light"] .v2-section-navy .v2-hero-title,
[data-theme="sovereign-light"] .v2-section-graphite .v2-section-title,
[data-theme="sovereign-light"] .v2-section-graphite .v2-hero-title { color: var(--text-primary); }

[data-theme="sovereign-light"] .v2-section-alt .v2-section-subtitle,
[data-theme="sovereign-light"] .v2-section-alt .v2-body,
[data-theme="sovereign-light"] .v2-section-alt .v2-small,
[data-theme="sovereign-light"] .v2-section-alt .v2-label,
[data-theme="sovereign-light"] .v2-section-navy .v2-section-subtitle,
[data-theme="sovereign-light"] .v2-section-navy .v2-body,
[data-theme="sovereign-light"] .v2-section-navy .v2-small,
[data-theme="sovereign-light"] .v2-section-graphite .v2-section-subtitle,
[data-theme="sovereign-light"] .v2-section-graphite .v2-body,
[data-theme="sovereign-light"] .v2-section-graphite .v2-small { color: var(--text-secondary); }

[data-theme="sovereign-light"] .v2-section-alt h2,
[data-theme="sovereign-light"] .v2-section-alt h3,
[data-theme="sovereign-light"] .v2-section-alt h4,
[data-theme="sovereign-light"] .v2-section-navy h2,
[data-theme="sovereign-light"] .v2-section-navy h3,
[data-theme="sovereign-light"] .v2-section-navy h4,
[data-theme="sovereign-light"] .v2-section-graphite h2,
[data-theme="sovereign-light"] .v2-section-graphite h3,
[data-theme="sovereign-light"] .v2-section-graphite h4 { color: var(--text-primary); }

[data-theme="sovereign-light"] .v2-section-alt p,
[data-theme="sovereign-light"] .v2-section-alt li,
[data-theme="sovereign-light"] .v2-section-alt td,
[data-theme="sovereign-light"] .v2-section-alt dd,
[data-theme="sovereign-light"] .v2-section-alt dt,
[data-theme="sovereign-light"] .v2-section-alt blockquote,
[data-theme="sovereign-light"] .v2-section-alt figcaption,
[data-theme="sovereign-light"] .v2-section-alt span,
[data-theme="sovereign-light"] .v2-section-alt div,
[data-theme="sovereign-light"] .v2-section-navy p,
[data-theme="sovereign-light"] .v2-section-navy li,
[data-theme="sovereign-light"] .v2-section-navy td,
[data-theme="sovereign-light"] .v2-section-navy dd,
[data-theme="sovereign-light"] .v2-section-navy span,
[data-theme="sovereign-light"] .v2-section-navy div,
[data-theme="sovereign-light"] .v2-section-graphite p,
[data-theme="sovereign-light"] .v2-section-graphite li,
[data-theme="sovereign-light"] .v2-section-graphite td,
[data-theme="sovereign-light"] .v2-section-graphite dd,
[data-theme="sovereign-light"] .v2-section-graphite span,
[data-theme="sovereign-light"] .v2-section-graphite div { color: var(--text-secondary); }

[data-theme="sovereign-light"] .v2-section-alt th,
[data-theme="sovereign-light"] .v2-section-navy th,
[data-theme="sovereign-light"] .v2-section-graphite th { color: var(--text-primary); background: var(--bg-soft); }

[data-theme="sovereign-light"] .v2-section-alt strong,
[data-theme="sovereign-light"] .v2-section-alt b,
[data-theme="sovereign-light"] .v2-section-navy strong,
[data-theme="sovereign-light"] .v2-section-navy b,
[data-theme="sovereign-light"] .v2-section-graphite strong,
[data-theme="sovereign-light"] .v2-section-graphite b { color: var(--text-primary); }

[data-theme="sovereign-light"] .v2-section-alt a,
[data-theme="sovereign-light"] .v2-section-navy a,
[data-theme="sovereign-light"] .v2-section-graphite a { color: var(--blue); }
[data-theme="sovereign-light"] .v2-section-alt a:hover,
[data-theme="sovereign-light"] .v2-section-navy a:hover,
[data-theme="sovereign-light"] .v2-section-graphite a:hover { color: var(--blue-hover); }

[data-theme="sovereign-light"] .v2-section-alt a.btn-outline,
[data-theme="sovereign-light"] .v2-section-navy a.btn-outline,
[data-theme="sovereign-light"] .v2-section-graphite a.btn-outline { color: var(--text-primary); border-color: var(--border-strong); }
[data-theme="sovereign-light"] .v2-section-alt a.btn-outline:hover,
[data-theme="sovereign-light"] .v2-section-navy a.btn-outline:hover,
[data-theme="sovereign-light"] .v2-section-graphite a.btn-outline:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

[data-theme="sovereign-light"] .v2-section-alt code,
[data-theme="sovereign-light"] .v2-section-navy code,
[data-theme="sovereign-light"] .v2-section-graphite code { color: var(--text-primary); background: var(--bg-soft); }

[data-theme="sovereign-light"] .v2-section-alt table,
[data-theme="sovereign-light"] .v2-section-alt td,
[data-theme="sovereign-light"] .v2-section-alt th,
[data-theme="sovereign-light"] .v2-section-navy table,
[data-theme="sovereign-light"] .v2-section-navy td,
[data-theme="sovereign-light"] .v2-section-navy th,
[data-theme="sovereign-light"] .v2-section-graphite table,
[data-theme="sovereign-light"] .v2-section-graphite td,
[data-theme="sovereign-light"] .v2-section-graphite th { border-color: var(--border-subtle); }

[data-theme="sovereign-light"] .v2-section-alt .v2-card,
[data-theme="sovereign-light"] .v2-section-navy .v2-card,
[data-theme="sovereign-light"] .v2-section-graphite .v2-card { background: var(--card-bg); border-color: var(--card-border); }
[data-theme="sovereign-light"] .v2-section-alt .v2-card h3,
[data-theme="sovereign-light"] .v2-section-navy .v2-card h3,
[data-theme="sovereign-light"] .v2-section-graphite .v2-card h3 { color: var(--text-primary); }
[data-theme="sovereign-light"] .v2-section-alt .v2-card p,
[data-theme="sovereign-light"] .v2-section-navy .v2-card p,
[data-theme="sovereign-light"] .v2-section-graphite .v2-card p { color: var(--text-secondary); }

[data-theme="sovereign-light"] .v2-section-alt .v2-stat-value,
[data-theme="sovereign-light"] .v2-section-navy .v2-stat-value,
[data-theme="sovereign-light"] .v2-section-graphite .v2-stat-value { color: var(--text-primary); }
[data-theme="sovereign-light"] .v2-section-alt .v2-stat-label,
[data-theme="sovereign-light"] .v2-section-navy .v2-stat-label,
[data-theme="sovereign-light"] .v2-section-graphite .v2-stat-label { color: var(--text-muted); }

[data-theme="sovereign-light"] .v2-section-alt .v2-faq-item,
[data-theme="sovereign-light"] .v2-section-graphite .v2-faq-item { border-color: var(--border-subtle); }
[data-theme="sovereign-light"] .v2-section-alt .v2-faq-q,
[data-theme="sovereign-light"] .v2-section-graphite .v2-faq-q { color: var(--text-primary); }
[data-theme="sovereign-light"] .v2-section-alt .v2-faq-q::after,
[data-theme="sovereign-light"] .v2-section-graphite .v2-faq-q::after { color: var(--text-muted); }
[data-theme="sovereign-light"] .v2-section-alt .v2-faq-a p,
[data-theme="sovereign-light"] .v2-section-graphite .v2-faq-a p { color: var(--text-secondary); }

/* ── Extended Light Theme: Hero, Sections, Cards ─────────────────
   Covers .hero, regular .v2-section text, card-like containers
   in dark sections, final CTAs, and all hardcoded rgba(245,...)
   patterns used in per-page inline styles.
   [data-theme] prefix gives higher specificity than inline rules. */

/* -- Hero section ------------------------------------------------ */
[data-theme="sovereign-light"] .hero {
  background: var(--gradient-hero);
}
[data-theme="sovereign-light"] .hero .v2-hero-title {
  color: var(--text-primary);
  -webkit-text-fill-color: var(--text-primary);
}
[data-theme="sovereign-light"] .hero .v2-section-subtitle {
  color: var(--text-secondary);
}
[data-theme="sovereign-light"] .hero .v2-label {
  /* AA fix 2026-05-15: was var(--gold) #C9A227 = 2.42:1 contrast on
     semitransparent white pill. var(--label-eyebrow) #7C5F18 = 5.71:1 ✓ AA. */
  color: var(--label-eyebrow, var(--gold));
}
[data-theme="sovereign-light"] .hero-stat,
[data-theme="sovereign-light"] .hero-meta {
  color: var(--text-muted);
}
[data-theme="sovereign-light"] .hero-stat strong {
  color: var(--text-primary);
}
[data-theme="sovereign-light"] .hero-sub {
  color: var(--text-secondary);
}

/* -- Regular .v2-section text (not just -alt/-navy/-graphite) ---- */
[data-theme="sovereign-light"] .v2-section .v2-section-title {
  color: var(--text-primary);
}
[data-theme="sovereign-light"] .v2-section .v2-section-subtitle {
  color: var(--text-secondary);
}
[data-theme="sovereign-light"] .v2-section .v2-body p {
  color: var(--text-secondary);
}
[data-theme="sovereign-light"] .v2-section .v2-body strong {
  color: var(--text-primary);
}

/* -- Final CTA / closing sections -------------------------------- */
[data-theme="sovereign-light"] .final-cta h2 {
  color: var(--text-primary);
}
[data-theme="sovereign-light"] .final-cta p {
  color: var(--text-secondary);
}

/* -- Urgency banners --------------------------------------------- */
[data-theme="sovereign-light"] .urgency-banner h3 {
  color: var(--text-primary);
}
[data-theme="sovereign-light"] .urgency-banner p {
  color: var(--text-secondary);
}

/* -- Callout boxes ----------------------------------------------- */
[data-theme="sovereign-light"] .callout-box p {
  color: var(--text-secondary);
}

/* -- Card-like containers in dark sections -----------------------
   Pages use custom classes (fraud-type, corridor-card, etc.) with
   hardcoded rgba(245,...) backgrounds. These attribute selectors
   catch the common naming patterns across all doc pages. */
[data-theme="sovereign-light"] .v2-section-alt [class*="-card"],
[data-theme="sovereign-light"] .v2-section-alt [class*="-type"],
[data-theme="sovereign-light"] .v2-section-alt [class*="-stat"],
[data-theme="sovereign-light"] .v2-section-alt [class*="-box"],
[data-theme="sovereign-light"] .v2-section-alt [class*="-item"],
[data-theme="sovereign-light"] .v2-section-navy [class*="-card"],
[data-theme="sovereign-light"] .v2-section-navy [class*="-type"],
[data-theme="sovereign-light"] .v2-section-graphite [class*="-card"],
[data-theme="sovereign-light"] .v2-section-graphite [class*="-type"] {
  background: var(--bg-soft);
  border-color: var(--border-subtle);
}

/* Regular section card variants */
[data-theme="sovereign-light"] .v2-section [class*="prevent-card"],
[data-theme="sovereign-light"] .v2-section [class*="fraud-stat"],
[data-theme="sovereign-light"] .v2-section .sources {
  background: var(--bg-soft);
  border-color: var(--border-subtle);
}

/* -- Table overrides in dark sections ---------------------------- */
[data-theme="sovereign-light"] .v2-section-alt .comp-table thead th {
  background: var(--bg-soft);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}
[data-theme="sovereign-light"] .v2-section-alt .comp-table tbody td {
  color: var(--text-secondary);
  border-color: var(--border-subtle);
}
[data-theme="sovereign-light"] .v2-section-alt .comp-table tbody td:first-child {
  color: var(--text-primary);
}
[data-theme="sovereign-light"] .v2-section-alt .comp-table .jil-row td {
  background: rgba(212, 175, 55, 0.06);
}
[data-theme="sovereign-light"] .v2-section-alt [style*="border"] {
  border-color: var(--border-subtle) !important;
}

/* -- Inline style overrides for hardcoded rgba(245,...) text ------
   Inline [style] attributes with rgba(245,245,245,...) text colors
   cannot be overridden from external CSS. But <style> block rules
   with rgba(245,...) CAN be overridden by higher-specificity rules.
   These broad selectors cover p, li, span, div inside all section
   variants - specificity (0,2,1) beats inline-style-block (0,1,1). */
[data-theme="sovereign-light"] .v2-section-alt p[style],
[data-theme="sovereign-light"] .v2-section-alt span[style],
[data-theme="sovereign-light"] .v2-section-navy p[style],
[data-theme="sovereign-light"] .v2-section-graphite p[style] {
  color: var(--text-muted) !important;
}

/* ── Light Theme: Category Index Pages (ab-*, pi-*) ──────────── */
/* Hero sections with hardcoded rgba(245,...) text */
[data-theme="sovereign-light"] .ab-hero {
  background: var(--gradient-hero) !important;
}
[data-theme="sovereign-light"] .ab-hero .v2-section-subtitle,
[data-theme="sovereign-light"] .ab-hero .v2-hero-title {
  color: var(--text-primary) !important;
  -webkit-text-fill-color: var(--text-primary) !important;
}
[data-theme="sovereign-light"] .ab-breadcrumb { color: var(--text-muted) !important; }
[data-theme="sovereign-light"] .ab-breadcrumb a { color: var(--text-secondary) !important; }
[data-theme="sovereign-light"] .ab-stats .stat { color: var(--text-secondary) !important; }
[data-theme="sovereign-light"] .ab-stats .stat strong { color: var(--text-primary) !important; }
[data-theme="sovereign-light"] .ab-stats .stat .dot { background: var(--blue) !important; }

/* Cards - already white bg, fix text */
[data-theme="sovereign-light"] .ab-card { background: #FFFFFF !important; border-color: var(--border-subtle) !important; }
[data-theme="sovereign-light"] .ab-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important; }
[data-theme="sovereign-light"] .ab-card h3 { color: var(--text-primary) !important; }
[data-theme="sovereign-light"] .ab-card p { color: var(--text-secondary) !important; }
[data-theme="sovereign-light"] .ab-section-label { color: var(--text-muted) !important; }
[data-theme="sovereign-light"] .ab-section-title { color: var(--text-primary) !important; }
[data-theme="sovereign-light"] .ab-divider { border-color: var(--border-subtle) !important; }

/* Protocol interface section - dark navy bg override */
[data-theme="sovereign-light"] .pi-section {
  background: var(--bg-surface, #F0F0EC) !important;
}
[data-theme="sovereign-light"] .pi-section-label { color: var(--blue) !important; }
[data-theme="sovereign-light"] .pi-section-title { color: var(--text-primary) !important; }
[data-theme="sovereign-light"] .pi-section-sub { color: var(--text-muted) !important; }
[data-theme="sovereign-light"] .pi-tile {
  background: var(--bg-soft, #FFFFFF) !important;
  border-color: var(--border-subtle) !important;
}
[data-theme="sovereign-light"] .pi-tile:hover {
  background: var(--bg-elevated, #FFFFFF) !important;
  border-color: rgba(42, 107, 255, 0.3) !important;
}
[data-theme="sovereign-light"] .pi-tile-name { color: var(--text-primary) !important; }
[data-theme="sovereign-light"] .pi-tile-desc { color: var(--text-muted) !important; }
[data-theme="sovereign-light"] .pi-status { color: var(--text-muted) !important; }

/* Featured report section */
[data-theme="sovereign-light"] section[style*="background:var(--bg-0)"] {
  background: var(--bg-page, #FFFFFF) !important;
}
[data-theme="sovereign-light"] section[style*="border-top:1px solid rgba(255,255,255"] {
  border-color: var(--border-subtle) !important;
}

/* Inline style overrides for rgba(245,245,245,...) text in ab/pi sections */
[data-theme="sovereign-light"] .ab-hero [style*="rgba(245"],
[data-theme="sovereign-light"] .pi-section [style*="rgba(245"],
[data-theme="sovereign-light"] section [style*="color:rgba(245,245,245"] {
  color: var(--text-secondary) !important;
}
[data-theme="sovereign-light"] section [style*="background:rgba(255,255,255,0.04)"] {
  background: var(--bg-soft, #FFFFFF) !important;
  border-color: var(--border-subtle) !important;
}
[data-theme="sovereign-light"] section [style*="background:rgba(42,107,255,0.15)"] {
  background: rgba(42, 107, 255, 0.1) !important;
}

/* ── Light Theme: Comprehensive Docs Pages Override ───────────────
   57+ doc pages use per-page <style> blocks with rgba(245,245,245,...)
   text and rgba(255,255,255,...) backgrounds designed for dark bg.
   These overrides use !important to win over per-page inline stylesheets
   that load AFTER this file. Covers v2-section-alt, v2-section-navy,
   v2-section-graphite, and all custom per-page card/box/type classes. */

/* -- Dark section backgrounds → light ----------------------------- */
[data-theme="sovereign-light"] .v2-section-alt,
[data-theme="sovereign-light"] .v2-section-navy,
[data-theme="sovereign-light"] .v2-section-graphite {
  background: var(--bg-surface, #F0F0EC) !important;
}

/* -- Headings in dark sections ------------------------------------ */
[data-theme="sovereign-light"] .v2-section-alt h2,
[data-theme="sovereign-light"] .v2-section-alt h3,
[data-theme="sovereign-light"] .v2-section-alt h4,
[data-theme="sovereign-light"] .v2-section-navy h2,
[data-theme="sovereign-light"] .v2-section-navy h3,
[data-theme="sovereign-light"] .v2-section-navy h4,
[data-theme="sovereign-light"] .v2-section-graphite h2,
[data-theme="sovereign-light"] .v2-section-graphite h3,
[data-theme="sovereign-light"] .v2-section-graphite h4 {
  color: var(--text-primary) !important;
}

/* -- Body text in dark sections ----------------------------------- */
[data-theme="sovereign-light"] .v2-section-alt p,
[data-theme="sovereign-light"] .v2-section-alt li,
[data-theme="sovereign-light"] .v2-section-alt td,
[data-theme="sovereign-light"] .v2-section-navy p,
[data-theme="sovereign-light"] .v2-section-navy li,
[data-theme="sovereign-light"] .v2-section-navy td,
[data-theme="sovereign-light"] .v2-section-graphite p,
[data-theme="sovereign-light"] .v2-section-graphite li,
[data-theme="sovereign-light"] .v2-section-graphite td {
  color: var(--text-secondary) !important;
}
[data-theme="sovereign-light"] .v2-section-alt strong,
[data-theme="sovereign-light"] .v2-section-navy strong,
[data-theme="sovereign-light"] .v2-section-graphite strong {
  color: var(--text-primary) !important;
}

/* -- Tables in dark sections (all variants: comp-table, mode-table etc) */
[data-theme="sovereign-light"] .v2-section-alt thead th,
[data-theme="sovereign-light"] .v2-section-navy thead th,
[data-theme="sovereign-light"] .v2-section-graphite thead th {
  background: var(--bg-soft) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-subtle) !important;
}
[data-theme="sovereign-light"] .v2-section-alt tbody td,
[data-theme="sovereign-light"] .v2-section-navy tbody td,
[data-theme="sovereign-light"] .v2-section-graphite tbody td {
  border-color: var(--border-subtle) !important;
}
[data-theme="sovereign-light"] .v2-section-alt tbody td:first-child,
[data-theme="sovereign-light"] .v2-section-navy tbody td:first-child,
[data-theme="sovereign-light"] .v2-section-graphite tbody td:first-child {
  color: var(--text-primary) !important;
}

/* -- Card hover in dark sections ---------------------------------- */
[data-theme="sovereign-light"] .v2-section-alt .v2-card:hover,
[data-theme="sovereign-light"] .v2-section-navy .v2-card:hover,
[data-theme="sovereign-light"] .v2-section-graphite .v2-card:hover {
  border-color: var(--gold) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
}

/* -- Metric cards ------------------------------------------------- */
[data-theme="sovereign-light"] .metric-card {
  background: var(--bg-soft) !important;
  border-color: var(--border-subtle) !important;
}
[data-theme="sovereign-light"] .metric-card .mc-value { color: var(--text-primary) !important; }
[data-theme="sovereign-light"] .metric-card .mc-label,
[data-theme="sovereign-light"] .metric-card .mc-desc { color: var(--text-muted) !important; }

/* -- Flow boxes --------------------------------------------------- */
[data-theme="sovereign-light"] .flow-box {
  background: var(--bg-soft) !important;
  border-color: var(--border-subtle) !important;
}
[data-theme="sovereign-light"] .flow-box h3,
[data-theme="sovereign-light"] .flow-box h4 { color: var(--text-primary) !important; }
[data-theme="sovereign-light"] .flow-box p { color: var(--text-secondary) !important; }
[data-theme="sovereign-light"] .flow-step::after { background: var(--border-subtle) !important; }

/* -- Evidence/code blocks with hardcoded dark backgrounds --------- */
[data-theme="sovereign-light"] .evidence-block,
[data-theme="sovereign-light"] .code-block {
  background: var(--bg-soft) !important;
  border: 1px solid var(--border-subtle) !important;
  color: var(--text-primary) !important;
}
[data-theme="sovereign-light"] .evidence-block .comment,
[data-theme="sovereign-light"] .code-block .comment { color: var(--text-muted) !important; }
[data-theme="sovereign-light"] .evidence-block .key,
[data-theme="sovereign-light"] .code-block .kw { color: var(--blue, #2A6BFF) !important; }
[data-theme="sovereign-light"] .evidence-block .str,
[data-theme="sovereign-light"] .code-block .str { color: #B8960C !important; }

/* -- Dual cards (dark variant) ------------------------------------ */
[data-theme="sovereign-light"] .dual-card.dark {
  background: var(--bg-soft) !important;
  border-color: var(--border-subtle) !important;
}
[data-theme="sovereign-light"] .dual-card.dark h3 { color: var(--text-primary) !important; }
[data-theme="sovereign-light"] .dual-card.dark p,
[data-theme="sovereign-light"] .dual-card.dark .sd { color: var(--text-secondary) !important; }
[data-theme="sovereign-light"] .dual-card.dark .pm-box {
  background: rgba(0,0,0,0.04) !important;
  border-color: var(--border-subtle) !important;
}
[data-theme="sovereign-light"] .dual-card.dark .pm-box .pm-lbl { color: var(--text-muted) !important; }

/* -- Step cards --------------------------------------------------- */
[data-theme="sovereign-light"] .step-card {
  background: var(--bg-soft) !important;
  border-color: var(--border-subtle) !important;
}
[data-theme="sovereign-light"] .step-card h4 { color: var(--text-primary) !important; }
[data-theme="sovereign-light"] .step-card p,
[data-theme="sovereign-light"] .step-card li { color: var(--text-secondary) !important; }

/* -- KPI boxes ---------------------------------------------------- */
[data-theme="sovereign-light"] .kpi-box {
  background: var(--bg-soft) !important;
  border-color: var(--border-subtle) !important;
}
[data-theme="sovereign-light"] .kpi-box .kpi-value { color: var(--text-primary) !important; }
[data-theme="sovereign-light"] .kpi-box .kpi-label { color: var(--text-muted) !important; }

/* -- Text in wildcard-matched card/type/box containers ------------ */
[data-theme="sovereign-light"] .v2-section-alt [class*="-card"] h3,
[data-theme="sovereign-light"] .v2-section-alt [class*="-type"] h3,
[data-theme="sovereign-light"] .v2-section-navy [class*="-card"] h3,
[data-theme="sovereign-light"] .v2-section-graphite [class*="-card"] h3 {
  color: var(--text-primary) !important;
}
[data-theme="sovereign-light"] .v2-section-alt [class*="-card"] p,
[data-theme="sovereign-light"] .v2-section-alt [class*="-type"] p,
[data-theme="sovereign-light"] .v2-section-alt [class*="-card"] li,
[data-theme="sovereign-light"] .v2-section-alt [class*="-type"] li,
[data-theme="sovereign-light"] .v2-section-navy [class*="-card"] p,
[data-theme="sovereign-light"] .v2-section-navy [class*="-card"] li,
[data-theme="sovereign-light"] .v2-section-graphite [class*="-card"] p,
[data-theme="sovereign-light"] .v2-section-graphite [class*="-card"] li {
  color: var(--text-secondary) !important;
}

/* -- Comprehensive inline [style] attribute overrides --------------
   Catch ALL elements with rgba(245,...) text in inline style attrs.
   !important overrides inline style precedence. */
[data-theme="sovereign-light"] [style*="color:rgba(245,245,245"],
[data-theme="sovereign-light"] [style*="color: rgba(245,245,245"],
[data-theme="sovereign-light"] [style*="color:rgba(245, 245, 245"],
[data-theme="sovereign-light"] [style*="color: rgba(245, 245, 245"] {
  color: var(--text-secondary) !important;
}

/* Subtle white-alpha backgrounds → visible dark-alpha */
[data-theme="sovereign-light"] [style*="background:rgba(255,255,255,0.0"],
[data-theme="sovereign-light"] [style*="background: rgba(255,255,255,0.0"],
[data-theme="sovereign-light"] [style*="background:rgba(255,255,255, 0.0"] {
  background: rgba(0, 0, 0, 0.06) !important;
}

/* Subtle 245-alpha backgrounds */
[data-theme="sovereign-light"] [style*="background:rgba(245,245,245,0.0"],
[data-theme="sovereign-light"] [style*="background: rgba(245,245,245,0.0"] {
  background: rgba(0, 0, 0, 0.06) !important;
}

/* Dark hex backgrounds → light surface */
[data-theme="sovereign-light"] [style*="background:#0B1426"],
[data-theme="sovereign-light"] [style*="background: #0B1426"],
[data-theme="sovereign-light"] [style*="background:#0A1628"],
[data-theme="sovereign-light"] [style*="background: #0A1628"],
[data-theme="sovereign-light"] [style*="background:#0D1B2A"],
[data-theme="sovereign-light"] [style*="background: #0D1B2A"],
[data-theme="sovereign-light"] [style*="background:#122040"],
[data-theme="sovereign-light"] [style*="background: #122040"] {
  background: var(--bg-soft) !important;
}

/* Inline borders with rgba(245,...) or rgba(255,...) */
[data-theme="sovereign-light"] [style*="border"][style*="rgba(245,245,245"],
[data-theme="sovereign-light"] [style*="border"][style*="rgba(255,255,255"] {
  border-color: var(--border-subtle) !important;
}

/* -- Doc-standard page elements (back-link, sections, dividers) --- */
[data-theme="sovereign-light"] .back-link {
  background: var(--bg-soft) !important;
  border-color: var(--border-subtle) !important;
  color: var(--text-secondary) !important;
}
[data-theme="sovereign-light"] .doc-header {
  border-color: var(--border-subtle) !important;
}
[data-theme="sovereign-light"] .divider {
  background: var(--border-subtle) !important;
}
[data-theme="sovereign-light"] .doc-footer {
  border-color: var(--border-subtle) !important;
}
[data-theme="sovereign-light"] .doc-card,
[data-theme="sovereign-light"] .compare-card {
  background: var(--bg-soft) !important;
  border-color: var(--border-subtle) !important;
}
[data-theme="sovereign-light"] .doc-card p,
[data-theme="sovereign-light"] .compare-card p { color: var(--text-secondary) !important; }
[data-theme="sovereign-light"] .layer-item {
  border-color: var(--border-subtle) !important;
}
[data-theme="sovereign-light"] .flow-node {
  border-color: var(--border-subtle) !important;
}

/* -- Sidebar boxes (process flows) -------------------------------- */
[data-theme="sovereign-light"] .sidebar-box {
  background: var(--bg-soft) !important;
  border-color: var(--border-subtle) !important;
}
[data-theme="sovereign-light"] .sidebar-box h3 { color: var(--gold) !important; }
[data-theme="sovereign-light"] .sidebar-box ul li { color: var(--text-secondary) !important; }

/* -- Code tab hover ----------------------------------------------- */
[data-theme="sovereign-light"] .code-tab:hover {
  background: rgba(0, 0, 0, 0.04) !important;
}

/* -- Even-row striping in dark sections --------------------------- */
[data-theme="sovereign-light"] .v2-section-alt tr:nth-child(even) td,
[data-theme="sovereign-light"] .v2-section-navy tr:nth-child(even) td,
[data-theme="sovereign-light"] .v2-section-graphite tr:nth-child(even) td {
  background: rgba(42, 107, 255, 0.04) !important;
}

/* ── Accessibility: Reduced Motion ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .jil-fx-stagger-children > * {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .jil-fx-glow-hover {
    transition: none !important;
  }
  .v2-fade-in {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
