/* LADDER leaderboard (leaderboard.html); colours and fonts come from site.css */
.lb { max-width: 1180px; margin: 0 auto; }
.lb-header { text-align: center; margin-bottom: 2rem; }
.lb-header h1 { font-size: 2.4rem; font-weight: 700; color: var(--ink); line-height: 1.2; }
.lb-header p { color: var(--muted); margin-top: .5rem; }

.lb-bar-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.lb-controls { display: flex; flex-wrap: wrap; gap: .6rem; }
.lb-seg { display: inline-flex; flex-wrap: wrap; background: var(--shade); border-radius: 8px; padding: 3px; gap: 2px; }
.lb-seg button {
  border: 0; background: transparent; color: var(--muted); font: inherit; font-size: .88rem; cursor: pointer;
  padding: .35rem .8rem; border-radius: 6px;
}
.lb-seg button:hover { color: var(--ink); }
.lb-seg button.is-active { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(16, 24, 40, .12); }
.lb-views button { font-size: .95rem; }

.lb-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.lb-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .95rem; }
.lb-table th { font-size: .82rem; font-weight: 600; color: var(--muted);
  padding: .6rem .7rem; border-bottom: 1px solid var(--line); text-align: right; line-height: 1.3; vertical-align: bottom; }
.lb-table td { padding: .7rem .7rem; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.lb-table .lb-left { text-align: left; }
.lb-table th.is-on, .lb-table td.is-on { color: var(--ink); font-weight: 600; }
.lb-rank { width: 2rem; color: var(--muted); text-align: center !important; }
.lb-name { display: flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--ink); }
.lb-name i { width: .55rem; height: .55rem; border-radius: 50%; flex: none; }
.lb-kind { display: block; color: var(--muted); font-size: .78rem; margin-left: 1.05rem; }
.lb-ref td { color: var(--muted); }
.lb-ref .lb-name { color: var(--muted); font-weight: 500; }

.lb-score { width: 13rem; }
.lb-scorebox { display: flex; align-items: center; gap: .55rem; }
.lb-scorebox b { font-weight: 700; color: var(--ink); min-width: 2.5rem; text-align: right; }
.lb-scorebox small { color: var(--muted); font-size: .75rem; min-width: 2.3rem; text-align: left; }
.lb-meter { flex: 1; height: .45rem; background: var(--shade); border-radius: 999px; overflow: hidden; }
.lb-meter span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.lb-ref .lb-meter span { background: #c3c8d0; }
.lb-ref .lb-scorebox b { color: var(--muted); }

.lb-grid td.lb-heat { position: relative; }
.lb-grid td.lb-heat { background: rgba(47, 91, 234, calc(var(--v) * .55)); }
.lb-grid .lb-all { font-weight: 700; border-left: 1px solid var(--line); }

.lb-chartbox { margin-bottom: 1.8rem; }
.lb-plot { position: relative; }
.lb-chart { width: 100%; height: auto; display: block; }
.lb-chart text { font-size: 12px; fill: var(--muted); }
.lb-gridline { stroke: var(--line); }
.lb-guide { stroke: #9aa0aa; stroke-dasharray: 3 3; }
.lb-hit { fill: transparent; }
.lb-series polyline { fill: none; stroke: var(--c); stroke-width: 2.2; stroke-linejoin: round; }
.lb-series circle { fill: var(--c); }
.lb-series { transition: opacity .12s; cursor: pointer; }
.lb-chartbox.is-focus .lb-series { opacity: .12; }
.lb-chartbox.is-focus .lb-series.is-on { opacity: 1; }
.lb-chartbox.is-focus .lb-series.is-on polyline { stroke-width: 3.5; }
.lb-tip {
  position: absolute; top: 4px; pointer-events: none; background: #fff; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 4px 14px rgba(16, 24, 40, .12); padding: .5rem .7rem; font-size: .8rem; min-width: 13rem; z-index: 2;
}
.lb-tip b { display: block; margin-bottom: .25rem; color: var(--ink); }
.lb-tip span { display: flex; align-items: center; gap: .45rem; line-height: 1.6; color: var(--ink); }
.lb-tip i, .lb-key i { width: .7rem; height: .7rem; border-radius: 3px; flex: none; display: inline-block; }
.lb-tip em { margin-left: auto; font-style: normal; font-weight: 600; padding-left: .8rem; font-variant-numeric: tabular-nums; }
.lb-axis { text-align: center; color: var(--muted); font-size: .8rem; margin-top: -.3rem; }
.lb-legend { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .3rem .4rem; margin-top: .8rem; }
.lb-key {
  display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: .2rem .65rem; font: inherit; font-size: .82rem; color: var(--ink); cursor: pointer;
}
.lb-key:hover, .lb-key.is-on { border-color: #9aa0aa; }
.lb-key.is-off { color: #aab0b9; }
.lb-key.is-off i { background: #dfe2e7 !important; }
.lb-keys-all { margin-left: .4rem; font-size: .8rem; color: var(--muted); }
.lb-keys-all button { border: 0; background: none; color: var(--accent); font: inherit; cursor: pointer; padding: 0; }

.lb-note { color: var(--muted); font-size: .82rem; margin-top: 1rem; line-height: 1.5; }
.lb-badge { display: inline-block; padding: .05rem .4rem; border-radius: 999px; font-size: .68rem; font-weight: 600;
  color: #8a5a00; background: #fff4dc; vertical-align: middle; white-space: nowrap; }
.lb-badge.is-verified { color: #0b6b4f; background: #ddf5ec; }

.lb-howto { margin-top: 2.8rem; padding-top: 1.6rem; border-top: 1px solid var(--line); max-width: 52rem; }
.lb-howto h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: .4rem; }
.lb-howto > p { color: var(--muted); }
.lb-steps { margin: 1rem 0 0 1.2rem; }
.lb-steps li { margin-bottom: 1rem; line-height: 1.55; }
.lb-steps pre { margin-top: .5rem; padding: .8rem 1rem; font-size: .82rem; background: #f6f7fa; border-radius: 6px; overflow-x: auto; }
.lb-howto code { font-size: .85em; color: var(--ink); }
.lb-legend-note { font-size: .85rem; }

@media (max-width: 768px) {
  .lb { padding-top: 2rem; }
  .lb-bar-top { justify-content: center; }
  .lb-score { width: auto; }
  .lb-meter { display: none; }
  .lb-table:not(.lb-grid) .lb-num { display: none; }
  .lb-table:not(.lb-grid) td.lb-left { white-space: normal; }
  .lb-kind { font-size: .72rem; }
  .lb-grid td:first-child, .lb-grid th:first-child { position: sticky; left: 0; background: #fff; z-index: 1; }
  .lb-grid .lb-kind { display: none; }
}
.lb-guide { pointer-events: none; }

/* the leaderboard leads the home page */
.lb-hero .hero-body { padding: 3rem 1.5rem 1rem; }
.lb-hero .kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: .6rem; }
.lb-hero .publication-title { font-size: 2.6rem; }
.lb-hero .tagline { margin-top: 0; }
.lb-section { padding-top: 1.5rem; }
.lb-table th.lb-sort { cursor: pointer; user-select: none; }
.lb-table th.lb-sort:hover { color: var(--ink); }
.lb-table th.lb-sort.is-on.is-desc::after { content: " \25BE"; }
.lb-table th.lb-sort.is-on.is-asc::after { content: " \25B4"; }
.lb-table th.lb-sort:not(.is-on):hover::after { content: " \25BE"; opacity: .4; }
.lb-table th small { font-weight: 400; }
.lb-table td.is-on { background: var(--accent-soft); }
.lb-top .lb-rank { color: var(--accent); font-weight: 700; }
.lb-model { color: var(--muted); font-size: .88rem; }
.lb-cta { text-align: center; margin-top: 1.4rem; }
.lb-cta .button { margin: .25rem; }
.lb-frontbox { margin: 2.4rem 0 0; }
.lb-subtitle { font-weight: 700; text-align: center; margin-bottom: .4rem; }
.lb-front text { font-size: 11px; }
.lb-front .lb-pt text { font-size: 12px; fill: var(--ink); font-weight: 600; paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.lb-front .lb-pt.is-ref text { fill: var(--muted); font-style: italic; font-weight: 400; }
.lb-front .lb-pt circle { stroke: #fff; stroke-width: 2; }
.lb-pareto { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 5 4; opacity: .7; }
.lb-axis i { display: inline-block; width: .65rem; height: .65rem; border-radius: 50%; margin: 0 .25rem 0 .6rem; vertical-align: -1px; }
@media (max-width: 768px) {
  .lb-hero .publication-title { font-size: 1.9rem; }
  .lb-table .lb-suite, .lb-table .lb-model { display: none; }
  .lb-kind { display: none; }
  .lb-score { width: auto; }
  .lb-meter { display: none; }
  .lb-table th, .lb-table td { padding: .55rem .4rem; }
  .lb-frontbox { overflow-x: auto; }
  .lb-front { min-width: 620px; }
}
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin: 0 0 2rem; }
.how-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; font-size: .95rem; line-height: 1.55; }
.how-item b { display: block; margin-bottom: .3rem; color: var(--ink); }
@media (max-width: 768px) { .how { grid-template-columns: 1fr; } }
#results .findings { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { #results .findings { grid-template-columns: 1fr; } }
.paper-block { align-items: flex-start; }
.paper-title { font-weight: 700; font-size: 1.15rem; margin-bottom: .8rem; color: var(--ink); }
.paper-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem; }
.paper-card .publication-links { margin: 0 0 .8rem; text-align: left; }
.paper-cite { font-weight: 700; font-size: .9rem; margin: .2rem 0 .4rem; }
.paper-card pre.bibtex { font-size: .72rem; white-space: pre-wrap; word-break: break-word; margin: 0; }
/* header: the institutions carry the page */
.affiliation-logos.big { max-width: 620px; margin: 1.4rem auto .6rem; gap: 4rem; justify-content: center; }
.affiliation-logos.big img { height: 52px; }
.affiliation-logos.big a:last-child img { height: 44px; }
@media (max-width: 768px) { .affiliation-logos.big { gap: 1.8rem; } .affiliation-logos.big img { height: 30px; } .affiliation-logos.big a:last-child img { height: 26px; } }
/* submit: cards that are links, steps in words */
a.evaluate-card { display: block; height: 100%; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
a.evaluate-card:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(16, 24, 40, .08); }
.evaluate-link { display: inline-block; margin-top: .5rem; color: var(--accent); font-weight: 600; font-size: .9rem; }
.evaluate-steps { max-width: 760px; margin: 1.6rem auto 0; padding-left: 1.4rem; line-height: 1.7; }
.evaluate-steps li { margin-bottom: .35rem; }
.team .publication-authors { font-size: 1.1rem; }
details.cite { max-width: 820px; margin: 1.6rem auto 0; }

.lb-pm { display: block; color: var(--muted); font-size: .72rem; }
.lb-money { font-weight: 600; color: var(--ink); }
.lb-front text { font-size: 13px; }
.lb-front .lb-pt text { font-size: 14px; }
.lb-subtitle { font-size: 1.1rem; }
.lb-intro { text-align: center; color: var(--muted); max-width: 820px; margin: 0 auto 1.4rem; font-size: 1.02rem; }
.lb-section { padding-top: .5rem; }
.how-item b { font-size: 1rem; }
.cost-block { margin-bottom: 1.5rem; }
.cost-lead { font-size: 1.05rem; line-height: 1.65; }
.cost-lead b { color: var(--accent); font-size: 1.15rem; }
.cost-table { width: 100%; font-size: .92rem; }
.cost-table th, .cost-table td { padding: .5rem .6rem; text-align: right; }
.cost-table th:first-child, .cost-table td:first-child, .cost-table tbody th { text-align: left; }
.cost-table tbody tr:first-child { background: #fff4ec; }
.cite { max-width: 820px; margin: 1.6rem auto 0; }
.cite-title { font-weight: 700; margin-bottom: .4rem; text-align: center; }

/* ---- brand (shared with the promo video): Inter, ink #111, accent #2563eb ---- */
:root { --ink: #111111; --accent: #2563eb; --accent-soft: #eaf0fe; --muted: #5f6368; }
body, button, input, .title, .subtitle, .publication-title, .content, table { font-family: 'Inter', 'Noto Sans', system-ui, sans-serif !important; }
.title, .publication-title { letter-spacing: -.015em; }

/* the animated logo (static/js/logo.js draws it; the same animation as the promo video) */
.brand-hero { display: flex; align-items: center; justify-content: center; gap: 1.6rem; margin-bottom: .6rem; }
.brand-hero .mark { width: 92px; height: auto; overflow: visible; }
.brand-hero .wordmark { font-weight: 700; font-size: 4.2rem; letter-spacing: .12em; color: var(--ink); line-height: 1; }
.brand-hero .wordmark span { display: inline-block; }
.brand-sub { font-size: 1.35rem; color: var(--muted); font-weight: 500; margin-bottom: .2rem; }
.topnav .brand { display: flex; align-items: center; gap: .45rem; letter-spacing: .12em; }
.topnav .brand img { height: 22px; width: auto; }
@media (max-width: 768px) { .brand-hero { gap: 1rem; } .brand-hero .mark { width: 56px; } .brand-hero .wordmark { font-size: 2.6rem; } .brand-sub { font-size: 1.05rem; } }
@media (max-width: 768px) {
  .lb-table:not(.lb-grid) .lb-num.lb-money:not(.lb-suite) { display: table-cell; }
  .lb-views button, .lb-controls button { font-size: .8rem; padding: .3rem .55rem; }
  .lb-intro { font-size: .92rem; }
}
@media (max-width: 768px) { .lb-table:not(.lb-grid) th.lb-score { display: table-cell; } }
.brand-joint { margin: 1.2rem 0 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 600; }
.lb-hero .affiliation-logos.big { margin-top: .5rem; }
.resource-links { text-align: center; margin: 0 0 1.6rem; }
/* wider page: use the screen */
:root { --page: 1360px; }
@media (min-width: 1800px) { :root { --page: 1560px; } }
@media (min-width: 2400px) { :root { --page: 1760px; } }
.lb { max-width: none; }
.lb-hero .hero-body { padding: 2.2rem 1.5rem .4rem; }
.lb-hero .affiliation-logos.big { margin: .9rem auto .2rem; }
.brand-sub { margin-bottom: 0; }
.lb-intro { font-size: .95rem; margin-bottom: 1rem; }
.lb-kind { display: none; }
.lb-table td { padding-top: .6rem; padding-bottom: .6rem; }
.lb-controls { align-items: center; }
.lb-typekey { font-size: .8rem; color: var(--muted); margin-right: .6rem; }
.lb-typekey i { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; margin: 0 .3rem 0 .7rem; }
@media (max-width: 768px) { .lb-typekey { display: none; } }
.bench-intro { max-width: 900px; margin: 0 auto 1.6rem; text-align: center; font-size: 1.08rem; line-height: 1.65; color: var(--ink); }
#benchmark .section-subtitle:empty { display: none; }
#vlms .section-subtitle:empty { display: none; }
