:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f0f3f8;
  --text: #121824;
  --muted: #596579;
  --line: #dbe1eb;
  --brand: #5b6cff;
  --brand-2: #7c3aed;
  --accent: #0ea5e9;
  --green: #10b981;
  --gold: #f59e0b;
  --red: #ef4444;
  --shadow: 0 22px 70px rgba(21, 32, 64, 0.12);
  --radius: 22px;
  --sidebar: 280px;
}

:root.dark {
  --bg: #0b1020;
  --surface: #11182a;
  --surface-2: #172036;
  --text: #edf2ff;
  --muted: #a8b3c7;
  --line: #26324a;
  --brand: #8ea0ff;
  --brand-2: #c084fc;
  --accent: #38bdf8;
  --green: #34d399;
  --gold: #fbbf24;
  --red: #fb7185;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(91, 108, 255, 0.18), transparent 30rem),
    radial-gradient(circle at 20% 10%, rgba(14, 165, 233, 0.14), transparent 28rem),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a { color: inherit; }

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 26px 22px;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(91, 108, 255, 0.3);
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.nav-links {
  display: grid;
  gap: 6px;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 650;
  transition: 160ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--surface-2);
}

.sidebar-card {
  margin-top: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--brand) 12%, var(--surface)), var(--surface));
}

.sidebar-card p { margin: 8px 0 0; color: var(--muted); font-size: 0.94rem; }

main {
  min-width: 0;
  padding: 24px min(5vw, 64px) 80px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 18px;
  background: linear-gradient(to bottom, var(--bg), color-mix(in srgb, var(--bg) 70%, transparent));
  backdrop-filter: blur(12px);
}

.search-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 700px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(21, 32, 64, 0.06);
  color: var(--muted);
}

.search-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.98rem;
}

.ghost-btn,
.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: 160ms ease;
}

.ghost-btn:hover,
.chip:hover,
.chip.active {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  background: color-mix(in srgb, var(--brand) 12%, var(--surface));
}

.section-block {
  margin-top: 28px;
  padding: clamp(24px, 3vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 28px;
  min-height: 530px;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -25% 40%;
  height: 300px;
  background: radial-gradient(circle, rgba(91, 108, 255, 0.26), transparent 65%);
  pointer-events: none;
}

.eyebrow {
  margin: 0;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.4rem, 6vw, 5.8rem); letter-spacing: -0.07em; }
h2 { font-size: clamp(1.75rem, 3vw, 3rem); letter-spacing: -0.045em; }
h3 { font-size: 1.2rem; letter-spacing: -0.02em; }

.lead {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  max-width: 850px;
}

.hero-actions { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 850;
}
.primary-btn { color: white; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.secondary-btn { border: 1px solid var(--line); background: var(--surface); }

.thesis-card {
  position: relative;
  z-index: 1;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--surface) 90%, var(--brand)), var(--surface));
}

blockquote {
  margin: 16px 0 24px;
  font-size: 1.28rem;
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.metric-grid div {
  padding: 14px;
  border-radius: 16px;
  background: var(--surface-2);
}
.metric-grid strong { display: block; font-size: 1.55rem; }
.metric-grid span { color: var(--muted); font-size: 0.82rem; }

.section-heading { max-width: 980px; margin-bottom: 24px; }
.section-heading p:not(.eyebrow) { margin: 12px 0 0; color: var(--muted); font-size: 1.02rem; }
.split-heading { display: flex; justify-content: space-between; gap: 18px; max-width: none; align-items: end; }
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

.recommendation-grid,
.layer-grid,
.cards-grid,
.opportunity-grid,
.concept-grid,
.avoid-grid {
  display: grid;
  gap: 16px;
}
.recommendation-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.layer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.opportunity-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.concept-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.avoid-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card,
.recommendation-card,
.opportunity-card,
.concept-card,
.avoid-card,
.panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.card:hover,
.opportunity-card:hover,
.concept-card:hover,
.recommendation-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  box-shadow: 0 18px 45px rgba(21, 32, 64, 0.10);
}

.card p,
.opportunity-card p,
.concept-card p,
.recommendation-card p,
.avoid-card p { color: var(--muted); margin: 10px 0 0; }

.recommendation-card { position: relative; overflow: hidden; }
.recommendation-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--brand);
}
.recommendation-card.gold::before { background: var(--gold); }
.recommendation-card.blue::before { background: var(--accent); }
.recommendation-card.green::before { background: var(--green); }
.rank {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  margin-bottom: 14px;
  background: var(--surface-2);
  font-weight: 900;
}

.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.tag {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.score-pill {
  --score-color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-weight: 900;
}
.score-dot {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--score-color);
}

.bar-row { display: grid; gap: 8px; margin-top: 16px; }
.bar-item { display: grid; grid-template-columns: 92px 1fr 26px; gap: 8px; align-items: center; font-size: 0.82rem; color: var(--muted); }
.bar-track { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--brand)); }

.matrix-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.score-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.score-table th,
.score-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.score-table th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--surface-2);
  white-space: nowrap;
}
.score-table tr:last-child td { border-bottom: 0; }
.score-table td:first-child,
.score-table th:first-child { position: sticky; left: 0; background: inherit; z-index: 1; font-weight: 850; }
.score-table th:first-child { background: var(--surface-2); }
.score-table.dense { min-width: 1050px; }

.score-badge {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  font-weight: 900;
  color: white;
}
.score-1 { background: #94a3b8; }
.score-2 { background: #60a5fa; }
.score-3 { background: #22c55e; }
.score-4 { background: #f59e0b; }
.score-5 { background: #ef4444; }
.good-score.score-5 { background: #16a34a; }
.good-score.score-4 { background: #22c55e; }
.good-score.score-3 { background: #eab308; }
.good-score.score-2 { background: #f97316; }
.good-score.score-1 { background: #ef4444; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 12px; }
.tab-btn {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-weight: 850;
}
.tab-btn.active { color: var(--text); background: color-mix(in srgb, var(--brand) 14%, var(--surface)); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.detail-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.detail-panel h3 { margin-bottom: 12px; }
.detail-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.detail-panel ul { margin: 8px 0 0; padding-left: 20px; color: var(--muted); }

.timeline { display: grid; gap: 14px; margin-bottom: 20px; }
.timeline-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.timeline-number {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  font-weight: 900;
}
.timeline-price { color: var(--green); font-weight: 900; white-space: nowrap; }
.timeline-item p { margin: 5px 0 0; color: var(--muted); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mini-list { display: grid; gap: 10px; margin-top: 14px; }
.mini-item { padding: 12px; border-radius: 14px; background: var(--surface-2); }
.mini-item strong { display: block; }
.mini-item span { color: var(--muted); font-size: 0.9rem; }
.check-list { padding-left: 0; list-style: none; margin: 14px 0 0; display: grid; gap: 10px; }
.check-list li { color: var(--muted); }
.check-list li::before { content: "✓"; color: var(--green); margin-right: 8px; font-weight: 900; }

.concept-card h3 { display: flex; justify-content: space-between; gap: 12px; }
.concept-meta { margin-top: 14px; display: grid; gap: 8px; }
.concept-meta div { padding: 10px; border-radius: 12px; background: var(--surface-2); font-size: 0.9rem; }
.concept-meta strong { color: var(--text); }

.avoid-card { border-color: color-mix(in srgb, var(--red) 32%, var(--line)); }
.avoid-card h3::before { content: "×"; color: var(--red); margin-right: 8px; }

.source-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.source-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  text-decoration: none;
}
.source-icon { color: var(--brand); font-weight: 900; }
.source-item span { color: var(--muted); display: block; font-size: 0.88rem; margin-top: 3px; }

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  box-shadow: var(--shadow);
}
.back-to-top.show { display: block; }

.hidden-by-search { display: none !important; }
.no-results {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: var(--surface);
}

@media (max-width: 1200px) {
  .layer-grid, .cards-grid, .opportunity-grid, .avoid-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recommendation-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .nav-links { grid-template-columns: repeat(3, 1fr); }
  .sidebar-card { margin-top: 0; }
  main { padding: 18px; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .split-heading, .topbar { align-items: stretch; flex-direction: column; }
  .two-col, .detail-columns, .concept-grid, .source-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links { grid-template-columns: repeat(2, 1fr); }
  .layer-grid, .cards-grid, .opportunity-grid, .avoid-grid { grid-template-columns: 1fr; }
  .section-block { padding: 20px; }
  .metric-grid { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; }
  .timeline-price { white-space: normal; }
}

/* Deep-dive expansion */
.deep-dive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.deep-dive-card {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.deep-dive-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  box-shadow: 0 18px 45px rgba(21, 32, 64, 0.10);
}

.deep-dive-card h3 { margin-top: 16px; max-width: 82%; }
.deep-dive-card p { color: var(--muted); margin: 10px 0 0; }
.deep-dive-card p strong { color: var(--text); }
.deep-index {
  position: absolute;
  right: 18px;
  top: 18px;
  color: color-mix(in srgb, var(--brand) 35%, transparent);
  font-size: 3rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.08em;
}

.card-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--brand);
  font-weight: 900;
  text-decoration: none;
}
.card-link:hover { text-decoration: underline; }

.rating-green { background: color-mix(in srgb, var(--green) 16%, var(--surface-2)); color: var(--green); }
.rating-amber { background: color-mix(in srgb, var(--gold) 16%, var(--surface-2)); color: var(--gold); }
.rating-red { background: color-mix(in srgb, var(--red) 16%, var(--surface-2)); color: var(--red); }

.deep-page .section-block { box-shadow: 0 18px 48px rgba(21, 32, 64, 0.09); }
.deep-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px min(5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
}

.breadcrumb {
  color: var(--muted);
  text-decoration: none;
  font-weight: 850;
}
.breadcrumb:hover { color: var(--text); }
.topbar-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.page-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px min(5vw, 44px) 80px;
}

.deep-hero-block {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 24px;
  align-items: center;
}
.deep-hero-block h1 { font-size: clamp(2.2rem, 5.2vw, 5.3rem); }

.deep-summary-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 12%, var(--surface)), var(--surface));
}
.deep-summary-card h2 { margin-top: 18px; font-size: clamp(1.35rem, 2.4vw, 2rem); }
.deep-summary-card p { color: var(--muted); font-weight: 750; }
.rating-pill {
  display: inline-flex;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 950;
}
.rating-pill.green { background: color-mix(in srgb, var(--green) 16%, var(--surface-2)); color: var(--green); }
.rating-pill.amber { background: color-mix(in srgb, var(--gold) 16%, var(--surface-2)); color: var(--gold); }
.rating-pill.red { background: color-mix(in srgb, var(--red) 16%, var(--surface-2)); color: var(--red); }

.mini-callout {
  margin-top: 16px;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface-2);
  color: var(--muted);
}
.mini-callout strong { color: var(--text); }

.page-nav {
  position: sticky;
  top: 72px;
  z-index: 12;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px);
}
.page-nav a {
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 850;
}
.page-nav a:hover { color: var(--text); background: var(--surface-2); }

.deep-two-col { align-items: stretch; }
.spaced { margin-top: 18px; }
.subsection-title { margin: 24px 0 14px; }

.info-grid,
.module-grid,
.company-grid,
.glossary-grid {
  display: grid;
  gap: 14px;
}
.info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.module-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.company-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.glossary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.mini-panel,
.module-grid article,
.company-card,
.glossary-grid article,
.risk-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.mini-panel p,
.module-grid p,
.glossary-grid p,
.risk-card li { color: var(--muted); }
.mini-panel p,
.module-grid p,
.glossary-grid p { margin: 8px 0 0; }

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.workflow-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.workflow-panel.bad { border-color: color-mix(in srgb, var(--red) 26%, var(--line)); }
.workflow-panel.good { border-color: color-mix(in srgb, var(--green) 26%, var(--line)); }

.step-list,
.question-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.step-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: start;
}
.step-list li span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  font-weight: 950;
}
.step-list p { margin: 3px 0 0; color: var(--muted); }

.company-card {
  display: flex;
  flex-direction: column;
  min-height: 168px;
  text-decoration: none;
  transition: 160ms ease;
}
.company-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  box-shadow: 0 18px 45px rgba(21, 32, 64, 0.09);
}
.company-card span { color: var(--muted); margin-top: 9px; }
.company-card em { margin-top: auto; color: var(--brand); font-style: normal; font-weight: 900; padding-top: 12px; }

.risk-card { border-color: color-mix(in srgb, var(--red) 28%, var(--line)); }
.risk-card.experiment { border-color: color-mix(in srgb, var(--green) 28%, var(--line)); }
.risk-card h3::before { content: "!"; color: var(--red); margin-right: 8px; }
.risk-card.experiment h3::before { content: "✓"; color: var(--green); }

.question-list {
  counter-reset: questions;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.question-list li {
  counter-increment: questions;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
}
.question-list li::before {
  content: counter(questions) ". ";
  color: var(--brand);
  font-weight: 950;
}

.source-chips,
.saved-work,
.prev-next {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.source-chips a {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand);
  font-weight: 850;
  text-decoration: none;
}
.saved-work { margin-top: 20px; }
.prev-next {
  justify-content: space-between;
  margin-top: 22px;
}
.prev-next a {
  max-width: 48%;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 1100px) {
  .module-grid, .company-grid, .glossary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .deep-topbar { position: relative; align-items: stretch; flex-direction: column; }
  .page-shell { padding: 18px; }
  .deep-hero-block, .workflow-grid, .info-grid, .question-list, .deep-dive-grid { grid-template-columns: 1fr; }
  .page-nav { position: relative; top: auto; }
}

@media (max-width: 640px) {
  .module-grid, .company-grid, .glossary-grid { grid-template-columns: 1fr; }
  .prev-next a { max-width: none; width: 100%; }
}
