:root {
  --ink: #101613;
  --muted: #5e6963;
  --paper: #f5f3ec;
  --paper-2: #ebe8de;
  --panel: #ffffff;
  --forest: #071c17;
  --forest-2: #0d2d24;
  --mint: #82e6aa;
  --mint-soft: #dff7e8;
  --gold: #d1b46a;
  --coral: #ef7168;
  --blue: #6677d9;
  --line: #d5d7cf;
  --line-dark: rgba(255, 255, 255, 0.14);
  --danger: #b8443d;
  --shadow: 0 18px 50px rgba(15, 27, 21, 0.11);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, select { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(102, 119, 217, 0.45);
  outline-offset: 2px;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
p { color: var(--muted); }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(820px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 1000; padding: 10px 14px; background: var(--mint); color: var(--forest); font-weight: 800; }
.skip-link:focus { top: 16px; }

.market-bar { background: #050b08; color: #e7eee9; border-bottom: 1px solid rgba(255,255,255,.09); }
.market-bar-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 18px; font-size: 12px; }
.market-status { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.market-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(130,230,170,.12); }
.market-note { color: #9eaaa4; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(245,243,236,.96); border-bottom: 1px solid transparent; backdrop-filter: blur(14px); }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 26px rgba(9,27,21,.07); }
.nav-shell { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: max-content; }
.brand img { width: 38px; height: 38px; }
.brand-copy { display: grid; line-height: 1.05; }
.brand-name { position: relative; display: inline-flex; align-items: center; gap: 7px; font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--forest); }
.brand-label { margin-top: 5px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.beta-badge { position: relative; top: 1px; display: inline-flex; align-items: center; gap: 5px; padding: 2px 6px; border: 1px solid #9b7c2f; border-radius: 3px; color: #614a12; background: #f2df9d; font-family: var(--sans); font-size: 8px; font-weight: 950; line-height: 1.3; text-transform: uppercase; cursor: help; }
.beta-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #16814b; box-shadow: 0 0 0 3px rgba(22,129,75,.12); animation: beta-pulse 1.8s ease-in-out infinite; }
.beta-badge::after { content: attr(data-beta-note); position: absolute; left: 0; top: calc(100% + 9px); z-index: 130; width: min(240px, 78vw); padding: 9px 11px; border: 1px solid var(--line-dark); border-radius: 4px; color: #eaf0ed; background: var(--forest); box-shadow: 0 14px 34px rgba(0,0,0,.22); font-family: var(--sans); font-size: 10px; font-weight: 650; line-height: 1.45; text-transform: none; opacity: 0; visibility: hidden; transform: translateY(-3px); transition: opacity .16s ease, transform .16s ease, visibility .16s ease; pointer-events: none; }
.beta-badge:focus-visible { outline: 3px solid rgba(102,119,217,.45); outline-offset: 2px; }
.beta-badge:hover::after, .beta-badge:focus-visible::after { opacity: 1; visibility: visible; transform: none; }
@keyframes beta-pulse { 50% { opacity: .45; } }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { padding: 9px 12px; color: #35433c; font-size: 14px; font-weight: 750; border-radius: 4px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--forest); background: var(--paper-2); }
.nav-links .nav-cta { margin-left: 6px; color: var(--forest); background: var(--gold); }
.nav-links .nav-cta:hover { background: #bea057; }
.nav-toggle { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--panel); border-radius: 4px; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: var(--forest); position: relative; transition: .2s ease; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border: 1px solid transparent; border-radius: 4px; font-weight: 850; color: var(--forest); background: var(--mint); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(9,29,23,.14); }
.button-dark { color: #fff; background: var(--forest); }
.button-gold { background: var(--gold); }
.button-ghost { color: inherit; background: transparent; border-color: currentColor; }
.button-small { min-height: 38px; padding-inline: 13px; font-size: 13px; }
.button-block { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--forest); font-weight: 850; border-bottom: 1px solid var(--gold); }

.home-hero { background: var(--forest); color: #fff; border-bottom: 6px solid var(--gold); }
.hero-grid { min-height: 650px; display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; padding-block: 74px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: var(--gold); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.home-hero h1 { max-width: 760px; margin-bottom: 24px; font-family: var(--serif); font-size: 72px; line-height: .98; font-weight: 500; }
.home-hero h1 em { color: var(--mint); font-style: italic; }
.hero-copy > p { max-width: 670px; color: #b9c6c0; font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 34px; padding-top: 25px; border-top: 1px solid var(--line-dark); }
.hero-proof strong { display: block; color: #fff; font-size: 23px; }
.hero-proof span { color: #8fa19a; font-size: 12px; }
.research-console { border: 1px solid rgba(255,255,255,.2); border-radius: 8px; background: #0b251e; box-shadow: 24px 24px 0 #06130f; overflow: hidden; }
.console-head { height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid var(--line-dark); font-size: 12px; color: #aebdb6; }
.console-dots { display: flex; gap: 6px; }
.console-dots i { width: 7px; height: 7px; border-radius: 50%; background: #3d5a4e; }
.console-dots i:nth-child(1) { background: var(--coral); }
.console-dots i:nth-child(2) { background: var(--gold); }
.console-dots i:nth-child(3) { background: var(--mint); }
.console-body { padding: 22px; }
.console-stock { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 17px 0; border-bottom: 1px solid var(--line-dark); }
.console-stock:first-child { padding-top: 0; }
.console-stock:last-child { border-bottom: 0; padding-bottom: 0; }
.console-ticker { color: #fff; font-size: 18px; font-weight: 900; }
.console-company { color: #839b90; font-size: 12px; }
.console-score { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid rgba(130,230,170,.4); color: var(--mint); font-family: var(--serif); font-size: 21px; border-radius: 50%; }
.console-bars { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr .8fr .55fr; gap: 5px; height: 5px; }
.console-bars span { background: var(--mint); }
.console-bars span:nth-child(2) { background: var(--gold); }
.console-bars span:nth-child(3) { background: var(--blue); }

.ticker-rail { overflow: hidden; background: #050b08; color: #fff; border-bottom: 1px solid #1e2b25; }
.ticker-track { min-width: max-content; display: flex; align-items: center; animation: tickerMove 28s linear infinite; }
.ticker-item { min-width: 190px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 20px; border-right: 1px solid #25312c; font-size: 12px; }
.ticker-item strong { font-size: 13px; }
.ticker-up { color: var(--mint); }
.ticker-down { color: #ff8e86; }
@keyframes tickerMove { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .ticker-track, .beta-badge::before { animation: none; } .reveal { opacity: 1 !important; transform: none !important; } }

.section { padding-block: 96px; }
.section-tight { padding-block: 64px; }
.section-dark { color: #fff; background: var(--forest); }
.section-white { background: #fff; }
.section-kicker { margin-bottom: 12px; color: var(--coral); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.section-heading { display: grid; grid-template-columns: 1fr .75fr; gap: 50px; align-items: end; margin-bottom: 40px; }
.section-heading h2 { margin: 0; font-family: var(--serif); font-size: 48px; line-height: 1.05; font-weight: 500; }
.section-heading p { margin-bottom: 4px; }
.section-dark .section-heading p, .section-dark p { color: #9eafa7; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature-card { min-height: 260px; padding: 28px; background: var(--panel); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-card:nth-child(2) { background: var(--mint-soft); }
.feature-card:nth-child(3) { background: #f2ead5; }
.feature-number { color: var(--coral); font-family: var(--serif); font-size: 34px; }
.feature-card h3 { margin: 54px 0 10px; font-family: var(--serif); font-size: 27px; }
.feature-card p { margin-bottom: 0; font-size: 14px; }

.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); }
.stat { min-height: 150px; padding: 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--serif); font-size: 42px; color: var(--forest); }
.stat span { color: var(--muted); font-size: 13px; }

.split-feature { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.editorial-block { padding-left: 28px; border-left: 4px solid var(--gold); }
.editorial-block h2 { font-family: var(--serif); font-size: 50px; line-height: 1.04; font-weight: 500; }
.editorial-list { display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.editorial-row { display: grid; grid-template-columns: 58px 1fr; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line-dark); }
.editorial-row span { color: var(--gold); font-family: var(--serif); font-size: 24px; }
.editorial-row h3 { margin: 0 0 4px; font-size: 16px; }
.editorial-row p { margin: 0; font-size: 13px; }

.cta-band { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; padding: 42px; background: var(--gold); border: 1px solid #b99b50; box-shadow: 16px 16px 0 var(--forest); }
.cta-band h2 { margin: 0 0 6px; font-family: var(--serif); font-size: 38px; }
.cta-band p { margin: 0; color: #554722; }

.page-hero { color: #fff; background: var(--forest); border-bottom: 5px solid var(--gold); }
.page-hero-inner { min-height: 360px; display: grid; grid-template-columns: 1fr .65fr; gap: 60px; align-items: end; padding-block: 64px; }
.page-hero h1 { margin-bottom: 18px; font-family: var(--serif); font-size: 60px; line-height: 1; font-weight: 500; }
.page-hero p { max-width: 720px; margin-bottom: 0; color: #b8c6c0; font-size: 18px; }
.hero-aside { padding: 22px; border: 1px solid var(--line-dark); border-radius: 8px; background: #0b251e; }
.hero-aside-label { color: var(--gold); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.hero-aside strong { display: block; margin-top: 8px; font-family: var(--serif); font-size: 34px; }
.hero-aside p { margin: 5px 0 0; font-size: 13px; }

.content-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; }
.story-lead { font-family: var(--serif); font-size: 35px; line-height: 1.25; color: var(--forest); }
.quote-block { margin: 34px 0; padding: 26px 30px; border-left: 4px solid var(--coral); background: #fff; }
.quote-block p { margin: 0; color: var(--forest); font-family: var(--serif); font-size: 25px; }
.side-stack { display: grid; gap: 16px; align-content: start; }
.info-card { padding: 24px; border: 1px solid var(--line); background: #fff; border-radius: 8px; }
.info-card h3 { margin-bottom: 10px; font-family: var(--serif); font-size: 24px; }
.info-card p:last-child { margin-bottom: 0; }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.principle { min-height: 230px; padding: 24px; border: 1px solid var(--line); background: #fff; border-radius: 8px; }
.principle i { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 42px; color: #fff; background: var(--blue); border-radius: 50%; font-style: normal; font-weight: 900; }
.principle:nth-child(2) i { background: var(--coral); }
.principle:nth-child(3) i { color: var(--forest); background: var(--mint); }
.principle h3 { margin-bottom: 8px; font-family: var(--serif); font-size: 24px; }
.principle p { margin: 0; font-size: 14px; }

.timeline { display: grid; gap: 0; border-top: 1px solid var(--line); }
.timeline-step { display: grid; grid-template-columns: 90px 1fr auto; gap: 26px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); }
.timeline-day { color: var(--coral); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.timeline-step h3 { margin: 0 0 5px; font-family: var(--serif); font-size: 25px; }
.timeline-step p { margin: 0; }
.timeline-score { min-width: 86px; color: var(--forest); font-weight: 900; text-align: right; }

.rubric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.rubric-card { padding: 26px; border: 1px solid var(--line); background: #fff; border-radius: 8px; }
.rubric-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.rubric-card h3 { margin: 0; font-family: var(--serif); font-size: 26px; }
.rubric-weight { color: var(--forest); background: var(--mint-soft); padding: 4px 8px; border-radius: 3px; font-size: 12px; font-weight: 900; }
.flag-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.flag-list li { padding-left: 20px; position: relative; color: var(--muted); font-size: 14px; }
.flag-list li::before { content: "+"; position: absolute; left: 0; color: #16814b; font-weight: 900; }
.flag-list.bad li::before { content: "-"; color: var(--danger); }

.form-layout { display: grid; grid-template-columns: 1fr .72fr; gap: 52px; align-items: start; }
.form-panel { padding: 30px; border: 1px solid var(--line); background: #fff; border-radius: 8px; box-shadow: var(--shadow); }
.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 17px; }
.field { display: grid; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { color: var(--forest); font-size: 13px; font-weight: 850; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #bec5c0; border-radius: 4px; color: var(--ink); background: #fbfbf8; }
.field textarea { min-height: 142px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(102,119,217,.12); outline: 0; }
.form-note { margin: 15px 0 0; font-size: 12px; }
.contact-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-row { padding: 17px 0; border-bottom: 1px solid var(--line); }
.contact-row span { display: block; color: var(--muted); font-size: 12px; }
.contact-row strong { color: var(--forest); }

.portfolio-hero { padding-block: 54px 38px; color: #fff; background: var(--forest); border-bottom: 5px solid var(--gold); }
.portfolio-title-row { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; }
.portfolio-hero h1 { margin: 0 0 14px; font-family: var(--serif); font-size: 58px; line-height: 1; font-weight: 500; }
.portfolio-hero p { max-width: 760px; margin: 0; color: #afc0b8; }
.library-count { min-width: 170px; padding: 18px; border: 1px solid var(--line-dark); border-radius: 8px; }
.library-count strong { display: block; color: var(--mint); font-family: var(--serif); font-size: 38px; line-height: 1; }
.library-count span { color: #98aaa2; font-size: 12px; }
.research-layout { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; padding-block: 36px 80px; }
.filter-panel { position: sticky; top: 94px; padding: 20px; border: 1px solid var(--line); background: #fff; border-radius: 8px; }
.filter-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.filter-head h2 { margin: 0; font-family: var(--serif); font-size: 24px; }
.filter-reset { padding: 0; border: 0; color: var(--coral); background: transparent; font-weight: 850; font-size: 12px; }
.filter-group { display: grid; gap: 7px; margin-bottom: 15px; }
.filter-group label { font-size: 12px; font-weight: 850; color: var(--forest); }
.filter-group input, .filter-group select { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid #c5cbc7; border-radius: 4px; background: #fbfbf8; }
.quick-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chip { min-height: 32px; padding: 0 9px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); background: #fff; font-size: 12px; font-weight: 800; }
.filter-chip.active { color: var(--forest); background: var(--mint-soft); border-color: #88cda4; }
.score-legend { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.score-legend > strong { font-size: 12px; }
.score-legend > p { margin: 11px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.legend-row { display: grid; grid-template-columns: 52px 1fr; gap: 8px; margin-top: 7px; font-size: 11px; color: var(--muted); }
.legend-row strong { color: var(--forest); }
.results-toolbar { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.results-toolbar strong { color: var(--forest); }
.results-toolbar span { color: var(--muted); font-size: 13px; }
.view-controls { display: flex; align-items: center; gap: 9px; }
.view-controls select { min-height: 38px; border: 1px solid var(--line); border-radius: 4px; background: #fff; padding: 0 9px; font-size: 12px; }
.stock-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stock-card { min-width: 0; display: grid; grid-template-rows: auto 1fr auto; min-height: 280px; padding: 19px; border: 1px solid var(--line); border-radius: 8px; background: #fff; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.stock-card:hover { transform: translateY(-3px); border-color: #9ca9a2; box-shadow: 0 14px 28px rgba(8,28,22,.09); }
.stock-top { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.stock-ticker { margin: 0; color: var(--forest); font-size: 21px; font-weight: 950; }
.stock-company { min-height: 40px; margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.score-stack { width: 58px; display: grid; justify-items: center; gap: 3px; }
.score-stack > span { color: var(--muted); font-size: 8px; font-weight: 900; text-transform: uppercase; }
.score-badge { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--mint); color: var(--forest); font-family: var(--serif); font-size: 19px; }
.score-badge.strong { border-color: var(--mint); background: var(--mint-soft); }
.score-badge.mid { border-color: var(--gold); }
.score-badge.low { border-color: var(--coral); }
.score-badge.loading { color: #78847e; border-color: #cbd2ce; border-style: dashed; animation: score-pulse 1.4s ease-in-out infinite; }
.score-badge.unavailable { color: #78847e; border-color: #cbd2ce; font-family: var(--sans); font-size: 11px; }
@keyframes score-pulse { 50% { opacity: .5; } }
.stock-meta { display: flex; flex-wrap: wrap; gap: 5px; margin: 15px 0; }
.tag { max-width: 100%; padding: 4px 7px; border-radius: 3px; color: #405049; background: #eef0eb; font-size: 10px; font-weight: 800; overflow-wrap: anywhere; }
.tag.risk-low { background: var(--mint-soft); color: #17633c; }
.tag.risk-medium { background: #f4ebcf; color: #765a11; }
.tag.risk-high { background: #fbe1df; color: #963a34; }
.stock-thesis { margin: 0; padding-left: 17px; color: var(--muted); font-size: 12px; }
.stock-thesis li + li { margin-top: 5px; }
.stock-actions { display: flex; gap: 7px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.stock-actions button, .stock-actions a { flex: 1; min-height: 35px; display: inline-flex; align-items: center; justify-content: center; padding-inline: 8px; border: 1px solid var(--line); border-radius: 3px; background: #fff; color: var(--forest); font-size: 11px; font-weight: 850; text-align: center; }
.stock-actions button:hover, .stock-actions a:hover { background: var(--paper-2); }
.stock-actions button.selected { background: var(--forest); color: #fff; border-color: var(--forest); }
.empty-state { grid-column: 1 / -1; padding: 60px 24px; text-align: center; border: 1px solid var(--line); background: #fff; }
.empty-state h3 { font-family: var(--serif); font-size: 28px; }
.load-more { display: flex; justify-content: center; margin-top: 26px; }
.compare-bar { position: fixed; left: 50%; bottom: 18px; z-index: 90; width: min(720px, calc(100% - 28px)); display: none; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 12px 14px; color: #fff; background: var(--forest); border: 1px solid rgba(255,255,255,.2); border-radius: 8px; box-shadow: 0 18px 40px rgba(0,0,0,.28); transform: translateX(-50%); }
.compare-bar.open { display: grid; }
.compare-symbols { display: flex; gap: 7px; flex-wrap: wrap; }
.compare-symbols span { padding: 5px 8px; color: var(--forest); background: var(--mint); border-radius: 3px; font-size: 12px; font-weight: 900; }
.compare-actions { display: flex; gap: 7px; }
.detail-dialog, .compare-dialog { width: min(760px, calc(100% - 28px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: 8px; box-shadow: 0 30px 90px rgba(0,0,0,.36); background: #fff; }
.compare-dialog { width: min(980px, calc(100% - 28px)); }
.detail-dialog::backdrop, .compare-dialog::backdrop { background: rgba(2,12,8,.72); backdrop-filter: blur(4px); }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px; color: #fff; background: var(--forest); }
.dialog-head h2 { margin: 0; font-family: var(--serif); font-size: 34px; }
.dialog-head p { margin: 4px 0 0; color: #9fb2a9; }
.dialog-close { width: 38px; height: 38px; border: 1px solid var(--line-dark); border-radius: 4px; color: #fff; background: transparent; font-size: 24px; line-height: 1; }
.dialog-body { padding: 24px; overflow: auto; }
.detail-score-row { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 24px; border: 1px solid var(--line); }
.detail-metric { padding: 17px; border-right: 1px solid var(--line); }
.detail-metric:last-child { border-right: 0; }
.detail-metric span { display: block; color: var(--muted); font-size: 11px; }
.detail-metric strong { color: var(--forest); font-size: 18px; }
.detail-section-title { margin-bottom: 8px; font-family: var(--serif); font-size: 26px; }
.detail-tags { margin-top: 18px; }
.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.fundamentals-panel { margin-top: 20px; padding: 18px; border: 1px solid #a7b8af; border-radius: 6px; background: #f4faf6; }
.fundamentals-panel > p, .fundamentals-head p, .live-panel p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.fundamentals-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 15px; }
.fundamentals-total { flex: 0 0 auto; width: 48px; height: 48px; display: grid; place-items: center; border: 2px solid var(--mint); border-radius: 50%; color: var(--forest); font-family: var(--serif); font-size: 20px; }
.fundamentals-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: #fff; }
.fundamental-item { min-width: 0; padding: 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fundamental-item > div { display: flex; justify-content: space-between; gap: 10px; }
.fundamental-item span { color: var(--forest); font-size: 11px; font-weight: 850; }
.fundamental-item small { color: var(--muted); font-weight: 700; }
.fundamental-item strong { color: var(--forest); }
.fundamental-item p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; }
.fundamental-item.missing { background: #f4f4f1; }
.source-note { margin: 12px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.compare-note { margin-top: 18px; }
.live-panel { margin-top: 20px; padding: 18px; border: 1px solid var(--line); background: #f7f8f4; border-radius: 6px; }
.live-price { display: flex; align-items: baseline; gap: 12px; }
.live-price strong { font-family: var(--serif); font-size: 32px; }
.live-up { color: #16814b; }
.live-down { color: var(--danger); }
.compare-table-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.compare-table th, .compare-table td { padding: 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table th { color: var(--muted); font-size: 11px; text-transform: uppercase; }

.guide-layout { display: grid; grid-template-columns: 235px 1fr; gap: 48px; padding-block: 54px 90px; align-items: start; }
.guide-nav { position: sticky; top: 100px; display: grid; gap: 5px; }
.guide-nav a { padding: 9px 11px; border-left: 2px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 750; }
.guide-nav a:hover, .guide-nav a.active { color: var(--forest); border-left-color: var(--coral); background: #fff; }
.guide-chapter { scroll-margin-top: 110px; padding: 0 0 58px; margin-bottom: 58px; border-bottom: 1px solid var(--line); }
.chapter-number { color: var(--coral); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.guide-chapter h2 { margin: 8px 0 18px; font-family: var(--serif); font-size: 42px; line-height: 1.08; font-weight: 500; }
.guide-chapter > p { font-size: 17px; }
.lesson-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px; }
.lesson-card { padding: 20px; border: 1px solid var(--line); background: #fff; border-radius: 8px; }
.lesson-card h3 { margin-bottom: 8px; font-family: var(--serif); font-size: 22px; }
.lesson-card p { margin-bottom: 0; font-size: 13px; }
.tool-panel { margin-top: 26px; padding: 26px; color: #fff; background: var(--forest); border-radius: 8px; }
.tool-panel h3 { margin-bottom: 6px; font-family: var(--serif); font-size: 28px; }
.tool-panel > p { color: #a8b9b1; }
.tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; margin-top: 18px; }
.tool-field { display: grid; gap: 6px; }
.tool-field label { color: #c3d0ca; font-size: 12px; font-weight: 800; }
.tool-field input, .tool-field select { min-height: 44px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.22); border-radius: 4px; color: #fff; background: #12362c; }
.tool-output { grid-column: 1 / -1; margin-top: 7px; padding: 18px; color: var(--forest); background: var(--mint); border-radius: 6px; }
.tool-output strong { display: block; font-family: var(--serif); font-size: 30px; }
.quiz-options { display: grid; gap: 8px; margin-top: 16px; }
.quiz-option { padding: 12px 14px; text-align: left; border: 1px solid rgba(255,255,255,.2); border-radius: 4px; color: #fff; background: #12362c; }
.quiz-option:hover { border-color: var(--mint); }
.quiz-option.correct { color: var(--forest); background: var(--mint); }
.quiz-option.wrong { background: var(--danger); }

.method-band { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: #fff; }
.method-band.six-parts { grid-template-columns: repeat(3, 1fr); }
.method-band.six-parts .method-part:nth-child(3) { border-right: 0; }
.method-band.six-parts .method-part:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
.method-part { padding: 22px; border-right: 1px solid var(--line); }
.method-part:last-child { border-right: 0; }
.method-part strong { display: block; color: var(--forest); font-family: var(--serif); font-size: 30px; }
.method-part span { font-size: 12px; color: var(--muted); }
.score-table { width: 100%; border-collapse: collapse; background: #fff; }
.score-table th, .score-table td { padding: 16px; border-bottom: 1px solid var(--line); text-align: left; }
.score-table th { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.score-table td:first-child { color: var(--forest); font-weight: 900; }

.thanks-wrap { min-height: calc(100vh - 111px); display: grid; place-items: center; padding: 40px 20px; color: #fff; background: var(--forest); }
.thanks-card { width: min(620px, 100%); padding: 42px; border: 1px solid var(--line-dark); border-radius: 8px; background: #0b251e; text-align: center; box-shadow: 18px 18px 0 #05110d; }
.thanks-mark { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 24px; border-radius: 50%; color: var(--forest); background: var(--mint); font-size: 30px; font-weight: 900; }
.thanks-card h1 { font-family: var(--serif); font-size: 46px; font-weight: 500; }
.thanks-card p { color: #a8b9b1; }

.site-footer { color: #fff; background: #050b08; border-top: 1px solid #25312c; }
.footer-grid { display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 48px; padding-block: 54px 40px; }
.footer-brand p { max-width: 420px; color: #85968e; font-size: 14px; }
.footer-title { margin-bottom: 12px; color: var(--gold); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: #bac5c0; font-size: 13px; }
.footer-links a:hover { color: var(--mint); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-block: 18px; border-top: 1px solid #25312c; color: #6f7f77; font-size: 11px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Dedicated stock research file */
.stock-file-head { padding-block: 28px 32px; color: #fff; background: var(--forest); border-bottom: 1px solid var(--line-dark); }
.stock-breadcrumb { display: flex; gap: 8px; margin-bottom: 22px; color: #94a79e; font-size: 11px; }
.stock-breadcrumb a:hover { color: var(--mint); }
.stock-identity-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: center; }
.stock-file-title { min-width: 0; display: flex; align-items: center; gap: 18px; }
.stock-symbol-mark { width: 68px; height: 68px; flex: 0 0 68px; display: grid; place-items: center; border: 1px solid rgba(130,230,170,.45); color: var(--mint); background: #0c2a21; font-size: 19px; font-weight: 950; }
.stock-file-title .eyebrow { margin-bottom: 5px; color: var(--gold); }
.stock-file-title h1 { max-width: 850px; margin: 0; color: #fff; font-family: var(--serif); font-size: 40px; font-weight: 500; line-height: 1.08; overflow-wrap: anywhere; }
.stock-file-title p { margin: 7px 0 0; color: #9eb0a8; font-size: 13px; }
.stock-quote { min-width: 180px; display: grid; justify-items: end; }
.stock-quote > span { color: #8fa39a; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.stock-quote > strong { color: #fff; font-family: var(--serif); font-size: 36px; font-weight: 500; }
.stock-quote > small { color: #9eb0a8; }
.positive { color: #16814b; }
.negative { color: var(--danger); }
.stock-file-head .positive { color: var(--mint); }
.stock-file-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; padding-left: 86px; }
.stock-section-nav { position: sticky; top: 76px; z-index: 80; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.stock-section-nav .shell { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.stock-section-nav a { flex: 0 0 auto; padding: 13px 15px; color: var(--muted); font-size: 11px; font-weight: 850; }
.stock-section-nav a:hover { color: var(--forest); background: var(--paper-2); }
.stock-section { padding-block: 58px; scroll-margin-top: 124px; }
.stock-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 22px; }
.stock-section-heading h2 { margin: 0; color: var(--forest); font-family: var(--serif); font-size: 38px; font-weight: 500; }
.stock-section-heading > p { max-width: 560px; margin: 0; text-align: right; font-size: 12px; }
.stock-overview-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, .75fr); gap: 18px; }
.chart-tool, .score-panel, .financial-tool { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.tool-heading { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.tool-heading > div:first-child { min-width: 0; display: grid; }
.tool-heading strong { color: var(--forest); font-size: 14px; overflow-wrap: anywhere; }
.tool-label { color: var(--muted); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.segment-control { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 5px; background: #f1f2ee; }
.segment-control button { min-width: 42px; min-height: 30px; padding: 0 9px; border: 0; border-radius: 3px; color: var(--muted); background: transparent; font-size: 10px; font-weight: 850; }
.segment-control button.active { color: #fff; background: var(--forest); }
.chart-stage { position: relative; min-height: 300px; padding: 12px 12px 0; }
.chart-stage canvas { width: 100%; height: 286px; display: block; touch-action: none; }
.chart-empty, .wide-empty-state, .panel-empty { min-height: 180px; display: grid; place-items: center; padding: 26px; color: var(--muted); text-align: center; }
.chart-tooltip { position: absolute; z-index: 4; width: 118px; display: grid; padding: 8px 10px; border: 1px solid var(--line-dark); border-radius: 4px; color: #fff; background: var(--forest); pointer-events: none; box-shadow: var(--shadow); }
.chart-tooltip strong { font-size: 12px; }
.chart-tooltip span { color: #a9b9b1; font-size: 9px; }
.chart-foot { min-height: 42px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.chart-foot span { padding: 11px 14px; border-right: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.chart-foot span:last-child { border-right: 0; }
.score-panel { padding: 18px; }
.score-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.score-panel-head > div:first-child { display: grid; }
.score-panel-head strong { color: var(--forest); font-size: 14px; }
.score-panel-total { width: 58px; height: 58px; flex: 0 0 58px; display: grid; place-items: center; border: 2px solid var(--mint); border-radius: 50%; color: var(--forest); font-family: var(--serif); font-size: 22px; }
.score-panel-meta { display: flex; justify-content: space-between; gap: 10px; padding-block: 10px; color: var(--muted); font-size: 9px; }
.score-component-list { display: grid; gap: 10px; }
.score-component > div:first-child { display: flex; justify-content: space-between; gap: 10px; color: var(--forest); font-size: 10px; font-weight: 850; }
.score-component small { color: var(--muted); }
.score-component p { margin: 3px 0 0; font-size: 9px; line-height: 1.35; }
.component-track { height: 4px; margin-top: 5px; overflow: hidden; background: #e5e8e2; }
.component-track i { display: block; height: 100%; background: var(--blue); }
.score-method-link { display: inline-block; margin-top: 15px; color: var(--forest); font-size: 10px; font-weight: 850; text-decoration: underline; text-underline-offset: 3px; }
.content-skeleton { height: 34px; background: #eceee9; animation: score-pulse 1.4s ease-in-out infinite; }
.stock-metric-strip { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 18px; border: 1px solid var(--line); background: #fff; }
.stock-metric-strip > div { min-width: 0; padding: 14px; border-right: 1px solid var(--line); }
.stock-metric-strip > div:last-child { border-right: 0; }
.stock-metric-strip span { display: block; color: var(--muted); font-size: 9px; }
.stock-metric-strip strong { color: var(--forest); font-size: 17px; overflow-wrap: anywhere; }
.financial-chart-stage { min-height: 330px; }
.financial-chart-stage canvas { height: 315px; }
.financial-table-wrap { margin-top: 18px; overflow-x: auto; border: 1px solid var(--line); background: #fff; }
.financial-table { width: 100%; min-width: 860px; border-collapse: collapse; }
.financial-table th, .financial-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: right; font-size: 11px; white-space: nowrap; }
.financial-table thead th { color: var(--muted); background: #f3f4f0; font-size: 9px; text-transform: uppercase; }
.financial-table th:first-child, .financial-table td:first-child { text-align: left; }
.financial-table tbody tr:last-child th, .financial-table tbody tr:last-child td { border-bottom: 0; }
.earnings-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.earnings-card { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.earnings-period { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.earnings-period span { color: var(--forest); font-weight: 850; }
.earnings-period strong { font-size: 13px; }
.earnings-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.earnings-values div { min-width: 0; }
.earnings-values span { display: block; color: var(--muted); font-size: 8px; }
.earnings-values strong { color: var(--forest); font-size: 12px; overflow-wrap: anywhere; }
.wide-empty-state { grid-column: 1 / -1; min-height: 160px; border: 1px solid var(--line); background: #fff; }
.stock-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stock-news-card { min-width: 0; display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
.stock-news-card > div { padding: 15px; }
.news-image { display: block; aspect-ratio: 16 / 8; overflow: hidden; background: #e8eae4; }
.news-image img { width: 100%; height: 100%; object-fit: cover; }
.news-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 8px; text-transform: uppercase; }
.stock-news-card h3 { margin: 8px 0 6px; color: var(--forest); font-family: var(--serif); font-size: 18px; line-height: 1.25; }
.stock-news-card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.stock-news-card p { margin: 0; font-size: 10px; line-height: 1.45; }
.risk-register { border-top: 1px solid var(--line); }
.risk-item { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; gap: 18px; align-items: start; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.risk-number { color: var(--gold); font-family: var(--serif); font-size: 22px; }
.risk-item h3 { margin: 0 0 4px; color: var(--forest); font-size: 15px; }
.risk-item p { max-width: 800px; margin: 0; font-size: 11px; }
.risk-level { min-width: 62px; padding: 4px 7px; border-radius: 3px; text-align: center; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.risk-level.high { color: #8e2924; background: #fbe1df; }
.risk-level.medium { color: #765a11; background: #f4ebcf; }
.risk-level.monitor { color: #33403a; background: #e5e9e4; }
.notes-status { padding: 6px 9px; border: 1px solid var(--line); color: var(--muted); background: #fff; font-size: 9px; }
.thesis-evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 22px; border: 1px solid var(--line); background: #fff; }
.thesis-evidence-grid article { padding: 18px; }
.thesis-evidence-grid article + article { border-left: 1px solid var(--line); }
.thesis-evidence-grid span { color: var(--forest); font-size: 11px; font-weight: 900; }
.thesis-evidence-grid ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 11px; }
.thesis-evidence-grid li + li { margin-top: 7px; }
.thesis-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.thesis-form .field textarea { min-height: 118px; background: #fff; }
.thesis-form-actions { grid-column: 1 / -1; display: flex; gap: 9px; }
.stock-not-found { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.stock-not-found h1 { color: var(--forest); font-family: var(--serif); font-size: 44px; }

@media (max-width: 1040px) {
  .home-hero h1 { font-size: 58px; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .stock-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .research-layout { grid-template-columns: 250px 1fr; }
  .page-hero h1 { font-size: 52px; }
  .stock-overview-grid { grid-template-columns: 1fr; }
  .stock-metric-strip { grid-template-columns: repeat(3, 1fr); }
  .stock-metric-strip > div:nth-child(3) { border-right: 0; }
  .stock-metric-strip > div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .earnings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stock-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .shell, .narrow { width: min(100% - 28px, 1180px); }
  .market-note { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links { position: fixed; inset: 111px 0 auto; display: none; padding: 18px 14px 28px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 18px 35px rgba(0,0,0,.12); }
  .nav-links.open { display: grid; }
  .nav-links a { min-height: 46px; display: flex; align-items: center; padding-inline: 14px; }
  .nav-links .nav-cta { margin: 4px 0 0; justify-content: center; }
  .hero-grid, .page-hero-inner, .content-grid, .form-layout, .split-feature { grid-template-columns: 1fr; }
  .hero-grid { min-height: auto; padding-block: 58px 70px; }
  .research-console { max-width: 620px; box-shadow: 12px 12px 0 #06130f; }
  .page-hero-inner { min-height: auto; gap: 30px; }
  .feature-grid, .principle-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: auto; }
  .feature-card h3 { margin-top: 28px; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-heading { grid-template-columns: 1fr; gap: 14px; }
  .cta-band { grid-template-columns: 1fr; box-shadow: 9px 9px 0 var(--forest); }
  .research-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .filter-panel .filter-body { display: none; }
  .filter-panel.open .filter-body { display: block; }
  .filter-head { margin-bottom: 0; }
  .filter-panel.open .filter-head { margin-bottom: 18px; }
  .filter-toggle { display: inline-flex !important; }
  .stock-section-nav { top: 76px; }
  .stock-identity-row { grid-template-columns: 1fr; }
  .stock-quote { justify-items: start; padding-left: 86px; }
  .stock-section-heading { align-items: start; }
  .stock-section-heading > p { max-width: 400px; text-align: left; }
  .segment-control { max-width: 100%; overflow-x: auto; }
  .financial-tool .tool-heading { align-items: flex-start; flex-direction: column; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-nav { position: static; display: flex; overflow-x: auto; padding-bottom: 8px; }
  .guide-nav a { min-width: max-content; border-left: 0; border-bottom: 2px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (min-width: 821px) { .filter-toggle { display: none !important; } }

@media (max-width: 600px) {
  body { font-size: 15px; }
  .brand-label { display: none; }
  .brand-name { gap: 5px; font-size: 18px; }
  .beta-badge { padding-inline: 5px; font-size: 7px; }
  .home-hero h1 { font-size: 44px; }
  .home-hero .hero-copy > p { font-size: 16px; }
  .research-console { box-shadow: 7px 7px 0 #06130f; }
  .section { padding-block: 68px; }
  .section-tight { padding-block: 48px; }
  .section-heading h2, .editorial-block h2 { font-size: 37px; }
  .hero-proof { display: grid; grid-template-columns: repeat(2, 1fr); }
  .page-hero h1, .portfolio-hero h1 { font-size: 43px; }
  .stock-file-title { align-items: flex-start; }
  .stock-symbol-mark { width: 54px; height: 54px; flex-basis: 54px; font-size: 15px; }
  .stock-file-title h1 { font-size: 31px; }
  .stock-file-tags, .stock-quote { padding-left: 0; }
  .stock-section { padding-block: 44px; }
  .stock-section-heading { display: grid; }
  .stock-section-heading h2 { font-size: 32px; }
  .tool-heading { align-items: flex-start; flex-direction: column; }
  .chart-stage { min-height: 250px; padding-inline: 4px; }
  .chart-stage canvas { height: 240px; }
  .financial-chart-stage canvas { height: 270px; }
  .chart-foot { grid-template-columns: repeat(2, 1fr); }
  .chart-foot span:nth-child(2) { border-right: 0; }
  .chart-foot span:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stock-metric-strip { grid-template-columns: repeat(2, 1fr); }
  .stock-metric-strip > div:nth-child(3) { border-right: 1px solid var(--line); }
  .stock-metric-strip > div:nth-child(even) { border-right: 0; }
  .stock-metric-strip > div:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .earnings-grid, .stock-news-grid, .thesis-evidence-grid, .thesis-form { grid-template-columns: 1fr; }
  .thesis-evidence-grid article + article { border-left: 0; border-top: 1px solid var(--line); }
  .risk-item { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; }
  .risk-level { grid-column: 2; justify-self: start; }
  .thesis-form .field-full, .thesis-form-actions { grid-column: 1; }
  .page-hero-inner { padding-block: 48px; }
  .portfolio-title-row { grid-template-columns: 1fr; }
  .library-count { min-width: 0; width: 100%; }
  .stock-grid { grid-template-columns: 1fr; }
  .stock-card { min-height: 250px; }
  .rubric-grid, .lesson-grid, .tool-grid, .field-grid { grid-template-columns: 1fr; }
  .field-full, .tool-output { grid-column: auto; }
  .timeline-step { grid-template-columns: 60px 1fr; }
  .timeline-score { grid-column: 2; text-align: left; }
  .method-band { grid-template-columns: repeat(2, 1fr); }
  .method-band.six-parts { grid-template-columns: repeat(2, 1fr); }
  .method-band.six-parts .method-part:nth-child(3) { border-right: 1px solid var(--line); }
  .method-band.six-parts .method-part:nth-child(even) { border-right: 0; }
  .method-band.six-parts .method-part:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .method-part:nth-child(2) { border-right: 0; }
  .method-part:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .detail-score-row { grid-template-columns: 1fr; }
  .detail-metric { border-right: 0; border-bottom: 1px solid var(--line); }
  .detail-metric:last-child { border-bottom: 0; }
  .fundamentals-grid { grid-template-columns: 1fr; }
  .compare-bar { grid-template-columns: 1fr; }
  .compare-actions { width: 100%; }
  .compare-actions .button { flex: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { display: grid; }
  .cta-band, .thanks-card { padding: 28px; }
  .thanks-card h1 { font-size: 38px; }
}
