@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/space-grotesk-bold.ttf") format("truetype");
}
:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: #363646;
  background: #f3f5f8;
  font-synthesis: none;
  --accent: #6a3dbf;
  --gradient: linear-gradient(120deg, #1a1a2e, #2f3fb3 40%, #6a3dbf 70%, #b5178a);
  --heading-font: "Space Grotesk", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; font-size: 18px; line-height: 1.65; -webkit-font-smoothing: antialiased; background: linear-gradient(#f5f7f9, #eef2f5); }
h1, h2, h3, p, figure { margin: 0; }
a { color: #5a34b8; text-underline-offset: 4px; }
a:hover { color: #b5178a; }
a:focus-visible, button:focus-visible, summary:focus-visible, video:focus-visible, .paper-table-scroll:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.skip-link { position: absolute; top: -60px; left: 16px; background: white; padding: 9px 15px; z-index: 20; }
.skip-link:focus { top: 12px; }

.publication-header { width: min(1320px, calc(100% - 128px)); padding-top: clamp(28px, 4vh, 52px); margin-inline: auto; text-align: center; }
h1 { font: 700 clamp(34px, 3.4vw, 48px)/1.12 var(--heading-font); letter-spacing: -.025em; text-wrap: balance; color: #2f3fb3; }
@supports (background-clip: text) {
  h1 { background: var(--gradient); background-clip: text; -webkit-background-clip: text; color: transparent; }
}
@media (min-width: 1100px) {
  h1 { font-size: clamp(34px, 3.3vw, 46px); }
  .title-line { display: block; }
}
.authors { margin-top: 20px; font-size: 22px; color: #5a34b8; font-weight: 600; }
.authors span { white-space: nowrap; }
.authors a { text-decoration: none; }
.authors a:hover, .authors a:focus-visible { text-decoration: underline; }
.authors sup, .affiliations sup, .intern-note sup { color: #b5178a; font-size: .75em; }
.affiliations { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 25px; font-size: 20px; color: #4a3a86; margin-top: 6px; }
.affiliations span { white-space: nowrap; }
.intern-note { font-size: 18px; color: #5a4a83; margin-top: 5px; }
.publication-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; font-size: 18px; font-weight: 600; }
.publication-links > * { display: inline-flex; align-items: center; gap: 9px; min-height: 48px; border-radius: 999px; padding: 9px 23px; }
.publication-links :is(button, a) { border: 0; font-weight: 600; text-decoration: none; background: linear-gradient(120deg, #2f3fb3, #6a3dbf 55%, #b5178a); color: white; box-shadow: 0 3px 12px #6a3dbf52; transition: transform .12s, box-shadow .2s, filter .2s; }
.publication-links :is(button, a):hover { transform: translateY(-1px); filter: brightness(1.07); box-shadow: 0 6px 18px #b5178a66; }
.publication-links :is(button, a):active { transform: translateY(0); }
.publication-links svg { width: 20px; height: 20px; }
.release-notice { width: min(420px, calc(100% - 40px)); padding: 30px; color: #363646; background: #fff; border: 1px solid #6a3dbf30; border-radius: 18px; box-shadow: 0 16px 60px #2f3fb340; text-align: center; }
.release-notice h3 { font: 700 28px/1.3 var(--heading-font); margin-bottom: 14px; }
.release-notice p { font-size: 18px; }
.release-notice button { margin-top: 22px; min-height: 44px; padding: 8px 24px; color: #5a34b8; background: #f0ebf8; border: 1px solid #d9cfe8; border-radius: 999px; }
.wide-container, .section-container { width: min(1120px, calc(100% - 144px)); margin-inline: auto; }
.video-section { padding-block: 28px 32px; }
video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: white; border-radius: 18px; border: 1px solid #6a3dbf20; box-shadow: 0 12px 40px #2f3fb32a, 0 4px 14px #6a3dbf15; }
.teaser-media { display: flex; justify-content: center; align-items: center; }
figcaption { margin-top: 20px; line-height: 1.75; font-size: 18px; }
.video-section figcaption { text-align: center; font-size: 20px; line-height: 1.55; }
.brand { color: #4e379d; font-variant: small-caps; font-size: 1.12em; }
.video-error { padding: 12px 16px; margin-top: 10px; border: 1px solid #b85b55; border-radius: 8px; background: #fff4f3; font-size: 18px; }
.viewport-fit { min-height: 100svh; display: flex; flex-direction: column; }
.viewport-fit .publication-header { flex: none; }
.viewport-fit .video-section { flex: 1; display: flex; flex-direction: column; }
.viewport-fit .video-section figure { flex: 1; display: flex; flex-direction: column; }
.viewport-fit .teaser-media { flex: 1; position: relative; min-height: min(240px, calc((100vw - 48px) * 9 / 16)); }
.viewport-fit .teaser-media video { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: var(--teaser-width, 100%); height: auto; }
.viewport-fit figcaption { flex: none; }
.paper-section { padding-block: 52px 58px; }
.section-tint { background: #ffffff78; border-block: 1px solid #404c6014; }
h2 { position: relative; display: table; font: 700 32px/1.2 var(--heading-font); letter-spacing: -.015em; padding-bottom: 14px; margin-bottom: 27px; color: #28273e; }
h2::after { content: ""; position: absolute; width: 76px; height: 4px; left: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, #2f3fb3, #6a3dbf 55%, #b5178a); box-shadow: 0 2px 10px #6a3dbf30; }
.abstract-copy { max-width: 940px; margin-inline: auto; font-size: 18px; line-height: 1.85; color: #444453; }
.section-intro { font-size: 18px; line-height: 1.75; margin-bottom: 26px; }
.method-figure img { display: block; width: 100%; height: auto; padding: 25px; background: white; border-radius: 16px; border: 1px solid #6a3dbf20; box-shadow: 0 8px 28px #3c2d7810; }
.method-figure figcaption { color: #444453; font-size: 18px; }

.results-container { width: min(1280px, calc(100% - 160px)); margin-inline: auto; }
.table-group { margin-bottom: 54px; }
.table-group:last-child { margin-bottom: 0; }
.table-group + .table-group { border-top: 1px solid #404c6020; padding-top: 34px; }
.table-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 18px; }
.table-title { font: 700 26px/1.35 var(--heading-font); color: #242b3d; }
.table-hint { font-size: 18px; color: #5d6675; }
.result-summary { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; margin-bottom: 20px; border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; background: #efecf8c7; color: #4a5262; font-size: 18px; line-height: 1.7; }
.result-summary > svg { width: 36px; height: 36px; padding: 7px; background: linear-gradient(135deg, #2f3fb3, #6a3dbf 62%, #b5178a); border-radius: 8px; color: white; }
.result-summary strong { color: #34304f; }
.table-description { font-size: 18px; line-height: 1.8; margin-top: 15px; color: #444453; }
.table-note { margin-top: 17px; font-size: 18px; color: #5d6675; }
.evaluation-details { margin-top: 12px; }
.evaluation-details summary { width: fit-content; color: #5a34b8; cursor: pointer; font-size: 18px; }
.paper-table-scroll { width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; background: white; border: 1px solid #424e6324; border-radius: 10px; box-shadow: 0 10px 28px #2d395317; scrollbar-color: #a79dc5 #f0edf7; }
table.paper-table { width: 100%; border-collapse: separate; border-spacing: 0; font-family: Arial, Helvetica, sans-serif; font-size: 18px; line-height: 1.5; font-variant-numeric: tabular-nums; color: #303747; }
#table-1 table { min-width: 1120px; }
#table-2 table { min-width: 900px; }
.paper-table th, .paper-table td { padding: 10px 8px; text-align: center; white-space: nowrap; border-right: 1px solid #424e6317; border-bottom: 1px solid #424e6317; }
.paper-table th { font-weight: 600; }
.paper-table th:first-child, .paper-table td:first-child { text-align: left; }
.paper-table tr > :last-child { border-right: 0; }
.paper-table tbody tr:last-child > * { border-bottom: 0; }
.paper-table thead th { background: #edf0f5; color: #31394b; font-weight: 700; }
.paper-table thead tr:first-child th { background: #e4e9f1; color: #39445b; }
.paper-table thead th[colspan] { text-align: center; }
.paper-table th[scope="row"] { position: sticky; left: 0; z-index: 1; min-width: 132px; padding-left: 14px; background: white; box-shadow: 1px 0 #424e6324; }
.paper-table thead th:first-child:not([colspan]) { position: sticky; left: 0; z-index: 2; }
.paper-table tr.dataset-row > th { text-align: left; color: #5a4a83; font-weight: 600; padding: 10px 14px; background: #f2f3f8; }
.paper-table tr.dataset-row em { font-style: normal; }
.paper-table tr.ours-row th[scope="row"] { color: #55359d; background: #f2effb; }
.paper-table tbody tr:not(.dataset-row):hover > * { filter: brightness(.98); }
.paper-table strong { font-weight: 700; }
.muted, .paper-table tr.muted > th, .paper-table tr.muted > td { color: #808080; }

.takeaway-intro { max-width: 880px; text-align: center; margin: 0 auto 28px; font-size: 18px; color: #3a3a52; }
.takeaway-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.takeaway-card { padding: 25px; background: #ffffffb8; border: 1px solid #785ac829; border-radius: 18px; box-shadow: 0 8px 24px #3c2d7817; transition: transform .2s, box-shadow .2s; }
.takeaway-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px #3c2d7824; }
.takeaway-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; color: white; background: linear-gradient(120deg, #2f3fb3, #6a3dbf 55%, #b5178a); box-shadow: 0 6px 16px #6a3dbf40; margin-bottom: 18px; }
.takeaway-icon svg { width: 25px; height: 25px; }
.takeaway-card h3 { font: 700 22px/1.3 var(--heading-font); color: #24224a; margin-bottom: 12px; }
.takeaway-card p { font-size: 18px; line-height: 1.7; color: #4a4a58; }
.takeaway-outro { text-align: center; color: #2f3fb3; font-size: 18px; margin-top: 30px; }

.citation-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 18px; margin-bottom: 24px; }
.citation-heading h2 { margin-bottom: 0; }
.citation-heading button { display: inline-flex; align-items: center; gap: 9px; padding: 9px 20px; min-height: 46px; border: 1px solid #6a3dbf30; border-radius: 999px; background: #efeaf8; color: #5a34b8; font-size: 18px; }
.citation-heading button:hover { background: #e6def4; }
.bibtex-block { margin: 0; padding: 26px; background: #e9edf3; border: 1px solid #424e631c; border-radius: 12px; color: #34324a; font: 18px/1.8 "Courier New", monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.bibtex-block code { font: inherit; }
.copy-status { min-height: 1.8em; margin-top: 12px; font-size: 18px; color: #5a34b8; }

.section-nav { position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 10; display: flex; flex-direction: column; gap: 5px; padding: 10px 7px; border: 1px solid #6a3dbf24; border-radius: 16px; background: #ffffffc9; backdrop-filter: blur(10px); box-shadow: 0 8px 28px #2f3fb320; }
.section-nav a { display: flex; align-items: center; gap: 9px; padding: 9px; border-radius: 8px; font-size: 16px; text-decoration: none; color: #5a4a92; }
.nav-dot { width: 8px; height: 8px; border-radius: 50%; background: #6a3dbf50; flex-shrink: 0; }
.nav-label { max-width: 0; overflow: hidden; opacity: 0; white-space: nowrap; transition: max-width .2s, opacity .2s; }
.section-nav:hover .nav-label, .section-nav:focus-within .nav-label { max-width: 140px; opacity: 1; }
.section-nav a:hover { background: #6a3dbf12; }
.section-nav [aria-current="location"] .nav-dot { background: var(--gradient); box-shadow: 0 0 0 4px #b5178a20; }
.page-footer { padding: 28px 24px; text-align: center; border-top: 1px solid #404c6014; color: #636376; font-size: 16px; }
.page-footer a { display: inline-block; margin-top: 6px; text-decoration: none; }

@media (max-width: 900px) {
  .section-nav { display: none; }
  .publication-header, .wide-container, .section-container, .results-container { width: calc(100% - 48px); }
  .paper-table th, .paper-table td { padding-inline: 6px; }
  .takeaway-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .publication-header { padding-top: 32px; }
  h1 { font-size: 32px; line-height: 1.14; }
  .authors { font-size: 20px; margin-top: 19px; }
  .publication-links { gap: 10px; font-size: 18px; }
  .publication-links > * { padding: 9px 18px; }
  .publication-header, .wide-container, .section-container, .results-container { width: calc(100% - 32px); }
  .video-section { padding-block: 25px 30px; }
  video { border-radius: 10px; }
  .video-section figcaption { font-size: 18px; }
  .desktop-break { display: none; }
  .paper-section { padding-block: 34px 38px; }
  h2 { font-size: 28px; margin-bottom: 23px; }
  .abstract-copy, .section-intro { line-height: 1.75; }
  .method-figure img { padding: 8px; border-radius: 10px; }
  .table-title { font-size: 24px; }
  .table-heading { gap: 12px; }
  .result-summary { padding: 14px; gap: 12px; }
  .takeaway-intro, .takeaway-outro { text-align: left; }
  .takeaway-card { padding: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .takeaway-card:hover, .publication-links :is(button, a):hover { transform: none; }
}
