/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand: #1e293b;
  --brand-light: #334155;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --surface: #ffffff;
  --bg: #f1f5f9;
  --border: #e2e8f0;
  --text: #1e293b;
  --text-muted: #64748b;
  --green: #16a34a;
  --red: #dc2626;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 14px rgba(0,0,0,.04);
  --shadow-lg: 0 4px 24px rgba(0,0,0,.10);
}

html { font-size: 15px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

/* ── Header ────────────────────────────────────────────── */
.site-header {
  background: var(--brand);
  padding: 0 2rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}
.site-header .logo:hover { text-decoration: none; opacity: .9; }
.site-header nav { display: flex; align-items: center; gap: .75rem; }
.site-header nav a {
  color: rgba(255,255,255,.8);
  font-size: .875rem;
  padding: .35rem .75rem;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.site-header nav a:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
  text-decoration: none;
}
.site-header button {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.15);
  padding: .35rem .85rem;
  font-size: .875rem;
  cursor: pointer;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.site-header button:hover { background: rgba(255,255,255,.18); color: #fff; }

/* ── Main Layout ───────────────────────────────────────── */
.main {
  max-width: 1500px;
  margin: 1.5rem auto;
  padding: 0 1.5rem;
}
.main h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--text);
}

.preview-notice {
  background: #fef3c7;
  color: #92400e;
  padding: .6rem 1rem;
  border-radius: 8px;
  font-size: .875rem;
  border: 1px solid #fde68a;
  margin-bottom: 1.25rem;
}
.preview-notice a { color: #b45309; font-weight: 600; }

/* ── Table Card ────────────────────────────────────────── */
.table-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.table-wrap { overflow-x: auto; }

/* ── Data Table ────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
  white-space: nowrap;
}

/* Header */
.data-table thead th {
  background: #f8fafc;
  color: var(--text);
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: .65rem .75rem;
  border-bottom: 2px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
}
.data-table thead th:last-child { border-right: none; }

.data-table .subhead th {
  background: #f8fafc;
  font-weight: 500;
  font-size: .75rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
  padding: .4rem .75rem;
  border-bottom: 2px solid #cbd5e1;
}

/* Sortable headers */
.data-table th.sortable { cursor: pointer; user-select: none; }
.data-table th.sortable:hover { background: #eef2f7; }
.data-table th.sortable::after { content: ' \2195'; color: var(--red); font-size: .85em; }
.data-table th.sort-asc::after { content: ' \2191'; }
.data-table th.sort-desc::after { content: ' \2193'; }

/* Group header borders */
.data-table thead th[colspan] {
  border-left: 2px solid #cbd5e1;
  border-right: 2px solid #cbd5e1;
}

/* Body */
.data-table tbody td {
  padding: .6rem .75rem;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid #f1f5f9;
  vertical-align: middle;
}
.data-table tbody td:last-child { border-right: none; }

.data-table tbody tr { transition: background .1s; }
.data-table tbody tr:hover { background: #f0f7ff; }
.data-table tbody tr:nth-child(even) { background: #fafbfc; }
.data-table tbody tr:nth-child(even):hover { background: #f0f7ff; }

/* Ticker link */
.data-table .ticker-cell a {
  font-weight: 600;
  color: var(--accent);
  transition: color .15s;
}
.data-table .ticker-cell a:hover { color: var(--accent-hover); text-decoration: underline; }

/* Numeric cells */
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* Positive / Negative coloring for QoQ */
.data-table .pct-positive { color: var(--green); font-weight: 500; }
.data-table .pct-negative { color: var(--red); font-weight: 500; }

/* ── Checkbox Cells ────────────────────────────────────── */
.data-table .cb {
  text-align: center;
  white-space: nowrap;
  padding: .4rem .5rem;
}

.cb-val {
  font-size: .75rem;
  color: var(--text-muted);
  margin-left: 2px;
  font-variant-numeric: tabular-nums;
}

.check-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1.5px solid #cbd5e1;
  background: #fff;
  transition: all .15s;
}
.check-box.checked {
  background: var(--accent);
  border-color: var(--accent);
}
.check-box.checked svg {
  display: block;
}
.check-box svg {
  display: none;
  width: 13px;
  height: 13px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Catalysts Column ──────────────────────────────────── */
.data-table .catalysts-cell {
  font-size: .8rem;
  max-width: 320px;
  white-space: normal;
  line-height: 1.45;
  color: var(--text-muted);
}

/* ── Login Page ────────────────────────────────────────── */
.login-card {
  max-width: 380px;
  margin: 3rem auto;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
}
.login-card h1 {
  text-align: center;
  margin-bottom: 1.5rem;
}
.login-form label {
  display: block;
  margin-bottom: 1rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
}
.login-form input {
  width: 100%;
  padding: .6rem .75rem;
  margin-top: .3rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .95rem;
  transition: border-color .15s, box-shadow .15s;
}
.login-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.login-form button {
  width: 100%;
  padding: .65rem 1rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  margin-top: .5rem;
}
.login-form button:hover { background: var(--accent-hover); }

.error {
  color: #b91c1c;
  background: #fef2f2;
  padding: .5rem .75rem;
  border-radius: 6px;
  border: 1px solid #fecaca;
  font-size: .875rem;
  margin-bottom: 1rem;
}

.success {
  color: #15803d;
  background: #f0fdf4;
  padding: .5rem .75rem;
  border-radius: 6px;
  border: 1px solid #bbf7d0;
  font-size: .875rem;
  margin-bottom: 1rem;
}

/* ── Company Page ──────────────────────────────────────── */
.company-card {
  max-width: 600px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}
.report-links { list-style: none; }
.report-links li { margin-bottom: .75rem; }
.report-links a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 500;
  padding: .5rem .75rem;
  border-radius: 6px;
  transition: background .15s;
}
.report-links a:hover {
  background: #eff6ff;
  text-decoration: none;
}

/* ── Error Page ────────────────────────────────────────── */
.error-page {
  text-align: center;
  padding: 4rem 1rem;
}
.error-page h1 {
  font-size: 4rem;
  font-weight: 800;
  color: #cbd5e1;
  margin-bottom: .5rem;
}
.error-page p { color: var(--text-muted); margin-bottom: 1rem; }
.error-page a {
  display: inline-block;
  padding: .5rem 1.25rem;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  font-weight: 500;
  transition: background .15s;
}
.error-page a:hover { background: var(--accent-hover); text-decoration: none; }

/* ── Breadcrumbs ──────────────────────────────────────── */
.breadcrumbs {
  max-width: 1500px;
  margin: .75rem auto 0;
  padding: 0 1.5rem;
  font-size: .8rem;
  color: var(--text-muted);
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { margin: 0 .35rem; opacity: .5; }
.breadcrumbs .current { color: var(--text); font-weight: 500; }

/* ── Tab Bar ──────────────────────────────────────────── */
.tab-bar {
  position: sticky;
  top: 56px;
  z-index: 90;
  background: var(--surface);
  border-bottom: 2px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.tab-bar-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tab-bar-inner::-webkit-scrollbar { display: none; }
.tab-link {
  flex-shrink: 0;
  scroll-snap-align: start;
  padding: .75rem 1.25rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.tab-link:hover {
  color: var(--text);
  text-decoration: none;
  border-bottom-color: var(--border);
}
.tab-link.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

/* ── Action Bar ───────────────────────────────────────── */
.action-bar {
  max-width: 1500px;
  margin: .75rem auto 0;
  padding: 0 1.5rem;
}
.action-bar-inner {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .85rem;
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, color .15s;
  font-family: inherit;
}
.action-btn:hover {
  background: #f8fafc;
  color: var(--text);
  text-decoration: none;
}

/* ── Company Main ─────────────────────────────────────── */
.company-main {
  margin-top: 1rem;
}

/* ── Report Content Container ─────────────────────────── */
.report-content {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}
.report-content .section {
  margin-bottom: 2rem;
}
.report-content .section:last-child {
  margin-bottom: 0;
}

/* ── Tab Title ────────────────────────────────────────── */
.tab-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--text);
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--border);
}

/* ── Extracted Section ────────────────────────────────── */
.extracted-section {
  margin-bottom: 2rem;
}
.extracted-section:last-child {
  margin-bottom: 0;
}
.no-data {
  color: var(--text-muted);
  font-style: italic;
  padding: 2rem;
  text-align: center;
  background: #f8fafc;
  border-radius: 8px;
}

/* ── Overview Metrics Strip ───────────────────────────── */
.overview-metrics-strip {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.metric-chip {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .75rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  min-width: 120px;
}
.metric-chip-label {
  font-size: .75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.metric-chip-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* ── Metrics Layout (sidebar) ─────────────────────────── */
.metrics-layout {
  display: flex;
  gap: 1.5rem;
}
.metrics-main {
  flex: 1;
  min-width: 0;
}

/* ── Signals Sidebar ──────────────────────────────────── */
.signals-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  align-self: flex-start;
  position: sticky;
  top: 140px;
}
.signals-sidebar h3 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: .75rem;
  color: var(--text);
}
.signal-legend {
  font-size: .75rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}
.signal-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: .3rem;
}
.signal-pass { background: var(--green); }
.signal-fail { background: var(--red); }
.signal-list {
  list-style: none;
  padding: 0;
}
.signal-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .8rem;
}
.signal-item:last-child { border-bottom: none; }
.signal-label {
  flex: 1;
  color: var(--text);
}
.signal-label[data-metric] {
  cursor: help;
  border-bottom: 1px dotted var(--text-muted);
}
.signal-value {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.signal-summary {
  margin-top: 1rem;
  padding-top: .75rem;
  border-top: 2px solid var(--border);
  font-size: .85rem;
  color: var(--text);
}

/* ── Quarter Glance ───────────────────────────────────── */
.quarter-glance {
  margin-bottom: 2rem;
}
.quarter-glance h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .75rem;
}
.glance-cards {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.glance-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .75rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  min-width: 140px;
}
.glance-label {
  font-size: .75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.glance-value {
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ── What to Watch ────────────────────────────────────── */
.what-to-watch {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--border);
}

/* ── Thesis Form ──────────────────────────────────────── */
.thesis-intro {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.thesis-form {
  max-width: 700px;
}
.thesis-group {
  margin-bottom: 1.5rem;
}
.thesis-group h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .75rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--border);
}
.thesis-check {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem .75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background .1s;
  font-size: .875rem;
}
.thesis-check:hover { background: #f8fafc; }
.thesis-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.thesis-hint {
  font-size: .75rem;
  color: var(--text-muted);
  margin-left: auto;
}
.thesis-form textarea {
  width: 100%;
  padding: .75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: .875rem;
  resize: vertical;
  transition: border-color .15s;
}
.thesis-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.thesis-actions {
  display: flex;
  gap: .75rem;
  margin-top: 1rem;
}
.thesis-btn {
  padding: .55rem 1.25rem;
  font-weight: 600;
}
.thesis-results {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.thesis-results h3 {
  font-size: 1rem;
  margin-bottom: .75rem;
}
.thesis-result-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem 0;
  font-size: .875rem;
}
.thesis-match { color: var(--green); }
.thesis-mismatch { color: var(--red); }

/* ── Metrics 101 ──────────────────────────────────────── */
.metrics101-intro {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}
.m101-category {
  margin-bottom: 2rem;
}
.m101-category-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--accent);
}
.m101-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
.m101-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
}
.m101-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .75rem;
  color: var(--text);
}
.m101-formula {
  margin-bottom: .75rem;
}
.m101-label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--text-muted);
  margin-bottom: .35rem;
}
.m101-formula code {
  display: block;
  background: #fff;
  padding: .5rem .75rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: .8rem;
  color: var(--text);
}
.m101-bench-table {
  width: 100%;
  font-size: .8rem;
  border-collapse: collapse;
}
.m101-bench-table td {
  padding: .3rem .5rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.m101-bench-table tr:last-child td { border-bottom: none; }
.m101-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: .4rem;
}

/* ── Hero Box (Home Page) ─────────────────────────────── */
.hero-box {
  background: linear-gradient(105deg, var(--brand) 0%, var(--brand-light) 50%, var(--accent) 100%);
  border: none;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.hero-box.collapsed {
  padding: .85rem 2rem;
}
.hero-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero-box h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0;
  letter-spacing: -0.01em;
}
.hero-body {
  overflow: hidden;
  transition: max-height .3s ease, opacity .25s ease, margin-top .3s ease;
  max-height: 500px;
  opacity: 1;
  margin-top: 1rem;
}
.hero-box.collapsed .hero-body {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}
.hero-subtitle {
  color: rgba(255,255,255,.85);
  font-size: 1.05rem;
  margin-bottom: .75rem;
}
.hero-testimonial {
  color: rgba(255,255,255,.75);
  font-style: italic;
  font-size: .95rem;
  margin-bottom: 1.5rem;
}
.hero-options {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-option {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #fff;
  color: var(--text);
  border: none;
  border-radius: 50px;
  padding: .7rem 1.75rem;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  transition: transform .15s, box-shadow .15s;
}
.hero-option:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
  text-decoration: none;
  color: var(--text);
}
.hero-toggle {
  position: absolute;
  right: 0;
  background: none;
  border: none;
  color: rgba(255,255,255,.6);
  cursor: pointer;
  font-size: .8rem;
  padding: .25rem .5rem;
  border-radius: 4px;
  transition: color .15s;
  flex-shrink: 0;
}
.hero-toggle::after { content: 'Hide'; }
.hero-box.collapsed .hero-toggle::after { content: 'Show'; }
.hero-toggle:hover { color: #fff; }

/* ── Tooltip ──────────────────────────────────────────── */
.metric-tooltip {
  position: fixed;
  background: var(--brand);
  color: #fff;
  padding: .6rem .85rem;
  border-radius: 6px;
  font-size: .8rem;
  line-height: 1.4;
  max-width: 280px;
  pointer-events: none;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.metric-tooltip strong { color: #93c5fd; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
  .site-header { padding: 0 1rem; }
  .main { padding: 0 .75rem; margin: 1rem auto; }
  .main h1 { font-size: 1.25rem; }
  .data-table { font-size: .8rem; }
  .data-table thead th { font-size: .7rem; padding: .5rem; }
  .data-table tbody td { padding: .5rem; }
  .check-box { width: 17px; height: 17px; }
  .check-box svg { width: 11px; height: 11px; }

  .breadcrumbs { padding: 0 .75rem; }
  .tab-bar-inner { padding: 0 .75rem; }
  .action-bar { padding: 0 .75rem; }
  .report-content { padding: 1rem; }

  .metrics-layout { flex-direction: column; }
  .signals-sidebar {
    width: 100%;
    position: static;
  }

  .overview-metrics-strip { flex-direction: column; }
  .glance-cards { flex-direction: column; }

  .hero-box { padding: 1.5rem 1rem; }
  .hero-box h2 { font-size: 1.15rem; }
  .hero-options { flex-direction: column; align-items: center; }
  .hero-option { width: 100%; justify-content: center; }

  .m101-cards { grid-template-columns: 1fr; }
}

/* ── Footer ───────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}

/* ── Quarter Results Tables (alignment fix) ──────────── */
.report-content .quarter-section table {
  table-layout: fixed;
  width: 100%;
}
.report-content .quarter-section table th,
.report-content .quarter-section table td {
  text-align: center;
  vertical-align: middle;
}
.report-content .quarter-section table th:first-child,
.report-content .quarter-section table td:first-child {
  text-align: left;
  width: 22%;
}
.report-content .quarter-section table th:nth-child(2),
.report-content .quarter-section table td:nth-child(2) {
  width: 20%;
}
.report-content .quarter-section table th:nth-child(3),
.report-content .quarter-section table td:nth-child(3) {
  width: 14%;
}
.report-content .quarter-section table th:nth-child(4),
.report-content .quarter-section table td:nth-child(4) {
  width: 22%;
}
.report-content .quarter-section table th:nth-child(5),
.report-content .quarter-section table td:nth-child(5) {
  width: 22%;
}

/* ── Stacked Upside (Quarter Review tab) ─────────────── */
.stacked-upside .upside-section {
  grid-template-columns: 1fr !important;
}
.stacked-upside .upside-timeframe ul {
  list-style: disc;
  margin-left: 1.2rem;
}

/* ── Print ────────────────────────────────────────────── */
@media print {
  .site-header, .breadcrumbs, .tab-bar, .action-bar, .hero-box, .site-footer { display: none !important; }
  .report-content { box-shadow: none; border: none; }
  .company-main { margin-top: 0; }
  .signals-sidebar { position: static; break-inside: avoid; }
  body { background: #fff; }
}
