/* ============================================================================
   MACRO CIRCUIT V4.6 — IMPERIAL DARK NAVY, TURQUOISE & BRUSHED GOLD SYSTEM
   Canonical Domain: https://themacrocircuit.com
   Default Theme: Dark Navy (#060B16 / #0C1526 / #111E36) + Gold (#D4AF37) + Turquoise (#14B8A6)
   Light Theme: Warm Ivory (#F7F6F2) + Deep Navy (#091122) + Brushed Gold (#B68A1C)
   ============================================================================ */

:root,
html[data-theme="dark"] {
  --container-max: 1460px;
  --bg-canvas: #060B16;
  --bg-canvas-glow: radial-gradient(circle at 14% 0%, rgba(212, 175, 55, 0.08), transparent 38%),
                    radial-gradient(circle at 86% 4%, rgba(20, 184, 166, 0.08), transparent 40%);
  --bg-card: #0C1526;
  --bg-card-elevated: #111E36;
  --bg-card-hover: #142440;
  --bg-input: #08101E;
  --bg-subtle: rgba(17, 30, 54, 0.72);

  --gold-primary: #D4AF37;
  --gold-bright: #F0B429;
  --gold-deep: #B68B1E;
  --gold-soft: rgba(212, 175, 55, 0.13);
  --border-gold: rgba(212, 175, 55, 0.25);
  --border-gold-strong: rgba(240, 180, 41, 0.58);

  --turq-primary: #14B8A6;
  --turq-bright: #06B6D4;
  --turq-soft: rgba(20, 184, 166, 0.14);
  --border-turq: rgba(20, 184, 166, 0.34);

  --emerald: #10B981;
  --crimson: #EF4444;

  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-on-gold: #060B16;

  --border-subtle: rgba(148, 163, 184, 0.15);
  --shadow-card: 0 16px 38px rgba(2, 6, 16, 0.48);
  --shadow-gold: 0 8px 26px rgba(212, 175, 55, 0.22);
}

html[data-theme="light"] {
  --bg-canvas: #F7F6F2;
  --bg-canvas-glow: radial-gradient(circle at 12% 0%, rgba(212, 175, 55, 0.09), transparent 36%),
                    radial-gradient(circle at 88% 4%, rgba(11, 107, 99, 0.07), transparent 38%);
  --bg-card: #FFFFFF;
  --bg-card-elevated: #F1EFE8;
  --bg-card-hover: #FAF8F2;
  --bg-input: #FFFFFF;
  --bg-subtle: #F3F1EA;

  --gold-primary: #785500;
  --gold-bright: #6E4D00;
  --gold-deep: #5C4000;
  --gold-soft: rgba(182, 138, 28, 0.13);
  --border-gold: rgba(120, 85, 0, 0.30);
  --border-gold-strong: rgba(120, 85, 0, 0.62);

  --turq-primary: #0B6B63;
  --turq-bright: #0A5F75;
  --turq-soft: rgba(11, 107, 99, 0.11);
  --border-turq: rgba(11, 107, 99, 0.34);

  --emerald: #047857;
  --crimson: #B91C1C;

  --text-primary: #091122;
  --text-secondary: #334155;
  --text-muted: #475569;
  --text-on-gold: #060B16;

  --border-subtle: rgba(15, 23, 42, 0.13);
  --shadow-card: 0 12px 30px rgba(9, 17, 34, 0.07);
  --shadow-gold: 0 8px 22px rgba(182, 138, 28, 0.18);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-canvas);
  background-image: var(--bg-canvas-glow);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.55;
  overflow-x: hidden;
  transition: background-color 0.2s ease, color 0.2s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  max-width: 100%;
  vertical-align: middle;
}

button, input, select {
  font-family: inherit;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 9999;
  background: var(--gold-bright);
  color: #060B16;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
}
.skip-link:focus { left: 12px; }

.v4-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(16px, 2.3vw, 34px);
}

.v4-section {
  padding: 36px 0;
}
.v4-section.tight-top {
  padding-top: 22px;
}

.v4-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

/* ============================================================================
   1. TOP WORLD FINANCIAL CLOCKS BAR (CLICKABLE CITY PILLS)
   ============================================================================ */
.global-status-bar {
  background: #040811;
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
  padding: 6px clamp(12px, 1.8vw, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.market-clocks-track {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
}
.market-clocks-track::-webkit-scrollbar { display: none; }

.clock-pill {
  appearance: none;
  background: rgba(12, 21, 38, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #E2E8F0;
  border-radius: 8px;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.clock-pill:hover {
  border-color: rgba(240, 180, 41, 0.65);
  background: rgba(22, 36, 62, 0.95);
}

.clock-pill.is-pool-active {
  border-color: #F0B429;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.18), rgba(12, 21, 38, 0.95));
  box-shadow: 0 0 0 1px rgba(240, 180, 41, 0.22);
}

.clock-city {
  font-weight: 700;
  color: #F8FAFC;
  letter-spacing: 0.01em;
}

.clock-time {
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  color: #2DD4BF;
  font-size: 11.5px;
}

.clock-badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.clock-badge.is-open {
  color: #34D399;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.42);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

.clock-badge.is-closed {
  color: #F87171;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.36);
}

.status-bar-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  white-space: nowrap;
}

.edition-pill {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 700;
  color: #D4AF37;
  letter-spacing: 0.08em;
}

.desk-top-link {
  color: #2DD4BF;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid rgba(20, 184, 166, 0.32);
  background: rgba(20, 184, 166, 0.08);
  transition: background 0.18s ease, border-color 0.18s ease;
}
.desk-top-link:hover {
  background: rgba(20, 184, 166, 0.18);
  border-color: #2DD4BF;
}

/* ============================================================================
   2. MAIN 72px HEADER — 0px BRAND STRIP + 6-PILLAR MEGA-MENU + CONTROLS
   ============================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  height: 72px;
  background: #060A12;
  border-bottom: 1px solid rgba(212, 175, 55, 0.28);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(12px, 1.6vw, 24px) 0 0;
  gap: 10px;
}

.header-left-cluster {
  display: flex;
  align-items: center;
  height: 72px;
  min-width: 0;
  gap: 6px;
}

.brand-strip-link {
  display: flex;
  align-items: center;
  height: 72px;
  margin-left: 0;
  padding-left: 0;
  flex-shrink: 0;
}

.brand-strip-img {
  height: 72px;
  width: auto;
  max-width: clamp(230px, 18.5vw, 320px);
  object-fit: cover;
  object-position: left center;
  display: block;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 86%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 86%, transparent 100%);
}

.mega-nav {
  display: flex;
  align-items: center;
  gap: 1px;
  height: 72px;
}

.mega-item {
  position: relative;
  height: 72px;
  display: flex;
  align-items: center;
}

.mega-trigger {
  color: #E2E8F0;
  font-size: clamp(11.5px, 0.85vw, 13px);
  font-weight: 600;
  padding: 7px clamp(6px, 0.52vw, 10px);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.mega-trigger:hover,
.mega-item.is-open .mega-trigger,
.mega-trigger.is-active {
  color: #F0B429;
  background: rgba(212, 175, 55, 0.11);
  border-color: rgba(212, 175, 55, 0.34);
}

.mega-caret {
  font-size: 10px;
  opacity: 0.78;
}

.mega-dropdown {
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  width: 380px;
  background: #0B1425;
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.68);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  z-index: 960;
}

.mega-item:hover .mega-dropdown,
.mega-item:focus-within .mega-dropdown,
.mega-item.is-open .mega-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-dropdown-header {
  font-size: 12px;
  color: #94A3B8;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
  line-height: 1.45;
}

.mega-dropdown-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mega-sub-link {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(17, 30, 54, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.12);
  transition: border-color 0.16s ease, background 0.16s ease;
}

.mega-sub-link:hover {
  background: rgba(212, 175, 55, 0.11);
  border-color: rgba(240, 180, 41, 0.5);
}

.mega-sub-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
}

.mega-sub-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #F8FAFC;
}

.mega-sub-badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  color: #2DD4BF;
  background: rgba(20, 184, 166, 0.14);
  padding: 2px 6px;
  border-radius: 5px;
}

.mega-sub-desc {
  font-size: 12px;
  color: #94A3B8;
  line-height: 1.4;
}

.header-right-cluster {
  position: relative;
  z-index: 920;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search-input {
  width: clamp(142px, 11vw, 195px);
  height: 38px;
  background: #0C1628;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 9px;
  padding: 0 28px 0 12px;
  color: #F8FAFC;
  font-size: 12.5px;
  outline: none;
  transition: border-color 0.18s ease, width 0.2s ease;
}
.header-search-input::placeholder { color: #94A3B8; }
.header-search-input:focus {
  border-color: #F0B429;
  width: clamp(170px, 13vw, 230px);
}

.search-kbd {
  position: absolute;
  right: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: #D4AF37;
  background: rgba(212, 175, 55, 0.12);
  padding: 1px 5px;
  border-radius: 4px;
  pointer-events: none;
}

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  max-height: 410px;
  overflow-y: auto;
  background: #0B1425;
  border: 1px solid rgba(212, 175, 55, 0.48);
  border-radius: 12px;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.72);
  padding: 8px;
  display: none;
  z-index: 980;
}
.search-results-dropdown.is-open { display: block; }

.search-hit-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 8px;
  color: #F8FAFC;
  font-size: 13px;
}
.search-hit-item:hover {
  background: rgba(212, 175, 55, 0.14);
}
.search-hit-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: #2DD4BF;
  background: rgba(20, 184, 166, 0.14);
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.btn-theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid rgba(212, 175, 55, 0.34);
  background: #0C1628;
  color: #F0B429;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}
.btn-theme-toggle:hover {
  border-color: #F0B429;
  background: rgba(212, 175, 55, 0.16);
}

.btn-header-updates {
  height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid #F0B429;
  background: linear-gradient(135deg, #F2C94C 0%, #D4AF37 55%, #B88B1E 100%);
  color: #060B16;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.24);
  transition: filter 0.16s ease, transform 0.16s ease;
}
.btn-header-updates:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: #0C1628;
  color: #F0B429;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-nav-drawer {
  display: none;
  background: #08101E;
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  padding: 18px 20px;
}
.mobile-nav-drawer.is-open { display: block; }
.mobile-pillar-group { margin-bottom: 14px; }
.mobile-pillar-title {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #F0B429;
  margin-bottom: 6px;
}
.mobile-pillar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mobile-pillar-links a {
  font-size: 13px;
  color: #E2E8F0;
  background: #0E192D;
  border: 1px solid rgba(212, 175, 55, 0.22);
  padding: 6px 11px;
  border-radius: 8px;
}

/* ============================================================================
   3. 10-SECOND ROTATING GLOBAL MARKETS & 24/7 CRYPTO RIBBON + GOLD PROGRESS
   ============================================================================ */
.market-rotator-bar {
  position: relative;
  background: #081120;
  border-bottom: 1px solid rgba(212, 175, 55, 0.26);
  padding: 8px clamp(12px, 1.8vw, 24px) 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.rotator-left-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  font-weight: 800;
  color: #F0B429;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.36);
  padding: 4px 10px;
  border-radius: 7px;
  white-space: nowrap;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #14B8A6;
  box-shadow: 0 0 8px #14B8A6;
}

.rotator-quotes-viewport {
  flex: 1;
  min-width: 260px;
  overflow-x: auto;
  scrollbar-width: none;
}
.rotator-quotes-viewport::-webkit-scrollbar { display: none; }

.rotator-quotes-stage {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.18s ease;
}

.quote-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 7px;
  background: rgba(15, 27, 48, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.14);
  white-space: nowrap;
  font-size: 12px;
}

.quote-sym {
  font-weight: 700;
  color: #E2E8F0;
}

.quote-val {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  color: #F8FAFC;
}

.quote-chg {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
}
.quote-chg.up {
  color: #2DD4BF;
  background: rgba(20, 184, 166, 0.14);
}
.quote-chg.down {
  color: #F87171;
  background: rgba(239, 68, 68, 0.14);
}

.rotator-pin-bar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #050B14;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.24);
}

.pin-pool-btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: #94A3B8;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pin-pool-btn:hover { color: #F8FAFC; }
.pin-pool-btn.is-active {
  background: linear-gradient(135deg, rgba(240, 180, 41, 0.22), rgba(212, 175, 55, 0.12));
  color: #F0B429;
  border-color: rgba(240, 180, 41, 0.55);
}

.rotator-progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(212, 175, 55, 0.1);
  overflow: hidden;
}

.rotator-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #14B8A6 0%, #D4AF37 60%, #F0B429 100%);
  transition: width 0.12s linear;
}

/* ============================================================================
   4. BRAND BUTTONS & TYPOGRAPHY TOKENS (GOLD + TURQUOISE — ZERO GENERIC BLUE)
   ============================================================================ */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 8px;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.section-title {
  margin: 0 0 6px;
  font-size: clamp(24px, 2.5vw, 33px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-subtitle {
  margin: 0;
  max-width: 760px;
  font-size: 15px;
  color: var(--text-secondary);
}

.btn-gold-primary,
.btn-primary-blue,
.btn-yt-app-deeplink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid #F0B429;
  background: linear-gradient(135deg, #F4CC54 0%, #D4AF37 54%, #B5891C 100%);
  color: #060B16;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}
.btn-gold-primary:hover,
.btn-primary-blue:hover,
.btn-yt-app-deeplink:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.btn-soft-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid var(--border-gold);
  background: var(--bg-card-elevated);
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}
.btn-soft-outline:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.btn-turq-outline,
.btn-mini-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border-turq);
  background: var(--turq-soft);
  color: var(--turq-primary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}
html[data-theme="dark"] .btn-turq-outline,
html[data-theme="dark"] .btn-mini-action {
  color: #2DD4BF;
}
.btn-turq-outline:hover,
.btn-mini-action:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.badge-pill-gold,
.badge-pill-blue {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--gold-bright);
  background: var(--gold-soft);
  border: 1px solid var(--border-gold);
}

.badge-pill-turq {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  color: #2DD4BF;
  background: var(--turq-soft);
  border: 1px solid var(--border-turq);
}
html[data-theme="light"] .badge-pill-turq { color: #0B6B63; }

/* ============================================================================
   5. HERO BROADCAST SHOWCASE — MILLIMETER-LOCKED 16:9 + 2x EQUAL SHORTS
   ============================================================================ */
.hero-broadcast-shell {
  padding: 20px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-card);
}

.hero-top-media-row {
  display: grid;
  grid-template-columns: minmax(0, 66fr) minmax(0, 34fr);
  gap: 18px;
  align-items: stretch;
}

.hero-16x9-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-gold-strong);
  background: #050914;
}

.hero-standby-canvas {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(16px, 2.4vw, 30px);
  background:
    linear-gradient(135deg, rgba(6, 11, 22, 0.90) 0%, rgba(10, 20, 38, 0.84) 55%, rgba(6, 11, 22, 0.94) 100%),
    url("/assets/img/macro-circuit-master.webp") center/cover no-repeat;
  color: #F8FAFC;
}

.hero-standby-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-standby-center {
  max-width: 680px;
  margin: auto 0;
}

.hero-standby-kicker {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #2DD4BF;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-standby-title {
  margin: 0 0 10px;
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 800;
  line-height: 1.2;
  color: #FFFFFF;
}

.hero-standby-sub {
  margin: 0;
  font-size: clamp(13px, 1.15vw, 15px);
  color: #CBD5E1;
  line-height: 1.55;
}

.hero-standby-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  font-size: 12px;
  color: #CBD5E1;
}

/* Right Column: Strict 0.00px Top & Bottom Alignment with Left 16:9 Player */
.hero-shorts-column {
  position: relative;
  width: 100%;
  min-height: 0;
}

@media (min-width: 1024px) {
  .hero-shorts-track {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 1023px) {
  .hero-top-media-row {
    grid-template-columns: 1fr;
  }
  .hero-shorts-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
  }
  .hero-short-slot {
    min-height: 190px;
  }
}

.hero-short-slot {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--border-gold);
  background: var(--bg-card-elevated);
  padding: 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.hero-short-916-box {
  height: 100%;
  max-height: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.38);
  background: linear-gradient(165deg, #071224 0%, #0D203B 55%, #07101E 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 8px;
  text-align: center;
}

.hero-short-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.hero-short-slot-title {
  margin: 0;
  font-size: clamp(13.5px, 1.08vw, 15.5px);
  font-weight: 800;
  line-height: 1.28;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-short-slot-desc {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.42;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Row Immediately Underneath the Top Media Row */
.hero-deck-bar {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-deck-copy {
  flex: 1;
  min-width: 280px;
}

.hero-deck-headline {
  margin: 0 0 6px;
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.015em;
}

.hero-deck-summary {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.hero-deck-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ============================================================================
   6. GEMINI 4 CARBON MODULE: U.S. MACRO VITAL SIGNS & FED / CPI COUNTDOWN
   ============================================================================ */
.vital-signs-panel {
  padding: 20px 22px;
}

.vital-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.countdown-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.countdown-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 9px;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-gold);
  font-size: 12px;
}

.countdown-chip-label {
  font-weight: 700;
  color: var(--text-secondary);
}

.countdown-chip-timer {
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
  color: var(--gold-bright);
}

.vital-grid-6 {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.vital-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 13px 14px;
  border-radius: 12px;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.vital-tile:hover {
  border-color: var(--gold-bright);
  transform: translateY(-2px);
}

.vital-tile-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.vital-tile-mid {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 6px 0 4px;
}

.vital-tile-val {
  font-family: "JetBrains Mono", monospace;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}
.vital-tile-val.is-gold { color: var(--gold-bright); }
.vital-tile-val.is-turq { color: var(--turq-primary); }
html[data-theme="dark"] .vital-tile-val.is-turq { color: #2DD4BF; }

.vital-tile-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Rate Regime Shock Bar (Interactive Gemini 4 Carbon Feature) */
.regime-shock-bar {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.regime-btn-group {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.regime-btn {
  appearance: none;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.regime-btn.is-active {
  border-color: var(--gold-bright);
  background: var(--gold-soft);
  color: var(--gold-bright);
}

.regime-readout {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-secondary);
}
.regime-readout strong {
  font-family: "JetBrains Mono", monospace;
  color: var(--turq-primary);
}
html[data-theme="dark"] .regime-readout strong { color: #2DD4BF; }

/* ============================================================================
   7. VECTOR CALCULATOR CARDS (ZERO EMOJIS + LIVE SAMPLE PREVIEWS)
   ============================================================================ */
.persona-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.persona-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}
.persona-card:hover {
  border-color: var(--border-gold-strong);
  background: var(--bg-card-hover);
}

.persona-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.persona-badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gold-primary);
  background: var(--gold-soft);
  border: 1px solid var(--border-gold);
  padding: 4px 9px;
  border-radius: 6px;
}

.persona-svg-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.persona-title {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.persona-body {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.persona-sample-box {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-turq);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.persona-sample-in {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.persona-sample-out {
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--turq-primary);
}
html[data-theme="dark"] .persona-sample-out { color: #2DD4BF; }

.persona-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.persona-primary-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, #F4CC54 0%, #D4AF37 54%, #B5891C 100%);
  color: #060B16;
  font-size: 13px;
  font-weight: 800;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.persona-primary-link:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.persona-secondary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.persona-sec-chip {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card-elevated);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.persona-sec-chip:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

/* ============================================================================
   8. INTERACTIVE CALCULATOR WORKSTATIONS & TURQUOISE SLIDERS
   ============================================================================ */
.calc-hero-header {
  padding: 26px 0 10px;
}

.breadcrumb-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.breadcrumb-row a:hover { color: var(--gold-bright); }

.calc-h1 {
  margin: 0 0 10px;
  font-size: clamp(25px, 2.7vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.calc-lead {
  margin: 0;
  max-width: 840px;
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.calc-workstation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: 22px;
  align-items: start;
}
.calc-workstation-grid.is-full-map {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

.calc-inputs-card,
.calc-results-card {
  padding: 24px;
}

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

.calc-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.calc-field.span-2 {
  grid-column: 1 / -1;
}

.calc-label-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.calc-readout {
  font-family: "JetBrains Mono", monospace;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--gold-bright);
}

.calc-dual-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.v4-select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid var(--border-gold);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 600;
  outline: none;
}
.v4-select:focus {
  border-color: var(--turq-primary);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.22);
  accent-color: #14B8A6;
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #14B8A6;
  border: 2.5px solid #F0B429;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #14B8A6;
  border: 2.5px solid #F0B429;
  cursor: pointer;
}

.calc-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.calc-kpi-tile {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
}

.calc-kpi-tile.is-primary {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.14), rgba(20, 184, 166, 0.09));
  border-color: var(--border-gold-strong);
}

.calc-kpi-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.calc-kpi-val {
  font-family: "JetBrains Mono", monospace;
  font-size: 23px;
  font-weight: 800;
  color: var(--text-primary);
}
.calc-kpi-tile.is-primary .calc-kpi-val {
  font-size: clamp(26px, 2.5vw, 32px);
  color: var(--gold-bright);
}

.calc-kpi-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 3px;
}

.calc-svg-stage {
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
}

.calc-charts-split {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.calc-insight-banner {
  margin-top: 14px;
  padding: 13px 16px;
  border-radius: 11px;
  background: var(--turq-soft);
  border-left: 3px solid var(--turq-primary);
  font-size: 13.5px;
  color: var(--text-primary);
  line-height: 1.55;
}

.cpa-partner-card {
  margin-top: 16px;
  padding: 18px;
  border-radius: 13px;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-gold);
}
.cpa-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.cpa-badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--gold-bright);
}
.cpa-disclosure {
  font-size: 10.5px;
  color: var(--text-muted);
}
.cpa-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
}
.cpa-body {
  margin: 0 0 10px;
  font-size: 13.5px;
  color: var(--text-secondary);
}
.cpa-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.cpa-chip {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--bg-input);
  border: 1px solid var(--border-turq);
  color: var(--turq-primary);
}
html[data-theme="dark"] .cpa-chip { color: #2DD4BF; }

.guide-faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 22px;
  margin-top: 24px;
}

.guide-card,
.faq-card,
.article-prose-card {
  padding: 28px;
}
.guide-card h2,
.faq-card h2,
.article-prose-card h2 {
  font-size: 20px;
  margin: 20px 0 10px;
  color: var(--text-primary);
}
.article-prose-card p,
.article-prose-card li {
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.7;
}
.article-prose-card a {
  color: var(--gold-bright);
  text-decoration: underline;
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
}
.faq-item summary {
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  color: var(--text-primary);
}
.faq-item p {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* US Map Styles */
.us-map-svg-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}
.us-state-path {
  stroke: #060B16;
  stroke-width: 1;
  cursor: pointer;
  transition: opacity 0.15s ease, stroke 0.15s ease;
}
.us-state-path:hover,
.us-state-path.is-selected {
  stroke: #F0B429;
  stroke-width: 2.2;
}

/* ============================================================================
   9. CONTENT HUB, MARKETS DESK TABLES & VERIFIED PIPELINE CARDS
   ============================================================================ */
.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

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

.v4-table-card {
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  background: var(--bg-input);
}

.v4-table-scroll {
  overflow-x: auto;
}

.v4-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.v4-table th {
  text-align: left;
  padding: 11px 14px;
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-bright);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-gold);
}
.v4-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.v4-table tr:last-child td { border-bottom: none; }

.hub-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.hub-tabs-pillbox {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 5px;
  border-radius: 11px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
}
.hub-tab-btn {
  appearance: none;
  padding: 8px 15px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.hub-tab-btn.is-active {
  background: var(--gold-soft);
  color: var(--gold-bright);
  border-color: var(--border-gold-strong);
}
.hub-panel { display: none; }
.hub-panel.is-active { display: block; }

.monetization-slot {
  min-height: 96px;
  padding: 18px 22px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
}

.sponsor-disclosure-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--gold-primary);
}

/* ============================================================================
   10. OBSIDIAN-GOLD INTEGRATED NEWSLETTER BAND & MODALS
   ============================================================================ */
.newsletter-v4-band {
  margin: 18px 0 38px;
  padding: 28px 32px;
  border-radius: 18px;
  background: linear-gradient(135deg, #091326 0%, #0E1D38 55%, #081120 100%);
  border: 1px solid rgba(240, 180, 41, 0.45);
  box-shadow: 0 18px 42px rgba(2, 6, 16, 0.52);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  color: #F8FAFC;
}

.newsletter-v4-band h2 {
  margin: 4px 0 8px;
  font-size: clamp(21px, 2vw, 27px);
  font-weight: 800;
  color: #FFFFFF;
}

.newsletter-v4-band p {
  margin: 0;
  font-size: 14.5px;
  color: #CBD5E1;
}

.newsletter-form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.newsletter-email-input {
  flex: 1;
  min-width: 210px;
  height: 46px;
  padding: 0 15px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.38);
  background: #050B16;
  color: #FFFFFF;
  font-size: 14px;
  outline: none;
}
.newsletter-email-input:focus {
  border-color: #F0B429;
}

.newsletter-submit-btn {
  height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1px solid #F0B429;
  background: linear-gradient(135deg, #F4CC54 0%, #D4AF37 54%, #B5891C 100%);
  color: #060B16;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.28);
  transition: filter 0.16s ease, transform 0.16s ease;
}
.newsletter-submit-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.subscribe-feedback {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  min-height: 18px;
}

/* Modals */
.v4-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(3, 7, 15, 0.82);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.v4-modal-backdrop.is-open { display: flex; }

.v4-modal-card {
  width: 100%;
  max-width: 500px;
  border-radius: 16px;
  background: #0B1426;
  border: 1px solid rgba(240, 180, 41, 0.5);
  color: #F8FAFC;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.75);
  overflow: hidden;
}

.v4-modal-header {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ============================================================================
   11. INSTITUTIONAL 4-COLUMN FOOTER WITH REAL EMBLEM & SOCIAL VECTORS
   ============================================================================ */
.site-footer-v4 {
  background: #040811;
  border-top: 1px solid rgba(212, 175, 55, 0.32);
  padding: 46px 0 30px;
  color: #CBD5E1;
}

.footer-grid-v4 {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.16);
}

.footer-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-emblem-img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  object-fit: cover;
}

.footer-brand-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #FFFFFF;
}

.footer-brand-sub {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  color: #D4AF37;
  letter-spacing: 0.08em;
}

.footer-social-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.footer-social-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 8px;
  background: #0C1526;
  border: 1px solid rgba(212, 175, 55, 0.28);
  color: #F8FAFC;
  font-size: 12.5px;
  font-weight: 700;
  transition: border-color 0.16s ease, color 0.16s ease;
}
.footer-social-pill:hover {
  border-color: #F0B429;
  color: #F0B429;
}

.footer-col-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #F0B429;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links a {
  font-size: 13.5px;
  color: #CBD5E1;
  transition: color 0.15s ease;
}
.footer-links a:hover {
  color: #2DD4BF;
}

.footer-bottom-row {
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #94A3B8;
}

/* ============================================================================
   12. RESPONSIVE BREAKPOINTS
   ============================================================================ */
@media (max-width: 1280px) {
  .vital-grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .persona-grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
  .mega-nav { display: none; }
  .mobile-menu-btn { display: inline-flex; }
}

@media (max-width: 920px) {
  .calc-workstation-grid,
  .calc-workstation-grid.is-full-map,
  .guide-faq-grid,
  .newsletter-v4-band,
  .cards-grid-2,
  .cards-grid-3 {
    grid-template-columns: 1fr;
  }
  .footer-grid-v4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .vital-grid-6,
  .persona-grid-6,
  .calc-form-grid,
  .calc-dual-row,
  .calc-charts-split,
  .footer-grid-v4 {
    grid-template-columns: 1fr;
  }
  .header-search-wrap { display: none; }
}

/* ============================================================================
   13. MACRO CIRCUIT V5.0 INSTITUTIONAL UPGRADE STYLES
       (My State Pill, Natural Social Bridges, 30s CPI Test, 2-Col Official Wire
        & Calendar, 50-State Map Desk, Poll, Currency Bar, PDF/Share & Glossary)
   ============================================================================ */

/* Top Utility Bar: Global `My State` Selector */
.my-state-pill-wrap {
  display: inline-flex;
  align-items: center;
}

.my-state-top-select {
  appearance: auto;
  height: 28px;
  padding: 0 8px;
  border-radius: 7px;
  border: 1px solid rgba(20, 184, 166, 0.45);
  background: rgba(13, 25, 46, 0.92);
  color: #2DD4BF;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  max-width: 195px;
}
.my-state-top-select:hover,
.my-state-top-select:focus {
  border-color: #F0B429;
  color: #F0B429;
}
html[data-theme="light"] .my-state-top-select {
  background: #FFFFFF;
  color: #0B6B63;
  border-color: rgba(13, 148, 136, 0.45);
}

/* Header Right Cluster: Natural Social Vector Bridges (Left of Weekly Updates) */
.header-social-bridges {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.header-social-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-gold);
  background: var(--bg-card-elevated);
  color: var(--gold-bright);
  transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.header-social-icon.is-turq {
  color: #2DD4BF;
  border-color: var(--border-turq);
}
html[data-theme="light"] .header-social-icon.is-turq {
  color: #0B6B63;
}
.header-social-icon:hover {
  transform: translateY(-1px);
  border-color: #F0B429;
  color: #F0B429;
}

/* Homepage Hero: Sleek Non-Coercive Institutional Social Follow Strip */
.hero-social-follow-strip {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 11px;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.follow-strip-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.follow-strip-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.follow-strip-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  padding: 4px 10px;
  border-radius: 7px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-input);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.follow-strip-pill:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}
.follow-strip-dot {
  color: var(--text-muted);
  font-weight: 800;
}

/* 30-Second "Did Your Paycheck Beat Real Inflation?" Gold-Framed Single-Row Bar */
.paycheck-quicktest-bar {
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-gold-strong);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.10), rgba(20, 184, 166, 0.07));
  display: grid;
  grid-template-columns: auto auto minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.paycheck-qt-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.paycheck-qt-title strong {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
}

.paycheck-qt-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.paycheck-qt-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}
.paycheck-qt-field input {
  width: 132px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--border-gold);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  outline: none;
}
.paycheck-qt-field input:focus {
  border-color: var(--turq-primary);
}

.paycheck-qt-verdict {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12.5px;
}
.qt-verdict-gain {
  color: #10B981;
  font-weight: 700;
}
.qt-verdict-loss {
  color: #F87171;
  font-weight: 700;
}
html[data-theme="light"] .qt-verdict-loss { color: #DC2626; }
html[data-theme="light"] .qt-verdict-gain { color: #047857; }
.qt-verdict-sub {
  font-size: 11.5px;
  color: var(--text-secondary);
}
.paycheck-qt-cta {
  white-space: nowrap;
}

/* 2-Column Institutional Data Desk (Live U.S. Official Wire + Release Calendar) */
.institutional-desk-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 20px;
  align-items: stretch;
}

.wire-desk-col,
.calendar-desk-col {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
}

.desk-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.desk-col-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: var(--text-primary);
}

.wire-sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 700;
  color: #2DD4BF;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--border-turq);
  background: var(--turq-soft);
}
html[data-theme="light"] .wire-sync-pill { color: #0B6B63; }

.wire-feed-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 610px;
  overflow-y: auto;
  padding-right: 4px;
}

.wire-feed-item {
  padding: 12px 14px;
  border-radius: 11px;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.15s ease;
}
.wire-feed-item:hover {
  border-color: var(--border-gold);
}

.wire-item-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}

.wire-agency-badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid var(--border-gold);
  background: var(--gold-soft);
  color: var(--gold-bright);
}
.wire-agency-badge.is-bls,
.wire-agency-badge.is-bea {
  border-color: var(--border-turq);
  background: var(--turq-soft);
  color: #2DD4BF;
}
html[data-theme="light"] .wire-agency-badge.is-bls,
html[data-theme="light"] .wire-agency-badge.is-bea {
  color: #0B6B63;
}
.wire-agency-badge.is-sec {
  border-color: rgba(96, 165, 250, 0.4);
  background: rgba(59, 130, 246, 0.12);
  color: #60A5FA;
}
html[data-theme="light"] .wire-agency-badge.is-sec { color: #1D4ED8; }

.wire-item-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
}

.wire-item-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
}
.wire-item-title a:hover {
  color: var(--gold-bright);
}

.wire-item-summary {
  margin: 0 0 8px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.48;
}

.wire-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.wire-calc-cta {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-bright);
}
.wire-calc-cta:hover {
  text-decoration: underline;
}

.wire-gov-link {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
}
.wire-gov-link:hover {
  color: var(--turq-primary);
}

/* Right Column: Economic Release Calendar */
.econ-calendar-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.econ-cal-item {
  padding: 12px 14px;
  border-radius: 11px;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
}

.econ-cal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}

.econ-cal-when {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.econ-cal-datetime {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.econ-cal-right-chips {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.econ-cal-countdown {
  font-size: 11px;
  font-weight: 700;
  color: #2DD4BF;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--turq-soft);
}
html[data-theme="light"] .econ-cal-countdown { color: #0B6B63; }

.btn-ics-chip {
  appearance: none;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-gold);
  background: var(--bg-input);
  color: var(--gold-bright);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-ics-chip:hover {
  background: var(--gold-soft);
  border-color: #F0B429;
}

.econ-cal-title {
  margin: 0 0 4px;
  font-size: 13.8px;
  font-weight: 800;
  color: var(--text-primary);
}

.econ-cal-metrics {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.econ-cal-metrics strong {
  color: var(--text-primary);
}

.econ-cal-wallet {
  margin: 0;
  font-size: 12.2px;
  color: var(--text-secondary);
  line-height: 1.45;
}
.econ-cal-tool-link {
  margin-left: 6px;
  font-weight: 700;
  color: var(--gold-bright);
  white-space: nowrap;
}

/* Homepage Compact Interactive 50-State Map & Memory Desk */
.home-state-memory-card {
  padding: 20px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.home-state-svg-wrap {
  padding: 10px;
  border-radius: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
}

.home-us-state-svg {
  width: 100%;
  max-height: 310px;
  height: auto;
  display: block;
}

.home-state-path {
  fill: rgba(20, 184, 166, 0.28);
  stroke: #060B16;
  stroke-width: 1.1;
  cursor: pointer;
  transition: fill 0.14s ease, stroke 0.14s ease;
}
html[data-theme="light"] .home-state-path {
  fill: rgba(13, 148, 136, 0.25);
  stroke: #FFFFFF;
}
.home-state-path:hover {
  fill: rgba(240, 180, 41, 0.65);
}
.home-state-path.is-selected {
  fill: #F0B429;
  stroke: #FFFFFF;
  stroke-width: 2;
}

.home-state-detail-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.home-state-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.home-state-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 2-Column Audience Desk: Live Documentary Poll + Real D1 Weekly Updates */
.audience-desk-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 20px;
  align-items: stretch;
}

.doc-poll-card,
.weekly-d1-card {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.poll-options-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.poll-option-btn {
  appearance: none;
  text-align: left;
  padding: 12px 13px;
  border-radius: 11px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card-elevated);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.poll-option-btn:hover {
  border-color: var(--gold-bright);
  transform: translateY(-1px);
}
.poll-option-btn.is-voted {
  border-color: #F0B429;
  background: var(--gold-soft);
}

.poll-opt-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.poll-opt-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 9.8px;
  font-weight: 700;
  color: var(--turq-primary);
}
html[data-theme="dark"] .poll-opt-tag { color: #2DD4BF; }

.poll-opt-pct {
  font-size: 12px;
  font-weight: 800;
  color: var(--gold-bright);
}

.poll-opt-label {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary);
}

.poll-opt-sub {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.38;
}

.poll-bar-track {
  margin-top: 5px;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
}

.poll-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #14B8A6 0%, #F0B429 100%);
  transition: width 0.35s ease;
}

.poll-vote-feedback {
  margin-top: 8px;
  min-height: 18px;
  font-size: 12.5px;
  font-weight: 700;
  color: #2DD4BF;
}
html[data-theme="light"] .poll-vote-feedback { color: #0B6B63; }

.weekly-d1-guarantees {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12.5px;
  color: var(--text-secondary);
}

.weekly-guarantee-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Calculator Top Anglosphere Currency Switcher & Statutory Lock Bar */
.calc-currency-bar {
  margin-bottom: 16px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.calc-currency-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.calc-currency-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-secondary);
}

.calc-currency-pillgroup {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.currency-pill-btn {
  appearance: none;
  padding: 5px 11px;
  border-radius: 7px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.14s ease;
}
.currency-pill-btn:hover {
  border-color: var(--gold-bright);
  color: var(--text-primary);
}
.currency-pill-btn.is-active {
  border-color: #F0B429;
  background: var(--gold-soft);
  color: var(--gold-bright);
}

.currency-lock-badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 7px;
  border: 1px solid var(--border-gold-strong);
  background: var(--gold-soft);
  color: var(--gold-bright);
}

.calc-currency-note {
  font-size: 12px;
  color: var(--text-secondary);
}

.calc-currency-right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.calc-live-rule-pill {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 700;
  color: #2DD4BF;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--turq-soft);
  border: 1px solid var(--border-turq);
}
html[data-theme="light"] .calc-live-rule-pill { color: #0B6B63; }

.calc-glossary-jump {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-bright);
}
.calc-glossary-jump:hover {
  text-decoration: underline;
}

/* Calculator Viral Scenario Copy & Branded 1-Page PDF Export Bar */
.calc-export-bar {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-scenario-copy,
.btn-pdf-summary {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-scenario-copy {
  border: 1px solid var(--border-turq);
  background: var(--turq-soft);
  color: #2DD4BF;
}
html[data-theme="light"] .btn-scenario-copy { color: #0B6B63; }
.btn-scenario-copy:hover {
  border-color: #F0B429;
  color: #F0B429;
}

.btn-pdf-summary {
  border: 1px solid var(--border-gold-strong);
  background: var(--gold-soft);
  color: var(--gold-bright);
}
.btn-pdf-summary:hover {
  background: linear-gradient(135deg, #F4CC54 0%, #D4AF37 60%, #B5891C 100%);
  color: #060B16;
}

.scenario-copy-status {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  font-weight: 700;
  color: #10B981;
}

/* Contextual YouTube Documentary Bridge Card Below Calculators */
.calc-doc-bridge-card {
  margin-top: 20px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-color: var(--border-gold);
}

.calc-doc-bridge-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 760px;
}

.calc-doc-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.calc-doc-bridge-title {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
}

.calc-doc-bridge-desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.calc-doc-bridge-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.calc-doc-secondary-socials {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.calc-doc-secondary-socials a:hover {
  color: var(--gold-bright);
}

/* Gold-Dotted Inline Glossary Term Tooltips */
.mc-term-tip {
  position: relative;
  border-bottom: 1.5px dotted #D4AF37;
  cursor: help;
  color: inherit;
}
.mc-term-tip:hover,
.mc-term-tip:focus {
  color: var(--gold-bright);
  outline: none;
}
.mc-term-tip::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  width: max-content;
  max-width: 280px;
  padding: 8px 11px;
  border-radius: 8px;
  background: #07101F;
  border: 1px solid #D4AF37;
  color: #F8FAFC;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.42;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.14s ease;
  z-index: 900;
  white-space: normal;
  text-align: left;
}
.mc-term-tip:hover::after,
.mc-term-tip:focus::after {
  opacity: 1;
  visibility: visible;
}

/* /wire/ Full Archive Filter & Grid */
.wire-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wire-filter-btn {
  appearance: none;
  padding: 7px 13px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}
.wire-filter-btn.is-active,
.wire-filter-btn:hover {
  border-color: #F0B429;
  background: var(--gold-soft);
  color: var(--gold-bright);
}

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

/* /glossary/ Plain-English A–Z Financial Glossary */
.glossary-controls-card {
  padding: 20px 22px;
  margin-bottom: 20px;
}

.glossary-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.glossary-search-input {
  flex: 1;
  min-width: 240px;
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--border-gold);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
}
.glossary-search-input:focus {
  border-color: var(--turq-primary);
}

.glossary-az-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.az-letter-btn {
  appearance: none;
  min-width: 34px;
  height: 32px;
  padding: 0 9px;
  border-radius: 7px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card-elevated);
  color: var(--text-secondary);
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}
.az-letter-btn.is-active,
.az-letter-btn:hover {
  border-color: #F0B429;
  background: var(--gold-soft);
  color: var(--gold-bright);
}

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

.glossary-term-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.glossary-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.glossary-term-title {
  margin: 0;
  font-size: 17.5px;
  font-weight: 800;
  color: var(--text-primary);
}

.glossary-term-body {
  margin: 0;
  font-size: 13.8px;
  color: var(--text-secondary);
  line-height: 1.56;
}

.glossary-wallet-box {
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--turq-soft);
  border-left: 3px solid var(--turq-primary);
  font-size: 12.5px;
  color: var(--text-primary);
  line-height: 1.46;
}

@media (max-width: 1100px) {
  .paycheck-quicktest-bar {
    grid-template-columns: 1fr;
  }
  .institutional-desk-grid,
  .home-state-memory-card,
  .audience-desk-grid {
    grid-template-columns: 1fr;
  }
  .glossary-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .poll-options-list,
  .wire-archive-grid,
  .glossary-cards-grid {
    grid-template-columns: 1fr;
  }
  .calc-doc-bridge-actions {
    align-items: flex-start;
  }
}

/* ============================================================================
   14. MACRO CIRCUIT V6.0 AUDIT REMEDIATION & WCAG 2.2 AA ACCESSIBILITY SYSTEM
   ============================================================================ */

/* Global Focus-Visible Ring (WCAG 2.2 AA 2.4.7 / 2.4.11) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid #F0B429 !important;
  outline-offset: 2px;
}
html[data-theme="light"] a:focus-visible,
html[data-theme="light"] button:focus-visible,
html[data-theme="light"] input:focus-visible,
html[data-theme="light"] select:focus-visible,
html[data-theme="light"] summary:focus-visible,
html[data-theme="light"] [role="button"]:focus-visible {
  outline: 2px solid #785500 !important;
  outline-offset: 2px;
}

/* Top Bar Gold Accent Link (Always Dark Bar #040811) */
.desk-top-link-gold {
  color: #F0B429;
  border-color: rgba(240, 180, 41, 0.38);
  background: rgba(212, 175, 55, 0.09);
}
.desk-top-link-gold:hover {
  background: rgba(212, 175, 55, 0.20);
  border-color: #F0B429;
}

/* Top Utility Bar My State Select stays readable on dark #040811 bar even in Light Mode */
html[data-theme="light"] .global-status-bar .my-state-top-select {
  background: rgba(13, 25, 46, 0.95);
  color: #2DD4BF;
  border-color: rgba(20, 184, 166, 0.48);
}

/* Consolidated 4-Group Accessible Header Mega-Menu (MC-01 & MC-14) */
button.mega-trigger {
  appearance: none;
  background: transparent;
  cursor: pointer;
  min-height: 40px;
  font-size: 13px;
  padding: 7px 11px;
  gap: 5px;
}

.mega-nav {
  gap: 4px;
}

/* Prevent hover-only jitter; support hover on fine pointers + explicit .is-open for keyboard/touch */
.mega-item .mega-dropdown {
  max-height: calc(100vh - 96px);
  overflow-y: auto;
}

.mega-dropdown-wide {
  width: min(820px, calc(100vw - 40px));
  left: 0;
  padding: 18px;
}

.mega-dropdown-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.mega-directory-cta {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  font-weight: 700;
  color: #F0B429;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(240, 180, 41, 0.42);
  background: rgba(212, 175, 55, 0.12);
}
.mega-directory-cta:hover {
  background: rgba(212, 175, 55, 0.22);
}

.mega-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.mega-pillar-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mega-pillar-kicker {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #F0B429;
  padding: 2px 0;
}

/* Keep Header Social Icons & Search Cleanly Fitted Across 320px–1440px+ */
@media (max-width: 1240px) {
  .header-social-bridges {
    display: none;
  }
  .header-search-input {
    width: 148px;
  }
  .header-search-input:focus {
    width: 168px;
  }
}

@media (max-width: 760px) {
  .header-search-wrap,
  .header-social-bridges {
    display: none;
  }
  .site-header {
    height: 64px;
    padding: 0 10px 0 0;
    gap: 6px;
  }
  .header-left-cluster,
  .brand-strip-link {
    height: 64px;
    min-width: 0;
  }
  .brand-strip-img {
    height: 54px;
    max-width: clamp(128px, 38vw, 195px);
  }
  .header-right-cluster {
    gap: 6px;
  }
  .btn-header-updates {
    padding: 0 10px;
    font-size: 11.5px;
  }
  .market-clocks-track {
    max-width: 100%;
    min-width: 0;
  }
  .status-bar-meta {
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
  }
  .my-state-top-select {
    max-width: 168px;
  }
  .rotator-quotes-viewport {
    min-width: 0;
    width: 100%;
  }
  .rotator-left-badge {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .rotator-pin-bar {
    flex-wrap: wrap;
    max-width: 100%;
  }
  .newsletter-v4-band {
    padding: 20px 16px;
  }
  .newsletter-email-input,
  .glossary-search-input,
  .paycheck-qt-field input {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 400px) {
  .site-header {
    padding: 0 6px 0 0;
    gap: 4px;
  }
  .brand-strip-img {
    height: 44px;
    max-width: clamp(86px, 29vw, 124px);
  }
  .header-right-cluster {
    gap: 4px;
  }
  .btn-header-updates {
    padding: 0 7px;
    font-size: 10.5px;
  }
}

/* Header Buttons & Mobile Targets >= 44px on Touch / Coarse / Mobile */
.mobile-menu-btn,
.btn-theme-toggle {
  min-width: 40px;
  min-height: 40px;
}
@media (max-width: 1080px), (pointer: coarse) {
  .mobile-menu-btn,
  .btn-theme-toggle,
  .btn-header-updates,
  .currency-pill-btn,
  .wire-filter-btn,
  .az-letter-btn,
  .hub-tab-btn,
  .regime-btn,
  .btn-scenario-copy,
  .btn-pdf-summary,
  .btn-ics-chip {
    min-height: 44px;
  }
  .az-letter-btn {
    min-width: 40px;
  }
}

/* Search Combobox Keyboard Highlight (MC-16) */
.search-hit-item.is-focused,
.search-hit-item[aria-selected="true"] {
  background: rgba(212, 175, 55, 0.22);
  outline: 1px solid #F0B429;
}

/* Proviso A + MC-12: Value-First Above-the-Fold Hero When 0 Videos Published */
.hero-value-first-shell {
  padding: clamp(20px, 2.5vw, 30px);
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-card);
}

.hero-value-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 24px;
  align-items: center;
}

.hero-value-h1 {
  margin: 4px 0 10px;
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.hero-value-lead {
  margin: 0 0 18px;
  font-size: clamp(14.5px, 1.2vw, 16.5px);
  color: var(--text-secondary);
  line-height: 1.58;
  max-width: 680px;
}

.hero-value-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-quick-tools-panel {
  padding: 18px;
  border-radius: 14px;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-quick-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hero-quick-tool-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  font-size: 12.8px;
  font-weight: 700;
  color: var(--text-primary);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.hero-quick-tool-link:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}
.hero-quick-tool-link span:last-child {
  color: var(--turq-primary);
  font-family: "JetBrains Mono", monospace;
}
html[data-theme="dark"] .hero-quick-tool-link span:last-child {
  color: #2DD4BF;
}

.hero-honest-broadcast-note {
  margin-top: 14px;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-secondary);
}

@media (max-width: 960px) {
  .hero-value-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .hero-quick-tools-grid {
    grid-template-columns: 1fr;
  }
}

/* Calculator Exact Number + Slider Paired Controls & Inline Validation (MC-02, MC-03) */
.calc-exact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.calc-exact-prefix,
.calc-exact-suffix {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.v4-num-input {
  width: 138px;
  max-width: 100%;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--border-gold);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 700;
}
.v4-num-input:focus {
  border-color: var(--turq-primary);
}
.v4-num-input.is-invalid {
  border-color: var(--crimson);
}

.calc-field-msg {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--crimson);
  line-height: 1.35;
}

.calc-inline-alert {
  padding: 10px 12px;
  border-radius: 9px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.42);
  color: var(--text-primary);
  font-size: 12.5px;
  line-height: 1.45;
}

.calc-currency-honesty-banner {
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--gold-soft);
  border: 1px solid var(--border-gold-strong);
  color: var(--text-primary);
  font-size: 12.8px;
  line-height: 1.48;
}

.calc-url-privacy-note {
  margin: 8px 0 0;
  font-size: 11.8px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Light-Mode Contrast-Safe Modals (MC-15 & MC-17) */
html[data-theme="light"] .v4-modal-card {
  background: #FFFFFF;
  color: #091122;
  border-color: rgba(120, 85, 0, 0.45);
}
.v4-modal-body {
  padding: 24px;
}
.modal-eyebrow {
  margin: 0;
  color: var(--gold-bright);
}
.modal-heading {
  margin: 0 0 8px;
  font-size: 22px;
  color: var(--text-primary);
}
.modal-copy {
  margin: 0 0 18px;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}
html[data-theme="light"] .v4-modal-card .newsletter-email-input {
  background: #F7F6F2;
  color: #091122;
  border-color: rgba(120, 85, 0, 0.38);
}

/* Light-Mode Safe High-Contrast Fixes for Scenario Copy & Status Texts */
.scenario-copy-status {
  color: var(--emerald);
}
html[data-theme="dark"] .scenario-copy-status {
  color: #34D399;
}

/* Interactive Keyboard & Touch Glossary Term Button + Popover (MC-15) */
button.mc-term-tip {
  appearance: none;
  background: none;
  border: none;
  border-bottom: 1.5px dotted var(--gold-primary);
  padding: 0 1px;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: inline;
  text-align: left;
}
button.mc-term-tip::after {
  display: none !important;
}
button.mc-term-tip:hover,
button.mc-term-tip[aria-expanded="true"] {
  color: var(--gold-bright);
  background: var(--gold-soft);
  border-radius: 3px;
}

.mc-glossary-popover {
  position: fixed;
  z-index: 1350;
  width: min(320px, calc(100vw - 24px));
  padding: 12px 14px;
  border-radius: 11px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold-strong);
  box-shadow: 0 18px 42px rgba(2, 6, 16, 0.55);
  color: var(--text-primary);
  font-size: 12.8px;
  line-height: 1.48;
  display: none;
}
.mc-glossary-popover.is-open {
  display: block;
}
.mc-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.mc-popover-title {
  font-weight: 800;
  font-size: 13px;
  color: var(--gold-bright);
}
.mc-popover-close {
  appearance: none;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card-elevated);
  color: var(--text-secondary);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  cursor: pointer;
}
.mc-popover-foot {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--border-subtle);
  font-size: 11.5px;
}
.mc-popover-foot a {
  color: var(--turq-primary);
  font-weight: 700;
}
html[data-theme="dark"] .mc-popover-foot a {
  color: #2DD4BF;
}

/* Accessible State Table Sort Header Buttons (MC-17) */
.state-sort-btn {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.state-sort-btn:hover {
  text-decoration: underline;
}

/* Glossary Filter Summary & Empty State (§9.6) */
.glossary-filter-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12.5px;
  color: var(--text-secondary);
}

.glossary-empty-state {
  padding: 28px 24px;
  text-align: center;
  display: none;
}
.glossary-empty-state.is-visible {
  display: block;
}

/* Reduced Motion Accessibility Support (WCAG 2.2 2.3.3) */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
