/* ── G-Bench run report ─────────────────────────────────────────────────
   Renders harness report markup inside the G-Bench shell. The shell
   (hud-nav, .gbench-hero, .footer-section) comes from style.css +
   gbench.css; this file only re-skins the report body against the site
   design tokens so run pages stop looking like a separate document.

   Markup contract (kept verbatim from the harness output):
     header.gbench-hero > .gbench-hero__inner
       .gbench-hero__chapter  · .gbench-hero__title · .gbench-hero__subtitle
       .meta-strip > .chip / a.chip--link
       .gbench-hero__stamp
     main.gbench-report
       section > h2 > span.idx · p.lede · .notes > .note
       .stat-row > .stat > .k / .v (> small) / .s
       .table-scroll > table > thead th / tbody td (+ .num-hi, td span.sub)
     footer.footer-section

   Deliberately NOT from assets/css/base.css: the harness writes
   style="color:var(--accent)" inline on some figures, so --accent is
   aliased to the site teal here instead of being redefined globally. */

:root {
  /* Harness inline-style compatibility (report-local names → site tokens) */
  --accent: var(--color-primary);
  --accent-dim: rgba(0, 180, 200, 0.35);
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
/* Model names are longer than "G-Bench", so the display size is one step
   down from the hub hero to keep them on a single line. */
.gbench-hero__title {
  font-size: clamp(2.25rem, 5.2vw, 4.5rem);
}

.gbench-hero .meta-strip {
  position: relative;
  z-index: 2;
}

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.chip {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  background: rgba(13, 13, 11, 0.45);
  backdrop-filter: blur(2px);
}

.chip b {
  color: var(--color-text);
  font-weight: 500;
}

.chip--link {
  cursor: crosshair;
  text-decoration: none;
  transition:
    border-color var(--transition-interactive),
    color var(--transition-interactive),
    background var(--transition-interactive);
}

.chip--link:hover {
  border-color: var(--color-primary);
  color: var(--color-text);
  background: var(--color-primary-dim);
}

.chip--link::after {
  content: ' ↗';
  font-size: 10px;
  color: var(--color-gold-bright);
  opacity: 0.85;
}

/* ── Report body ──────────────────────────────────────────────────────── */
.gbench-report {
  width: min(var(--content-default), 100%);
  margin: 0 auto;
  padding: var(--space-10) var(--space-6) var(--space-12);
}

.gbench-report section {
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--color-divider);
}

.gbench-report section:last-child {
  border-bottom: none;
}

.gbench-report h2 {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
}

/* Trailing rule, mirroring the hub's "// SECTION ──────" header pattern */
.gbench-report h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-divider);
  margin-left: var(--space-2);
}

.gbench-report h2 .idx {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--color-text-faint);
}

.gbench-report p.lede,
.gbench-report .lede {
  margin-top: var(--space-3);
  max-width: 72ch;
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-text-muted);
}

.gbench-report .lede b,
.gbench-report .note b {
  color: var(--color-text);
  font-weight: 500;
}

.gbench-report code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--color-gold-bright);
}

/* Recipe / verdict notes */
.gbench-report .notes {
  margin-top: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.gbench-report .note {
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 2px solid var(--accent-dim);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* Headline figures */
.gbench-report .stat-row {
  margin-top: var(--space-6);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--space-3);
}

.gbench-report .stat {
  padding: var(--space-4) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.gbench-report .stat .k {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

.gbench-report .stat .v {
  margin-top: var(--space-2);
  font-family: var(--font-mono);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--color-primary);
}

.gbench-report .stat .v small {
  margin-left: 6px;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.gbench-report .stat .s {
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* Data tables */
.gbench-report .table-scroll {
  overflow-x: auto;
}

.gbench-report table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-5);
}

.gbench-report thead th {
  padding: var(--space-3);
  text-align: right;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.gbench-report thead th:first-child {
  text-align: left;
}

.gbench-report tbody td {
  padding: var(--space-3);
  text-align: right;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text);
  border-bottom: 1px solid var(--color-divider);
  white-space: nowrap;
}

.gbench-report tbody td:first-child {
  text-align: left;
  white-space: normal;
}

.gbench-report tbody tr:nth-child(even) {
  background: rgba(212, 208, 200, 0.015);
}

.gbench-report tbody tr:hover {
  background: var(--color-primary-dim);
}

.gbench-report td .sub {
  display: block;
  margin-top: 2px;
  font-size: var(--text-xs);
  letter-spacing: 0.02em;
  color: var(--color-text-faint);
}

.gbench-report .num-hi {
  color: var(--color-primary);
}

/* ── Mobile ───────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .gbench-report {
    padding: var(--space-8) var(--space-6) var(--space-12);
  }

  .gbench-report .stat-row {
    grid-template-columns: 1fr;
  }
}
