/* AI Benchmark Sources: simple, modern, accessible */
:root {
  --bg: #ffffff;
  --surface: #f5f7fa;
  --fg: #1b1f24;
  --muted: #57606a;
  --border: #d8dee4;
  --accent: #0b57d0;
  --accent-hover: #09419c;
  --on-accent: #ffffff;
  --focus: #b45309;
  --chip-paper-bg: #e8f0fe; --chip-paper-fg: #0b3d91;
  --chip-website-bg: #e6f4ea; --chip-website-fg: #1e4620;
  --chip-repository-bg: #fff4e5; --chip-repository-fg: #6b3b00;
  --badge-bg: #f1f3f4; --badge-fg: #3c4043;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121417; --surface: #1b1f24; --fg: #e6e8eb; --muted: #a3abb5; --border: #2f353d;
    --accent: #8ab4f8; --accent-hover: #aecbfa; --on-accent: #0b1d3a; --focus: #fbbf24;
    --chip-paper-bg: #1c2b4a; --chip-paper-fg: #c6dafc;
    --chip-website-bg: #1b3a24; --chip-website-fg: #c3e9cb;
    --chip-repository-bg: #46300f; --chip-repository-fg: #ffe0b2;
    --badge-bg: #2a2f36; --badge-fg: #d7dbe0;
  }
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; color: var(--fg); background: var(--bg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 1.0625rem; line-height: 1.6;
}
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.15em; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header and navigation */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 64px; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--fg); text-decoration: none; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.site-nav a { display: inline-block; padding: 8px 12px; border-radius: 6px; text-decoration: none; color: var(--fg); }
.site-nav a:hover { background: var(--surface); }
.site-nav a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }

main { padding: 32px 0 56px; }
h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
h2 { font-size: 1.4rem; margin: 2.2em 0 0.6em; }
h3 { font-size: 1.1rem; margin: 1.6em 0 0.5em; }
p, ul, ol, dl { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 70ch; }
.muted { color: var(--muted); }
code, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: 0.92em; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; }
pre { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; overflow-x: auto; margin: 0 0 1.2em; line-height: 1.5; }
pre code { background: none; border: 0; padding: 0; font-size: 0.9rem; }
.breadcrumb { color: var(--muted); margin: 0 0 8px; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 24px; padding: 16px 18px; margin: 20px 0 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.filters .field { display: flex; flex-direction: column; gap: 6px; }
.filters .grow { flex: 1 1 280px; }
.filters label, .filters legend { font-weight: 600; font-size: 0.95rem; }
.filters fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.filters .options { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.filters .options label { font-weight: 400; display: inline-flex; align-items: center; gap: 6px; }
.filters .check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
input[type="search"], select {
  font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; min-height: 44px;
}
input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); }
button { font: inherit; cursor: pointer; border-radius: 8px; padding: 10px 16px; min-height: 44px; border: 1px solid var(--border); background: var(--bg); color: var(--fg); }
button:hover { background: var(--surface); }
button.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
button.primary:hover { background: var(--accent-hover); }
#count { color: var(--muted); margin: 0 0 8px; }

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; }
th, td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--border); }
thead th { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); border-bottom: 2px solid var(--border); }
tbody th { font-weight: 600; }
tbody th a { font-size: 1.05rem; }
.tag { display: inline-block; margin-top: 2px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.85rem; color: var(--muted); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 0.88rem; text-decoration: none; font-weight: 500; }
.chip:hover { text-decoration: underline; }
.chip-paper { background: var(--chip-paper-bg); color: var(--chip-paper-fg); }
.chip-website { background: var(--chip-website-bg); color: var(--chip-website-fg); }
.chip-repository { background: var(--chip-repository-bg); color: var(--chip-repository-fg); }
.badge { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 0.8rem; background: var(--badge-bg); color: var(--badge-fg); white-space: nowrap; }
tr[hidden] { display: none; }

/* Fact lists */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0 0 1.5em; }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
blockquote { margin: 0 0 1.2em; padding: 4px 0 4px 18px; border-left: 4px solid var(--border); color: var(--fg); }

/* Address box with copy button */
.address { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 16px; margin: 0 0 1.4em; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.address code { flex: 1 1 320px; font-size: 1rem; background: none; border: 0; padding: 0; overflow-wrap: anywhere; }
.copy-status { color: var(--muted); font-size: 0.95rem; min-width: 6ch; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 0 0 1.5em; padding: 0; list-style: none; }
.cards li { border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; background: var(--surface); }
.cards h3 { margin: 0 0 6px; }
.notice { padding: 12px 16px; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 6px; margin: 0 0 1.2em; }

.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 0.95rem; padding: 20px 0 32px; }

@media (max-width: 720px) {
  body { font-size: 1rem; }
  h1 { font-size: 1.6rem; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 10px; }
  table.responsive thead { display: none; }
  table.responsive tr { display: block; border-bottom: 1px solid var(--border); padding: 10px 0; }
  table.responsive th, table.responsive td { display: block; border: 0; padding: 4px 0; }
  table.responsive td::before { content: attr(data-label); display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
