body {
  font-family: 'Noto Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.publication-header .hero-body {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.publication-title {
  font-family: 'Google Sans', 'Noto Sans', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

.publication-authors {
  font-family: 'Google Sans', 'Noto Sans', 'Inter', sans-serif;
  margin-bottom: 0.8rem;
}

.publication-authors sup {
  font-size: 0.75rem;
}

.publication-authors .corresponding-icon {
  margin-left: 0.14rem;
  color: #363636;
  font-size: 0.68rem;
  line-height: 0;
  vertical-align: super;
}

.publication-authors .corresponding-icon .svg-inline--fa {
  vertical-align: -0.08em;
}

.author-block {
  display: inline-block;
  margin: 0 0.15rem;
}

.publication-links {
  margin-top: 2rem;
}

.link-block {
  display: inline-block;
  margin: 0.25rem;
}

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

.button-svg {
  display: block;
  width: 1em;
  height: 1em;
}

.publication-links .ai {
  font-size: 1.18em;
  line-height: 1;
}

.teaser .hero-body {
  padding-top: 1rem;
  padding-bottom: 3rem;
}

.publication-image img,
.section img {
  border-radius: 4px;
}

.publication-image,
.publication-image img,
.result-figure-stack figure,
.result-figure-stack img {
  background: #fff;
}

.teaser .subtitle {
  margin-top: 1.25rem;
  font-size: 1.15rem;
  line-height: 1.55;
  text-align: left;
}

.hero.is-light {
  background-color: #f5f5f5;
}

.section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.content.has-text-justified {
  font-size: 1.05rem;
  line-height: 1.75;
}

.math-var,
.math-formula {
  font-family: 'Cambria Math', 'STIX Two Math', 'Latin Modern Math', 'Times New Roman', serif;
  font-style: italic;
  white-space: nowrap;
}

.math-var sub,
.math-formula sub {
  bottom: -0.2em;
  font-size: 0.72em;
}

.publication-image {
  margin-top: 1.5rem;
}

.caption {
  margin-top: 0.6rem;
  color: #666;
  font-size: 0.9rem;
}

.method-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.8rem;
  color: #444;
  font-family: 'Google Sans', 'Noto Sans', 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
}

.method-caption .caption-arrow {
  color: #3273dc;
  font-weight: 700;
}

.self-augmentation-figure,
.self-augmentation-figure img {
  background: #f5f5f5;
}

.example-tabs {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  margin-bottom: 1.2rem;
}

.example-tabs ul {
  display: inline-flex;
  flex: 0 0 auto;
  flex-grow: 0 !important;
  width: auto;
  gap: 0.25rem;
  border: 1px solid #dde1e7;
  border-radius: 999px;
  padding: 0.25rem;
  background: #f4f6f8;
}

.example-tabs li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  border-radius: 999px !important;
  min-width: 11.4rem;
  padding: 0.5rem 1rem;
  background: transparent;
  color: #555;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}

.example-tabs li a small {
  margin-top: 0.1rem;
  color: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
}

.example-tabs li.is-active a {
  background: #fff !important;
  color: #222 !important;
  box-shadow: 0 1px 5px rgb(31 41 55 / 0.15);
}

.example-viewer {
  position: relative;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.example-stage {
  position: relative;
}

.example-expanded-tabs {
  display: none;
}

.example-instruction {
  margin: 0.15rem 0 1rem;
  color: #222;
  font-family: 'Castoro', Georgia, serif;
  font-size: 1.65rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
}

.example-expand {
  position: absolute;
  top: 0.1rem;
  right: 0;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid #d8dce2;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.92);
  color: #333;
  cursor: pointer;
  box-shadow: 0 2px 8px rgb(31 41 55 / 0.1);
}

.example-expand:hover {
  background: #f7f8fa;
}

.example-pairs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.example-image-card {
  position: relative;
  height: 440px;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  user-select: none;
}

.example-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  transform-origin: var(--zoom-x, 50%) var(--zoom-y, 50%);
  transform: translate3d(var(--zoom-pan-x, 0px), var(--zoom-pan-y, 0px), 0) scale(var(--zoom-scale, 1));
  transition: transform 0.18s ease;
}

.example-image-card.is-dragging .example-image {
  transition: none;
}

.image-state-label {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 1;
  border-radius: 3px;
  padding: 0.25rem 0.55rem;
  background: rgb(0 0 0 / 0.62);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  pointer-events: none;
}

.example-toggle-row {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.example-toggle {
  min-width: 15.5rem;
  border-color: #3273dc;
  background: #3273dc;
  color: #fff;
}

.example-toggle:hover {
  border-color: #3273dc;
  background: #3273dc;
  color: #fff;
}

.example-toggle.is-edited {
  border-color: #3273dc;
  background: #3273dc;
  color: #fff;
}

.example-toggle.is-edited:hover {
  border-color: #3273dc;
  background: #3273dc;
  color: #fff;
}

.example-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 38px;
  height: 56px;
  border: 1px solid #d6d6d6;
  border-radius: 4px;
  background: rgb(255 255 255 / 0.94);
  color: #363636;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.12);
}

.example-arrow:hover {
  background: #f5f5f5;
}

.example-arrow-left {
  left: -52px;
}

.example-arrow-right {
  right: -52px;
}

.example-stage.is-expanded {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 4rem 2rem;
  background: #fff;
  overflow: auto;
}

.example-stage.is-expanded .example-expanded-tabs {
  position: absolute;
  top: 1.1rem;
  left: 50%;
  z-index: 6;
  display: flex;
  transform: translateX(-50%);
}

.example-stage.is-expanded .example-viewer {
  width: min(1280px, 100%);
}

.example-stage.is-expanded .example-image-card,
.qualitative-browser.is-expanded .example-image-card {
  height: auto;
  aspect-ratio: 1 / 1;
  cursor: zoom-in;
  touch-action: none;
}

.example-stage.is-expanded .example-image-card.is-zoomed,
.qualitative-browser.is-expanded .example-image-card.is-zoomed {
  cursor: grab;
}

.example-stage.is-expanded .example-image-card.is-dragging,
.qualitative-browser.is-expanded .example-image-card.is-dragging {
  cursor: grabbing;
}

.example-stage.is-expanded .example-arrow-left {
  left: 1.25rem;
}

.example-stage.is-expanded .example-arrow-right {
  right: 1.25rem;
}

.example-stage.is-expanded .example-expand {
  top: 0.2rem;
  right: 0.2rem;
}

body.example-expanded {
  overflow: hidden;
}

.dataset-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 0;
}

.dataset-stat {
  --stat-color: #366bd6;
  position: relative;
  overflow: hidden;
  border: 1px solid #e0e4eb;
  border-radius: 8px;
  padding: 1.25rem 0.9rem;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  box-shadow: 0 8px 22px rgb(31 41 55 / 0.07);
  text-align: center;
}

.dataset-stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--stat-color);
}

.dataset-stat.is-sim-pairs {
  --stat-color: #2f6fdd;
}

.dataset-stat.is-pro-pairs {
  --stat-color: #7a58c7;
}

.dataset-stat.is-sim-ops {
  --stat-color: #2f6fdd;
}

.dataset-stat.is-pro-ops {
  --stat-color: #7a58c7;
}

.dataset-stat strong {
  display: block;
  color: var(--stat-color);
  font-size: 2rem;
  line-height: 1.1;
}

.dataset-stat span {
  display: block;
  margin-top: 0.35rem;
  color: #666;
  font-size: 0.88rem;
  line-height: 1.35;
}

.result-table-block {
  margin-top: 1.25rem;
}

.paper-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  border-top: 2px solid #222;
  border-bottom: 2px solid #222;
  background: #fff;
  color: #333;
  font-size: 0.88rem;
}

.paper-table caption {
  caption-side: top;
  padding: 0 0 0.55rem;
  color: #333;
  font-weight: 700;
  text-align: center;
}

.paper-table th,
.paper-table td {
  border: 0;
  padding: 0.55rem 0.65rem;
  text-align: center;
  white-space: nowrap;
}

.paper-table thead tr {
  border-bottom: 1.5px solid #222;
}

.paper-table .group-start td,
.paper-table .group-start th {
  border-top: 1px solid #777;
}

.paper-table th:first-child,
.paper-table th:nth-child(2),
.paper-table .category-cell,
.paper-table .model-cell {
  text-align: left;
}

.paper-table td:not(.category-cell):not(.model-cell),
.paper-table th:not(:first-child):not(:nth-child(2)) {
  text-align: center !important;
}

.paper-table .category-cell {
  color: #333;
  font-weight: 400;
  vertical-align: middle;
}

.ours-row td {
  background: #fff;
}

.qualitative-title {
  margin-top: 1.5rem;
}

.qualitative-browser {
  position: relative;
  margin-top: 1.25rem;
}

.qualitative-tabs {
  margin-bottom: 1.2rem !important;
}

.qualitative-viewer {
  position: relative;
  min-height: 420px;
}

.qualitative-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.qualitative-select-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #555;
  font-size: 0.9rem;
  font-weight: 600;
}

.qualitative-select {
  min-width: 13rem;
  border: 1px solid #d8dce2;
  border-radius: 4px;
  padding: 0.42rem 2rem 0.42rem 0.65rem;
  background: #fff;
  color: #222;
  font: inherit;
}

.qualitative-heading-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  margin: 0.25rem 0 0.9rem;
}

.qualitative-heading-row .qualitative-instruction {
  margin: 0;
  padding: 0 3.2rem;
  font-size: 1.35rem;
}

.qualitative-heading-row .qualitative-expand {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.qualitative-pairs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.qualitative-pairs .example-image-card {
  height: 360px;
}

.qualitative-browser.is-expanded {
  position: fixed;
  inset: 0;
  z-index: 40;
  margin-top: 0;
  padding: 2rem 4rem;
  background: #fff;
  overflow: auto;
}

.qualitative-browser.is-expanded .qualitative-viewer {
  width: min(1440px, 100%);
  margin: 0 auto;
}

.qualitative-browser.is-expanded .qualitative-pairs .example-image-card {
  height: auto;
  aspect-ratio: 1 / 1;
}

.qualitative-browser.is-expanded .qualitative-nav {
  top: 50%;
}

.qualitative-browser.is-expanded .qualitative-nav-left {
  left: 1.25rem;
}

.qualitative-browser.is-expanded .qualitative-nav-right {
  right: 1.25rem;
}

.qualitative-browser.is-expanded .qualitative-heading-row .qualitative-expand {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

body.qualitative-expanded {
  overflow: hidden;
}

.qualitative-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 34px;
  height: 50px;
  border: 1px solid #d6d6d6;
  border-radius: 4px;
  background: rgb(255 255 255 / 0.94);
  color: #363636;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.12);
}

.qualitative-nav:hover {
  background: #f5f5f5;
}

.qualitative-nav-left {
  left: -48px;
}

.qualitative-nav-right {
  right: -48px;
}

.result-figure-stack figure {
  margin: 1.25rem 0 0;
}

.result-figure-stack img {
  width: 100%;
  height: auto;
}

.bibtex-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.copy-bibtex-btn {
  min-width: 6.2rem;
}

.copy-bibtex-btn.copied {
  background: #e9e9e9;
}

pre {
  border-radius: 4px;
  background: #f5f5f5;
  color: #333;
  font-size: 0.9rem;
  overflow-x: auto;
}

.footer {
  padding: 2rem 1.5rem;
}

@media screen and (max-width: 768px) {
  .publication-title {
    font-size: 2.1rem !important;
  }

  #examples .container {
    width: 100%;
    max-width: 100%;
  }

  #examples .hero-body {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .example-tabs a {
    min-width: 9.8rem;
    padding-left: 0.6rem;
    padding-right: 0.6rem;
    font-size: 0.78rem;
  }

  .example-tabs li a small {
    font-size: 0.66rem;
  }

  .example-instruction {
    font-size: 1.35rem;
  }

  .example-pairs {
    grid-template-columns: 1fr;
  }

  .example-image-card {
    height: 360px;
  }

  .example-arrow-left {
    left: 0.4rem;
  }

  .example-arrow-right {
    right: 0.4rem;
  }

  .example-arrow {
    top: 38%;
  }

  .example-stage.is-expanded {
    align-items: flex-start;
    padding: 7.25rem 1rem 2rem;
  }

  .example-stage.is-expanded .example-pairs {
    grid-template-columns: 1fr;
  }

  .example-stage.is-expanded .example-image-card {
    height: min(42vh, 420px);
  }

  .qualitative-browser.is-expanded {
    padding: 1.25rem 1rem 2rem;
  }

  .qualitative-browser.is-expanded .qualitative-pairs {
    grid-template-columns: 1fr;
  }

  .qualitative-browser.is-expanded .qualitative-pairs .example-image-card {
    height: min(34vh, 360px);
  }

  .example-stage.is-expanded .example-arrow {
    top: 50%;
  }

  .example-stage.is-expanded .example-arrow-left {
    left: 0.35rem;
  }

  .example-stage.is-expanded .example-arrow-right {
    right: 0.35rem;
  }

  .dataset-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qualitative-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .qualitative-select-label {
    justify-content: space-between;
  }

  .qualitative-select {
    min-width: 0;
    width: 100%;
  }

  .qualitative-pairs {
    grid-template-columns: 1fr;
  }

  .qualitative-pairs .example-image-card {
    height: 360px;
  }

  .qualitative-nav-left {
    left: 0.35rem;
  }

  .qualitative-nav-right {
    right: 0.35rem;
  }

  .qualitative-nav {
    top: 56%;
  }

  .qualitative-browser.is-expanded .qualitative-nav-left {
    left: 0.35rem;
  }

  .qualitative-browser.is-expanded .qualitative-nav-right {
    right: 0.35rem;
  }

  #results .columns {
    display: block;
    margin-left: 0;
    margin-right: 0;
    min-width: 0;
    width: 100%;
  }

  #results .column {
    padding-left: 0;
    padding-right: 0;
    min-width: 0;
    width: 100%;
  }

  #results .table-container {
    max-width: 100%;
    overflow-x: auto;
  }

  #results .container,
  #bibtex .container {
    min-width: 0;
    max-width: 100%;
  }

  #results .paper-table {
    min-width: 760px;
  }

  #results img {
    max-width: 100%;
    height: auto;
  }

  #bibtex pre {
    max-width: 100%;
    overflow-x: auto;
  }

  #bibtex code {
    display: block;
    min-width: 100%;
    width: max-content;
  }
}

@media screen and (max-width: 480px) {
  .example-image-card {
    height: 300px;
  }

  .dataset-stats {
    grid-template-columns: 1fr;
  }
}
