:root {
  --ink: #0F1419;
  --bone: #F4F1EB;
  --yardstick: #C84B31;
  --slate: #5F6772;
  --wash: #E5DFD2;
  --max-width: 760px;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bone);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  border-bottom: 1px solid var(--wash);
  padding: 16px 0;
  position: sticky;
  top: 0;
  background: rgba(244, 241, 235, 0.92);
  backdrop-filter: blur(8px);
  z-index: 10;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wordmark {
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.028em;
  color: var(--yardstick);
  text-decoration: none;
  line-height: 1;
}
.nav-cta {
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  transition: all 0.15s ease;
}
.nav-cta:hover { background: var(--ink); color: var(--bone); }

/* Sections */
main { display: block; }
section { padding: 88px 0; }
section + section { padding-top: 0; }

/* Type */
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yardstick);
  margin: 0 0 16px;
}
h1 {
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 900;
  font-size: 68px;
  line-height: 1.02;
  letter-spacing: -0.028em;
  color: var(--ink);
  margin: 0 0 24px;
}
h2 {
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.018em;
  margin: 0 0 24px;
}
h3 {
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.005em;
  margin: 0 0 12px;
}
.lede {
  font-size: 22px;
  line-height: 1.45;
  color: var(--slate);
  margin: 0 0 32px;
  max-width: 580px;
}
p { margin: 0 0 16px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 28px;
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.005em;
  text-decoration: none;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.05s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary { background: var(--yardstick); color: var(--bone); }
.btn-primary:hover:not(:disabled) { opacity: 0.92; }
.btn-on-dark { box-shadow: 0 0 0 1px rgba(244, 241, 235, 0.1); }

/* Hero */
.hero { padding: 96px 0 88px; }
.hero-meta {
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-size: 14px;
  color: var(--slate);
  margin-top: 18px;
}

/* How-section intro paragraph */
.how-intro {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
  max-width: 620px;
  margin: 0 0 16px;
}

/* Audit section — diagnostic questions list */
.diagnostic-questions {
  list-style: none;
  padding: 0;
  margin: 24px 0 28px;
  counter-reset: dq;
  max-width: 620px;
}
.diagnostic-questions li {
  counter-increment: dq;
  padding: 18px 0 18px 56px;
  position: relative;
  font-family: 'Source Serif 4', serif;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
  border-top: 1px solid var(--wash);
}
.diagnostic-questions li:last-child { border-bottom: 1px solid var(--wash); }
.diagnostic-questions li::before {
  content: counter(dq, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--yardstick);
  letter-spacing: 0.06em;
}
.audit-detail {
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-size: 14px;
  color: var(--slate);
  margin: 0 0 16px;
  max-width: 620px;
}
.audit-variants {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--slate);
  letter-spacing: 0.04em;
  margin: 0 0 36px;
}
.audit-variants a {
  color: var(--yardstick);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 75, 49, 0.3);
}
.audit-variants a:hover {
  border-bottom-color: var(--yardstick);
}

/* Per-question glossary expandable */
.audit-glossary {
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(200, 75, 49, 0.04);
  border-left: 2px solid var(--yardstick);
  border-radius: 0 4px 4px 0;
}
.audit-glossary summary {
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--yardstick);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  list-style: none;
  user-select: none;
}
.audit-glossary summary::-webkit-details-marker { display: none; }
.audit-glossary summary::before {
  content: '+';
  display: inline-block;
  width: 14px;
  font-weight: 700;
  color: var(--yardstick);
}
.audit-glossary[open] summary::before { content: '−'; }
.audit-glossary dl {
  margin: 12px 0 0;
  padding: 0;
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.55;
}
.audit-glossary dt {
  font-weight: 700;
  margin-top: 10px;
  color: var(--ink);
}
.audit-glossary dt:first-child { margin-top: 0; }
.audit-glossary dd {
  margin: 2px 0 0;
  color: var(--slate);
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
}
.steps li {
  padding: 28px 0;
  border-top: 1px solid var(--wash);
}
.steps li:last-child { border-bottom: 1px solid var(--wash); }
.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--yardstick);
  margin: 0 0 8px;
}

/* Audit section */
.audit { background: var(--bone); padding-top: 88px; padding-bottom: 88px; }

/* Guide CTA */
.guide-cta {
  background: var(--ink);
  color: var(--bone);
  text-align: center;
  padding: 96px 0;
}
.guide-cta h2, .guide-cta .lede { color: var(--bone); }
.guide-cta p { color: var(--wash); max-width: 580px; margin-left: auto; margin-right: auto; }
.guide-cta .eyebrow { color: var(--yardstick); }
.guide-cta .price {
  font-family: 'JetBrains Mono', monospace;
  color: var(--yardstick);
  font-size: 17px;
  margin: 24px auto;
  letter-spacing: 0.02em;
}
.guide-cta .bump-note {
  font-size: 13px;
  font-family: 'Inter Tight', system-ui, sans-serif;
  margin-top: 20px;
}

/* Footer */
footer {
  padding: 56px 0 32px;
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-size: 14px;
  color: var(--slate);
  border-top: 1px solid var(--wash);
}
footer a { color: var(--yardstick); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.disclosure {
  font-style: italic;
  margin-bottom: 12px;
  max-width: 580px;
}

/* === Audit form === */
.audit-dim-header {
  margin: 32px 0 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
}
.audit-dim-header .step-num {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.audit-question {
  border-bottom: 1px solid var(--wash);
  padding: 24px 0;
}
.qmeta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--slate);
  margin-bottom: 6px;
}
.qmeta .qcount { color: var(--yardstick); }
.qtext {
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 600;
  font-size: 19px;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 16px;
}
.audit-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.audit-options label {
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 16px;
  border: 1.5px solid var(--wash);
  border-radius: 4px;
  background: #ffffff;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.audit-options label:hover { border-color: var(--yardstick); }
.audit-options input { margin-top: 3px; accent-color: var(--yardstick); }
.audit-options label:has(input:checked) {
  border-color: var(--yardstick);
  background: rgba(200, 75, 49, 0.05);
}

.audit-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 36px 0;
  gap: 16px;
  flex-wrap: wrap;
}
.audit-progress {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--slate);
}

/* Result panel */
#audit-result {
  margin-top: 40px;
  background: var(--ink);
  color: var(--bone);
  padding: 48px;
  border-radius: 6px;
  scroll-margin-top: 80px;
}
#audit-result h3 { color: var(--bone); }
.result-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--yardstick);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.score-block {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}
.score {
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 900;
  font-size: 96px;
  letter-spacing: -0.04em;
  color: var(--yardstick);
  line-height: 1;
}
.score-max {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  color: var(--wash);
}
.stage {
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 700;
  font-size: 26px;
  margin: 24px 0 6px;
  letter-spacing: -0.01em;
}
.stage-headline {
  font-family: 'Source Serif 4', serif;
  font-size: 17px;
  color: var(--wash);
  margin-bottom: 32px;
  max-width: 540px;
}
.recs {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.recs li {
  padding: 18px 0;
  border-top: 1px solid #2a2f36;
}
.recs li:last-child { border-bottom: 1px solid #2a2f36; }
.rec-name {
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--bone);
  margin: 0 0 6px;
}
.rec-why {
  font-family: 'Source Serif 4', serif;
  color: var(--wash);
  font-size: 16px;
  margin: 0;
  line-height: 1.5;
}
.result-cta {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #2a2f36;
}
.result-cta .small {
  font-size: 13px;
  color: var(--wash);
  font-family: 'Inter Tight', system-ui, sans-serif;
  margin-top: 12px;
}
/* === Phase 2 result-panel additions === */

/* Stage progression bar */
.stage-bar-wrap { margin: 32px 0 40px; }
.stage-bar { width: 100%; height: auto; display: block; }

/* Radar chart */
.radar-wrap { margin: 40px 0; }
.radar-wrap h3 { color: var(--bone); margin: 0 0 8px; }
.radar { width: 100%; max-width: 380px; height: auto; margin: 8px auto 0; display: block; }
.radar-legend {
  display: flex;
  justify-content: center;
  gap: 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--wash);
  margin-top: 12px;
  letter-spacing: 0.04em;
  flex-wrap: wrap;
}
.legend-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  vertical-align: middle;
  margin-right: 8px;
  border-radius: 2px;
}
.legend-swatch.user-swatch {
  background: rgba(200, 75, 49, 0.28);
  border: 2px solid var(--yardstick);
}
.legend-swatch.industry-swatch {
  background: transparent;
  border: 1.5px dashed var(--slate);
}

/* Strengths / Gaps grid */
.dim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0 32px;
}
.dim-card {
  padding: 16px 18px;
  border-radius: 4px;
  border: 1px solid #2a2f36;
}
.dim-card.dim-strength { border-color: rgba(200, 75, 49, 0.45); }
.dim-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.dim-card.dim-strength .dim-eyebrow { color: var(--yardstick); }
.dim-card.dim-weakness .dim-eyebrow { color: var(--slate); }
.dim-name {
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--bone);
  margin: 0 0 4px;
  line-height: 1.25;
}
.dim-score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--yardstick);
  margin: 0 0 8px;
}
.dim-text {
  font-family: 'Source Serif 4', serif;
  font-size: 14px;
  color: var(--wash);
  line-height: 1.5;
  margin: 0;
}

/* Savings callout (Phase 2b) */
.savings-callout {
  background: rgba(200, 75, 49, 0.08);
  border: 1px solid rgba(200, 75, 49, 0.32);
  padding: 28px 32px;
  border-radius: 6px;
  margin: 36px 0 28px;
}
.savings-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yardstick);
  margin: 0 0 8px;
}
.savings-figure {
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 900;
  font-size: 56px;
  letter-spacing: -0.04em;
  color: var(--yardstick);
  line-height: 1;
  margin: 0 0 12px;
}
.savings-context {
  font-family: 'Source Serif 4', serif;
  font-size: 17px;
  margin: 0 0 12px;
  color: var(--bone);
  line-height: 1.4;
}
.savings-method {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(200, 75, 49, 0.22);
}
.savings-method summary {
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: var(--yardstick);
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  list-style: none;
  outline: none;
}
.savings-method summary::-webkit-details-marker { display: none; }
.savings-method summary::before {
  content: '+';
  display: inline-block;
  width: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
}
.savings-method[open] summary::before { content: '−'; }
.savings-math {
  margin: 14px 0 12px;
  padding-left: 20px;
  font-family: 'Source Serif 4', serif;
  font-size: 14.5px;
  color: var(--bone);
  line-height: 1.55;
}
.savings-math li { margin-bottom: 8px; }
.savings-math li::marker { color: var(--yardstick); }
.savings-math strong { color: var(--yardstick); font-weight: 600; }
.savings-math em { font-style: italic; color: var(--bone); }
.savings-disclaimer {
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-size: 12px;
  color: var(--wash);
  font-style: italic;
  line-height: 1.55;
  margin: 12px 0 0;
}

/* Disclosures */
.disclosures {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #2a2f36;
}
.disclosures p {
  font-size: 12px;
  color: var(--slate);
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-style: italic;
  margin: 0 0 6px;
  line-height: 1.5;
}

@media (max-width: 600px) {
  h1 { font-size: 44px; }
  h2 { font-size: 30px; }
  .lede { font-size: 18px; }
  .hero { padding: 72px 0 64px; }
  section { padding: 72px 0; }
  #audit-result { padding: 32px 24px; }
  .score { font-size: 72px; }
  .stage { font-size: 22px; }
  .audit-options label { font-size: 15px; padding: 10px 14px; }
  .qtext { font-size: 17px; }
  .dim-grid { grid-template-columns: 1fr; }
  .radar-legend { gap: 16px; }
  .radar { max-width: 320px; }
}

/* Email capture (post-result, lives inside #audit-result) */
.email-capture {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #2a2f36;
}
.email-capture-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yardstick);
  margin: 0 0 8px;
}
.email-capture-headline {
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--bone);
  margin: 0 0 8px;
}
.email-capture-sub {
  font-family: 'Source Serif 4', serif;
  font-size: 15px;
  color: var(--wash);
  line-height: 1.5;
  margin: 0 0 16px;
  max-width: 540px;
}
.email-capture-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: stretch;
  max-width: 520px;
}
.email-capture-form input[type="email"] {
  flex: 1 1 240px;
  min-width: 0;
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-size: 16px;
  padding: 14px 16px;
  border-radius: 4px;
  border: 1.5px solid #2a2f36;
  background: rgba(244, 241, 235, 0.06);
  color: var(--bone);
  outline: none;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.email-capture-form input[type="email"]::placeholder { color: var(--slate); }
.email-capture-form input[type="email"]:focus {
  border-color: var(--yardstick);
  background: rgba(244, 241, 235, 0.10);
}
.email-capture-form input[type="email"]:disabled { opacity: 0.6; }
.email-capture-form .btn { white-space: nowrap; }
.email-capture-status {
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-size: 13px;
  color: var(--wash);
  margin: 12px 0 0;
  min-height: 1em;
}
.email-capture-status.email-capture-error { color: var(--yardstick); }

@media (max-width: 600px) {
  .email-capture-form { flex-direction: column; }
  .email-capture-form .btn { width: 100%; }
}

/* =====================================================================
 * Bibliography (math + sources) — three surfaces:
 *   .bib-footer  — site-wide footer (light, layered on .audit-glossary)
 *   .bib-inline  — inline in audit result panel (dark, on .savings-method)
 *   #bibliography — full deep-dive section on /methodology/
 * ===================================================================== */
.bib-footer-wrap {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--wash);
}
.bib-footer {
  margin-top: 0;
  background: rgba(15, 20, 25, 0.04);
}
.bib-footer-body { margin-top: 14px; }
.bib-intro {
  font-family: 'Source Serif 4', serif;
  font-size: 14.5px;
  color: var(--slate);
  margin: 0 0 16px;
  line-height: 1.55;
}
.bib-h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yardstick);
  margin: 18px 0 10px;
}
.bib-formula {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  line-height: 1.55;
  background: rgba(15, 20, 25, 0.06);
  border-left: 2px solid var(--yardstick);
  padding: 10px 12px;
  margin: 0 0 6px;
  white-space: pre-wrap;
  overflow-x: auto;
  color: var(--ink);
}
.bib-formula-list { margin: 0; padding: 0; }
.bib-formula-list dt {
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  margin-top: 12px;
}
.bib-formula-list dt:first-child { margin-top: 0; }
.bib-formula-list dd { margin: 4px 0 0; }
.bib-source-short {
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
  padding-left: 22px;
  color: var(--slate);
}
.bib-source-short li { margin-bottom: 4px; }
.bib-source-short a { color: var(--yardstick); text-decoration: none; }
.bib-source-short a:hover { text-decoration: underline; }
.bib-more {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  margin: 18px 0 0;
}
.bib-more a { color: var(--yardstick); text-decoration: none; }
.bib-more a:hover { text-decoration: underline; }

/* Inline (dark) variant — sits inside #audit-result */
.bib-inline {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(200, 75, 49, 0.22);
}
.bib-inline .bib-intro { color: var(--wash); }
.bib-inline .bib-h4 { color: var(--yardstick); }
.bib-inline .bib-formula {
  background: rgba(244, 241, 235, 0.06);
  color: var(--bone);
  border-left-color: var(--yardstick);
}
.bib-inline-body { margin-top: 14px; }
.bib-inline .bib-applied { margin-top: 0; }
.bib-cite {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--slate);
}
.bib-cite a { color: var(--yardstick); text-decoration: none; }
.bib-cite a:hover { text-decoration: underline; }
.bib-cite-line {
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-size: 12px;
  color: var(--slate);
  margin: 6px 0 14px;
  font-style: italic;
}
.bib-inline .bib-cite-line { color: var(--wash); }

/* Tables — used in inline + methodology surfaces.
   Mobile: wrapper scrolls horizontally instead of breaking layout. */
.bib-table-wrap {
  margin: 8px 0 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.bib-table {
  border-collapse: collapse;
  width: 100%;
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-size: 13px;
  min-width: 480px;
}
.bib-table th, .bib-table td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(229, 223, 210, 0.18);
  vertical-align: top;
}
.bib-table thead th {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yardstick);
  font-weight: 500;
  border-bottom: 1.5px solid rgba(200, 75, 49, 0.32);
}
.bib-table tbody th { font-weight: 600; color: var(--bone); }
.bib-table td { color: var(--wash); }
/* Light-on-bone variant for /methodology/ */
.bib-table-light th, .bib-table-light td {
  border-bottom: 1px solid var(--wash);
}
.bib-table-light tbody th { color: var(--ink); }
.bib-table-light td { color: var(--slate); }
.bib-table-light a { color: var(--yardstick); text-decoration: none; }
.bib-table-light a:hover { text-decoration: underline; }
.bib-table-light code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--ink);
  background: rgba(200, 75, 49, 0.08);
  padding: 1px 5px;
  border-radius: 3px;
}

/* Methodology #bibliography section overrides */
#bibliography .bib-section-h3 {
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
}
#bibliography .bib-steps .bib-formula {
  margin-top: 8px;
}
#bibliography .bib-cite a { color: var(--yardstick); }
#bibliography .bib-cite-line { color: var(--slate); }

@media (max-width: 600px) {
  .bib-formula { font-size: 11.5px; }
  #bibliography .bib-section-h3 { font-size: 19px; }
}
