/* ==========================================================================
   Emergency Preparedness Association — Apple / Tailwind Cinema Token Sheet
   Strictly 3 Surface Families:
     1) Obsidian Stage (#05070B / #0B0F17)
     2) Crisp White Editorial Sheet (#FFFFFF)
     3) Alabaster Bento Surface (#F5F5F7)
   One Sacred Action Color: Signal Amber (#D97706 -> #B45309)
   ========================================================================== */

:root {
  --bg-obsidian: #05070b;
  --bg-obsidian-elevated: #0d1117;
  --bg-white: #ffffff;
  --bg-alabaster: #f5f5f7;

  --ink-on-dark: #f8fafc;
  --ink-muted-dark: #94a3b8;
  --ink-on-light: #0a0a0b;
  --ink-muted-light: #475569;

  --sacred-amber-top: #e2583d;
  --sacred-amber-mid: #c8432b;
  --sacred-amber-deep: #9f2e1a;

  --hairline-dark: rgba(255, 255, 255, 0.11);
  --hairline-light: rgba(15, 23, 42, 0.08);

  --radius-card: 24px;
  --radius-bento: 28px;
  --radius-pill: 999px;

  --shadow-sheet: 0 1px 2px rgba(10, 10, 11, 0.04), 0 8px 24px rgba(10, 10, 11, 0.06), 0 32px 64px -24px rgba(10, 10, 11, 0.16);
  --shadow-stage: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 28px 72px -20px rgba(0, 0, 0, 0.78);
  --shadow-sacred: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 1px 2px rgba(0, 0, 0, 0.48), 0 14px 34px -8px rgba(200, 67, 43, 0.54);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-white);
  color: var(--ink-on-light);
  font-family: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

.tabular, .kpi-num, .price-tag, .stat-num, table td {
  font-variant-numeric: tabular-nums;
}

/* Surface Families (Strictly 3) */
.stage-obsidian {
  background-color: var(--bg-obsidian);
  color: var(--ink-on-dark);
  padding: clamp(56px, 8vw, 112px) clamp(20px, 4vw, 40px);
  border-bottom: 1px solid var(--hairline-dark);
}

.sheet-white {
  background-color: var(--bg-white);
  color: var(--ink-on-light);
  padding: clamp(56px, 8vw, 108px) clamp(20px, 4vw, 40px);
  border-bottom: 1px solid var(--hairline-light);
}

.bento-alabaster {
  background-color: var(--bg-alabaster);
  color: var(--ink-on-light);
  padding: clamp(56px, 8vw, 108px) clamp(20px, 4vw, 40px);
  border-bottom: 1px solid var(--hairline-light);
}

.container-wide {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.reading-well {
  max-width: 66ch;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Typography Hierarchy — Sentence Case Display, Never All-Caps on H1-H3 */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

.stage-obsidian .eyebrow {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f27457;
  backdrop-filter: blur(16px);
}

.sheet-white .eyebrow,
.bento-alabaster .eyebrow {
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: #9f2e1a;
}

h1 {
  font-size: clamp(34px, 5.2vw, 64px);
  line-height: 1.04;
  font-weight: 750;
  letter-spacing: -0.038em;
  text-wrap: balance;
  margin: 0 0 20px;
}

h2 {
  font-size: clamp(26px, 3.6vw, 42px);
  line-height: 1.12;
  font-weight: 720;
  letter-spacing: -0.03em;
  text-wrap: balance;
  margin: 0 0 16px;
}

h3 {
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.25;
  font-weight: 680;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

p {
  margin: 0 0 18px;
}

a {
  color: #c8432b;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.stage-obsidian a {
  color: #f27457;
}

/* Header & Navigation — Live Brand Stacked Wordmark */
.top-header {
  background-color: var(--bg-obsidian);
  border-bottom: 1px solid var(--hairline-dark);
  padding: 14px clamp(20px, 4vw, 40px);
}

.top-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-on-dark);
  text-decoration: none;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-wordmark-top {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.brand-er {
  color: #d94f34;
}

.brand-wordmark-sub {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.36em;
  color: #cbd5e1;
  margin-top: 4px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.header-nav-link {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 150ms ease;
}

.header-nav-link:hover,
.header-nav-link.is-active {
  color: #e2583d;
}

/* Full-Bleed Atmospheric Hero Scrim (Matches Live Brand Look) */
.hero-cinematic-bleed {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 7, 11, 0.96) 0%, rgba(5, 7, 11, 0.88) 48%, rgba(5, 7, 11, 0.58) 100%),
    url('/images/home-battery-transfer-studio.webp') right center / cover no-repeat;
}

.brand-crest {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.42);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f1735a;
  flex-shrink: 0;
}

/* Sacred Action Button — 3D Top-Lit Gradient + Specular Shadow */
.btn-sacred {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, var(--sacred-amber-top) 0%, var(--sacred-amber-mid) 54%, var(--sacred-amber-deep) 100%);
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 720;
  font-size: 16px;
  line-height: 1.25;
  padding: 15px 28px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: var(--shadow-sacred);
  cursor: pointer;
  transition: transform 180ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 180ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.btn-sacred:hover {
  transform: translateY(-1px);
}

.btn-sacred-compact {
  padding: 10px 18px;
  font-size: 14px;
  border-radius: 11px;
}

.btn-subtext {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.92;
  margin-top: 3px;
}

.btn-ghost-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--ink-on-dark) !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 14px;
}

/* Telemetry Strip */
.telemetry-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}

.telemetry-pill {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--hairline-dark);
  border-radius: 16px;
  padding: 12px 16px;
}

.telemetry-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-muted-dark);
  margin-bottom: 4px;
}

.telemetry-val {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

/* Hero Split & Bento Grids */
.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.bento-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.bento-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.card-stage {
  background: var(--bg-obsidian-elevated);
  border: 1px solid var(--hairline-dark);
  border-radius: var(--radius-card);
  padding: 26px;
  box-shadow: var(--shadow-stage);
}

.card-sheet {
  background: var(--bg-white);
  color: var(--ink-on-light);
  border: 1px solid var(--hairline-light);
  border-radius: var(--radius-card);
  padding: 26px;
  box-shadow: var(--shadow-sheet);
}

/* Editorial Figures */
figure.cinema-figure {
  margin: 24px 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--hairline-light);
  background: var(--bg-obsidian-elevated);
}

.stage-obsidian figure.cinema-figure {
  border-color: var(--hairline-dark);
}

figure.cinema-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

figure.cinema-figure figcaption {
  padding: 12px 18px;
  font-size: 13px;
  color: var(--ink-muted-light);
  background: var(--bg-white);
  border-top: 1px solid var(--hairline-light);
}

.stage-obsidian figure.cinema-figure figcaption {
  background: var(--bg-obsidian-elevated);
  color: var(--ink-muted-dark);
  border-top-color: var(--hairline-dark);
}

/* Forms & 2-Step Enrollment Box */
.enroll-card {
  background: var(--bg-white);
  color: var(--ink-on-light);
  border-radius: var(--radius-bento);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: 0 28px 80px -16px rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-field {
  margin-bottom: 14px;
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  color: #1e293b;
  margin-bottom: 5px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  border-radius: 11px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  font-family: inherit;
}

.tier-selector {
  border: 1.5px solid #c8432b;
  background: #fffbeb;
  border-radius: 14px;
  padding: 14px;
  margin: 14px 0;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.45;
  color: #1e293b;
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.reassurance-line {
  font-size: 12.5px;
  color: #475569;
  text-align: center;
  margin-top: 10px;
}

/* Directory Hub Strip */
.hub-directory-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hub-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-white);
  border: 1px solid var(--hairline-light);
  color: #0f172a !important;
  text-decoration: none !important;
  font-size: 13.5px;
  font-weight: 600;
}

/* Data Tables */
.data-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--hairline-light);
  background: var(--bg-white);
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

table.data-table th,
table.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--hairline-light);
}

table.data-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #475569;
  background: #f8fafc;
}

/* Sticky Mobile Thumb-Zone Bar */
.sticky-mobile-bar {
  display: none;
}

/* Footer */
.site-footer {
  background-color: var(--bg-obsidian);
  color: var(--ink-muted-dark);
  padding: 56px clamp(20px, 4vw, 40px) 92px;
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 16px 0;
}

/* Responsive Breakpoints */
@media (max-width: 920px) {
  .hero-grid,
  .bento-grid-3,
  .bento-grid-2 {
    grid-template-columns: 1fr;
  }

  .sticky-mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 62px;
    padding: 10px 16px;
    background: rgba(5, 7, 11, 0.94);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
  }

  .sticky-mobile-copy {
    color: #f8fafc;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.25;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.btn-block { width: 100%; }
.meta-amber { font-size: 12px; font-weight: 700; color: #9f2e1a; margin-bottom: 6px; }
.meta-slate { font-size: 12px; font-weight: 700; color: #475569; margin-bottom: 6px; }
.meta-gold { font-size: 12px; font-weight: 700; color: #f1735a; margin-bottom: 6px; }
.card-sheet + .card-sheet, .card-stage + .card-stage { margin-top: 16px; }

.card-sheet a:not(.btn-sacred) { color: #c8432b; }
.stage-obsidian > .container-wide > .reading-well, .hero-grid .reading-well { margin-left: 0; }

/* === Option 1 Home Continuity OS — Navigation, Geo-Toggle & Interactive Calculators === */
.header-nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.header-nav-links a:not(.btn-sacred) {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.header-nav-links a:not(.btn-sacred):hover {
  color: #f1735a;
}

.geo-bar {
  background: #0d1117;
  border-bottom: 1px solid var(--hairline-dark);
  padding: 8px clamp(20px, 4vw, 40px);
  font-size: 12.5px;
  color: var(--ink-muted-dark);
}

.geo-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.geo-select {
  background: rgba(255, 255, 255, 0.07);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.ftc-banner {
  font-size: 12.5px;
  color: var(--ink-muted-light);
  background: #f8fafc;
  border: 1px solid var(--hairline-light);
  border-radius: 12px;
  padding: 10px 16px;
  margin-bottom: 24px;
}

.stage-obsidian .ftc-banner {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-muted-dark);
  border-color: var(--hairline-dark);
}

.calc-shell {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 28px;
  align-items: start;
  margin-top: 24px;
}

.calc-panel {
  background: var(--bg-white);
  color: var(--ink-on-light);
  border: 1px solid var(--hairline-light);
  border-radius: var(--radius-bento);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow-sheet);
}

.calc-output-panel {
  background: var(--bg-obsidian-elevated);
  color: var(--ink-on-dark);
  border: 1px solid rgba(245, 158, 11, 0.36);
  border-radius: var(--radius-bento);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow-stage);
  position: sticky;
  top: 20px;
}

.appliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
  margin: 14px 0 22px;
}

.appliance-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.35;
}

.appliance-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #c8432b;
  flex-shrink: 0;
}

.kpi-readout-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 16px 0 20px;
}

.kpi-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--hairline-dark);
  border-radius: 16px;
  padding: 14px 16px;
}

.kpi-box-label {
  font-size: 11.5px;
  color: var(--ink-muted-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.kpi-box-val {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 800;
  color: #f1735a;
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}

.rec-box {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 18px;
}

.range-input {
  width: 100%;
  accent-color: #c8432b;
  margin-top: 6px;
}

.badge-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: #fef3c7;
  color: #9f2e1a;
  margin-bottom: 8px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.status-toast {
  display: none;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #ecfdf5;
  border: 1px solid #10b981;
  color: #065f46;
  font-size: 14px;
  font-weight: 600;
}

.status-toast.is-visible {
  display: block;
}

.intl-notice {
  display: none;
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fffbeb;
  border: 1px solid #e2583d;
  color: #9f2e1a;
  font-size: 13.5px;
  font-weight: 600;
}

.intl-notice.is-visible {
  display: block;
}

.stage-obsidian-compact {
  padding: clamp(30px, 4vw, 52px) clamp(20px, 4vw, 40px);
}

@media (max-width: 640px) {
  .top-header nav {
    display: none;
  }
  .telemetry-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 20px;
  }
  .telemetry-pill {
    padding: 9px 12px;
  }
  .stage-obsidian {
    padding: 28px 18px 44px;
  }
}

@media (max-width: 920px) {
  .calc-shell {
    grid-template-columns: 1fr;
  }
  .calc-output-panel {
    position: static;
  }
  .header-nav-links {
    gap: 12px;
  }
}


/* ==========================================================================
   PLATFORM 2.0 — $500K Principal UI/UX Command Stage, Live Ticker, Map & Cards
   WCAG 2.2 AA/AAA Verified:
     - #F1735A on #05070B obsidian = 7.05:1 AAA
     - #FFFFFF on #C8432B CTA      = 4.89:1 AA
     - Concentric Corners: R_outer (24px) = R_inner (8px) + pad (16px)
   ========================================================================== */

:focus-visible {
  outline: 2px solid #f1735a;
  outline-offset: 2px;
}

/* Row 0: 36px Live National Emergency Ticker */
.live-ticker-bar {
  background: #0b0e14;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 12.5px;
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 6px clamp(16px, 4vw, 40px);
}

.live-ticker-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ticker-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e2e8f0;
}

.ticker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f1735a;
  box-shadow: 0 0 0 3px rgba(241, 115, 90, 0.28);
  flex-shrink: 0;
}

.ticker-link {
  color: #f1735a !important;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.ticker-link:hover {
  text-decoration: underline;
}

/* Compact Command Hero (Fits 1280x720 Laptop Cleanly) */
.command-hero {
  padding: clamp(22px, 3vw, 38px) clamp(16px, 4vw, 40px) clamp(32px, 4vw, 52px);
  background:
    radial-gradient(circle at 80% 20%, rgba(200, 67, 43, 0.16), transparent 48%),
    linear-gradient(180deg, #05070b 0%, #090d16 100%);
  color: #f8fafc;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.18fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}

.command-grid > * {
  min-width: 0;
  max-width: 100%;
}

.command-h1 {
  font-size: clamp(30px, 3.7vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.036em;
  margin: 12px 0 12px;
  color: #ffffff;
}

.command-sub {
  font-size: 16px;
  line-height: 1.52;
  color: #cbd5e1;
  margin: 0 0 16px;
  max-width: 56ch;
}

/* Audience Mode Switcher (3-Segment Obsidian Pill) */
.mode-switcher {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.mode-tab {
  border: 0;
  background: transparent;
  color: #cbd5e1;
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  padding: 9px 14px;
  min-height: 40px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}

.mode-tab[aria-selected="true"],
.mode-tab.is-active {
  background: linear-gradient(180deg, #e2583d 0%, #c8432b 100%);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(200, 67, 43, 0.42);
}

/* Instant Omni-Search Bar */
.omni-wrap {
  position: relative;
  margin: 14px 0 14px;
}

.omni-bar {
  display: flex;
  gap: 8px;
  background: #0f141e;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 32px -12px rgba(0, 0, 0, 0.7);
}

.omni-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  padding: 10px 14px;
  min-height: 44px;
}

.omni-input::placeholder {
  color: #94a3b8;
}

.omni-btn {
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #e2583d 0%, #c8432b 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 18px;
  min-height: 44px;
  cursor: pointer;
  white-space: nowrap;
}

.omni-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #0f1521;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.78);
  z-index: 40;
  max-height: 340px;
  overflow-y: auto;
  display: none;
}

.omni-dropdown.is-open {
  display: block;
}

.omni-item {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: #f8fafc;
  padding: 10px 12px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: inherit;
}

.omni-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.omni-item-sub {
  font-size: 12px;
  color: #94a3b8;
  display: block;
  margin-top: 2px;
}

/* Compact 4-KPI Live National Pulse Row */
.pulse-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.pulse-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 12px;
}

.pulse-k {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}

.pulse-v {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}

/* Interactive US Map Canvas & Overlay Rail */
.map-stage-card {
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 28px 64px -20px rgba(0, 0, 0, 0.78);
}

.overlay-rail {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.overlay-chip {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border-radius: 999px;
  padding: 8px 13px;
  min-height: 38px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.overlay-chip[aria-pressed="true"],
.overlay-chip.is-active {
  background: #c8432b;
  border-color: #f1735a;
  color: #ffffff;
}

.us-tile-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 4px;
  margin: 8px 0 10px;
}

.us-tile {
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #171e2b;
  color: #ffffff;
  font-family: inherit;
  font-size: 11px;
  font-weight: 750;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 2px;
  transition: transform 140ms ease, border-color 140ms ease;
}

.us-tile:hover,
.us-tile.is-selected {
  transform: scale(1.07);
  border-color: #ffffff;
  z-index: 2;
}

.us-tile-sub {
  font-size: 9px;
  font-weight: 600;
  opacity: 0.9;
  font-variant-numeric: tabular-nums;
}

.map-legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #94a3b8;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

/* Instant Local Situation Room Panel */
.sitroom-panel {
  margin-top: 18px;
  background: #0f1521;
  border: 1px solid rgba(241, 115, 90, 0.4);
  border-radius: 24px;
  padding: 20px;
  color: #f8fafc;
}

.sitroom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 20px;
  margin-top: 14px;
}

/* Moody's Bond-Style Continuity Grade Pills (WCAG AA/AAA) */
.grade-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.grade-emerald { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.grade-blue    { background: #eff6ff; color: #1e3a8a; border: 1px solid #bfdbfe; }
.grade-amber   { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.grade-crimson { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* 4-Bar Weakest-Link Autonomy Meter */
.autonomy-bars {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.autonomy-row-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.autonomy-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.sheet-white .autonomy-track,
.bento-alabaster .autonomy-track {
  background: rgba(15, 23, 42, 0.1);
}

.autonomy-fill {
  height: 100%;
  border-radius: 999px;
  background: #38bdf8;
}

.autonomy-fill.is-weakest {
  background: #c8432b;
}

/* Vetted Vendor Directory Cards (Concentric 24px / 16px / 8px) */
.vendor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.vendor-card {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 24px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-sheet);
}

.vendor-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cert-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #1e293b;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.cert-chip-sam {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.vendor-meta-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  background: #f8fafc;
  border-radius: 12px;
  padding: 10px;
  font-size: 12px;
}

.vendor-meta-k {
  display: block;
  color: #475569;
  font-size: 10.5px;
  text-transform: uppercase;
  font-weight: 700;
}

.vendor-meta-v {
  font-weight: 750;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

/* Filter Bar & Chips */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 18px;
}

.filter-input,
.filter-select {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  font-family: inherit;
  font-size: 14px;
  background: #ffffff;
  color: #0f172a;
}

.filter-input {
  flex: 1;
  min-width: 220px;
}

.alert-pill-extreme { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 750; }
.alert-pill-severe  { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 750; }
.alert-pill-mod     { background: #fefce8; color: #854d0e; border: 1px solid #fef08a; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 750; }

/* Modal Dialog (Accessible Focus & Concentric Geometry) */
.ep-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 11, 0.78);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 90;
}

.ep-modal-backdrop.is-open {
  display: flex;
}

.ep-modal {
  background: #ffffff;
  color: #0f172a;
  border-radius: 24px;
  padding: 24px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.55);
}

.stage-obsidian a {
  color: #f1735a;
}

.stage-obsidian .eyebrow {
  color: #f1735a;
}

@media (max-width: 960px) {
  .command-grid,
  .sitroom-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .pulse-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .us-tile {
    font-size: 9px;
    border-radius: 5px;
    padding: 1px;
  }
  .us-tile-grid {
    gap: 2px;
  }
  .us-tile-sub {
    display: none;
  }
  .mode-switcher {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .mode-tab {
    padding: 8px 6px;
    font-size: 11.5px;
    text-align: center;
  }
  .omni-bar {
    flex-direction: column;
  }
  .omni-btn {
    width: 100%;
  }
  .command-h1 {
    font-size: 30px;
  }
  .header-nav {
    display: none;
  }
}

@media print {
  .live-ticker-bar, .top-header, .site-footer, .sticky-mobile-bar, .no-print {
    display: none !important;
  }
}

/* === 8-POINT HARDENING UTILITIES === */
.mobile-menu-btn {
  display: none;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}

.mobile-nav-drawer {
  max-width: 1200px;
  margin: 12px auto 0;
  padding: 12px;
  border-radius: 16px;
  background: #0d121c;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  gap: 6px;
}

.mobile-nav-drawer[hidden] {
  display: none;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #f8fafc;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.mobile-nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f1735a;
}

.breadcrumb-strip {
  background: #0b0e14;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px clamp(16px, 4vw, 40px);
  font-size: 12.5px;
  color: #94a3b8;
}

.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.breadcrumb-seg a {
  color: #cbd5e1;
  text-decoration: none;
}

.breadcrumb-seg a:hover {
  color: #f1735a;
  text-decoration: underline;
}

.breadcrumb-sep {
  margin-right: 6px;
  opacity: 0.6;
}

.calc-hero-compact {
  padding: clamp(20px, 2.8vw, 34px) clamp(16px, 4vw, 40px) !important;
}

.calc-hero-compact h1 {
  font-size: clamp(28px, 3.6vw, 44px);
  margin-bottom: 10px;
}

.calc-hero-compact p {
  margin-bottom: 0;
  font-size: 15.5px;
}

.county-live-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-radius: 14px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 600;
}

.county-live-banner.is-clear {
  background: rgba(6, 95, 70, 0.25);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #ecfdf5;
}

.county-live-banner.is-alert {
  background: rgba(153, 27, 27, 0.35);
  border: 1px solid rgba(248, 113, 113, 0.65);
  color: #fef2f2;
}

.direct-answer-box {
  background: #f8fafc;
  border-left: 4px solid #c8432b;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 0 0 28px;
  font-size: 15.5px;
  color: #0f172a;
}

.provenance-card {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 20px;
  padding: 20px;
  margin-top: 28px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Tokenized Directory & Card Utilities (Zero Inline Style Bloat) */
.vc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.vc-title {
  font-size: 18px;
  margin: 0;
  line-height: 1.25;
}

.vc-chips {
  margin-top: 10px;
}

.vc-desc {
  font-size: 13.5px;
  color: #475569;
  margin: 10px 0 0;
}

.vc-proof-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #475569;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.vc-proof-row a {
  color: #c8432b;
  font-weight: 700;
  text-decoration: none;
}

.vc-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.vc-btn-muted {
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.18);
  background: #f8fafc;
}

.vc-meta-bar {
  font-size: 14px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.vc-empty {
  text-align: center;
  padding: 36px;
}

.vc-empty-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 14px;
}

.vc-pager {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.field-lbl {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.w-full {
  width: 100%;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.modal-form {
  display: grid;
  gap: 12px;
}

.status-ok {
  font-size: 13.5px;
  font-weight: 700;
  color: #065f46;
}

.cta-row-tight {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

@media (max-width: 960px) {
  .mobile-menu-btn {
    display: inline-flex;
  }
}

@media print {
  .breadcrumb-strip, .county-live-banner, .cta-row, .no-print {
    display: none !important;
  }
  .stage-obsidian, .sheet-white {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 16px !important;
    border: 0 !important;
  }
  .enroll-card, .provenance-card {
    box-shadow: none !important;
    border: 1px solid #000000 !important;
    break-inside: avoid;
  }
}


/* Original Negative-Space Cross Brand Logo — 50% Larger Header Presence */
.brand-logo-img {
  height: 52px;
  width: auto;
  max-width: 270px;
  object-fit: contain;
  display: block;
}

@media (max-width: 960px) {
  .brand-logo-img {
    height: 40px;
    max-width: 205px;
  }
}

/* Viral Community, Stress-Test, Pods & Academy Components */
.timeline-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.timeline-step {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.timeline-step.is-critical {
  background: rgba(153, 27, 27, 0.25);
  border-color: rgba(248, 113, 113, 0.55);
}

.timeline-hr {
  font-weight: 800;
  font-size: 13px;
  color: #f1735a;
  font-variant-numeric: tabular-nums;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 8px;
}

.choice-pill {
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: #ffffff;
  color: #0f172a;
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 48px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}

.choice-pill[aria-pressed="true"],
.choice-pill.is-selected {
  background: #fef2f2;
  border-color: #c8432b;
  color: #9f2e1a;
  box-shadow: 0 0 0 1px #c8432b;
}

.cert-frame {
  background: #ffffff;
  color: #0f172a;
  border: 2px solid #0f172a;
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-sheet);
}

.cert-seal-logo {
  height: 36px;
  width: auto;
  margin-bottom: 14px;
}

.pin-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.pin-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.pin-ok    { background: #ecfdf5; color: #065f46; }
.pin-warn  { background: #fef3c7; color: #92400e; }
.pin-alert { background: #fef2f2; color: #991b1b; }

/* National State & Municipality Command Grid Tokens */
.bento-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 960px) {
  .bento-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .bento-grid-4 { grid-template-columns: 1fr; }
}
.stat-pill-dark {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-pill-dark .stat-lbl {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  font-weight: 700;
}
.stat-pill-dark strong {
  font-size: 18px;
  color: #ffffff;
  font-weight: 800;
}
