/* 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-style: dashed; border-color: var(--color-ambar-deep); background: var(--color-ambar-wash); color: var(--color-ink); }

/* Tier 2 is boxed and dashed so no one can mistake a synthetic-audio number
 * for a real-audio one by skimming. */
.bsec--t2 {
  margin-top: var(--space-2xl);
  border: var(--rule-hair) dashed 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); } }

.bwarn {
  margin-top: var(--space-md); max-width: 62ch;
  border-left: 3px solid var(--color-ambar);
  background: var(--color-ambar-wash);
  padding: var(--space-sm) var(--space-md);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: var(--text-sm); line-height: 1.55; color: var(--color-ink);
}

.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: 42rem; font-size: var(--text-sm); }
.btbl--ffer { min-width: 26rem; }
.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);
}

/* Engines whose run did not finish. A visible gap, not a blank cell. */
.bpend { list-style: none; padding: 0; margin-top: var(--space-sm); display: grid; gap: var(--space-3xs); }
.bpend li { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2xs); font-size: var(--text-sm); }
.bpend__n { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-ink); }
.bpend__s {
  font-size: var(--text-xs); text-transform: uppercase; letter-spacing: var(--track-caps);
  border: var(--rule-hair) dashed var(--color-rule-strong);
  border-radius: var(--radius-pill); padding: 0 var(--space-2xs);
  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; }
.bcall__c {
  margin-top: var(--space-sm); font-size: var(--text-sm); line-height: 1.5;
  color: var(--color-muted-strong); max-width: 56ch;
  padding-left: var(--space-sm); border-left: var(--rule-hair) solid var(--color-rule-strong);
}

/* ── 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;
}
.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; }

/* ── 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); } }
.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); }
}
