/* Sinsonte — /benchmarks. Loaded only by this page, on top of site.css, so the
 * home page does not pay for a table system it never renders.
 *
 * Colour discipline (branding/colors/COLORS.md): Ámbar is never a text colour.
 * The best-in-row mark is therefore a filled Ámbar chip with Tinta on it — the
 * same shape as the citation chip in the product — and the display figures use
 * Grana (--color-accent-ink), exactly as the home page's stat block does.
 */

.bench {
  max-width: var(--page-max); margin-inline: auto;
  padding: var(--space-lg) var(--space-gutter) var(--space-3xl);
}

/* ── Hero ──────────────────────────────────────────────────────────── */
.bhero { padding-block: var(--space-lg) var(--space-xl); }
.bhero__h {
  font-family: var(--font-serif); font-weight: 600;
  font-size: var(--text-3xl); line-height: 1.05; letter-spacing: -0.012em;
  margin-top: var(--space-2xs); max-width: 20ch;
}
.bhero__lede { margin-top: var(--space-md); max-width: 58ch; }

.bfacts {
  list-style: none; padding: 0; margin-top: var(--space-xl);
  display: grid; gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  border-top: var(--rule-hair) solid var(--color-rule-strong);
  padding-top: var(--space-md);
}
.bfact { display: grid; gap: var(--space-3xs); align-content: start; }
.bfact__v {
  font-family: var(--font-serif); font-weight: 600;
  font-size: var(--text-2xl); line-height: 1; letter-spacing: -0.01em;
  color: var(--color-accent-ink); font-variant-numeric: tabular-nums;
}
.bfact__u { font-size: var(--text-lg); }
.bfact__l { font-size: var(--text-sm); color: var(--color-muted-strong); line-height: 1.4; }

/* ── Section shells ────────────────────────────────────────────────── */
.bsec { padding-block: var(--space-2xl) 0; }   /* scroll-margin: site.css, section[id] */
.bsec__lede { max-width: 58ch; }
.bsec .h2 { margin-top: var(--space-2xs); max-width: 24ch; }
.bsub {
  font-family: var(--font-serif); font-weight: 600;
  font-size: var(--text-xl); letter-spacing: -0.008em;
  margin-top: var(--space-2xl);
}

.btag {
  display: inline-flex; align-items: center; gap: var(--space-3xs);
  font-size: var(--text-xs); font-weight: 600;
  text-transform: uppercase; letter-spacing: var(--track-caps);
  border-radius: var(--radius-pill); padding: var(--space-3xs) var(--space-2xs);
  border: var(--rule-hair) solid var(--color-rule-strong);
  color: var(--color-muted-strong);
}
.btag--t1 { border-color: var(--color-quetzal-ink); color: var(--color-quetzal-ink); }
.btag--t2 { border-color: var(--color-ambar-deep); background: var(--color-ambar-wash); color: var(--color-ink); }

/* The studio-measured section stays its own panel so the two kinds of number
 * are never confused by a skimmer — but a solid rule, not the dashed
 * quarantine border it used to wear. It is a measurement, not a caution sign. */
.bsec--t2 {
  margin-top: var(--space-2xl);
  border: var(--rule-hair) solid var(--color-rule-strong);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  padding: var(--space-lg) var(--space-md);
}
@media (min-width: 48rem) { .bsec--t2 { padding: var(--space-xl) var(--space-lg); } }

/* One compact provenance line. Says where the audio came from and moves on;
 * the detail behind it lives in the Methodology block at the foot of the page. */
.bmini {
  margin-top: var(--space-sm); max-width: 62ch;
  font-size: var(--text-xs); line-height: 1.5; color: var(--color-muted-strong);
}

/* ── Plain-words readings of a figure ──────────────────────────────────
 * Always the same number as the table beside it, said in language a reader
 * can picture. Ámbar rule to mark it as interpretation rather than data. */
.binterp {
  margin-top: var(--space-md); max-width: 60ch;
  border-left: 3px solid var(--color-ambar);
  padding-left: var(--space-sm);
  font-size: var(--text-base); line-height: 1.6; color: var(--color-ink);
}
.bcall .binterp { margin-top: var(--space-sm); font-size: var(--text-sm); }

.bnote {
  margin-top: var(--space-md); max-width: 62ch;
  font-size: var(--text-sm); line-height: 1.55; color: var(--color-muted-strong);
}

/* ── Tables ────────────────────────────────────────────────────────────
 * Wide by nature. The wrapper scrolls, the page never does — the first column
 * stays pinned so a row keeps its label while you scroll the engines. */
.bwrap {
  margin-top: var(--space-md);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: var(--rule-hair) solid var(--color-rule-strong);
  border-radius: var(--radius-md);
  background: var(--color-bg);
}
.btbl { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: var(--text-sm); }
.bcap {
  caption-side: top; text-align: left;
  padding: var(--space-2xs) var(--space-xs);
  font-size: var(--text-xs); color: var(--color-muted-strong); line-height: 1.45;
  border-bottom: var(--rule-hair) solid var(--color-rule);
}
.btbl th, .btbl td {
  padding: var(--space-2xs) var(--space-xs);
  border-bottom: var(--rule-hair) solid var(--color-rule);
  vertical-align: baseline;
}
.btbl thead th {
  font-size: var(--text-xs); font-weight: 600;
  text-transform: uppercase; letter-spacing: var(--track-caps);
  color: var(--color-muted-strong);
  border-bottom: var(--rule-thick) solid var(--color-rule-strong);
  text-align: right; white-space: nowrap;
}
.btbl thead th:first-child { text-align: left; }
.btbl tbody th {
  text-align: left; font-weight: 500; color: var(--color-ink);
  min-width: 15rem; line-height: 1.35;
}
.btbl thead th:first-child, .btbl tbody th {
  position: sticky; left: 0; z-index: 1;
  background: var(--color-bg);
  border-right: var(--rule-hair) solid var(--color-rule);
}
.btbl td {
  text-align: right; white-space: nowrap;
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  color: var(--color-muted-strong);
}
.btbl td.num { color: var(--color-ink); }
.btbl tbody tr:last-child th, .btbl tbody tr:last-child td { border-bottom: 0; }
.btbl tbody tr.is-key th, .btbl tbody tr.is-key td { background: var(--color-panel); }

/* Best in row. Never Ámbar as ink — Ámbar as the ground, Tinta on top. */
.win {
  display: inline-block;
  padding: 1px var(--space-2xs);
  border-radius: var(--radius-pill);
  border: var(--rule-hair) solid var(--color-ambar);
  background: var(--color-ambar-wash);
  color: var(--color-ink); font-weight: 600;
}

.bench .beta {
  display: inline-block; margin-left: var(--space-3xs);
  font-size: var(--text-xs); font-family: var(--font-text); font-weight: 400;
  text-transform: uppercase; letter-spacing: var(--track-caps);
  border: var(--rule-hair) solid var(--color-rule-strong);
  border-radius: var(--radius-pill); padding: 0 var(--space-3xs);
  color: var(--color-muted-strong);
}

/* ── The far-field callout — the one result worth a display figure ──── */
.bcall {
  margin-top: var(--space-xl);
  display: grid; gap: var(--space-md);
  border-top: var(--rule-thick) solid var(--color-accent-ink);
  background: var(--color-panel);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: var(--space-lg) var(--space-md);
}
@media (min-width: 48rem) {
  .bcall { grid-template-columns: auto minmax(0, 1fr); gap: var(--space-xl); align-items: start; padding: var(--space-xl) var(--space-lg); }
}
.bcall__v {
  font-family: var(--font-serif); font-weight: 600;
  font-size: var(--text-display-s); line-height: 0.9; letter-spacing: -0.02em;
  color: var(--color-accent-ink); font-variant-numeric: tabular-nums;
}
.bcall__u { font-size: var(--text-xl); }
.bcall__h { font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.005em; }
.bcall__b { margin-top: var(--space-2xs); color: var(--color-muted-strong); max-width: 56ch; line-height: 1.55; }

/* ── FFER block ────────────────────────────────────────────────────── */
.bffer {
  margin-top: var(--space-xl);
  border-top: var(--rule-hair) solid var(--color-rule-strong);
  padding-top: var(--space-lg);
}
.bffer__h {
  font-family: var(--font-serif); font-weight: 600;
  font-size: var(--text-xl); letter-spacing: -0.008em;
}
/* The expansion of the acronym, immediately under it. A metric nobody else
   publishes has to say what it means before it can say what it measured. */
.bffer__def {
  margin-top: var(--space-2xs); max-width: 60ch;
  font-size: var(--text-base); line-height: 1.55; color: var(--color-ink);
}
.bffer__b { margin-top: var(--space-sm); max-width: 62ch; line-height: 1.6; color: var(--color-muted-strong); }
.bffer__b em { font-style: italic; color: var(--color-ink); }
.bffer__f { margin-top: var(--space-md); max-width: 62ch; line-height: 1.6; color: var(--color-ink); }
.bffer__f em { font-style: italic; }

/* ── Methodology, collapsed ────────────────────────────────────────────
 * Everything a reader opens only when they want to check us: scoring,
 * sampling, licences, limits. Closed by default, plain <details>, no JS. */
.bmeta {
  margin-top: var(--space-2xl);
  border-top: var(--rule-hair) solid var(--color-rule-strong);
}
.bmeta__sum {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; gap: 0.5em;
  min-height: 52px;
  font-family: var(--font-serif); font-weight: 600;
  font-size: var(--text-lg); letter-spacing: -0.008em;
  color: var(--color-ink);
}
.bmeta__sum::-webkit-details-marker { display: none; }
.bmeta__sum::before {
  content: "▸"; display: inline-block; flex: none;
  font-family: var(--font-text); font-size: var(--text-base);
  color: var(--color-accent-ink);
  transition: transform var(--dur-fast) var(--ease-out);
}
.bmeta[open] .bmeta__sum::before { transform: rotate(90deg); }
.bmeta__body { padding-bottom: var(--space-xl); }
/* Inside the block the first heading already has the summary above it, so the
   generous top margins the standalone sections wanted read as a gap. */
.bmeta__body > .bmeth { margin-top: var(--space-2xs); }
.bmeta__body .bsub { margin-top: var(--space-xl); }

/* ── Method grid ───────────────────────────────────────────────────── */
.bmeth {
  margin-top: var(--space-lg);
  display: grid; gap: var(--space-lg);
}
@media (min-width: 48rem) { .bmeth { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl); } }
/* The same three-block pattern, used above Tier 1 to say what the two columns
 * are before showing them. Three items, so it wants three tracks once there is
 * room; below that it inherits the method grid's 2-up, then stacks. */
@media (min-width: 62rem) {
  .bmeth--mom { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); }
}
.bm { border-top: var(--rule-hair) solid var(--color-rule-strong); padding-top: var(--space-sm); }
.bm__h { font-size: var(--text-md); font-weight: 600; }
.bm__b { margin-top: var(--space-2xs); font-size: var(--text-sm); line-height: 1.6; color: var(--color-muted-strong); }

/* ── Licences ──────────────────────────────────────────────────────── */
.blic { list-style: none; padding: 0; margin-top: var(--space-md); display: grid; gap: var(--space-md); }
@media (min-width: 62rem) { .blic { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); } }
.blic li {
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  padding: var(--space-sm);
}
.blic__n { font-weight: 600; font-size: var(--text-base); }
.blic__d { margin-top: var(--space-3xs); font-size: var(--text-sm); line-height: 1.5; color: var(--color-muted-strong); }
.blic__l { margin-top: var(--space-2xs); font-size: var(--text-xs); color: var(--color-muted-strong); overflow-wrap: anywhere; }

/* ── What we don't claim ───────────────────────────────────────────── */
.bdont { list-style: none; padding: 0; margin-top: var(--space-md); display: grid; gap: var(--space-sm); }
.bdont li {
  position: relative; padding-left: var(--space-md);
  max-width: 64ch; line-height: 1.6; color: var(--color-muted-strong);
}
.bdont li::before {
  content: ""; position: absolute; left: 0; top: 0.72em;
  width: 10px; height: var(--rule-thick); background: var(--color-grana);
}

.bback { margin-top: var(--space-2xl); font-size: var(--text-sm); }

/* ── Arriving from a stat card on the home page ─────────────────────────
 * Each of the five figures on "/" links to the exact row it was read off.
 * Landing somewhere in the middle of a seven-column table is disorienting
 * unless the row says so: it lights up in Ámbar — the colour this product
 * uses everywhere else for "here is the evidence" — and settles back once
 * you have found it. Only :target, so it costs nothing to anyone who
 * arrives normally. */
.btbl tr[id]:target > * {
  background-color: var(--color-ambar-wash);
  box-shadow: inset 0 var(--rule-thick) 0 0 var(--color-ambar),
              inset 0 calc(var(--rule-thick) * -1) 0 0 var(--color-ambar);
}
@media (prefers-reduced-motion: no-preference) {
  .btbl tr[id]:target > * { animation: brow 2.8s var(--ease-out) 1 forwards; }
}
@keyframes brow {
  0%, 55% { background-color: var(--color-ambar-wash); }
  100% { background-color: transparent; }
}

/* ── Phone ─────────────────────────────────────────────────────────── */
@media (max-width: 40rem) {
  .btbl tbody th { min-width: 11.5rem; font-size: var(--text-xs); }
  .btbl th, .btbl td { padding: var(--space-2xs); }
  .bsec--t2 { padding-inline: var(--space-sm); }
  .bcall { padding-inline: var(--space-sm); }
}
