/* VOCO · voco.fit · the document pages (/evals, /privacy, /terms, /health-data, /404)
   Loaded after main.css, which carries the tokens, the header, the footer, the
   pills, the .num rule and the .numbers figure. This file adds only what a
   Read-mode page needs: the document frame on the homepage's own left axis, a
   65 to 75 ch prose measure, sentence-case headings over hairline rules, the
   hairline-dash list, the date stamp, the one callout, and the /evals figures
   in the same label / bare track / value language as the homepage ruler and
   bands. No second accent: emerald only on the word Verified and its check. */

/* the ground, restated from main.css so this file reads against it on its own */
body { background: #0A0A0A; }

/* ---------- the frame ---------- */

.doc {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(7rem, 15vh, 9rem) var(--pad-x) clamp(4.5rem, 9vh, 6.5rem);
}
.doc-grid {
  display: grid;
  grid-template-columns: minmax(0, 46rem) minmax(0, 1fr);
  column-gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.doc-body { min-width: 0; }
.head-link[aria-current="page"] { color: var(--t1); }

/* ---------- masthead ---------- */

.doc-head { margin-bottom: clamp(2.75rem, 6vh, 4rem); }
.doc-head h1 {
  font-size: clamp(2.125rem, 3.8vw, 3.5rem);
  line-height: 1.05;
  max-width: 14em;
}
.doc-stamp {
  display: block;
  margin-top: 1.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t4);
}
.doc-body .doc-lead {
  margin-top: 2.25rem;
  max-width: 34em;
  font-size: clamp(1.125rem, 1.45vw, 1.3125rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--t1);
  text-wrap: pretty;
}
.doc-body .doc-lead + .doc-lead { margin-top: 1rem; }

/* ---------- sections and prose ---------- */

.doc-sec {
  border-top: 1px solid var(--line);
  padding-top: clamp(2.25rem, 4vh, 3rem);
  margin-top: clamp(3rem, 6vh, 4rem);
}
.doc-sec > :last-child { margin-bottom: 0; }
/* the scorecard opens on its own strong rule: no section rule above it */
.doc-sec--flush { border-top: 0; padding-top: 0; margin-top: 0; }
.doc-sec .numbers { margin-top: 0; }
.doc .numbers-row { grid-template-columns: 11rem minmax(7.5rem, 0.55fr) minmax(0, 1.45fr); gap: 1.5rem 2rem; padding: 1.5rem 0; }
.doc-sec h2 {
  font-size: clamp(1.5rem, 2.3vw, 1.875rem);
  line-height: 1.15;
  margin: 0 0 1.25rem;
  scroll-margin-top: 6rem;
}
.doc-sec h3 {
  margin: 1.75rem 0 0.6rem;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--t1);
}
.doc-body p {
  max-width: 42rem;
  margin: 0 0 1.1rem;
  color: var(--t2);
  text-wrap: pretty;
}
.doc-body strong { color: var(--t1); font-weight: 500; }
.doc-body code {
  font-family: inherit;
  font-size: 0.95em;
  color: var(--t1);
}
.doc-body a {
  color: var(--t1);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(244, 244, 241, 0.32);
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.18s ease;
}
.doc-body a:hover { text-decoration-color: var(--t1); }
.doc-body a.pill { text-decoration: none; }
.doc-body a.pill--primary { color: var(--ink); }
.doc-note {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--t3);
}
.doc-note a { color: var(--t2); }

/* the list: a short hairline dash where a disc would be */
.doc-body ul {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  max-width: 42rem;
}
.doc-body li {
  position: relative;
  padding-left: 1.4rem;
  margin: 0 0 0.8rem;
  color: var(--t2);
  text-wrap: pretty;
}
.doc-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 0.5rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}
.doc-body li:last-child { margin-bottom: 0; }

/* the one callout that survives: a hairline-framed block, no colour */
.doc-callout {
  max-width: 42rem;
  margin: 1.5rem 0 1.6rem;
  padding: 1.3rem 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.doc-callout p { color: var(--t1); }
.doc-callout p:last-child { margin-bottom: 0; }

/* ---------- on this page ---------- */

.toc {
  position: sticky;
  top: clamp(6rem, 12vh, 7.5rem);
  padding-top: 0.35rem;
  font-size: 0.875rem;
}
.toc-label {
  display: block;
  margin-bottom: 0.9rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t4);
}
.toc ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.toc li { border-bottom: 1px solid var(--line); }
.toc a {
  display: block;
  padding: 0.6rem 0;
  color: var(--t3);
  text-decoration: none;
  transition: color 0.2s ease;
}
.toc a:hover { color: var(--t1); }

/* ---------- figures (/evals) ----------
   The scorecard is main.css's .numbers. Each drawn figure below is a hairline
   table: a label column, a bare track, a value, an axis row, a caption that
   carries the n and the date. */

.fig-meta {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--t4);
}
dt .fig-meta { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
.numbers-note .fig-meta { margin-top: 0.7rem; }

.fig { margin: 2.25rem 0 2rem; max-width: 46rem; }
.fig + .doc-note, .numbers + .doc-note { margin-top: 1.5rem; }
.fig-row {
  display: grid;
  grid-template-columns: 11.5rem minmax(0, 1fr) 4.75rem;
  column-gap: 1.25rem;
  align-items: center;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}
.fig-row:first-child { border-top: 1px solid var(--line-strong); }
.fig-label { line-height: 1.35; }
.fig-name {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t3);
}
.fig-label small {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--t4);
}
.fig-row--lead .fig-name { color: var(--t1); }
.fig-track { position: relative; height: 1.5rem; }
.fig-val {
  text-align: right;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--t1);
  white-space: nowrap;
}
.fig-val small { font-size: 0.75em; color: var(--t3); margin-left: 0.1em; }
.fig-val--quiet { color: var(--t3); }
.fig-axis {
  display: grid;
  grid-template-columns: 11.5rem minmax(0, 1fr) 4.75rem;
  column-gap: 1.25rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--t4);
}
.fig-axis-track { grid-column: 2; position: relative; height: 1.2em; }
.fig-axis-track span { position: absolute; top: 0; left: calc(var(--x) * 1%); transform: translateX(-50%); white-space: nowrap; }
.fig-axis-track span:first-child { transform: none; }
.fig-axis-track span:last-child { transform: translateX(-100%); }
.fig-axis-unit { grid-column: 3; text-align: right; }
/* a second axis line for the direction words, under the numbers */
.fig-axis-track + .fig-axis-track { grid-row: 2; margin-top: 0.35rem; font-weight: 400; letter-spacing: 0.02em; text-transform: none; }
/* a figure straight after the scorecard continues its table */
.numbers + .fig { margin-top: 0; }
.numbers + .fig .fig-row:first-child { border-top: 0; }
.fig figcaption { max-width: 42rem; }

/* signed error: the spec band as a hairline window, a zero tick, the mark */
.fig-band {
  position: absolute; top: 50%;
  left: calc(var(--l) * 1%); width: calc(var(--w) * 1%);
  height: 1rem;
  transform: translateY(-50%);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 2px;
}
.fig-zero {
  position: absolute; top: 50%;
  left: calc(var(--x) * 1%);
  width: 1px; height: 1.5rem;
  transform: translate(-50%, -50%);
  background: var(--t4);
}
.fig-mark {
  position: absolute; top: 50%;
  left: calc(var(--x) * 1%);
  width: 7px; height: 7px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--t1);
}

/* category bars on a 0 to 16 % scale; range-scored rows are outlined, not filled */
.fig-bar {
  position: absolute; top: 50%; left: 0;
  width: calc(var(--v) / 16 * 100%);
  height: 0.75rem;
  transform: translateY(-50%);
  background: var(--t4);
  border-radius: 2px;
}
.fig-row--lead .fig-bar { background: var(--t1); }
.fig-row--range .fig-bar { background: transparent; border: 1px solid var(--line-strong); }
.fig-key {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--t3);
}
.fig-key span { display: inline-flex; align-items: center; gap: 0.5rem; }
.fig-swatch { display: inline-block; width: 1rem; height: 0.5rem; border-radius: 2px; background: var(--t4); }
.fig-swatch--range { background: transparent; border: 1px solid var(--line-strong); }

/* ---------- tables ---------- */

.doc-table-wrap { overflow-x: auto; margin: 1.75rem 0 1.1rem; -webkit-overflow-scrolling: touch; }
.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.4;
}
.doc-table caption {
  caption-side: top;
  text-align: left;
  padding-bottom: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--t3);
}
.doc-table th, .doc-table td {
  text-align: right;
  padding: 0.75rem 0.75rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  vertical-align: baseline;
}
.doc-table th:first-child, .doc-table td:first-child { text-align: left; white-space: normal; padding-left: 0; }
.doc-table th:last-child, .doc-table td:last-child { padding-right: 0; }
@media (max-width: 640px) { .doc-table th, .doc-table td { padding: 0.7rem 0.5rem; } }
.doc-table thead th {
  padding-top: 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t3);
  border-bottom: 1px solid var(--line-strong);
}
.doc-table td { color: var(--t3); }
.doc-table td:first-child { color: var(--t2); }
.doc-table td.result { color: var(--t1); font-weight: 500; }
.doc-table td.verdict {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t1);
}

/* ---------- the reserved slot: a row with its value visibly empty ---------- */

.numbers--reserved {
  margin-top: 1.75rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.22);
}
.numbers--reserved .numbers-row { border-bottom: 1px dashed rgba(255, 255, 255, 0.22); }
.numbers--reserved .numbers-value {
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--t4);
}

/* ---------- version history ---------- */

.history { margin: 1.5rem 0 0; max-width: 46rem; border-top: 1px solid var(--line-strong); }
.history-row {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  column-gap: 1.25rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.history dt { color: var(--t3); padding-top: 0.05em; }
.history dd { color: var(--t2); text-wrap: pretty; }
.history-nums {
  display: block;
  margin-top: 0.25rem;
  color: var(--t1);
  font-weight: 500;
}

/* ---------- 404 ---------- */

.doc--404 { min-height: calc(100svh - 7.5rem); display: grid; align-content: center; }
.doc--404 h1 { font-size: clamp(2.125rem, 3.8vw, 3.5rem); line-height: 1.05; }
.doc--404 .cta-row { margin-top: 2.25rem; }

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .doc-grid { grid-template-columns: minmax(0, 46rem); }
  .toc { display: none; }
}

@media (max-width: 880px) {
  .doc { padding-top: clamp(6.5rem, 14vh, 8rem); }
  .doc .numbers-row { grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem 1.5rem; padding: 1.4rem 0; }
}

@media (max-width: 640px) {
  .fig-row, .fig-axis { grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; row-gap: 0.6rem; }
  .fig-track { grid-column: 1 / -1; grid-row: 2; }
  .fig-axis-track { grid-column: 1; }
  .fig-axis-unit { grid-column: 2; }
  .history-row { grid-template-columns: 1fr; row-gap: 0.25rem; }
}
