/* Classic, single-column academic project page, following the VFIG/Nerfies style. */
:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #363636;
  --body: #4a4a4a;
  --muted: #707070;
  --blue: #008ed6;
  --rule: #e5e5e5;
  --soft: #f5f5f5;
  --tint: #eef6fb;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--body); font: 16px/1.6 "Noto Sans", sans-serif; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.2; }
h1 { font: 600 36px/1.15 "Google Sans", "Noto Sans", sans-serif; text-wrap: balance; margin-bottom: 28px; }
h2 { font-size: 32px; font-weight: 600; text-align: center; }
h3 { font-size: 26px; font-weight: 600; text-align: center; }
h4 { font-size: 20px; font-weight: 600; }
strong, b { font-weight: 600; color: var(--ink); }
sup { font-size: .68em; }
.hero { width: min(960px, calc(100% - 48px)); margin: 0 auto; padding: 48px 0 32px; text-align: center; }
.publication-subtitle { font-size: 32px; line-height: 1.3; margin: 12px 0 26px; text-wrap: balance; }
.authors { font: 20px/1.7 "Google Sans", "Noto Sans", sans-serif; text-wrap: balance; }
.authors span { white-space: nowrap; }
.authors .author-name { color: var(--blue); }
.affiliations { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 20px; margin: 12px 0 20px; font-size: 17px; }
.affiliations span { display: inline-flex; align-items: center; gap: 6px; }
.affiliations img { height: 20px; width: auto; }
.resources { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 17px; border: 1px solid transparent; border-radius: 999px; background: #363636; color: #fff; font-size: 16px; line-height: 1.5; }
.button svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }
.button:not(.unavailable):hover { background: #292929; color: #fff; text-decoration: none; }
.unavailable { background: #575757; cursor: default; }
.resource-status { font-size: 12px; }
.teaser { width: min(960px, calc(100% - 48px)); margin: 24px auto 0; }
section { display: flex; flex-direction: column; align-items: center; gap: 22px; padding-top: 52px; min-width: 0; }
section > * { width: min(960px, calc(100% - 48px)); min-width: 0; }
.section-heading { width: 100%; background: var(--soft); padding: 27px 24px; margin-bottom: 12px; }
.section-intro { text-align: justify; }
.abstract { padding: 48px 0 4px; }
.abstract > * { width: min(780px, calc(100% - 48px)); }
.abstract .prose { text-align: justify; }
.prose { display: grid; gap: 16px; }
figure { margin: 8px 0; min-width: 0; }
.figure-scroll { overflow-x: auto; background: #fff; }
.figure-link { display: block; cursor: zoom-in; }
.figure-link img { display: block; width: 100%; height: auto; }
figcaption { font-size: 14px; line-height: 1.6; text-align: center; padding-top: 16px; }
.enlarge { white-space: nowrap; font-size: 12px; margin-left: 4px; }
.swipe-hint { display: none; }
.steps { padding: 0; margin: 0; list-style: none; display: grid; gap: 12px; }
details { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 14px 0; font-size: 14px; }
details + details { border-top: 0; margin-top: -22px; }
summary { cursor: pointer; font-weight: 500; margin-left: 18px; padding-inline: 6px; }
summary::marker { color: var(--muted); }
summary:hover { color: var(--blue); }
.detail-content { padding: 18px 8px 4px; min-width: 0; }
.detail-content p { color: var(--body); }
.result { display: grid; gap: 18px; min-width: 0; padding-top: 20px; }
.result + .result { margin-top: 18px; padding-top: 28px; }
.result h3 { margin-bottom: 6px; }
.result h4 { margin-top: 8px; }
.setting { font-size: 13px; color: var(--muted); line-height: 1.8; }
.setting b { margin-right: 3px; }
.setting > span { padding-inline: 6px; }
.table-scroll { overflow-x: auto; min-width: 0; }
table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
caption { text-align: center; font-size: 14px; padding-bottom: 12px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--rule); text-align: right; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
thead th { font-weight: 600; border-bottom: 2px solid var(--ink); }
tbody th { font-weight: 400; }
.ours { background: var(--tint); }
.ours th { font-weight: 600; }
.group-start > * { border-top: 2px solid var(--rule); }
.factorial { font-size: 15px; }
.factorial th, .factorial td { padding: 14px 16px; }
.table-note { font-size: 13px; color: var(--muted); }
.conditions { padding-left: 24px; margin: 0; display: grid; gap: 14px; }
.citation-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.citation-heading h2 { text-align: left; }
.copy, .viewer-toolbar button, .viewer-toolbar a { background: var(--paper); border: 1px solid var(--rule); border-radius: 5px; padding: 7px 12px; color: var(--ink); font-size: 13px; text-decoration: none; }
.copy:hover, .viewer-toolbar button:hover, .viewer-toolbar a:hover { background: var(--soft); }
pre { font: 13px/1.65 "JetBrains Mono", ui-monospace, monospace; margin: 0; padding: 22px; background: var(--soft); overflow-x: auto; }
footer { margin-top: 52px; padding: 32px 24px 42px; background: #fafafa; font-size: 13px; text-align: center; line-height: 1.9; }
footer p { max-width: 960px; margin-inline: auto; }
footer .attribution { margin-top: 14px; }
.skip-link { position: fixed; top: 8px; left: 12px; z-index: 10; padding: 8px 14px; background: var(--paper); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
dialog { width: calc(100vw - 32px); max-width: 1900px; height: calc(100dvh - 32px); max-height: calc(100dvh - 32px); padding: 18px; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); color: var(--ink); overflow: hidden; }
dialog::backdrop { background: rgb(0 0 0 / .82); }
dialog[open] { display: flex; flex-direction: column; gap: 14px; }
.viewer-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.viewer-toolbar h2 { font-size: 16px; }
.viewer-toolbar > div { display: flex; flex-wrap: wrap; gap: 7px; }
.viewer-canvas { flex: 1; min-height: 0; overflow: auto; background: #fff; display: flex; align-items: center; }
.viewer-canvas img { display: block; width: 100%; height: auto; max-width: none; margin: auto; }
.viewer-canvas.zoomed { display: block; }
.viewer-canvas.zoomed img { width: var(--zoom-width); margin: 0; }
#viewer-description { font-size: 13px; color: var(--muted); }
@media (max-width: 700px) {
  .hero { padding-top: 36px; }
  h1 { font-size: 36px; }
  .publication-subtitle { font-size: 26px; }
  .authors { font-size: 17px; }
  .affiliations { font-size: 14px; gap: 8px 16px; }
  .affiliations img { height: 18px; }
  .factorial { font-size: 14px; }
  .factorial th, .factorial td { padding: 12px; }
}
@media (max-width: 480px) {
  .hero, .teaser, section > *, .abstract > * { width: calc(100% - 32px); }
  .section-heading { width: 100%; }
  .hero { padding: 30px 0 22px; }
  h1 { font-size: 32px; }
  .publication-subtitle { font-size: 23px; margin-bottom: 22px; }
  .desktop-break { display: none; }
  .authors { font-size: 16px; line-height: 1.75; }
  .affiliations { font-size: 13px; }
  .button { font-size: 13px; padding: 8px 12px; gap: 6px; }
  .resource-status { font-size: 10px; }
  .button svg { width: 14px; height: 14px; }
  section { padding-top: 38px; gap: 18px; }
  h2 { font-size: 28px; }
  h3 { font-size: 23px; }
  h4 { font-size: 18px; }
  .section-heading { padding-block: 22px; }
  .abstract .prose, .section-intro { text-align: left; }
  .abstract .prose, .result, .section-intro, .steps, .conditions { font-size: 15px; }
  figcaption { font-size: 12px; }
  details { font-size: 13px; }
  details + details { margin-top: -18px; }
  .setting { font-size: 12px; }
  pre { padding: 16px; font-size: 11px; }
  dialog { width: calc(100vw - 16px); height: calc(100dvh - 16px); max-height: calc(100dvh - 16px); padding: 12px; }
  .viewer-toolbar { align-items: flex-start; }
  .viewer-toolbar > div { justify-content: flex-end; }
  .viewer-toolbar button, .viewer-toolbar a { font-size: 10px; padding: 7px; }
  #viewer-description { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
