/* Expedite Informatics Enterprise Design System - OffSec High-Contrast Cyber Architecture */

:root {
  /* Light Mode Palette (Crisp High-Contrast Precision) */
  --bg-canvas: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-subtle: #e2e8f0;

  --text-heading: #0a0d14;
  --text-body: #334155;
  --text-muted: #64748b;

  /* Primary Action & Brand Identity (Electric Cyber Sapphire & Deep Indigo) */
  --accent-primary: #0284c7;
  --accent-primary-hover: #0369a1;
  --accent-primary-gradient: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
  --accent-primary-glow: rgba(2, 132, 199, 0.25);
  --accent-primary-shadow: 0 4px 18px rgba(2, 132, 199, 0.35);

  /* Fallback aliases to ensure zero red ever bleeds through */
  --accent-red: #0284c7;
  --accent-red-hover: #0369a1;
  --accent-red-glow: rgba(2, 132, 199, 0.25);

  --accent-purple: #6d28d9;
  --accent-purple-dark: #5b21b6;
  --accent-purple-glow: rgba(109, 40, 217, 0.15);

  --accent-cyan: #0284c7;
  --accent-cyan-dark: #0369a1;
  --accent-cyan-glow: rgba(2, 132, 199, 0.15);

  --accent-gold: #d97706;
  --accent-emerald: #059669;

  --border-grid: #e2e8f0;
  --border-highlight: #0284c7;

  --radius-card: 6px;
  --radius-subtle: 4px;
  --radius-pill: 4px;
  --radius-input: 4px;

  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 4px 18px rgba(2, 132, 199, 0.25);

  --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --header-height: 4.75rem;
}

[data-theme="dark"] {
  /* Dark Mode Palette (OffSec Cyber Obsidian Hierarchy) */
  --bg-canvas: #07090e;
  --bg-surface: #0d111a;
  --bg-surface-elevated: #131926;
  --bg-subtle: #1a2233;

  --text-heading: #ffffff;
  --text-body: #94a3b8;
  --text-muted: #64748b;

  /* Primary Action & Brand Identity (Luminous Sky Blue / Neon Cyan & Royal Indigo) */
  --accent-primary: #38bdf8;
  --accent-primary-hover: #0284c7;
  --accent-primary-gradient: linear-gradient(135deg, #0284c7 0%, #6366f1 100%);
  --accent-primary-glow: rgba(56, 189, 248, 0.35);
  --accent-primary-shadow: 0 4px 20px rgba(2, 132, 199, 0.45);

  /* Fallback aliases to ensure zero red ever bleeds through */
  --accent-red: #38bdf8;
  --accent-red-hover: #0284c7;
  --accent-red-glow: rgba(56, 189, 248, 0.35);

  --accent-purple: #8b5cf6;
  --accent-purple-dark: #7c3aed;
  --accent-purple-glow: rgba(139, 92, 246, 0.35);

  --accent-cyan: #38bdf8;
  --accent-cyan-dark: #0284c7;
  --accent-cyan-glow: rgba(56, 189, 248, 0.35);

  --accent-gold: #f59e0b;
  --accent-emerald: #10b981;

  --border-grid: #1e293b;
  --border-highlight: #38bdf8;

  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 24px rgba(56, 189, 248, 0.25);
}

/* Reset & Canvas */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
  overflow-y: auto;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-body);
  font-family: var(--font-body);
  line-height: 1.68;
  font-size: 1rem;
  min-height: 100vh;
  padding-top: var(--header-height);
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

p {
  line-height: 1.72;
  margin-bottom: 1.25rem;
}

::selection {
  background: rgba(56, 189, 248, 0.28);
  color: #ffffff;
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: var(--bg-canvas);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-subtle);
  border-radius: 4px;
  border: 2px solid var(--bg-canvas);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-heading);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.875rem;
}

h1 {
  font-size: 2.75rem;
  letter-spacing: -0.02em;
  font-weight: 800;
}

h2 {
  font-size: 2rem;
  letter-spacing: -0.015em;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.35rem;
}

h4 {
  font-size: 1.15rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--accent-purple);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--accent-purple-dark);
}

/* Theme-Aware Gradient Text Utility Classes */
.text-gradient-purple {
  background: linear-gradient(135deg, var(--text-heading) 0%, var(--accent-purple) 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, var(--text-heading) 0%, var(--accent-cyan) 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, var(--text-heading) 0%, var(--accent-gold) 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-emerald {
  background: linear-gradient(135deg, var(--text-heading) 0%, var(--accent-emerald) 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Grid & Mandatory Container Padding */
.container {
  max-width: 1240px;
  width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1.75rem !important;
  padding-right: 1.75rem !important;
}

.section-padding {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.grid {
  display: grid;
  gap: 1.75rem;
}

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

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

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

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

/* ==========================================================================
   SMART ADAPTIVE GRIDS (Self-Balancing Card Layouts & Dynamic Space Utilization)
   Prevents empty/blank space when card count is fewer or more than expected columns
   ========================================================================== */

/* 1. SINGLE CARD IN ANY GRID:
   When only 1 card exists, expand to occupy the full width instead of leaving empty space */
.grid-2:has(> :only-child),
.grid-3:has(> :only-child),
.grid-4:has(> :only-child),
.calc-stat-grid-2:has(> :only-child),
.calc-stat-grid-3:has(> :only-child),
.calc-stat-grid-4:has(> :only-child),
.audited-stack-grid:has(> :only-child),
.benchmarks-grid:has(> :only-child),
.compliance-pillars-grid:has(> :only-child),
.report-baselines-grid:has(> :only-child),
.calc-breakdown-grid:has(> :only-child),
.dossier-compliance-items:has(> :only-child),
.sub-service-block ul:has(> :only-child) {
  grid-template-columns: 1fr !important;
}

/* 2. EXACTLY 2 CARDS IN A 3-COLUMN OR 4-COLUMN GRID:
   Distribute evenly into 2 equal 50% columns instead of leaving the 3rd or 4th slot empty */
.grid-3:has(> :nth-child(2):last-child),
.grid-4:has(> :nth-child(2):last-child),
.calc-stat-grid-3:has(> :nth-child(2):last-child),
.calc-stat-grid-4:has(> :nth-child(2):last-child),
.benchmarks-grid:has(> :nth-child(2):last-child),
.audited-stack-grid:has(> :nth-child(2):last-child),
.compliance-pillars-grid:has(> :nth-child(2):last-child),
.report-baselines-grid:has(> :nth-child(2):last-child),
.calc-breakdown-grid:has(> :nth-child(2):last-child),
.dossier-compliance-items:has(> :nth-child(2):last-child),
.sub-service-block ul:has(> :nth-child(2):last-child) {
  grid-template-columns: repeat(2, 1fr) !important;
}

/* 3. EXACTLY 3 CARDS IN A 4-COLUMN GRID OR FEATURE LIST:
   Distribute evenly into 3 equal columns */
.grid-4:has(> :nth-child(3):last-child),
.calc-stat-grid-4:has(> :nth-child(3):last-child),
.audited-stack-grid:has(> :nth-child(3):last-child),
.compliance-pillars-grid:has(> :nth-child(3):last-child),
.report-baselines-grid:has(> :nth-child(3):last-child),
.dossier-compliance-items:has(> :nth-child(3):last-child),
.sub-service-block ul:has(> :nth-child(3):last-child) {
  grid-template-columns: repeat(3, 1fr) !important;
}

/* 4. EXACTLY 4 CARDS IN A 3-COLUMN GRID:
   Transform into a perfectly balanced 2x2 grid */
.grid-3:has(> :nth-child(4):last-child),
.calc-stat-grid-3:has(> :nth-child(4):last-child),
.benchmarks-grid:has(> :nth-child(4):last-child),
.sub-service-block ul:has(> :nth-child(4):last-child) {
  grid-template-columns: repeat(2, 1fr) !important;
}

/* 4b. 4 CARDS IN AUDITED STACK OR 4-COLUMN SPECIFICATION GRIDS:
   Ensure all 4 cards render in a single horizontal line across desktop */
.audited-stack-grid:has(> :nth-child(4):last-child) {
  grid-template-columns: repeat(4, 1fr) !important;
}

/* 5. LONE FINAL CARD IN A 2-COLUMN GRID (Odd counts: 3, 5, 7, etc.):
   Expand the lone final card across the full row */
.grid-2 > :nth-child(odd):last-child,
.calc-stat-grid-2 > :nth-child(odd):last-child,
.calc-controls-grid > :nth-child(odd):last-child:not(.col-span-2):not(.col-span-full),
.dossier-legal-grid > :nth-child(odd):last-child {
  grid-column: 1 / -1;
}

/* 6. LONE FINAL CARD IN A 3-COLUMN GRID (e.g. 7th card, 10th card):
   Expand the lone orphan card across the full 3-column span */
.grid-3:not(:has(> :nth-child(4):last-child)) > :nth-child(3n + 1):last-child,
.benchmarks-grid:not(:has(> :nth-child(4):last-child)) > :nth-child(3n + 1):last-child,
.sub-service-block ul:not(:has(> :nth-child(4):last-child)) > :nth-child(3n + 1):last-child {
  grid-column: 1 / -1;
}

/* 7. TWO REMAINING CARDS IN A 3-COLUMN GRID (e.g. 5, 8, 11, 14, 17 cards):
   Switch to a 6-track grid so standard items take span 2 (3 per row)
   and the final 2 items take span 3 (2 per row, 50% each), perfectly filling the row */
.grid-3:has(> :nth-child(3n + 2):last-child),
.benchmarks-grid:has(> :nth-child(3n + 2):last-child),
.sub-service-block ul:has(> :nth-child(3n + 2):last-child) {
  grid-template-columns: repeat(6, 1fr);
}
.grid-3:has(> :nth-child(3n + 2):last-child) > *,
.benchmarks-grid:has(> :nth-child(3n + 2):last-child) > *,
.sub-service-block ul:has(> :nth-child(3n + 2):last-child) > * {
  grid-column: span 2;
}
.grid-3:has(> :nth-child(3n + 2):last-child) > :nth-last-child(-n+2),
.benchmarks-grid:has(> :nth-child(3n + 2):last-child) > :nth-last-child(-n+2),
.sub-service-block ul:has(> :nth-child(3n + 2):last-child) > :nth-last-child(-n+2) {
  grid-column: span 3;
}

/* 8. CASE EVIDENCE GRID: Auto-fit cards from 1 to 3 items */
.case-evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 1.5rem;
}
.case-evidence-grid:has(> :only-child) {
  grid-template-columns: minmax(0, 1fr) !important;
}
.case-evidence-grid:has(> :nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.case-evidence-grid:has(> :nth-child(3):last-child) {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

/* 9. Universal Auto-Fit Grid Utility */
.grid-auto-fit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.75rem;
}

@media (max-width: 900px) {

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-3:has(> :nth-child(3n + 2):last-child),
  .benchmarks-grid:has(> :nth-child(3n + 2):last-child),
  .sub-service-block ul:has(> :nth-child(3n + 2):last-child) {
    grid-template-columns: 1fr;
  }
  .grid-3 > *,
  .grid-4 > *,
  .grid-3:has(> :nth-child(3n + 2):last-child) > *,
  .benchmarks-grid > *,
  .benchmarks-grid:has(> :nth-child(3n + 2):last-child) > *,
  .sub-service-block ul > *,
  .sub-service-block ul:has(> :nth-child(3n + 2):last-child) > * {
    grid-column: auto !important;
  }

  h1 {
    font-size: 2.1rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .container {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  .section-padding {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 1.85rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  h3 {
    font-size: 1.15rem;
  }

  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* Header & Executive Navigation - Universal Fixed Architecture */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-grid);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

[data-theme="dark"] .site-header {
  background-color: rgba(13, 14, 21, 0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-grid);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-heading);
  letter-spacing: -0.01em;
}

.brand-logo-img {
  width: 32px;
  height: 32px;
  display: block;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-links a,
.nav-link-btn {
  color: var(--text-body);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s ease;
  text-decoration: none;
}

.nav-links a:hover,
.nav-link-btn:hover,
.nav-item.is-active>.nav-link-btn,
.nav-item:hover>.nav-link-btn {
  color: var(--accent-purple);
}

.nav-dropdown-chevron {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.75;
}

.nav-item.is-active .nav-dropdown-chevron,
.nav-item:hover .nav-dropdown-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* Desktop Dropdown Mega-Menus */
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-card);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
  padding: 1.25rem 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s ease;
  z-index: 1002;
}

[data-theme="dark"] .nav-dropdown-menu {
  background: rgba(21, 23, 37, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55), 0 0 25px rgba(124, 58, 237, 0.15);
}

.nav-item.has-dropdown:hover>.nav-dropdown-menu,
.nav-item.has-dropdown.is-open>.nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu.dropdown-wide {
  width: 580px;
  left: -40px;
  transform: translateY(8px);
}

.nav-item.has-dropdown:hover>.nav-dropdown-menu.dropdown-wide,
.nav-item.has-dropdown.is-open>.nav-dropdown-menu.dropdown-wide {
  transform: translateY(0);
}

.nav-dropdown-menu.dropdown-medium {
  width: 480px;
  left: -30px;
  transform: translateY(8px);
}

.nav-item.has-dropdown:hover>.nav-dropdown-menu.dropdown-medium,
.nav-item.has-dropdown.is-open>.nav-dropdown-menu.dropdown-medium {
  transform: translateY(0);
}

.nav-dropdown-menu.dropdown-compact {
  width: 340px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
}

.nav-item.has-dropdown:hover>.nav-dropdown-menu.dropdown-compact,
.nav-item.has-dropdown.is-open>.nav-dropdown-menu.dropdown-compact {
  transform: translateX(-50%) translateY(0);
}

.dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-grid);
}

.dropdown-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-purple);
  font-weight: 700;
}

.dropdown-view-all {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.dropdown-view-all:hover {
  color: var(--accent-purple);
}

.dropdown-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem 1rem;
}

.dropdown-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-dropdown-link {
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  color: var(--text-heading) !important;
  padding: 0.4rem 0.5rem !important;
  border-radius: var(--radius-subtle);
  transition: all 0.15s ease;
  display: block !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-dropdown-link:hover {
  background-color: var(--bg-surface-elevated);
  color: var(--accent-purple) !important;
  padding-left: 0.75rem !important;
}

[data-theme="dark"] .nav-dropdown-link:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-pill);
  color: var(--text-heading);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 0 12px var(--accent-purple-glow);
}

.theme-toggle-btn .icon-sun {
  display: none;
}

.theme-toggle-btn .icon-moon {
  display: block;
}

[data-theme="dark"] .theme-toggle-btn .icon-sun {
  display: block;
}

[data-theme="dark"] .theme-toggle-btn .icon-moon {
  display: none;
}

/* Mobile Navigation Controls & Animated Hamburger */
.mobile-nav-controls {
  display: none;
  align-items: center;
  gap: 0.65rem;
}

.nav-hamburger-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-subtle);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.65rem;
  height: 2.65rem;
  padding: 0;
  transition: all 0.2s ease;
  z-index: 102;
}

.nav-hamburger-btn:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 0 10px var(--accent-purple-glow);
}

.hamburger-bar {
  display: block;
  width: 19px;
  height: 2px;
  background-color: var(--text-heading);
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, background-color 0.2s ease;
}

/* Active Hamburger Transformation (Smoothly morphs to X) */
.nav-hamburger-btn.is-active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger-btn.is-active .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-hamburger-btn.is-active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation Drawer with Accordions */
.mobile-nav-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-grid);
  box-shadow: none;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: max-height 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 1001;
}

[data-theme="dark"] .mobile-nav-drawer {
  background: rgba(13, 14, 21, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.mobile-nav-drawer.is-open {
  max-height: calc(100vh - var(--header-height));
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.mobile-drawer-inner {
  padding-top: 1rem;
  padding-bottom: 2rem;
}

.mobile-accordion-list {
  display: flex;
  flex-direction: column;
}

.mobile-accordion-group {
  border-bottom: 1px solid var(--border-grid);
}

.mobile-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
}

.mobile-accordion-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  text-decoration: none;
  padding: 0.75rem 0.25rem;
  flex-grow: 1;
}

.mobile-accordion-toggle {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-subtle);
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-heading);
  font-size: 1.15rem;
  font-weight: 600;
  transition: all 0.2s ease;
  margin-left: 0.5rem;
}

.mobile-accordion-group.is-expanded .mobile-accordion-toggle {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
  color: #ffffff;
}

.mobile-accordion-group.is-expanded .accordion-icon {
  transform: rotate(45deg);
}

.accordion-icon {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1;
}

.mobile-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-accordion-group.is-expanded .mobile-accordion-body {
  max-height: 800px;
}

.mobile-sublinks {
  list-style: none;
  padding: 0.25rem 0 0.85rem 0.75rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-sublinks li a {
  display: block;
  padding: 0.45rem 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-subtle);
  transition: all 0.15s ease;
}

.mobile-sublinks li a:hover,
.mobile-sublinks li a:focus {
  color: var(--accent-purple);
  background-color: var(--bg-surface-elevated);
  padding-left: 0.75rem;
}

.mobile-sublink-highlight {
  font-weight: 700 !important;
  color: var(--accent-purple) !important;
  background-color: rgba(109, 40, 217, 0.08);
  margin-bottom: 0.25rem;
}

[data-theme="dark"] .mobile-sublink-highlight {
  background-color: rgba(139, 92, 246, 0.15);
}

.mobile-direct-link {
  border-bottom: 1px solid var(--border-grid);
}

.mobile-direct-link a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-heading);
  text-decoration: none;
  min-height: 48px;
}

.mobile-direct-link a:hover {
  color: var(--accent-purple);
  padding-left: 0.5rem;
}

.mobile-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.mobile-drawer-btn {
  width: 100%;
  justify-content: center;
  padding: 0.85rem 1rem !important;
  font-size: 0.9rem !important;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}

body.mobile-nav-locked {
  overflow: hidden !important;
}

/* Adaptive Breakpoint (1140px) for Clean Collapse without Overflow */
@media (max-width: 1140px) {
  .nav-links {
    display: none !important;
  }

  .mobile-nav-controls {
    display: flex !important;
  }

  .mobile-nav-drawer {
    display: block;
  }
}

/* OffSec Hero Section with Dual-Source Atmospheric Brand Arc Glow */
.hero-section {
  padding: 4.75rem 0 3.75rem;
  background:
    radial-gradient(ellipse 65% 55% at 80% 12%, rgba(109, 40, 217, 0.07) 0%, transparent 65%),
    radial-gradient(ellipse 55% 45% at 20% 10%, rgba(2, 132, 199, 0.05) 0%, transparent 60%),
    var(--bg-canvas);
  border-bottom: 1px solid var(--border-grid);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .hero-section {
  background:
    radial-gradient(ellipse 70% 60% at 80% 10%, rgba(139, 92, 246, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 18% 12%, rgba(6, 182, 212, 0.09) 0%, transparent 65%),
    var(--bg-canvas);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding: 3rem 0 2.25rem;
  }
}

/* OffSec Theme-Aware Surface Cards */
.executive-card,
.offsec-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-card);
  padding: 2rem !important;
  margin-bottom: 2rem !important;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

[data-theme="dark"] .executive-card,
[data-theme="dark"] .offsec-card {
  background: linear-gradient(180deg, rgba(26, 28, 46, 0.75) 0%, rgba(21, 23, 37, 0.95) 100%);
  backdrop-filter: blur(10px);
}

.executive-card:hover,
.offsec-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-purple);
  box-shadow: var(--shadow-glow);
}

/* Editorial Continuous Sections (De-Boxed for Visual Calm) */
.sub-service-block {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 2.25rem 0 !important;
  margin-bottom: 0 !important;
  border-bottom: 1px solid var(--border-grid) !important;
  position: relative;
  transition: none !important;
}

.sub-service-block:last-of-type,
.sub-service-block:last-child {
  border-bottom: none !important;
}

/* Remove conflicting bottom borders when immediately preceding bordered containers, cards, or callouts */
.sub-service-block:has(+ .delivery-process-container),
.sub-service-block:has(+ .compliance-procurement-container),
.sub-service-block:has(+ .report-inquiry-container),
.sub-service-block:has(+ .tool-calm-callout),
.sub-service-block:has(+ .executive-card),
.sub-service-block:has(+ .surface-card),
.sub-service-block:has(+ .card),
.sub-service-block:has(+ [class*="-container"]),
.sub-service-block:has(+ [class*="-card"]),
.sub-service-block:has(+ [class*="-callout"]),
.sub-service-block:has(+ [class*="-box"]) {
  border-bottom: none !important;
}

/* Standalone modular sections that have margin or contain cards must never have conflicting bottom borders */
.sub-service-block.semantic-crosslinks-section,
.sub-service-block.case-evidence-section,
.sub-service-block.audited-stack-section,
.sub-service-block.telemetry-benchmarks-section,
#faqs.sub-service-block,
#governance-regulatory-alignment.sub-service-block {
  border-bottom: none !important;
}

.sub-service-block:hover {
  transform: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.sub-service-block h3,
.sub-service-block h4 {
  margin-top: 0;
  margin-bottom: 0.85rem;
}

.sub-service-block p {
  color: var(--text-body);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 1.15rem;
}

.sub-service-block ul,
.sub-service-block ol {
  margin: 1rem 0 1.25rem 1.5rem;
  color: var(--text-body);
  line-height: 1.75;
}

.sub-service-block li {
  margin-bottom: 0.5rem;
}

/* OffSec Card Variants (Theme-Aware & Visually Calmed) */
.card-purple,
.card-cyan,
.card-gold,
.card-emerald {
  background-color: var(--bg-surface);
  border-color: var(--border-grid);
}

[data-theme="dark"] .card-purple,
[data-theme="dark"] .card-cyan,
[data-theme="dark"] .card-gold,
[data-theme="dark"] .card-emerald {
  background: linear-gradient(180deg, rgba(22, 24, 38, 0.85) 0%, rgba(17, 19, 31, 0.95) 100%);
  border-color: var(--border-grid);
}

.card-purple:hover,
.card-cyan:hover,
.card-gold:hover,
.card-emerald:hover {
  border-color: var(--accent-purple);
  box-shadow: var(--shadow-glow);
}

/* Calm Telemetry & Metric Status Pills */
.delta-pill-neutral,
.delta-pill-up,
.delta-pill-down {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-subtle);
  background: var(--bg-canvas);
  border: 1px solid var(--border-grid);
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.delta-pill-up {
  color: var(--accent-purple);
  border-color: rgba(139, 92, 246, 0.25);
}

.delta-pill-down {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.25);
}

/* Calm Architectural Engineering Callout */
.tool-calm-callout {
  background: var(--bg-surface);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-card);
  padding: 1.15rem 1.5rem;
  margin: 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Theme-Aware Pill Badges */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.pill-badge-purple {
  background: rgba(109, 40, 217, 0.1);
  border: 1px solid var(--accent-purple);
  color: var(--accent-purple);
}

[data-theme="dark"] .pill-badge-purple {
  background: rgba(124, 58, 237, 0.18);
  border-color: rgba(139, 92, 246, 0.45);
  color: #c084fc;
}

.pill-badge-cyan {
  background: rgba(2, 132, 199, 0.1);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
}

[data-theme="dark"] .pill-badge-cyan {
  background: rgba(6, 182, 212, 0.18);
  border-color: rgba(6, 182, 212, 0.45);
  color: #38bdf8;
}

.pill-badge-gold {
  background: rgba(217, 119, 6, 0.1);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
}

[data-theme="dark"] .pill-badge-gold {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.45);
  color: #fbbf24;
}

.pill-badge-emerald {
  background: rgba(4, 120, 87, 0.1);
  border: 1px solid var(--accent-emerald);
  color: var(--accent-emerald);
}

[data-theme="dark"] .pill-badge-emerald {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.45);
  color: #34d399;
}

/* OffSec Enterprise Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius-subtle);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  text-decoration: none;
  line-height: 1.25;
}

.btn-pill-solid,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius-subtle);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-decoration: none;
  background: var(--accent-primary-gradient);
  color: #ffffff !important;
  box-shadow: var(--accent-primary-shadow);
  position: relative;
  overflow: hidden;
}

.btn-pill-solid:hover,
.btn-primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #4338ca 100%);
  border-color: #38bdf8;
  box-shadow: 0 6px 24px rgba(2, 132, 199, 0.55), 0 0 16px rgba(99, 102, 241, 0.35);
  transform: translateY(-2px);
  color: #ffffff !important;
}

.btn-pill-solid:active,
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.4);
}

.btn-pill-outline,
.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-heading);
  border: 1px solid var(--border-grid);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius-subtle);
  text-decoration: none;
  cursor: pointer;
}

.btn-pill-outline:hover,
.btn-secondary:hover {
  border-color: var(--accent-primary);
  background: rgba(56, 189, 248, 0.08);
  color: var(--accent-primary) !important;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.2);
  transform: translateY(-2px);
}

.btn-pill-outline:active,
.btn-secondary:active {
  transform: translateY(0);
}

/* Modal Overlays & Cards */
.privacy-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1.5rem;
}

.privacy-modal-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-card);
  max-width: 560px;
  width: 100%;
  padding: 2.25rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  color: var(--text-body);
}

.privacy-modal-card h3 {
  color: var(--text-heading);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.privacy-modal-card label {
  color: var(--text-heading);
  font-weight: 600;
}

.privacy-modal-card input[type="text"] {
  background-color: var(--bg-canvas);
  color: var(--text-heading);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-subtle);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
  width: 100%;
  outline: none;
  transition: border-color 0.2s ease;
}

.privacy-modal-card input[type="text"]:focus {
  border-color: var(--accent-purple);
}

/* Executive Hero Briefing Card */
.executive-summary-card,
.hero-summary {
  background: var(--bg-surface);
  border: 1px solid var(--border-grid);
  border-top: 4px solid var(--accent-purple);
  border-radius: var(--radius-card);
  padding: 1.5rem 1.75rem;
  font-size: 0.95rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.executive-summary-card:hover,
.hero-summary:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 8px 30px var(--accent-purple-glow);
}

.hero-summary .eeat-banner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-grid);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-cyan);
}

.hero-summary .eeat-banner a {
  color: var(--accent-purple);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.hero-summary .eeat-banner a:hover {
  text-decoration: underline;
}

.hero-summary p {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

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

/* Compliance & Procurement Assurance Bar Responsive Layout */
.compliance-procurement-container {
  box-sizing: border-box;
  max-width: 100%;
}

@media (max-width: 768px) {
  .compliance-procurement-container {
    padding: 1.35rem 1.1rem !important;
    margin: 2rem 0 !important;
  }

  .compliance-action-buttons {
    width: 100%;
    flex-direction: column;
    align-items: stretch !important;
  }

  .compliance-action-buttons .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 0.75rem 1rem !important;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* Delivery Process Pipeline SVG Flow */
.process-pipeline-svg-container {
  background: var(--bg-canvas);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-card);
  padding: 1.5rem 1.25rem;
  margin: 1.75rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pipeline-node {
  transition: transform 0.2s ease, filter 0.2s ease;
}

.pipeline-node:hover {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

/* Audited Production Stack Specifications Grid (Single-Line 4-Column Layout on Desktop) */
.audited-stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (max-width: 992px) {
  .audited-stack-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .audited-stack-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem;
  }
}

.stack-spec-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-subtle);
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.stack-spec-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.stack-spec-card.card-purple {
  border-top: 3px solid var(--accent-purple);
}

.stack-spec-card.card-cyan {
  border-top: 3px solid var(--accent-cyan);
}

.stack-spec-card.card-gold {
  border-top: 3px solid var(--accent-gold);
}

.stack-spec-card.card-emerald {
  border-top: 3px solid var(--accent-emerald);
}

/* Live Operational Telemetry & Shift Indicators */
.live-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-subtle);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
  margin-bottom: 0.75rem;
}

.live-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  display: inline-block;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}

.delta-pill-down {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
}

.delta-pill-up {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(168, 85, 247, 0.12);
  color: var(--accent-purple);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
}

.delta-pill-neutral {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Logo Wall Strip */
.logo-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 2.5rem 0 1rem;
  opacity: 0.6;
}

.logo-strip span {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Social Round Square Cards */
.social-card {
  width: 2.75rem;
  height: 2.75rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-grid);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-heading);
  transition: all 0.2s ease;
}

.social-card:hover {
  background: var(--accent-purple-dark);
  border-color: var(--accent-purple);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--accent-purple-glow);
}

/* Executive Breadcrumb Navigation Component */
.breadcrumb-container {
  margin-bottom: 1.25rem;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.breadcrumb-list a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-list a:hover {
  color: var(--accent-purple) !important;
  text-decoration: underline !important;
}

/* Sub-Service Block Typography & Spacing */
.sub-service-block {
  margin-bottom: 3rem;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.sub-service-block h3 {
  color: var(--text-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--border-grid);
  padding-bottom: 0.75rem;
}

.sub-service-block h4 {
  color: var(--accent-purple);
  margin-top: 1.75rem;
  margin-bottom: 0.85rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.sub-service-block p {
  margin-bottom: 1.25rem;
  line-height: 1.75;
  color: var(--text-body);
  font-size: 1rem;
}

/* Bullet Points Transformed into Executive Feature Cards Grid */
.sub-service-block ul {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 1.75rem 0 2rem;
}

@media (max-width: 992px) {
  .sub-service-block ul,
  .sub-service-block ul:has(> :nth-child(3n + 2):last-child) {
    grid-template-columns: repeat(2, 1fr);
  }
  .sub-service-block ul > *,
  .sub-service-block ul:has(> :nth-child(3n + 2):last-child) > * {
    grid-column: auto !important;
  }
  .sub-service-block ul > :nth-child(odd):last-child {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 640px) {
  .sub-service-block ul,
  .sub-service-block ul:has(> :nth-child(3n + 2):last-child) {
    grid-template-columns: 1fr !important;
  }
  .sub-service-block ul > *,
  .sub-service-block ul:has(> :nth-child(3n + 2):last-child) > * {
    grid-column: auto !important;
  }
}

.sub-service-block ul li {
  background: var(--bg-surface);
  border: 1px solid var(--border-grid);
  border-top: 4px solid var(--accent-cyan);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.5rem;
  line-height: 1.6;
  color: var(--text-body);
  font-size: 0.92rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.sub-service-block ul li:hover {
  border-color: var(--accent-purple);
  border-top-color: var(--accent-purple);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--accent-purple-glow);
  background: var(--bg-surface-elevated);
}

.sub-service-block ul li strong {
  color: var(--text-heading);
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.sub-service-block ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.sub-service-block ol li {
  margin-bottom: 0.75rem;
  line-height: 1.65;
  color: var(--text-body);
}

/* Compliance Badges */
.compliance-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan-glow);
  border-radius: var(--radius-subtle);
  padding: 0.25rem 0.65rem;
  background-color: var(--accent-cyan-glow);
  display: inline-block;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Enterprise Tables */
.enterprise-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.enterprise-table th,
.enterprise-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-grid);
  color: var(--text-body);
}

.enterprise-table th {
  background-color: var(--bg-subtle);
  color: var(--text-heading);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
}

/* Footer Section */
.site-footer {
  background-color: var(--bg-canvas);
  border-top: 1px solid var(--border-grid);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
  font-size: 0.9rem;
  transition: background-color 0.25s ease;
}

[data-theme="dark"] .site-footer {
  background-color: #08090e;
}

.footer-primary-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.2fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-grid);
}

.footer-primary-grid h4 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  color: var(--text-heading);
}

.footer-hub-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1.5rem;
  font-size: 0.85rem;
}

.footer-hub-links li a {
  color: var(--text-body);
  transition: color 0.2s ease;
}

.footer-hub-links li a:hover {
  color: var(--accent-purple);
}

.footer-section-row {
  margin-bottom: 2.25rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-grid);
}

.footer-matrix-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.6rem 1.75rem;
  font-size: 0.85rem;
}

.footer-matrix-grid li a {
  color: var(--text-body);
  transition: color 0.2s ease;
  display: inline-block;
}

.footer-matrix-grid li a:hover {
  color: var(--accent-purple);
}

@media (max-width: 900px) {
  .footer-primary-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-hub-links {
    grid-template-columns: 1fr;
  }

  .footer-matrix-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

/* Footer Consultation & Corporate Overview Row */
.footer-consultation-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  border-bottom: none;
  margin-bottom: 2rem;
  padding-bottom: 0;
  align-items: start;
}

.footer-corporate-col p {
  max-width: 90%;
}

.footer-consultation-col {
  /* Flat and seamless without card borders or background */
}

.footer-consultation-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-consultation-btn {
  width: 100%;
  justify-content: center;
  min-height: 42px;
  font-size: 0.85rem !important;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  text-align: center;
  padding: 0.5rem 1rem !important;
}

@media (max-width: 992px) {
  .footer-consultation-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-corporate-col p {
    max-width: 100%;
  }

  .footer-consultation-buttons {
    max-width: 440px;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding-top: 3rem;
    padding-bottom: 6rem !important;
    /* Prevents mobile sticky bar from obscuring footer content */
  }

  .footer-consultation-btn {
    min-height: 48px;
    font-size: 0.88rem !important;
  }
}

.footer-bottom {
  border-top: 1px solid var(--border-grid);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Mobile Procurement Bar - Strictly Hidden on Desktop (769px+) */
.mobile-procurement-bar {
  display: none !important;
}

@media (max-width: 768px) {
  .mobile-procurement-bar {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 10vh;
    height: 4rem;
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-grid);
    align-items: center;
    justify-content: space-around;
    padding: 0.5rem 1rem;
    z-index: 1000;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
  }

  .mobile-cta-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-heading);
    gap: 0.2rem;
    text-decoration: none;
  }
}

/* ==========================================================================
   Enterprise Engineering Tools Suite & Calculators
   ========================================================================== */
.calculator-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-card);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.currency-toggle {
  display: inline-flex;
  background: var(--bg-canvas);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-subtle);
  padding: 0.25rem;
  gap: 0.25rem;
}

.currency-btn {
  background: none;
  border: none;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-subtle);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.currency-btn.active {
  background: var(--accent-primary-gradient);
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.35);
}

.pill-badge-crimson {
  background: rgba(239, 68, 68, 0.12);
  color: var(--accent-crimson, #ef4444);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.form-select {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-select:focus {
  outline: none;
  border-color: var(--accent-purple) !important;
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.2);
}

.tools-tab-btn {
  transition: color 0.2s ease, border-color 0.2s ease;
}

.tools-tab-btn:hover {
  color: var(--text-heading);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-purple);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
  border: 2px solid var(--bg-surface);
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-purple);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
  border: 2px solid var(--bg-surface);
}

/* Hub Live Search & Filter Bar */
.hub-filter-bar,
.hub-controls-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.hub-controls-bar .btn {
  padding: 0.62rem 1.25rem;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .hub-filter-bar,
  .hub-controls-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .hub-controls-bar .hub-search-box {
    max-width: 100%;
  }

  .hub-controls-bar .btn {
    width: 100%;
  }
}

.hub-search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
  max-width: 440px;
}

.hub-search-box input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-subtle);
  color: var(--text-heading);
  font-size: 0.9rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.hub-search-box input:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.hub-search-box svg {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.hub-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hub-pill {
  padding: 0.4rem 1rem;
  border-radius: var(--radius-subtle);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border-grid);
  background: var(--bg-surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.hub-pill:hover {
  color: var(--text-heading);
  border-color: var(--accent-purple);
}

.hub-pill.active {
  background: var(--accent-purple);
  color: #ffffff !important;
  border-color: var(--accent-purple);
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.3);
}

.hub-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ==========================================================================
   Enterprise Architectural SVG & Diagram Styling (Dual-Theme Optimized)
   ========================================================================== */

.svg-diagram-container {
  background: var(--bg-canvas);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  margin: 1.75rem 0;
  text-align: center;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

[data-theme="dark"] .svg-diagram-container {
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
}

.case-blueprint-wrapper {
  margin: 1.5rem 0 1.75rem;
}

.case-blueprint-wrapper .svg-diagram-container {
  margin: 0;
}

/* Legacy & Entity Blueprint Diagram Containers */
.blueprint-container {
  background: var(--bg-canvas);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  margin: 1.75rem 0;
  text-align: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.blueprint-container figcaption {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  line-height: 1.5;
}

.showcase-svg {
  width: 100%;
  height: auto;
  max-height: 380px;
  display: block;
  margin: 0 auto;
}

.showcase-svg .blueprint-bg {
  fill: var(--bg-canvas);
  rx: 8px;
}

.showcase-svg .boundary {
  fill: var(--bg-surface);
  stroke: var(--border-grid);
  stroke-width: 1.5;
}

.showcase-svg .component {
  fill: var(--bg-surface);
  stroke: var(--accent-purple);
  stroke-width: 2;
}

.showcase-svg .ai-core {
  fill: var(--bg-surface);
  stroke: var(--accent-cyan);
  stroke-width: 2;
}

.showcase-svg .data-path {
  fill: none;
  stroke: var(--accent-purple);
  stroke-width: 2;
}

.showcase-svg .verification-loop {
  fill: none;
  stroke: var(--accent-cyan);
  stroke-width: 2;
  stroke-dasharray: 4, 3;
}

.showcase-svg .label {
  fill: var(--text-heading);
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 600;
}

/* Evidence and Testimonial SVGs */
.evidence-svg {
  width: 100%;
  height: auto;
  display: block;
  margin: 1rem 0;
}

/* Executive Whitepaper Print Stylesheet */
@media print {
  @page {
    size: A4 portrait;
    margin: 15mm;
  }

  body {
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 11pt !important;
    line-height: 1.5 !important;
    padding-top: 0 !important;
  }

  header,
  footer,
  .procurement-bar,
  .cookie-consent-bar,
  .site-header,
  .site-footer,
  .no-print,
  .currency-toggle-wrapper,
  .tools-tab-btn,
  .hub-filter-bar,
  #theme-toggle,
  .btn,
  button:not(.print-keep) {
    display: none !important;
  }

  .container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .executive-card,
  .section-box,
  .kpi-card {
    border: 1px solid #cbd5e1 !important;
    background: #f8fafc !important;
    color: #0f172a !important;
    box-shadow: none !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  h1,
  h2,
  h3,
  h4 {
    color: #0f172a !important;
    page-break-after: avoid;
  }

  a {
    color: #0f172a !important;
    text-decoration: underline !important;
  }

  svg {
    max-width: 100% !important;
    height: auto !important;
  }
}



/* ==========================================================================
   ENTERPRISE CSS OPTIMIZATION: ATOMIC UTILITIES & SEMANTIC COMPONENT SYSTEM
   Eliminates all inline style="..." attributes across all 78 enterprise pages.
   ========================================================================== */

/* Spacing Utilities */
.m-0 {
  margin: 0 !important;
}

.mt-0 {
  margin-top: 0 !important;
}

.mt-xs {
  margin-top: 0.25rem;
}

.mt-sm {
  margin-top: 0.5rem;
}

.mt-md {
  margin-top: 0.75rem;
}

.mt-lg {
  margin-top: 1rem;
}

.mt-xl {
  margin-top: 1.5rem;
}

.mt-2xl {
  margin-top: 2rem;
}

.mt-3xl {
  margin-top: 2.5rem;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-xs {
  margin-bottom: 0.25rem !important;
}

.mb-sm {
  margin-bottom: 0.5rem !important;
}

.mb-md {
  margin-bottom: 0.75rem !important;
}

.mb-lg {
  margin-bottom: 1rem !important;
}

.mb-xl {
  margin-bottom: 1.25rem !important;
}

.mb-2xl {
  margin-bottom: 1.5rem !important;
}

.mb-3xl {
  margin-bottom: 2rem !important;
}

.mb-4xl {
  margin-bottom: 3.25rem !important;
}

.p-0 {
  padding: 0 !important;
}

.pt-0 {
  padding-top: 0 !important;
}

.p-xs {
  padding: 0.25rem;
}

.p-sm {
  padding: 0.5rem;
}

.p-md {
  padding: 0.75rem 1rem;
}

.p-lg {
  padding: 1.25rem;
}

.p-xl {
  padding: 1.5rem;
}

.p-2xl {
  padding: 2rem;
}

/* Display & Flex Layout Utilities */
.d-flex {
  display: flex;
}

.d-inline-flex {
  display: inline-flex;
}

.d-block {
  display: block;
}

.d-grid {
  display: grid;
}

.flex-col {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-nowrap {
  flex-wrap: nowrap;
}

.flex-between {
  justify-content: space-between;
}

.flex-center {
  justify-content: center;
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-start {
  justify-content: flex-start;
}

.justify-end {
  justify-content: flex-end;
}

.align-center {
  align-items: center;
}

.align-start {
  align-items: flex-start;
}

.align-end {
  align-items: flex-end;
}

.flex-1 {
  flex: 1;
}

.gap-xs {
  gap: 0.25rem;
}

.gap-sm {
  gap: 0.5rem;
}

.gap-md {
  gap: 0.75rem;
}

.gap-lg {
  gap: 1rem;
}

.gap-xl {
  gap: 1.25rem;
}

.gap-2xl {
  gap: 1.5rem;
}

.w-100 {
  width: 100%;
}

.max-w-prose {
  max-width: 680px;
}

.max-w-content {
  max-width: 760px;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.nowrap {
  white-space: nowrap;
}

/* Typography Utilities */
.text-muted {
  color: var(--text-muted);
}

.text-heading {
  color: var(--text-heading);
}

.text-body {
  color: var(--text-body);
}

.text-purple {
  color: var(--accent-purple);
}

.text-cyan {
  color: var(--accent-cyan);
}

.text-emerald {
  color: var(--accent-emerald);
}

.text-gold {
  color: var(--accent-gold);
}

.font-mono {
  font-family: var(--font-mono);
}

.font-heading {
  font-family: var(--font-heading);
}

.font-body {
  font-family: var(--font-body);
}

.font-normal {
  font-weight: 400;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.font-extrabold {
  font-weight: 800;
}

.text-xs {
  font-size: 0.75rem;
}

.text-sm {
  font-size: 0.82rem;
}

.text-base {
  font-size: 0.88rem;
}

.text-md {
  font-size: 0.95rem;
}

.text-lg {
  font-size: 1.05rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.35rem;
}

.text-3xl {
  font-size: 2rem;
}

.uppercase {
  text-transform: uppercase;
}

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

.text-right {
  text-align: right;
}

.line-normal {
  line-height: 1.5;
}

.line-relaxed {
  line-height: 1.6;
}

.no-underline {
  text-decoration: none;
}

.underline {
  text-decoration: underline;
}

/* Surfaces, Cards & Borders */
.surface-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-card);
}

.surface-canvas {
  background: var(--bg-canvas);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-subtle);
}

.border-box {
  border: 1px solid var(--border-grid);
}

.border-top-grid {
  border-top: 1px solid var(--border-grid);
}

.radius-card {
  border-radius: var(--radius-card);
}

.radius-subtle {
  border-radius: var(--radius-subtle);
}

.radius-pill {
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   COMPONENT MODULE: COMPANY PROFILE & EXECUTIVE DOSSIER (.dossier-*)
   ========================================================================== */
.dossier-action-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dossier-action-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  padding: 0.5rem 0.6rem;
  text-decoration: none;
}

.dossier-stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  text-align: center;
}

.dossier-stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.dossier-stat-num {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  margin: 0.35rem 0;
}

.dossier-stat-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.dossier-legal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-card);
  padding: 1.75rem;
}

.dossier-legal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .dossier-legal-grid {
    grid-template-columns: 1fr;
  }
}

.dossier-legal-item-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.dossier-legal-item-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-top: 0.2rem;
}

.dossier-hq-grid {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border-grid);
  padding-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .dossier-hq-grid {
    grid-template-columns: 1fr;
  }
}

.dossier-compliance-grid {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border-grid);
  padding-top: 1.25rem;
  margin-top: 0.25rem;
}

.dossier-compliance-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

@media (max-width: 992px) {
  .dossier-compliance-items {
    grid-template-columns: repeat(2, 1fr);
  }
  .dossier-compliance-items > :nth-child(odd):last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .dossier-compliance-items {
    grid-template-columns: 1fr;
  }
  .dossier-compliance-items > * {
    grid-column: auto !important;
  }
}

.dossier-cluster-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-card);
  padding: 1.5rem;
}

.dossier-cluster-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.84rem;
  color: var(--text-body);
  line-height: 1.6;
}

.dossier-industry-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-grid);
  padding: 1rem 1.15rem;
  border-radius: var(--radius-card);
}

.dossier-avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-mono);
  font-size: 1.15rem;
}

.dossier-avatar-purple {
  background: rgba(139, 92, 246, 0.15);
  border: 1.5px solid var(--accent-purple);
  color: var(--accent-purple);
}

.dossier-avatar-cyan {
  background: rgba(6, 182, 212, 0.15);
  border: 1.5px solid var(--accent-cyan);
  color: var(--accent-cyan);
}

.dossier-avatar-gold {
  background: rgba(234, 179, 8, 0.15);
  border: 1.5px solid var(--accent-gold);
  color: var(--accent-gold);
}

.dossier-cta-box {
  margin-bottom: 2rem;
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.06), rgba(6, 182, 212, 0.06));
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-card);
  padding: 2rem;
  text-align: center;
}

/* ==========================================================================
   COMPONENT MODULE: CONTACT CARDS & HOTLINE (.contact-*)
   ========================================================================== */
.contact-office-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-card);
  padding: 1.5rem;
}

.contact-avatar-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-card);
  background: rgba(139, 92, 246, 0.12);
  border: 1.5px solid var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-purple);
}

.contact-channel-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.5;
}

/* ==========================================================================
   COMPONENT MODULE: LIVING INTELLIGENCE REPORTS (.report-*)
   ========================================================================== */
.report-baseline-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.report-kpi-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
}

.report-audit-card {
  background: var(--bg-canvas);
  border: 1px solid var(--border-grid);
  border-left: 4px solid var(--accent-purple);
  border-radius: var(--radius-subtle);
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
}

.report-evidence-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

/* ==========================================================================
   REPORT INQUIRY CTA & ARCHITECTURAL AUDIT BANNER (.report-inquiry-*)
   ========================================================================== */
.report-inquiry-container {
  margin: 3.5rem 0 2.5rem;
}

.report-inquiry-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-grid);
  border-left: 4px solid var(--accent-primary);
  border-radius: var(--radius-card);
  padding: 2.25rem 2.5rem;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

[data-theme="dark"] .report-inquiry-card {
  background: linear-gradient(180deg, rgba(20, 27, 42, 0.95) 0%, rgba(13, 17, 26, 0.98) 100%);
  border-color: rgba(255, 255, 255, 0.08);
  border-left-color: var(--accent-primary);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.report-inquiry-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.3);
  border-left-color: var(--accent-primary);
}

.report-inquiry-title {
  margin: 0.6rem 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.report-inquiry-desc {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 820px;
  margin: 0;
}

.report-inquiry-sla-tag {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-subtle);
  padding: 0.6rem 0.9rem;
  gap: 0.15rem;
  white-space: nowrap;
}

.report-inquiry-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.75rem 0 1.5rem;
}

.report-inquiry-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.85rem;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--radius-subtle);
  background: var(--accent-primary-gradient);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--accent-primary-shadow);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.report-inquiry-btn:hover {
  background: linear-gradient(135deg, #0369a1 0%, #4338ca 100%);
  border-color: #38bdf8;
  box-shadow: 0 6px 24px rgba(2, 132, 199, 0.55), 0 0 16px rgba(99, 102, 241, 0.35);
  transform: translateY(-2px);
  color: #ffffff !important;
}

.report-inquiry-btn:active {
  transform: translateY(0);
}

.report-inquiry-btn .btn-arrow {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
  font-size: 1.15rem;
  line-height: 1;
}

.report-inquiry-btn:hover .btn-arrow {
  transform: translateX(4px);
}

.report-inquiry-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-subtle);
  background: transparent;
  color: var(--text-heading);
  border: 1px solid var(--border-grid);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.report-inquiry-secondary-btn:hover {
  border-color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.08);
  color: var(--accent-purple);
  transform: translateY(-1px);
}

.report-inquiry-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-grid);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.report-inquiry-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.report-inquiry-trust-item .trust-dot {
  font-size: 0.65rem;
  line-height: 1;
}

@media (max-width: 768px) {
  .report-inquiry-card {
    padding: 1.5rem 1.25rem;
  }
  .report-inquiry-title {
    font-size: 1.25rem;
  }
  .report-inquiry-sla-tag {
    align-items: flex-start;
    margin-top: 0.5rem;
    width: 100%;
  }
  .report-inquiry-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .report-inquiry-btn,
  .report-inquiry-secondary-btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1rem;
    white-space: normal;
    text-align: center;
  }
  .report-inquiry-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }
}


/* ==========================================================================
   COMPONENT MODULE: INTERACTIVE CALCULATORS & TOOLS (.calc-*)
   ========================================================================== */
.calc-container-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-card);
  padding: 1.75rem;
}

.calc-input-row {
  margin-bottom: 1.25rem;
}

.calc-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.calc-val-display {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-cyan);
  font-size: 0.95rem;
}

.calc-result-box {
  background: var(--bg-canvas);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-subtle);
  padding: 1.25rem;
  text-align: center;
}

.calc-result-big {
  font-size: 1.75rem;
  font-weight: 800;
  font-family: var(--font-mono);
  margin: 0.25rem 0;
}

/* ==========================================================================
   RESPONSIVE TABLES & COMPARISON MATRICES (.table-responsive, .calc-table)
   ========================================================================== */
.table-responsive,
.overflow-x-auto {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-card);
  margin-bottom: 1.5rem;
}

/* Custom Sleek Scrollbar for Touch & Desktop */
.table-responsive::-webkit-scrollbar,
.overflow-x-auto::-webkit-scrollbar {
  height: 6px;
}

.table-responsive::-webkit-scrollbar-track,
.overflow-x-auto::-webkit-scrollbar-track {
  background: var(--bg-surface-elevated);
  border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-thumb,
.overflow-x-auto::-webkit-scrollbar-thumb {
  background: var(--border-grid);
  border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-thumb:hover,
.overflow-x-auto::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

.calc-table,
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.85rem;
  background: transparent;
}

.calc-table th,
.calc-table td,
.data-table th,
.data-table td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border-grid);
  border-right: 1px solid var(--border-grid);
  text-align: left;
  vertical-align: top;
}

.calc-table tr th:last-child,
.calc-table tr td:last-child,
.data-table tr th:last-child,
.data-table tr td:last-child {
  border-right: none;
}

.calc-table tr:last-child td,
.data-table tr:last-child td {
  border-bottom: none;
}

/* Sticky First Column for Comparison Matrices */
.calc-table-sticky-col th:first-child,
.calc-table-sticky-col td:first-child {
  position: sticky;
  left: 0;
  z-index: 5;
  background: var(--bg-surface);
  box-shadow: 3px 0 8px rgba(0, 0, 0, 0.08);
  min-width: 150px;
  max-width: 180px;
}

[data-theme="dark"] .calc-table-sticky-col th:first-child,
[data-theme="dark"] .calc-table-sticky-col td:first-child {
  background: #111622;
  box-shadow: 3px 0 12px rgba(0, 0, 0, 0.45);
}

.calc-table-sticky-col thead th:first-child {
  z-index: 6;
  background: var(--bg-canvas);
}

[data-theme="dark"] .calc-table-sticky-col thead th:first-child {
  background: #08090d;
}

/* Table Header Row */
.calc-table-head-row th,
.data-table thead th {
  background: var(--bg-canvas);
  color: var(--text-heading);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  border-bottom: 2px solid var(--border-grid);
  white-space: normal;
}

[data-theme="dark"] .calc-table-head-row th,
[data-theme="dark"] .data-table thead th {
  background: #0d111a;
  color: #ffffff;
}

/* Mobile Scroll Indicator Badge */
.table-scroll-hint {
  display: none;
  margin-bottom: 0.75rem;
}

@media (max-width: 992px) {
  .table-scroll-hint {
    display: flex;
    align-items: center;
  }
  .calc-table-sticky-col th:first-child,
  .calc-table-sticky-col td:first-child {
    min-width: 130px;
    max-width: 150px;
    padding: 0.75rem 0.85rem;
    font-size: 0.82rem;
  }
  .calc-th-highlight,
  .calc-highlight-cell {
    min-width: 210px !important;
    padding: 0.75rem 0.95rem;
  }
  .calc-cell-muted {
    min-width: 175px !important;
    padding: 0.75rem 0.95rem;
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   COMPONENT MODULE: BREADCRUMBS & NAVIGATION HELPERS
   ========================================================================== */
.nav-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.nav-breadcrumb li a {
  color: var(--text-muted);
  text-decoration: none;
}

.nav-breadcrumb .separator {
  opacity: 0.4;
}

.nav-breadcrumb .current {
  color: var(--accent-purple);
  font-weight: 600;
}

/* Helper classes for template_engine.py and global components */
.d-none {
  display: none !important;
}

.nav-cta-btn {
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  white-space: nowrap;
}

.footer-col-heading {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.mobile-cta-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
}

/* Helpers for build.py clean styling */
.pill-badge-neutral {
  background: var(--bg-surface);
  border: 1px solid var(--border-grid);
  color: var(--text-heading);
}

.divider-grid {
  border: none;
  border-top: 1px solid var(--border-grid);
  margin: 1.25rem 0;
}

.home-statutory-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: var(--bg-canvas);
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-subtle);
  border: 1px solid var(--border-grid);
}

@media (max-width: 1100px) {
  .home-statutory-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .home-statutory-grid > :nth-child(3n + 1):last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .home-statutory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-statutory-grid > :nth-child(odd):last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .home-statutory-grid {
    grid-template-columns: 1fr;
  }
  .home-statutory-grid > * {
    grid-column: auto !important;
  }
}

.stat-meta-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  display: block;
  margin-bottom: 0.2rem;
}

.breadcrumb-link {
  color: var(--text-muted);
  text-decoration: none;
}

/* Extended classes for builder/company_profile.py */
.dossier-card-flex {
  background: var(--bg-surface);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dossier-meta-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.dossier-industry-title {
  color: var(--text-heading);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.dossier-industry-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: block;
}

.dossier-hero-summary {
  margin-top: 1.5rem;
}

.dossier-hero {
  padding-bottom: 2.5rem;
}

.dossier-hero-title {
  margin: 0.25rem 0 0.75rem;
  font-size: 2.2rem;
  line-height: 1.2;
}

.dossier-hero-lead {
  font-size: 1.15rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 0;
}

.dossier-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 260px;
}

.dossier-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  font-size: 0.92rem;
  padding: 0.75rem 1.25rem;
}

.max-w-820 {
  max-width: 820px;
}

.opacity-40 {
  opacity: 0.4;
}

/* ==========================================================================
   COMPONENT MODULE: CONTACT CARDS & HOTLINE (.contact-*)
   ========================================================================== */
.contact-hero-h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.contact-hero-p {
  font-size: 1.1rem;
  color: var(--text-body);
  max-width: 860px;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.contact-intake-card {
  padding: 2.25rem;
  margin-bottom: 0;
  border-top: 3px solid var(--accent-purple);
}

.contact-sla-badge {
  font-size: 0.85rem;
  color: var(--accent-emerald);
  font-weight: 700;
  font-family: var(--font-mono);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
}

.contact-estimator-banner {
  padding: 1.75rem 2rem;
  margin-bottom: 3.5rem;
  border-top: 3px solid var(--accent-cyan);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.06), rgba(139, 92, 246, 0.06));
}

.contact-channel-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 0 !important;
}

.contact-channel-val-emerald {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-emerald);
  margin-bottom: 0.75rem;
}

.contact-channel-val-purple {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-purple);
  margin-bottom: 0.75rem;
  word-break: break-all;
}

.contact-channel-val-cyan {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
}

.contact-delivery-card {
  margin-bottom: 0 !important;
}

.contact-delivery-card-cyan {
  border-top: 3px solid var(--accent-cyan);
}

.contact-delivery-card-purple {
  border-top: 3px solid var(--accent-purple);
}

.contact-delivery-card-gold {
  border-top: 3px solid var(--accent-gold);
}

.contact-delivery-window-cyan {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 1rem;
  background: rgba(6, 182, 212, 0.08);
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-subtle);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.contact-delivery-window-purple {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-purple);
  font-weight: 600;
  margin-bottom: 1rem;
  background: rgba(139, 92, 246, 0.08);
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-subtle);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.contact-delivery-window-gold {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 1rem;
  background: rgba(245, 158, 11, 0.08);
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-subtle);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.contact-delivery-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-body);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.clean-list {
  padding-left: 1.25rem;
  margin: 0.5rem 0 1rem;
}

.clean-list li {
  margin-bottom: 0.35rem;
  line-height: 1.5;
}

.contact-delivery-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.contact-address {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.contact-meta-box {
  background: var(--bg-canvas);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-subtle);
  padding: 0.75rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-step-badge {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-pill);
  background: var(--bg-canvas);
  border: 1px solid var(--border-grid);
  color: var(--accent-purple);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.contact-onboarding-banner {
  padding: 1.75rem;
  margin-bottom: 2.5rem;
  border-left: 4px solid var(--accent-purple);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.contact-onboarding-btn {
  font-size: 0.88rem;
  padding: 0.55rem 1.15rem;
  text-decoration: none;
  border-radius: var(--radius-pill);
  font-weight: 700;
  white-space: nowrap;
}

/* ==========================================================================
   COMPONENT MODULE: BENCHMARKS & METRICS (.benchmarks-*, .benchmark-*)
   ========================================================================== */
.benchmarks-section {
  margin: 2.5rem 0 3rem;
  max-width: 100%;
}

.benchmarks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.benchmarks-grid > div {
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.benchmark-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  box-sizing: border-box;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
}

.benchmark-card .d-flex {
  flex-wrap: wrap;
  gap: 0.4rem;
}

.benchmark-card:hover {
  border-color: var(--accent-purple);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-purple-glow);
}

.benchmark-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.benchmark-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-heading);
  font-family: var(--font-mono);
  margin-bottom: 0.35rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.benchmark-sub {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.5;
}

@media (max-width: 992px) {
  .benchmarks-grid,
  .benchmarks-grid:has(> :nth-child(3n + 2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .benchmarks-grid > *,
  .benchmarks-grid:has(> :nth-child(3n + 2):last-child) > * {
    grid-column: auto !important;
  }

  .benchmarks-grid > :nth-child(odd):last-child {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 640px) {
  .benchmarks-section {
    margin: 2rem 0 2.25rem;
  }

  .benchmarks-grid,
  .benchmarks-grid:has(> :nth-child(2):last-child),
  .benchmarks-grid:has(> :nth-child(4):last-child),
  .benchmarks-grid:has(> :nth-child(3n + 2):last-child) {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0.85rem;
  }

  .benchmarks-grid > *,
  .benchmarks-grid:has(> :nth-child(3n + 2):last-child) > * {
    grid-column: auto !important;
  }

  .benchmark-card {
    padding: 1.05rem 1.15rem;
  }
}

/* ==========================================================================
   COMPONENT MODULE: COMPLIANCE PROCUREMENT BAR (.compliance-*)
   ========================================================================== */
.compliance-procurement-container {
  background: var(--bg-canvas);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-card);
  padding: 2rem 2.25rem;
  margin: 3rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.compliance-procurement-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-grid);
}

.compliance-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

@media (max-width: 1024px) {
  .compliance-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .compliance-pillars-grid > :nth-child(odd):last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .compliance-pillars-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .compliance-pillars-grid > * {
    grid-column: auto !important;
  }
}

.compliance-pillar-card {
  background: var(--bg-surface);
  padding: 1.25rem;
  border-radius: var(--radius-subtle);
  border: 1px solid var(--border-grid);
}

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

/* ==========================================================================
   COMPONENT MODULE: PROBLEM MATRIX & ARCHITECTURE (.problem-matrix-*)
   ========================================================================== */
.problem-matrix-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.problem-matrix-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.6rem;
  gap: 0.5rem;
}

.problem-matrix-sol {
  border-top: 1px solid var(--border-grid);
  padding-top: 0.85rem;
  margin-top: 0.5rem;
}

.problem-matrix-sol-label {
  font-size: 0.72rem;
  color: var(--accent-purple);
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.problem-matrix-sol-val {
  font-size: 0.85rem;
  color: var(--text-heading);
  line-height: 1.5;
  font-weight: 500;
}

/* ==========================================================================
   COMPONENT MODULE: SVG ARCHITECTURE DIAGRAMS (.svg-diagram-*)
   ========================================================================== */
.svg-diagram-container {
  background: var(--bg-canvas);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: center;
}

.svg-diagram-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.svg-diagram-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-heading);
  font-family: var(--font-heading);
}

.svg-diagram-spec {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--accent-purple);
}

.svg-diagram-graphic {
  max-height: 320px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.svg-diagram-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.5;
}

.delivery-process-container {
  padding: 2.25rem 0;
  margin: 1.5rem 0;
}

.delivery-process-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

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

/* ==========================================================================
   COMPONENT MODULE: AUDIT SEALS, EVIDENCE & REPORTS (.director-*, .live-pulse-*)
   ========================================================================== */
.director-audit-seal {
  margin-top: 1.25rem;
  padding: 1.1rem 1.35rem;
  background: rgba(124, 58, 237, 0.04);
  border-left: 3px solid var(--accent-purple);
  border-radius: 0 var(--radius-subtle) var(--radius-subtle) 0;
  border-top: 1px solid rgba(124, 58, 237, 0.1);
  border-right: 1px solid rgba(124, 58, 237, 0.1);
  border-bottom: 1px solid rgba(124, 58, 237, 0.1);
}

.live-pulse-dot-emerald {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  display: inline-block;
}

.live-pulse-dot-purple {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-purple);
  display: inline-block;
}

.live-pulse-dot-cyan {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  display: inline-block;
}

.live-pulse-dot-gold {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gold);
  display: inline-block;
}

.case-evidence-card {
  margin-bottom: 2rem;
  padding: 1.75rem !important;
  border: 1px solid var(--border-grid);
  background: var(--bg-surface);
  border-radius: var(--radius-card);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}

.case-evidence-grid > .executive-card.case-evidence-card,
.case-evidence-grid > .case-evidence-card {
  margin-bottom: 0 !important;
}

.case-evidence-card .pill-badge {
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  line-height: 1.35;
}

.case-evidence-card .director-audit-seal {
  margin-top: auto;
}

.case-blueprint-wrapper {
  margin: 1.5rem 0 1.75rem;
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 1100px) {
  .case-evidence-grid:has(> :nth-child(3):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .case-evidence-grid:has(> :nth-child(3):last-child) > :last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .case-evidence-grid,
  .case-evidence-grid:has(> :only-child),
  .case-evidence-grid:has(> :nth-child(2):last-child),
  .case-evidence-grid:has(> :nth-child(3):last-child) {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.15rem;
  }

  .case-evidence-grid > * {
    grid-column: auto !important;
  }

  .executive-card.case-evidence-card,
  .case-evidence-card {
    padding: 1.25rem !important;
  }

  .case-evidence-card .svg-diagram-container {
    padding: 0.9rem;
    margin: 1.15rem 0;
  }

  .case-evidence-card .director-audit-seal {
    padding: 0.95rem 1rem;
  }
}

.shadow-purple {
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}

.min-w-300 {
  min-width: 300px;
}

.min-w-280 {
  min-width: 280px;
}

.enterprise-problem-matrix {
  margin: 2.5rem 0 3rem;
}

.process-pipeline-graphic {
  min-width: 760px;
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   COMPONENT MODULE: REPORTS ENGINE REFACTOR UTILITIES
   ========================================================================== */
.report-val-display {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-heading);
  font-family: var(--font-mono);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.report-bench-text {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.5;
}

.report-baselines-section {
  margin: 2.5rem 0 3.25rem;
}

.report-baselines-section h3 {
  margin-top: 0 !important;
  margin-bottom: 1.35rem !important;
}

.report-baselines-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1.35rem;
}

@media (max-width: 1024px) {
  .report-baselines-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .report-baselines-grid > :nth-child(odd):last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .report-baselines-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .report-baselines-grid > * {
    grid-column: auto !important;
  }
}

.report-hub-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.report-hub-meta {
  padding-top: 1rem;
  border-top: 1px solid var(--border-grid);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.report-lead-text {
  font-size: 1.15rem;
  color: var(--text-body);
  max-width: 850px;
  margin: 0.75rem 0 1rem;
}

.report-stack-item {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.45;
}

.mr-xs {
  margin-right: 0.4rem;
}

.ml-xs {
  margin-left: 0.4rem;
}

.gap-175 {
  gap: 1.75rem;
}

.tracking-wide {
  letter-spacing: 0.5px;
}

.font-italic {
  font-style: italic;
}

.my-sm {
  margin: 0.75rem 0 1rem;
}

.my-2xl {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

/* ==========================================================================
   COMPONENT MODULE: COMPLETE CALCULATOR STYLES (.calc-*)
   ========================================================================== */
.calc-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.calc-title {
  margin: 0 0 0.35rem;
  font-size: 1.4rem;
}

.calc-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.calc-controls-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
  align-items: start;
}

.calc-controls-grid .col-span-2,
.calc-controls-grid .col-span-full {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .calc-controls-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .calc-controls-grid .col-span-2,
  .calc-controls-grid .col-span-full {
    grid-column: span 1;
  }
}

.calc-form-label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-heading);
  display: block;
  margin-bottom: 0.4rem;
}

.calc-form-select,
.calc-form-input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  background: var(--bg-canvas);
  color: var(--text-heading);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-input);
  font-size: 0.9rem;
}

.calc-slider-block {
  margin: 1.5rem 0;
}

.calc-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  accent-color: var(--accent-purple);
  cursor: pointer;
}

.calc-slider-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  font-family: var(--font-mono);
}

.calc-preset-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.calc-preset-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  align-self: center;
  font-family: var(--font-mono);
}

.calc-preset-btn {
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
}

.calc-levers-container {
  background: var(--bg-canvas);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.calc-features-grid,
.calc-levers-container .d-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 768px) {

  .calc-features-grid,
  .calc-levers-container .d-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

.calc-levers-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.calc-section-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-heading);
  margin: 0;
}

.calc-section-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.calc-lever-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-input);
  cursor: pointer;
  height: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.calc-lever-item:hover {
  border-color: var(--accent-purple);
  background: var(--bg-surface-elevated, var(--bg-surface));
}

.calc-lever-tag {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-weight: 600;
  margin-top: 0.2rem;
}

/* ==========================================================================
   Data-Driven Responsive Card Grids (2, 3, and 4 Columns)
   ========================================================================== */

/* 2-Column Split: Binary comparisons, 2-item timeline summaries */
.calc-stat-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.calc-stat-grid-2 .col-span-2,
.calc-stat-grid-2 .col-span-full {
  grid-column: span 2;
}

/* 3-Column Split: 3-Stage Roadmaps, 3-Phase Delivery, 3 Financial KPIs */
.calc-stat-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

/* 4-Column Split: 4 KPI Metrics, 4-Phase Cost Breakdown, Governance Tiers */
.calc-stat-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

/* Tablet & Intermediate Viewports */
@media (max-width: 1024px) {
  .calc-stat-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 900px) {
  .calc-stat-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

/* Mobile Viewports */
@media (max-width: 768px) {

  .calc-stat-grid-4,
  .calc-stat-grid-3,
  .calc-stat-grid-2 {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .calc-stat-grid-2 .col-span-2,
  .calc-stat-grid-2 .col-span-full {
    grid-column: span 1;
  }

  .calc-stat-value {
    font-size: 1.35rem;
  }
}

.calc-stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100%;
  box-sizing: border-box;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.calc-stat-card:hover {
  border-color: var(--accent-purple);
}

.calc-stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.calc-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-mono);
  margin: 0.25rem 0;
  line-height: 1.2;
  word-break: break-word;
}

.calc-stat-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: auto;
  padding-top: 0.35rem;
}

.calc-breakdown-panel {
  background: var(--bg-canvas);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  margin-top: 1.5rem;
}

.calc-breakdown-title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--text-heading);
}

.calc-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .calc-breakdown-grid {
    grid-template-columns: 1fr;
  }
}

.calc-breakdown-val {
  color: var(--text-heading);
  display: block;
  font-family: var(--font-mono);
  margin-top: 0.2rem;
}

.calc-timeline-card {
  background: var(--bg-surface);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-input);
  border: 1px solid var(--border-grid);
}

.calc-timeline-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  color: var(--text-body);
  line-height: 1.5;
}

.calc-footnote {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  border-top: 1px dashed var(--border-grid);
  padding-top: 0.6rem;
}

.calc-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.25rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border-grid);
}

.calc-governance-box {
  margin-top: 3.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-card);
  padding: 2rem;
}

.calc-governance-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-grid);
  padding-bottom: 1rem;
}

.calc-table-head-row {
  background: var(--bg-canvas);
  border-bottom: 2px solid var(--border-grid);
}

.calc-table-th {
  padding: 0.85rem 1rem;
  color: var(--text-heading);
  font-weight: 700;
}

.calc-cell-heading {
  padding: 1rem;
  font-weight: 700;
  color: var(--text-heading);
}

.calc-cell-purple {
  padding: 1rem;
  font-weight: 700;
  color: var(--accent-purple);
}

.calc-cell-cyan {
  padding: 1rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.calc-cell-gold {
  padding: 1rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.calc-cell-emerald {
  padding: 1rem;
  font-weight: 700;
  color: var(--accent-emerald);
}

.calc-cell-mono-heading {
  padding: 1rem;
  font-family: var(--font-mono);
  color: var(--text-heading);
}

.calc-cell-body {
  padding: 1rem;
  color: var(--text-body);
  font-size: 0.82rem;
}

.calc-cell-muted {
  padding: 1rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.calc-cell-sla {
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-emerald);
}

.calc-hub-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-hub-meta {
  padding-top: 1rem;
  border-top: 1px solid var(--border-grid);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-related-meta {
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-grid);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-hero-lead {
  font-size: 1.15rem;
  color: var(--text-body);
  max-width: 880px;
  margin-top: 0.75rem;
}

.tool-callout-cta {
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.col-span-2 {
  grid-column: span 2;
}

.w-18p {
  width: 18%;
}

.calc-highlight-cell {
  padding: 1rem;
  background: rgba(109, 40, 217, 0.04);
  font-weight: 600;
  color: var(--text-heading);
}

.min-w-760 {
  min-width: 760px;
}

.border-cyan {
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.border-gold {
  border: 1px solid rgba(234, 179, 8, 0.2);
}

.border-purple {
  border: 1px solid var(--accent-purple) !important;
}

.border-left-grid {
  border-left: 2px solid var(--border-grid);
}

.border-bottom-grid {
  border-bottom: 1px solid var(--border-grid);
}

.pl-md {
  padding-left: 1rem;
}

.pb-md {
  padding-bottom: 1.25rem;
}

.mt-xs {
  margin-top: 0.25rem;
}

.my-xs {
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
}

.calc-inaction-card {
  padding: 1.25rem;
  background: rgba(239, 68, 68, 0.04);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-card);
}

.calc-remedy-card {
  padding: 1.25rem;
  background: rgba(16, 185, 129, 0.04);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-card);
}

.text-crimson {
  color: var(--accent-crimson);
}

/* Additional Quote Builder Utilities */
.w-28p {
  width: 28%;
}

.min-w-820 {
  min-width: 820px;
}

.max-w-800 {
  max-width: 800px;
}

.calc-th-highlight {
  padding: 0.85rem 1rem;
  color: var(--accent-purple);
  font-weight: 800;
  width: 28%;
  background: rgba(109, 40, 217, 0.06);
  border-top: 2.5px solid var(--accent-purple);
}

.border-top-purple {
  border-top: 3.5px solid var(--accent-purple) !important;
}

.border-top-crimson {
  border-top: 3.5px solid var(--accent-crimson) !important;
}

.border-left-purple {
  border-left: 3px solid var(--accent-purple) !important;
}

.border-left-cyan {
  border-left: 3px solid var(--accent-cyan) !important;
}

.border-left-emerald {
  border-left: 3px solid var(--accent-emerald) !important;
}

.calc-summary-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.84rem;
  color: var(--text-body);
  line-height: 1.6;
}

.calc-phase-card {
  background: var(--bg-surface);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-input);
}

.calc-checkbox {
  margin-top: 0.2rem;
}

.shadow-sm {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.my-xl {
  margin-top: 3.5rem;
  margin-bottom: 2rem;
}

/* Non-Blocking Floating Privacy Consent Banner */
.privacy-consent-bar {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  max-width: 440px;
  width: calc(100% - 3rem);
  background: var(--bg-surface);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  color: var(--text-body);
  animation: slideUpConsent 0.3s ease-out;
}

@keyframes slideUpConsent {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .privacy-consent-bar {
    bottom: 4.5rem;
    left: 1rem;
    right: 1rem;
    width: auto;
    max-width: 100%;
  }
}

/* ==========================================================================
   Executive Leadership Profile Avatars
   ========================================================================== */
.profile-avatar-shield {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-mono);
}

.profile-avatar-purple {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.2));
  border: 2px solid var(--accent-purple);
  color: var(--accent-purple);
}

.profile-avatar-cyan {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(16, 185, 129, 0.2));
  border: 2px solid var(--accent-cyan);
  color: var(--accent-cyan);
}

.profile-avatar-gold {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(139, 92, 246, 0.2));
  border: 2px solid var(--accent-gold);
  color: var(--accent-gold);
}

/* ==========================================================================
   Case Study Blockquote & Evidence Styling
   ========================================================================== */
.case-study-quote {
  margin: 2.5rem 0 1rem;
  padding: 1.5rem 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-grid);
  border-left: 4px solid var(--accent-purple);
  border-radius: var(--radius-card);
}

.case-study-quote p {
  font-size: 1.05rem;
  line-height: 1.75;
  font-style: italic;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
}

.case-study-quote footer {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.case-study-quote strong {
  color: var(--text-heading);
}

/* ==========================================================================
   Interactive Modals & Dialog Components (.modal-*)
   ========================================================================== */
.modal-card-scrollable {
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--text-heading);
}

.modal-meta-label {
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.modal-title {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
}

.modal-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.modal-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .modal-form-grid {
    grid-template-columns: 1fr;
  }
}

.modal-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text-heading);
}

.modal-control {
  background: var(--bg-canvas);
  color: var(--text-heading);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-subtle);
  padding: 0.65rem 0.85rem;
  width: 100%;
  font-size: 0.9rem;
  box-sizing: border-box;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.modal-control:focus {
  border-color: var(--accent-purple);
}

.modal-guarantee-box {
  background: var(--bg-canvas);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-subtle);
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.modal-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.modal-sla-box {
  background: var(--bg-canvas);
  border: 1px solid var(--border-grid);
  border-top: 4px solid var(--accent-emerald);
  border-radius: var(--radius-card);
  padding: 1rem 1.25rem;
  text-align: left;
  margin-bottom: 1.75rem;
}

.calc-lever-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.calc-diagram-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.calc-diagram-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   CANONICAL FAQ COMPONENT (Unified Enterprise OffSec Cyber Styling)
   ========================================================================== */
.faq-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.faq-card {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.faq-card:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 4px 18px var(--accent-purple-glow);
}

[data-theme="dark"] .faq-card:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.25);
}

/* ==========================================================================
   CALM 3-STEP SOLUTION FINDER WIZARD & HOMEPAGE CLUSTER SHOWCASE
   ========================================================================== */
.home-cluster-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.home-service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.9rem;
}

.home-service-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-grid);
}

.wizard-stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.wizard-step-tab {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  padding: 0.9rem 1.1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-card);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.wizard-step-tab:hover {
  border-color: var(--accent-purple);
  color: var(--text-heading);
}

.wizard-step-tab.is-active {
  border-color: var(--accent-purple);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(6, 182, 212, 0.08));
  color: var(--text-heading);
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.15);
}

.wizard-step-tab.is-complete .wizard-step-num {
  background: var(--accent-emerald);
  color: #ffffff;
  border-color: var(--accent-emerald);
}

.wizard-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-grid);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.wizard-step-tab.is-active .wizard-step-num {
  background: var(--accent-purple);
  color: #ffffff;
  border-color: var(--accent-purple);
}

.wizard-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 1.75rem;
  align-items: start;
}

.wizard-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-card);
  padding: 1.75rem;
}

#solution-finder-root {
  scroll-margin-top: 5.5rem;
}

.wizard-block {
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-grid);
}

.wizard-block:last-of-type {
  border-bottom: none;
  margin-bottom: 0.5rem;
  padding-bottom: 0;
}

.wizard-block-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.wizard-block-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.wizard-features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.wizard-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem;
  border-radius: var(--radius-subtle);
  border: 1px solid var(--border-grid);
  background: var(--bg-canvas);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.wizard-feature-item:hover {
  border-color: var(--accent-purple);
}

.wizard-feature-item.is-checked {
  border-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.08);
}

.wizard-rail {
  position: sticky;
  top: 5.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-grid);
  border-top: 3px solid var(--accent-purple);
  border-radius: var(--radius-card);
  padding: 1.4rem;
}

.wizard-rail-item {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border-grid);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

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

.wizard-rail-item span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.wizard-rail-item strong {
  font-size: 0.9rem;
  color: var(--text-heading);
}

.wizard-group {
  margin-bottom: 1.75rem;
}

.wizard-group-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.65rem;
}

.wizard-choice-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.wizard-choice-pill {
  padding: 0.48rem 0.9rem;
  border-radius: var(--radius-subtle);
  border: 1px solid var(--border-grid);
  background: var(--bg-canvas);
  color: var(--text-body);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wizard-choice-pill:hover {
  border-color: var(--accent-purple);
  color: var(--text-heading);
}

.wizard-choice-pill.is-selected {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
  color: #ffffff;
  font-weight: 600;
}

.wizard-goals-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.wizard-goal-card {
  text-align: left;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-subtle);
  border: 1px solid var(--border-grid);
  background: var(--bg-canvas);
  cursor: pointer;
  transition: all 0.15s ease;
}

.wizard-goal-card:hover {
  border-color: var(--accent-cyan);
}

.wizard-goal-card.is-selected {
  border-color: var(--accent-purple);
  background: rgba(168, 85, 247, 0.1);
}

.wizard-goal-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.25rem;
}

.wizard-goal-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.wizard-matched-box {
  background: var(--bg-canvas);
  border: 1px solid var(--accent-purple);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.wizard-stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.wizard-stack-chip {
  font-family: var(--font-mono, monospace);
  font-size: 0.74rem;
  padding: 0.24rem 0.55rem;
  border-radius: var(--radius-subtle);
  background: var(--bg-surface);
  border: 1px solid var(--border-grid);
  color: var(--accent-cyan);
}

.wizard-swap-chip {
  font-size: 0.76rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-subtle);
  background: var(--bg-surface);
  border: 1px solid var(--border-grid);
  color: var(--text-body);
  cursor: pointer;
}

.wizard-swap-chip:hover {
  border-color: var(--accent-purple);
  color: var(--text-heading);
}

.wizard-all16-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.wizard-service-tile {
  text-align: left;
  padding: 0.85rem;
  border-radius: var(--radius-subtle);
  border: 1px solid var(--border-grid);
  background: var(--bg-canvas);
  cursor: pointer;
  transition: all 0.15s ease;
}

.wizard-service-tile:hover {
  border-color: var(--accent-purple);
}

.wizard-service-tile.is-selected {
  border-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.08);
}

.wizard-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.wizard-metric-card {
  background: var(--bg-canvas);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-subtle);
  padding: 1rem;
}

.wizard-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-grid);
  font-size: 0.9rem;
}

.wizard-summary-row span {
  color: var(--text-muted);
}

.wizard-summary-highlight {
  border-bottom: none;
  font-size: 1rem;
}

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

.modal-estimate-banner {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--accent-emerald);
  border-radius: var(--radius-subtle);
  padding: 0.6rem 0.85rem;
  font-size: 0.82rem;
  color: var(--text-heading);
  margin-bottom: 1rem;
}

@media (max-width: 960px) {
  .wizard-stepper,
  .wizard-layout,
  .wizard-goals-grid,
  .wizard-all16-grid,
  .wizard-features-grid,
  .wizard-metrics-grid {
    grid-template-columns: 1fr;
  }
  .wizard-rail {
    position: static;
  }
}

/* Automatic Zero-Dependency Location Pricing Visibility (Zero Switch, Zero FOUC) */
.geo-price-in,
.geo-price-eur,
.geo-price-gbp,
.geo-price-usd {
  display: none;
}

[data-geo-currency="INR"] .geo-price-in {
  display: inline;
}

[data-geo-currency="EUR"] .geo-price-eur {
  display: inline;
}

[data-geo-currency="GBP"] .geo-price-gbp {
  display: inline;
}

[data-geo-currency="USD"] .geo-price-usd,
:root:not([data-geo-currency]) .geo-price-usd {
  display: inline;
}

/* Zero-FOUC Regional Best-Practices & Procurement Policy Visibility */
.geo-reg-in,
.geo-reg-gb,
.geo-reg-eu,
.geo-reg-us,
.geo-reg-gcc,
.geo-reg-sg {
  display: none;
}

[data-geo-region="IN"] .geo-reg-in {
  display: inline;
}

[data-geo-region="GB"] .geo-reg-gb {
  display: inline;
}

[data-geo-region="EU"] .geo-reg-eu {
  display: inline;
}

[data-geo-region="US"] .geo-reg-us,
[data-geo-region="GLOBAL"] .geo-reg-us,
:root:not([data-geo-region]) .geo-reg-us {
  display: inline;
}

[data-geo-region="GCC"] .geo-reg-gcc {
  display: inline;
}

[data-geo-region="SG"] .geo-reg-sg {
  display: inline;
}
