:root {
  --text: #30343b;
  --heading: #183f64;
  --link: #147bb2;
  --muted: #737983;
  --tint: #f6f7f9;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font: 17px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--heading); text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 3px solid #64b5e3; outline-offset: 4px; }
.container { width: 100%; max-width: 960px; margin-inline: auto; }
.reading-width { max-width: 850px; margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: 8px; padding: 8px 12px; background: #fff; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.publication { padding: 64px 24px 28px; text-align: center; }
h1 { margin: 0 0 26px; line-height: 1.18; font-weight: 700; }
.project-title { display: block; color: var(--heading); font-size: 58px; letter-spacing: -1.2px; }
.paper-title { display: block; margin-top: 10px; font-size: 36px; letter-spacing: -.7px; }
.authors { color: var(--link); font-size: 20px; line-height: 1.9; }
.authors > span { display: inline-block; margin-inline: 3px; white-space: nowrap; }
sup { font-size: .66em; vertical-align: super; line-height: 0; margin-left: 1px; }
.affiliations { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 20px; margin: 10px 0 3px; font-size: 18px; }
.author-notes { margin: 0; font-size: 13px; color: var(--muted); }
.author-notes > span { margin-left: 12px; }
.resources { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.resource {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: #363636;
  color: #fff;
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  opacity: 1;
}
.resource svg { width: 17px; height: 17px; flex: none; }
.status { border-left: 1px solid #777; padding-left: 8px; color: #dedede; font-size: 10px; white-space: nowrap; }
.section-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-top: 26px; font-size: 14px; }

.section { padding: 48px 24px; }
.tinted { background: var(--tint); }
h2 { margin: 0 0 22px; text-align: center; font-size: 29px; font-weight: 600; line-height: 1.25; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.abstract-copy { text-align: justify; }
.section-intro { max-width: 840px; margin: 0 auto 24px; text-align: center; color: #5b636d; }
figure { margin: 28px 0 0; }
.figure-link { display: block; }
figure img { display: block; width: 100%; height: auto; }
figcaption { max-width: 850px; margin: 13px auto 0; color: #646b76; text-align: center; font-size: 14px; line-height: 1.55; }
.example { margin-top: 26px; }
.taxonomy { margin: 24px 0; }
.taxonomy dt { margin: 22px 0 5px; font-size: 20px; font-weight: 600; }
.taxonomy dd { margin: 0; }
.results-container { max-width: 1200px; }
.table-scroll-hint { display: none; margin-bottom: 10px; color: var(--muted); font-size: 13px; }
.results-scroll { width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.results-scroll:focus-visible { outline: 3px solid #64b5e3; outline-offset: 4px; }
.results-table {
  width: 100%;
  min-width: 1140px;
  margin-inline: auto;
  table-layout: fixed;
  border-spacing: 0;
  border-inline: 1px solid #aab6c2;
  border-top: 2px solid #56606b;
  border-bottom: 2px solid #56606b;
  font-size: 13px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.results-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.results-table .model-column { width: 184px; }
.results-table .input-column { width: 58px; }
.results-table th, .results-table td { padding: 10px 7px; white-space: nowrap; text-align: center; vertical-align: middle; border-right: 1px solid #c4cdd6; }
.results-table tr > :last-child { border-right: 0; }
.results-table thead th { color: var(--heading); background: #f5f7f9; font-weight: 600; border-bottom: 1px solid #aab6c2; }
.results-table thead tr:last-child th, .results-table .model-heading, .results-table .input-heading { border-bottom: 2px solid #8d9ba9; }
.results-table thead tr:first-child > :nth-child(3),
.results-table thead tr:first-child > :nth-child(4),
.results-table thead tr:last-child > :nth-child(9),
.results-table thead tr:last-child > :nth-child(10),
.results-table tr[data-model] > :nth-child(11),
.results-table tr[data-model] > :nth-child(12) { border-right: 2px solid #8d9ba9; }
.results-table abbr { text-decoration: none; cursor: help; }
.results-table tbody td { border-bottom: 1px solid #c4cdd6; }
.results-table tbody th[scope="row"] { font-weight: 400; border-bottom: 1px solid #c4cdd6; }
.results-table th[scope="row"], .results-table .model-heading {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 152px;
  background: #fff;
  border-right: 2px solid #8d9ba9;
}
.results-table .model-heading { background: #f5f7f9; }
.results-table .model-group th { padding-block: 10px; color: #374656; background: #edf1f5; font-weight: 600; border-top: 2px solid #8d9ba9; border-bottom: 1px solid #aab6c2; }
.results-table tbody:first-of-type .model-group th { border-top: 0; }
.results-table .model-group span { display: block; width: 100%; position: sticky; left: 7px; max-width: calc(100vw - 64px); white-space: normal; text-align: center; }
.results-table tbody tr[data-model]:last-child > * { border-bottom: 0; }
.results-table .overall-score { font-weight: 600; }
.results-table .human-result th, .results-table .human-result td { background: #f8fafc; }
.results-notes { margin-top: 22px; font-size: 13px; line-height: 1.65; color: #646b76; }
.results-notes p { margin-bottom: 10px; }
.case-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 24px; margin: 26px 0 30px; border-bottom: 1px solid #c4cdd6; }
.case-tabs button { padding: 10px 2px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: #646b76; font: inherit; font-size: 15px; cursor: pointer; }
.case-tabs button[aria-selected="true"] { color: var(--heading); border-bottom-color: var(--heading); font-weight: 600; }
.case-panel + .case-panel { margin-top: 36px; }
.case-tabs:not([hidden]) ~ .case-panel { margin-top: 0; }
.case-family { margin-bottom: 2px; color: #646b76; font-size: 14px; }
.case-panel h3 { margin: 0 0 14px; font-size: 22px; font-weight: 600; line-height: 1.4; }
.case-query { font-size: 17px; }
.case-video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #151515; }
.case-playback { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin-top: 16px; }
.case-playback p { margin: 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.case-modality { display: block; color: #646b76; font-size: 13px; }
.case-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.case-actions button { padding: 7px 12px; border: 1px solid #aab6c2; border-radius: 3px; background: #fff; color: var(--heading); font: inherit; font-size: 13px; cursor: pointer; }
.case-actions button:hover { border-color: var(--heading); background: #edf1f5; }
.case-answer { margin-top: 20px; font-size: 16px; }
.case-playback-status { margin: 8px 0 0; font-size: 13px; }
.case-playback-status:empty { display: none; }
.case-tabs[hidden], .case-panel[hidden], .case-actions[hidden] { display: none; }
.site-footer { padding: 32px 24px; text-align: center; color: var(--muted); font-size: 14px; }
.funding { font-size: 12px; }

@media (max-width: 1188px) {
  .table-scroll-hint { display: block; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .publication { padding: 40px 20px 22px; }
  .project-title { font-size: 43px; letter-spacing: -.8px; }
  .paper-title { font-size: 26px; letter-spacing: -.3px; }
  .desktop-break { display: none; }
  .authors { font-size: 16px; }
  .affiliations { gap: 2px; font-size: 14px; }
  .affiliations > span { width: 100%; }
  .resources { gap: 7px; }
  .resource { padding: 8px 14px; font-size: 13px; }
  .section-nav { gap: 18px; font-size: 13px; }
  .section { padding: 36px 20px; }
  h2 { font-size: 25px; }
  .abstract-copy { text-align: left; }
  .taxonomy dt { font-size: 18px; }
  .results-table th[scope="row"], .results-table .model-heading { min-width: 136px; }
  .results-table .model-column { width: 168px; }
  .results-table .model-group span { max-width: calc(100vw - 56px); }
  .case-tabs { gap: 4px 18px; }
  .case-tabs button { font-size: 14px; }
  .case-panel h3 { font-size: 20px; }
  .case-query, .case-answer { font-size: 15px; }
  .site-footer { padding: 28px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
