:root {
  --ink: #1a1a1a;
  --text: #363636;
  --muted: #646970;
  --blue: #4e95d9;
  --blue-dark: #2d5f8b;
  --blue-deep: #1f4566;
  --blue-light: #e6f4fd;
  --purple: #7030a0;
  --red: #c00000;
  --mint: #66a99e;
  --line: #dedede;
  --light: #f5f5f5;
  --page: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: Arial,Helvetica,sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

h1, h2, h3, h4, p, figure {
  margin: 0;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  color: var(--ink);
}

a {
  color: #2875b7;
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, select {
  font: inherit;
}

button {
  cursor: pointer;
  color: inherit;
}

button:disabled {
  cursor: default;
}

sup {
  font-size: .63em;
  line-height: 0;
  vertical-align: super;
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(var(--page),calc(100% - 48px));
  margin: auto;
}

.is-max-desktop {
  max-width: 1000px;
}

.has-text-centered {
  text-align: center;
}

.has-text-justified {
  text-align: justify;
}

.columns {
  display: flex;
  gap: 38px;
}

.column {
  flex: 1;
  min-width: 0;
}

.is-centered {
  justify-content: center;
}

.content p+p {
  margin-top: 16px;
}

.content strong {
  color: #262626;
}

.section {
  padding: 58px 0;
}

.section.is-light {
  background: var(--light);
}

.title.is-2 {
  font-size: 32px;
  font-weight: 650;
  letter-spacing: -.6px;
  margin-bottom: 27px;
}

.title.is-3 {
  font-size: 24px;
  letter-spacing: -.3px;
  font-weight: 600;
}

.section-intro {
  max-width: 870px;
  margin: 0 auto 27px;
  color: #4b4b4b;
}

.section-intro p+p {
  margin-top: 12px;
}

.small {
  font-size: 13px;
}

.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;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: white;
  z-index: 50;
  padding: 10px;
}

.skip-link:focus {
  top: 10px;
}

.publication-header .hero-body {
  padding: 58px 0 29px;
}

.publication-title {
  font-size: 43px;
  letter-spacing: -1.05px;
  font-weight: 650;
  line-height: 1.18;
  max-width: 1080px;
  margin: 0 auto 19px;
}

.project-name {
  color: var(--blue);
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .project-name {
    background-image: linear-gradient(90deg, var(--blue) 0%, var(--blue) 40%, var(--purple) 56%, var(--purple) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

@media (forced-colors: active) {
  .project-name {
    background: none;
    -webkit-text-fill-color: CanvasText;
    color: CanvasText;
  }
}

.sweet-spot {
  color: var(--red);
}

.publication-venue {
  font-size: 22px;
  font-weight: 600;
  color: #555;
  margin: 0 0 16px;
}

.publication-authors {
  font-size: 19px;
  line-height: 1.8;
}

.author-block {
  display: inline-block;
  white-space: nowrap;
  margin-inline: 4px;
}

.author-name {
  color: #2875b7;
  font-weight: 700;
}

.publication-affiliations {
  font-size: 16px;
  color: #555;
  margin: 8px auto 0;
  display: flex;
  gap: 3px 19px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 900px;
}

.corresponding-mark {
  display: inline-flex;
  margin-left: .25em;
  vertical-align: -.12em;
  color: #2875b7;
}

.corresponding-mark svg {
  display: block;
  width: 1.05em;
  height: 1.05em;
}

.corresponding-author {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3px 8px;
  margin: 11px auto 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.correspondence-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.correspondence-label svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.publication-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 23px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 17px;
  border: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.45;
  background: #fff;
  min-height: 38px;
}

.button:hover {
  text-decoration: none;
  background: #eee;
}

.button.is-rounded {
  border-radius: 9999px;
}

.button.is-dark {
  background: #363636;
  color: #fff;
  border-color: #363636;
}

.button.is-dark:hover {
  background: #252525;
}

.button svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.paper-toc {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.teaser .hero-body {
  padding: 0 0 37px;
}

.teaser-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
}

.teaser-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.image-label {
  font-size: 14.72px;
  color: #4e4e4e;
  text-align: center;
  line-height: 1.35;
  margin-bottom: 8px;
}

.image-label.ours {
  color: var(--blue-deep);
  font-weight: 700;
}

.teaser-caption {
  font-size: 14px;
  text-align: center;
  color: #444;
}

.teaser-caption span {
  color: var(--blue-dark);
}

.teaser-summary {
  max-width: 940px;
  margin: 24px auto 0;
  font-size: 18px;
  line-height: 1.55;
  text-align: center;
}

.image-button {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  position: relative;
  line-height: 0;
}

.image-button img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
}

.image-button:hover {
  outline: 1px solid #b0c7d8;
  outline-offset: 2px;
}

.image-button::after {
  content: "↗";
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 22px;
  height: 22px;
  background: #ffffffeb;
  color: #333;
  line-height: 22px;
  font-size: 15px;
  opacity: 0;
}

.image-button:hover::after, .image-button:focus-visible::after {
  opacity: 1;
}

.abstract-body {
  max-width: 850px;
  margin: auto;
  font-size: 17.28px;
  line-height: 1.75;
}

.method-intro {
  text-align: center;
  margin-bottom: 25px;
}

.method-intro .title {
  margin-bottom: 12px;
}

.method-intro .title strong, .method-intro .title em {
  font-family: inherit;
  font-size: inherit;
}

.method-intro .title strong {
  font-weight: 700;
}

.method-intro p {
  font-size: 16px;
}

.method-figure {
  max-width: 930px;
  margin: auto;
}

.figure-button {
  display: block;
  width: 100%;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: zoom-in;
}

.figure-button img {
  width: 100%;
  height: auto;
  background: white;
}

.figure-caption {
  font-size: 14.72px;
  line-height: 1.65;
  color: #626262;
  margin-top: 15px;
}

.method-columns {
  margin-top: 37px;
  padding-top: 30px;
  border-top: 1px solid #e7e7e7;
}

.method-column {
  position: relative;
}

.method-column+.method-column {
  border-left: 1px solid #e6e6e6;
  padding-left: 36px;
}

.method-column h3 {
  font-size: 24px;
  line-height: 1.25;
  margin-bottom: 14px;
}

.method-column p {
  font-size: 16px;
  line-height: 1.75;
}

.equation-area {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px 0 12px;
}

.equation-area img {
  width: 100%;
  height: auto;
  max-height: 132px;
  object-fit: contain;
  background: white;
}

.equation-area.assignment img {
  max-width: 450px;
}

.term-key {
  font-size: 14.72px !important;
  color: #555;
  text-align: center;
}

.term-key .individual {
  color: var(--blue-dark);
}

.term-key .pairwise {
  color: var(--purple);
}

.reuse-note {
  border-top: 1px solid #e4e4e4;
  padding-top: 22px;
  line-height: 1.7;
  text-align: center;
  max-width: 970px;
}

.reuse-note strong {
  color: #333;
}

.details {
  margin-top: 21px;
}

.details summary {
  font-size: 16px;
  color: var(--blue-dark);
  cursor: pointer;
  width: fit-content;
}

.details-body {
  padding: 19px 0 3px;
  font-size: 16px;
  line-height: 1.75;
}

.details-body p+p {
  margin-top: 12px;
}

.gallery-tabs {
  display: flex;
  justify-content: center;
  border-bottom: 1px solid #d9d9d9;
  margin: 0 auto 28px;
  width: fit-content;
  max-width: 100%;
}

.tab-button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 9px 0 11px;
  color: #666;
  line-height: 1.35;
  font-size: 16px;
}

.tab-button[aria-pressed=true] {
  color: var(--blue-dark);
  font-weight: 700;
  border-bottom-color: var(--blue-dark);
}

.gallery-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}

.task-label {
  font-size: 12px;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  margin-bottom: 3px;
}

.gallery-prompt {
  font-size: 23px;
  letter-spacing: -.25px;
}

.gallery-control {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.72px;
  color: #626262;
}

.gallery-control select {
  font-size: 16px;
  color: #363636;
  background: #fff;
  border: 1px solid #d5d5d5;
  border-radius: 3px;
  padding: 7px 28px 7px 10px;
  max-width: 190px;
  min-height: 37px;
}

.gallery-frame {
  max-width: 970px;
  margin: auto;
}

.gallery-images {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 23px;
  align-items: start;
}

.comparison-card {
  min-width: 0;
}

.comparison-card.ours {
  outline: 1.5px solid var(--mint);
  outline-offset: 7px;
  background: #fbfdfc;
}

.comparison-card.ours .image-label {
  color: #1f4566;
  font-weight: 700;
}

.comparison-card.ours .image-label .lv-name {
  font-weight: 800;
}

.gallery-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 26px;
}

.thumbnails {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  max-width: 100%;
  padding: 3px;
}

.thumbnail {
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  border: 1px solid transparent;
  background: white;
  opacity: .55;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thumbnail[aria-pressed=true] {
  outline: 2px solid var(--blue-dark);
  outline-offset: 1px;
  opacity: 1;
}

.thumbnail:hover {
  opacity: 1;
}

.gallery-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.arrow-button {
  border: 1px solid #ccc;
  border-radius: 50%;
  background: white;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
}

.arrow-button:hover {
  background: #e9eff4;
  border-color: #9aafc0;
}

.gallery-count {
  font-size: 14.72px;
  color: #666;
  min-width: 38px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.gallery-note {
  color: #666;
  margin-top: 18px;
  line-height: 1.55;
}

.gallery-tools {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid #dedede;
}

.text-button {
  border: 0;
  padding: 0;
  background: none;
  color: var(--blue-dark);
  font-size: 14.72px;
  line-height: 1.6;
  text-align: left;
}

.text-button:hover {
  text-decoration: underline;
}

.all-methods-panel {
  margin-top: 24px;
  padding: 15px 8px 10px;
  overflow-x: auto;
}

.all-methods-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(7,minmax(0,1fr));
  min-width: 930px;
}

.all-methods-grid .image-label {
  font-size: 14.72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.all-methods-grid .ours {
  outline-offset: 5px;
}

.scroll-hint {
  display: none;
}

.no-js-note {
  font-size: 16px;
  margin-bottom: 15px;
  background: var(--blue-light);
  padding: 12px;
}

.compare-swipe {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  touch-action: pan-y;
}

.compare-swipe img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: contain;
}

.compare-swipe .source-over {
  clip-path: inset(0 calc(100% - var(--split,50%)) 0 0);
}

.swipe-divider {
  position: absolute;
  left: var(--split,50%);
  top: 0;
  bottom: 0;
  width: 2px;
  background: white;
  transform: translateX(-1px);
  pointer-events: none;
}

.swipe-divider::after {
  content: "↔";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 33px;
  height: 33px;
  line-height: 33px;
  text-align: center;
  border-radius: 50%;
  background: white;
  color: #444;
  font-size: 18px;
  box-shadow: 0 1px 6px #0003;
}

.swipe-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.swipe-label {
  position: absolute;
  bottom: 9px;
  background: #ffffffeb;
  color: #333;
  padding: 2px 7px;
  font-size: 12px;
  pointer-events: none;
}

.swipe-label.left {
  left: 7px;
}

.swipe-label.right {
  right: 7px;
}

.swipe-view {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 23px;
}

.view-switch {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: auto;
}

.view-switch button {
  font-size: 14.72px;
  color: #737373;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  padding: 3px 0;
}

.view-switch button[aria-pressed=true] {
  color: var(--blue-dark);
  border-bottom-color: var(--blue-dark);
}

.table-lead {
  font-size: 16px;
  text-align: center;
  margin: -7px 0 28px;
}

.table-lead strong {
  color: var(--blue-dark);
}

.table-scroll {
  overflow-x: auto;
  padding-bottom: 4px;
}

.results-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 1060px;
  font-size: 16px;
  line-height: 1.4;
  color: #1a1a1a;
  font-variant-numeric: tabular-nums;
  border: 1px solid #c8c8c8;
}

.results-table th {
  font-weight: 600;
}

.results-table thead {
  background: #2d5f8b;
  color: white;
}

.results-table thead th {
  padding: 9px 7px 3px;
  text-align: center;
  white-space: nowrap;
}

.results-table thead .subheader th {
  padding: 0 7px 10px;
  font-size: 16px;
}

.results-table thead th.group-divider {
  border-left: 1px solid #ffffff50;
}

.results-table .method-head {
  text-align: left;
  padding-left: 10px;
}

.results-table td {
  padding: 8px 9px;
  text-align: center;
  border-bottom: 1px solid #d8d8d8;
  white-space: nowrap;
}

.results-table td:first-child {
  text-align: left;
  min-width: 128px;
}

.results-table .lv-row td:first-child {
  font-weight: 700;
  color: #1f4566;
}

.results-table .paired-start td {
  border-top: 2px solid #a3bed5;
}

.results-table .lv-marker {
  color: #1f4566;
  font-weight: bold;
}

.results-table .no-lv {
  color: #888;
}

.results-table .rank-1 {
  background: #e0d1f0;
  color: #2d5f8b;
  font-weight: 700;
}

.results-table .rank-2 {
  background: #ebe2f6;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.results-table .rank-3 {
  background: #f5f1fb;
}

.table-caption {
  color: #666;
}

.table-caption strong {
  color: #444;
}

.ablation-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.ablation-title-row h3 {
  font-size: 24px;
}

.ablation-controls {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.ablation-controls button {
  font-size: 14.72px;
  padding: 3px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: #777;
}

.ablation-controls button[aria-pressed=true] {
  color: var(--blue-dark);
  border-color: var(--blue-dark);
}

.ablation-grid {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 17px;
  align-items: start;
}

.ablation-grid .image-label {
  font-size: 14.72px;
  min-height: 33px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer {
  background: #f5f5f5;
  padding: 31px 0;
  font-size: 14.72px;
  color: #777;
}

.js-only {
  display: none;
}

.js .js-only {
  display: flex;
}

dialog {
  padding: 0;
  border: 0;
  border-radius: 5px;
  max-width: min(1100px,94vw);
  max-height: 94vh;
  box-shadow: 0 16px 80px #0005;
  background: white;
  color: #333;
  overflow: auto;
}

dialog::backdrop {
  background: #131a22d9;
}

.lightbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 17px;
  border-bottom: 1px solid #ddd;
  font-size: 16px;
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  min-width: min(440px,82vw);
  object-fit: contain;
  margin: 0 auto;
  padding: 18px;
  background: #fff;
}

.lightbox-image.diagram {
  min-width: 0;
  width: min(1050px,90vw);
}

@media (min-width:1600px) {
  :root {
    --page: 1160px;
  }

  .publication-title {
    font-size: 46px;
  }

  .gallery-frame {
    max-width: 1000px;
  }
}

@media (max-width:1000px) {
  .publication-title {
    font-size: 38px;
  }

  .title-break {
    display: none;
  }

  .teaser-grid {
    gap: 20px;
  }

  .columns {
    gap: 25px;
  }

  .method-column+.method-column {
    padding-left: 25px;
  }

  .gallery-images {
    gap: 19px;
  }

  .gallery-topbar {
    flex-wrap: wrap;
  }

  .gallery-control {
    margin-left: auto;
  }

  .gallery-prompt {
    font-size: 21px;
  }
}

@media (max-width:640px) {
  body {
    font-size: 16px;
  }

  .container {
    width: calc(100% - 32px);
  }

  .section {
    padding: 39px 0;
  }

  .title.is-2 {
    font-size: 32px;
    margin-bottom: 23px;
    letter-spacing: -.35px;
  }

  .title.is-3 {
    font-size: 24px;
  }

  .publication-header .hero-body {
    padding: 31px 0 25px;
  }

  .publication-title {
    font-size: 29px;
    line-height: 1.22;
    letter-spacing: -.65px;
    margin-bottom: 15px;
  }

  .publication-venue {
    font-size: 19px;
    margin-bottom: 15px;
  }

  .publication-authors {
    font-size: 15px;
    line-height: 1.9;
  }

  .author-block {
    margin-inline: 2px;
  }

  .publication-affiliations {
    font-size: 13px;
    gap: 3px 10px;
    margin-top: 9px;
  }

  .corresponding-author {
    font-size: 13px;
  }

  .publication-links {
    gap: 6px;
    margin-top: 19px;
  }

  .publication-links .button {
    font-size: 16px;
    padding: 7px 12px;
    min-height: 35px;
  }

  .button svg {
    width: 14px;
    height: 14px;
  }

  .teaser-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: auto;
  }

  .teaser-item:not(:first-child) {
    display: none;
  }

  .teaser-pair {
    gap: 10px;
  }

  .teaser .hero-body {
    padding-bottom: 31px;
  }

  .teaser-summary {
    line-height: 1.65;
    margin-top: 19px;
  }

  .teaser-caption {
    font-size: 13px;
    margin-top: 10px;
  }

  .abstract-body {
    font-size: 17.28px;
    line-height: 1.8;
    text-align: left;
  }

  .method-intro p {
    font-size: 16px;
  }

  .method-columns {
    flex-direction: column;
    gap: 26px;
    margin-top: 28px;
    padding-top: 24px;
  }

  .method-column+.method-column {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid #e6e6e6;
    padding-top: 25px;
  }

  .method-column h3 {
    font-size: 24px;
  }

  .method-column p {
    font-size: 16px;
  }

  .equation-area {
    height: 110px;
    margin: 13px 0 7px;
  }

  .equation-area.assignment {
    height: 135px;
  }

  .reuse-note {
    padding-top: 18px;
    text-align: left;
  }

  .figure-caption {
    font-size: 14.72px;
    margin-top: 12px;
  }

  .details summary {
    font-size: 16px;
  }

  .details-body {
    font-size: 16px;
  }

  .section-intro {
    font-size: 16px;
  }

  .gallery-tabs {
    gap: 19px;
    margin-bottom: 24px;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
  }

  .tab-button {
    font-size: 16px;
    white-space: nowrap;
    padding-bottom: 10px;
  }

  .gallery-topbar {
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
  }

  .gallery-prompt {
    font-size: 21px;
  }

  .task-label {
    font-size: 12px;
  }

  .gallery-control {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
    font-size: 14.72px;
  }

  .gallery-control select {
    font-size: 16px;
    min-height: 35px;
  }

  .gallery-viewport {
    overflow-x: auto;
    margin-inline: -8px;
    padding: 9px 8px 11px;
  }

  .gallery-images {
    min-width: 604px;
    gap: 18px;
  }

  .gallery-images .image-label {
    font-size: 12px;
  }

  .comparison-card.ours {
    outline-offset: 5px;
  }

  .gallery-footer {
    gap: 15px;
    flex-direction: column;
    margin-top: 18px;
  }

  .thumbnails {
    gap: 8px;
  }

  .thumbnail {
    width: 33px;
    height: 33px;
  }

  .gallery-nav {
    gap: 16px;
  }

  .gallery-tools {
    flex-direction: column;
    gap: 10px;
  }

  .gallery-note {
    font-size: 14.72px;
  }

  .scroll-hint {
    display: block;
    font-size: 14.72px;
    color: #777;
    margin-bottom: 7px;
  }

  .view-switch {
    margin-left: 0;
    gap: 15px;
    width: 100%;
  }

  .view-switch button {
    font-size: 14.72px;
  }

  .swipe-view {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 370px;
    margin: auto;
  }

  .table-lead {
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 21px;
  }

  .results-table {
    font-size: 16px;
    min-width: 1020px;
  }

  .table-caption {
    line-height: 1.7;
  }

  .ablation-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .ablation-title-row h3 {
    font-size: 24px;
  }

  .ablation-controls {
    gap: 17px;
  }

  .ablation-controls button {
    font-size: 14.72px;
  }

  .ablation-scroll {
    overflow-x: auto;
    padding: 8px 6px 12px;
    margin-inline: -6px;
  }

  .ablation-grid {
    min-width: 735px;
    gap: 18px;
  }

  .ablation-grid .image-label {
    font-size: 14.72px;
  }

  .footer {
    padding: 26px 0;
    font-size: 14.72px;
  }

  .lightbox-image {
    padding: 12px;
    min-width: 0;
    width: 100%;
  }

  .lightbox-head {
    font-size: 16px;
  }
}

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

  *, *::before, *::after {
    transition: none !important;
  }
}

@media print {
  .paper-toc, .publication-links, .js-only, dialog, .image-button::after {
    display: none !important;
  }

  .section {
    padding: 20px 0;
  }

  .container {
    width: 100%;
  }

  .section.is-light {
    background: white;
  }

  .teaser-grid {
    grid-template-columns: repeat(3,1fr);
  }

  .teaser-item:not(:first-child) {
    display: block;
  }

  .gallery-images {
    min-width: 0;
  }

  .results-table {
    font-size: 9px;
    min-width: 0;
  }

  .results-table td {
    padding: 5px;
  }

  .table-scroll {
    overflow: visible;
  }

  .footer {
    background: white;
  }

  .publication-title {
    font-size: 30px;
  }

  .project-name {
    background: none;
    -webkit-text-fill-color: var(--blue-dark);
    color: var(--blue-dark);
  }

  .details:not([open]) {
    display: none;
  }
}

.compare-swipe:focus-within {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.publication-venue a {
  color: inherit;
}

.publication-venue a:hover {
  color: var(--blue-dark);
}

.paper-toc {
  gap: 9px;
  margin-top: 21px;
  font-size: 16px;
  font-weight: 600;
}

.paper-toc a {
  padding: 6px 15px;
  color: var(--blue-deep);
  border: 1px solid #dbe4eb;
  background: #f5f8fb;
  border-radius: 5px;
  line-height: 1.5;
}

.paper-toc a:hover, .paper-toc a[aria-current=true] {
  text-decoration: none;
  background: #e8f1f8;
  border-color: #b1c6d7;
}

.button.resource-unavailable, .button.resource-unavailable:hover {
  color: #e5e5e5;
  background: #686868;
  border-color: #686868;
  cursor: default;
  opacity: .72;
}

.teaser-grid {
  gap: 28px;
}

.teaser-triplet {
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 7px;
}

.teaser .image-label {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 7px;
  font-size: 11px;
  line-height: 1.3;
}

.teaser-result.ours .image-button {
  outline: 1px solid var(--mint);
  outline-offset: 2px;
}

.teaser-summary {
  margin-top: 22px;
}

.method-details {
  border: 1px solid #dce3e9;
  border-radius: 5px;
  margin-top: 19px;
  background: #fff;
}

.method-details summary {
  width: 100%;
  padding: 13px 17px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  background: #f7f9fb;
  color: var(--blue-deep);
}

.method-details[open] summary {
  border-bottom: 1px solid #dce3e9;
}

.method-details .details-body {
  padding: 23px 23px 25px;
}

.algorithm-figure {
  max-width: 860px;
  margin: 0 auto;
}

.calibration-heading {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 14px;
}

.calibration-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 28px;
}

.calibration-part h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 11px;
}

.calibration-part p {
  font-size: 16px;
  line-height: 1.7;
}

.calibration-part+.calibration-part {
  border-left: 1px solid #e1e6ea;
  padding-left: 28px;
}

.calibration-part .cost-context {
  font-size: 14.72px;
  color: #5c6975;
  line-height: 1.5;
  margin-bottom: 11px;
}

.calibration-costs {
  margin: 0;
  font-size: 14.72px;
  line-height: 1.5;
}

.calibration-costs>div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid #e7ebef;
}

.calibration-costs>div:last-child {
  border-bottom: 0;
}

.calibration-costs dd {
  margin: 0;
  color: #1f4566;
  font-weight: 600;
  white-space: nowrap;
}

.reuse-note {
  border: 0;
  margin: 19px auto 0;
  padding: 0;
  font-size: 16px;
}

.gallery-tools-minimal {
  border: 0;
  margin-top: 15px;
  padding-top: 0;
  justify-content: flex-end;
}

.gallery-note {
  font-size: 14.72px;
}

.result-table-block+.result-table-block {
  margin-top: 29px;
}

.table-title {
  font-size: 20px;
  line-height: 1.55;
  margin: 0 0 12px;
  color: #363636;
}

.table-title strong {
  color: #1f4566;
  font-weight: 700;
}

.table-caption {
  font-size: 14.72px;
  line-height: 1.65;
  margin-top: 12px;
}

.table-lead {
  margin-bottom: 25px;
}

.ablation-study>h3, .ablation-title-row h3 {
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0;
}

.ablation-study+.ablation-study {
  margin-top: 42px;
  padding-top: 34px;
  border-top: 1px solid #d9dfe3;
}

.ablation-study>h3 {
  margin-bottom: 17px;
}

.ablation-study .figure-caption {
  font-size: 14.72px;
  margin-top: 15px;
  text-align: center;
}

.ablation-text {
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 24px;
  max-width: 970px;
}

.ablation-study figure {
  margin: 0 auto;
}

.ablation-study .result-table-block {
  margin-top: 24px;
}

.roles-results-table {
  min-width: 720px;
}

.roles-results-table td:first-child {
  min-width: 190px;
}

.roles-results-table .role-combined td {
  background: #fffbea;
}

.roles-results-table .role-best {
  font-weight: 700;
  color: #2d5f8b;
}

.sensitivity-table {
  min-width: 1090px;
  font-size: 16px;
}

.sensitivity-table td {
  padding: 10px 6px;
}

.sensitivity-table .lv-row td {
  background: #edf5fa;
}

#ablations {
  padding-bottom: 57px;
}

@media (max-width:900px) {
  .teaser-grid {
    gap: 20px;
  }

  .teaser .image-label {
    font-size: 10px;
  }

  .calibration-columns {
    gap: 22px;
  }

  .calibration-part+.calibration-part {
    padding-left: 20px;
  }

  .calibration-costs {
    font-size: 14.72px;
  }

  .calibration-costs>div {
    gap: 8px;
  }
}

@media (max-width:640px) {
  .paper-toc {
    gap: 7px;
    font-size: 16px;
    margin-top: 17px;
  }

  .paper-toc a {
    padding: 6px 10px;
  }

  .teaser-grid {
    max-width: 420px;
  }

  .teaser-triplet {
    gap: 8px;
  }

  .teaser .image-label {
    font-size: 11px;
    min-height: 30px;
  }

  .teaser-summary {
    font-size: 16px;
  }

  .method-details summary {
    font-size: 16px;
    padding: 12px 13px;
  }

  .method-details .details-body {
    padding: 17px 13px 19px;
  }

  .calibration-heading {
    font-size: 20px;
  }

  .calibration-columns {
    grid-template-columns: 1fr;
    gap: 23px;
    margin-top: 24px;
  }

  .calibration-part+.calibration-part {
    padding: 20px 0 0;
    border-left: 0;
    border-top: 1px solid #e1e6ea;
  }

  .calibration-part h4 {
    font-size: 20px;
  }

  .calibration-part p {
    font-size: 16px;
  }

  .calibration-costs {
    font-size: 14.72px;
  }

  .algorithm-figure {
    min-width: 0;
  }

  .reuse-note {
    font-size: 16px;
    margin-top: 17px;
  }

  .swipe-view .reference-view {
    display: block;
  }

  .gallery-tools-minimal {
    align-items: center;
  }

  .table-title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .result-table-block+.result-table-block {
    margin-top: 23px;
  }

  .table-caption {
    font-size: 14.72px;
  }

  .ablation-study>h3, .ablation-title-row h3 {
    font-size: 24px;
    line-height: 1.35;
  }

  .ablation-study+.ablation-study {
    margin-top: 32px;
    padding-top: 28px;
  }

  .ablation-study .figure-caption {
    font-size: 14.72px;
  }

  .ablation-text {
    font-size: 16px;
    line-height: 1.75;
  }

  .roles-results-table {
    min-width: 650px;
  }

  #ablations {
    padding-bottom: 36px;
  }
}

.caption-copy {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.caption-art {
  display: block;
  width: auto;
  height: 24px;
  max-width: 100%;
  object-fit: contain;
}

.teaser-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  margin-top: 12px;
}

.teaser-caption .caption-art {
  height: 20.67px;
}

.image-label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-label .caption-art {
  height: 18.4px;
}

.teaser .image-label {
  height: 29px;
}

.gallery-prompt {
  position: relative;
}

.gallery-prompt .caption-art {
  height: 23.33px;
  max-width: 100%;
}

.all-methods-grid .image-label {
  min-height: 31px;
}

.all-methods-grid .image-label .caption-art {
  height: 17.6px;
}

.ablation-grid .image-label .caption-art {
  height: 17.6px;
}

.term-key {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px 9px;
  flex-wrap: wrap;
  line-height: 1.9 !important;
}

.term-key>span:not(.term-separator) {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  white-space: nowrap;
}

.term-key .inline-math {
  font-size: 1.4em;
  font-family: math,"Cambria Math","STIX Two Math",serif;
  vertical-align: -.12em;
  math-style: normal;
}

.term-separator {
  color: #8c959c;
}

.details-purpose {
  margin-left: 7px;
  color: #66798a;
  font-size: 14.72px;
  font-weight: 400;
  white-space: nowrap;
}

.allocation-table-wrap {
  overflow-x: auto;
  max-width: 960px;
  margin: 0 auto;
}

.allocation-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  border: 1px solid #cbd9e3;
  font-size: 16px;
  line-height: 1.4;
}

.allocation-backbone {
  width: 21%;
}

.allocation-masked {
  width: 57%;
}

.allocation-global {
  width: 22%;
}

.allocation-table thead {
  background: var(--blue-dark);
  color: #fff;
}

.allocation-table thead th {
  padding: 8px 12px;
  text-align: left;
  font-weight: 600;
  vertical-align: middle;
}

.allocation-table thead span {
  display: block;
  color: #e4edf6;
  font-size: 14.72px;
  font-weight: 400;
  margin-top: 1px;
}

.allocation-table tbody th, .allocation-table tbody td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #dce3e9;
  vertical-align: middle;
}

.allocation-table tbody th {
  background: #edf4f9;
  color: var(--blue-deep);
  font-weight: 600;
  white-space: nowrap;
}

.allocation-table small {
  display: block;
  font-size: 14.72px;
  font-weight: 400;
  color: #536575;
  margin-top: 3px;
}

.allocation-table code {
  font: 14.72px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;
  color: #2d5f8b;
  white-space: nowrap;
}

.allocation-table .global-indices code {
  color: var(--purple);
}

.index-group {
  display: inline-block;
  white-space: nowrap;
}

.index-divider {
  color: #8797a4;
  padding: 0 4px;
}

.block-kind {
  font-size: 14.72px;
  color: #536575;
}

@media (max-width:900px) {
  .teaser .image-label .caption-art {
    height: 12.67px;
  }

  .teaser-result.ours .image-label .caption-art {
    height: 24.67px;
  }

  .teaser-caption .caption-art {
    height: 18.67px;
  }

  .details-purpose {
    font-size: 14.72px;
  }
}

@media (max-width:640px) {
  .teaser-caption .caption-art {
    height: 20px;
  }

  .teaser .image-label .caption-art {
    height: 13.33px;
  }

  .teaser-result.ours .image-label .caption-art {
    height: 25.33px;
  }

  .gallery-prompt .caption-art {
    height: 22px;
  }

  .term-key {
    font-size: 14.72px !important;
    gap: 3px 6px;
  }

  .details-purpose {
    display: block;
    margin: 3px 0 0 17px;
    white-space: normal;
    line-height: 1.4;
  }

  .allocation-table {
    min-width: 680px;
    font-size: 16px;
  }

  .allocation-table thead th, .allocation-table tbody th, .allocation-table tbody td {
    padding: 8px 10px;
  }

  .allocation-table code {
    font-size: 14.72px;
  }
}

.source-label {
  font-family: Georgia, "Times New Roman", serif;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
}

.image-label.source-label {
  font-size: 14.72px;
}

.swipe-label.source-label {
  font-size: 12px;
}

.swipe-label .lv-name {
  color: #1f4566;
  font-weight: 800;
}

figure > figcaption, .figure-caption, .table-caption, .gallery-note, .scroll-hint, .lightbox-head p {
  text-align: center;
}

.result-subtitle {
  font-size: 20px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--blue-deep);
  text-align: center;
  margin: 0 0 15px;
}

.ablation-study .result-subtitle {
  font-size: 20px;
}

.metric-legend {
  max-width: 940px;
  margin: 13px auto 0;
}

.gallery-tabs {
  flex-wrap: wrap;
  gap: 12px 28px;
}

@media (max-width: 640px) {
  .result-subtitle {
    font-size: 20px;
    margin-bottom: 13px;
  }

  .ablation-study .result-subtitle {
    font-size: 20px;
  }

  .gallery-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
  }

  .tab-button {
    font-size: 16px;
    overflow-wrap: normal;
  }

  .gallery-note {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .js .gallery-tabs {
    display: grid;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .gallery-tabs .tab-button {
    min-width: 0;
    white-space: normal;
  }

  .tab-backbone, .tab-solver {
    display: block;
    white-space: normal;
  }

  .tab-solver {
    margin-top: 4px;
  }

  .tab-separator {
    display: none;
  }
}

.teaser .image-label {
  min-height: 38px;
}

.teaser .image-label .caption-art {
  height: 21px;
}

.teaser-result.ours .image-label .caption-art {
  height: 38px;
}

.teaser .image-label.source-label {
  font-size: 14px;
}

.resource-status {
  font-size: 12px;
  font-weight: 500;
  padding-left: 7px;
  border-left: 1px solid #aaa;
}

#injection-roles > h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
}

#injection-roles .ablation-text {
  margin-bottom: 22px;
}

@media (max-width: 640px) {
  .teaser .image-label {
    min-height: 35px;
  }

  .teaser .image-label .caption-art {
    height: 20px;
  }

  .teaser-result.ours .image-label .caption-art {
    height: 35px;
  }

  .teaser .image-label.source-label {
    font-size: 13px;
  }

  #injection-roles > h3 {
    font-size: 24px;
  }
}

.bibtex-section {
  border-top: 1px solid var(--line);
}

.bibtex-section .title {
  margin-bottom: 20px;
}

.bibtex-status {
  color: var(--blue-deep);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.bibtex-note {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  max-width: 620px;
  margin: auto;
}
