/* Report pages (validation/, measurements/): the landing's type and tokens
   (styles.css, loaded first), set as a reading column with a sticky contents list. */

.doc { display: grid; gap: 0 64px; padding-top: 56px; padding-bottom: 40px; }
@media (min-width: 1100px) { .doc { grid-template-columns: 200px minmax(0, 1fr); } }
.doc__body { max-width: 860px; min-width: 0; }

.toc { display: none; }
@media (min-width: 1100px) {
  .toc { display: block; position: sticky; top: 32px; align-self: start; padding-top: 6px; font-size: 14px; }
  .toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
  .toc a { color: var(--faint); text-decoration: none; transition: color 0.2s; }
  .toc a:hover, .toc a.is-here { color: var(--ink); }
  .toc small { display: block; color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
}

.doc h1 { margin: 0 0 10px; color: var(--ink); font-size: 32px; font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; }
.doc h2 { margin: 0 0 14px; color: var(--ink); font-size: 20px; font-weight: 500; line-height: 1.3; letter-spacing: -0.005em; }
.doc h3 { margin: 28px 0 10px; color: var(--ink); font-size: 16px; font-weight: 500; }
.doc__meta { color: var(--faint); font-size: 14px; }
.doc__lede { padding-top: 22px; max-width: 720px; text-wrap: pretty; }
.doc p + p { margin-top: 12px; }
.doc p, .doc li { text-wrap: pretty; }
.doc ul.list { display: grid; gap: 8px; padding-left: 18px; list-style: disc; }
.doc ul.list li::marker { color: var(--faint); }
.date { color: var(--faint); font-size: 14px; font-weight: 400; font-variant-numeric: tabular-nums; }

.chapter { padding-top: 72px; scroll-margin-top: 24px; }
.chapter > .text, .chapter > p { max-width: 720px; }

/* Headline numbers */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; padding-top: 36px; }
.tile-stat { padding: 18px 20px 20px; border-radius: 14px; background: var(--surface); }
.tile-stat b { display: block; color: var(--ink); font-size: 26px; font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tile-stat span { display: block; padding-top: 8px; font-size: 14px; line-height: 1.45; }

/* A remark that changes how a number is read: decisions, corrections, updates. */
.note { margin-top: 20px; padding: 16px 20px; border-left: 2px solid var(--ink); border-radius: 0 10px 10px 0; background: var(--surface); max-width: 720px; }
.note--soft { border-left-color: var(--bar); }

/* Tables */
.table { margin-top: 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.table th, .table td { padding: 9px 14px 9px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { color: var(--faint); font-weight: 400; white-space: nowrap; }
.table td.n, .table th.n { text-align: right; white-space: nowrap; }
.table td:first-child { color: var(--ink); }
.table tr.is-ours td { color: var(--ink); font-weight: 500; }
.table tr.is-muted td { color: var(--faint); }
.table caption { caption-side: bottom; padding-top: 10px; color: var(--faint); font-size: 13px; text-align: left; }

/* Bar lists: the landing's .bars, a little wider for longer labels. */
.chart { margin-top: 24px; }
.chart__title { color: var(--ink); font-size: 14px; font-weight: 500; }
.chart__title span { color: var(--faint); font-weight: 400; }
.chart .bars { padding: 14px 0 0; }
.chart .bars > div { grid-template-columns: minmax(120px, 190px) 1fr 76px; }
@media (max-width: 520px) { .chart .bars > div { grid-template-columns: 104px 1fr 60px; font-size: 14px; } }
.bars dt { line-height: 1.35; }
.bars .is-ref i { background: repeating-linear-gradient(135deg, var(--faint) 0 2px, transparent 2px 5px); }

/* Pass / inconclusive / fail, stacked to the same total. */
.stack { display: grid; gap: 10px; padding-top: 14px; font-size: 14px; }
.stack__row { display: grid; grid-template-columns: minmax(120px, 230px) 1fr 104px; gap: 12px; align-items: center; }
.stack__row > span:first-child { color: var(--ink); line-height: 1.35; }
.stack__row > span:last-child { color: var(--faint); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stack__bar { display: flex; gap: 2px; height: 12px; }
.stack__bar i { flex: var(--n) 0 0; min-width: 4px; border-radius: 3px; }
.stack__group { padding-top: 6px; color: var(--faint); font-size: 13px; }
.is-pass { background: var(--ink); }
.is-inc { background: var(--bar); }
.is-fail { background: repeating-linear-gradient(45deg, var(--ink) 0 2px, rgb(var(--ink-rgb) / 0.18) 2px 5px); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 12px; color: var(--faint); font-size: 13px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 16px; height: 10px; border-radius: 3px; }
.legend i.line { height: 2px; border-radius: 1px; background: var(--ink); }
.legend i.line--mid { background: rgb(var(--ink-rgb) / 0.55); }
.legend i.line--light { background: rgb(var(--ink-rgb) / 0.28); }
.legend i.line--dash { background: repeating-linear-gradient(90deg, rgb(var(--ink-rgb) / 0.55) 0 5px, transparent 5px 8px); }
@media (max-width: 520px) { .stack__row { grid-template-columns: 1fr 80px; } .stack__row > span:first-child { grid-column: 1 / -1; } }

/* Line charts, drawn by docs.js from the JSON inside .plot. */
.plot { position: relative; margin-top: 14px; min-height: 240px; }
.plot svg { display: block; width: 100%; overflow: visible; font: 12px/1 "Inter", ui-sans-serif, system-ui, sans-serif; }
.plot__tip {
  position: absolute;
  top: 0;
  z-index: 1;
  min-width: 140px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--page);
  box-shadow: 0 8px 28px rgb(var(--shadow) / calc(0.12 * var(--shadow-a))), 0 0 0 1px var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s;
  white-space: nowrap;
}
.plot__tip.is-on { opacity: 1; }
.plot__tip b { display: block; padding-bottom: 2px; }
.plot__tip span { display: flex; justify-content: space-between; gap: 16px; }
.plot__tip em { font-style: normal; color: var(--ink); font-variant-numeric: tabular-nums; }
.charts-2 { display: grid; gap: 8px 40px; }
@media (min-width: 760px) { .charts-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Figures from the pipeline (matplotlib PNGs), framed like the landing's tiles. */
.fig { margin-top: 28px; }
.fig__frame { padding: 16px; border-radius: 14px; background: var(--surface); }
.fig__frame img { width: 100%; border-radius: 6px; background: #fff; }
/* The PNGs are drawn on white; in dark mode they stay so, a little dimmed. */
@media (prefers-color-scheme: dark) { .fig__frame img { filter: brightness(0.86); } }
.fig figcaption { padding-top: 12px; font-size: 14px; max-width: 720px; text-wrap: pretty; }

/* Definitions: a term and what it means here. */
.terms { display: grid; gap: 14px; margin-top: 16px; }
@media (min-width: 720px) { .terms { grid-template-columns: 190px 1fr; gap: 16px 28px; } }
.terms dt { color: var(--ink); font-weight: 500; }
.terms dd { margin: 0; text-wrap: pretty; }

pre.cmd {
  margin: 20px 0 0;
  padding: 16px 20px;
  overflow-x: auto;
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: 13.5px/1.7 ui-monospace, "SF Mono", Menlo, monospace;
}
pre.cmd span { color: var(--faint); }
