/* Benchmarks page. Shares styles.css with the homepage; this file adds the chart cards. */
.bench-body .site-header {color: #fff;}
.bench-hero {background: var(--blue); color: #fff; padding: 152px 0 72px;}
.eyebrow {font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.75); margin-bottom: 24px;}
.bench-hero h1 {font-family: var(--font-heading); font-size: clamp(56px, 7.4vw, 104px); line-height: .9; letter-spacing: -.02em;}
.bench-hero h1 em, .bench-hero h1 span {display: block;}
.bench-hero .deck {max-width: 760px; margin-top: 28px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.4; font-weight: 400; letter-spacing: 0;}
.learned {margin-top: 40px; font-family: var(--font-heading); font-size: 34px; line-height: 1.1; letter-spacing: -.01em;}
.bench-facts {display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.35);}
.bench-facts div {display: flex; flex-direction: column; gap: 6px;}
.bench-facts dt {font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.75);}
.bench-facts dd {font-family: var(--font-heading); font-size: 40px; line-height: 1;}
.bench-hero .hero-link {display: inline-block; margin-top: 28px; font-size: 14px; color: #fff; text-decoration: underline; text-underline-offset: 4px;}
.bench-facts dd small {display: block; margin-top: 6px; font-family: var(--font-body); font-size: 13px; color: rgba(255,255,255,.8);}

.bench-section {padding: 96px 0; border-top: 1px solid var(--rule);}
.bench-section .section-head {padding-bottom: 40px;}
.bench-section .section-head h2 {font-size: 60px; line-height: 58px;}
.bench-blue {background: var(--blue); color: #fff; border-top: 0;}
.bench-blue .section-head-blue p {color: #fff;}
.foot {margin-top: 20px; max-width: 760px; font-size: 14px; line-height: 21px; color: var(--muted);}

/* Leaderboard */
.lb-table {overflow-x: auto;}
.lb-table table {width: 100%; border-collapse: collapse; font-size: 15px;}
.lb-table th, .lb-table td {padding: 14px 12px; text-align: right; border-bottom: 1px solid var(--rule); white-space: nowrap; vertical-align: top;}
.lb-table th {font-family: var(--font-mono); font-weight: 400; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--ink); white-space: normal; max-width: 150px;}
.lb-table th.wide {max-width: none; white-space: nowrap;}
.lb-table th:first-child, .lb-table td:first-child {text-align: left; padding-left: 0;}
.lb-table th.group {text-align: center; color: var(--ink); padding-bottom: 6px; letter-spacing: .14em;}
.lb-table thead tr:last-child th {border-bottom-color: var(--rule);}
.lb-table td.model {font-size: 18px;}
.lb-table td.model i {display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 2px; vertical-align: 1px;}
.lb-table td .big {font-family: var(--font-heading); font-size: 30px; line-height: 1;}
.lb-table td .bar {display: block; height: 6px; margin-top: 8px; background: var(--panel); border-radius: 3px; overflow: hidden;}
.lb-table td .bar i {display: block; height: 100%;}
.lb-table td small {display: block; margin-top: 4px; font-size: 12px; color: var(--muted); white-space: normal;}
.lb-table td.best .big {color: var(--blue-text);}
.lb-table td.na {color: var(--muted);}
.lb-table th.split, .lb-table td.split {padding-left: 24px;}
.lb-table tr:not(:first-child) th.split, .lb-table td.split {border-left: 1px solid var(--ink);}

/* Chart cards */
.grid {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; min-width: 0;}
.card {display: flex; flex-direction: column; min-width: 0; gap: 14px; padding: 24px; background: #fff; border: 1px solid var(--rule); border-radius: 6px; color: var(--ink);}
.card.wide {grid-column: 1 / -1;}
.card h3 {font-size: 20px; font-weight: 500; line-height: 26px; letter-spacing: -.01em;}
.card .sub {margin-top: -8px; font-size: 14px; line-height: 20px; color: var(--muted);}
.card .note {font-size: 13px; line-height: 19px; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 12px;}
.card .chart {width: 100%; overflow-x: auto;}
.card .chart svg {min-width: 320px;}
.bench-body {overflow-x: hidden;}
.card svg {display: block; width: 100%; height: auto; font-family: var(--font-body); font-size: 12px;}
.card svg text {fill: var(--ink);}
.card svg .axis {stroke: var(--rule); stroke-width: 1;}
.card svg .axis-dark {stroke: var(--ink);}
.card svg .tick {fill: var(--muted); font-family: var(--font-mono); font-size: 10px;}
.card svg .lab {font-size: 12px;}
.card svg .val {font-family: var(--font-mono); font-size: 11px;}
.card svg .grid {stroke: var(--rule); stroke-dasharray: 2 3;}
.legend-row {display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px;}
.legend-row span {display: inline-flex; align-items: center; gap: 8px;}
.legend-row i {width: 10px; height: 10px; border-radius: 2px;}
.legend-row i.line {height: 2px; width: 16px; border-radius: 0;}
.legend-row i.hollow {border: 1.5px solid currentColor; background: transparent !important;}
.bench-blue .card {border-color: transparent;}

.stat-row {display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;}
.stat-row div {padding: 14px; background: var(--panel); border-radius: 4px;}
.stat-row b {display: block; font-family: var(--font-heading); font-size: 32px; line-height: 1; font-weight: 400;}
.stat-row small {display: block; margin-top: 6px; font-size: 12px; color: var(--muted);}

.mini-table {width: 100%; min-width: 560px; border-collapse: collapse; font-size: 13px;}
.mini-table th, .mini-table td {padding: 8px 8px; text-align: right; border-bottom: 1px solid var(--rule); white-space: nowrap;}
.mini-table th {font-family: var(--font-mono); font-weight: 400; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);}
.mini-table th:first-child, .mini-table td:first-child {text-align: left; padding-left: 0;}
.mini-table td.m {font-family: var(--font-mono); font-size: 12px;}
.mini-table tr.dim td {color: var(--muted);}

.caveat-list {display: grid; gap: 14px; margin-top: 32px; max-width: 900px;}
.caveat-list li {padding: 16px 0; border-top: 1px solid var(--rule); font-size: 15px; line-height: 23px; color: var(--body-muted);}
.caveat-list b {display: block; font-weight: 500; color: var(--ink); margin-bottom: 2px;}

.contact .button-blue {background: var(--blue);}

@media (max-width: 1180px) {
  .bench-facts {grid-template-columns: repeat(3, 1fr);}
}
@media (max-width: 900px) {
  .grid {grid-template-columns: 1fr;}
  .bench-section .section-head h2 {font-size: 44px; line-height: 42px;}
}
@media (max-width: 760px) {
  .bench-hero {padding: 104px 0 48px;}
  .bench-hero h1 {font-size: 48px; line-height: 46px;}
  .bench-hero .deck {font-size: 17px;}
  .bench-facts {grid-template-columns: repeat(2, 1fr); gap: 18px;}
  .bench-facts dd {font-size: 30px;}
  .bench-section {padding: 56px 0;}
  .card {padding: 18px;}
  .stat-row {grid-template-columns: 1fr;}
  .lb-table td .big {font-size: 22px;}
}
