:root {
  --bg: #090d10;
  --surface: #10161b;
  --surface-2: #151d24;
  --surface-hover: #1a242c;
  --border: #1f2a33;
  --border-strong: #2d3c47;
  --ink: #edf2f5;
  --ink-dim: #9aa9b5;
  --ink-muted: #6c7d8a;
  --emerald: #10b981;
  --emerald-dim: rgba(16, 185, 129, 0.14);
  --gold: #e5a93b;
  --gold-dim: rgba(229, 169, 59, 0.14);
  --red: #f87171;
  --red-dim: rgba(248, 113, 113, 0.14);
  --blue: #60a5fa;
  --blue-dim: rgba(96, 165, 250, 0.14);
  --radius: 10px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* SUBTLE MESOAMERICAN (AZTEC / MAYAN) GRECA + MEXICAN PASSPORT & PESO BANKNOTE GUILLOCHE MOTIFS */
  --motif-body-bg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128' viewBox='0 0 128 128'%3E%3Cg fill='none' stroke='%23e5a93b' stroke-opacity='0.052' stroke-width='0.85'%3E%3Cpath d='M0 32 Q32 14 64 32 T128 32 M0 96 Q32 78 64 96 T128 96'/%3E%3Cpath d='M0 32 Q32 50 64 32 T128 32 M0 96 Q32 114 64 96 T128 96' stroke='%2310b981' stroke-opacity='0.036'/%3E%3Cpath d='M64 10 L74 20 H68 V26 H78 V32 H64 M64 10 L54 20 H60 V26 H50 V32 H64'/%3E%3Cpath d='M64 118 L74 108 H68 V102 H78 V96 H64 M64 118 L54 108 H60 V102 H50 V96 H64'/%3E%3Cpath d='M16 64 L26 54 V60 H32 V50 H38 V64 L26 74 V68 H32 V78 H38 V64 M112 64 L102 54 V60 H96 V50 H90 V64 L102 74 V68 H96 V78 H90 V64'/%3E%3Crect x='58' y='58' width='12' height='12' transform='rotate(45 64 64)'/%3E%3Ccircle cx='64' cy='64' r='2.2'/%3E%3C/g%3E%3C/svg%3E");
  --motif-greca-trim: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='8' viewBox='0 0 64 8'%3E%3Cpath d='M0 7 H10 V1 H22 V5 H16 V3 H18 M32 7 H42 V1 H54 V5 H48 V3 H50 M22 7 H32 M54 7 H64' fill='none' stroke='%23e5a93b' stroke-opacity='0.26' stroke-width='1'/%3E%3C/svg%3E");
  --motif-sunstone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cg fill='none' stroke='%23e5a93b' stroke-opacity='0.075' stroke-width='0.9'%3E%3Ccircle cx='130' cy='130' r='118' stroke-dasharray='4 3'/%3E%3Ccircle cx='130' cy='130' r='102'/%3E%3Ccircle cx='130' cy='130' r='82' stroke-dasharray='8 4'/%3E%3Ccircle cx='130' cy='130' r='58'/%3E%3Ccircle cx='130' cy='130' r='30'/%3E%3Cpath d='M130 12 L138 36 L122 36 Z M130 248 L138 224 L122 224 Z M12 130 L36 122 L36 138 Z M248 130 L224 122 L224 138 Z'/%3E%3Cpath d='M46 46 L68 58 L58 68 Z M214 214 L192 202 L202 192 Z M214 46 L192 58 L202 68 Z M46 214 L68 202 L58 192 Z'/%3E%3Crect x='88' y='88' width='84' height='84' transform='rotate(45 130 130)' stroke='%2310b981' stroke-opacity='0.055'/%3E%3Crect x='98' y='98' width='64' height='64'/%3E%3C/g%3E%3C/svg%3E");
  --motif-card-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='56' viewBox='0 0 180 56'%3E%3Cg fill='none' stroke='%23e5a93b' stroke-opacity='0.028' stroke-width='0.8'%3E%3Cpath d='M0 28 Q45 8 90 28 T180 28 M0 28 Q45 48 90 28 T180 28'/%3E%3Cpath d='M0 14 Q45 34 90 14 T180 14 M0 42 Q45 22 90 42 T180 42' stroke='%2310b981' stroke-opacity='0.022'/%3E%3C/g%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100dvh;
  overflow-x: clip;
  overscroll-behavior-y: none;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 42% at 50% -8%, rgba(229, 169, 59, 0.055) 0%, transparent 70%),
    var(--motif-body-bg);
  background-size: 100% 100%, 128px 128px;
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
iframe {
  max-width: 100%;
}

.terminal-panel,
.tab-panel,
.main-content,
.split-main,
.wire-sidebar,
.table-wrap,
.cmp-matrix,
.chart-panel,
.chart-box,
.mx-hero-split > *,
.calc-layout > *,
.newsletter-panel > * {
  min-width: 0;
  max-width: 100%;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.accent-gold { color: var(--gold); }
.accent-green { color: var(--emerald); }
.accent-red { color: var(--red); }

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

/* TOP MACRO TICKER TAPE */
.tape-bar {
  background: #06090b;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  padding-top: env(safe-area-inset-top);
}

.tape-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 40px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tape-inner::-webkit-scrollbar {
  display: none;
}

.tape-metrics {
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
  padding: 6px 0;
}

.tape-item {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
}

.tape-k {
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tape-v {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--ink);
  font-size: 12.5px;
}

.tape-d,
.tape-delta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold);
}

.tape-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink-dim);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.tape-toggle:hover {
  border-color: var(--gold);
  color: var(--ink);
}

.macro-drawer {
  background: #0d1318;
  border-top: 1px solid var(--border);
  padding: 10px 0;
}

.macro-takeaway {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-dim);
}

/* HEADER */
.site-header {
  background: rgba(16, 22, 27, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header::after {
  content: "";
  display: block;
  width: 100%;
  height: 7px;
  background-image: var(--motif-greca-trim);
  background-repeat: repeat-x;
  background-position: left bottom;
  opacity: 0.72;
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  flex-wrap: wrap;
  padding-top: 6px;
  padding-bottom: 6px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-name {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.brand-dot { color: var(--gold); }

.brand-sub {
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

.nav-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 3px;
  border-radius: 8px;
}

.nav-tab {
  border: none;
  background: transparent;
  color: var(--ink-dim);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}

.nav-tab:hover { color: var(--ink); }

.nav-tab.active {
  background: var(--surface-2);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

.nav-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  background: var(--gold-dim);
  color: var(--gold);
  padding: 1px 6px;
  border-radius: 999px;
}

.lang-toggle {
  display: inline-flex;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 10px;
  cursor: pointer;
}

.lang-btn.active {
  background: var(--surface-2);
  color: var(--gold);
}

/* MAIN & INTRO */
.main-content {
  padding-top: 22px;
  padding-bottom: 48px;
}

.intro-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.intro-bar h1 {
  margin: 0 0 4px;
  font-size: clamp(20px, 2.3vw, 25px);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.intro-sub {
  margin: 0;
  color: var(--ink-dim);
  font-size: 13.5px;
}

.intro-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.stat-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 12px;
  display: flex;
  flex-direction: column;
}

.stat-chip .k {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}

.stat-chip .v {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

/* FRONT-AND-CENTER MACRO THESIS HERO BANNER */
.thesis-hero-banner {
  background-color: rgba(16, 22, 27, 0.96);
  background-image:
    var(--motif-sunstone),
    linear-gradient(90deg, rgba(248, 113, 113, 0.08) 0%, rgba(16, 22, 27, 0.95) 52%, rgba(16, 185, 129, 0.08) 100%);
  background-repeat: no-repeat, no-repeat;
  background-position: right -36px center, center;
  background-size: 210px 210px, 100% 100%;
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.thesis-hero-left {
  flex: 1;
  min-width: 260px;
}

.thesis-hero-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

.thesis-hero-metrics {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.th-stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 5px 10px;
  display: flex;
  flex-direction: column;
}

.th-stat span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
}

.th-stat strong {
  font-family: var(--font-mono);
  font-size: 13px;
}

.th-stat.red strong { color: var(--red); }
.th-stat.green strong { color: var(--emerald); }
.th-stat.gold strong { color: var(--gold); }

.wire-region.markets_pro {
  background: var(--gold-dim);
  color: var(--gold);
}

.wire-region.global_fdi {
  background: rgba(56, 189, 248, 0.16);
  color: #38bdf8;
}

.wire-region.tech_ai {
  background: rgba(167, 139, 250, 0.18);
  color: #c4b5fd;
}

.tech-spotlight {
  border-color: rgba(167, 139, 250, 0.4);
  background-color: var(--surface);
  background-image:
    var(--motif-sunstone),
    linear-gradient(180deg, rgba(167, 139, 250, 0.06) 0%, transparent 210px),
    var(--motif-card-wave);
  background-repeat: no-repeat, no-repeat, repeat;
  background-position: right -30px top -20px, top left, top left;
  background-size: 240px 240px, 100% 100%, 180px 56px;
}

.quote-callout {
  margin: 0 0 16px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
}

.quote-callout .qc-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
  margin: 0 0 6px;
}

.quote-callout .qc-attr {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold);
  margin: 0 0 8px;
}

.quote-callout .qc-policy {
  font-size: 12.5px;
  color: var(--ink-dim);
  margin: 0;
  line-height: 1.45;
}

.thesis-hero-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gt-pact-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--blue);
  background: var(--blue-dim);
  padding: 3px 8px;
  border-radius: 5px;
  display: inline-block;
  align-self: flex-start;
}

/* POLITICAL THEATER VISUALS & SPECTRUM BADGES */
.pol-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 920px) {
  .pol-visual-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.spec-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
  white-space: nowrap;
  display: inline-block;
}

.spec-left {
  background: rgba(239, 68, 68, 0.16);
  color: #f87171;
}

.spec-center_left {
  background: rgba(251, 146, 60, 0.16);
  color: #fb923c;
}

.spec-center {
  background: rgba(229, 169, 59, 0.16);
  color: #e5a93b;
}

.spec-center_right {
  background: rgba(56, 189, 248, 0.16);
  color: #38bdf8;
}

.spec-right {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.pg-badge-upcoming_ipo { background: var(--gold-dim); color: var(--gold); }
.pg-badge-unicorn { background: rgba(167, 139, 250, 0.18); color: #c4b5fd; }
.pg-badge-private_giant { background: var(--blue-dim); color: var(--blue); }
.pg-badge-state_owned { background: var(--red-dim); color: var(--red); }
.pg-badge-subsidiary { background: var(--emerald-dim); color: var(--emerald); }

.party-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 5px;
  white-space: nowrap;
  display: inline-block;
}

.party-Morena { background: rgba(139, 30, 63, 0.35); color: #fda4af; border: 1px solid rgba(253, 164, 175, 0.3); }
.party-PAN { background: rgba(37, 99, 235, 0.22); color: #93c5fd; border: 1px solid rgba(147, 197, 253, 0.3); }
.party-PRI { background: rgba(220, 38, 38, 0.2); color: #fca5a5; border: 1px solid rgba(252, 165, 165, 0.3); }
.party-MC { background: rgba(249, 115, 22, 0.22); color: #fdba74; border: 1px solid rgba(253, 186, 116, 0.3); }
.party-PVEM { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; border: 1px solid rgba(110, 231, 183, 0.3); }

.mx-state-mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 6px;
}

.state-tile {
  border-radius: 6px;
  padding: 6px 5px;
  text-align: center;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  transition: transform 0.12s, border-color 0.12s;
  font-family: var(--font-sans);
}

.state-tile:hover {
  transform: translateY(-1px);
  border-color: var(--gold);
}

.state-tile .st-abbr {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.state-tile .st-party {
  font-family: var(--font-mono);
  font-size: 9px;
  opacity: 0.9;
  display: block;
  margin-top: 2px;
}

.state-tile.tile-Morena { background: rgba(139, 30, 63, 0.3); border-color: rgba(190, 24, 93, 0.45); }
.state-tile.tile-PAN { background: rgba(37, 99, 235, 0.24); border-color: rgba(59, 130, 246, 0.5); }
.state-tile.tile-PRI { background: rgba(220, 38, 38, 0.22); border-color: rgba(239, 68, 68, 0.45); }
.state-tile.tile-MC { background: rgba(249, 115, 22, 0.24); border-color: rgba(251, 146, 60, 0.5); }
.state-tile.tile-PVEM { background: rgba(16, 185, 129, 0.22); border-color: rgba(16, 185, 129, 0.5); }

/* TWO-COLUMN TERMINAL SPLIT (SCREENER + 24H NEWS WIRE) */
.terminal-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: start;
}

@media (max-width: 1040px) {
  .terminal-split {
    grid-template-columns: 1fr;
  }
}

.split-main {
  min-width: 0;
}

/* 24H BREAKING COMMERCE WIRE SIDEBAR */
.wire-sidebar {
  position: sticky;
  top: 76px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wire-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px 10px;
  border-bottom: 1px solid var(--border);
  background: #0d1216;
}

.wire-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
}

.wire-title {
  margin: 0;
  font-size: 13px !important;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.icon-btn-sm {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--ink-dim);
  width: 26px;
  height: 26px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn-sm:hover {
  color: var(--ink);
  border-color: var(--gold);
}

.wire-filters {
  display: flex;
  gap: 5px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.wire-filters::-webkit-scrollbar { display: none; }

.wire-chip {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink-dim);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.wire-chip.active {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold);
}

.wire-list {
  max-height: 540px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.wire-item {
  display: block;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.12s;
}

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

.wire-item:hover {
  background: var(--surface-hover);
}

.wire-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.wire-region {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.wire-region.us_mx {
  background: var(--emerald-dim);
  color: var(--emerald);
}

.wire-region.geopolitics {
  background: var(--red-dim);
  color: var(--red);
}

.wire-region.economy,
.wire-region.latam {
  background: var(--blue-dim);
  color: var(--blue);
}

.wire-region.demographics {
  background: var(--gold-dim);
  color: var(--gold);
}

.wire-age {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-muted);
}

.wire-headline {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 4px;
}

.wire-source {
  font-size: 11px;
  color: var(--ink-muted);
}

.wire-loading {
  padding: 24px 14px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.wire-footer {
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-muted);
  border-top: 1px solid var(--border);
  background: #0d1216;
}

/* TABS & PANELS */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.terminal-panel {
  background-color: var(--surface);
  background-image: var(--motif-card-wave);
  background-size: 180px 56px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.panel-pad { padding: 20px; }

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

.panel-top h2,
.terminal-panel h2 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.panel-sub {
  margin: 0;
  color: var(--ink-dim);
  font-size: 13px;
}

/* SCREENER TOOLBAR */
.screener-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.filter-group, .preset-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.toolbar-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-dim);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.14s;
}

.chip:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}

.chip.active {
  background: var(--surface-2);
  border-color: var(--gold);
  color: var(--gold);
}

.chip-count {
  font-family: var(--font-mono);
  font-size: 10.5px;
  background: var(--bg);
  color: var(--ink-dim);
  padding: 0 5px;
  border-radius: 4px;
}

.ctrl-input,
.ctrl-select {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 12.5px;
  padding: 7px 10px;
  border-radius: 7px;
  outline: none;
}

.ctrl-input:focus,
.ctrl-select:focus {
  border-color: var(--gold);
}

.view-switch {
  display: inline-flex;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
}

.view-btn {
  border: none;
  background: transparent;
  color: var(--ink-muted);
  padding: 7px 9px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.view-btn.active {
  background: var(--surface-2);
  color: var(--ink);
}

/* SCREENER TABLE */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
}

.screener-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.screener-table th {
  text-align: left;
  padding: 10px 11px;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--border);
  background: #0d1216;
  white-space: nowrap;
}

.screener-table th.sortable {
  cursor: pointer;
  user-select: none;
}

.screener-table th.sortable:hover { color: var(--ink); }

.screener-table td {
  padding: 11px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.screener-table tbody tr.stock-row {
  cursor: pointer;
  transition: background 0.12s;
}

.screener-table tbody tr.stock-row:hover {
  background: var(--surface-hover);
}

.ticker-cell {
  display: flex;
  flex-direction: column;
}

.ticker-code {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--gold);
}

.ticker-bmv {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-muted);
}

.company-name {
  font-weight: 600;
  color: var(--ink);
}

.company-desc {
  font-size: 12px;
  color: var(--ink-muted);
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
  white-space: nowrap;
}

.tag-adr { background: var(--emerald-dim); color: var(--emerald); }
.tag-etf { background: var(--blue-dim); color: var(--blue); }
.tag-otc { background: var(--gold-dim); color: var(--gold); }
.tag-theme { background: var(--surface-2); color: var(--ink-dim); border: 1px solid var(--border); font-family: var(--font-sans); }

.star-btn {
  border: none;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
}

.star-btn:hover,
.star-btn.starred { color: var(--gold); }

.row-actions {
  display: inline-flex;
  gap: 5px;
}

.btn-xs {
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--ink-dim);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-xs:hover {
  border-color: var(--gold);
  color: var(--ink);
}

.btn-xs.active {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold);
}

/* CARD VIEW */
.stocks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.stock-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  cursor: pointer;
  transition: border-color 0.14s, background 0.14s;
}

.stock-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.card-summary {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-dim);
  flex: 1;
}

.card-foot {
  border-top: 1px solid var(--border);
  padding-top: 9px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

/* COMPARATOR */
.cmp-selectors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

@media (max-width: 720px) {
  .cmp-selectors { grid-template-columns: 1fr; }
}

.cmp-matrix { overflow-x: auto; }

.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.cmp-table th,
.cmp-table td {
  padding: 12px 14px;
  border: 1px solid var(--border);
  vertical-align: top;
  text-align: left;
}

.cmp-table th {
  background: #0d1216;
  width: 170px;
  color: var(--ink-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cmp-table thead th {
  color: var(--ink);
  text-transform: none;
  font-size: 14px;
}

.cmp-table ul {
  margin: 0;
  padding-left: 16px;
  color: var(--ink-dim);
}

/* FX & YIELD CALCULATOR + CHART */
.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 20px;
  align-items: start;
}

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

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-dim);
}

.slider-field {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
}

.slider-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
  cursor: pointer;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--ink-muted);
  margin-top: 4px;
}

.calc-kpis {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.kpi-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
}

.kpi-box.win {
  border-color: var(--emerald);
  background: rgba(16, 185, 129, 0.06);
}

.kpi-label {
  font-size: 11px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kpi-val {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  margin-top: 3px;
}

.kpi-sub {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-dim);
  margin-top: 2px;
}

.verdict-line {
  background: var(--bg);
  border-left: 3px solid var(--gold);
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  color: var(--ink);
}

.chart-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.chart-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}

.chart-legend {
  display: flex;
  gap: 12px;
  font-size: 11.5px;
  color: var(--ink-dim);
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 5px;
}

.dot-emerald { background: var(--emerald); }
.dot-slate { background: var(--blue); }
.dot-gold { background: var(--gold); }
.dot-red { background: var(--red); }

.chart-box svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ACCESS ROUTES GRID */
.access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.access-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
}

.access-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--gold);
}

.access-card p {
  margin: 0 0 8px;
  font-size: 12.5px;
  color: var(--ink-dim);
}

.access-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

/* NEWSLETTER */
.newsletter-panel {
  margin-top: 24px;
  background-color: var(--surface);
  background-image: var(--motif-sunstone), var(--motif-card-wave);
  background-repeat: no-repeat, repeat;
  background-position: right -40px center, top left;
  background-size: 220px 220px, 180px 56px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 16px;
  align-items: center;
}

@media (max-width: 820px) {
  .newsletter-panel { grid-template-columns: 1fr; }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 4px;
}

.newsletter-panel h3 {
  margin: 0 0 4px;
  font-size: 16.5px;
}

.newsletter-panel p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 13px;
}

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

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 170px;
}

.btn-accent {
  border: none;
  background: var(--gold);
  color: #090d10;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 7px;
  cursor: pointer;
}

.btn-accent:hover { filter: brightness(1.07); }
.btn-accent:disabled { opacity: 0.6; cursor: wait; }

.nl-feedback {
  grid-column: 1 / -1;
  font-size: 12.5px;
  color: var(--emerald);
  min-height: 16px;
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--border);
  background-color: #06090b;
  background-image: var(--motif-greca-trim), var(--motif-card-wave);
  background-repeat: repeat-x, repeat;
  background-position: top left, center;
  background-size: 64px 8px, 180px 56px;
  padding: 24px 0 20px;
  font-size: 12px;
  color: var(--ink-muted);
}

.footer-row {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  color: var(--ink-dim);
  text-decoration: none;
}

.footer-links a:hover { color: var(--gold); }

/* RIGHT-SIDE SLIDE-OVER DRAWER */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 8, 0.72);
  backdrop-filter: blur(3px);
  display: flex;
  justify-content: flex-end;
  z-index: 90;
}

.drawer-panel {
  width: min(560px, 100vw);
  height: 100%;
  background: var(--surface);
  border-left: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.drawer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  background: #0d1216;
}

.icon-btn {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--ink-dim);
  width: 32px;
  height: 32px;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  color: var(--ink);
  border-color: var(--border-strong);
}

.drawer-body {
  padding: 20px 22px 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.drawer-section h4 {
  margin: 0 0 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  font-family: var(--font-mono);
}

.drawer-section p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-dim);
}

.drawer-section ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-dim);
  font-size: 13px;
}

.drawer-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.metric-cell {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 9px 11px;
}

.metric-cell .k {
  font-size: 10.5px;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.metric-cell .v {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 2px;
}

.drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ext-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--emerald);
  text-decoration: none;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  padding: 6px 11px;
  border-radius: 6px;
}

.ext-link:hover { border-color: var(--emerald); }

.brief-lang-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.hidden { display: none !important; }

/* COUNTRY / MARKET FILTER BAR */
.country-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: 10px;
  padding-bottom: 2px;
}

.country-bar::-webkit-scrollbar { display: none; }

.country-pill {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.14s;
}

.country-pill:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}

.country-pill.active {
  background: var(--emerald-dim);
  border-color: var(--emerald);
  color: var(--emerald);
}

/* MEXICO DESK MODULE */
.mx-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 390px;
  gap: 16px;
  margin-bottom: 16px;
  align-items: start;
}

@media (max-width: 1040px) {
  .mx-hero-split {
    grid-template-columns: 1fr;
  }
}

.video-stage {
  background: #06090b;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}

.video-iframe-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

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

.video-now-meta {
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

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

.vid-card {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 7px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  padding: 0;
  color: var(--ink);
  transition: border-color 0.14s;
}

.vid-card:hover,
.vid-card.active {
  border-color: var(--gold);
}

.vid-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #06090b;
}

.vid-card-body {
  padding: 7px 8px;
}

.vid-card-title {
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vid-card-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-muted);
  margin-top: 3px;
}

.mx-news-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mx-wire-list {
  max-height: 520px;
}

.wire-region.sheinbaum {
  background: var(--gold-dim);
  color: var(--gold);
}

.wire-region.treasury {
  background: var(--emerald-dim);
  color: var(--emerald);
}

.wire-region.banking {
  background: var(--blue-dim);
  color: var(--blue);
}

.wire-region.states {
  background: rgba(167, 139, 250, 0.16);
  color: #c4b5fd;
}

.wire-region.projects {
  background: var(--red-dim);
  color: var(--red);
}

.mx-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 14px;
}

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

.project-card {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-budget {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--emerald);
  background: var(--emerald-dim);
  padding: 3px 8px;
  border-radius: 5px;
  display: inline-block;
  align-self: flex-start;
}

.project-layer {
  border-top: 1px solid var(--border);
  padding-top: 8px;
  font-size: 12.5px;
  color: var(--ink-dim);
}

.project-layer strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
  margin-bottom: 3px;
}

.ticker-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

/* DEMOGRAPHICS & MACRO HUB */
.demo-kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.demo-kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.demo-kpi-card .k {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}

.demo-kpi-card .v {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  margin-top: 4px;
  color: var(--ink);
}

.demo-kpi-card .s {
  font-size: 12px;
  color: var(--gold);
  margin-top: 2px;
}

.demo-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 12px;
}

.demo-country-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.demo-country-card.benchmark {
  border-color: var(--border-strong);
  background: #0d1318;
}

.demo-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.demo-card-title {
  font-weight: 700;
  font-size: 15.5px;
}

.demo-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.demo-mini {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 8px;
}

.demo-mini .k {
  font-size: 10px;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.demo-mini .v {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  margin-top: 2px;
}

.demo-note {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-dim);
}

.demo-note strong {
  color: var(--ink);
}

.age-bar-track {
  display: flex;
  height: 14px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 6px 0 8px;
}

.age-seg-youth { background: #60a5fa; }
.age-seg-work { background: #10b981; }
.age-seg-senior { background: #e5a93b; }

.age-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-dim);
}

.demo-country-card.clickable {
  cursor: pointer;
  transition: border-color 0.14s, background 0.14s;
}

.demo-country-card.clickable:hover {
  border-color: var(--gold);
  background: var(--surface-2);
}

.hist-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.milestone-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 11px 13px;
}

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

.milestone-year {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
}

.milestone-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.milestone-detail {
  margin: 0;
  font-size: 12px;
  color: var(--ink-dim);
  line-height: 1.45;
}

.china-spotlight {
  border-color: rgba(248, 113, 113, 0.35);
  background-color: var(--surface);
  background-image:
    var(--motif-sunstone),
    linear-gradient(180deg, rgba(248, 113, 113, 0.04) 0%, transparent 180px),
    var(--motif-card-wave);
  background-repeat: no-repeat, no-repeat, repeat;
  background-position: right -30px top -20px, top left, top left;
  background-size: 240px 240px, 100% 100%, 180px 56px;
}

.supercycle-spotlight {
  border-color: rgba(16, 185, 129, 0.42);
  background-color: var(--surface);
  background-image:
    var(--motif-sunstone),
    linear-gradient(180deg, rgba(16, 185, 129, 0.07) 0%, transparent 210px),
    var(--motif-card-wave);
  background-repeat: no-repeat, no-repeat, repeat;
  background-position: right -30px top -20px, top left, top left;
  background-size: 250px 250px, 100% 100%, 180px 56px;
}

.sc-phase-card {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-top: 2px solid var(--emerald);
  border-radius: 9px;
  padding: 16px;
}

.sc-phase-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--emerald);
  margin-bottom: 5px;
}

.sc-phase-card h3 {
  margin: 0 0 8px;
  font-size: 14.5px;
  color: var(--ink);
}

.sc-phase-card p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.55;
}

.us-spotlight {
  border-color: rgba(96, 165, 250, 0.35);
  background-color: var(--surface);
  background-image:
    var(--motif-sunstone),
    linear-gradient(180deg, rgba(96, 165, 250, 0.05) 0%, transparent 180px),
    var(--motif-card-wave);
  background-repeat: no-repeat, no-repeat, repeat;
  background-position: right -30px top -20px, top left, top left;
  background-size: 240px 240px, 100% 100%, 180px 56px;
}

.us-pillar-card {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-top: 2px solid var(--blue);
  border-radius: 9px;
  padding: 16px;
}

.us-pillar-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--blue);
  margin-bottom: 5px;
}

.us-pillar-card h3 {
  margin: 0 0 8px;
  font-size: 14.5px;
  color: var(--ink);
}

.us-pillar-card p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.55;
}

.china-pillar-card {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-top: 2px solid var(--red);
  border-radius: 9px;
  padding: 16px;
}

.china-pillar-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--red);
  margin-bottom: 5px;
}

.china-pillar-card h3 {
  margin: 0 0 8px;
  font-size: 14.5px;
  color: var(--ink);
}

.china-pillar-card p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.55;
}

.demo-sources {
  margin: 14px 0 0;
  font-size: 11.5px;
  color: var(--ink-muted);
}

/* MOBILE FIXED BOTTOM NAV (HIDDEN ON DESKTOP) */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 1040px) {
  .terminal-split {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .split-main,
  .wire-sidebar {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  /* Put 24H Live Breaking Wire right at the top on mobile/tablets so headlines are front and center! */
  .wire-sidebar {
    order: -1;
    position: static;
  }

  .wire-list {
    max-height: 290px;
  }

  .mx-hero-split {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }

  .container {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
    width: 100%;
  }

  .main-content {
    padding-top: 14px;
    padding-bottom: 24px;
  }

  .header-inner {
    min-height: 52px;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .brand {
    min-width: 0;
  }

  .brand-name {
    font-size: 15px;
  }

  .nav-tabs {
    display: none;
  }

  .brand-sub {
    display: none;
  }

  .tape-inner {
    min-height: 36px;
    gap: 10px;
  }

  .tape-metrics {
    gap: 14px;
  }

  .intro-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
  }

  .intro-bar h1 {
    font-size: 19px;
    line-height: 1.25;
  }

  .intro-sub {
    font-size: 13px;
  }

  .intro-stats {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .stat-chip {
    padding: 6px 8px;
    min-width: 0;
  }

  .stat-chip .v {
    font-size: 12.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .thesis-hero-banner {
    padding: 12px 13px;
    gap: 10px;
    margin-bottom: 12px;
  }

  .thesis-hero-left {
    min-width: 0;
    width: 100%;
  }

  .thesis-hero-title {
    font-size: 13px;
    line-height: 1.4;
  }

  .thesis-hero-metrics {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .th-stat {
    padding: 6px 8px;
    min-width: 0;
  }

  .th-stat strong {
    font-size: 12.5px;
  }

  .thesis-hero-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
  }

  .thesis-hero-actions .btn-accent,
  .thesis-hero-actions .btn-xs {
    width: 100%;
    text-align: center;
    padding: 8px 6px;
    font-size: 12px;
  }

  .panel-top {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 12px;
  }

  .preset-group {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
    padding-bottom: 2px;
  }

  .preset-group::-webkit-scrollbar {
    display: none;
  }

  .screener-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .filter-group {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
    max-width: 100%;
  }

  .filter-group::-webkit-scrollbar { display: none; }

  .chip {
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 36px;
  }

  .toolbar-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    width: 100%;
  }

  .toolbar-controls .ctrl-input {
    grid-column: 1 / -1;
    width: 100%;
  }

  .toolbar-controls label {
    min-width: 0;
  }

  /* 16px prevents iOS Safari auto-zoom when tapping form controls */
  .ctrl-input,
  .ctrl-select,
  input[type="email"],
  input[type="number"],
  input[type="search"] {
    font-size: 16px;
    min-height: 42px;
    max-width: 100%;
  }

  .btn-accent,
  .btn-xs {
    min-height: 38px;
  }

  .stocks-grid,
  .demo-cards-grid,
  .mx-projects-grid,
  .hist-timeline,
  .access-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .video-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .wire-sidebar {
    position: static;
    width: 100%;
  }

  .wire-list {
    max-height: 360px;
  }

  .panel-pad {
    padding: 14px 12px;
  }

  .chart-panel {
    padding: 12px 10px;
  }

  .input-row-2,
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .kpi-val {
    font-size: 17px;
  }

  .newsletter-panel {
    padding: 16px 13px;
    margin-top: 18px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form .ctrl-input,
  .newsletter-form .ctrl-select,
  .newsletter-form .btn-accent {
    width: 100%;
    min-height: 44px;
  }

  .drawer-panel {
    width: 100%;
    max-width: 100vw;
    height: 100dvh;
    border-left: none;
  }

  .drawer-top {
    padding: max(14px, env(safe-area-inset-top)) 14px 14px;
  }

  .drawer-body {
    padding: 14px 14px calc(32px + env(safe-area-inset-bottom));
  }

  .cmp-table th {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 112px;
  }

  .cmp-table td {
    min-width: 175px;
  }

  .site-footer {
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
  }

  .mobile-bottom-nav {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    z-index: 60;
    background: rgba(9, 13, 16, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-strong);
    padding: 5px max(4px, env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(4px, env(safe-area-inset-left));
  }

  .mobile-bottom-nav::-webkit-scrollbar {
    display: none;
  }

  .demo-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .demo-kpi-card {
    padding: 11px 12px;
  }

  .demo-kpi-card .v {
    font-size: 18px;
  }

  .demo-mini-grid {
    gap: 6px;
  }

  .demo-mini .v {
    font-size: 12px;
  }

  .mob-tab {
    flex: 1 0 auto;
    min-width: 56px;
    border: none;
    background: transparent;
    color: var(--ink-muted);
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 5px 5px;
    cursor: pointer;
    min-height: 46px;
    white-space: nowrap;
    text-decoration: none;
  }

  .mob-tab.active {
    color: var(--gold);
  }
}

/* ============================================================
   ONBOARDING NAVIGATOR, DATA VS. EDITORIAL BADGES, MID-PAGE
   LEAD CAPTURE, SOURCE CITATIONS & PARTNER PLACEMENT CARDS
   ============================================================ */

.quickstart-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.qs-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 13px;
  text-align: left;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.qs-card:hover {
  border-color: var(--gold);
  background: #10171f;
}

.qs-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--emerald);
}

.qs-tag.editorial {
  color: var(--gold);
}

.qs-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.qs-desc {
  font-size: 12px;
  color: var(--ink-dim);
  line-height: 1.4;
}

.intab-jump-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 9px 12px;
  margin-bottom: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 12px;
}

.intab-jump-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.intab-jump-link {
  color: var(--ink-dim);
  text-decoration: none;
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 12px;
  font-weight: 500;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.intab-jump-link:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.data-delay-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
  background: rgba(16, 24, 32, 0.85);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  color: var(--ink-dim);
}

.badge-data,
.badge-editorial {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
}

.badge-data {
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-editorial {
  background: rgba(229, 169, 59, 0.12);
  color: var(--gold);
  border: 1px solid rgba(229, 169, 59, 0.38);
}

.inline-brief-strip {
  margin-top: 14px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(14, 23, 31, 0.96), rgba(10, 17, 23, 0.98));
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.inline-brief-copy {
  flex: 1 1 260px;
}

.inline-brief-copy strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 2px;
}

.inline-brief-copy span {
  font-size: 12.5px;
  color: var(--ink-dim);
}

.inline-brief-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  flex: 1 1 320px;
  justify-content: flex-end;
}

.inline-brief-form .ctrl-input {
  min-width: 190px;
  flex: 1 1 190px;
}

.source-audit-bar {
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  color: var(--ink-dim);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.source-audit-bar a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
}

.source-audit-bar a:hover {
  text-decoration: underline;
}

.partner-slot {
  margin-top: 16px;
  padding: 14px 16px;
  background: #0c131a;
  border: 1px solid rgba(229, 169, 59, 0.3);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.partner-slot-copy {
  flex: 1 1 320px;
}

.partner-slot-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 4px;
}

.partner-slot-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
}

.partner-slot-desc {
  font-size: 12.5px;
  color: var(--ink-dim);
  margin: 0 0 6px;
  line-height: 1.45;
}

.partner-slot-disc {
  font-size: 11px;
  color: var(--ink-muted);
  margin: 0;
}

.partner-slot-cta {
  white-space: nowrap;
  text-decoration: none;
}

@media (max-width: 900px) {
  .quickstart-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .quickstart-bar {
    grid-template-columns: 1fr;
  }
  .inline-brief-form {
    justify-content: stretch;
  }
}

/* ============================================================
   AUDIT ENHANCEMENTS: SUBTABS, METHODOLOGY TOOLTIPS,
   MULTI-PERSPECTIVE CARDS, FALLBACK & RETRY STATES, FOOTER NAV
   ============================================================ */

.btn-ghost-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--ink-dim);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.14s, color 0.14s, background 0.14s;
}

.btn-ghost-sm:hover {
  border-color: var(--gold);
  color: var(--ink);
  background: var(--surface-2);
}

.markets-subtabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  margin-bottom: 12px;
}

.markets-subtab {
  border: none;
  background: transparent;
  color: var(--ink-dim);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.14s, background 0.14s;
}

.markets-subtab:hover {
  color: var(--ink);
}

.markets-subtab.active {
  background: var(--surface-2);
  color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

/* ACCESSIBLE INLINE METHODOLOGY TOOLTIPS (.meth-tip) */
.meth-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 5px;
  border-radius: 999px;
  border: 1px solid rgba(229, 169, 59, 0.55);
  background: var(--gold-dim);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  vertical-align: middle;
  padding: 0;
}

.meth-tip:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.meth-tip-bubble {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: min(300px, 76vw);
  padding: 9px 11px;
  border-radius: 7px;
  background: #06090b;
  border: 1px solid var(--gold);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 80;
  transition: opacity 0.14s ease, visibility 0.14s ease;
}

.meth-tip:hover .meth-tip-bubble,
.meth-tip:focus .meth-tip-bubble,
.meth-tip:focus-within .meth-tip-bubble {
  opacity: 1;
  visibility: visible;
}

.meth-footnote {
  margin-top: 10px;
  padding: 9px 12px;
  background: rgba(229, 169, 59, 0.06);
  border: 1px solid rgba(229, 169, 59, 0.25);
  border-left: 3px solid var(--gold);
  border-radius: 7px;
  font-size: 12px;
  color: var(--ink-dim);
  line-height: 1.5;
}

.meth-footnote strong {
  color: var(--gold);
}

/* INSTITUTIONAL MULTI-PERSPECTIVE COMMENTARY GRID */
.multi-persp-wrap {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.multi-persp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.persp-card {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-top: 2px solid var(--emerald);
  border-radius: 8px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.persp-card.persp-independent {
  border-top-color: var(--gold);
}

.persp-card.persp-central {
  border-top-color: var(--blue);
}

.persp-org {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--emerald);
  text-transform: uppercase;
}

.persp-card.persp-independent .persp-org {
  color: var(--gold);
}

.persp-card.persp-central .persp-org {
  color: var(--blue);
}

.persp-card h4 {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.35;
}

.persp-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-dim);
  line-height: 1.5;
  flex: 1;
}

.persp-link {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  margin-top: 2px;
}

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

/* LIVE WIRE FALLBACK & RETRY UX */
.wire-fallback-box {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wire-fallback-note {
  font-size: 12px;
  color: var(--ink-dim);
  line-height: 1.45;
  margin: 0;
}

.wire-retry-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.vid-fallback-stage {
  padding: 16px;
  background: #080d11;
}

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

.vid-fallback-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.vid-channel-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.14s, background 0.14s;
}

.vid-channel-card:hover {
  border-color: var(--gold);
  background: var(--surface-2);
}

.vid-channel-card .vc-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.vid-channel-card .vc-handle {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--gold);
}

.vid-channel-card .vc-desc {
  font-size: 11.5px;
  color: var(--ink-dim);
  line-height: 1.4;
}

/* FOOTER STANDARDIZED NAVIGATION */
.footer-nav-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 12px 0 8px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.footer-nav-row a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
}

.footer-nav-row a:hover,
.footer-nav-row a.active {
  color: var(--gold);
}

/* FEATURED HOMEPAGE VIDEO BRIEFING HERO */
.featured-brief-hero {
  margin-bottom: 16px;
  padding: 16px;
  border-color: rgba(229, 169, 59, 0.32);
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(16, 185, 129, 0.08) 0%, transparent 65%),
    linear-gradient(180deg, rgba(16, 22, 27, 0.96), rgba(11, 16, 20, 0.98));
}

.fb-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.fb-video-shell {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #06090c;
  aspect-ratio: 16 / 9;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.fb-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #06090c;
}

.fb-sound-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  background: rgba(9, 13, 16, 0.86);
  color: var(--gold);
  border: 1px solid rgba(229, 169, 59, 0.55);
  border-radius: 999px;
  padding: 6px 13px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.14s, color 0.14s, border-color 0.14s;
}

.fb-sound-btn:hover {
  background: var(--gold);
  color: #090d10;
}

.fb-sound-btn.unmuted {
  color: var(--emerald);
  border-color: rgba(16, 185, 129, 0.55);
}

.fb-sound-btn.unmuted:hover {
  background: var(--emerald);
  color: #090d10;
}

.fb-meta-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fb-title {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.fb-desc {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-dim);
}

.fb-tickers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.fb-tkr {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(229, 169, 59, 0.1);
  border: 1px solid rgba(229, 169, 59, 0.32);
  color: var(--gold);
  text-decoration: none;
  transition: background 0.14s, border-color 0.14s;
}

.fb-tkr:hover {
  background: rgba(229, 169, 59, 0.22);
  border-color: var(--gold);
}

.fb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

@media (max-width: 900px) {
  .fb-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .fb-title {
    font-size: 17px;
  }
}


/* ============================================================
   ABOVE-THE-FOLD HOMEPAGE SIGNUP BAR (.hero-brief-bar)
   ============================================================ */
.hero-brief-bar {
  margin: 0 0 16px;
  padding: 14px 18px;
  border-radius: 12px;
  background:
    radial-gradient(ellipse 60% 120% at 8% 50%, rgba(229, 169, 59, 0.14) 0%, transparent 70%),
    radial-gradient(ellipse 50% 120% at 92% 50%, rgba(16, 185, 129, 0.12) 0%, transparent 70%),
    #0f151b;
  border: 1px solid rgba(229, 169, 59, 0.42);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.hbb-copy {
  flex: 1 1 320px;
  min-width: 0;
}

.hbb-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 4px;
}

.hbb-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.hbb-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1 1 420px;
  justify-content: flex-end;
}

.hbb-input {
  flex: 1 1 200px;
  min-width: 180px;
}

.hbb-submit {
  white-space: nowrap;
}

.hbb-preview {
  white-space: nowrap;
  border-color: rgba(16, 185, 129, 0.42);
  color: var(--emerald);
}

@media (max-width: 820px) {
  .hero-brief-bar {
    padding: 14px;
    gap: 12px;
  }
  .hbb-form {
    justify-content: stretch;
  }
  .hbb-input,
  .hbb-submit,
  .hbb-preview {
    width: 100%;
    text-align: center;
  }
}

/* ============================================================
   DEDICATED /brief LANDING & LIVE PREVIEW PAGE
   ============================================================ */
.brief-tricolor {
  height: 4px;
  display: flex;
  width: 100%;
}
.brief-tricolor span:nth-child(1) { flex: 1; background: #006847; }
.brief-tricolor span:nth-child(2) { flex: 1; background: #f8fafc; }
.brief-tricolor span:nth-child(3) { flex: 1; background: #ce1126; }

.brief-main {
  padding-top: 24px;
  padding-bottom: 44px;
  max-width: 980px;
  width: 100%;
  overflow-x: hidden;
}

body[data-page="brief"] {
  overflow-x: hidden;
}

.brief-hero {
  padding: 32px 30px 26px;
  border-color: rgba(229, 169, 59, 0.45);
  background:
    radial-gradient(ellipse 75% 55% at 18% 10%, rgba(229, 169, 59, 0.14) 0%, transparent 65%),
    radial-gradient(ellipse 70% 55% at 88% 90%, rgba(16, 185, 129, 0.12) 0%, transparent 65%),
    var(--surface);
  max-width: 100%;
}

.brief-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.42);
  color: var(--emerald);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  max-width: 100%;
  line-height: 1.35;
}

.brief-h1 {
  margin: 16px 0 12px;
  font-size: clamp(26px, 4.2vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.brief-gold { color: var(--gold); }
.brief-green { color: var(--emerald); }

.brief-lead {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-dim);
  max-width: 760px;
}

.brief-form {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: stretch;
}

.brief-email-input {
  min-height: 46px;
  font-size: 15px;
}

.brief-lang-select {
  min-height: 46px;
}

.brief-cta-btn {
  min-height: 46px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.brief-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
}

.brief-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.brief-pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 10px;
  padding: 16px 18px;
}
.brief-pillar-card.green { border-top-color: var(--emerald); }
.brief-pillar-card.blue { border-top-color: #60a5fa; }
.brief-pillar-card.gold { border-top-color: var(--gold); }

.bp-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.brief-pillar-card.green .bp-tag { color: var(--emerald); }
.brief-pillar-card.blue .bp-tag { color: #60a5fa; }

.brief-pillar-card h2 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--ink);
}
.brief-pillar-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.48;
  color: var(--ink-dim);
}

.brief-preview-panel {
  margin-top: 18px;
  padding: 20px;
}

.bp-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.bp-preview-title {
  margin: 0;
  font-size: 18px;
  color: var(--ink);
}

.bp-preview-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bp-preview-status {
  padding: 28px 16px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-muted);
  border: 1px dashed var(--border);
  border-radius: 10px;
}

.bp-preview-frame {
  width: 100%;
  height: 760px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0b1015;
}

.brief-desks {
  margin-top: 22px;
  text-align: center;
}
.brief-desks-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 10px;
}
.brief-desks-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

@media (max-width: 720px) {
  body[data-page="brief"] .header-inner {
    flex-wrap: wrap;
    gap: 8px;
  }
  body[data-page="brief"] .brand-sub {
    display: none;
  }
  .brief-hero { padding: 20px 16px 18px; }
  .brief-h1 { font-size: 25px; }
  .brief-lead { font-size: 14px; }
  .brief-form { grid-template-columns: 1fr; }
  .brief-email-input,
  .brief-lang-select,
  .brief-cta-btn { width: 100%; min-width: 0; }
  .brief-pillars { grid-template-columns: 1fr; }
  .brief-preview-panel { padding: 14px; }
  .bp-preview-frame { height: 560px; }
}
