:root {
  /* Match the default dark palette used by the BinfoNet application. */
  --ink: #f8fafc;
  --muted: #94a3b8;
  --paper: #020617;
  --surface: #0f172a;
  --navy: #f8fafc;
  --deep: #020617;
  --teal: #2dd4bf;
  --aqua: #2dd4bf;
  --line: rgba(255, 255, 255, 0.12);
  --gold: #fbbf24;
  --product-panel: #0f172a;
  --product-panel-soft: #1e293b;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  --display-font: "Dosis", ui-sans-serif, system-ui, sans-serif;
  --reading-font: "ABeeZee", ui-sans-serif, system-ui, sans-serif;
  --data-font: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--reading-font);
  font-size: 16.5px;
  line-height: 1.7;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover { color: #5eead4; }

.hero {
  min-height: 0;
  color: white;
  background: var(--deep);
  overflow: hidden;
}

.nav,
.hero-content,
.section,
.case,
footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--deep);
  box-shadow: 0 0 0 100vmax var(--deep);
  clip-path: inset(0 -100vmax);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-family: var(--display-font);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand::before {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  content: "B";
  color: #05221e;
  border-radius: 4px;
  background: var(--aqua);
  font-size: 1rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: #dce9e7;
  font-family: var(--display-font);
  font-size: 0.96rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-links .nav-cta {
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 3px;
}

.hero-content {
  max-width: none;
  margin-top: 0;
  margin-bottom: 0;
  padding: 56px 0 62px;
}

.eyebrow,
.section-label {
  margin: 0 0 18px;
  color: var(--teal);
  font-family: var(--display-font);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow,
.section-label.light { color: var(--aqua); }

h1,
h2,
h3,
p { margin-top: 0; }

h1,
h2 {
  font-family: var(--display-font);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.02;
}

h3 { font-family: var(--display-font); }

h1 {
  max-width: 830px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 5.2vw, 4rem);
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2rem, 3vw, 2.4rem);
}

.hero-copy {
  max-width: 680px;
  color: #bad0cb;
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 24px;
}

.button {
  display: inline-flex;
  padding: 9px 14px;
  border-radius: 3px;
  font-family: var(--display-font);
  font-size: 1rem;
  font-weight: 750;
  text-decoration: none;
}

.button.primary { color: #06211e; background: var(--aqua); }
.button.secondary { color: var(--ink); border: 1px solid var(--line); }
.detail-header .button.secondary { color: white; border-color: rgba(255, 255, 255, 0.3); }
.scope { color: var(--muted); font-size: 0.82rem; }
.section { padding: 78px 0; }

.poster-hero {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
  align-items: end;
}

.poster-message { grid-column: 1 / span 8; }
.poster-message h1 { color: white; }

.poster-scope {
  grid-column: 10 / span 3;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.poster-scope span,
.poster-scope strong,
.poster-scope small { display: block; }

.poster-scope span {
  color: var(--aqua);
  font-family: var(--display-font);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.poster-scope strong {
  margin: 10px 0 8px;
  color: white;
  font-family: var(--display-font);
  font-size: 1.25rem;
  line-height: 1.2;
}

.poster-scope small { color: #9fb9b4; line-height: 1.5; }

.text-action {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  font-family: var(--display-font);
  font-weight: 700;
  text-decoration: none;
}

.light-action { color: var(--aqua); }
.light-action:hover { color: white; }

.home-index {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.metric-intro { grid-column: 1 / span 3; }
.metric-intro .section-label { margin-bottom: 4px; }
.metric-intro h2 { margin-bottom: 2px; font-size: 1.55rem; }
.metric-intro small { color: var(--muted); font-size: 0.72rem; }

.metric-strip dl {
  display: grid;
  grid-column: 4 / span 7;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
}

.metric-strip dl div {
  padding: 4px 20px;
  border-left: 1px solid var(--line);
}

.metric-strip dt {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.3;
}

.metric-strip dd {
  margin: 5px 0 0;
  color: var(--ink);
  font-family: var(--data-font);
  font-size: 1.25rem;
}

.index-link {
  color: var(--teal);
  font-family: var(--display-font);
  font-weight: 700;
  text-decoration: none;
}

.metric-strip > .index-link {
  grid-column: 11 / span 2;
  justify-self: end;
  font-size: 0.82rem;
  text-align: right;
}

.workflow-index {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.workflow-index a {
  display: grid;
  grid-template-columns: 32px 1fr;
  padding: 23px 18px;
  color: inherit;
  border-right: 1px solid var(--line);
  text-decoration: none;
}

.workflow-index a:first-child { padding-left: 0; }
.workflow-index a:last-child { padding-right: 0; border-right: 0; }
.workflow-index a:hover { background: rgba(45, 212, 191, 0.08); }
.workflow-index span { grid-row: 1 / span 2; color: var(--teal); font-family: var(--data-font); font-size: 0.7rem; }
.workflow-index strong { font-family: var(--display-font); font-size: 1rem; }
.workflow-index small { color: var(--muted); font-size: 0.72rem; }

.featured-index {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  margin: 32px 0 40px;
}

.featured-case {
  grid-column: 1 / span 8;
  padding: 38px 42px;
  color: #eaf7f3;
  background: var(--surface);
}

.featured-case h2 {
  max-width: 650px;
  margin-bottom: 12px;
  color: white;
  font-size: 2rem;
}

.featured-case > p:not(.section-label) { max-width: 690px; color: #b6ccc7; }

.case-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 24px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.case-facts div { padding: 15px 14px 15px 0; }
.case-facts dt { color: var(--aqua); font-family: var(--data-font); font-size: 1.05rem; }
.case-facts dd { margin: 2px 0 0; color: #9fb9b4; font-size: 0.68rem; }

.product-assessment {
  grid-column: 9 / span 4;
  padding: 38px 0 38px 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-assessment h2 { margin-bottom: 14px; font-size: 1.85rem; }
.product-assessment p { color: var(--muted); font-size: 0.88rem; }
.product-assessment ul { margin: 18px 0 24px; padding: 0; list-style: none; }
.product-assessment li { padding: 7px 0; color: var(--muted); border-top: 1px solid var(--line); font-size: 0.78rem; }
.product-assessment li:last-child { border-bottom: 1px solid var(--line); }

.intro,
.assessment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 70px;
  align-items: start;
}

.intro > p {
  padding-top: 31px;
  color: var(--muted);
  font-size: 1.1rem;
}

.workflow {
  margin-top: 0;
  padding: 65px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.workflow h2 { color: var(--ink); }
.workflow .section-label { color: var(--teal); }

.flow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  margin: 36px 0 0;
  padding: 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-right: 0;
  border-bottom: 1px solid var(--line);
  border-left: 0;
  border-radius: 0;
  background: transparent;
  list-style: none;
}

.flow li {
  min-height: 150px;
  border-right: 1px solid var(--line);
  background: transparent;
}
.flow li:last-child { border-right: 0; }

.flow li > a {
  display: block;
  min-height: 150px;
  padding: 20px 17px;
  color: inherit;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.flow li > a:hover { background: rgba(45, 212, 191, 0.08); }
.flow li > a:focus-visible { outline: 3px solid var(--gold); outline-offset: -4px; }

.flow span {
  display: block;
  margin-bottom: 24px;
  color: var(--teal);
  font-family: var(--data-font);
  font-size: 0.76rem;
  font-weight: 850;
}

.flow strong,
.flow small { display: block; }
.flow strong { color: var(--ink); font-family: var(--display-font); font-size: 1.02rem; }

.flow small {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.evaluation-section { padding-top: 55px; }

.evaluation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
  margin-top: 32px;
}

.evaluation-grid article {
  grid-column: auto;
  padding: 22px 0 26px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.evaluation-grid article > a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.evaluation-grid article:has(> a) { transition: border-color 160ms ease; }
.evaluation-grid article:has(> a):hover { border-color: var(--teal); transform: none; }

.evaluation-grid article:nth-last-child(-n + 2) { grid-column: auto; }

.evaluation-grid h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 1rem;
}

.evaluation-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.case {
  margin-top: 40px;
  margin-bottom: 40px;
  padding: 58px;
  color: #eef8f5;
  border: 1px solid rgba(45, 228, 199, 0.18);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: none;
}

.case-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
}

.case h2 { color: white; }

.status {
  flex: none;
  padding: 7px 12px;
  color: var(--gold);
  border: 1px solid rgba(240, 189, 92, 0.48);
  border-radius: 999px;
  font-family: var(--display-font);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

blockquote {
  margin: 20px 0 38px;
  padding-left: 20px;
  color: #c5d9d6;
  border-left: 3px solid var(--aqua);
  font-family: var(--display-font);
  font-size: 1.35rem;
}

.findings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 35px;
}

.findings article {
  padding: 20px 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  background: transparent;
}

.findings strong,
.findings span { display: block; }

.findings strong {
  color: var(--aqua);
  font-family: var(--data-font);
  font-size: 2rem;
  font-weight: 500;
}

.findings span {
  margin-top: 7px;
  color: #bfd0ce;
  font-size: 0.84rem;
  line-height: 1.45;
}

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  padding: 17px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  text-align: left;
  vertical-align: top;
}

th {
  color: #9fb7b3;
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

td a { color: var(--aqua); font-weight: 750; }
td a,
.publication-list a,
.claim-list a { font-family: var(--data-font); }

td small {
  display: block;
  max-width: 520px;
  margin-top: 4px;
  color: #b9cbca;
}

.case-conclusion { margin: 30px 0 0; color: #c5d5d3; }

.trace-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
  gap: 80px;
  align-items: center;
}

.trace-copy p:last-child { color: var(--muted); }

.trace {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-right: 0;
  border-bottom: 1px solid var(--line);
  border-left: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.trace-node {
  position: relative;
  padding: 15px 18px 15px 60px;
  border: 0;
  border-radius: 0;
}

.trace-node > span {
  position: absolute;
  top: 16px;
  left: 18px;
  color: var(--teal);
  font-family: var(--data-font);
  font-size: 0.72rem;
  font-weight: 850;
}

.trace-node strong,
.trace-node small { display: block; }
.trace-node small { color: var(--muted); }

.trace-node.result {
  color: var(--ink);
  border-left: 3px solid var(--teal);
  background: rgba(45, 228, 199, 0.1);
}

.trace-node.result span,
.trace-node.result small { color: var(--muted); }

.trace-line {
  width: 2px;
  height: 20px;
  margin-left: 39px;
  background: var(--line);
}

.trace-line.accent { background: var(--teal); }
.assessment { padding-top: 80px; }
.assessment-grid { display: grid; gap: 18px; }

.assessment-grid article {
  padding: 22px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.assessment-grid h3 { margin-bottom: 10px; font-size: 1rem; }

.assessment-grid ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.limitations {
  grid-column: 1 / -1;
  margin-top: 0;
  padding: 18px 22px;
  color: var(--muted);
  border-left: 4px solid var(--gold);
  background: rgba(251, 191, 36, 0.08);
}

footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 30px;
  align-items: center;
  padding: 30px 0 44px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

footer div span { margin-left: 10px; }

/* Evidence detail pages */

.detail-page { background: var(--paper); }

.detail-header {
  color: white;
  background:
    radial-gradient(circle at 78% 18%, rgba(45, 212, 191, 0.14), transparent 28%),
    linear-gradient(135deg, #020617, #0f172a);
}

.case-detail-header {
  background:
    radial-gradient(circle at 18% 92%, rgba(251, 191, 36, 0.12), transparent 26%),
    radial-gradient(circle at 82% 10%, rgba(45, 212, 191, 0.12), transparent 26%),
    linear-gradient(135deg, #020617, #0f172a);
}

.detail-hero {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px 32px;
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  padding: 38px 0 44px;
}

.detail-hero h1 {
  grid-column: 1 / span 8;
  max-width: 900px;
  margin-bottom: 0;
  font-size: clamp(2.7rem, 4.5vw, 3.5rem);
}

.detail-hero .eyebrow { grid-column: 1 / -1; margin-bottom: 2px; }

.detail-hero > p:not(.eyebrow) {
  grid-column: 9 / span 4;
  max-width: 760px;
  margin: 4px 0 0;
  color: #c8d9d7;
  font-size: 1.02rem;
}

.detail-hero .hero-actions {
  grid-column: 9 / span 4;
  margin: 8px 0 0;
}

.detail-hero blockquote {
  grid-column: 8 / span 5;
  grid-row: 2;
  max-width: 860px;
  margin: 4px 0 0;
  font-size: 1.12rem;
}

.case-badges { display: flex; grid-column: 8 / span 5; flex-wrap: wrap; gap: 9px; }
.case-detail-header .detail-hero h1 { grid-column: 1 / span 6; }
.case-badges span {
  padding: 6px 10px;
  color: #dce9e7;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 2px;
  font-family: var(--display-font);
  font-size: 0.72rem;
  font-weight: 700;
}

.detail-main,
.detail-page footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.breadcrumb {
  display: flex;
  gap: 9px;
  padding: 25px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
}

.detail-index {
  position: sticky;
  z-index: 10;
  top: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(10px);
}

.detail-index a {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 13px 10px;
  color: var(--ink);
  border-right: 1px solid var(--line);
  font-family: var(--display-font);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.detail-index a:first-child { padding-left: 0; }
.detail-index a:last-child { border-right: 0; }
.detail-index a:hover { color: var(--teal); background: rgba(45, 212, 191, 0.08); }
.detail-index span { color: var(--teal); font-family: var(--data-font); font-size: 0.62rem; }

.detail-main section[id] { scroll-margin-top: 58px; }

.evidence-section {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 34px;
  padding: 52px 0;
  border-bottom: 1px solid var(--line);
}

.step-marker {
  color: var(--teal);
  font-family: var(--data-font);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.evidence-copy { max-width: 980px; }
.evidence-copy > p:not(.section-label),
.article-section > p { color: var(--muted); }

.fact-list { margin: 36px 0; }
.fact-list div {
  display: grid;
  grid-template-columns: 190px 1fr;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.fact-list div:last-child { border-bottom: 1px solid var(--line); }
.fact-list dt { color: var(--navy); font-weight: 800; }
.fact-list dd { margin: 0; color: var(--muted); }

.fact-list.horizontal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.fact-list.horizontal div {
  display: block;
  padding: 18px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.fact-list.horizontal dd { margin-top: 7px; }

.boundary-note,
.method-note,
.caution-box {
  padding: 20px 23px;
  color: var(--muted);
  border-left: 4px solid var(--gold);
  background: rgba(251, 191, 36, 0.08);
}

.method-note { margin-top: 30px; }
.method-note h3 { margin-bottom: 8px; color: var(--navy); font-size: 1rem; }
.method-note p,
.caution-box p { margin-bottom: 0; }

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 32px 0;
}
.metric-row article {
  padding: 19px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.metric-row strong,
.metric-row span { display: block; }
.metric-row strong { color: var(--teal); font-family: var(--data-font); font-size: 1.7rem; }
.metric-row span { margin-top: 6px; color: var(--muted); font-size: 0.82rem; line-height: 1.4; }

.ranking-order { margin: 32px 0; padding: 0; list-style: none; counter-reset: rank; }
.ranking-order li {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 18px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}
.ranking-order li:last-child { border-bottom: 1px solid var(--line); }
.ranking-order span { color: var(--muted); }

.plain-checks { padding-left: 20px; color: var(--muted); }
.text-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--teal);
  background: transparent;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.5;
}

.text-link:visited { color: var(--teal); background: transparent; }
.text-link:hover { color: #5eead4; background: transparent; }

.comparison-grid,
.decision-grid,
.provenance-grid,
.arm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 30px 0;
}
.comparison-grid article,
.provenance-grid article,
.arm-grid article {
  padding: 22px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.comparison-grid h3,
.provenance-grid h3 { font-size: 1rem; }
.comparison-grid ul,
.decision-grid ul { margin-bottom: 0; padding-left: 20px; color: var(--muted); }

.article-section { padding: 54px 0; border-bottom: 1px solid var(--line); }
.article-section.shaded { margin-inline: -26px; padding-inline: 26px; background: var(--surface); }
.article-section > h2 { max-width: 800px; }

.stage-grid {
  display: block;
  margin-top: 35px;
}
.stage-grid article {
  display: grid;
  grid-template-columns: 48px minmax(250px, 0.8fr) 1.2fr;
  gap: 22px;
  min-height: auto;
  padding: 18px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.stage-grid article:last-child { border-bottom: 1px solid var(--line); }
.stage-grid span { color: var(--teal); font-family: var(--data-font); font-size: 0.72rem; font-weight: 850; }
.stage-grid h3 { margin: 0; color: var(--navy); font-size: 1rem; line-height: 1.4; }
.stage-grid p { margin-bottom: 0; color: var(--muted); font-size: 0.86rem; }

.benchmark-layout { display: grid; grid-template-columns: 1fr 0.8fr; gap: 45px; align-items: start; }
.public-table-wrap { margin: 35px 0 20px; overflow-x: auto; border-top: 1px solid var(--line); border-right: 0; border-bottom: 1px solid var(--line); border-left: 0; border-radius: 0; background: transparent; }
.public-table caption {
  width: auto;
  height: auto;
  padding: 13px 0 9px;
  margin: 0;
  color: var(--muted);
  caption-side: top;
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: left;
  white-space: normal;
}
.public-table caption strong { color: var(--teal); font-weight: 800; }
.public-table th,
.public-table td { min-width: 100px; color: var(--ink); border-bottom-color: var(--line); }
.public-table th { color: var(--muted); font-size: 0.76rem; }
.public-table thead .metric-groups th {
  padding-top: 13px;
  padding-bottom: 9px;
  color: var(--teal);
  border-bottom: 0;
}
.public-table thead tr:last-child th { padding-top: 8px; }
.public-table tbody th { color: var(--ink); font-size: 0.9rem; font-weight: 750; letter-spacing: 0; text-transform: none; }
.public-table .numeric {
  font-family: var(--data-font);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.public-table .candidate-group,
.public-table .ranking-group { border-left: 1px solid var(--line); }
.public-table .validation-row th,
.public-table .validation-row td { color: var(--navy); font-weight: 800; background: rgba(24, 141, 128, 0.07); }
.public-table .validation-row th { box-shadow: inset 3px 0 0 var(--teal); }
.table-takeaway {
  margin: 0 0 24px;
  padding-left: 20px;
  color: var(--muted);
  border-left: 3px solid var(--aqua);
  font-size: 0.94rem;
}
.table-takeaway strong { color: var(--ink); }

.metric-definitions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; margin-bottom: 28px; }
.metric-definitions p { margin: 0; color: var(--muted); font-size: 0.86rem; }

.arm-grid article span,
.arm-grid article strong { display: block; }
.arm-grid article span { margin-bottom: 20px; color: var(--teal); font-size: 0.75rem; font-weight: 850; text-transform: uppercase; }
.arm-grid article strong { font-size: 1.05rem; }
.arm-grid article p { margin: 12px 0 0; color: var(--muted); font-size: 0.9rem; }

.figure-section figure { margin: 35px 0 0; }
.figure-section img { display: block; width: 100%; border: 1px solid var(--line); }
.figure-section figcaption { margin-top: 14px; color: var(--muted); font-size: 0.82rem; }

.failure-list { border-top: 1px solid var(--line); }
.failure-list article { display: grid; grid-template-columns: 220px 1fr; gap: 25px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.failure-list span { color: var(--muted); }

.decision-section { border-bottom: 0; }
.decision-grid > div { padding: 22px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }

.funnel { margin: 38px 0; }
.funnel div {
  width: var(--width);
  min-width: 230px;
  margin: 8px auto;
  padding: 13px 20px;
  color: var(--ink);
  border-bottom: 1px solid rgba(0, 127, 114, 0.26);
  background: rgba(45, 228, 199, 0.11);
}
.funnel strong { margin-right: 10px; font-family: var(--data-font); font-size: 1.35rem; }
.funnel span { font-size: 0.82rem; }

.publication-list { margin-top: 32px; border-top: 1px solid var(--line); }
.publication-list article { display: grid; grid-template-columns: 145px 1fr; gap: 22px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.publication-list a { font-weight: 800; }
.publication-list p { margin: 0; color: var(--muted); }

.generated-answer { margin: 32px 0; padding: 24px; color: var(--ink); border: 0; border-left: 3px solid var(--teal); border-radius: 0; background: rgba(45, 228, 199, 0.08); }
.generated-answer span { color: var(--aqua); font-size: 0.74rem; font-weight: 800; text-transform: uppercase; }
.generated-answer p { margin: 14px 0 0; }
.claim-list { display: grid; gap: 12px; }
.claim-list article { padding: 21px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.claim-list article.flagged { border-left: 5px solid var(--gold); }
.claim-list span { color: var(--teal); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; }
.claim-list p { margin: 10px 0; }
.claim-list div { display: flex; flex-wrap: wrap; gap: 12px; font-size: 0.84rem; }

.validation-strip { display: flex; gap: 20px; align-items: center; margin: 28px 0; padding: 18px 20px; color: var(--ink); border-left: 3px solid var(--teal); background: rgba(45, 228, 199, 0.1); }
.validation-strip strong { flex: none; text-transform: uppercase; }

.citation-mismatch { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; margin: 35px 0; }
.citation-mismatch > div:not(.mismatch-arrow) { padding: 22px; border: 1px solid rgba(251, 191, 36, 0.48); border-radius: 2px; background: rgba(251, 191, 36, 0.08); }
.citation-mismatch span,
.citation-mismatch strong { display: block; }
.citation-mismatch span { color: var(--muted); font-size: 0.8rem; }
.citation-mismatch strong { margin-top: 8px; color: var(--navy); font-size: 1.2rem; }
.mismatch-arrow { color: var(--gold); font-size: 2rem; font-weight: 850; }
.judge-output {
  margin: 26px 0 30px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.judge-output > span {
  color: var(--teal);
  font-family: var(--data-font);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.judge-output dl {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 15px 0 18px;
}
.judge-output dl div { padding-right: 14px; }
.judge-output dl div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.judge-output dt { color: var(--muted); font-size: 0.72rem; }
.judge-output dd { margin: 3px 0 0; color: var(--ink); font-family: var(--display-font); font-size: 0.94rem; font-weight: 700; }
.judge-output p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.65; }
.judge-output p strong { display: block; margin-bottom: 3px; color: var(--ink); }
.audit-finding-title { margin: 0; color: var(--ink); font-size: 1.05rem; }
.product-action { margin-top: 28px; padding: 25px; border-left: 5px solid var(--gold); background: rgba(251, 191, 36, 0.08); }
.product-action ol { margin-bottom: 0; color: var(--muted); }
.provenance-grid { grid-template-columns: repeat(3, 1fr); }
.provenance-grid p { margin-bottom: 0; color: var(--muted); font-size: 0.86rem; }

/* Compact evidence-page layouts */

.workflow-detail .detail-index { grid-template-columns: repeat(6, 1fr); }
.workflow-detail .evidence-section { grid-template-columns: 52px 1fr; gap: 26px; }
.workflow-detail .evidence-copy > h2 { max-width: 720px; font-size: 2rem; }
.workflow-detail .fact-list { margin: 24px 0; }
.workflow-detail .metric-row { margin: 24px 0; }
.workflow-detail .ranking-order { margin: 24px 0; }
.workflow-detail .comparison-grid { margin: 22px 0; }

.retrieval-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 24px 0 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.retrieval-flow article {
  position: relative;
  min-width: 0;
  padding: 18px 24px;
}

.retrieval-flow article:first-child { padding-left: 0; }
.retrieval-flow article + article { border-left: 1px solid var(--line); }
.retrieval-flow article + article::before {
  position: absolute;
  top: 50%;
  left: -9px;
  width: 18px;
  color: var(--teal);
  background: var(--paper);
  content: "→";
  line-height: 18px;
  text-align: center;
  transform: translateY(-50%);
}

.retrieval-flow article strong,
.retrieval-flow article small { display: block; }
.retrieval-flow article strong { color: var(--ink); font-family: var(--display-font); font-size: 0.88rem; }
.retrieval-flow article small { margin-top: 6px; color: var(--muted); font-size: 0.75rem; line-height: 1.45; }
.retrieval-case-note { margin: 0 0 24px; color: var(--muted); font-size: 0.82rem; }

.evaluation-detail .stage-grid article {
  grid-template-columns: 42px minmax(260px, 0.75fr) 1.25fr;
  padding: 14px 0;
}

.evaluation-detail .benchmark-layout { gap: 32px; }
.evaluation-detail .arm-grid { margin: 22px 0; }

.evaluation-detail .figure-section {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0 32px;
  align-items: start;
}

.evaluation-detail .figure-section .section-label,
.evaluation-detail .figure-section h2 { grid-column: 1 / span 4; }
.evaluation-detail .figure-section h2 { grid-row: 2; }
.evaluation-detail .figure-section figure {
  grid-column: 5 / span 8;
  grid-row: 1 / span 3;
  margin: 0;
}

.evaluation-detail .failure-list article { padding: 13px 0; }
.evaluation-detail .decision-grid { margin: 22px 0; }

.case-detail .fact-list.horizontal { margin: 24px 0 0; }
.case-detail .funnel {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.case-detail .funnel div {
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 16px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 0;
  background: transparent;
}

.case-detail .funnel div:last-child { border-right: 0; }
.case-detail .funnel strong,
.case-detail .funnel span { display: block; }
.case-detail .funnel strong { margin: 0; color: var(--teal); }

.case-detail .publication-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
  margin-top: 24px;
}

.case-detail .publication-list article {
  display: block;
  padding: 14px 0;
}

.case-detail .publication-list p { margin-top: 5px; font-size: 0.84rem; line-height: 1.5; }
.case-detail .claim-list { grid-template-columns: 1fr 1fr; gap: 0 32px; }
.case-detail .claim-list article { padding: 16px 0; }
.case-detail .claim-list p { font-size: 0.88rem; line-height: 1.55; }
.case-detail .citation-mismatch { margin: 24px 0; }
.case-detail .product-action { margin-top: 22px; }
.case-detail .provenance-grid { margin: 22px 0; }

@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr 1fr; }

  .evaluation-grid { grid-template-columns: 1fr 1fr; }
  .evaluation-grid article,
  .evaluation-grid article:nth-last-child(-n + 2) { grid-column: auto; }

  .intro,
  .trace-section,
  .assessment {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .findings { grid-template-columns: 1fr; }

  footer {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .stage-grid article { grid-template-columns: 42px minmax(220px, 0.8fr) 1.2fr; }
  .benchmark-layout { grid-template-columns: 1fr; }
  .provenance-grid { grid-template-columns: 1fr; }

  .poster-message { grid-column: 1 / span 9; }
  .poster-scope { grid-column: 10 / span 3; }
  .metric-strip { gap: 20px; }
  .metric-intro { grid-column: 1 / span 3; }
  .metric-strip dl { grid-column: 4 / span 9; }
  .metric-strip > .index-link { display: none; }
  .featured-case { grid-column: 1 / span 7; }
  .product-assessment { grid-column: 8 / span 5; }

  .detail-index,
  .workflow-detail .detail-index {
    grid-auto-columns: minmax(120px, 1fr);
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
  }

  .evaluation-detail .figure-section { display: block; }
  .evaluation-detail .figure-section figure { margin-top: 22px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .nav,
  .hero-content,
  .section,
  .case,
  footer { width: min(100% - 30px, 1180px); }

  .nav-links > a:not(.nav-cta) { display: none; }
  .hero { min-height: 0; }
  .hero-content { margin-top: 0; }
  .section { padding: 70px 0; }
  .workflow { padding: 52px 0; }
  .flow { grid-template-columns: 1fr; }
  .evaluation-grid { grid-template-columns: 1fr; }
  .flow li { min-height: auto; }
  .flow li { border-right: 0; border-bottom: 1px solid var(--line); }
  .flow li:last-child { border-bottom: 0; }
  .flow li > a { min-height: auto; }
  .flow span { margin-bottom: 12px; }
  .case { padding: 34px 22px; }
  .case-heading { display: block; }

  .status {
    display: inline-block;
    margin-bottom: 20px;
  }

  th,
  td { min-width: 110px; }
  td:first-child { min-width: 280px; }

  footer div span {
    display: block;
    margin: 3px 0 0;
  }

  .detail-hero,
  .detail-main,
  .detail-page footer { width: min(100% - 30px, 980px); }
  .detail-hero { display: block; padding: 34px 0 38px; }
  .detail-hero h1 { font-size: 2.45rem; }
  .detail-hero > p:not(.eyebrow) { margin-top: 18px; }
  .detail-hero .hero-actions { margin-top: 20px; }
  .detail-hero blockquote { margin-top: 22px; }
  .case-badges { margin-top: 18px; }
  .evidence-section { grid-template-columns: 1fr; gap: 10px; padding: 65px 0; }
  .fact-list div,
  .ranking-order li,
  .failure-list article,
  .publication-list article { grid-template-columns: 1fr; gap: 5px; }
  .fact-list.horizontal,
  .metric-row,
  .comparison-grid,
  .decision-grid,
  .arm-grid,
  .stage-grid,
  .metric-definitions { grid-template-columns: 1fr; }
  .article-section.shaded { margin-inline: -15px; padding-inline: 15px; }
  .citation-mismatch { grid-template-columns: 1fr; }
  .mismatch-arrow { text-align: center; }
  .validation-strip { display: block; }
  .validation-strip span { display: block; margin-top: 7px; }
  .funnel div { width: 100% !important; min-width: 0; }
  .stage-grid article { grid-template-columns: 1fr; gap: 6px; }

  .poster-hero { display: block; padding: 42px 0 46px; }
  .poster-scope { margin-top: 34px; }
  .home-index { width: min(100% - 30px, 1180px); }
  .metric-strip { display: block; padding: 26px 0; }
  .metric-strip dl { grid-template-columns: 1fr 1fr; margin-top: 20px; }
  .metric-strip dl div { padding: 10px 0; border-top: 1px solid var(--line); border-left: 0; }
  .workflow-index { grid-template-columns: 1fr 1fr; }
  .workflow-index a,
  .workflow-index a:first-child,
  .workflow-index a:last-child { padding: 18px 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .workflow-index a:nth-child(odd) { padding-left: 0; border-right: 1px solid var(--line); }
  .featured-index { display: block; }
  .featured-case { padding: 30px 22px; }
  .case-facts { grid-template-columns: 1fr 1fr; }
  .product-assessment { padding: 30px 0; }

  .detail-index { margin-inline: -15px; padding-left: 15px; }
  .detail-index a { white-space: nowrap; }
  .workflow-detail .evidence-section { grid-template-columns: 1fr; gap: 8px; }
  .evaluation-detail .stage-grid article { grid-template-columns: 1fr; gap: 6px; }
  .case-detail .funnel { grid-template-columns: 1fr 1fr; }
  .case-detail .funnel div { width: auto !important; border-bottom: 1px solid var(--line); }
  .case-detail .publication-list,
  .case-detail .claim-list { grid-template-columns: 1fr; }
}

/* Documentation-style evidence navigation */

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  color: var(--navy);
  background: var(--aqua);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.docs-topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  color: white;
  background: var(--deep);
}

.docs-topbar .nav {
  width: min(1320px, calc(100% - 48px));
  padding: 14px 0;
}

.docs-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px) 180px;
  gap: 42px;
  width: min(1320px, calc(100% - 48px));
  margin-inline: auto;
  align-items: start;
}

.docs-sidebar,
.page-toc {
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  padding: 28px 0;
  overflow-y: auto;
  scrollbar-width: thin;
}

.sidebar-branding {
  display: grid;
  gap: 13px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.docs-sidebar .sidebar-branding .brand {
  display: inline-flex;
  width: max-content;
  padding: 0;
  color: var(--ink);
  border-left: 0;
  font-family: var(--display-font);
  font-size: 1.12rem;
  font-weight: 750;
  line-height: 1.2;
}

.docs-sidebar .sidebar-branding .brand::before { display: none; }

.docs-sidebar .sidebar-branding .brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.docs-sidebar .sidebar-branding .brand:hover {
  color: var(--ink);
  border-left-color: transparent;
  background: transparent;
}

.docs-sidebar .sidebar-branding .sidebar-demo {
  display: inline-flex;
  width: max-content;
  padding: 7px 11px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--display-font);
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
}

.docs-sidebar .sidebar-branding .sidebar-demo:hover {
  color: var(--deep);
  border-left-color: var(--line);
  background: var(--aqua);
}

.docs-sidebar nav,
.page-toc nav { display: grid; }

.docs-nav-group {
  margin: 23px 0 7px;
  color: var(--muted);
  font-family: var(--display-font);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.docs-nav-group:first-child { margin-top: 0; }

.docs-sidebar a,
.page-toc a {
  display: block;
  padding: 6px 10px;
  color: var(--muted);
  border-left: 2px solid transparent;
  font-family: var(--display-font);
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}

.docs-sidebar a:hover,
.page-toc a:hover,
.docs-sidebar a.is-active,
.page-toc a.is-active,
.docs-sidebar a[aria-current],
.page-toc a[aria-current] {
  color: var(--ink);
  border-left-color: var(--aqua);
  background: rgba(45, 228, 199, 0.07);
}

.docs-nav-disclosure > summary {
  position: relative;
  padding: 6px 28px 6px 10px;
  color: var(--muted);
  border-left: 2px solid transparent;
  cursor: pointer;
  font-family: var(--display-font);
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.35;
  list-style: none;
}

.docs-nav-disclosure > summary::-webkit-details-marker { display: none; }
.docs-sidebar .docs-nav-disclosure > summary > .docs-nav-parent-link {
  display: inline;
  padding: 0;
  color: inherit;
  border: 0;
  background: transparent;
  font: inherit;
  line-height: inherit;
}

.docs-sidebar .docs-nav-disclosure > summary > .docs-nav-parent-link:hover,
.docs-sidebar .docs-nav-disclosure > summary > .docs-nav-parent-link:focus-visible,
.docs-sidebar .docs-nav-disclosure > summary > .docs-nav-parent-link[aria-current] {
  color: var(--ink);
  border: 0;
  background: transparent;
}

.docs-nav-disclosure > summary::after {
  position: absolute;
  top: 6px;
  right: 10px;
  color: var(--teal);
  content: "›";
  font-family: var(--display-font);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 140ms ease;
}
.docs-nav-disclosure[open] > summary::after { transform: rotate(90deg); }
.docs-nav-disclosure > summary:hover,
.docs-nav-disclosure > summary:focus-visible,
.docs-nav-disclosure > summary[aria-current] {
  color: var(--ink);
  border-left-color: var(--aqua);
  background: rgba(45, 228, 199, 0.07);
}

.docs-nav-children {
  display: grid;
  margin: 1px 0 9px 12px;
  border-left: 1px solid var(--line);
}

.docs-sidebar .docs-nav-children a {
  margin-left: -1px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 550;
}

.page-toc strong {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-toc a { padding-block: 5px; font-size: 0.76rem; }

.docs-content {
  min-width: 0;
}

.docs-content .breadcrumb { padding: 23px 0 15px; border-bottom: 0; }

.docs-page-header {
  padding: 27px 0 43px;
  border-bottom: 1px solid var(--line);
}

.docs-page-header h1 {
  max-width: 720px;
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(2.5rem, 4.3vw, 3.55rem);
}

.docs-page-header > p:not(.eyebrow) {
  max-width: 690px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
}

.docs-page-header .hero-actions { margin-bottom: 0; }
.docs-page-header .button.secondary { color: var(--teal); border-color: var(--line); }
.docs-page-header blockquote { max-width: 680px; margin-bottom: 22px; color: var(--ink); }
.docs-page-header .case-badges { display: flex; margin-top: 0; }
.docs-page-header .case-badges span { color: var(--muted); border-color: var(--line); }

.mobile-docs-nav { display: none; }

.anchor-alias {
  display: block;
  position: relative;
  top: -80px;
  visibility: hidden;
}

.docs-content section[id] { scroll-margin-top: 76px; }
.docs-page.evaluation-detail .figure-section { display: block; }
.docs-page.evaluation-detail .figure-section figure { margin-top: 28px; }

.cv-evidence-intro {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  padding: 34px 0 20px;
  border-top: 1px solid var(--line);
}

.cv-evidence-intro .section-label { grid-column: 1 / span 3; }
.cv-evidence-intro h2 { grid-column: 4 / span 7; margin: 0; font-size: 2rem; }

.cv-evidence-index { grid-template-columns: repeat(5, 1fr); }
.cv-evidence-index a { min-height: 132px; }

.claim-statement {
  margin: -5px 0 28px;
  padding-left: 18px;
  color: var(--ink) !important;
  border-left: 3px solid var(--aqua);
  font-size: 0.98rem;
}

.evidence-subsection { margin-top: 40px; }
.evidence-subsection > h3 { margin-bottom: 12px; color: var(--ink); font-size: 1.25rem; }
.evidence-subsection > p { color: var(--muted); }

.evidence-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
}

.evidence-links a { font-size: 0.84rem; font-weight: 800; }

.trace-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 28px 0;
  border-top: 1px solid var(--line);
}

.trace-facts div { padding: 17px 0; border-bottom: 1px solid var(--line); }
.trace-facts strong,
.trace-facts span { display: block; }
.trace-facts strong { color: var(--ink); font-size: 0.88rem; }
.trace-facts span { margin-top: 5px; color: var(--muted); font-size: 0.8rem; }

/* Shared typography for workflow, evaluation, and evidence-case pages. */
.docs-page:not(.home-docs) .docs-page-header {
  padding-bottom: 36px;
}

.docs-page:not(.home-docs) .docs-page-header h1 {
  max-width: 780px;
  margin-bottom: 16px;
  font-size: clamp(2.15rem, 3.2vw, 2.8rem);
  line-height: 1.08;
}

.docs-page:not(.home-docs) .docs-page-header > p:not(.eyebrow),
.docs-page:not(.home-docs) .docs-page-header blockquote {
  max-width: 720px;
  font-size: 0.92rem;
  line-height: 1.65;
}

.docs-page:not(.home-docs) .article-section,
.docs-page:not(.home-docs) .evidence-section {
  padding-block: 40px;
}

.docs-page:not(.home-docs) .article-section > h2,
.docs-page:not(.home-docs) .evidence-copy > h2 {
  max-width: 800px;
  margin-bottom: 18px;
  font-size: 1.55rem;
  line-height: 1.15;
}

.docs-page:not(.home-docs) .article-section > p:not(.section-label),
.docs-page:not(.home-docs) .evidence-copy > p:not(.section-label) {
  font-size: 0.9rem;
  line-height: 1.65;
}

.docs-page:not(.home-docs) .claim-statement {
  font-size: 0.9rem;
}

.docs-page:not(.home-docs) :where(
  .fact-list,
  .ranking-order,
  .plain-checks,
  .method-note,
  .comparison-grid,
  .decision-grid,
  .benchmark-layout,
  .failure-list,
  .publication-list,
  .generated-answer,
  .claim-list,
  .validation-strip,
  .product-action,
  .provenance-grid
) {
  font-size: 0.9rem;
  line-height: 1.65;
}

.docs-page:not(.home-docs) .evidence-subsection > h3 {
  font-size: 1.05rem;
  line-height: 1.3;
}

.docs-page:not(.home-docs) .evidence-links a,
.docs-page:not(.home-docs) .button {
  font-size: 0.88rem;
}

.docs-footer { width: min(1320px, calc(100% - 48px)); }

@media (max-width: 1120px) {
  .docs-shell { grid-template-columns: 180px minmax(0, 1fr) 150px; gap: 24px; }
}

@media (max-width: 900px) {
  .docs-shell { grid-template-columns: 210px minmax(0, 1fr); gap: 34px; }
  .page-toc { display: none; }
}

@media (max-width: 800px) {
  .docs-topbar .nav,
  .docs-shell,
  .docs-footer { width: min(100% - 30px, 760px); }

  .docs-shell { display: block; }
  .docs-sidebar {
    position: static;
    display: block;
    max-height: none;
    padding: 14px 0;
    overflow: visible;
  }
  .docs-sidebar > nav { display: none; }
  .sidebar-branding {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 0 0 14px;
  }
  .mobile-docs-nav {
    display: block;
    margin: 0 0 20px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .mobile-docs-nav summary {
    padding: 13px 0;
    color: var(--ink);
    cursor: pointer;
    font-family: var(--display-font);
    font-size: 0.88rem;
    font-weight: 750;
  }

  .mobile-docs-nav nav { display: grid; grid-template-columns: 1fr 1fr; padding-bottom: 13px; }
  .mobile-docs-nav a { padding: 6px 0; font-size: 0.78rem; }
  .docs-page-header { padding-top: 20px; }
  .cv-evidence-index { grid-template-columns: 1fr 1fr; }
  .cv-evidence-index a { min-height: 116px; }
  .trace-facts { grid-template-columns: 1fr; }
  .judge-output dl { grid-template-columns: 1fr 1fr; }
  .judge-output dl div { padding: 8px 0; border-top: 1px solid var(--line); }
  .judge-output dl div + div { padding-left: 0; border-left: 0; }
  .judge-output dl div:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line); }
}

@media (max-width: 520px) {
  .cv-evidence-intro { display: block; }
  .cv-evidence-intro h2 { font-size: 1.75rem; }
  .cv-evidence-index { grid-template-columns: 1fr; }
  .cv-evidence-index a { min-height: 0; }
  .cv-evidence-index a:nth-child(odd) { border-right: 0; }
  .mobile-docs-nav nav { grid-template-columns: 1fr; }
  .judge-output dl { grid-template-columns: 1fr; }
  .judge-output dl div:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* Documentation-led landing page */

.home-docs .docs-content > .article-section { padding: 36px 0; }
.home-docs .docs-content > .article-section.shaded { padding-inline: 26px; }
.home-page-header { padding: 42px 0 20px; }
.home-page-header h1 { margin-bottom: 5px; font-size: clamp(3.6rem, 6vw, 4.7rem); }
p.home-development-strip {
  display: flex;
  align-items: center;
  min-height: 56px;
  margin: 0;
  padding: 0;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.home-intro {
  max-width: 720px;
  margin-bottom: 0 !important;
  color: var(--muted) !important;
  font-family: var(--reading-font);
  font-size: 1rem !important;
  line-height: 1.75;
}

.home-resource-snapshot {
  margin: 0 0 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.snapshot-heading {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding-top: 12px;
  color: var(--muted);
  font-size: 0.76rem;
}

.snapshot-heading span {
  color: var(--teal);
  font-family: var(--data-font);
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-resource-snapshot .snapshot-nodes {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.25fr;
  margin: 0;
  padding: 13px 0 15px;
}

.home-resource-snapshot .snapshot-nodes div + div {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.home-resource-snapshot dt,
.home-resource-snapshot dd { margin: 0; }
.home-resource-snapshot dd { color: var(--ink); font-family: var(--data-font); font-size: 1.15rem; }
.home-resource-snapshot dt { margin-top: 3px; color: var(--muted); font-size: 0.76rem; }
.home-resource-snapshot .snapshot-species dd { font-size: 1rem; line-height: 1.4; white-space: nowrap; }

.snapshot-relations {
  display: grid;
  grid-template-columns: 145px 1fr;
  align-items: stretch;
  border-top: 1px solid var(--line);
}

.snapshot-relations > span {
  padding: 14px 16px 14px 0;
  color: var(--teal);
  font-family: var(--data-font);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.snapshot-relations dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
}

.snapshot-relations dl div {
  padding: 12px 16px;
  border-left: 1px solid var(--line);
}

.snapshot-relations dd { font-size: 1rem; }
.snapshot-relations dt { font-size: 0.76rem; }

.home-case-section > p:not(.section-label),
.assessment-section > p:not(.section-label) { color: var(--muted); }

.home-section-intro { max-width: 700px; color: var(--muted); }

.home-io-grid,
.home-status-grid {
  display: grid;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.home-io-grid { grid-template-columns: 1fr 1fr; }
.home-status-grid { grid-template-columns: 1fr 1fr; }

.home-io-section .home-io-grid { margin-top: 0; }
.home-docs .docs-content > .home-io-section { padding-top: 0; padding-bottom: 0; }

.home-io-grid article,
.home-status-grid article { padding: 20px 22px 20px 0; }
.home-io-grid article + article,
.home-status-grid article + article { padding-left: 22px; border-left: 1px solid var(--line); }
.home-io-grid span,
.home-status-grid span {
  color: var(--teal);
  font-family: var(--data-font);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.home-io-grid h3 { margin: 8px 0 10px; font-size: 1.1rem; }
.home-io-grid ul,
.home-status-grid ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 0.82rem; }

.home-docs .docs-content > .article-section > h2 {
  margin-bottom: 20px;
  font-size: 1.55rem;
}
.home-summary-section > .home-section-intro { max-width: 700px; font-size: 0.84rem; line-height: 1.65; }

.home-workflow-rail {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.home-workflow-rail article { min-width: 0; }
.home-workflow-rail strong,
.home-workflow-rail small { display: block; }
.home-workflow-rail strong { color: var(--ink); font-family: var(--display-font); font-size: 0.88rem; }
.home-workflow-rail small { margin-top: 5px; color: var(--muted); font-size: 0.72rem; line-height: 1.45; }
.home-workflow-rail > b { color: var(--teal); font-weight: 500; }

.assessment-section {
  margin-top: 0;
}

.home-status-grid { margin-bottom: 0; }
.home-status-grid article > span { display: block; margin-bottom: 10px; }
@media (max-width: 800px) {
  .home-page-header { padding-top: 32px; }
  .home-resource-snapshot .snapshot-nodes { grid-template-columns: 1fr 1fr; }
  .home-resource-snapshot .snapshot-nodes div { padding: 10px 0; }
  .home-resource-snapshot .snapshot-nodes div + div { padding-left: 0; border-left: 0; }
  .home-resource-snapshot .snapshot-nodes div:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
  .home-resource-snapshot .snapshot-nodes div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .snapshot-relations { display: block; }
  .snapshot-relations > span { display: block; padding-bottom: 7px; }
  .snapshot-relations dl { grid-template-columns: 1fr; }
  .snapshot-relations dl div { padding: 9px 0; border-top: 1px solid var(--line); border-left: 0; }
  .home-io-grid,
  .home-status-grid { grid-template-columns: 1fr; }
  .home-io-grid article,
  .home-status-grid article { padding-inline: 0; }
  .home-io-grid article + article,
  .home-status-grid article + article { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .home-workflow-rail { grid-template-columns: 1fr; gap: 3px; }
  .home-workflow-rail article { padding: 5px 0; }
  .home-workflow-rail > b { transform: rotate(90deg); text-align: center; }
}

@media (max-width: 520px) {
  .home-page-header h1 { font-size: 3.8rem; }
  .retrieval-flow { grid-template-columns: 1fr; gap: 0; }
  .retrieval-flow article { padding: 14px 0; }
  .retrieval-flow article + article { border-top: 1px solid var(--line); border-left: 0; }
  .retrieval-flow article + article::before { top: -9px; left: 50%; transform: translateX(-50%) rotate(90deg); }
}
