
/* ═══════════════════════════════════════════════════════════════════════════════
   THE DIGITAL ASSET BANKING MANUAL — Design System v2.0
   Quantum Field Inc. · March 2026
   
   A complete design overhaul adopting the engagement portal's institutional 
   aesthetic: IBM Plex font family, refined navy/gold palette, modern cards,
   and premium shadow system.
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════════════════════════════════════════ */
:root {
  /* ─── Primary Navy Palette ─────────────────────────────────────────────────── */
  --navy-950: #050D1A;
  --navy-900: #0D1F33;
  --navy-800: #142840;
  --navy-700: #1A3A5C;
  --navy-600: #254B73;
  --navy-500: #2F5C8A;
  --navy-400: #4A7BA8;
  --navy-300: #6E9BC4;
  --navy-200: #9BBDDB;
  --navy-100: #C8DEF0;
  --navy-50: #E8F1F9;

  /* ─── Trust Gold Accent ────────────────────────────────────────────────────── */
  --gold-700: #9A7B4F;
  --gold-600: #B8956A;
  --gold-500: #D4A95A;
  --gold-400: #E4B96A;
  --gold-300: #EFD08A;
  --gold-200: #F7E3B3;
  --gold-100: #FBF0D9;
  --gold-50: #FDF8EF;

  /* ─── Slate Neutrals ───────────────────────────────────────────────────────── */
  --slate-950: #0A0F1A;
  --slate-900: #0F1624;
  --slate-800: #1A2436;
  --slate-700: #2A3A52;
  --slate-600: #3D4F66;
  --slate-500: #5A6B82;
  --slate-400: #8493A8;
  --slate-300: #A8B5C4;
  --slate-200: #C5D0DE;
  --slate-100: #E8ECF2;
  --slate-50: #F4F6F9;
  --slate-25: #FAFBFC;

  /* ─── Semantic Colors ──────────────────────────────────────────────────────── */
  --success-700: #047857;
  --success-600: #059669;
  --success-500: #10B981;
  --success-100: #D1FAE5;
  --success-50: #ECFDF5;

  --warning-700: #B45309;
  --warning-600: #D97706;
  --warning-500: #F59E0B;
  --warning-100: #FEF3C7;
  --warning-50: #FFFBEB;

  --error-700: #B91C1C;
  --error-600: #DC2626;
  --error-500: #EF4444;
  --error-100: #FEE2E2;
  --error-50: #FEF2F2;

  --info-700: #1D4ED8;
  --info-600: #2563EB;
  --info-500: #3B82F6;
  --info-100: #DBEAFE;
  --info-50: #EFF6FF;

  --purple-700: #6D28D9;
  --purple-600: #7C3AED;
  --purple-500: #8B5CF6;
  --purple-100: #EDE9FE;
  --purple-50: #F5F3FF;

  /* ─── Typography ───────────────────────────────────────────────────────────── */
  --font-display: 'IBM Plex Serif', Georgia, 'Times New Roman', serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', Consolas, 'Liberation Mono', monospace;

  /* ─── Spacing Scale ────────────────────────────────────────────────────────── */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* ─── Border Radii ─────────────────────────────────────────────────────────── */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-base: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 9999px;

  /* ─── Shadows ──────────────────────────────────────────────────────────────── */
  --shadow-xs: 0 1px 2px rgba(10, 22, 40, 0.04);
  --shadow-sm: 0 1px 3px rgba(10, 22, 40, 0.06), 0 1px 2px rgba(10, 22, 40, 0.04);
  --shadow-md: 0 4px 8px -2px rgba(10, 22, 40, 0.08), 0 2px 4px -2px rgba(10, 22, 40, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(10, 22, 40, 0.1), 0 4px 8px -2px rgba(10, 22, 40, 0.04);
  --shadow-xl: 0 24px 48px -12px rgba(10, 22, 40, 0.12);
  --shadow-2xl: 0 32px 64px -16px rgba(10, 22, 40, 0.16);
  --shadow-card: 0 1px 3px rgba(10, 22, 40, 0.04), 0 1px 2px rgba(10, 22, 40, 0.02);
  --shadow-card-hover: 0 12px 32px -8px rgba(10, 22, 40, 0.12);
  --shadow-gold: 0 4px 24px rgba(212, 169, 90, 0.15);
  --shadow-inner: inset 0 2px 4px rgba(10, 22, 40, 0.04);

  /* ─── Transitions ──────────────────────────────────────────────────────────── */
  --transition-fast: 0.1s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ─── Layout ───────────────────────────────────────────────────────────────── */
  --header-height: 60px;
  --progress-height: 3px;
  --sidebar-width: 300px;
  --content-max-width: 820px;
  --page-padding: clamp(1rem, 4vw, 2.5rem);

  /* ─── Safe Areas ───────────────────────────────────────────────────────────── */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --header-offset: calc(var(--header-height) + var(--progress-height) + var(--safe-top));

  /* ─── Mobile Drawer ────────────────────────────────────────────────────────── */
  --toc-drawer-width: min(88vw, 360px);
  --tap-target: 44px;

  /* ─── Legacy Variable Mappings (for inline styles in HTML) ─────────────────── */
  --ink: var(--navy-950);
  --ink-deep: var(--navy-950);
  --navy: var(--navy-900);
  --navy-2: var(--navy-700);
  --navy-light: var(--navy-600);
  --slate: var(--navy-500);
  --gold: var(--gold-500);
  --gold-2: var(--gold-400);
  --gold-bright: var(--gold-300);
  --gold-dark: var(--gold-700);
  --gold-muted: var(--gold-600);
  --gold-pale: rgba(212, 169, 90, 0.08);
  --bg: var(--slate-50);
  --surface: #FFFFFF;
  --surface-2: var(--slate-25);
  --paper-dark: var(--slate-100);
  --border: var(--slate-200);
  --border-subtle: var(--slate-100);
  --border-gold: rgba(212, 169, 90, 0.18);
  --text: var(--slate-800);
  --muted: var(--slate-700);
  --muted-2: var(--slate-600);
  --text-muted: var(--slate-500);
  --info-bg: var(--info-50);
  --info: var(--info-600);
  --success-bg: var(--success-50);
  --success: var(--success-600);
  --danger-bg: #F0F9F6;
  --danger: #2F8F7A;
  --warn-bg: var(--warning-50);
  --warn: var(--warning-600);
  --violet-bg: var(--purple-50);
  --violet: var(--purple-600);
  --r-sm: var(--radius-sm);
  --r: var(--radius-base);
  --r-lg: var(--radius-lg);
  --r-xl: var(--radius-xl);
  --max-w: var(--content-max-width);
  --header-h: var(--header-height);
  --progress-h: var(--progress-height);
  --sidebar-w: var(--sidebar-width);
  --page-pad: var(--page-padding);
  --dur-fast: 0.1s;
  --dur-2: 0.2s;
  --dur-3: 0.35s;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --app-h: 100vh;
  --font-sans: var(--font-body);
  --font-serif: var(--font-display);
}

:root { --app-h: 100vh; }
@supports (height: 100dvh) {
  :root {
    --app-h: 100dvh;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-offset) + 24px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--slate-700);
  background: var(--navy-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
  min-height: var(--app-h);
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(212, 169, 90, 0.25);
  color: var(--navy-900);
}

/* ─── Links ──────────────────────────────────────────────────────────────────── */
a {
  color: var(--navy-600);
  text-decoration: none;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--gold-600);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(212, 169, 90, 0.45);
  outline-offset: 3px;
  border-radius: var(--radius-md);
}

/* ─── Typography Base ────────────────────────────────────────────────────────── */
strong,
b {
  font-weight: 600;
  color: var(--slate-800);
}

em,
i {
  font-style: italic;
}

/* ─── Skip Link ──────────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-md);
  font-size: 13px;
  font-weight: 600;
  z-index: 2000;
}

.skip-link:focus {
  left: var(--page-padding);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
  from {
    opacity: 0.6;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes coverShimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

@keyframes subtlePulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   HEADER — Fixed Navigation Bar
   ═══════════════════════════════════════════════════════════════════════════════ */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: white;
  padding: 0 var(--page-padding);
  padding-top: var(--safe-top);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(212, 169, 90, 0.15);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
}

.nav-brand {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
  user-select: none;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1 1 auto;
}

.nav-brand .brand-icon {
  width: 36px;
  height: 30px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-700) 100%);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy-900);
  font-size: 0.7rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(212, 169, 90, 0.25);
  letter-spacing: -0.02em;
}

.nav-brand span {
  color: var(--gold-400);
  font-weight: 700;
}

.nav-controls {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  flex-shrink: 0;
}

.nav-btn {
  appearance: none;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-base);
  cursor: pointer;
  font-size: 0.78rem;
  font-family: var(--font-body);
  font-weight: 500;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  min-height: var(--tap-target);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-btn:hover {
  background: rgba(212, 169, 90, 0.12);
  border-color: rgba(212, 169, 90, 0.25);
  transform: translateY(-1px);
}

.nav-btn svg {
  width: 16px;
  height: 16px;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   PROGRESS BAR
   ═══════════════════════════════════════════════════════════════════════════════ */
.progress-container {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  height: var(--progress-height);
  background: rgba(10, 22, 40, 0.5);
  z-index: 999;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-700) 0%, var(--gold-500) 50%, var(--gold-400) 100%);
  width: 0%;
  transition: width 80ms linear;
  box-shadow: 0 0 8px rgba(212, 169, 90, 0.4);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SIDEBAR — Table of Contents
   ═══════════════════════════════════════════════════════════════════════════════ */
.sidebar {
  position: fixed;
  top: calc(var(--header-height) + var(--progress-height) + var(--safe-top));
  left: 0;
  width: var(--sidebar-width);
  height: calc(var(--app-h) - var(--header-height) - var(--progress-height) - var(--safe-top));
  background: linear-gradient(175deg, var(--navy-800) 0%, var(--navy-900) 100%);
  border-right: 1px solid rgba(212, 169, 90, 0.08);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-5) 0;
  padding-bottom: calc(var(--space-5) + var(--safe-bottom));
  transform: translateX(0);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  z-index: 998;
}

.sidebar::-webkit-scrollbar {
  width: 5px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(212, 169, 90, 0.3);
  border-radius: var(--radius-full);
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 169, 90, 0.45);
}

.sidebar.collapsed {
  transform: translateX(calc(-1 * var(--sidebar-width)));
}

/* ─── Sidebar Logo ───────────────────────────────────────────────────────────── */
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  margin-bottom: var(--space-5);
  text-decoration: none;
  color: inherit;
}

.sidebar-logo .logo-mark {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-base);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--gold-400);
}

.sidebar-logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.sidebar-logo .logo-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: white;
}

.sidebar-logo .logo-tagline {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 1px;
}

/* ─── Sidebar Search ─────────────────────────────────────────────────────────── */
.sidebar-search {
  padding: 0 var(--space-5);
  margin-bottom: var(--space-5);
}

.sidebar-search-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  padding-left: 36px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-base);
  font-family: var(--font-body);
  font-size: 13px;
  color: white;
  transition: all var(--transition-fast);
}

.sidebar-search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.sidebar-search-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(212, 169, 90, 0.35);
  box-shadow: 0 0 0 3px rgba(212, 169, 90, 0.1);
}

.sidebar-search-wrapper {
  position: relative;
}

.sidebar-search-wrapper::before {
  content: "⌕";
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

/* ─── Sidebar Sections ───────────────────────────────────────────────────────── */
.sidebar-section {
  padding: var(--space-2) var(--space-5);
  margin-bottom: var(--space-2);
}

.sidebar-section-title {
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: var(--space-3);
  font-weight: 700;
  font-family: var(--font-mono);
}

/* ─── Collapsible Groups ─────────────────────────────────────────────────────── */
.sidebar-group-toggle {
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-600);
  font-weight: 700;
  font-family: var(--font-mono);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) 0;
  margin-bottom: var(--space-2);
  user-select: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  transition: color var(--transition-fast);
}

.sidebar-link.active {
  color: var(--gold-600);
  font-weight: 600;
  border-left: 2px solid var(--gold-500);
  padding-left: calc(var(--space-3) - 2px);
}

.sidebar-group-toggle:hover {
  color: var(--gold-400);
}

.sidebar-group-toggle::after {
  content: '▾';
  font-size: 10px;
  transition: transform var(--transition-fast);
}

.sidebar-group-toggle.collapsed::after {
  transform: rotate(-90deg);
}

.sidebar-group-links {
  overflow: hidden;
  max-height: 800px;
  transition: max-height 0.3s ease;
}

.sidebar-group-links.collapsed {
  max-height: 0;
}

/* ─── TOC Links ──────────────────────────────────────────────────────────────── */
.toc-link {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  margin: 1px 0 1px calc(-1 * var(--space-4));
  border-left: 2px solid transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-family: var(--font-body);
  font-weight: 450;
  transition: all var(--transition-fast);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  min-height: var(--tap-target);
  line-height: 1.35;
  text-decoration: none;
}

.toc-link:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(212, 169, 90, 0.06);
  border-left-color: rgba(212, 169, 90, 0.3);
  text-decoration: none;
}

.toc-link.active {
  color: var(--gold-400);
  background: rgba(212, 169, 90, 0.1);
  border-left-color: var(--gold-500);
  font-weight: 600;
}

.toc-link .toc-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  min-width: 28px;
  flex-shrink: 0;
}

.toc-link.active .toc-num {
  color: var(--gold-500);
}

/* ─── Sidebar Footer ─────────────────────────────────────────────────────────── */
.sidebar-footer {
  padding: var(--space-5);
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-footer-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-md);
  font-size: 10px;
  font-weight: 600;
  color: var(--success-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sidebar-footer-badge svg {
  width: 14px;
  height: 14px;
}

/* ─── TOC Search Highlight ───────────────────────────────────────────────────── */
.toc-link.search-highlight {
  background: rgba(212, 169, 90, 0.15);
  border-left-color: var(--gold-500);
  color: var(--gold-300);
}

#searchResultsCount {
  font-family: var(--font-mono);
}

/* ─── Sidebar Overlay (Mobile) ───────────────────────────────────────────────── */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 13, 26, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 997;
}

body.sidebar-open .sidebar-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.sidebar-open {
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════════════════════════════════════ */
.main-content {
  margin-left: var(--sidebar-width);
  margin-top: 0;
  padding-top: calc(var(--header-height) + var(--progress-height));
  transition: margin-left 0.25s ease;
  min-height: var(--app-h);
}

.main-content.expanded {
  margin-left: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   COVER SECTION — Hero
   ═══════════════════════════════════════════════════════════════════════════════ */
.cover-section {
  min-height: calc(var(--app-h) - var(--header-height) - var(--progress-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem, 6vw, 5rem) var(--page-padding);
  color: white;
  background: linear-gradient(168deg, #030A14 0%, #0A1929 30%, #122B45 60%, #17324D 100%);
  position: relative;
  overflow: hidden;
  margin-top: calc(-1 * (var(--header-height) + var(--progress-height) + var(--safe-top)));
  padding-top: calc(var(--header-height) + var(--progress-height) + var(--safe-top) + clamp(4rem, 8vw, 6rem));
}

.cover-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 40% at 15% 85%, rgba(212, 169, 90, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse 60% 45% at 85% 15%, rgba(75, 123, 168, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(212, 169, 90, 0.03) 0%, transparent 70%);
  animation: subtlePulse 12s ease-in-out infinite;
  pointer-events: none;
}
.cover-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.025'/%3E%3C/svg%3E");
  background-size: 200px; pointer-events: none; opacity: .4;
}

.cover-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  text-align: center;
  animation: fadeInUp 0.8s var(--ease-out);
}

.cover-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  border: 1px solid rgba(212, 169, 90, 0.25);
  background: rgba(212, 169, 90, 0.1);
  color: rgba(255, 255, 255, 0.9);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: var(--space-8);
  font-family: var(--font-mono);
}

.cover-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-5);
  background: linear-gradient(145deg, #F0EDE4 0%, #FFFFFF 25%, var(--gold-400) 60%, var(--gold-300) 100%);
  background-size: 200% auto;
  animation: coverShimmer 6s linear infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cover-title span {
  background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-300) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cover-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-8);
  font-weight: 400;
  font-style: italic;
  line-height: 1.55;
  letter-spacing: 0.005em;
}

.cover-divider {
  width: 80px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-400) 50%, transparent 100%);
  margin: var(--space-6) auto var(--space-8);
  border-radius: var(--radius-full);
  box-shadow: 0 0 20px rgba(212, 169, 90, 0.2);
}

.cover-description {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 350;
  max-width: 65ch;
  margin: 0 auto var(--space-10);
  line-height: 1.7;
}

/* ─── Cover Stats ────────────────────────────────────────────────────────────── */
.cover-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-5);
  margin-bottom: var(--space-10);
}

.cover-stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-8);
  min-width: 130px;
  transition: all 0.3s cubic-bezier(.16,1,.3,1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
}
.cover-stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,169,90,.15), transparent);
}

.cover-stat:hover {
  background: rgba(212, 169, 90, 0.08);
  border-color: rgba(212, 169, 90, 0.2);
  transform: translateY(-2px);
}

.cover-stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-400);
  margin-bottom: var(--space-1);
  text-shadow: 0 0 24px rgba(212,169,90,.1);
}

.cover-stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
}

/* ─── Cover Buttons ──────────────────────────────────────────────────────────── */
.cover-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.cover-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-base);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-base);
  cursor: pointer;
}

.cover-btn--primary {
  background: linear-gradient(135deg, var(--gold-600) 0%, var(--gold-500) 50%, var(--gold-400) 100%);
  color: var(--navy-900);
  border: none;
  box-shadow: 0 4px 20px rgba(212, 169, 90, 0.25);
  font-weight: 700;
}

.cover-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212, 169, 90, 0.4);
  text-decoration: none;
  color: var(--navy-900);
}

.cover-btn--secondary {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.cover-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  text-decoration: none;
  color: white;
}

/* ─── Cover Meta / Byline ───────────────────────────────────────────────────── */
.cover-meta {
  margin-top: var(--space-10);
  text-align: center;
  position: relative;
  z-index: 1;
}

.byline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--gold-300);
  letter-spacing: 0.01em;
  line-height: 1.6;
}

.byline a {
  color: var(--gold-400);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}
.byline a:hover {
  color: var(--gold-200);
  text-decoration: underline;
}

.qf-mark {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(212, 169, 90, 0.15), rgba(212, 169, 90, 0.06));
  border: 1px solid rgba(212, 169, 90, 0.25);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-400);
  letter-spacing: 0.04em;
  flex-shrink: 0;
  text-shadow: 0 0 12px rgba(212, 169, 90, 0.2);
}

.cover-author {
  margin-top: var(--space-3);
  font-size: 12px;
  color: var(--gold-300);
  opacity: 0.6;
  letter-spacing: 0.03em;
  font-family: var(--font-body);
}
.cover-author strong {
  color: var(--gold-400);
  font-weight: 600;
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CONTENT SECTIONS
   ═══════════════════════════════════════════════════════════════════════════════ */
.content-section {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: var(--space-16) var(--page-padding);
  scroll-margin-top: calc(var(--header-height) + var(--progress-height) + 16px);
}

/* ─── Section Headers ────────────────────────────────────────────────────────── */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
  font-family: var(--font-mono);
}

.section-badge--strategy {
  background: var(--navy-50);
  color: var(--navy-700);
  border: 1px solid var(--navy-100);
}

.section-badge--regulatory {
  background: var(--info-50);
  color: var(--info-700);
  border: 1px solid var(--info-100);
}

.section-badge--compliance {
  background: var(--success-50);
  color: var(--success-700);
  border: 1px solid var(--success-100);
}

.section-badge--risk {
  background: var(--navy-50);
  color: var(--navy-700);
  border: 1px solid var(--navy-100);
}

/* Also match HTML pattern: class="section-badge risk" */
.section-badge.risk {
  background: var(--navy-50);
  color: var(--navy-700);
  border: 1px solid var(--navy-100);
}

.section-badge--legal {
  background: var(--purple-50);
  color: var(--purple-700);
  border: 1px solid var(--purple-100);
}

.main-content { counter-reset: section; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  text-wrap: balance;
  color: var(--slate-900);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: var(--space-6);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--slate-100);
  border-image: linear-gradient(90deg, var(--gold-500) 0%, var(--slate-200) 40%, transparent 100%) 1;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-bottom: var(--space-4);
  color: var(--navy-700);
}

h4 {
  font-size: 1.125rem;
  margin-bottom: var(--space-3);
  color: var(--navy-600);
}

h5 {
  font-size: 1rem;
  margin-bottom: var(--space-3);
  color: var(--navy-600);
}

h6 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-3);
  color: var(--slate-600);
}

p {
  margin-bottom: var(--space-5);
  max-width: 70ch;
  line-height: 1.78;
  font-size: 0.95rem;
  color: var(--slate-700);
}

/* ─── Version Badge ──────────────────────────────────────────────────────────── */
.version-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  font-size: 13px;
  color: var(--slate-600);
  font-family: var(--font-body);
  margin-bottom: var(--space-8);
  box-shadow: var(--shadow-sm);
}

.version-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 100%);
  color: var(--gold-400);
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   PERSONA CARDS
   ═══════════════════════════════════════════════════════════════════════════════ */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin: var(--space-6) 0;
  align-items: stretch;
}

.persona-card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.persona-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--gold-500);
}

.persona-card .persona-links {
  margin-top: auto;
}

.persona-role {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-700);
  margin-bottom: var(--space-3);
  font-weight: 600;
}

.persona-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.persona-desc {
  font-size: 14px;
  color: var(--slate-600);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.persona-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.persona-link {
  display: inline-flex;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--slate-50);
  border: 1px solid var(--slate-100);
  font-size: 11px;
  font-family: var(--font-body);
  color: var(--slate-700);
  text-decoration: none;
  transition: all var(--transition-fast);
  font-weight: 500;
}

.persona-link:hover {
  background: var(--gold-50);
  border-color: var(--gold-200);
  text-decoration: none;
  color: var(--navy-700);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CALLOUTS
   ═══════════════════════════════════════════════════════════════════════════════ */
.callout {
  position: relative;
  margin: var(--space-6) 0;
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  border-left: 4px solid;
  background: white;
  box-shadow: var(--shadow-sm);
}

.callout-strategy {
  background: linear-gradient(135deg, var(--navy-50) 0%, white 100%);
  border-left-color: var(--navy-700);
  border-color: var(--navy-100);
}

.callout-regulatory {
  background: linear-gradient(135deg, var(--info-50) 0%, white 100%);
  border-left-color: var(--info-600);
  border-color: var(--info-100);
}

.callout-risk {
  background: linear-gradient(135deg, var(--navy-50) 0%, white 100%);
  border-left-color: var(--navy-600);
  border-color: var(--navy-100);
}

.callout-compliance {
  background: linear-gradient(135deg, var(--success-50) 0%, white 100%);
  border-left-color: var(--success-600);
  border-color: var(--success-100);
}

.callout-legal {
  background: linear-gradient(135deg, var(--purple-50) 0%, white 100%);
  border-left-color: var(--purple-600);
  border-color: var(--purple-100);
}

.callout-title {
  color: var(--slate-900);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: var(--space-3);
  font-family: var(--font-mono);
}

.callout-strategy .callout-title { color: var(--navy-700); }
.callout-regulatory .callout-title { color: var(--info-700); }
.callout-risk .callout-title { color: var(--navy-700); }
.callout-compliance .callout-title { color: var(--success-700); }
.callout-legal .callout-title { color: var(--purple-700); }

.callout p {
  max-width: none;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   KEY INSIGHTS — Premium Highlight Block
   ═══════════════════════════════════════════════════════════════════════════════ */
.key-insight {
  margin: var(--space-8) 0;
  padding: var(--space-6);
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-900) 100%);
  border-radius: var(--radius-xl);
  border-left: 3px solid var(--gold-500);
  border-image: linear-gradient(to bottom, var(--gold-500), var(--gold-200)) 1;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.key-insight::before {
  content: "★";
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  font-size: 1.2rem;
  color: var(--gold-400);
  opacity: 0.6;
}

.key-insight-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-400);
  margin-bottom: var(--space-3);
}

/* Key insight header — dark navy bold */
.key-insight-header {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--navy-700);
  margin-bottom: var(--space-3);
}

/* Callout body text — black, not red */
.callout-risk p,
.callout-risk li {
  color: var(--slate-800);
}

.key-insight p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 0;
  max-width: none;
}

.key-insight strong {
  color: var(--gold-300);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════════════════════════════════════════ */
.table-container {
  margin: var(--space-6) 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 600px;
}

th {
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: rgba(255, 255, 255, 0.92);
  padding: var(--space-4) var(--space-5);
  text-align: left;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--gold-600);
  z-index: 1;
  font-family: var(--font-mono);
}

td {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--slate-100);
  vertical-align: top;
  color: var(--slate-700);
  background: transparent;
  line-height: 1.55;
}

tr:nth-child(even) td {
  background: var(--slate-25);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(212, 169, 90, 0.03);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   FRAMEWORK CARDS
   ═══════════════════════════════════════════════════════════════════════════════ */
.framework-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
  margin: var(--space-6) 0;
  align-items: stretch;
}

.framework-card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.framework-card:hover {
  transform: translateY(-2px) translateZ(0);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--gold-400);
}

.framework-card > p:last-child {
  margin-top: auto;
  margin-bottom: 0;
}

.framework-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.framework-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border: 1px solid var(--slate-100);
  background: var(--slate-50);
  color: var(--navy-600);
  flex-shrink: 0;
}

.framework-icon.strategy {
  background: var(--navy-50);
  color: var(--navy-700);
  border-color: var(--navy-100);
}

.framework-icon.regulatory {
  background: var(--info-50);
  color: var(--info-600);
  border-color: var(--info-100);
}

.framework-icon.risk {
  background: var(--navy-50);
  color: var(--navy-600);
  border-color: var(--navy-100);
}

.framework-icon.compliance {
  background: var(--success-50);
  color: var(--success-600);
  border-color: var(--success-100);
}

.framework-icon.legal {
  background: var(--purple-50);
  color: var(--purple-600);
  border-color: var(--purple-100);
}

.framework-card h4 {
  margin: 0;
  font-size: 1rem;
}

.framework-card p {
  font-size: 14px;
  color: var(--slate-600);
  margin-bottom: 0;
  max-width: none;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   TIMELINE
   ═══════════════════════════════════════════════════════════════════════════════ */
.timeline {
  margin: var(--space-8) 0;
  position: relative;
  padding-left: var(--space-8);
  max-width: 90ch;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold-500) 0%, var(--slate-200) 100%);
}

.timeline-item {
  position: relative;
  padding-left: var(--space-4);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--slate-100);
}

.timeline-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--space-8));
  top: var(--space-1);
  width: 14px;
  height: 14px;
  border-radius: var(--radius-full);
  background: var(--gold-500);
  border: 3px solid var(--slate-50);
  box-shadow: var(--shadow-md), 0 0 0 3px rgba(212, 169, 90, 0.15);
}

.timeline-date {
  font-size: 11px;
  color: var(--gold-700);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-2);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
}

.timeline-content {
  color: var(--slate-600);
  max-width: 72ch;
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CHECKLISTS
   ═══════════════════════════════════════════════════════════════════════════════ */
.checklist {
  margin: var(--space-6) 0;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.checklist-header {
  background: linear-gradient(135deg, var(--slate-50) 0%, white 100%);
  padding: var(--space-4) var(--space-5);
  border-bottom: 2px solid var(--slate-100);
  border-image: linear-gradient(90deg, var(--gold-500) 0%, var(--slate-200) 40%, transparent 100%) 1;
  font-weight: 600;
  color: var(--slate-800);
  font-family: var(--font-body);
  font-size: 14px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--slate-100);
  transition: background var(--transition-fast);
}

.checklist-item:last-child {
  border-bottom: none;
}

.checklist-item:hover {
  background: var(--slate-25);
}

.checklist-box {
  width: 18px;
  height: 18px;
  border: 2px solid var(--slate-300);
  border-radius: var(--radius-sm);
  margin-top: 2px;
  flex-shrink: 0;
  background: white;
  transition: all var(--transition-fast);
}

.checklist-item:hover .checklist-box {
  border-color: var(--gold-500);
}

.checklist-text {
  color: var(--slate-700);
  font-size: 14px;
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RISK MATRIX
   ═══════════════════════════════════════════════════════════════════════════════ */
.risk-matrix {
  margin: var(--space-6) 0;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.risk-row {
  display: grid;
  grid-template-columns: 220px 1fr 130px;
  border-bottom: 2px solid var(--slate-100);
  border-image: linear-gradient(90deg, var(--gold-500) 0%, var(--slate-200) 40%, transparent 100%) 1;
}

.risk-row:last-child {
  border-bottom: none;
}

.risk-row.header {
  background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: white;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.risk-cell {
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
}

.risk-cell:not(:last-child) {
  border-right: 1px solid var(--slate-100);
}

.risk-row.header .risk-cell:not(:last-child) {
  border-right-color: rgba(255, 255, 255, 0.12);
}

.risk-level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  font-family: var(--font-body);
}

.risk-level.high {
  background: #D5F0E8;
  color: #1A6B5A;
}

.risk-level.medium {
  background: var(--warning-100);
  color: var(--warning-700);
}

.risk-level.low {
  background: var(--success-100);
  color: var(--success-700);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SECTION DIVIDERS
   ═══════════════════════════════════════════════════════════════════════════════ */
.section-divider {
  text-align: center;
  margin: var(--space-12) 0;
  position: relative;
}

.section-divider::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--slate-200) 20%, var(--slate-200) 80%, transparent 100%);
}

.section-divider-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-full);
  color: var(--gold-600);
  font-size: 16px;
  box-shadow: var(--shadow-sm);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CALCULATOR TOOL
   ═══════════════════════════════════════════════════════════════════════════════ */
#calcTool {
  margin: var(--space-6) 0;
  padding: var(--space-6);
  background: linear-gradient(135deg, var(--slate-50) 0%, white 100%);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

#calcTool input[type="number"],
#calcTool select {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 14px;
  text-align: right;
  background: white;
  color: var(--slate-800);
  transition: all var(--transition-fast);
}

#calcTool input[type="number"]:focus,
#calcTool select:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(212, 169, 90, 0.12);
}

#calcRun {
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-base);
  border: none;
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-600) 100%);
  color: var(--gold-400);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

#calcRun:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

#calcResults {
  margin-top: var(--space-6);
}

#calcResults table {
  min-width: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   DEDICATION SECTION
   ═══════════════════════════════════════════════════════════════════════════════ */
.dedication-section {
  position: relative;
  padding: var(--space-16) var(--page-padding);
  background: linear-gradient(165deg, var(--navy-800) 0%, var(--navy-950) 100%);
  color: white;
  text-align: center;
  overflow: hidden;
}

.dedication-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(212, 169, 90, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 70%, rgba(212, 169, 90, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.dedication-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.dedication-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-500);
  margin-bottom: var(--space-4);
}

.dedication-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.dedication-epigraph {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: rgba(237, 239, 242, 0.75);
  margin-bottom: var(--space-8);
  line-height: 1.6;
}

.dedication-divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-500) 50%, transparent 100%);
  margin: var(--space-8) auto;
  box-shadow: 0 0 12px rgba(212, 169, 90, 0.4);
}

.dedication-text {
  font-size: 1.05rem;
  color: #EDEFF2;
  line-height: 1.8;
  text-align: left;
  margin-bottom: var(--space-6);
}

.dedication-text strong {
  color: var(--gold-400);
}

.dedication-signature {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--gold-400);
  margin-top: var(--space-8);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════════ */
.main-footer {
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-12) var(--page-padding);
}

.footer-content {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-6);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: white;
}

.footer-brand span {
  color: var(--gold-400);
}

.footer-links {
  display: flex;
  gap: var(--space-6);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--gold-400);
  text-decoration: none;
}

.footer-legal {
  width: 100%;
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   LISTS
   ═══════════════════════════════════════════════════════════════════════════════ */
ul, ol {
  margin: var(--space-4) 0;
  padding-left: var(--space-6);
}

li {
  margin-bottom: var(--space-2);
  line-height: 1.65;
}

li::marker {
  color: var(--gold-600);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CODE BLOCKS
   ═══════════════════════════════════════════════════════════════════════════════ */
code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: var(--space-1) var(--space-2);
  background: var(--slate-100);
  border-radius: var(--radius-sm);
  color: var(--navy-700);
}

pre {
  margin: var(--space-5) 0;
  padding: var(--space-5);
  background: var(--navy-900);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

pre code {
  background: transparent;
  padding: 0;
  color: var(--slate-200);
  font-size: 13px;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   BLOCKQUOTES
   ═══════════════════════════════════════════════════════════════════════════════ */
blockquote {
  margin: var(--space-6) 0;
  padding: var(--space-5) var(--space-6);
  border-left: 4px solid var(--gold-500);
  background: var(--gold-50);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--slate-700);
  line-height: 1.7;
}

blockquote p {
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════════════════════════════════════════ */
@media print {
  .nav-header,
  .progress-container,
  .sidebar,
  .sidebar-overlay,
  .nav-btn,
  .cover-buttons {
    display: none !important;
  }

  .main-content {
    margin-left: 0 !important;
    padding-top: 0 !important;
  }

  .cover-section {
    min-height: auto;
    margin-top: 0;
    padding-top: var(--space-8);
    background: white !important;
    color: var(--slate-900) !important;
  }

  .cover-title,
  .cover-subtitle,
  .cover-description {
    color: var(--slate-900) !important;
    -webkit-text-fill-color: initial !important;
    background: none !important;
  }

  .content-section {
    padding: var(--space-6) 0;
    page-break-inside: avoid;
  }

  h2, h3 {
    page-break-after: avoid;
  }

  .callout,
  .key-insight,
  .framework-card {
    break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid var(--slate-300) !important;
  }

  .key-insight {
    background: var(--slate-100) !important;
    color: var(--slate-900) !important;
  }

  a {
    color: var(--slate-900) !important;
    text-decoration: underline !important;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: var(--slate-500);
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet (≤1024px)
   ═══════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root {
    --sidebar-width: 0px;
  }

  .sidebar {
    position: fixed;
    width: var(--toc-drawer-width);
    transform: translateX(-100%);
    box-shadow: none;
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-2xl);
  }

  .main-content {
    margin-left: 0;
  }

  .persona-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .risk-row {
    grid-template-columns: 180px 1fr 110px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile (≤768px)
   ═══════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root {
    --header-height: 56px;
    --page-padding: var(--space-4);
  }

  .nav-brand {
    font-size: 0.75rem;
  }

  .nav-brand .brand-icon {
    width: 32px;
    height: 26px;
    font-size: 0.6rem;
  }

  .nav-btn {
    padding: var(--space-2) var(--space-3);
    font-size: 0.72rem;
  }

  .cover-section {
    padding-top: calc(var(--header-height) + var(--progress-height) + var(--safe-top) + var(--space-12));
  }

  .cover-stats {
    flex-direction: column;
    align-items: stretch;
  }

  .cover-stat {
    text-align: center;
  }

  .cover-buttons {
    flex-direction: column;
  }

  .cover-btn {
    width: 100%;
    justify-content: center;
  }

  .content-section {
    padding: var(--space-8) var(--page-padding);
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  h3 {
    font-size: 1.15rem;
  }

  .persona-grid {
    grid-template-columns: 1fr;
  }

  .framework-grid {
    grid-template-columns: 1fr;
  }

  .risk-row {
    grid-template-columns: 1fr;
  }

  .risk-row.header {
    display: none;
  }

  .risk-cell {
    border-right: none !important;
    border-bottom: 1px solid var(--slate-100);
    padding: var(--space-3) var(--space-4);
  }

  .risk-cell:last-child {
    border-bottom: none;
  }

  .risk-cell::before {
    content: attr(data-label);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate-500);
    margin-right: var(--space-3);
    min-width: 80px;
  }

  .table-container {
    border-radius: var(--radius-lg);
  }

  table {
    font-size: 13px;
    min-width: 500px;
  }

  th, td {
    padding: var(--space-3) var(--space-4);
  }

  .dedication-name {
    font-size: 2.5rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE — Small Mobile (≤480px)
   ═══════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  :root {
    --page-padding: var(--space-3);
  }

  .cover-title {
    font-size: 1.8rem;
  }

  .cover-subtitle {
    font-size: 1rem;
  }

  .callout,
  .key-insight {
    padding: var(--space-4);
  }

  .checklist-item {
    padding: var(--space-3) var(--space-4);
  }

  #calcTool {
    padding: var(--space-4);
  }

  #calcTool input[type="number"],
  #calcTool select {
    width: 100% !important;
    margin-bottom: var(--space-2);
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ACCESSIBILITY — Reduced Motion
   ═══════════════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   DARK MODE — Corrected Color System
   Gold headings, bright neutral white body text, zero blue cast
   ═══════════════════════════════════════════════════════════════════════════════ */
html.dark {
  --bg: var(--navy-950);
  --surface: var(--navy-900);
  --surface-2: var(--navy-800);
  --slate-50: var(--navy-900);
  --slate-100: var(--navy-800);
  --slate-200: var(--navy-700);
  --slate-300: #B8C4D4;
  --text: #EDEFF2;
  --muted: #C8D0DC;
  --muted-2: #A8B5C4;
  --text-muted: #8A9AB0;
  --ink: #FFFFFF;
  --ink-deep: #FFFFFF;
  --slate-700: #C8D0DC;
  --slate-800: #DDE3EA;
  --slate-900: #FFFFFF;
}

html.dark body {
  background: var(--navy-950);
  color: #EDEFF2;
}

html.dark .content-section {
  background: var(--navy-950);
}

html.dark .callout,
html.dark .framework-card,
html.dark .checklist,
html.dark .table-container,
html.dark .risk-matrix {
  background: var(--navy-900);
  border-color: var(--navy-700);
}

html.dark .callout-strategy,
html.dark .callout-regulatory,
html.dark .callout-risk,
html.dark .callout-compliance,
html.dark .callout-legal {
  background: var(--navy-900);
}

html.dark h1, html.dark h2, html.dark h3 {
  color: var(--gold-400);
}
html.dark h4, html.dark h5, html.dark h6 {
  color: #EDEFF2;
}

html.dark p {
  color: #EDEFF2;
}

html.dark li {
  color: #EDEFF2;
}

html.dark a {
  color: var(--gold-400);
}

html.dark .version-bar {
  background: var(--navy-900);
  border-color: var(--navy-700);
}

html.dark tr:nth-child(even) td {
  background: var(--navy-800);
}

html.dark td, html.dark th {
  color: #DDE3EA;
}

html.dark th {
  color: var(--gold-400);
}

html.dark code {
  background: var(--navy-800);
  color: var(--gold-300);
}

html.dark .section-header h1 {
  color: var(--gold-400);
}

html.dark .section-badge {
  background: rgba(212,169,90,.1);
  color: var(--gold-400);
  border-color: rgba(212,169,90,.2);
}

/* ─── LIGHT-BACKGROUND CONTAINERS: Force dark text in dark mode ─── */
html.dark .framework-card {
  --ink: #0F1624;
  --ink-deep: #0F1624;
  --muted: #3D4F66;
  --muted-2: #5A6B82;
  --text: #1A2436;
  --text-muted: #5A6B82;
}
html.dark .framework-card h4 { color: #0F1624 !important; }
html.dark .framework-card p { color: #3D4F66 !important; }

html.dark blockquote { color: #142840 !important; background: #FDF8EF; }
html.dark blockquote p { color: #142840 !important; }
html.dark blockquote cite { color: #9A7B4F !important; }

html.dark .callout-title { color: #E4B96A !important; }
html.dark .key-insight-header { color: #E4B96A !important; }
html.dark .key-insight-title { color: #E4B96A !important; }

/* ═══════════════════════════════════════════════════════════════════════════════
   DEDICATION — Premium embossed book-cover card
   Layered gold filigree border system, rotated diamond ornaments at corners,
   textured gradient background, gold headers, bright white prose, gold closing.
   ═══════════════════════════════════════════════════════════════════════════════ */
.ded-wrap {
  max-width: var(--max-w, 900px);
  margin: 0 auto;
  opacity: 0;
  transform: translateY(24px);
  animation: dedReveal 1.2s cubic-bezier(.16,1,.3,1) .4s both;
}
@keyframes dedReveal {
  to { opacity: 1; transform: translateY(0); }
}

.ded-card {
  background:
    radial-gradient(ellipse 90% 70% at 10% 95%, rgba(26,58,92,.18), transparent 60%),
    radial-gradient(ellipse 70% 55% at 90% 5%, rgba(20,40,64,.22), transparent 60%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(212,169,90,.03), transparent 50%),
    linear-gradient(178deg, #182F4A 0%, #112640 20%, #0C1E34 45%, #091728 70%, #060F1C 100%);
  border-radius: 4px;
  padding: clamp(3.25rem, 6.5vw, 4.5rem) clamp(2.5rem, 5.5vw, 3.75rem);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 40px 80px -24px rgba(0,0,0,.5),
    0 16px 32px -8px rgba(0,0,0,.2),
    0 2px 4px rgba(0,0,0,.15),
    inset 0 1px 0 rgba(255,255,255,.04),
    inset 0 -1px 0 rgba(0,0,0,.25);
}

/* ─── Noise grain texture ─── */
.ded-card > .ded-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.025'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  opacity: .4;
  z-index: 0;
}

/* ─── Scroll border system — CSS divs that track card perimeter ─── */
.scroll-outer {
  position: absolute;
  top: 12px; right: 12px; bottom: 12px; left: 12px;
  border: 1px solid rgba(184,149,106,.25);
  border-radius: 2px;
  pointer-events: none;
  z-index: 1;
}
.scroll-inner {
  position: absolute;
  top: 19px; right: 19px; bottom: 19px; left: 19px;
  border: 1.5px solid rgba(184,149,106,.4);
  border-radius: 1px;
  pointer-events: none;
  z-index: 1;
  box-shadow:
    0 0 0 1px rgba(184,149,106,.05),
    inset 0 0 0 1px rgba(184,149,106,.04),
    0 0 20px rgba(212,169,90,.03),
    inset 0 0 20px rgba(212,169,90,.02);
}

/* ─── Diamond ornaments at each corner intersection ─── */
.scroll-diamond {
  position: absolute;
  width: 14px; height: 14px;
  z-index: 2;
  pointer-events: none;
}
/* Outer diamond outline */
.scroll-diamond::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(184,149,106,.5);
  transform: rotate(45deg);
  border-radius: 1px;
}
/* Inner filled diamond */
.scroll-diamond::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: rgba(184,149,106,.12);
  border: .5px solid rgba(184,149,106,.3);
  transform: rotate(45deg);
  border-radius: 0;
}
/* Position each diamond at the corner where the two border lines intersect */
.scroll-diamond.sd-tl { top: 12px; left: 12px; }
.scroll-diamond.sd-tr { top: 12px; right: 12px; }
.scroll-diamond.sd-bl { bottom: 12px; left: 12px; }
.scroll-diamond.sd-br { bottom: 12px; right: 12px; }

/* ─── Mobile ─── */
@media (max-width: 640px) {
  .ded-card { padding: 2.5rem 1.5rem; }
  .ded-name { font-size: 2rem; }
  .ded-standout { font-size: 1.15rem; }
  .ded-standout::before, .ded-standout::after { display: none; }
  .ded-body { max-width: 100%; }
  .ded-closing { max-width: 100%; }
  .scroll-outer { top: 8px; right: 8px; bottom: 8px; left: 8px; }
  .scroll-inner { top: 14px; right: 14px; bottom: 14px; left: 14px; }
  .scroll-diamond { width: 11px; height: 11px; }
  .scroll-diamond.sd-tl { top: 8px; left: 8px; }
  .scroll-diamond.sd-tr { top: 8px; right: 8px; }
  .scroll-diamond.sd-bl { bottom: 8px; left: 8px; }
  .scroll-diamond.sd-br { bottom: 8px; right: 8px; }
}
.ded-inner { position: relative; z-index: 2; }

/* ─── "FOR MY SON..." — Gold mono label, optically centered ─── */
.ded-label {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: .72rem;
  font-weight: 700;
  color: #D4A95A;
  text-align: center;
  letter-spacing: .32em;
  text-indent: .32em;
  text-transform: uppercase;
  margin-bottom: .45rem;
  display: block;
  width: 100%;
  text-shadow: 0 0 20px rgba(212,169,90,.12);
}

/* ─── "Bode" — Large bold gold display, heroic scale ─── */
.ded-name {
  font-family: var(--font-display, 'IBM Plex Serif', Georgia, serif);
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 700;
  color: #E4B96A;
  text-align: center;
  letter-spacing: .06em;
  text-indent: .06em;
  line-height: 1.05;
  margin-bottom: .65rem;
  text-shadow: 0 0 40px rgba(228,185,106,.12), 0 2px 4px rgba(0,0,0,.1);
}

/* ─── Epigraph — Gold italic, slightly subdued ─── */
.ded-epi {
  font-family: var(--font-display, 'IBM Plex Serif', Georgia, serif);
  font-size: .93rem;
  color: rgba(228,185,106,.8);
  text-align: center;
  font-style: italic;
  line-height: 1.8;
  max-width: 460px;
  margin: 0 auto 2rem;
}

/* ─── Gold gradient ornamental rule ─── */
.ded-rule {
  border: none;
  height: 1px;
  max-width: 120px;
  margin: 0 auto 2rem;
  background: linear-gradient(90deg,
    transparent 0%, rgba(184,149,106,.2) 15%,
    rgba(212,169,90,.45) 40%, rgba(228,185,106,.5) 50%,
    rgba(212,169,90,.45) 60%, rgba(184,149,106,.2) 85%,
    transparent 100%
  );
}

/* ─── Body text — Pure bright white, zero blue cast ─── */
.ded-body {
  font-family: var(--font-body, 'IBM Plex Sans', sans-serif);
  font-size: .9rem;
  color: #EDEFF2;
  line-height: 2;
  text-align: left;
  margin-bottom: 1.15rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: .003em;
}
.ded-body em {
  color: #FFFFFF;
  font-style: italic;
}

/* ─── "Stand up anyway." — Gold dramatic centerpiece ─── */
.ded-standout {
  font-family: var(--font-display, 'IBM Plex Serif', Georgia, serif);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 700;
  color: #E4B96A;
  text-align: center;
  letter-spacing: .04em;
  text-indent: .04em;
  margin: 2.25rem 0;
  text-shadow: 0 0 24px rgba(212,169,90,.18), 0 1px 3px rgba(0,0,0,.15);
  position: relative;
}
/* Decorative rules flanking the standout */
.ded-standout::before,
.ded-standout::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,169,90,.3));
}
.ded-standout::before { right: calc(50% + 8em); }
.ded-standout::after { left: calc(50% + 8em); background: linear-gradient(90deg, rgba(212,169,90,.3), transparent); }

/* ─── Closing paragraph — Gold serif ─── */
.ded-closing {
  font-family: var(--font-display, 'IBM Plex Serif', Georgia, serif);
  font-size: .98rem;
  color: #E4B96A;
  text-align: center;
  line-height: 1.9;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: .5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── "I will always love you, Bode." — Gold, prominent ─── */
.ded-sign {
  font-family: var(--font-display, 'IBM Plex Serif', Georgia, serif);
  font-size: 1.2rem;
  color: #E4B96A;
  text-align: center;
  font-weight: 700;
  margin-top: .85rem;
  letter-spacing: .015em;
  text-shadow: 0 0 24px rgba(228,185,106,.12);
}

/* ─── "— Dad" — Gold signature ─── */
.ded-sig {
  font-family: var(--font-display, 'IBM Plex Serif', Georgia, serif);
  font-size: 1.1rem;
  color: #E4B96A;
  text-align: center;
  font-weight: 700;
  letter-spacing: .05em;
  text-indent: .05em;
  margin-top: .35rem;
  margin-bottom: .35rem;
}

/* ─── Date — Barely visible, sacred space ─── */
.ded-date {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: .64rem;
  color: rgba(255,255,255,.18);
  text-align: center;
  letter-spacing: .12em;
  text-indent: .12em;
  margin-top: .85rem;
}

/* ─── Print ─── */
@media print {
  .ded-wrap { animation: none !important; opacity: 1 !important; transform: none !important; }
  .ded-card {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    break-before: page;
    break-inside: avoid;
  }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  .ded-wrap { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ─── Page load animations (safe on all devices) ─── */
@media (prefers-reduced-motion: no-preference) {
  body { animation: page-reveal 400ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  @keyframes page-reveal { from { opacity: 0.6; } to { opacity: 1; } }
}

/* ─── content-visibility ONLY on desktop (mobile Safari breaks) ─── */
@media (min-width: 1025px) {
  @supports (content-visibility: auto) {
    .content-section { content-visibility: auto; contain-intrinsic-size: auto 800px; }
  }
}

/* ─── Mobile rendering fixes ─── */
@media (max-width: 1024px) {
  .content-section { content-visibility: visible !important; }
  .sidebar { -webkit-overflow-scrolling: touch; }
  * { -webkit-tap-highlight-color: transparent; }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   VISUAL POLISH LAYER — Advanced gradients, depth, glow, and motion
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ─── 1. ANIMATED BACKGROUND — Slow gradient shift behind content ─────────── */
.main-content {
  position: relative;
}
.main-content::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(232,241,249,.5), transparent 60%),
    radial-gradient(ellipse 70% 60% at 80% 100%, rgba(253,248,239,.4), transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 50%, rgba(200,222,240,.15), transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: bgShift 30s ease-in-out infinite alternate;
  opacity: .6;
}
@keyframes bgShift {
  0%   { background-position: 0% 0%, 100% 100%, 50% 50%; }
  33%  { background-position: 30% 20%, 70% 80%, 40% 60%; }
  66%  { background-position: 10% 40%, 90% 60%, 60% 30%; }
  100% { background-position: 20% 10%, 80% 90%, 45% 55%; }
}
.main-content > * { position: relative; z-index: 1; }

/* ─── 2. CONTENT SECTIONS — Alternating subtle gradient fills ─────────────── */
/* Odd sections: cool navy-tinted white */
.content-section:nth-child(odd) {
  background: linear-gradient(175deg,
    rgba(232,241,249,.35) 0%,
    rgba(255,255,255,.95) 40%,
    rgba(255,255,255,1) 100%
  );
}
/* Even sections: warm gold-tinted white */
.content-section:nth-child(even) {
  background: linear-gradient(175deg,
    rgba(253,248,239,.3) 0%,
    rgba(255,255,255,.95) 40%,
    rgba(255,255,255,1) 100%
  );
}
/* Hover: subtle lift with gold-tinged glow */
.content-section {
  transition: box-shadow .35s cubic-bezier(.16,1,.3,1), transform .35s cubic-bezier(.16,1,.3,1) !important;
}
.content-section:hover {
  box-shadow:
    0 8px 32px -8px rgba(10,22,40,.08),
    0 0 0 1px rgba(212,169,90,.06);
  transform: translateY(-1px);
}

/* ─── 3. FRAMEWORK CARDS — Category-coded gradient fills + 3D depth ────────── */
.framework-card {
  background: linear-gradient(165deg, rgba(255,255,255,1) 0%, rgba(250,251,252,.95) 100%) !important;
  border: 1px solid rgba(197,208,222,.6) !important;
  box-shadow:
    0 1px 3px rgba(10,22,40,.04),
    0 1px 2px rgba(10,22,40,.02),
    inset 0 1px 0 rgba(255,255,255,.8) !important;
  transition: all .3s cubic-bezier(.16,1,.3,1) !important;
  transform: perspective(1000px) rotateX(0deg);
  transform-style: preserve-3d;
}
.framework-card:hover {
  transform: perspective(1000px) rotateX(1deg) translateY(-4px) !important;
  box-shadow:
    0 12px 36px -8px rgba(10,22,40,.1),
    0 4px 12px rgba(10,22,40,.04),
    0 0 0 1px rgba(212,169,90,.1),
    inset 0 1px 0 rgba(255,255,255,.9) !important;
  border-color: rgba(212,169,90,.25) !important;
}

/* Strategy framework cards: navy gradient tint */
.framework-card:nth-child(3n+1) {
  background: linear-gradient(165deg,
    rgba(232,241,249,.2) 0%,
    rgba(255,255,255,1) 50%,
    rgba(250,251,252,.9) 100%
  ) !important;
}
/* Compliance framework cards: green gradient tint */
.framework-card:nth-child(3n+2) {
  background: linear-gradient(165deg,
    rgba(209,250,229,.12) 0%,
    rgba(255,255,255,1) 50%,
    rgba(250,251,252,.9) 100%
  ) !important;
}
/* Operations framework cards: gold gradient tint */
.framework-card:nth-child(3n+3) {
  background: linear-gradient(165deg,
    rgba(251,240,217,.15) 0%,
    rgba(255,255,255,1) 50%,
    rgba(250,251,252,.9) 100%
  ) !important;
}

/* ─── 4. KEY INSIGHT CARDS — Premium dark cards with depth ─────────────────── */
.key-insight {
  background: linear-gradient(145deg, #142840 0%, #0D1F33 50%, #0A1828 100%) !important;
  box-shadow:
    0 16px 48px -12px rgba(0,0,0,.25),
    0 4px 12px rgba(0,0,0,.1),
    inset 0 1px 0 rgba(255,255,255,.04),
    inset 0 -1px 0 rgba(0,0,0,.15) !important;
  transition: all .35s cubic-bezier(.16,1,.3,1) !important;
  transform: perspective(1000px) rotateX(0deg);
}
.key-insight:hover {
  transform: perspective(1000px) rotateX(0.5deg) translateY(-2px) !important;
  box-shadow:
    0 20px 56px -16px rgba(0,0,0,.3),
    0 6px 16px rgba(0,0,0,.12),
    0 0 24px rgba(212,169,90,.06),
    inset 0 1px 0 rgba(255,255,255,.06) !important;
  border-color: rgba(212,169,90,.3) !important;
}
/* Subtle noise texture on key insights */
.key-insight::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.02'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  pointer-events: none;
  opacity: .35;
  z-index: 0;
}
.key-insight > * { position: relative; z-index: 1; }

/* ─── 5. CALLOUT CARDS — Elevated with 3D tilt + category glow ────────────── */
.callout {
  transform: perspective(1000px) rotateX(0deg);
  transition: all .3s cubic-bezier(.16,1,.3,1) !important;
  box-shadow:
    0 2px 6px rgba(10,22,40,.04),
    inset 0 1px 0 rgba(255,255,255,.7) !important;
}
.callout:hover {
  transform: perspective(1000px) rotateX(0.5deg) translateY(-2px) !important;
  box-shadow:
    0 8px 28px -6px rgba(10,22,40,.08),
    0 2px 6px rgba(10,22,40,.03),
    inset 0 1px 0 rgba(255,255,255,.8) !important;
}

/* Strategy callouts: navy glow */
.callout-strategy:hover {
  box-shadow:
    0 8px 28px -6px rgba(26,58,92,.1),
    0 0 16px rgba(26,58,92,.04),
    inset 0 1px 0 rgba(255,255,255,.8) !important;
}
/* Regulatory callouts: blue glow */
.callout-regulatory:hover {
  box-shadow:
    0 8px 28px -6px rgba(37,99,235,.08),
    0 0 16px rgba(37,99,235,.03),
    inset 0 1px 0 rgba(255,255,255,.8) !important;
}
/* Compliance callouts: green glow */
.callout-compliance:hover {
  box-shadow:
    0 8px 28px -6px rgba(5,150,105,.08),
    0 0 16px rgba(5,150,105,.03),
    inset 0 1px 0 rgba(255,255,255,.8) !important;
}
/* Legal callouts: purple glow */
.callout-legal:hover {
  box-shadow:
    0 8px 28px -6px rgba(124,58,237,.08),
    0 0 16px rgba(124,58,237,.03),
    inset 0 1px 0 rgba(255,255,255,.8) !important;
}

/* ─── 6. COVER SECTION — Enhanced depth and texture ───────────────────────── */
.cover-section {
  background: linear-gradient(165deg, #060F1C 0%, #0D1F33 30%, #17324D 60%, #1A3A5C 100%) !important;
  box-shadow: 0 32px 64px -20px rgba(0,0,0,.4), inset 0 -1px 0 rgba(0,0,0,.3);
}
.cover-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 15% 85%, rgba(212,169,90,.08), transparent),
    radial-gradient(ellipse 60% 45% at 85% 15%, rgba(75,123,168,.06), transparent);
  pointer-events: none;
}
/* Grain texture on cover */
.cover-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.025'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  opacity: .3;
  z-index: 0;
}
.cover-content { position: relative; z-index: 1; }

/* ─── 7. TABLES — Refined with 3D elevation ───────────────────────────────── */
.table-container {
  box-shadow:
    0 2px 8px rgba(10,22,40,.04),
    0 1px 2px rgba(10,22,40,.02),
    inset 0 1px 0 rgba(255,255,255,.6);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .3s ease;
}
.table-container:hover {
  box-shadow:
    0 6px 20px -4px rgba(10,22,40,.07),
    0 2px 6px rgba(10,22,40,.03);
}

/* ─── 8. SVG ARCHITECTURE DIAGRAMS — 3D frame effect ──────────────────────── */
.arch-diagram,
svg[role="img"] {
  border-radius: var(--radius-lg) !important;
  box-shadow:
    0 4px 16px -4px rgba(10,22,40,.08),
    0 1px 4px rgba(10,22,40,.04),
    inset 0 1px 0 rgba(255,255,255,.5) !important;
  transition: all .3s cubic-bezier(.16,1,.3,1) !important;
  transform: perspective(1200px) rotateX(0deg);
}
.arch-diagram:hover,
svg[role="img"]:hover {
  box-shadow:
    0 12px 36px -8px rgba(10,22,40,.1),
    0 4px 10px rgba(10,22,40,.05),
    0 0 20px rgba(212,169,90,.04) !important;
  transform: perspective(1200px) rotateX(0.8deg) translateY(-2px) !important;
}

/* ─── 9. SECTION DIVIDERS — Gold shimmer accent ───────────────────────────── */
.section-divider {
  position: relative;
}
.section-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(212,169,90,.15) 30%,
    rgba(212,169,90,.2) 50%,
    rgba(212,169,90,.15) 70%,
    transparent
  );
  pointer-events: none;
}

/* ─── 10. SECTION BADGES — Subtle 3D pill effect ──────────────────────────── */
.section-badge {
  box-shadow: 0 1px 2px rgba(10,22,40,.04), inset 0 1px 0 rgba(255,255,255,.6);
  transition: all .2s ease;
}
.section-badge:hover {
  box-shadow: 0 2px 6px rgba(10,22,40,.06), inset 0 1px 0 rgba(255,255,255,.7);
  transform: translateY(-1px);
}

/* ─── 11. FRAMEWORK ICONS — 3D raised effect ──────────────────────────────── */
.framework-icon {
  box-shadow:
    0 2px 4px rgba(10,22,40,.04),
    inset 0 1px 0 rgba(255,255,255,.5);
  transition: all .25s cubic-bezier(.16,1,.3,1);
}
.framework-card:hover .framework-icon {
  box-shadow:
    0 3px 8px rgba(10,22,40,.06),
    0 0 12px rgba(212,169,90,.04),
    inset 0 1px 0 rgba(255,255,255,.6);
  transform: translateY(-1px);
}

/* ─── 12. COVER STAT BADGES — Glass morphism 3D ───────────────────────────── */
.cover-stat {
  transition: all .25s cubic-bezier(.16,1,.3,1) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.06) !important;
}
.cover-stat:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.18), 0 0 16px rgba(212,169,90,.06), inset 0 1px 0 rgba(255,255,255,.08) !important;
  transform: translateY(-2px) scale(1.01) !important;
}

/* ─── 13. VERSION BAR — Refined glass effect ──────────────────────────────── */
.version-bar {
  box-shadow: 0 1px 3px rgba(10,22,40,.03), inset 0 1px 0 rgba(255,255,255,.7);
  transition: box-shadow .25s ease;
}
.version-bar:hover {
  box-shadow: 0 4px 12px rgba(10,22,40,.05), inset 0 1px 0 rgba(255,255,255,.8);
}

/* ─── 14. FOOTER CARD — Elevated with gradient ────────────────────────────── */
.footer-card {
  background: linear-gradient(175deg, rgba(255,255,255,1) 0%, rgba(250,251,252,.95) 100%) !important;
  box-shadow:
    0 4px 16px rgba(10,22,40,.04),
    0 1px 3px rgba(10,22,40,.02),
    inset 0 1px 0 rgba(255,255,255,.9) !important;
  border-radius: var(--radius-xl) !important;
  border: 1px solid rgba(197,208,222,.5) !important;
}

/* ─── 15. PERSONA CARDS — Refined depth ───────────────────────────────────── */
.persona-card,
[class*="persona"] > a {
  transition: all .25s cubic-bezier(.16,1,.3,1);
}
.persona-card:hover,
[class*="persona"] > a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px -4px rgba(10,22,40,.08);
}

/* ─── 16. REDUCED MOTION — Disable all 3D and animation ───────────────────── */
@media (prefers-reduced-motion: reduce) {
  .main-content::before { animation: none !important; opacity: .3 !important; }
  .framework-card,
  .framework-card:hover,
  .key-insight,
  .key-insight:hover,
  .callout,
  .callout:hover,
  .arch-diagram,
  .arch-diagram:hover,
  svg[role="img"],
  svg[role="img"]:hover,
  .content-section,
  .content-section:hover,
  .cover-stat,
  .cover-stat:hover {
    transform: none !important;
    transition: none !important;
  }
}

/* ─── 17. MOBILE — Simplify 3D effects ────────────────────────────────────── */
@media (max-width: 1024px) {
  .main-content::before { opacity: .35; }
  .framework-card:hover,
  .key-insight:hover,
  .callout:hover,
  .content-section:hover {
    transform: translateY(-2px) !important;
  }
  .arch-diagram:hover,
  svg[role="img"]:hover {
    transform: translateY(-1px) !important;
  }
}

  
/* ═══════════════════════════════════════════════════════════════════════════════
   PREMIUM INTERACTIONS — Hover Effects, GPU Hints, Performance
   ═══════════════════════════════════════════════════════════════════════════════ */

/* GPU compositing */
.cover-stat, .persona-card, .framework-card, .cover-btn, .sidebar-group-toggle,
.cover-content, .nav-header { will-change: auto; transform: translateZ(0); }

/* Persona card — radial glow tracking */
.persona-card { overflow: hidden; }
.persona-card .card-glow {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  transition: opacity .4s ease;
  background: radial-gradient(300px circle at var(--gx,50%) var(--gy,50%),
    rgba(212,169,90,.05), transparent 60%);
}
.persona-card:hover .card-glow { opacity: 1; }

/* Framework card — magnetic lift */
.framework-card {
  transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s cubic-bezier(.16,1,.3,1), border-color .3s ease;
}
.framework-card:hover {
  border-color: var(--gold-200) !important;
}

/* Cover stat — pulse on hover */
.cover-stat {
  transition: all .35s cubic-bezier(.16,1,.3,1);
}
.cover-stat:hover .cover-stat-value {
  text-shadow: 0 0 36px rgba(212,169,90,.2);
}

/* Sidebar link — smooth gold transition */
.sidebar-group-toggle, .sidebar-link {
  transition: color .2s ease, background .2s ease, border-color .2s ease, padding .2s ease;
}

/* Content section — fade-in on scroll (JS-gated) */
.js-reveal .content-section {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1);
}
.js-reveal .content-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Blockquote hover accent */
blockquote {
  transition: border-color .3s ease, background .3s ease;
}
blockquote:hover {
  background: var(--gold-50);
  border-color: var(--gold-400);
}

/* Table row hover */
table tbody tr {
  transition: background .15s ease;
}
table tbody tr:hover {
  background: var(--navy-50) !important;
}

/* Button press feedback */
.cover-btn:active {
  transform: scale(.97) !important;
  transition-duration: .06s;
}

/* Resize guard */
body.resizing * { transition-duration: 0s !important; }

/* Reduced motion overrides */
@media (prefers-reduced-motion: reduce) {
  .content-section { opacity: 1 !important; transform: none !important; transition: none !important; }
  .persona-card .card-glow { display: none; }
}
