:root {
  --text: #363636;
  --link: #3273aa;
  --line: #dedede;
  --button: #23263b;
  font-family: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  font-size: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; line-height: 1.6; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }
button { cursor: pointer; }
button { color: inherit; }
a, button, video { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #3273aa; outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.container { width: min(1000px, calc(100% - 48px)); margin-inline: auto; }
.publication-header { width: min(1600px, calc(100% - 64px)); text-align: center; padding: 58px 0 38px; }
.publication-header h1 { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 1.7vw, 28px); font-size: clamp(3.5rem, 6.65vw, 6.75rem); font-weight: 900; letter-spacing: -2.5px; line-height: 1.12; }
.publication-header h1 img { width: clamp(84px, 8.2vw, 136px); height: auto; object-fit: contain; flex-shrink: 0; }
.publication-subtitle { font-size: clamp(1.5rem, 2.6vw, 2.75rem); line-height: 1.3; font-weight: 800; margin: 26px 0 28px; letter-spacing: -.5px; }
.authors { font-size: clamp(.9375rem, 1.35vw, 1.25rem); line-height: 1.9; }
.authors > span { white-space: nowrap; }
sup { font-size: .68em; }
.affiliations { margin-top: 10px; font-size: clamp(.875rem, 1.12vw, 1.0625rem); line-height: 1.8; }
.affiliations span { display: inline-block; margin: 0 7px; }
.author-notes { margin-top: 5px; font-size: .875rem; }
.venue { font-size: 1.25rem; font-weight: 700; margin-top: 12px; }
.publication-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 16px; }
.resource-button { display: inline-flex; align-items: center; gap: 7px; border-radius: 30px; padding: 8px 17px; background: var(--button); color: #fff; font-size: 1rem; }
.resource-button:hover { background: #40445b; text-decoration: none; }
.resource-button svg { width: 17px; height: 17px; }
.paper-section { padding-block: 33px; }
.paper-section > h2 { text-align: center; font-size: 2rem; line-height: 1.25; font-weight: 800; margin-bottom: 23px; }
.paper-section > p, figcaption { font-size: 1.0625rem; line-height: 1.7; }
.section-intro { margin-bottom: 23px; }
.thumbnail-strip { display: flex; gap: 10px; overflow-x: auto; padding: 5px 3px 13px; margin-bottom: 14px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #bbb #f4f4f4; }
.thumbnail { flex: 0 0 110px; min-width: 0; padding: 3px; background: #fff; border: 2px solid transparent; border-radius: 4px; scroll-snap-align: center; }
.thumbnail:hover { border-color: #b7b7b7; }
.thumbnail[aria-pressed=true] { border-color: #3273aa; }
.thumbnail img { display: block; width: 100%; aspect-ratio: 832 / 480; object-fit: cover; }
.thumbnail span { display: block; font-size: .75rem; line-height: 1.35; padding: 6px 2px 3px; min-height: 40px; }
.example-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 14px 0; }
.example-heading h3 { font-size: 1.0625rem; font-weight: 700; }
#example-count { font-size: .875rem; color: #666; white-space: nowrap; font-variant-numeric: tabular-nums; }
.comparison-labels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 6px; text-align: center; font-size: 1rem; line-height: 1.4; margin-bottom: 9px; }
.comparison-labels strong { font-weight: 700; overflow-wrap: anywhere; }
#comparison-video { display: block; width: 100%; aspect-ratio: 2496 / 480; background: #151515; }
.plain-button { display: inline-block; background: #fff; border: 1px solid #ccc; border-radius: 4px; padding: 5px 13px; font-size: .875rem; line-height: 1.65; color: #444; }
.plain-button:hover { border-color: #888; background: #f5f5f5; text-decoration: none; }
.prompt { margin-top: 16px; line-height: 1.7; font-size: 1rem; }
.video-error { padding: 15px; color: #a22; background: #faf6f6; }
.video-error button { border: 0; text-decoration: underline; background: transparent; color: inherit; }
.abstract { max-width: 860px; }
.abstract p { text-align: justify; }
.figure-button { display: block; width: 100%; background: transparent; padding: 0; border: 0; cursor: zoom-in; }
.figure-button img { display: block; width: 100%; }
figcaption { margin-top: 21px; }
.table-intro { margin-top: 20px; }
.table-wrap { overflow-x: auto; margin: 26px auto 0; max-width: 770px; }
table { width: 100%; border-collapse: collapse; font-size: 1rem; text-align: center; border-top: 2px solid #444; border-bottom: 2px solid #444; }
caption { font-weight: 600; padding-bottom: 12px; }
th, td { padding: 12px 16px; }
thead { border-bottom: 1px solid #777; }
thead th { font-weight: 700; }
tbody th { font-weight: 500; text-align: left; }
td { font-variant-numeric: tabular-nums; }
.paper-section .table-note { font-size: .875rem; color: #666; margin-top: 18px; }
.citation-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 18px; }
.citation-heading h2 { font-size: 2rem; font-weight: 800; }
.citation-heading > div { display: flex; gap: 8px; }
pre { background: #f5f5f5; padding: 22px; overflow-x: auto; margin: 0; font-size: .8125rem; line-height: 1.8; }
pre code { font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace; }
footer { text-align: center; padding-block: 30px 42px; font-size: .875rem; color: #777; }
dialog { width: min(1450px, 94vw); max-width: 94vw; max-height: 90vh; border: 1px solid #ddd; padding: 24px; background: #fff; color: var(--text); }
dialog::backdrop { background: #0009; }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 25px; }
.dialog-header h2 { font-size: 1.25rem; }
.figure-scroll { overflow-x: auto; }
.figure-scroll img { display: block; width: 100%; min-width: 850px; }
body.dialog-open { overflow: hidden; }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #363636; color: #fff; padding: 10px 20px; border-radius: 4px; font-size: .875rem; z-index: 10; }
.skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: absolute; top: 5px; left: 5px; background: #fff; padding: 10px; z-index: 20; }
@media (min-width: 1000px) {
  .publication-subtitle, .authors, .affiliations { white-space: nowrap; }
}
@media (max-width: 700px) {
  .container { width: calc(100% - 32px); }
  .publication-header { padding-top: 34px; padding-bottom: 17px; }
  .publication-header h1 { font-size: clamp(2.6rem, 7.3vw, 3.5rem); gap: 12px; letter-spacing: -1.5px; }
  .publication-header h1 img { width: clamp(50px, 9.5vw, 66px); height: auto; }
  .publication-subtitle { font-size: 1.5rem; margin: 19px 0; }
  .authors { font-size: 1rem; line-height: 1.9; }
  .affiliations { font-size: .875rem; }
  .author-notes { font-size: .75rem; }
  .venue { font-size: 1.125rem; }
  .publication-links { gap: 8px; }
  .resource-button { font-size: .875rem; padding: 8px 13px; }
  .paper-section { padding-block: 26px; }
  .paper-section > h2, .citation-heading h2 { font-size: 1.625rem; }
  .paper-section > p, figcaption { font-size: 1rem; }
  .abstract p { text-align: left; }
  .thumbnail { flex-basis: 100px; }
  .comparison-labels { font-size: .8125rem; gap: 5px; }
  th, td { padding: 11px 8px; font-size: .875rem; }
  pre { padding: 16px; font-size: .75rem; }
  .dialog-header h2 { font-size: 1rem; }
  dialog { padding: 15px; }
}
@media (max-width: 370px) {
  .publication-header h1 { font-size: 2.25rem; gap: 9px; }
  .publication-header h1 img { width: 43px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
