/* ============================================================
   SAVETHENESTEGG — Unified stylesheet
   Serves: index.html, research.html, bridge.html, foundations.html, methodology.html
   Source: approved mockup widget code, session 2026-04-18
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: #fff;
  color: #111;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

.site { width: 100%; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; font-size: inherit; cursor: pointer; border: none; background: none; }

/* ============================================================
   TOPBAR — same on every page
   ============================================================ */

.topbar {
  background: #0a1628;
  color: #a0b4cc;
  font-size: 11px;
  padding: 5px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: #a0b4cc; }
.topbar a.active { color: #fff; }
.topbar .live-ok { color: #4caf88; }

/* ============================================================
   TICKER STRIP — .ticker-track is wired on Signals page
   ============================================================ */

.ticker-strip {
  background: #0d1f38;
  padding: 6px 20px;
  overflow: hidden;
  border-bottom: 1px solid #1e3555;
}
.ticker-track {
  display: inline-flex;
  gap: 24px;
  font-size: 12px;
  white-space: nowrap;
  min-width: max-content;
  animation: tickerScroll 40s linear infinite;
}
.ticker-strip:hover .ticker-track { animation-play-state: paused; }
.tick-item,
.ticker-item {
  display: inline-flex;
  gap: 6px;
  color: #d0dce8;
  white-space: nowrap;
  align-items: baseline;
}
.tick-name,
.ticker-item strong {
  color: #fff;
  font-weight: 500;
}
.tick-up { color: #4caf88; }
.tick-dn { color: #e05c5c; }
.ticker-sep { color: #5a7a9a; }

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

/* ============================================================
   PRIMARY NAV — same across all pages
   ============================================================ */

.nav {
  background: #0d1f38;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #1a4b8a;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  flex-shrink: 0;
}
.brand-logo {
  width: 32px;
  height: 32px;
  background: #1a4b8a;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 13px;
  color: #fff;
}
.brand-name {
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.3px;
}
.brand-tag {
  font-size: 10px;
  color: #5a8bc7;
  margin-top: 1px;
}
.nav-links { display: flex; }
.nav-links a {
  color: #a0b4cc;
  font-size: 13px;
  padding: 16px 14px;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color 0.12s, border-color 0.12s;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active {
  color: #fff;
  border-bottom-color: #3a80d2;
}
.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}
.btn-outline {
  border: 1px solid #3a5a85;
  color: #a0c4f0;
  background: transparent;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 12px;
  transition: color 0.12s, border-color 0.12s;
}
.btn-outline:hover { color: #fff; border-color: #5a8bc7; }
.btn-outline.active { border-color: #4a9eff; color: #fff; background: #0f2a4a; }
.btn-primary {
  background: #1a6bd6;
  color: #fff;
  padding: 7px 16px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  transition: background 0.12s;
}
.btn-primary:hover { background: #155bb5; }

/* ============================================================
   HERO — shared variants across pages
   ============================================================ */

.hero {
  background: linear-gradient(135deg, #071220 0%, #0d1f38 60%, #0f2a4a 100%);
  padding: 40px 20px 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.hero-solo {
  background: linear-gradient(135deg, #071220 0%, #0d1f38 100%);
  padding: 38px 20px 32px;
  display: block;
}
.hero-inner { max-width: 720px; }
.hero-eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #5a9be8;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 500;
}
.hero-h1 {
  font-size: 28px;
  font-weight: 500;
  color: #fff;
  line-height: 1.22;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
.hero-h1-methodology {
  font-size: 30px;
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.4px;
}
.hero-h1 span { color: #4a9eff; }
.hero-sub {
  font-size: 13px;
  color: #a0c4f0;
  line-height: 1.65;
  margin-bottom: 20px;
  max-width: 430px;
}
.hero-sub-wide { max-width: 620px; line-height: 1.7; }
.hero-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-btn-primary {
  background: #1a6bd6;
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  display: inline-block;
  transition: background 0.12s;
}
.hero-btn-primary:hover { background: #155bb5; }
.hero-btn-ghost {
  background: transparent;
  color: #7ab4f0;
  border: 1px solid #2a5080;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 13px;
  display: inline-block;
  transition: color 0.12s, border-color 0.12s;
}
.hero-btn-ghost:hover { color: #fff; border-color: #4a9eff; }
.hero-stats {
  display: flex;
  gap: 22px;
  margin-top: 22px;
}
.hero-stat-val {
  font-size: 20px;
  font-weight: 500;
  color: #fff;
}
.hero-stat-lbl {
  font-size: 10px;
  color: #5a7a9a;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.hero-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.meta-pill {
  background: rgba(74, 158, 255, 0.12);
  border: 1px solid rgba(74, 158, 255, 0.3);
  color: #7ab4f0;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 500;
}
.meta-divider { color: #3a5a85; }
.meta-text { font-size: 11px; color: #7a9cc0; }

/* ============================================================
   HERO-SIDE CARDS (signal preview, capital stack, translation, etc.)
   ============================================================ */

/* Signals page — signal preview */
.signal-card {
  background: #0a1e35;
  border: 1px solid #1e3a5a;
  border-radius: 8px;
  padding: 16px;
}
.signal-card-label {
  font-size: 10px;
  color: #5a8ab0;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.signal-asset-tag {
  background: #1a4b8a;
  color: #d8eaff;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 10px;
  letter-spacing: 0.5px;
}
.signal-row { display: flex; gap: 10px; margin-bottom: 10px; }
.signal-field {
  background: #112540;
  border: 1px solid #1e3a5a;
  border-radius: 6px;
  padding: 8px 12px;
  flex: 1;
}
.signal-field-lbl {
  font-size: 10px;
  color: #5a8ab0;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.signal-field-val {
  font-size: 15px;
  font-weight: 500;
  color: #d8eaff;
}
.signal-field-val.positive { color: #4caf88; }
.signal-drivers {
  background: #112540;
  border: 1px solid #1e3a5a;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.signal-drivers-lbl {
  font-size: 10px;
  color: #5a8ab0;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.signal-drivers-val {
  font-size: 12px;
  color: #d8eaff;
  line-height: 1.5;
}
.signal-footer {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #5a7a9a;
  padding-top: 8px;
  border-top: 1px solid #1e3a5a;
}

/* Foundations page — capital stack */
.stack-card {
  background: #0a1e35;
  border: 1px solid #1e3a5a;
  border-radius: 8px;
  padding: 14px;
}
.stack-label {
  font-size: 10px;
  color: #5a8ab0;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stack-label .tag {
  background: #1a4b8a;
  color: #d8eaff;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 9px;
  letter-spacing: 0.5px;
}
.layer {
  background: #112540;
  border: 1px solid #1e3a5a;
  border-left: 3px solid #888;
  border-radius: 4px;
  padding: 9px 12px;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.layer:last-child { margin-bottom: 0; }
.layer.opportunity { border-left-color: #4a9eff; }
.layer.income { border-left-color: #4caf88; }
.layer.assurance { border-left-color: #a078e0; }
.layer.haven { border-left-color: #e0b058; }
.layer-left { display: flex; flex-direction: column; gap: 2px; }
.layer-name {
  font-size: 11px;
  color: #d8eaff;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.layer-sub { font-size: 10px; color: #5a8ab0; }
.layer-right {
  font-size: 11px;
  color: #a0c4f0;
  text-align: right;
}

/* Bridge page — translation dictionary */
.xlate-card {
  background: #0a1e35;
  border: 1px solid #1e3a5a;
  border-radius: 8px;
  padding: 14px 14px 12px;
}
.xlate-label {
  font-size: 10px;
  color: #5a8ab0;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.xlate-label .tag {
  background: #1a4b8a;
  color: #d8eaff;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 9px;
  letter-spacing: 0.5px;
}
.xlate-head {
  display: grid;
  grid-template-columns: 1fr 20px 1fr;
  gap: 8px;
  padding: 0 4px 6px;
  border-bottom: 1px solid #1e3a5a;
  margin-bottom: 6px;
}
.xlate-head-col {
  font-size: 9px;
  color: #5a8ab0;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 500;
}
.xlate-head-col.right { text-align: right; }
.xlate-row {
  display: grid;
  grid-template-columns: 1fr 20px 1fr;
  gap: 8px;
  padding: 6px 4px;
  align-items: center;
  border-bottom: 1px solid #12253e;
}
.xlate-row:last-child { border-bottom: none; }
.xlate-tradfi { font-size: 12px; color: #d8eaff; }
.xlate-arrow { font-size: 12px; color: #3a7ad0; text-align: center; }
.xlate-defi {
  font-size: 12px;
  color: #a0c4f0;
  text-align: right;
}
.xlate-defi strong { color: #d8eaff; font-weight: 500; }

/* ============================================================
   CONTEXT STRIP
   ============================================================ */

.context-strip {
  background: #f0f7ff;
  border-top: 1px solid #c8dff8;
  padding: 7px 20px;
  font-size: 10px;
  color: #3a6090;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================================
   ARC STRIP — on every page
   ============================================================ */

.arc-strip {
  background: #fafaf8;
  border-top: 0.5px solid #e0e0e0;
  border-bottom: 0.5px solid #e0e0e0;
  padding: 12px 20px;
  display: flex;
}
.arc-step {
  flex: 1;
  padding: 0 10px;
  border-left: 2px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.arc-step:first-child {
  padding-left: 0;
  border-left: none;
}
.arc-step.active { border-left-color: #1a6bd6; }
.arc-step.active:first-child {
  border-left: 2px solid #1a6bd6;
  padding-left: 10px;
}
.arc-num {
  font-size: 9px;
  color: #888;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
}
.arc-step.active .arc-num { color: #1a6bd6; }
.arc-name {
  font-size: 12px;
  color: #555;
  font-weight: 500;
}
.arc-step.active .arc-name { color: #111; }
.arc-desc {
  font-size: 10px;
  color: #888;
  line-height: 1.4;
}

/* ============================================================
   MAIN GRID — 2fr / 1fr
   ============================================================ */

.main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  background: #f5f5f3;
}
.main-left {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.main-right {
  padding: 16px;
  border-left: 0.5px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ============================================================
   SECTION LABELS
   ============================================================ */

.section-label {
  font-size: 11px;
  font-weight: 500;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 0.5px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-label-note {
  font-size: 10px;
  color: #aaa;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.section-label-note.live { color: #2ea870; }

/* ============================================================
   METRICS ROW
   ============================================================ */

.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.metrics-row-3 { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.metric-card {
  background: #fff;
  border: 0.5px solid #e0e0e0;
  border-radius: 8px;
  padding: 11px 12px;
}
.metric-lbl {
  font-size: 9px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.metric-val {
  font-size: 19px;
  font-weight: 500;
  color: #111;
  margin-top: 3px;
  line-height: 1.15;
}
.metric-sub {
  font-size: 10px;
  color: #2ea870;
  margin-top: 1px;
}
.metric-sub.neu { color: #888; }
.metric-sub.dn { color: #d94f4f; }
.metric-sub-highlight {
  display: inline-block;
  background: #fff4d8;
  color: #805510;
  padding: 1px 4px;
  border-radius: 2px;
  font-weight: 500;
  font-size: 10px;
  margin-top: 4px;
}

/* ============================================================
   SIGNALS SECTION — Signals page only
   Contains wired hooks: #signalsGrid, #assetSelector, #refreshSignalsBtn, #signalsStatus
   ============================================================ */

.signals-section {
  background: #fff;
  border: 0.5px solid #e0e0e0;
  border-radius: 8px;
  padding: 14px 16px;
}
.signals-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 0.5px solid #e0e0e0;
  flex-wrap: wrap;
}
.asset-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}
.asset-btn {
  background: #fff;
  color: #111;
  border: 0.5px solid #ccc;
  border-radius: 5px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s, background 0.12s;
}
.asset-btn:hover:not(.active) {
  border-color: #1a6bd6;
  color: #1a6bd6;
}
.asset-btn.active {
  background: #0d1f38;
  color: #fff;
  border-color: #0d1f38;
}
.refresh-btn {
  background: #fff;
  border: 0.5px solid #ccc;
  border-radius: 5px;
  padding: 6px 12px;
  font-size: 12px;
  color: #111;
  transition: border-color 0.12s, color 0.12s;
}
.refresh-btn:hover { border-color: #1a6bd6; color: #1a6bd6; }
.signals-status {
  font-size: 11px;
  color: #2ea870;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2ea870;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Signals grid — renders cards for the 4 signal dimensions
   App.js injects <article class="signal-card">...</article> into this container.
   NOTE: this .signal-card rule is overridden in context of signals-grid (scoped) */
.signals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.signals-grid .signal-card {
  background: #fafaf8;
  border: 0.5px solid #e0e0e0;
  border-top: 2px solid #1a6bd6;
  border-radius: 6px;
  padding: 12px 14px;
  transition: transform 0.14s;
}
.signals-grid .signal-card:hover { transform: translateY(-1px); }
.signal-label {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 500;
  margin-bottom: 8px;
}
.signal-value {
  font-size: 22px;
  font-weight: 500;
  color: #111;
  line-height: 1.15;
  margin-bottom: 8px;
}
.signals-grid .signal-card p {
  font-size: 12px;
  color: #555;
  line-height: 1.55;
  margin: 0;
}

/* Signal module fallback (for mockup-style pre-rendered modules) */
.signal-module {
  background: #fafaf8;
  border: 0.5px solid #e0e0e0;
  border-radius: 6px;
  padding: 10px 12px;
}
.signal-module-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.signal-module-name {
  font-size: 13px;
  font-weight: 500;
  color: #111;
}
.signal-module-pill {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  background: #edf7f0;
  color: #1a7040;
  font-weight: 500;
}
.signal-module-pill.neutral { background: #f5f3ed; color: #7a6220; }
.signal-module-pill.caution { background: #fdf0ec; color: #a04020; }
.signal-module-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #555;
  padding: 3px 0;
}
.signal-module-row span:last-child {
  color: #111;
  font-weight: 500;
}

/* ============================================================
   RESEARCH FEED CARD — Signals page
   ============================================================ */

.research-card {
  background: #fff;
  border: 0.5px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px 14px;
}
.research-item {
  padding: 10px 0;
  border-bottom: 0.5px solid #e0e0e0;
  cursor: pointer;
  transition: background 0.12s;
}
.research-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.research-item:first-child { padding-top: 0; }
.research-tag {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 3px;
  font-weight: 500;
}
.tag-signal { color: #1a7040; }
.tag-research { color: #1a6bd6; }
.tag-education { color: #5020a0; }
.research-title {
  font-size: 12px;
  color: #111;
  line-height: 1.4;
}
.research-meta {
  font-size: 10px;
  color: #888;
  margin-top: 3px;
}

/* ============================================================
   CARD GRID + PILLAR CARDS — used on Research, Bridge, Foundations
   ============================================================ */

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pillar-card {
  background: #fff;
  border: 0.5px solid #e0e0e0;
  border-top: 3px solid #888;
  border-radius: 8px;
  padding: 13px 14px 12px;
  display: flex;
  flex-direction: column;
  transition: transform 0.12s;
}
.pillar-card:hover { transform: translateY(-1px); }
.pillar-card.blue { border-top-color: #1a6bd6; }
.pillar-card.teal { border-top-color: #1a7040; }
.pillar-card.purple { border-top-color: #5020a0; }
.pillar-card.amber { border-top-color: #a07010; }

.pc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.pc-tag {
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 500;
}
.tag-blue { background: #e8f4ff; color: #1a5ca0; }
.tag-teal { background: #edf7f0; color: #1a7040; }
.tag-purple { background: #f5f0ff; color: #5020a0; }
.tag-amber { background: #fdf4e8; color: #805510; }

.pc-live {
  font-size: 9px;
  color: #2ea870;
  display: flex;
  align-items: center;
  gap: 4px;
}
.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2ea870;
}

.tier-pill {
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 3px;
  font-weight: 500;
  letter-spacing: 0.4px;
}
.tier-free { background: #f0f0ed; color: #666; }
.tier-member { background: #fff4d8; color: #805510; }
.tier-premium { background: #f0e8ff; color: #5020a0; }

.pc-title {
  font-size: 15px;
  font-weight: 500;
  color: #111;
  margin-bottom: 4px;
  line-height: 1.3;
}
.pc-hook {
  font-size: 11.5px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 10px;
}
.pc-data {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 10px;
}
.pc-tile {
  background: #fafaf8;
  border: 0.5px solid #e8e8e5;
  border-radius: 4px;
  padding: 6px 7px;
  text-align: center;
}
.pc-tile-val {
  font-size: 12px;
  font-weight: 500;
  color: #111;
}
.pc-tile-lbl {
  font-size: 8px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 1px;
}
.pc-cta {
  font-size: 11px;
  color: #1a6bd6;
  font-weight: 500;
  padding-top: 8px;
  border-top: 0.5px solid #e8e8e5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

/* ============================================================
   COPILOT PANEL — Signals page main (with wired hooks)
   ============================================================ */

.copilot-panel {
  background: #fff;
  border: 0.5px solid #e0e0e0;
  border-radius: 8px;
  padding: 14px;
}
.copilot-notice {
  background: #f0f7ff;
  border: 0.5px solid #c8dff8;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 11px;
  color: #3a6090;
  line-height: 1.5;
  margin-bottom: 10px;
}
.copilot-notice strong { color: #3a6090; font-weight: 500; }
.copilot-input {
  width: 100%;
  min-height: 70px;
  background: #fafaf8;
  border: 0.5px solid #e0e0e0;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 12px;
  font-family: inherit;
  resize: none;
  color: #111;
  line-height: 1.55;
  transition: border-color 0.12s;
}
.copilot-input:focus {
  outline: none;
  border-color: #1a6bd6;
  box-shadow: 0 0 0 2px rgba(26, 107, 214, 0.08);
}
.copilot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}
.chip {
  background: #f0f4f8;
  border: 0.5px solid #d0dce8;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 10px;
  color: #3a6090;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.chip:hover { background: #e0eaf5; border-color: #1a6bd6; }
.copilot-actions {
  display: flex;
  gap: 8px;
}
.copilot-actions .btn-ask {
  flex: 1;
  background: #1a6bd6;
  color: #fff;
  padding: 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  transition: background 0.12s;
}
.copilot-actions .btn-ask:hover { background: #155bb5; }
.copilot-actions .btn-clear {
  background: transparent;
  border: 0.5px solid #ccc;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 12px;
  color: #111;
  transition: border-color 0.12s;
}
.copilot-actions .btn-clear:hover { border-color: #888; }
.copilot-status {
  font-size: 10px;
  color: #888;
  margin-top: 8px;
  line-height: 1.4;
  min-height: 18px;
}

.response-card {
  background: #fafaf8;
  border: 0.5px solid #e0e0e0;
  border-radius: 6px;
  padding: 10px 12px;
  margin-top: 10px;
}
.response-card h4.response-head {
  font-size: 12px;
  font-weight: 500;
  color: #111;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 0.5px solid #e0e0e0;
}
#responseBody section { margin-bottom: 12px; }
#responseBody section:last-child { margin-bottom: 0; }
#responseBody h4 {
  font-size: 11px;
  font-weight: 500;
  color: #1a6bd6;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 5px;
}
#responseBody p {
  font-size: 12.5px;
  color: #333;
  line-height: 1.6;
}
#responseBody ul {
  padding-left: 16px;
  margin-top: 3px;
}
#responseBody li {
  font-size: 12.5px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 3px;
}
.response-footer {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 0.5px solid #e8e8e5;
  font-size: 10px;
  color: #888;
  line-height: 1.55;
}
.hidden { display: none !important; }

/* ============================================================
   COPILOT MINI — right-rail card on non-Signals pages
   ============================================================ */

.copilot-mini {
  background: #fff;
  border: 0.5px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px 14px;
}
.copilot-mini-title {
  font-size: 12px;
  font-weight: 500;
  color: #111;
  margin-bottom: 6px;
}
.copilot-mini-body {
  font-size: 11px;
  color: #555;
  margin-bottom: 10px;
  line-height: 1.5;
}
.copilot-mini-btn {
  width: 100%;
  background: #1a6bd6;
  color: #fff;
  padding: 8px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 500;
  transition: background 0.12s;
}
.copilot-mini-btn:hover { background: #155bb5; }

/* ============================================================
   WATCHLIST — Signals right rail
   ============================================================ */

.watch-card {
  background: #fff;
  border: 0.5px solid #e0e0e0;
  border-radius: 8px;
  padding: 4px 12px;
}
.watch-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 0.5px solid #e0e0e0;
}
.watch-item:last-child { border-bottom: none; }
.watch-item.active {
  background: #f0f7ff;
  margin: 0 -12px;
  padding-left: 12px;
  padding-right: 12px;
}
.watch-name { font-size: 12px; font-weight: 500; color: #111; }
.watch-sub { font-size: 10px; color: #888; }
.watch-right { text-align: right; }
.watch-price { font-size: 12px; font-weight: 500; color: #111; }
.watch-chg { font-size: 10px; }
.watch-chg-up { color: #2ea870; }
.watch-chg-dn { color: #d94f4f; }

/* ============================================================
   ABOUT / CFO MINDSET CARD
   ============================================================ */

.about-card {
  background: #fff;
  border: 0.5px solid #e0e0e0;
  border-radius: 8px;
  padding: 14px;
}
.about-title {
  font-size: 13px;
  font-weight: 500;
  color: #111;
  margin-bottom: 6px;
}
.about-body {
  font-size: 11px;
  color: #555;
  line-height: 1.6;
}

/* ============================================================
   YIELD CARD (Bridge + Foundations rails)
   ============================================================ */

.yield-card, .haven-card, .glossary-card {
  background: #fff;
  border: 0.5px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px 14px;
}
.y-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 0.5px solid #e8e8e5;
  font-size: 11px;
}
.y-row:last-child { border-bottom: none; }
.y-row.highlight {
  background: #f0f7ff;
  margin: 0 -14px;
  padding: 6px 14px;
}
.y-name { color: #333; }
.y-name-sub { font-size: 9px; color: #888; }
.y-right { display: flex; gap: 6px; align-items: center; }
.y-val { font-weight: 500; color: #111; }
.y-chg { font-size: 10px; color: #2ea870; }
.y-chg.dn { color: #d94f4f; }

.haven-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 0.5px solid #e8e8e5;
  font-size: 11px;
}
.haven-row:last-child { border-bottom: none; }

/* Glossary rows */
.gloss-row {
  padding: 7px 0;
  border-bottom: 0.5px solid #e8e8e5;
}
.gloss-row:last-child { border-bottom: none; }
.gloss-tradfi {
  font-size: 10px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 2px;
  font-weight: 500;
}
.gloss-defi {
  font-size: 11px;
  color: #111;
  font-weight: 500;
}
.gloss-defi-sub {
  font-size: 10px;
  color: #666;
  margin-top: 1px;
  line-height: 1.4;
}

/* ============================================================
   SUBSCRIPTION TIER CARD — Research page rail
   ============================================================ */

.tier-card {
  background: #fff;
  border: 0.5px solid #e0e0e0;
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tier-current {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 0.5px solid #e8e8e5;
}
.tier-current-lbl {
  font-size: 10px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}
.tier-current-name {
  font-size: 14px;
  font-weight: 500;
  color: #111;
  margin-top: 1px;
}
.tier-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  padding: 4px 0;
}
.tier-row-name {
  color: #333;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tier-check {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2ea870;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 8px;
  font-weight: 500;
}
.tier-lock {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e0e0dc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 8px;
}
.tier-locked-row .tier-row-name { color: #888; }
.tier-row-price { font-size: 10px; color: #888; }
.tier-cta {
  width: 100%;
  background: #fafaf8;
  border: 0.5px solid #d8d8d5;
  padding: 8px;
  border-radius: 5px;
  font-size: 11px;
  color: #111;
  font-weight: 500;
  margin-top: 4px;
  transition: border-color 0.12s;
}
.tier-cta:hover { border-color: #888; }

/* ============================================================
   RISK SLIDER — Research page
   ============================================================ */

.rs-card {
  background: #0a1e35;
  border: 1px solid #1e3a5a;
  border-radius: 8px;
  padding: 20px 22px;
}
.rs-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid #1e3a5a;
  margin-bottom: 20px;
}
.rs-head-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.rs-mini-lbl {
  font-size: 10px;
  color: #5a8ab0;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.rs-head-name {
  font-size: 20px;
  color: #fff;
  font-weight: 500;
  letter-spacing: -0.3px;
  margin-top: 2px;
}
.rs-head-name-sub {
  font-size: 11px;
  color: #5a9be8;
  margin-top: 2px;
}
.rs-head-save {
  background: transparent;
  border: 1px solid #2a5080;
  color: #7ab4f0;
  padding: 7px 14px;
  border-radius: 5px;
  font-size: 11px;
  white-space: nowrap;
  transition: color 0.12s, border-color 0.12s;
}
.rs-head-save:hover { color: #fff; border-color: #4a9eff; }
.rs-head-save-lock {
  font-size: 9px;
  color: #5a7a9a;
  margin-left: 6px;
}

.rs-drag-hint {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: #5a8ab0;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 6px;
}
.rs-drag-arrow { color: #4a9eff; font-size: 14px; }

.rs-slider-block {
  position: relative;
  padding: 18px 10px 24px;
  background: #071a30;
  border-radius: 6px;
  border: 1px solid #1e3a5a;
  margin-bottom: 16px;
}

.rs-track-wrap {
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
}
.rs-track-bg {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
  height: 12px;
  background: #132c4a;
  border-radius: 6px;
  border: 1px solid #1e3a5a;
  pointer-events: none;
}
.rs-track-fill {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  height: 12px;
  background: linear-gradient(90deg, #1a6bd6 0%, #4a9eff 100%);
  border-radius: 6px;
  pointer-events: none;
  transition: width 0.25s ease;
  width: 50%;
}
.rs-dots {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  padding: 0 4px;
}
.rs-dot {
  width: 10px;
  height: 10px;
  background: #0a1e35;
  border: 2px solid #2a4a70;
  border-radius: 50%;
  transition: all 0.2s ease;
}
.rs-dot.passed {
  background: #fff;
  border-color: #fff;
}
.rs-slider {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  width: 100%;
  height: 28px;
  background: transparent;
  outline: none;
  cursor: pointer;
  z-index: 2;
}
.rs-slider::-webkit-slider-runnable-track {
  background: transparent;
  height: 28px;
  border: none;
}
.rs-slider::-moz-range-track {
  background: transparent;
  height: 28px;
  border: none;
}
.rs-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  background: #fff;
  border: 5px solid #4a9eff;
  border-radius: 50%;
  cursor: grab;
  box-shadow: 0 2px 10px rgba(74, 158, 255, 0.6), 0 0 0 1px #1a6bd6;
  margin-top: 0;
}
.rs-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.08);
}
.rs-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  background: #fff;
  border: 5px solid #4a9eff;
  border-radius: 50%;
  cursor: grab;
  box-shadow: 0 2px 10px rgba(74, 158, 255, 0.6);
}

.rs-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding: 0 2px;
}
.rs-tick {
  font-size: 10px;
  color: #5a7a9a;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  flex: 1;
  text-align: center;
  cursor: pointer;
  transition: color 0.2s;
  font-weight: 500;
}
.rs-tick.active { color: #4a9eff; }
.rs-tick:first-child { text-align: left; }
.rs-tick:last-child { text-align: right; }

.rs-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: start;
}
.rs-desc {
  font-size: 12px;
  color: #a0c4f0;
  line-height: 1.6;
  padding: 12px 14px;
  background: #112540;
  border-left: 3px solid #4a9eff;
  border-radius: 4px;
}
.rs-alloc-wrap {
  display: flex;
  flex-direction: column;
}
.rs-alloc-lbl {
  font-size: 10px;
  color: #5a8ab0;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.rs-bars {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.rs-bar-row {
  display: grid;
  grid-template-columns: 78px 1fr 36px;
  gap: 10px;
  align-items: center;
}
.rs-bar-name { font-size: 11px; color: #d8eaff; }
.rs-bar-track {
  background: #112540;
  height: 7px;
  border-radius: 3px;
  overflow: hidden;
}
.rs-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.fill-signals { background: #4a9eff; }
.fill-research { background: #a078e0; }
.fill-bridge { background: #4caf88; }
.fill-foundations { background: #e0b058; }
.rs-bar-pct {
  font-size: 11px;
  color: #a0c4f0;
  text-align: right;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.rs-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #1e3a5a;
  font-size: 11px;
}
.rs-foot-item {
  display: flex;
  gap: 8px;
  align-items: center;
}
.rs-foot-lbl {
  color: #5a7a9a;
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 0.7px;
}
.rs-foot-val {
  color: #a0c4f0;
  font-weight: 500;
}

/* ============================================================
   METHODOLOGY PAGE — special layout
   ============================================================ */

.doc-grid {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 28px;
  padding: 28px 20px 10px;
  background: #fff;
}
.doc-content { min-width: 0; }
.doc-section {
  margin-bottom: 32px;
  scroll-margin-top: 16px;
}
.doc-section:last-child { margin-bottom: 12px; }
.doc-section-num {
  font-size: 11px;
  color: #1a6bd6;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.doc-h2 {
  font-size: 19px;
  color: #111;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.2px;
}
.doc-p {
  font-size: 13.5px;
  color: #333;
  line-height: 1.7;
  margin-bottom: 12px;
}
.doc-p:last-child { margin-bottom: 0; }
.doc-p strong { font-weight: 500; color: #111; }
.doc-p em { font-style: normal; color: #1a6bd6; font-weight: 500; }

.doc-list {
  list-style: none;
  padding: 0;
  margin-bottom: 12px;
}
.doc-list li {
  font-size: 13px;
  color: #333;
  line-height: 1.65;
  padding: 5px 0 5px 18px;
  position: relative;
}
.doc-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 1px;
  background: #1a6bd6;
}
.doc-list li strong { color: #111; font-weight: 500; }

.callout {
  border-radius: 6px;
  padding: 14px 16px;
  margin: 14px 0;
  border-left: 3px solid;
}
.callout-label {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 6px;
}
.callout-body {
  font-size: 12.5px;
  line-height: 1.65;
  color: #333;
}
.callout-body ul {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.callout-body ul li {
  padding: 3px 0 3px 16px;
  position: relative;
}
.callout-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.callout-redline { background: #fef3f0; border-left-color: #c94a3a; }
.callout-redline .callout-label { color: #a33020; }
.callout-amber { background: #fdf6e8; border-left-color: #b08010; }
.callout-amber .callout-label { color: #805510; }
.callout-method { background: #f0f7ff; border-left-color: #1a6bd6; }
.callout-method .callout-label { color: #1a5ca0; }
.callout-neutral { background: #f5f5f3; border-left-color: #888; }
.callout-neutral .callout-label { color: #555; }

.signal-grid-method {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}
.signal-item-method {
  background: #fafaf8;
  border: 0.5px solid #e0e0e0;
  border-radius: 6px;
  padding: 12px 14px;
  border-top: 2px solid #1a6bd6;
}
.signal-item-method.volume { border-top-color: #1a7040; }
.signal-item-method.correlation { border-top-color: #5020a0; }
.signal-item-method.volatility { border-top-color: #a07010; }
.signal-item-method-name {
  font-size: 12px;
  font-weight: 500;
  color: #111;
  margin-bottom: 4px;
}
.signal-item-method-desc {
  font-size: 11.5px;
  color: #555;
  line-height: 1.55;
}

.asset-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 0.5px solid #e8e8e5;
  align-items: baseline;
}
.asset-row:last-child { border-bottom: none; }
.asset-ticker {
  font-size: 14px;
  font-weight: 500;
  color: #111;
  font-variant-numeric: tabular-nums;
}
.asset-desc {
  font-size: 12.5px;
  color: #555;
  line-height: 1.6;
}
.asset-desc strong { color: #111; font-weight: 500; }

.doc-rail { position: relative; }
.toc-card {
  background: #fafaf8;
  border: 0.5px solid #e0e0e0;
  border-radius: 8px;
  padding: 14px;
  position: sticky;
  top: 78px;
}
.toc-lbl {
  font-size: 10px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 0.5px solid #e0e0e0;
}
.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list a {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 5px 0;
  font-size: 11.5px;
  color: #555;
  line-height: 1.4;
  transition: color 0.12s;
}
.toc-list a:hover { color: #1a6bd6; }
.toc-num {
  color: #aaa;
  font-variant-numeric: tabular-nums;
  min-width: 18px;
}
.rail-side-card {
  background: #fff;
  border: 0.5px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 12px;
}
.rail-side-title {
  font-size: 12px;
  font-weight: 500;
  color: #111;
  margin-bottom: 6px;
}
.rail-side-body {
  font-size: 11px;
  color: #555;
  line-height: 1.55;
  margin-bottom: 8px;
}
.rail-side-btn {
  width: 100%;
  background: transparent;
  border: 0.5px solid #ccc;
  color: #111;
  padding: 7px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 500;
  transition: border-color 0.12s;
}
.rail-side-btn:hover { border-color: #888; }
.version-tag {
  font-size: 10px;
  color: #888;
  margin-top: 12px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   BRIDGE CALLOUT — forward-arc navigation on most pages
   ============================================================ */

.bridge-callout {
  background: #0d1f38;
  margin: 20px;
  border-radius: 8px;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.co-eyebrow {
  font-size: 10px;
  letter-spacing: 1.4px;
  color: #5a9be8;
  text-transform: uppercase;
  margin-bottom: 5px;
  font-weight: 500;
}
.co-title {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 3px;
}
.co-sub {
  font-size: 11px;
  color: #a0b4cc;
  line-height: 1.55;
}
.co-btn {
  background: #1a6bd6;
  color: #fff;
  padding: 10px 16px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.12s;
}
.co-btn:hover { background: #155bb5; }

/* Close-callout variant for Methodology page */
.close-callout {
  background: #0d1f38;
  margin: 24px 20px 20px;
  border-radius: 8px;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.close-eyebrow {
  font-size: 10px;
  letter-spacing: 1.4px;
  color: #5a9be8;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: 500;
}
.close-title {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  line-height: 1.35;
}
.close-sub {
  font-size: 11px;
  color: #a0b4cc;
  line-height: 1.55;
  margin-top: 3px;
}
.close-btn {
  background: #1a6bd6;
  color: #fff;
  padding: 10px 16px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.12s;
}
.close-btn:hover { background: #155bb5; }

/* ============================================================
   FOOTER — dual-entity attribution
   ============================================================ */

.footer-bar {
  background: #071220;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 10px;
  color: #4a6a8a;
  border-top: 1px solid #1a3050;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-disclaimer {
  max-width: 620px;
  line-height: 1.6;
}
.footer-links {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}
.footer-links a {
  color: #4a6a8a;
  transition: color 0.12s;
}
.footer-links a:hover { color: #a0b4cc; }

/* ============================================================
   MOCKUP COMPATIBILITY — classes from the original widget code
   ============================================================ */

/* Signals — watchlist up-arrow color */
.chg-up { color: #2ea870; }

/* Signals — copilot response body (original mockup class) */
.response-body {
  font-size: 11px;
  color: #333;
  line-height: 1.6;
}
.response-card.show { display: block; }

/* Signals — topbar left/right wrappers (original mockup used these instead of inline flex) */
.topbar-left,
.topbar-right {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Research v2 — hero-top wrapper (inner max-width container above the slider) */
.hero-top {
  max-width: 720px;
  margin-bottom: 22px;
}

/* Methodology — original mockup signal-item / signal-grid names (aliased to production styling) */
.signal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}
.signal-item {
  background: #fafaf8;
  border: 0.5px solid #e0e0e0;
  border-radius: 6px;
  padding: 12px 14px;
  border-top: 2px solid #1a6bd6;
}
.signal-item.volume { border-top-color: #1a7040; }
.signal-item.correlation { border-top-color: #5020a0; }
.signal-item.volatility { border-top-color: #a07010; }
.signal-item-name {
  font-size: 12px;
  font-weight: 500;
  color: #111;
  margin-bottom: 4px;
}
.signal-item-desc {
  font-size: 11.5px;
  color: #555;
  line-height: 1.55;
}


/* ============================================================
   V2.5 ADDITIONS — sector roster, conviction tiles, capital stack
   Sourced verbatim from v2.5 approved mockups
   ============================================================ */

/* Sector roster (methodology page) */
.roster { margin: 14px 0 6px; }
.cat-block { padding: 14px 0; border-bottom: 0.5px solid #f0ebe4; }
.cat-block:first-child { padding-top: 4px; }
.cat-block:last-child { border-bottom: none; padding-bottom: 0; }
.cat-header { display: flex; align-items: baseline; gap: 9px; margin-bottom: 10px; }
.cat-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; align-self: center; }
.dot-blue   { background: #1a6bd6; }
.dot-teal   { background: #1a7040; }
.dot-purple { background: #5020a0; }
.dot-amber  { background: #b38018; }
.dot-coral  { background: #c94a3a; }
.dot-slate  { background: #5a6270; }
.cat-name  { font-size: 12px; color: #222; font-weight: 500; letter-spacing: 0.3px; }
.cat-count { font-size: 11px; color: #999; font-weight: 400; font-variant-numeric: tabular-nums; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  background: #f4f6f9; border: 0.5px solid #dde3ec; color: #1a3550;
  padding: 6px 13px; border-radius: 16px; font-size: 12px; font-weight: 500;
  letter-spacing: 0.4px; font-variant-numeric: tabular-nums;
  transition: all 0.18s cubic-bezier(0.2, 0, 0.2, 1);
  cursor: pointer; user-select: none;
}
.pill:hover { transform: translateY(-1px); }
.cat-block.blue   .pill:hover { border-color: #1a6bd6; background: #e8f0fa; color: #0d1f38; }
.cat-block.teal   .pill:hover { border-color: #1a7040; background: #e9f3ec; color: #0d2216; }
.cat-block.purple .pill:hover { border-color: #5020a0; background: #efe8f7; color: #2a0d50; }
.cat-block.amber  .pill:hover { border-color: #b38018; background: #f7ecd6; color: #483000; }
.cat-block.coral  .pill:hover { border-color: #c94a3a; background: #f7e3df; color: #501a10; }
.cat-block.slate  .pill:hover { border-color: #5a6270; background: #e8ebef; color: #1c2028; }

/* Conviction grid (methodology Section 6) */
.conv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }
.conv-tile {
  background: #fafaf8; border: 0.5px solid #e0e0e0; border-radius: 6px;
  padding: 14px 14px 12px; text-align: left;
}
.conv-tile-level {
  font-size: 10px; color: #888; text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 4px; font-weight: 500;
}
.conv-tile-name { font-size: 14px; color: #111; font-weight: 500; margin-bottom: 6px; }
.conv-tile-desc { font-size: 11.5px; color: #555; line-height: 1.55; }

/* Methodology H3 (sub-headers in sections) */
.doc-h3 {
  font-size: 13px; color: #111; font-weight: 500;
  margin: 18px 0 10px; text-transform: uppercase; letter-spacing: 0.7px;
}

/* Foundations v2.5 — capital stack with weights */
.stack-layers { display: flex; flex-direction: column; gap: 5px; }
.layer-l1 { background: #2a2418; border-left-color: #e0b058; }
.layer-l2 { background: #281c38; border-left-color: #a078e0; }
.layer-l3 { background: #1c2538; border-left-color: #4a9eff; }
.layer-l4 { background: #122a1d; border-left-color: #4caf88; }
.layer-weight { text-align: right; }
.layer-pct {
  font-size: 15px; font-weight: 500; color: #fff;
  font-variant-numeric: tabular-nums;
}
.layer-role {
  font-size: 9px; color: #7a98b8; text-transform: uppercase;
  letter-spacing: 0.8px; margin-top: 1px;
}

/* Foundations v2.5 — safe haven card */
.safehaven-card {
  background: #fff; border: 0.5px solid #e0e0e0;
  border-radius: 8px; padding: 12px 14px;
}
.sh-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; border-bottom: 0.5px solid #e8e8e5;
}
.sh-row:last-child { border-bottom: none; }
.sh-name { font-size: 12px; font-weight: 500; color: #111; }
.sh-sub { font-size: 10px; color: #888; }
.sh-right { text-align: right; }
.sh-val { font-size: 12px; font-weight: 500; color: #111; }
.sh-chg { font-size: 10px; color: #2ea870; }
.sh-chg.dn { color: #d94f4f; }

/* Foundations v2.5 — watchlist rows (mini version) */
.watch-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; border-bottom: 0.5px solid #e8e8e5;
}
.watch-row:last-child { border-bottom: none; }
.watch-val { font-size: 11px; font-weight: 500; color: #111; }

/* Foundations pillar card — optional role label */
.pc-role { font-size: 9px; color: #888; }

/* Bridge v2.5 / Foundations v2.5 — metric-card definition footer */
.metric-def {
  font-size: 10px; color: #555; line-height: 1.5;
  margin-top: 6px; padding-top: 6px;
  border-top: 0.5px dashed #e0d8b8;
}

/* Bridge v2.5 / Foundations v2.5 — glossary highlight */
.gloss-hl {
  background: #fff2b3; padding: 1px 3px; border-radius: 2px;
  color: #3a2a00; font-weight: 500;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {
  .main-grid { grid-template-columns: 1fr; }
  .main-right {
    border-left: none;
    border-top: 0.5px solid #e0e0e0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .main-right > *:first-child { grid-column: 1 / -1; }

  .hero {
    grid-template-columns: 1fr;
  }
  .hero > div:last-child { max-width: 560px; }

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

  .doc-grid { grid-template-columns: 1fr; }
  .doc-rail { order: -1; }
  .toc-card { position: relative; top: 0; }

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

@media (max-width: 760px) {
  .topbar-right a:nth-child(1),
  .topbar-right a:nth-child(2) { display: none; }

  .nav {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 16px;
  }
  .nav-links {
    order: 3;
    width: 100%;
    border-top: 0.5px solid rgba(255,255,255,0.08);
    padding-top: 4px;
    flex-wrap: wrap;
  }
  .nav-links a { padding: 10px 12px; font-size: 12px; }

  .hero { padding: 28px 16px 24px; gap: 20px; }
  .hero-h1 { font-size: 22px; }
  .hero-stats { gap: 16px; }
  .hero-stat-val { font-size: 18px; }

  .arc-strip { overflow-x: auto; }
  .arc-step { min-width: 130px; }

  .main-left, .main-right { padding: 14px; }
  .main-right { grid-template-columns: 1fr; }

  .metrics-row { grid-template-columns: 1fr; }
  .metrics-row-3 { grid-template-columns: 1fr; }
  .signals-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .signal-grid-method { grid-template-columns: 1fr; }

  .signals-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .signals-status { margin-left: 0; }

  .doc-grid { padding: 20px 14px 8px; }
  .bridge-callout, .close-callout { flex-direction: column; align-items: flex-start; }
  .footer-bar { flex-direction: column; }
}

/* Sticky-nav anchor offset: nav measured at 65px with 15px visual gutter. */
#signals,
#copilot,
#bridge-translations,
#yield-head-to-head,
#capital-layers {
  scroll-margin-top: 80px;
}


/* Disabled-button cursor override (Session A smoke remediation, F2 ruling). */
button:disabled,
button:disabled:hover {
  cursor: default;
}

/* === MASRD-1: Scenario Range block ===
   Sibling of #signalsGrid; preservation-mode static markup is untouched.
   Educational research context; not predictions or forecasts. */
.scenario-range {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  font-family: inherit;
}
.scenario-range__heading {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0.85;
}
.scenario-range__scores {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.scenario-range__score-row,
.scenario-range__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.scenario-range__score-lbl,
.scenario-range__row-lbl {
  font-size: 13px;
  opacity: 0.7;
}
.scenario-range__score-val,
.scenario-range__row-val {
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.scenario-range__rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.scenario-range__disclaimer {
  margin-top: 10px;
  font-size: 11px;
  opacity: 0.55;
  font-style: italic;
}
.scenario-range__pending {
  font-size: 13px;
  opacity: 0.6;
  font-style: italic;
}

/* ============================================================
   CLARA RENDERPROBE-3 — sandbox-only additions
   Smallest possible CSS addition per Auditor 4 Item 4 + Item 5.
   Two Clara-only modifier classes; affect ONLY clara.html.
   No existing family rules modified. Research page rendering unchanged.
   ============================================================ */

/* Guide-card question rows: breathing room matching yield-card / copilot-panel rhythm,
   plus cursor pointer and subtle hover state. Applies only when both .rs-bar-row and
   .clara-q-row are present (used only in clara.html). */
.rs-bar-row.clara-q-row {
  padding: 11px 4px;
  border-bottom: 1px solid #1e3a5a;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  transition: background 0.12s, transform 0.12s;
}
.rs-bar-row.clara-q-row:last-child {
  border-bottom: none;
}
.rs-bar-row.clara-q-row:hover {
  background: rgba(74, 158, 255, 0.06);
  transform: translateX(2px);
}

/* No-op marker class. Card 05 spans full canvas by sitting outside .card-grid as a
   sibling div, which is achieved by markup placement alone. This class is reserved for
   future use if styling differentiation becomes desirable. */
.clara-card-wide {
  margin-top: 10px;
}


/* ============================================================
   CLARA RENDERPROBE-3A — sandbox-only addition
   .clara-arc-link: hover + focus-visible affordance for arc-strip
   links on clara.html only. Scoped tightly; matches only elements
   carrying both the family .arc-step class AND this Clara-only
   .clara-arc-link modifier (used only in clara.html).
   No production CSS modified. No effect on research.html, index.html,
   bridge.html, foundations.html, methodology.html.
   ============================================================ */
.clara-arc-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s, transform 0.12s;
}
.clara-arc-link:hover,
.clara-arc-link:focus-visible {
  background: rgba(74, 158, 255, 0.04);
  transform: translateY(-1px);
}
.clara-arc-link:focus-visible {
  outline: 2px solid #4a9eff;
  outline-offset: 2px;
}

/* ============================================================
   CLARA RP-3D - close-callout CSS-only alignment modifier
   Applied only when .close-callout carries .clara-close-aligned.
   Constrains the body-level close-callout to match .bridge-callout
   geometry (which is constrained by .main-left's 2fr column).
   Mobile breakpoint reset releases the constraint at narrow widths.
   ============================================================ */
.close-callout.clara-close-aligned {
  width: calc(66.666666% - 80px);
  margin-left: 40px;
  margin-right: auto;
}
@media (max-width: 860px) {
  .close-callout.clara-close-aligned {
    width: auto;
    margin-left: 20px;
    margin-right: 20px;
  }
}
