/* Version switcher is a tab bar; the compare controls stay as form fields. */
.benchmark-page .bm-versions {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  margin: 28px 0 0;
  border-bottom: 1px solid var(--line);
}
.benchmark-page .bm-versions .bm-version {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: -1px;
  padding: 0 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: none;
  color: var(--muted);
}
.benchmark-page .bm-versions .bm-version:hover { color: var(--ink); }
.benchmark-page .bm-versions .bm-version[aria-current="page"] { border-bottom-color: var(--accent); color: var(--ink); }

.benchmark-page .bm-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.benchmark-page .bm-controls select {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font: inherit;
}

.benchmark-page .bm-controls[hidden] { display: none; }
.benchmark-page .bm-controls label { display: grid; gap: 6px; color: var(--muted); }
.benchmark-page .bm-details { margin-top: 20px; }
.benchmark-page .bm-details summary { cursor: pointer; color: var(--accent); }
.benchmark-page .bm-tiers { padding: 0; list-style: none; }
.benchmark-page .bm-tiers strong { margin-right: 8px; }
.benchmark-page .bm-source-list li { margin-bottom: 8px; }
.benchmark-page #research-request label { display: block; margin-bottom: 8px; }
.benchmark-page #mesa-auth-panel [hidden] { display: none; }
.benchmark-page .bm-table tbody small { display: block; margin-top: 4px; color: var(--muted-2); }

@media (max-width: 480px) {
  .benchmark-page .bm-controls label { flex: 1 1 120px; }
}

/* The tab bar and number strip use the full width: no side drawing here, and one rule line. */
.benchmark-page .page-hero .passage-mark { display: none; }
.benchmark-page .bm-versions + .bm-strip { margin-top: 28px; }
.benchmark-page .bm-versions + .bm-strip .bm-strip__items { border-top: 0; }

/* Additional release data follows the existing benchmark typography and palette. */
.benchmark-page .bm-strip--four .bm-strip__items { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.benchmark-page .bm-strip--four .bm-strip__value { font-size: clamp(32px, 4.5vw, 64px); }
.benchmark-page .bm-bars { display: grid; gap: 24px; margin: 20px 0; }
.benchmark-page .bm-bars__group h3 { margin-bottom: 12px; }
.benchmark-page .bm-bars__row { display: grid; grid-template-columns: 100px minmax(0, 1fr) 100px; align-items: center; gap: 16px; margin: 10px 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.benchmark-page .bm-bars__row > span:last-child { text-align: right; }
.benchmark-page .bm-bars__track { display: block; width: 100%; height: 12px; fill: var(--accent); }
.benchmark-page .bm-bars__track--0 { fill: #7c818c; }
.benchmark-page .bm-bars__track--1 { fill: #bd9971; }
.benchmark-page .bm-bars__track .bm-bars__background { fill: var(--line); }
@media (max-width: 800px) {
  .benchmark-page .bm-strip--four .bm-strip__items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benchmark-page .bm-strip--four .bm-strip__item:nth-child(-n+2) { border-top: 0; }
  .benchmark-page .bm-strip--four .bm-strip__item:nth-child(odd) { padding-left: 0; border-left: 0; }
}
@media (max-width: 480px) {
  .benchmark-page .bm-bars__row { grid-template-columns: 84px minmax(0, 1fr) 74px; gap: 8px; }
  .benchmark-page .bm-strip--four .bm-strip__item { padding-right: 12px; }
  .benchmark-page .bm-strip--four .bm-strip__item:nth-child(even) { padding-left: 12px; }
}
