/* AIEval DoW Bench leaderboard: extends aieval.org base.css + style.css. Self-hosted fonts, no external requests. */
@font-face { font-family: 'DM Sans'; src: url('fonts/DMSans-Variable.ttf') format('truetype'); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url('fonts/PlayfairDisplay-Variable.ttf') format('truetype'); font-weight: 400 900; font-style: normal; font-display: swap; }

:root { --content-xwide: 1360px; --ok: #2f7d4f; --warn: #8a5d00; --warn-bg: #fff4d6; --warn-border: #e8c766; --bad: #a33a3a; }
[data-theme="dark"] { --ok: #6cc08f; --warn: #f0c45a; --warn-bg: #3a3014; --warn-border: #7a6420; --bad: #e08080; }

a { color: var(--color-primary); }
a:hover { color: var(--color-primary-hover); }
.container--xwide { max-width: var(--content-xwide); }
.nav__link--active { color: var(--color-text); font-weight: 600; }

.draft-banner { background: var(--warn-bg); color: var(--color-text); border-bottom: 1px solid var(--warn-border); font-size: var(--text-xs); text-align: center; padding: var(--space-2) var(--space-4); }
.draft-banner strong { color: var(--warn); letter-spacing: .06em; text-transform: uppercase; }

/* Hero */
.lb-hero { position: relative; overflow: hidden; background: var(--color-bg); border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.06); }
.lb-hero .hero__grid { position: absolute; inset: 0; }
.lb-hero__content { position: relative; z-index: 1; max-width: var(--content-wide); margin-inline: auto; padding: var(--space-16) var(--space-4) var(--space-12); }
.lb-hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.1rem); max-width: 26ch; margin-bottom: var(--space-5); }
.lb-hero__sub { color: var(--color-text-muted); max-width: 70ch; line-height: 1.7; margin-bottom: var(--space-5); }
.lb-meta { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); }
.pill { display: inline-flex; align-items: center; gap: .35em; font-size: var(--text-xs); font-weight: 600; padding: .2rem .7rem; border-radius: var(--radius-full); background: var(--color-surface-2); color: var(--color-text-muted); border: 1px solid var(--color-divider); white-space: nowrap; }
.pill--draft { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-border); }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.btn-secondary { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); font-weight: 600; color: var(--color-primary); background: var(--color-surface); border: 1px solid var(--color-border); padding: var(--space-3) var(--space-6); border-radius: var(--radius-sm); text-decoration: none; }
.btn-secondary:hover { border-color: var(--color-primary); }

/* Generic blocks */
.block { padding-block: var(--space-12); }
.block--alt { background: var(--color-surface); border-block: 1px solid oklch(from var(--color-text) l c h / 0.06); }
.block h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--text-xl); margin-bottom: var(--space-4); }
.block h3 { font-size: var(--text-lg); font-weight: 600; margin: var(--space-6) 0 var(--space-2); }
.prose p, .prose li { color: var(--color-text-muted); line-height: 1.75; }
.prose p + p { margin-top: var(--space-3); }
.prose ul, .prose ol { padding-left: 1.3rem; margin-top: var(--space-2); }
.prose li + li { margin-top: var(--space-2); }
.prose strong { color: var(--color-text); }
.muted { color: var(--color-text-muted); }
.small { font-size: var(--text-xs); }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; }
pre { background: var(--color-surface-2); border: 1px solid var(--color-divider); border-radius: var(--radius-md); padding: var(--space-4); overflow-x: auto; font-size: var(--text-xs); line-height: 1.6; }

/* Current answer */
.answer { background: var(--color-surface); border: 1px solid var(--color-border); border-left: 4px solid var(--color-primary); border-radius: var(--radius-lg); padding: var(--space-6) var(--space-8); box-shadow: var(--shadow-sm); }
.answer__label { font-size: var(--text-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--color-primary); margin-bottom: var(--space-2); }
.answer p { font-size: var(--text-base); line-height: 1.75; max-width: none; color: var(--color-text); }

/* Picks */
.picks { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.pick { background: var(--color-surface); border: 1px solid oklch(from var(--color-text) l c h / 0.1); border-radius: var(--radius-lg); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); }
.pick__kicker { font-size: var(--text-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); }
.pick__model { font-weight: 700; font-size: var(--text-base); }
.pick__model a { color: var(--color-text); text-decoration: none; }
.pick__model a:hover { color: var(--color-primary); }
.pick__score { font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--color-primary); }
.pick__note { font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.6; }
@media (max-width: 1024px) { .picks { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .picks { grid-template-columns: 1fr; } }

/* Proof points */
.proofs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.proof { background: var(--color-bg); border: 1px solid oklch(from var(--color-text) l c h / 0.08); border-radius: var(--radius-lg); padding: var(--space-5); }
.proof h3 { margin-top: 0; font-size: var(--text-base); }
.proof p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.65; }
@media (max-width: 860px) { .proofs { grid-template-columns: 1fr; } }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-6); align-items: flex-end; margin-bottom: var(--space-4); }
.fgroup { display: flex; flex-direction: column; gap: var(--space-1); }
.fgroup__label { font-size: var(--text-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-muted); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.chip { font-size: var(--text-xs); font-weight: 600; padding: .3rem .75rem; border-radius: var(--radius-full); border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text-muted); }
.chip[aria-pressed="true"] { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.fsearch { font-size: var(--text-sm); padding: .35rem .7rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface); min-width: 12rem; }
.toggle { display: inline-flex; gap: .45rem; align-items: center; font-size: var(--text-xs); font-weight: 600; color: var(--color-text-muted); }
.fsort { display: none; }
.result-count { font-size: var(--text-xs); color: var(--color-text-muted); margin-bottom: var(--space-2); }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); }
.lb { font-size: var(--text-sm); min-width: 1100px; }
.lb th, .lb td { padding: .6rem .7rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-divider); }
.lb thead th { background: var(--color-surface-2); font-size: var(--text-xs); font-weight: 700; letter-spacing: .03em; color: var(--color-text-muted); position: sticky; top: 0; white-space: nowrap; }
.lb thead th.grp { text-align: center; text-transform: uppercase; letter-spacing: .1em; font-size: .68rem; border-bottom: 1px solid var(--color-border); }
.lb thead th.grp--bench { color: var(--color-primary); background: oklch(from var(--color-primary) l c h / 0.08); }
.lb th button { font: inherit; color: inherit; display: inline-flex; align-items: center; gap: .3em; padding: 0; text-align: left; }
.lb th button::after { content: '↕'; opacity: .35; font-size: .9em; }
.lb th[aria-sort="ascending"] button::after { content: '↑'; opacity: 1; }
.lb th[aria-sort="descending"] button::after { content: '↓'; opacity: 1; }
.lb tbody tr:hover { background: oklch(from var(--color-primary) l c h / 0.04); }
.lb td.num { font-variant-numeric: tabular-nums; }
.lb td.bench { background: oklch(from var(--color-primary) l c h / 0.03); min-width: 8.5rem; }
.lb td.bench.focus, .lb th.focus { background: oklch(from var(--color-primary) l c h / 0.10); }
.lb .model-name { font-weight: 700; color: var(--color-text); text-decoration: none; }
.lb .model-name:hover { color: var(--color-primary); text-decoration: underline; }
.lb .sub, .lb .subcol { display: none; }
.lb.show-sub .subcol { display: table-cell; }
.lb .subcol { font-size: var(--text-xs); color: var(--color-text-muted); background: var(--color-bg); }
.lb tr.is-hidden { display: none; }
.score { font-weight: 700; font-variant-numeric: tabular-nums; font-size: var(--text-base); }
.bar { display: block; height: 4px; border-radius: 2px; background: var(--color-surface-offset); margin-top: .3rem; overflow: hidden; max-width: 7rem; }
.bar > i { display: block; height: 100%; width: calc(var(--v) * 100%); background: var(--color-primary); }
.cell-note { display: block; font-size: .72rem; color: var(--color-text-muted); line-height: 1.4; margin-top: .2rem; }
.partial .score { color: var(--color-text-muted); }
.partial .bar > i { background: var(--color-text-faint); }
.ng { display: block; font-size: .74rem; font-weight: 600; color: var(--warn); line-height: 1.35; }
.pending { font-size: .74rem; font-weight: 600; color: var(--warn); line-height: 1.35; }
.nm { font-size: .74rem; color: var(--color-text-muted); }
.fn { font-size: .7em; vertical-align: super; color: var(--color-primary); text-decoration: none; font-weight: 700; margin-left: 1px; }

/* Badges */
.badges { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .3rem; }
.badge { display: inline-flex; align-items: center; gap: .3em; font-size: .68rem; font-weight: 700; line-height: 1.3; padding: .12rem .5rem; border-radius: var(--radius-full); border: 1px solid var(--color-border); color: var(--color-text-muted); background: var(--color-surface-2); white-space: nowrap; cursor: help; }
.badge--prov { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-border); white-space: normal; }
.badge--prov::before { content: '◷'; }
.badge--lic-ok { color: var(--ok); border-color: oklch(from var(--ok) l c h / .45); background: oklch(from var(--ok) l c h / .08); }
.badge--lic-cond { color: var(--warn); border-color: var(--warn-border); background: var(--warn-bg); white-space: normal; }
.badge--prec8 { color: var(--color-primary); border-color: oklch(from var(--color-primary) l c h / .5); background: oklch(from var(--color-primary) l c h / .08); }

.footnotes { margin-top: var(--space-4); font-size: var(--text-xs); color: var(--color-text-muted); }
.footnotes li { margin-top: var(--space-1); max-width: none; line-height: 1.6; }
.footnotes ol { padding-left: 1.2rem; }

/* Mobile: table becomes cards */
@media (max-width: 760px) {
  .fsort { display: flex; }
  .table-wrap { border: none; background: none; overflow: visible; }
  .lb { min-width: 0; }
  .lb thead { display: none; }
  .lb, .lb tbody, .lb tr, .lb td { display: block; width: 100%; }
  .lb tr { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); margin-bottom: var(--space-3); padding: var(--space-3) var(--space-4); }
  .lb tr.is-hidden { display: none; }
  .lb td { border: none; padding: .35rem 0; display: grid; grid-template-columns: 8.5rem 1fr; gap: var(--space-3); }
  .lb td::before { content: attr(data-label); font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--color-text-muted); padding-top: .2rem; }
  .lb td.cell-model { display: block; padding-bottom: .5rem; border-bottom: 1px solid var(--color-divider); margin-bottom: .3rem; }
  .lb td.cell-model::before { display: none; }
  .lb td.bench { background: none; }
  .lb.show-sub .subcol { display: grid; }
  .lb .subcol { background: none; }
  .bar { max-width: 10rem; }
}

/* Excluded strip, suite block, steps */
.strip { display: flex; gap: var(--space-4); align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--color-surface-2); border: 1px dashed var(--color-border); border-radius: var(--radius-lg); padding: var(--space-4) var(--space-6); }
.strip p { font-size: var(--text-sm); color: var(--color-text); max-width: 90ch; }
.suite-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-8); align-items: start; }
@media (max-width: 860px) { .suite-grid { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 1.6rem; position: relative; margin-top: var(--space-3); color: var(--color-text-muted); line-height: 1.65; }
.checklist li::before { content: '✓'; position: absolute; left: 0; color: var(--color-primary); font-weight: 700; }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-3); }
.steps li { counter-increment: s; background: var(--color-surface); border: 1px solid oklch(from var(--color-text) l c h / 0.08); border-radius: var(--radius-md); padding: var(--space-4); font-size: var(--text-sm); color: var(--color-text); line-height: 1.5; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--color-primary); opacity: .5; margin-bottom: .2rem; }
.cred { font-size: var(--text-sm); color: var(--color-text-muted); border-left: 3px solid var(--color-divider); padding-left: var(--space-4); max-width: 90ch; line-height: 1.7; }

/* Callouts */
.callout { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-4) var(--space-5); background: var(--color-surface); font-size: var(--text-sm); line-height: 1.65; }
.callout--warn { background: var(--warn-bg); border-color: var(--warn-border); }
.callout--ato { border-left: 4px solid var(--bad); }
.callout + .callout { margin-top: var(--space-3); }
.editor-note { background: repeating-linear-gradient(135deg, var(--warn-bg), var(--warn-bg) 10px, transparent 10px, transparent 20px); border: 1px dashed var(--warn-border); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); font-size: var(--text-xs); color: var(--color-text); margin-block: var(--space-4); }
.editor-note::before { content: 'Draft note for Scott (remove before launch): '; font-weight: 700; color: var(--warn); }

/* Model page */
.crumbs { font-size: var(--text-xs); color: var(--color-text-muted); margin-bottom: var(--space-4); }
.crumbs a { color: var(--color-text-muted); }
.score-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.scard { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-5); }
.scard__suite { font-size: var(--text-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); }
.scard__tag { font-size: .68rem; color: var(--color-primary); font-weight: 600; }
.scard__score { font-family: var(--font-display); font-size: 2.4rem; line-height: 1.1; margin: var(--space-2) 0; }
.scard dl { display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem; font-size: var(--text-xs); margin-top: var(--space-3); }
.scard dt { color: var(--color-text-muted); }
.scard dd { color: var(--color-text); font-weight: 500; word-break: break-word; }
@media (max-width: 860px) { .score-cards { grid-template-columns: 1fr; } }
.kv { width: 100%; font-size: var(--text-sm); }
.kv th, .kv td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--color-divider); vertical-align: top; }
.kv th { width: 34%; color: var(--color-text-muted); font-weight: 600; }
.kv td { word-break: break-word; }
.dt { width: 100%; font-size: var(--text-sm); }
.dt th, .dt td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--color-divider); vertical-align: top; }
.dt thead th { background: var(--color-surface-2); font-size: var(--text-xs); color: var(--color-text-muted); }
.dt-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.cta-band { background: var(--color-surface-2); border-top: 1px solid oklch(from var(--color-text) l c h / 0.06); padding-block: var(--space-10); }
.cta-band__inner { display: flex; flex-wrap: wrap; gap: var(--space-6); align-items: center; justify-content: space-between; }
.cta-band h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--text-lg); }

/* Footer */
.lb-footer { background: var(--color-bg); border-top: 1px solid oklch(from var(--color-text) l c h / 0.08); padding-block: var(--space-10) var(--space-8); font-size: var(--text-xs); color: var(--color-text-muted); }
.lb-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-8); }
.lb-footer h4 { font-size: var(--text-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--color-text); margin-bottom: var(--space-2); }
.lb-footer p { line-height: 1.7; max-width: none; }
.lb-footer p + p { margin-top: var(--space-2); }
.lb-footer a { color: var(--color-text-muted); }
.lb-footer__base { margin-top: var(--space-8); padding-top: var(--space-4); border-top: 1px solid var(--color-divider); display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); justify-content: space-between; }
@media (max-width: 860px) { .lb-footer__grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .header__inner { position: relative; } }
/* fixes after first screenshot pass */
@media (min-width: 769px) { .nav__links { display: flex; gap: var(--space-6); } }
.lb-hero h1 { max-width: 34ch; }
@media (min-width: 761px) { .lb { min-width: 1080px; } .lb td.cell-judge { max-width: 9rem; } .lb .cell-model { min-width: 11.5rem; } }
.badge .fn { margin-left: .15rem; }
.ng .fn, .pending .fn { vertical-align: super; }
@media (max-width: 760px) {
  .lb td > .v { min-width: 0; }
}
/* v2: overall score, judge banner */
.pick--overall { grid-column: 1 / -1; border: 1px solid var(--color-primary); border-left: 4px solid var(--color-primary); }
.pick--overall .pick__score { font-size: 2.6rem; }
.pick--overall .pick__note { font-size: var(--text-sm); max-width: 100ch; }
.lb thead th.grp--overall { color: var(--color-primary); background: oklch(from var(--color-primary) l c h / 0.14); }
.lb td.overall, .lb th.th-overall { background: oklch(from var(--color-primary) l c h / 0.08); min-width: 9.5rem; }
.lb td.overall .score { font-size: 1.15rem; }
.rank { display: inline-block; font-size: .72rem; font-weight: 700; color: #fff; background: var(--color-primary); border-radius: var(--radius-full); padding: .05rem .45rem; margin-right: .2rem; vertical-align: 2px; }
.judge-banner { background: var(--warn-bg); border: 1px solid var(--warn-border); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); font-size: var(--text-sm); line-height: 1.6; margin-bottom: var(--space-4); }
.judge-banner strong { color: var(--warn); }
.scard--overall { border-color: var(--color-primary); border-left: 4px solid var(--color-primary); }
@media (max-width: 760px) { .lb td.overall { background: oklch(from var(--color-primary) l c h / 0.06); border-radius: var(--radius-sm); padding-inline: .4rem; } }

/* ---- v1.0 launch: match the aieval.org header (from /assets/styles.css), Playfair Display, light only ---- */
:root, [data-theme] { --font-display: 'Playfair Display', Georgia, serif; --font-body: 'DM Sans', system-ui, sans-serif; color-scheme: light; }
.lb-hero h1, .block h2, .cta-band h2, .pick__score, .scard__score, .steps li::before, main h1, main h2 { font-weight: 600; letter-spacing: -0.01em; }
.skip { position: absolute; left: 12px; top: 8px; transform: translateY(-150%); background: #fff; color: #1c2430; padding: 10px 14px; z-index: 50; font-weight: 700; font-size: 15px; border-radius: 8px; text-decoration: none; }
.skip:focus { transform: none; }
.site-header { background: #1c2430; color: #fff; padding: 18px 0; font-family: "DM Sans", system-ui, sans-serif; line-height: 1.6; }
.site-header .bar { height: auto; max-width: 100%; overflow: visible; background: none; border-radius: 0; margin-top: 0; }
.site-header .wrap { width: 1120px; max-width: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header .logo { font-weight: 700; font-size: 19px; letter-spacing: 0.01em; display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; flex: 0 0 auto; }
.site-header .logo svg { display: block; }
.site-header .links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 26px; font-size: 14.5px; font-weight: 500; align-items: center; }
.site-header .links a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.site-header .links a:hover, .site-header .links a[aria-current="page"] { color: #fff; }
.site-header .links .fc { border-left: 1px solid rgba(255, 255, 255, 0.2); padding-left: 22px; color: #fff; }
.site-header :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 1160px) { .site-header .wrap { width: auto; padding: 0 28px; } }
@media (max-width: 800px) { .site-header .links { gap: 12px 16px; } }
@media (max-width: 600px) {
  .site-header .wrap { padding: 0 20px; }
  .site-header .links a:not(.fc):not([aria-current="page"]) { display: none; }
  .site-header .links .fc { border: 0; padding: 0; }
}

/* ---- v1.0 update (Oct 10): judge badge for rows graded by the same-family fallback judge ---- */
.badge--judge { background: #eef3f9; color: #1f3a5c; border-color: #c9d6e6; white-space: normal; }

/* ---- a11y fix plan F3–F5 (preview) ---- */
.fn { display: inline-block; min-width: 24px; min-height: 24px; padding: 0 4px;
      margin: -6px -9px -6px -7px; text-align: center; line-height: 24px; vertical-align: super; }
.dt-wrap:focus-visible, pre:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.two-col > * { min-width: 0; }
.kv td { overflow-wrap: anywhere; }

/* ---- v1.1 public benchmarks section: mirrors .lb ---- */
#public h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .8rem; }
.h2-tag { font-family: var(--font-body); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); border: 1px solid var(--color-border); border-radius: var(--radius-full); padding: .15rem .6rem; }
.pub-intro { max-width: 95ch; margin-bottom: var(--space-3); }
.pub-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .5rem; font-size: var(--text-xs); color: var(--color-text-muted); margin-bottom: var(--space-4); }
.pub-legend .badge + * { margin-left: 0; }
.pub-legend .badge:not(:first-child) { margin-left: .8rem; }
.pubt { width: 100%; font-size: var(--text-sm); min-width: 900px; border-collapse: collapse; }
.pubt th, .pubt td { padding: .6rem .7rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-divider); }
.pubt tbody tr:last-child > * { border-bottom: none; }
.pubt thead th { background: var(--color-surface-2); font-size: var(--text-xs); font-weight: 700; letter-spacing: .03em; color: var(--color-text-muted); white-space: nowrap; }
.pubt thead th.grp { text-align: center; text-transform: uppercase; letter-spacing: .1em; font-size: .68rem; border-bottom: 1px solid var(--color-border); }
.pubt thead th.grp--bench { color: var(--color-primary); background: oklch(from var(--color-primary) l c h / 0.08); }
.pubt th.num, .pubt td.num { text-align: right; font-variant-numeric: tabular-nums; }
.pubt td.bench { background: oklch(from var(--color-primary) l c h / 0.03); }
.pubt td.bench .bar { margin-left: auto; }
.pubt tbody tr:hover { background: oklch(from var(--color-primary) l c h / 0.04); }
.pubt th[scope="row"] { font-weight: 400; min-width: 13rem; }
.pubt .model-name { font-weight: 700; color: var(--color-text); text-decoration: none; }
.pubt .model-name:hover { color: var(--color-primary); text-decoration: underline; }
.pubt td.notrun { text-align: center; vertical-align: middle; background: repeating-linear-gradient(135deg, transparent 0 8px, oklch(from var(--color-text) l c h / 0.03) 8px 16px); }
.nm-run { font-size: var(--text-xs); font-weight: 600; color: var(--color-text-muted); }
.badge--pub-short { color: #2b3445; border-color: #c7ccd6; background: #f1f3f6; }
.badge--pub-quick { color: #1f3a5c; border-color: #b7c8de; background: #e8f0fa; }
.badge--pub-none { color: #4a5161; border-color: #c7ccd6; background: #fff; }
.pub-notes li { max-width: 110ch; }
@media (max-width: 760px) {
  .pub-wrap { border: none; background: none; overflow: visible; }
  .pubt { min-width: 0; }
  .pubt thead { display: none; }
  .pubt, .pubt tbody, .pubt tr { display: block; width: 100%; }
  .pubt tr { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem var(--space-4); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); margin-bottom: var(--space-3); padding: var(--space-3) var(--space-4); }
  .pubt th[scope="row"] { grid-column: 1 / -1; min-width: 0; padding: 0 0 .5rem; border-bottom: 1px solid var(--color-divider); margin-bottom: .3rem; }
  .pubt td { border: none; padding: .35rem 0; background: none; text-align: left; }
  .pubt td.bench { background: none; text-align: left; }
  .pubt td.bench .bar { margin-left: 0; }
  .pubt td::before { content: attr(data-label); display: block; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--color-text-muted); }
  .pubt td.notrun { grid-column: 1 / -1; text-align: center; padding: .6rem; border-radius: var(--radius-md); }
  .pubt td.notrun::before { content: none; }
  .pub-legend .badge:not(:first-child) { margin-left: 0; }
}
/* v1.1b: avg column + group rows */
.pubt .avg { background: oklch(from var(--color-primary) l c h / 0.10); border-left: 2px solid oklch(from var(--color-primary) l c h / 0.35); border-right: 2px solid oklch(from var(--color-primary) l c h / 0.35); min-width: 6rem; }
.pubt thead th.avg { color: var(--color-primary); background: oklch(from var(--color-primary) l c h / 0.14); }
.pubt td.avg .score { font-size: 1.1rem; color: var(--color-text); }
.pubt tr.grp-row th { background: var(--color-surface-2); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); padding: .45rem .7rem; border-bottom: 1px solid var(--color-border); }
.pubt tr.grp-row:hover { background: none; }
.pub-sortnote { font-size: var(--text-sm); color: var(--color-text-muted); border-left: 3px solid var(--color-primary); padding: .3rem .8rem; margin: var(--space-4) 0 0; max-width: 95ch; }
@media (max-width: 760px) {
  .pubt tr.grp-row { display: block; background: none; border: none; padding: var(--space-3) 0 .2rem; margin: 0; }
  .pubt tr.grp-row th { display: block; background: none; border: none; padding: 0; color: var(--color-text); }
  .pubt td.avg { grid-column: 1 / -1; border: none; border-radius: var(--radius-md); padding: .4rem .6rem; display: flex; align-items: baseline; justify-content: space-between; }
  .pubt td.avg::before { display: inline; }
}
