/* Macro Circuit V3.1 — Wall Street Institutional Financial Intelligence Terminal
   Design Standard: Bloomberg Terminal + Financial Times + Visual Capitalist
   Strict Zero-CLS Architecture | 2px Sharp Radius | 0px Left Brand Strip Lock */

:root {
  --bg-canvas: #060A12;
  --bg-topbar: #04070D;
  --bg-card: #0B1220;
  --bg-card-elevated: #0F182A;
  --bg-input: #080E1A;
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --accent-turq: #00D4AA;
  --accent-turq-dim: rgba(0, 212, 170, 0.14);
  --accent-gold: #D4AF37;
  --accent-gold-dim: rgba(212, 175, 55, 0.14);
  --bull-green: #10B981;
  --bull-green-dim: rgba(16, 185, 129, 0.14);
  --bear-red: #EF4444;
  --bear-red-dim: rgba(239, 68, 68, 0.14);
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-faint: #64748B;
  --radius-sharp: 2px;
  --font-serif: 'Newsreader', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-canvas);
  background-image: none;
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

.mono, time, .num, table td, table th {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

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

/* ==========================================================================
   1. GLOBAL MARKET STATUS BAR (Topmost Bar — Fixed 34px Height, CLS = 0)
   ========================================================================== */
.global-status-bar {
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  background: var(--bg-topbar);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  letter-spacing: 0.02em;
  overflow-x: auto;
  scrollbar-width: none;
}
.global-status-bar::-webkit-scrollbar {
  display: none;
}

.market-clocks-track {
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.clock-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-secondary);
}

.clock-city {
  color: var(--text-muted);
  font-weight: 600;
}

.clock-time {
  color: var(--text-primary);
  font-weight: 500;
}

.clock-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: var(--radius-sharp);
  letter-spacing: 0.04em;
}
.clock-badge.is-open {
  color: var(--bull-green);
  background: var(--bull-green-dim);
}
.clock-badge.is-closed {
  color: var(--bear-red);
  background: var(--bear-red-dim);
}

.status-bar-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  color: var(--text-muted);
}
.status-bar-meta .edition-tag {
  color: var(--accent-gold);
  font-weight: 600;
}

/* ==========================================================================
   2. MAIN NAVIGATION HEADER (72px Height — Left 0px Brand Strip Visual Lock)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  height: 72px;
  min-height: 72px;
  max-height: 72px;
  width: 100%;
  background-color: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 0 0 !important; /* STRICT 0px LEFT PADDING */
  margin: 0;
}

.header-left-cluster {
  display: flex;
  align-items: center;
  height: 72px;
  margin-left: 0 !important;
  padding-left: 0 !important;
  min-width: 0;
}

/* CRITICAL VISUAL LOCK: Starts at left: 0px with zero navy gap, rich gold-turquoise
   candlesticks at 0% 62%, passes behind circular M emblem & MACRO — CIRCUIT —,
   and dissolves smoothly into #060A12 just before 'Investigations'. */
.brand-strip-link {
  position: relative;
  display: block;
  flex: 0 0 410px;
  width: 410px;
  height: 72px;
  margin: 0 !important;
  padding: 0 !important;
  left: 0;
  background-color: var(--bg-canvas);
  background-image: url('/assets/img/brand-candlestick-wing.webp');
  background-size: cover;
  background-position: 0% 62%;
  background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0.92) 55%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0.92) 55%, rgba(0,0,0,0) 100%);
  overflow: hidden;
}

.brand-strip-picture,
.brand-strip-img {
  display: block;
  width: 100%;
  height: 72px;
  object-fit: cover;
  object-position: 0% 62%;
  user-select: none;
}

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

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 2px;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 11px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
  border-radius: var(--radius-sharp);
  border: 1px solid transparent;
  transition: color 0.14s ease, background-color 0.14s ease, border-color 0.14s ease;
  white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-subtle);
}

.primary-nav a[aria-current="page"] {
  color: var(--accent-turq);
  border-bottom-color: var(--accent-turq);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.terminal-search-wrap {
  position: relative;
  width: 270px;
}

.terminal-search-input {
  width: 100%;
  height: 36px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sharp);
  color: var(--text-primary);
  padding: 0 38px 0 32px;
  font-size: 12.5px;
  transition: border-color 0.15s ease;
}
.terminal-search-input::placeholder {
  color: var(--text-faint);
}
.terminal-search-input:focus {
  outline: none;
  border-color: var(--accent-turq);
}

.search-icon-svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--text-faint);
  pointer-events: none;
}

.search-kbd {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
  border: 1px solid var(--border-subtle);
  padding: 1px 5px;
  border-radius: var(--radius-sharp);
  pointer-events: none;
}

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 420px;
  max-width: 92vw;
  max-height: 420px;
  overflow-y: auto;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sharp);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.72);
  z-index: 1200;
  display: none;
}
.search-results-dropdown.is-open {
  display: block;
}

.search-hit-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.12s ease;
}
.search-hit-item:hover {
  background: rgba(0, 212, 170, 0.08);
}
.search-hit-kicker {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--accent-turq);
  text-transform: uppercase;
}
.search-hit-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.search-hit-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

.btn-subscribe-gold {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.16) 0%, rgba(212, 175, 55, 0.07) 100%);
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-sharp);
  color: var(--accent-gold);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn-subscribe-gold:hover {
  background: var(--accent-gold);
  color: #060A12;
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.35);
}

.mobile-menu-btn {
  display: none;
  height: 36px;
  width: 36px;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sharp);
  color: var(--text-primary);
  cursor: pointer;
}

/* ==========================================================================
   3. LIVE TICKER TAPE BAR (Fixed 40px Height — TradingView + Ad-Block Resilient)
   ========================================================================== */
.ticker-tape-shell {
  position: relative;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  background: #050911;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-label-badge {
  position: relative;
  z-index: 4;
  height: 40px;
  padding: 0 12px;
  background: #08101E;
  border-right: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent-turq);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bull-green);
  box-shadow: 0 0 8px var(--bull-green);
}

.native-ticker-viewport {
  flex: 1;
  overflow: hidden;
  height: 40px;
  display: flex;
  align-items: center;
  position: relative;
}

.native-ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: tickerScroll 42s linear infinite;
}
.native-ticker-viewport:hover .native-ticker-track {
  animation-play-state: paused;
}

@keyframes tickerScroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  white-space: nowrap;
}
.ticker-sym {
  font-weight: 700;
  color: var(--text-primary);
}
.ticker-price {
  color: var(--text-secondary);
}
.ticker-chg.up {
  color: var(--bull-green);
}
.ticker-chg.down {
  color: var(--bear-red);
}

.tv-widget-layer {
  position: absolute;
  left: 118px;
  right: 98px;
  top: 0;
  height: 40px;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.tv-widget-layer.is-active {
  opacity: 1;
  pointer-events: auto;
  background: #050911;
}

.ticker-mode-btn {
  position: relative;
  z-index: 4;
  height: 40px;
  padding: 0 10px;
  background: #08101E;
  border: none;
  border-left: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  cursor: pointer;
  white-space: nowrap;
}
.ticker-mode-btn:hover {
  color: var(--accent-gold);
}

/* ==========================================================================
   4. MAIN 3-COLUMN INSTITUTIONAL TERMINAL GRID
   ========================================================================== */
.terminal-container {
  max-width: 1780px;
  margin: 0 auto;
  padding: 16px;
}

.terminal-grid-3col {
  display: grid;
  grid-template-columns: minmax(350px, 1.06fr) minmax(430px, 1.28fr) minmax(320px, 0.92fr);
  gap: 16px;
  align-items: start;
}

.terminal-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.terminal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sharp);
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.018);
  border-bottom: 1px solid var(--border-subtle);
}

.card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-turq);
}
.card-kicker.gold {
  color: var(--accent-gold);
}

.card-meta-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 2px 6px;
  border-radius: var(--radius-sharp);
}

.card-body {
  padding: 14px;
}

.editorial-h1, .editorial-h2, .editorial-h3 {
  font-family: var(--font-serif);
  color: var(--text-primary);
  margin: 0;
  line-height: 1.22;
  letter-spacing: -0.01em;
}
.editorial-h1 { font-size: 28px; font-weight: 700; }
.editorial-h2 { font-size: 20px; font-weight: 600; }
.editorial-h3 { font-size: 17px; font-weight: 600; }

/* ==========================================================================
   5. LEFT COLUMN — FEATURED FORENSIC INVESTIGATION & 9:16 SHORTS
   ========================================================================== */
.dossier-switcher-bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  scrollbar-width: none;
}
.dossier-switcher-bar::-webkit-scrollbar { display: none; }

.dossier-pill-btn {
  padding: 4px 9px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sharp);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
}
.dossier-pill-btn.is-active,
.dossier-pill-btn:hover {
  border-color: var(--accent-turq);
  color: var(--accent-turq);
  background: var(--accent-turq-dim);
}

.yt-stage-16x9 {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #04070D;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.yt-stage-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yt-stage-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,10,18,0.18) 0%, rgba(6,10,18,0.78) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
}

.yt-channel-chip {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(6, 10, 18, 0.88);
  border: 1px solid var(--border-strong);
  padding: 4px 9px;
  border-radius: var(--radius-sharp);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-primary);
}

.yt-play-trigger {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(6, 10, 18, 0.9);
  border: 1px solid var(--accent-turq);
  border-radius: var(--radius-sharp);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.yt-play-trigger:hover {
  background: var(--accent-turq);
  color: #060A12;
  transform: scale(1.02);
}

.yt-stage-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.investigation-headline-box {
  padding: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.investigation-sub {
  margin: 7px 0 12px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

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

.btn-terminal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sharp);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.14s ease, color 0.14s ease, background 0.14s ease;
}
.btn-terminal:hover {
  border-color: var(--accent-turq);
  color: var(--accent-turq);
}
.btn-terminal.primary {
  background: var(--accent-turq-dim);
  border-color: var(--accent-turq);
  color: var(--accent-turq);
}
.btn-terminal.primary:hover {
  background: var(--accent-turq);
  color: #060A12;
}
.btn-terminal.gold {
  background: var(--accent-gold-dim);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}
.btn-terminal.gold:hover {
  background: var(--accent-gold);
  color: #060A12;
}

.tabs-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--border-subtle);
  background: #080E1A;
}

.tab-btn {
  padding: 10px 8px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}
.tab-btn:hover {
  color: var(--text-primary);
}
.tab-btn.is-active {
  color: var(--accent-turq);
  border-bottom-color: var(--accent-turq);
  background: rgba(0, 212, 170, 0.05);
}

.tab-panel {
  display: none;
  padding: 14px;
}
.tab-panel.is-active {
  display: block;
}

.kpi-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.kpi-mini-box {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sharp);
  padding: 9px 10px;
}
.kpi-mini-label {
  font-size: 11px;
  color: var(--text-muted);
}
.kpi-mini-val {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  margin-top: 2px;
}
.kpi-mini-val.down { color: var(--bear-red); }
.kpi-mini-val.up { color: var(--bull-green); }
.kpi-mini-val.gold { color: var(--accent-gold); }
.kpi-mini-val.turq { color: var(--accent-turq); }
.kpi-mini-delta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-faint);
}

.exec-bullet-list {
  margin: 0;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.transcript-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 290px;
  overflow-y: auto;
}
.transcript-row {
  padding: 9px 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sharp);
  cursor: pointer;
  transition: border-color 0.14s ease;
}
.transcript-row:hover,
.transcript-row.is-highlighted {
  border-color: var(--accent-turq);
}
.transcript-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-turq);
  margin-bottom: 4px;
}
.transcript-text {
  font-size: 12.5px;
  color: var(--text-secondary);
}

.data-pack-table-wrap {
  overflow-x: auto;
}
.terminal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.terminal-table th {
  text-align: left;
  padding: 7px 8px;
  background: #070C17;
  color: var(--text-muted);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}
.terminal-table td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.terminal-table tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}

/* 9:16 Rapid Shorts Showcase */
.shorts-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}
.shorts-strip::-webkit-scrollbar {
  height: 5px;
}
.shorts-strip::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sharp);
}

.short-card-9x16 {
  position: relative;
  flex: 0 0 148px;
  width: 148px;
  aspect-ratio: 9 / 16;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sharp);
  overflow: hidden;
  background: #050912;
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.short-card-9x16:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}
.short-card-9x16 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.short-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,10,18,0.12) 0%, rgba(6,10,18,0.65) 55%, rgba(6,10,18,0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 9px;
}
.short-duration-pill {
  align-self: flex-end;
  background: rgba(6,10,18,0.86);
  border: 1px solid var(--border-subtle);
  padding: 1px 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-gold);
  border-radius: var(--radius-sharp);
}
.short-card-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.28;
  color: var(--text-primary);
}
.short-card-metric {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-turq);
  font-weight: 700;
  margin-bottom: 3px;
}

/* ==========================================================================
   6. CENTER COLUMN — INFLATION AUTOPSY LAB, 50-STATE SVG MAP & FED/DEBT
   ========================================================================== */
.calc-controls-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.control-group {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sharp);
  padding: 9px 11px;
}
.control-group.full-span {
  grid-column: 1 / -1;
}
.control-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.control-readout {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-gold);
}

.terminal-select {
  width: 100%;
  height: 34px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sharp);
  color: var(--text-primary);
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.terminal-range {
  width: 100%;
  accent-color: var(--accent-turq);
  cursor: pointer;
}

.autopsy-results-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.autopsy-stat-card {
  background: #070D19;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sharp);
  padding: 10px;
}
.autopsy-stat-label {
  font-size: 11px;
  color: var(--text-muted);
}
.autopsy-stat-num {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 700;
  margin-top: 3px;
}

.autopsy-chart-box {
  background: #070D19;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sharp);
  padding: 12px;
  min-height: 210px;
}

/* 50-State Vector Heatmap */
.us-map-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #060B15;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sharp);
  overflow: hidden;
  margin-bottom: 10px;
}
.us-map-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.us-state-path {
  stroke: rgba(6, 10, 18, 0.85);
  stroke-width: 1px;
  cursor: pointer;
  transition: filter 0.12s ease, stroke 0.12s ease, stroke-width 0.12s ease;
}
.us-state-path:hover,
.us-state-path.is-selected {
  stroke: var(--text-primary);
  stroke-width: 2.2px;
  filter: brightness(1.22);
}

.map-legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.legend-gradient-bar {
  width: 140px;
  height: 8px;
  border-radius: 1px;
  background: linear-gradient(90deg, #0D5C56 0%, #00D4AA 28%, #D4AF37 64%, #EF4444 100%);
  display: inline-block;
  vertical-align: middle;
  margin: 0 6px;
}

.state-telemetry-card {
  background: #070D19;
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent-turq);
  border-radius: var(--radius-sharp);
  padding: 11px 12px;
  margin-bottom: 10px;
}
.state-telemetry-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.state-telemetry-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.ranking-scroll-box {
  max-height: 245px;
  overflow-y: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sharp);
}
.ranking-row {
  cursor: pointer;
}
.ranking-row.is-selected td {
  background: rgba(0, 212, 170, 0.14) !important;
  color: var(--text-primary);
}
.sortable-th {
  cursor: pointer;
  user-select: none;
}
.sortable-th:hover {
  color: var(--accent-turq) !important;
}

/* Fed Watch & Live US National Debt */
.fomc-countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 10px 0 14px;
}
.countdown-cell {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sharp);
  padding: 8px;
  text-align: center;
}
.countdown-val {
  font-family: var(--font-mono);
  font-size: 21px;
  font-weight: 700;
  color: var(--accent-gold);
}
.countdown-unit {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.prob-matrix-row {
  margin-bottom: 9px;
}
.prob-label-line {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11.5px;
  margin-bottom: 4px;
}
.prob-bar-track {
  height: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 1px;
  overflow: hidden;
}
.prob-bar-fill {
  height: 100%;
  background: var(--accent-turq);
}
.prob-bar-fill.gold { background: var(--accent-gold); }

.debt-clock-banner {
  background: linear-gradient(180deg, #0A101E 0%, #070B14 100%);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-sharp);
  padding: 12px;
  margin-top: 12px;
}
.debt-live-digits {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 22px;
  font-weight: 700;
  color: var(--bear-red);
  letter-spacing: 0.01em;
  margin: 4px 0 8px;
}

/* ==========================================================================
   7. RIGHT COLUMN — MACRO WIRE, SMART DRAWER, CALENDAR & PARTNER SLOTS
   ========================================================================== */
.wire-filter-bar {
  display: flex;
  gap: 6px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border-subtle);
  background: #080E1A;
}
.wire-filter-btn {
  padding: 4px 10px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sharp);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.wire-filter-btn.is-active,
.wire-filter-btn:hover {
  border-color: var(--accent-turq);
  color: var(--accent-turq);
  background: var(--accent-turq-dim);
}

.wire-feed-list {
  max-height: 460px;
  overflow-y: auto;
}
.wire-item-row {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.12s ease;
}
.wire-item-row:hover {
  background: rgba(0, 212, 170, 0.06);
}
.wire-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  margin-bottom: 4px;
}
.wire-agency-badge {
  color: var(--accent-gold);
  font-weight: 700;
}
.wire-impact-pill {
  padding: 1px 5px;
  border-radius: var(--radius-sharp);
  background: rgba(239, 68, 68, 0.14);
  color: var(--bear-red);
  font-weight: 700;
}
.wire-impact-pill.normal {
  background: rgba(0, 212, 170, 0.12);
  color: var(--accent-turq);
}
.wire-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.36;
}

/* Smart Wire Slide-Over Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 12, 0.75);
  z-index: 1400;
  display: none;
}
.drawer-backdrop.is-open {
  display: block;
}

.smart-wire-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 480px;
  max-width: 94vw;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border-strong);
  z-index: 1500;
  transform: translateX(102%);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.smart-wire-drawer.is-open {
  transform: translateX(0);
}

/* Modal (Newsletter & Rapid Short Player) */
.terminal-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 12, 0.82);
  z-index: 1600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.terminal-modal-backdrop.is-open {
  display: flex;
}
.terminal-modal-card {
  width: 100%;
  max-width: 500px;
  background: var(--bg-card);
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-sharp);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
}

/* Monetization / Partner Slot (Strict Reserved Height, Zero CLS) */
.monetization-slot {
  min-height: 136px;
  background: #080F1C;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sharp);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.sponsor-disclosure-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ==========================================================================
   8. LONG-FORM DOSSIER & SUBPAGE LAYOUTS (2,000+ Word Editorial Standard)
   ========================================================================== */
.subpage-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 18px 56px;
}

.breadcrumb-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.breadcrumb-nav a:hover {
  color: var(--accent-turq);
}

.dossier-article-grid {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.dossier-toc-sticky {
  position: sticky;
  top: 90px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sharp);
  padding: 14px;
}
.toc-links {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.toc-links a {
  display: block;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.35;
  padding-left: 8px;
  border-left: 2px solid transparent;
}
.toc-links a:hover {
  color: var(--accent-turq);
  border-left-color: var(--accent-turq);
}

.article-prose {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sharp);
  padding: 28px 34px;
}
.article-prose h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--text-primary);
  margin: 34px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}
.article-prose p {
  font-size: 16.5px;
  line-height: 1.76;
  color: #DCE5F2;
  margin: 0 0 18px;
}

/* ==========================================================================
   9. INSTITUTIONAL FOOTER
   ========================================================================== */
.site-footer {
  margin-top: 40px;
  background: #04070D;
  border-top: 1px solid var(--border-subtle);
  padding: 36px 18px 28px;
}
.footer-inner {
  max-width: 1740px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 28px;
}
.footer-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-gold);
  margin: 0 0 12px;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-links a:hover {
  color: var(--accent-turq);
}
.footer-disclaimer-bar {
  max-width: 1740px;
  margin: 24px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  font-size: 11.5px;
  color: var(--text-faint);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

/* ==========================================================================
   10. RESPONSIVE BREAKPOINTS (Preserving 0px Left Brand Strip on All Screens)
   ========================================================================== */
@media (max-width: 1360px) {
  .brand-strip-link {
    flex: 0 0 360px;
    width: 360px;
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0.95) 68%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0.95) 68%, rgba(0,0,0,0) 100%);
  }
  .terminal-search-wrap {
    width: 205px;
  }
  .terminal-grid-3col {
    grid-template-columns: 1fr 1.15fr;
  }
  .terminal-col.col-right {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 1060px) {
  .primary-nav {
    display: none;
  }
  .primary-nav.is-mobile-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 106px;
    left: 0;
    right: 0;
    background: var(--bg-card-elevated);
    border-bottom: 1px solid var(--border-strong);
    padding: 12px 16px;
    z-index: 1100;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .terminal-grid-3col {
    grid-template-columns: 1fr;
  }
  .terminal-col.col-right {
    grid-template-columns: 1fr;
  }
  .dossier-article-grid {
    grid-template-columns: 1fr;
  }
  .dossier-toc-sticky {
    position: static;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .brand-strip-link {
    flex: 0 0 272px;
    width: 272px;
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0.96) 86%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0.96) 86%, rgba(0,0,0,0) 100%);
  }
  .terminal-search-wrap {
    display: none;
  }
  .calc-controls-grid,
  .autopsy-results-strip,
  .state-telemetry-metrics,
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .article-prose {
    padding: 18px 16px;
  }
}
