:root {
  --ink: #182638;
  --muted: #4a5b6e;
  --accent: #335a91;
  --night: #142236;
  --border: #d9e2ed;
  --paper: #fff;
  --band: #f4f7fb;
  --source: #e3eed9;
  --external: #e4dbf0;
  --human: #fcebe3;
  --correct: #dbf3fa;
  --header: #eef2f7;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-padding-top: 5.2rem;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.65; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.02em; }
p { margin: .6rem 0 0; }
a { color: #23538b; text-underline-offset: .18em; }
a:hover { color: #142e51; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid #4385df; outline-offset: 3px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.wide { max-width: 1216px; width: calc(100% - 4rem); margin-inline: auto; }
.skip-link { position: fixed; top: -10em; left: 1rem; z-index: 5; background: #fff; padding: .4rem 1rem; }
.skip-link:focus { top: .4rem; }
.topbar { position: sticky; top: 0; z-index: 2; background: #fff; border-bottom: 1px solid var(--border); }
.navbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.wordmark { display: inline-block; font-weight: 800; font-size: 1.32rem; letter-spacing: -.05em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.wordmark span { color: var(--accent); }
nav { display: flex; flex-wrap: wrap; gap: .35rem clamp(.7rem, 2vw, 1.7rem); justify-content: center; }
nav a { font-size: .94rem; color: var(--ink); text-decoration: none; font-weight: 600; }
nav a:hover { text-decoration: underline; }
.platforms { display: flex; align-items: center; gap: .7rem; }
.platforms a { display: grid; place-items: center; width: 2rem; height: 2rem; }
.platforms img { width: 19px; height: 19px; object-fit: contain; }
.hero { padding: clamp(2.5rem, 6vw, 6rem) 0; background: linear-gradient(115deg, #142236, #223952); color: #fff; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(320px, .72fr); gap: clamp(1.3rem, 5vw, 4.1rem); align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.7vw, 4.4rem); }
.hero h1 em { color: #b9d8ff; font-style: normal; }
.authors { margin-top: 1.3rem; font-weight: 700; }
.authors span { margin-left: .75rem; color: #d1deeb; font-weight: 500; }
.hero-summary { color: #e2e9f2; max-width: 58ch; font-size: 1.12rem; margin-top: .8rem; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.35rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .5rem .85rem; border: 1px solid #bac8db; border-radius: 7px; color: var(--ink); background: #fff; text-decoration: none; font-size: .92rem; font-weight: 650; line-height: 1.3; }
.button:hover { background: #e9f0fa; }
.button.primary { color: #fff; background: #2d5b9a; border-color: #769ed6; }
.button.primary:hover { background: #214983; }
.button:disabled { opacity: .65; cursor: default; }
.button.small { padding: .43rem .72rem; }
.icon { width: 17px; height: 17px; object-fit: contain; }
.preview-board { border: 1px solid #c4d1e2; border-radius: 14px; color: var(--ink); background: #fff; padding: 1.2rem; box-shadow: 0 10px 35px #0b1a2e33; }
.preview-board h2 { font-size: 1.35rem; }
.preview-board p { font-size: .9rem; color: var(--muted); }
.preview-board table { margin: .8rem 0 .55rem; }
.toggle-row { display: flex; gap: .45rem; margin-top: .9rem; }
.toggle-row button { padding: .38rem .58rem; border: 1px solid var(--border); border-radius: 5px; color: var(--ink); font-size: .875rem; }
.toggle-row button[aria-pressed="true"] { font-weight: 750; border-color: #435875; }
.target-human { background: var(--human); }
.target-correct { background: var(--correct); }
.section { padding-block: clamp(2.4rem, 6vw, 5rem); }
.section-head { max-width: 790px; margin-bottom: 1.5rem; }
.section-head h2 { font-size: clamp(1.85rem, 3.8vw, 3rem); }
.section-head p, .demo-notes p, .protocol-grid p { color: var(--muted); }
.band { background: var(--band); border-block: 1px solid #e6edf4; }
.demo-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); align-items: center; gap: clamp(1.1rem, 3vw, 2.4rem); }
video { width: 100%; display: block; border: 1px solid var(--border); border-radius: 10px; aspect-ratio: 16 / 9; background: var(--night); }
.demo-notes h3 { font-size: 1.02rem; }
.demo-notes p { margin-block: .12rem .9rem; }
.inline-link { display: inline-block; font-weight: 650; }
.findings, .protocol-grid, .code-grid { display: grid; gap: 1rem; }
.findings { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.findings article, .protocol-grid article { background: #fff; border: 1px solid var(--border); padding: 1.15rem; border-radius: 10px; }
.findings strong { color: #204c81; display: block; margin-bottom: .45rem; font-size: clamp(1.4rem, 2.4vw, 2.1rem); line-height: 1.1; }
.findings h3, .protocol-grid h3 { font-size: 1.08rem; }
.findings p, .protocol-grid p { font-size: .96rem; }
.protocol-grid, .code-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.protocol-grid .source-panel { background: var(--source); }
.protocol-grid .external-panel { background: var(--external); }
.protocol-grid .inline-link { margin-top: .65rem; }
.paper-figure { margin: 1.5rem 0; border: 1px solid var(--border); border-radius: 10px; padding: .85rem; background: #fff; }
.paper-figure img { display: block; width: 100%; height: auto; }
figcaption { color: var(--muted); font-size: .9rem; margin: .65rem .2rem .15rem; }
.table-toolbar { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: start; gap: .7rem; }
.table-toolbar label { font-size: .9rem; font-weight: 680; }
.table-toolbar input, .table-toolbar select { width: 100%; min-height: 2.45rem; margin-top: .25rem; padding: .25rem .4rem; border: 1px solid #afbdd0; border-radius: 5px; color: var(--ink); background: #fff; }
.table-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: .9rem 0 .5rem; }
.table-top p, .table-note, .community p { font-size: .9rem; color: var(--muted); }
.table-top p { margin: 0; }
.table-scroll { overflow: auto; border: 1px solid var(--border); border-radius: 8px; max-height: 37rem; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
#results-table { min-width: 790px; }
th, td { padding: .5rem .65rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
thead th { background: var(--header); font-weight: 700; }
.groups th { color: #273c59; }
thead button { padding: .18rem 0; background: transparent; border: 0; color: inherit; font-weight: 700; text-align: inherit; }
th[aria-sort="ascending"] button, th[aria-sort="descending"] button { text-decoration: underline; text-underline-offset: .25em; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.case-id { display: block; color: var(--muted); overflow-wrap: anywhere; font-size: .75rem; }
tr:last-child td { border-bottom: 0; }
#show-more { margin-top: .75rem; }
.community { border-top: 1px solid var(--border); margin-top: 1.65rem; padding-top: 1.2rem; }
.community .table-scroll { margin-top: .7rem; }
.community .inline-link { margin-top: .4rem; }
.code-panel { min-width: 0; border: 1px solid var(--border); border-radius: 8px; background: #fbfcfe; overflow: hidden; }
.code-panel > div { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .65rem .8rem; background: var(--header); border-bottom: 1px solid var(--border); }
.code-panel h3 { font-size: 1rem; }
.copy-button { border-radius: 5px; padding: .25rem .5rem; border: 1px solid #becbda; background: #fff; color: var(--ink); font-size: .85rem; }
pre { margin: 0; padding: .9rem; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .88rem; line-height: 1.55; }
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.citation { max-width: 900px; }
footer { border-top: 1px solid var(--border); padding: 1.3rem 0; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
footer p { margin: 0; color: var(--muted); font-size: .88rem; }
@media (max-width: 950px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr); gap: 1.4rem; }
  .table-toolbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .findings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .code-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  :root { scroll-padding-top: 1rem; }
  .wide { width: calc(100% - 2rem); }
  .topbar { position: static; }
  .navbar { flex-wrap: wrap; padding-block: .6rem; gap: .6rem; }
  nav { order: 3; width: 100%; justify-content: flex-start; }
  .hero-grid, .demo-grid, .protocol-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .table-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .authors span { display: block; margin-left: 0; }
}
@media (max-width: 400px) {
  .findings { grid-template-columns: 1fr; }
  .footer-row { align-items: flex-start; flex-direction: column; gap: .2rem; }
}
