:root {
  --fg: #1f2328;
  --muted: #59636e;
  --border: #d1d9e0;
  --soft: #f6f8fa;
  --link: #c9741a;
  --accent: #EC963B;
  --accent-soft: #fdf3e6;
  --page: #fff5e8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--fg);
  background: #fff;
}

main, footer {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 16px;
}

a { color: var(--link); }

/* Header */
header {
  text-align: center;
  padding: 20px 16px 8px;
  background: var(--accent);
  color: #fff;
}
header .subtitle, header .affiliations { color: rgba(255,255,255,.9); }
h1 { font-weight: 400; font-size: 2rem; margin: 0 auto 0.75rem; line-height: 1.25; max-width: 820px; }
h1 b { font-weight: 700; }
.subtitle { font-size: 1.25rem; color: var(--muted); margin: 0.5rem 0; }
.authors { margin: 0.5rem 0 0; font-size: 0.8rem; }
header .authors { color: rgba(255,255,255,.7); }
.affiliations { margin: 0 0 1rem; color: var(--muted); font-size: 0.95rem; }
nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 32px; }
nav a {
  padding: 6px 18px;
  border-radius: 999px;
  background: var(--fg);
  color: #fff;
  text-decoration: none;
}
nav a:hover { opacity: 0.85; }

/* Sections */
h2 {
  font-size: 1.5rem;
  margin: 40px 0 12px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--accent);
}
header h2 { border-bottom: none; padding-bottom: 0; margin-top: 0; }
figure { margin: 0; }
figure img { width: 100%; height: auto; }
figcaption, .note { font-size: 0.9rem; color: var(--muted); }
dt { font-weight: 600; }
dd { margin: 0 0 12px 20px; }
li { margin-bottom: 4px; }

/* Leaderboard */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 6px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; text-align: left; }
thead th { background: var(--accent-soft); }
thead th.group { text-align: center; font-weight: 500; color: var(--muted); }
thead tr:last-child th:nth-child(n+3), tbody td:nth-child(n+3) { text-align: right; }
tbody td:nth-child(3) { font-weight: 600; }
tbody td:nth-child(n+4) { color: var(--muted); }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.stats li { background: var(--accent-soft); border-radius: 8px; padding: 12px; margin: 0; }
.stats b { display: block; font-size: 1.6rem; color: var(--fg); }

/* Citation */
pre {
  background: var(--soft);
  padding: 12px 16px;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.85rem;
  border-left: 4px solid var(--accent);
}

footer { text-align: center; color: var(--muted); font-size: 0.85rem; padding: 32px 16px 48px; }

.logos { display: block; width: 100%; max-width: 520px; height: auto; margin: 0 auto 16px; }

.authors a { color: inherit; text-decoration: none; border-bottom: 1px dotted rgba(255,255,255,.5); }
.authors a:hover { border-bottom-style: solid; }
nav a.disabled { opacity: 0.55; cursor: default; }
nav a.disabled:hover { opacity: 0.55; }

h3 { font-size: 1.15rem; margin: 28px 0 8px; }

#leaderboard { margin-top: 32px; }
.model { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: default; }
.model img { width: 18px; height: 18px; }
.model::after {
  content: attr(data-tip);
  position: absolute; left: 0; bottom: 100%; margin-bottom: 4px;
  background: var(--fg); color: #fff; font-size: 0.8rem; padding: 4px 8px; border-radius: 4px;
  opacity: 0; pointer-events: none; transition: opacity .1s; z-index: 1;
}
.model:hover::after { opacity: 1; }

.affil-logos { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 40px; max-width: 720px; margin: 0.75rem auto 1.25rem; }
.affil-logos img { height: 22px; width: auto; }
.affil-logos .sri, .affil-logos .eth, .affil-logos .logic { filter: brightness(0) invert(1); opacity: .85; }
.affil-logos .sri { justify-self: end; }
.affil-logos .logic { height: 25px; justify-self: start; }
.footer-logos { margin: 0 auto 16px; }
.footer-logos img { filter: none !important; opacity: .8 !important; }

@media (max-width: 600px) {
  .affil-logos { column-gap: 16px; }
  .affil-logos img { height: 13px; }
  .affil-logos .logic { height: 15px; }
}
