@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/Lato-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/Lato-Bold.woff2') format('woff2');
}

:root {
  --ink: #263445;
  --muted: #6a7582;
  --blue: #315f89;
  --line: #e6e9ed;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; color: var(--ink); background: #fff; font: 18px/1.8 "Lato", Verdana, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
button, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid #729ece; outline-offset: 4px; }
svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
img { display: block; max-width: 100%; height: auto; }
figure, p, h1, h2, h3 { margin: 0; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.container { max-width: 1120px; margin: auto; padding: 0 28px; }
.skip-link { position: fixed; top: -80px; left: 20px; background: var(--ink); color: white; padding: 10px 20px; z-index: 100; }
.skip-link:focus { top: 10px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: transform 220ms ease;
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header:focus-within { transform: translateY(0); }
.nav-wrap { max-width: 1440px; margin: auto; padding: 0 32px; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { width: 210px; height: 58px; object-fit: contain; }
.site-header nav { display: flex; align-items: center; gap: 28px; margin-left: auto; min-width: 0; font-size: 16px; font-weight: 400; color: var(--muted); }
.site-header nav a { flex-shrink: 0; white-space: nowrap; }
.site-header nav a.active { color: #1267c4; font-weight: 700; }
.small-icon { width: 13px; height: 13px; }
.hero { max-width: 1440px; padding-top: 20px; text-align: center; }
.venue { margin-top: 22px; color: var(--blue); font-size: 28px; font-weight: 700; line-height: 1.4; }
h1 { max-width: 1180px; margin: 20px auto 0; font-size: clamp(40px, 4vw, 58px); font-weight: 700; line-height: 1.16; letter-spacing: -1.4px; white-space: normal; text-wrap: balance; }
.authors { display: flex; justify-content: center; flex-wrap: wrap; gap: 38px; margin-top: 25px; }
.authors>div { display: flex; flex-direction: column; }
.authors a { color: var(--blue); font-size: 21px; font-weight: 550; }
sup { font-size: 9px; margin-left: 2px; }
.authors span { font-size: 16px; color: var(--muted); margin-top: 3px; }
.hero-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 11px; border: 0; border-radius: 999px; padding: 10px 23px; min-height: 50px; font-size: 20px; line-height: 1.4; background: #363636; color: #fff; transition: background .15s; }
.button:hover { background: #4a4a4a; color: #fff; }
.button-icon { width: 24px; height: 24px; object-fit: contain; flex-shrink: 0; }
.button-icon.monochrome { filter: brightness(0) invert(1); }
.hero-illustration { width: 580px; margin: 0 auto; }
.section { padding-top: 48px; padding-bottom: 14px; }
h2 { font-size: 34px; line-height: 1.4; font-weight: 600; letter-spacing: -.7px; }
h3 { font-size: 22px; font-weight: 550; }
.abstract-text, .section-intro, figcaption, .small-note, .runtime-heading p, .case-question, .discussion-text p {
  color: #505d6b;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.85;
}
.abstract-text { margin-top: 18px; }
.section-intro { margin-top: 9px; }
.figure-card { margin-top: 20px; }
.figure-open { position: relative; display: block; border: 0; background: #fff; padding: 0; width: 100%; text-align: left; }
.figure-open img { width: 100%; }
.expand-badge { position: absolute; right: 8px; bottom: 8px; display: flex; align-items: center; gap: 5px; padding: 5px 7px; background: #ffffffeb; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 10px; opacity: 0; transition: opacity .15s; }
.expand-badge svg { width: 13px; height: 13px; }
.figure-open:hover .expand-badge, .figure-open:focus-visible .expand-badge { opacity: 1; }
figcaption { margin-top: 12px; }
figcaption strong { color: var(--ink); font-weight: 550; }
.small-note { margin-top: 15px; }
.results-controls { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 24px; }
.results-controls label { display: flex; flex-direction: column; gap: 6px; }
.results-controls label, .results-controls legend { font-size: 13px; color: var(--muted); }
.results-controls select { min-width: 220px; background: #fff; color: var(--ink); border: 1px solid #d8dde4; border-radius: 4px; padding: 9px 12px; font-size: 14px; }
.results-controls fieldset { padding: 0; border: 0; margin: 0; }
.results-controls legend { margin-bottom: 6px; }
.segmented { display: flex; border: 1px solid #d8dde4; border-radius: 4px; overflow: hidden; }
.segmented button { padding: 8px 15px; background: #fff; border: 0; border-right: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.segmented button:last-child { border-right: 0; }
.segmented button[aria-pressed=true] { color: var(--blue); background: #f0f5fa; }
.table-wrap { overflow-x: auto; margin-top: 20px; }
table { font-variant-numeric: tabular-nums; border-collapse: collapse; width: 100%; white-space: nowrap; font-size: 16px; text-align: left; }
caption { text-align: left; padding-bottom: 12px; color: var(--muted); font-size: 13px; }
th, td { padding: 11px 15px; border-bottom: 1px solid var(--line); }
thead th { border-top: 1px solid #c8d0da; font-size: 14px; font-weight: 550; }
tbody th { font-weight: 400; }
th:not(:first-child), td:not(:first-child) { text-align: center; }
.table-group th { text-align: left; font-size: 13px; font-weight: 550; color: var(--muted); padding-top: 18px; border-bottom: 1px solid #c8d0da; }
.ours-row { background: #f3f7fb; color: var(--blue); font-weight: 600; }
.ours-row th { font-weight: 600; }
.ours-mark { font-size: 14px; margin-left: 7px; color: var(--muted); font-weight: 400; }
.runtime-heading { margin-top: 32px; }
.runtime-heading p { margin-top: 4px; }
.runtime-grid { display: grid; gap: 23px; grid-template-columns: 1fr; margin-top: 20px; }
.runtime-grid .figure-card { margin-top: 0; }
.runtime-figure-title { margin: 0 0 14px; text-align: center; font-size: 20px; font-weight: 700; line-height: 1.4; }
.visualization-heading { margin-top: 42px; }
.case-list { display: grid; gap: 32px; margin-top: 23px; }
.case-item { min-width: 0; }
.case-item .figure-open img { width: 100%; height: 100%; object-fit: contain; }
.case-question { padding-bottom: 12px; }
.discussion-text { display: grid; gap: 16px; margin-top: 18px; }
.tsne-slide .figure-open { aspect-ratio: 2800 / 1048; }
.citation-section { padding-bottom: 40px; }
.bibtex-card { position: relative; margin-top: 20px; background: #f7f8fa; border-radius: 5px; }
.copy-citation { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--muted); }
.copy-citation:hover { background: #e9edf2; color: var(--ink); }
.copy-citation svg { width: 19px; height: 19px; }
.copy-citation.is-copied, .copy-citation.is-copied:hover { color: #2c8056; }
pre { padding: 22px 56px 22px 20px; margin: 0; overflow-x: auto; font-size: 14px; line-height: 1.8; color: #44596e; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95em; }
dialog { width: min(1320px, 94vw); max-height: 92vh; padding: 0; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); }
dialog::backdrop { background: #17283dbb; }
.dialog-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 18px; border-bottom: 1px solid var(--line); font-size: 12px; background: white; position: sticky; top: 0; z-index: 1; }
.dialog-toolbar button { background: #f3f5f7; border: 0; border-radius: 4px; width: 32px; height: 32px; font-size: 23px; line-height: 1; }
.dialog-image-wrap { overflow: auto; padding: 15px; }
.dialog-image-wrap img { width: 100%; margin: auto; }
#dialog-caption { padding: 0 18px; font-size: 12px; color: var(--muted); }
#dialog-original { display: flex; gap: 5px; align-items: center; padding: 12px 18px 18px; font-size: 11px; color: var(--blue); }
#dialog-original svg { width: 13px; height: 13px; }
body.dialog-open { overflow: hidden; }
@media(max-width: 760px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .nav-wrap { height: 54px; padding: 0 20px; gap: 15px; }
  .site-header nav { gap: 18px; font-size: 13px; overflow-x: auto; scrollbar-width: none; }
  .site-header nav::-webkit-scrollbar { display: none; }
  .site-header nav a:first-child, .site-header nav a:nth-child(4) { display: none; }
  .brand img { width: 145px; height: 44px; }
  .hero { padding-top: 16px; }
  h1 { font-size: clamp(32px, 6.4vw, 44px); letter-spacing: -.8px; }
  .authors { gap: 18px 25px; }
  .authors a { font-size: 18px; }
  .authors span { font-size: 14px; }
  .button { font-size: 16px; padding: 9px 17px; min-height: 44px; gap: 8px; }
  .button-icon { width: 20px; height: 20px; }
  .hero-illustration { width: 100%; max-width: 340px; }
  .section { padding-top: 36px; }
  h2 { font-size: 29px; }
  .abstract-text, .section-intro, figcaption, .small-note, .runtime-heading p, .case-question, .discussion-text p { font-size: 17px; }
  .results-controls { align-items: stretch; flex-direction: column; gap: 13px; }
  .segmented button { flex: 1; padding: 8px 10px; }
  th, td { padding: 10px; font-size: 14px; }
  thead th { font-size: 12px; }
  .case-list { gap: 24px; }
  .expand-badge { opacity: 1; padding: 3px 5px; right: 3px; bottom: 3px; }
  .visualization-heading { margin-top: 34px; }
  pre { font-size: 12px; padding: 20px 52px 20px 14px; }
  .dialog-image-wrap img { min-width: 850px; max-width: none; }
}
@media(prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 25;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #d8dde4;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 9px #26344512;
}
.back-to-top:hover { background: #f3f6f9; color: var(--blue); }
.back-to-top svg { width: 20px; height: 20px; stroke-width: 2; }

tbody tr:not(.table-group) { transition: background-color 160ms ease; }
@media (hover: hover) {
  tbody tr:not(.table-group):hover { background-color: #eef2f7; }
  tbody tr.ours-row:hover { background-color: #dfeaf5; }
}
