/* /benchmarks: the benchmark board. Uses the shell tokens (ui/shell.css) and
   the same calm card surface and bar rows as the Model Drop charts. */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.55;
}

h1, h2, h3 { font-family: 'Outfit', sans-serif; font-weight: 600; }
a { color: inherit; }

.bb {
  max-width: 1160px;
  margin: 0 auto;
  padding: 8px 20px 40px;
}

/* Hero */
.bb-hero { padding: 6px 0 0; }
.bb-title {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.bb-intro {
  margin-top: 14px;
  font-size: 16.5px;
  color: var(--text-secondary);
}
/* The time filter rides just under the header once the page scrolls, and
   turns to the header's glass while it is stuck (ui/benchmarks.js). */
.bb-range-bar {
  position: sticky;
  top: calc(var(--nav-top) + var(--safe-t) + var(--nav-h) + 10px);
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin-top: 20px;
}
.bb-range {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(230, 230, 222, 0.06);
  box-shadow: inset 0 0 0 1px rgba(230, 230, 222, 0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.bb-range-bar.is-stuck .bb-range {
  background: var(--glass-sheen), var(--glass);
  -webkit-backdrop-filter: var(--glass-fx);
          backdrop-filter: var(--glass-fx);
  box-shadow: var(--glass-shine), var(--glass-drop);
}
.bb-range a {
  padding: 7px 14px;
  border-radius: 999px;
  font: 500 13.5px/1 'Outfit', sans-serif;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.bb-range-short { display: none; }
.bb-range a:hover { color: var(--text); background: rgba(230, 230, 222, 0.06); }
.bb-range a[aria-current="true"] { color: var(--ink); background: var(--mint); }
/* Weights are on/off switches, not one pick: a softer on state. */
.bb-weights a[aria-checked="true"] { color: var(--mint); background: rgba(143, 227, 185, 0.14); box-shadow: inset 0 0 0 1px rgba(143, 227, 185, 0.28); }
.bb-weights a[aria-checked="true"]:hover { color: var(--mint); background: rgba(143, 227, 185, 0.2); }
.bb-empty {
  margin-top: 28px;
  padding: 22px;
  border-radius: 20px;
  background: rgba(230, 230, 222, 0.05);
  color: var(--text-secondary);
}
.bb-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}
.bb-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(230, 230, 222, 0.08), rgba(230, 230, 222, 0.04));
}
.bb-stat::before { background: var(--rim-soft); }
.bb-stat-value {
  font: 600 34px/1 'Outfit', sans-serif;
  color: var(--mint);
  font-variant-numeric: tabular-nums;
}
.bb-stat-label { font-size: 13px; color: var(--text-secondary); }

/* Sections */
.bb-section { margin-top: 44px; scroll-margin-top: 96px; }
.bb-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.bb-section h2 { font-size: 26px; letter-spacing: -0.01em; line-height: 1.2; }
.bb-section-sub { margin: 6px 0 16px; font-size: 14.5px; color: var(--text-secondary); }
.bb-subhead { margin: 28px 0 14px; font-size: 17px; color: var(--text-secondary); }

.bb-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.bb-split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.bb-card {
  position: relative;
  min-width: 0;
  padding: 16px 18px 15px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(230, 230, 222, 0.08), rgba(230, 230, 222, 0.045));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(230, 230, 222, 0.1), 0 8px 24px rgba(0, 16, 11, 0.18);
  scroll-margin-top: 96px;
}
.bb-card:target { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 0 0 1.5px rgba(143, 227, 185, 0.55), 0 8px 24px rgba(0, 16, 11, 0.18); }
.bb-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.bb-card-title { font-size: 15.5px; line-height: 1.3; }
.bb-card-sub { margin-top: 3px; font-size: 12.5px; line-height: 1.4; color: var(--text-secondary); }
.bb-card-kicker {
  margin-bottom: 10px;
  font: 600 12px/1.2 'Outfit', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint);
}
.bb-card-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(230, 230, 222, 0.07); font-size: 12px; line-height: 1.6; color: var(--text-secondary); }
.bb-card-foot a { text-decoration: none; color: rgba(230, 230, 222, 0.72); }
.bb-card-foot a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }

/* Bar rows: one set of columns for every row, so every track is the same
   length and a bar's length is its value against the others. */
.bb-rows {
  display: grid;
  grid-template-columns: minmax(0, 10em) minmax(0, 1fr) 5.4em;
  column-gap: 10px;
  row-gap: 7px;
}
.bb-rows-wide { grid-template-columns: minmax(0, 11em) minmax(0, 1fr) 2.5em; row-gap: 10px; }
.bb-row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: center;
  font-size: 12.5px;
  line-height: 1.25;
  color: var(--text-secondary);
}
.bb-rows-wide .bb-row { font-size: 14px; }
.bb-row.is-top { color: var(--text); font-weight: 600; }
.bb-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bb-label .maker-mark { width: 1.05em; height: 1.05em; margin-right: 6px; vertical-align: -0.17em; opacity: 0.85; }
.bb-row.is-cited .bb-label { font-style: italic; }
.bb-effort { margin-left: 6px; font-size: 0.8em; font-weight: 500; font-style: normal; color: var(--text-secondary); opacity: 0.8; }
.bb-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 9%, transparent);
  overflow: hidden;
}
.bb-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  border-radius: inherit;
  background: color-mix(in srgb, var(--text) 38%, transparent);
  transform-origin: left center;
}
.bb-row.is-top .bb-fill { background: var(--mint); }
.bb-value { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

.bb-more summary {
  margin-top: 10px;
  cursor: pointer;
  font-size: 12.5px;
  color: var(--text-secondary);
  list-style: none;
}
.bb-more summary::-webkit-details-marker { display: none; }
.bb-more summary::before { content: '+ '; color: var(--mint); }
.bb-more[open] summary::before { content: '\2212  '; }
.bb-more .bb-rows { margin-top: 8px; }

/* Most first places, by model */
.bb-chips { list-style: none; display: grid; gap: 9px; }
.bb-chips li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.bb-chips .maker-mark { width: 1.05em; height: 1.05em; opacity: 0.85; }
.bb-chip-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bb-chip-count {
  flex: none;
  min-width: 2em;
  padding: 2px 8px;
  border-radius: 999px;
  text-align: center;
  font: 600 13px/1.4 'Outfit', sans-serif;
  color: var(--ink);
  background: var(--mint);
}
.bb-chips li + li .bb-chip-count { color: var(--text); background: rgba(230, 230, 222, 0.12); }

/* Share buttons */
.bb-share {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: 600 13px/1 'Outfit', sans-serif;
  color: var(--text);
  background: rgba(230, 230, 222, 0.08);
  box-shadow: inset 0 0 0 1px rgba(230, 230, 222, 0.14);
  transition: background 0.2s ease, color 0.2s ease;
}
.bb-share svg { display: block; width: 15px; height: 15px; }
.bb-share.is-icon { padding: 7px; }
.bb-share-group { flex: none; display: inline-flex; gap: 6px; }
.bb-share:hover { color: var(--mint); background: rgba(143, 227, 185, 0.14); }
.bb-share.is-busy { opacity: 0.6; }

/* Best score over time */
.bb-chart { position: relative; height: 210px; }
.bb-chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.bb-chart .grid { stroke: rgba(230, 230, 222, 0.06); stroke-width: 1; stroke-dasharray: 2 5; }
.bb-chart .tick { fill: var(--text-secondary); font-size: 10.5px; opacity: 0.75; }
.bb-chart .dot { fill: rgba(230, 230, 222, 0.28); transition: fill 0.15s; }
.bb-chart .dot.is-cited { fill: none; stroke: rgba(230, 230, 222, 0.3); stroke-width: 1; }
.bb-chart .step { fill: none; stroke: var(--mint); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.bb-chart .step.is-drawing { stroke-dasharray: 1; stroke-dashoffset: 1; animation: bb-draw 1.1s cubic-bezier(0.33, 1, 0.68, 1) 0.1s forwards; }
@keyframes bb-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .bb-chart .step.is-drawing { animation: none; stroke-dashoffset: 0; } }
.bb-chart .area { fill: url(#bb-area); }
.bb-chart .record { fill: var(--mint); stroke: var(--background); stroke-width: 1.5; }
.bb-chart .halo { fill: var(--mint); opacity: 0.16; }
.bb-chart .label { fill: var(--text-secondary); font: 500 11px 'Outfit', sans-serif; }
.bb-chart .label-score { fill: var(--mint); font-weight: 600; }
.bb-chart .hit { fill: transparent; cursor: pointer; }
.bb-tip {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  padding: 7px 10px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  color: var(--text);
  background: var(--glass-strong);
  box-shadow: var(--glass-drop);
  transform: translate(-50%, calc(-100% - 10px));
}
.bb-tip strong { font-family: 'Outfit', sans-serif; }

/* Biggest generational jumps */
.bb-jumps { display: grid; gap: 0; padding-top: 6px; padding-bottom: 6px; }
.bb-jump {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  font-size: 14px;
}
.bb-jump + .bb-jump { border-top: 1px solid var(--hairline); }
.bb-jump-models { display: flex; align-items: center; gap: 7px; min-width: 0; white-space: nowrap; overflow: hidden; }
.bb-jump-models span:not(.maker-mark):not(.bb-jump-arrow) { color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; }
.bb-jump-models .maker-mark { width: 1.05em; height: 1.05em; opacity: 0.85; }
.bb-jump-arrow { color: var(--mint); }
.bb-jump-bench { font-size: 13px; color: var(--text-secondary); }
.bb-jump-bar { display: flex; align-items: center; gap: 10px; }
.bb-jump-bar .bb-track { flex: 1; }
.bb-fill.is-from { width: var(--w); }
.bb-fill.is-gain { left: var(--l); width: var(--w); background: var(--mint); border-radius: 0 999px 999px 0; }
.bb-jump-gain { flex: none; min-width: 3.2em; text-align: right; font: 600 14px 'Outfit', sans-serif; color: var(--mint); font-variant-numeric: tabular-nums; }

/* Release pace */
.bb-pace {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  overflow-x: auto;
  padding-top: 18px;
  scrollbar-width: thin;
}
.bb-month { flex: 1 0 64px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bb-month-dots { display: flex; flex-direction: column-reverse; gap: 5px; align-items: center; }
.bb-dot {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--text);
  background: rgba(230, 230, 222, 0.08);
  box-shadow: inset 0 0 0 1px rgba(230, 230, 222, 0.12);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.bb-dot:hover { color: var(--ink); background: var(--mint); }
.bb-dot .maker-mark { width: 15px; height: 15px; }
.bb-dot-blank { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.bb-month-count { font: 600 15px/1 'Outfit', sans-serif; color: var(--mint); }
.bb-month-label { font-size: 12px; color: var(--text-secondary); white-space: nowrap; }

.bb-method { font-size: 14.5px; color: var(--text-secondary); }
.bb-method h2 { font-size: 20px; color: var(--text); margin-bottom: 8px; }
.bb-method p + p { margin-top: 10px; }
.bb-method a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(143, 227, 185, 0.6); text-underline-offset: 3px; }
.bb-method code { font-size: 13px; padding: 1px 5px; border-radius: 6px; background: rgba(230, 230, 222, 0.08); }

/* Newsletter signups under the top weigh-in and between the leaderboards (hidden unless the reader closed the popup
   before). One card: copy on the left, the form on the right. */
.bb-signup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  padding: 24px;
  border-radius: 20px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(143, 227, 185, 0.08), rgba(143, 227, 185, 0) 55%),
    linear-gradient(180deg, rgba(230, 230, 222, 0.08), rgba(230, 230, 222, 0.045));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(230, 230, 222, 0.1), 0 8px 24px rgba(0, 16, 11, 0.18);
}
.bb-signup[hidden] { display: none; }
.bb-signup .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bb-signup h3 { font-size: 20px; letter-spacing: -0.01em; line-height: 1.2; }
.bb-signup p { margin-top: 6px; font-size: 14.5px; color: var(--text-secondary); max-width: 52ch; }
.bb-signup-form { display: flex; gap: 8px; flex-shrink: 0; }
.bb-signup-form input[type="email"] {
  width: 240px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(230, 230, 222, 0.18);
  border-radius: 999px;
  background: rgba(230, 230, 222, 0.05);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
.bb-signup-form input[type="email"]::placeholder { color: var(--text-secondary); opacity: 0.7; }
.bb-signup-form input[type="email"]:focus { outline: none; border-color: rgba(143, 227, 185, 0.6); }
.bb-signup-form button {
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--mint);
  color: var(--ink);
  font: 600 14px/1 'Outfit', sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
.bb-signup-form button:hover { opacity: 0.9; }
.bb-signup-form button:disabled { opacity: 0.6; cursor: default; }
.bb-signup-done { margin: 0; color: var(--mint); font: 600 15px/1.4 'Outfit', sans-serif; }
@media (max-width: 720px) {
  .bb-signup { flex-direction: column; align-items: stretch; gap: 16px; padding: 16px; }
  .bb-signup-form input[type="email"] { flex: 1; width: auto; min-width: 0; font-size: 16px; }
}

@media (prefers-reduced-motion: no-preference) {
  .js-anim .bb-fill { transform: scaleX(0); transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0ms); }
  .js-anim .is-in .bb-fill { transform: scaleX(1); }
}

@media (max-width: 900px) {
  .bb-grid, .bb-split { grid-template-columns: minmax(0, 1fr); }
  .bb-jump { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bb-jump-bench { grid-column: 1; grid-row: 2; }
  .bb-jump-bar { grid-column: 2; grid-row: 1 / span 2; }
}

@media (max-width: 720px) {
  .bb-range-bar { width: 100%; }
  /* One row of short labels on phones, so the stuck filter stays slim. */
  .bb-range { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); width: 100%; }
  .bb-range.bb-weights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bb-weights .bb-range-full { display: inline; }
  .bb-weights .bb-range-short { display: none; }
  .bb-range-bar { gap: 6px; }
  .bb-range a { padding: 9px 4px; font-size: 13.5px; text-align: center; }
  .bb-range-full { display: none; }
  .bb-range-short { display: inline; }
  .bb { padding: 4px 16px 32px; }
  .bb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bb-stat-value { font-size: 28px; }
  .bb-section { margin-top: 36px; }
  .bb-section h2 { font-size: 22px; }
  .bb-rows { grid-template-columns: minmax(0, 8.6em) minmax(0, 1fr) 4.8em; }
  .bb-rows-wide { grid-template-columns: minmax(0, 9em) minmax(0, 1fr) 2em; }
  .bb-jump { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .bb-jump-bench, .bb-jump-bar { grid-column: 1; grid-row: auto; }
  .bb-chart { height: 190px; }
}

/* Leaderboard search, type chips, and the type pill on each card. */
.bb-filter { display: grid; gap: 10px; margin: 4px 0 18px; }
.bb-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 560px;
  padding: 0 14px;
  height: 46px;
  border-radius: 999px;
  background: rgba(230, 230, 222, 0.06);
  box-shadow: inset 0 0 0 1px rgba(230, 230, 222, 0.12);
  transition: box-shadow 0.15s ease, background 0.15s ease;
}
.bb-search:focus-within { background: rgba(230, 230, 222, 0.08); box-shadow: inset 0 0 0 1.5px rgba(143, 227, 185, 0.55); }
.bb-search svg { flex: none; width: 17px; height: 17px; color: var(--text-secondary); }
.bb-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: 400 15px/1.2 'Outfit', sans-serif;
}
.bb-search input::placeholder { color: var(--text-secondary); opacity: 0.8; }
.bb-search input::-webkit-search-cancel-button { filter: invert(0.8); }
.bb-search-count { flex: none; font: 500 12.5px/1 'Outfit', sans-serif; color: var(--mint); font-variant-numeric: tabular-nums; }
.bb-type-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bb-type-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(230, 230, 222, 0.06);
  box-shadow: inset 0 0 0 1px rgba(230, 230, 222, 0.1);
  color: var(--text-secondary);
  font: 500 13px/1 'Outfit', sans-serif;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.bb-type-chip span { font-size: 11.5px; opacity: 0.7; font-variant-numeric: tabular-nums; }
.bb-type-chip:hover { color: var(--text); background: rgba(230, 230, 222, 0.1); }
.bb-type-chip[aria-pressed="true"] { color: var(--ink); background: var(--mint); box-shadow: none; }
.bb-type-chip[aria-pressed="true"] span { opacity: 0.75; }
.bb-type {
  display: inline-block;
  vertical-align: top;
  margin-bottom: 7px;
  padding: 3px 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(143, 227, 185, 0.12);
  box-shadow: inset 0 0 0 1px rgba(143, 227, 185, 0.22);
  color: var(--mint);
  font: 600 10.5px/1.3 'Outfit', sans-serif;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
}
.bb-type:hover { background: rgba(143, 227, 185, 0.2); }
/* Shown on every card while the page is filtered to one kind of weights. */
.bb-only {
  display: inline-block;
  margin: 0 0 7px 6px;
  padding: 3px 9px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(230, 230, 222, 0.18);
  color: var(--text-secondary);
  font: 600 10.5px/1.3 'Outfit', sans-serif;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  vertical-align: top;
}
.bb-trend .bb-only, .bb-weigh .bb-only { margin-left: 0; }
.bb-weigh .bb-only { margin: 0 0 0 8px; vertical-align: middle; }
.bb-board[hidden], .bb-grid[hidden], .bb-subhead[hidden], .bb-empty[hidden] { display: none; }
@media (max-width: 640px) {
  .bb-type-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .bb-type-chips::-webkit-scrollbar { display: none; }
  .bb-type-chip { flex: none; }
}

/* The weigh-in card above the boards when a type is picked. */
.bb-weigh { margin-bottom: 14px; padding: 20px 22px 18px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(143, 227, 185, 0.28), 0 8px 24px rgba(0, 16, 11, 0.18); }
.bb-weigh[hidden] { display: none; }
.bb-weigh-title { font-size: 24px; line-height: 1.2; letter-spacing: -0.015em; }
/* Same height as the share and download buttons beside it (7px padding + 15px icon). */
.bb-weigh-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 29px;
  margin-bottom: 12px;
  padding: 0 13px 0 11px;
  border-radius: 999px;
  background: rgba(143, 227, 185, 0.12);
  box-shadow: inset 0 0 0 1px rgba(143, 227, 185, 0.26);
  color: var(--mint);
  font: 600 12px/1 'Outfit', sans-serif;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}
.bb-weigh-pill .hai-mark { font-size: 15px; vertical-align: 0; }
.bb-weigh-sep { width: 1px; height: 13px; margin: 0 2px; background: rgba(143, 227, 185, 0.5); }
.bb-weigh .bb-card-head { align-items: flex-start; }
.bb-weigh .bb-card-sub { margin-top: 5px; font-size: 14px; }
.bb-weigh-link { display: inline-block; margin-top: 12px; color: var(--mint); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.bb-weigh-link:hover { text-decoration: underline; }
.bb-card-foot-link { color: var(--mint); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.bb-type--static { cursor: default; }
.bb-type--static:hover { background: rgba(143, 227, 185, 0.12); }
.bb-weigh-rows {
  display: grid;
  grid-template-columns: 1.6em minmax(0, 14em) minmax(0, 1fr) 2.8em minmax(0, 11em);
  column-gap: 12px;
  row-gap: 10px;
  margin-top: 4px;
}
.bb-weigh-row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: center;
  font-size: 14px;
  line-height: 1.25;
  color: var(--text-secondary);
}
.bb-weigh-row.is-top { color: var(--text); font-weight: 600; }
.bb-weigh-row.is-top .bb-fill { background: var(--mint); }
.bb-weigh-rank { font: 600 13px/1 'Outfit', sans-serif; color: var(--text-secondary); text-align: right; font-variant-numeric: tabular-nums; }
.bb-weigh-row.is-top .bb-weigh-rank { color: var(--mint); }
.bb-weigh-row .bb-value { font: 600 15px/1 'Outfit', sans-serif; }
.bb-weigh-meta { font-size: 12px; font-weight: 400; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 460px) {
  /* Long types (Instructions, Long context) drop "bench" so the pill stays on one line beside the buttons. */
  .bb-weigh-bench { display: none; }
}
@media (max-width: 640px) {
  .bb-weigh { padding: 16px 16px 14px; }
  .bb-weigh-title { font-size: 20px; }
  .bb-weigh-pill { gap: 6px; padding: 0 11px 0 9px; font-size: 11px; letter-spacing: 0.05em; }
  .bb-weigh .bb-card-sub { font-size: 13px; }
  .bb-weigh-rows { grid-template-columns: 1.3em minmax(0, 9em) minmax(0, 1fr) 2.2em; column-gap: 9px; }
  .bb-weigh-meta { display: none; }
}

/* Search hits on a leaderboard row (ui/benchmarks.js). */
.bb-row.is-match .bb-label { color: var(--mint); font-weight: 600; }

/* /benchmarks/sentiment-bench: the Sentiment Bench page. Rows open into each
   model's sources, verdicts and the reactions that moved its score. */
.sb-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  padding: 9px 15px 9px 11px;
  border-radius: 999px;
  font: 500 13.5px/1 'Outfit', sans-serif;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s ease;
}
.sb-back svg { width: 16px; height: 16px; flex: none; }
.sb-back:hover { color: var(--mint); }
.bb-card-title a { text-decoration: none; }
.bb-card-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sb-rows { row-gap: 0; }
.sb-entry { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; border-top: 1px solid rgba(230, 230, 222, 0.06); scroll-margin-top: 96px; }
.sb-entry:first-child { border-top: 0; }
.sb-entry > summary { padding: 9px 0; cursor: pointer; list-style: none; }
.sb-entry > summary::-webkit-details-marker { display: none; }
.sb-entry > summary:hover .bb-label { color: var(--text); }
.sb-entry[open] > summary .bb-label, .sb-entry:target > summary .bb-label { color: var(--text); font-weight: 600; }
/* Chrome 131+ wraps everything after <summary> in ::details-content, which
   becomes the grid item and lands in the narrow label column. Span it. */
.sb-entry::details-content { grid-column: 1 / -1; min-width: 0; }
.sb-detail { grid-column: 1 / -1; padding: 2px 0 16px; font-size: 13.5px; line-height: 1.55; color: var(--text-secondary); }
.sb-detail > p + p, .sb-detail > ul + p, .sb-detail > p + ul { margin-top: 8px; }
.sb-sources { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.sb-src { color: var(--text); font-variant-numeric: tabular-nums; }
.sb-src-name { color: var(--text-secondary); }
.sb-src-n { margin-left: 6px; font-size: 12px; color: var(--text-secondary); }
.sb-quotes { display: grid; gap: 8px; list-style: none; }
.sb-quote { padding-left: 12px; border-left: 2px solid rgba(230, 230, 222, 0.18); }
.sb-quote.is-up { border-left-color: rgba(143, 227, 185, 0.6); }
.sb-quote.is-down { border-left-color: rgba(240, 150, 130, 0.6); }
.sb-quote a { color: var(--text); text-decoration: none; }
.sb-quote a:hover { text-decoration: underline; text-underline-offset: 2px; }
.sb-quote-src { display: block; font-size: 12px; }
.sb-buzz a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(143, 227, 185, 0.6); text-underline-offset: 3px; }
.sb-reviewers .sb-src-n a { color: var(--text-secondary); text-decoration: underline; text-decoration-color: rgba(230, 230, 222, 0.25); text-underline-offset: 3px; }
.sb-reviewers .sb-src-n a:hover { color: var(--text); }
.sb-hype { display: grid; gap: 9px; margin-top: 12px; list-style: none; counter-reset: hype; }
.bb-card-head + .sb-hype { margin-top: 0; }
.sb-hype li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; font-size: 14px; }
.sb-hype .bb-label { color: var(--text); }
.sb-hype-n { text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }
.sb-hype-v { grid-column: 1 / -1; font-size: 12px; color: var(--text-secondary); }
@media (max-width: 640px) {
  .sb-rows { grid-template-columns: minmax(0, 9em) minmax(0, 1fr) 2.6em; }
  .sb-detail { font-size: 13px; }
}
