:root {
  --ink: #363636;
  --muted: #626262;
  --line: #e8e8e8;
  --paper: #fff;
  --soft: #f5f5f5;
  --accent: #3273dc;
  --gold: #b37500;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.publication-nav {
  min-height: 3.25rem;
  border-bottom: 1px solid #eee;
  box-shadow: none;
}

.publication-nav .container {
  width: min(calc(100% - 32px), 1120px);
  max-width: 1120px;
}

.nav-brand,
.publication-nav .navbar-item {
  color: #555;
  font-size: 14px;
}

.nav-brand {
  font-weight: 700;
}

.publication-nav .navbar-item:hover {
  color: #222;
  background: #f5f5f5;
}

.publication-hero {
  background: var(--paper);
}

.publication-hero .hero-body {
  padding: 4.25rem 1.5rem 2rem;
}

.publication-venue {
  margin: 0 0 1.15rem;
  color: #555;
  font-size: 14px;
  font-weight: 700;
}

.publication-title,
.section .title {
  color: var(--ink);
  font-family: "Google Sans", "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

.publication-title {
  max-width: 1120px;
  margin: 0 auto;
  font-size: clamp(2.5rem, 4.4vw, 3.35rem);
  line-height: 1.12;
  white-space: nowrap;
}

.publication-deck {
  max-width: 820px;
  margin: 1.15rem auto 0 !important;
  color: #555;
  font-size: 1.3rem;
}

.publication-authors {
  margin-top: 1rem;
  color: #555;
  font-size: 16px;
}

.author-block {
  display: inline-block;
}

.publication-authors sup,
.publication-affiliations sup {
  font-size: .7em;
}

.publication-affiliations {
  margin-top: .35rem;
  color: #777;
  font-size: 14px;
}

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

.publication-links .button {
  margin: .25rem;
  border-radius: 5px;
  font-weight: 600;
}

.publication-links .button img {
  width: 17px;
  height: 17px;
}

.publication-links .button small {
  margin-left: .45rem;
  font-size: 10px;
  text-transform: uppercase;
}

.teaser-section {
  padding: 0;
  border-top: 0;
}

.teaser-container {
  width: 100%;
  max-width: none !important;
  overflow: hidden;
}

.section .teaser-container {
  width: 100%;
  max-width: none;
}

.publication-figure {
  margin: 0 auto;
  text-align: center;
}

.publication-figure img {
  display: block;
  width: 100%;
  margin: 0 auto;
  border: 1px solid #ddd;
  border-radius: 10px;
}

.publication-figure figcaption {
  max-width: 850px;
  margin: 1rem auto 0;
  color: #666;
  font-size: 15px;
}

.teaser-section .publication-figure img {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  border: 0;
  border-radius: 0;
}

.section {
  padding: 5rem 1.5rem;
  border-top: 1px solid #eee;
}

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

.section .container {
  width: min(100%, 1120px);
  max-width: 1120px;
}

.section .teaser-container {
  width: 100%;
  max-width: none;
}

.section.teaser-section {
  padding: 0;
  border-top: 0;
}

.section .title.is-3 {
  margin-bottom: 1rem;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.2;
}

.section-lead {
  max-width: 820px;
  margin: 0 auto;
  color: #666;
  font-size: 18px;
}

.content {
  color: #555;
}

.content p {
  margin-bottom: 1rem;
}

.project-stats {
  margin-top: 3rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
}

.project-stats .column {
  padding: 1.2rem 1rem;
  border-left: 1px solid #ddd;
  text-align: center;
}

.project-stats .column:first-child {
  border-left: 0;
}

.project-stats strong {
  display: block;
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
}

.project-stats span {
  display: block;
  margin-top: .45rem;
  color: #777;
  font-size: 14px;
}

.method-tabs,
.feature-tabs {
  margin: 2.25rem 0 1.5rem;
}

.method-tabs ul,
.feature-tabs ul {
  border-bottom: 0;
}

.method-tabs li a,
.feature-tabs li a {
  border-color: #ddd;
  color: #555;
  font-size: 14px;
}

.method-tabs li.is-active a,
.feature-tabs li.is-active a {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.method-tabs li a span {
  color: var(--accent);
  font-weight: 700;
}

.method-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  margin-top: 1rem;
}

.method-panel .publication-figure img {
  border: 0;
  border-radius: 0;
}

.method-caption {
  max-width: 760px;
  margin: 0 auto;
}

.method-caption .publication-venue {
  margin-bottom: .7rem;
}

.method-caption .title {
  margin-bottom: .8rem;
  font-size: 1.65rem;
}

.method-caption p:not(.publication-venue) {
  color: #666;
}

.result-item.box {
  height: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: none;
}

.result-item .title.is-5 {
  font-size: 1.2rem;
}

.feature-grid {
  margin-top: 1.75rem;
}

.feature-sample {
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: none;
}

.feature-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
}

.feature-pair span {
  display: block;
  margin-bottom: .35rem;
  color: #777;
  font-size: 12px;
  text-transform: uppercase;
}

.feature-pair img {
  width: 100%;
}

.similarity-figure {
  width: 100%;
  max-width: 1120px;
  margin-top: 2rem;
}

.similarity-figure img {
  background: var(--soft);
}

.result-grid {
  margin-top: 2.5rem;
}

.result-grid > .column {
  padding: .5rem;
}

.result-item {
  padding: 1.25rem;
}

.result-index {
  color: #777;
  font-family: ui-monospace, monospace;
  font-size: 13px;
}

.result-item .title {
  margin-top: 1rem;
  margin-bottom: .2rem;
}

.result-item > p {
  color: #888;
  font-size: 14px;
}

.chart-frame {
  height: 230px;
  margin-top: 1.15rem;
  padding: .3rem;
  border: 1px solid #d9e0e8;
  border-radius: 7px;
  background: #fbfcfe;
}

.chart-frame canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.chart-summary {
  margin-top: .85rem;
  color: #777;
  font-size: 13px;
  line-height: 1.5;
}

.chart-summary strong {
  color: var(--accent);
}

.chart-method-ours {
  color: #2458ad;
  font-weight: 700;
}

.results-note {
  color: #888;
  font-size: 13px;
}

.bibtex-wrap {
  position: relative;
  max-width: 820px;
  margin: 2rem auto 0;
  text-align: left;
}

.bibtex-wrap pre {
  overflow-x: auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #f7f7f7;
  color: #444;
  font-size: 13px;
  line-height: 1.65;
}

.copy-button {
  position: absolute;
  z-index: 2;
  top: .7rem;
  right: .7rem;
  border-radius: 5px;
}

.copy-button img {
  width: 16px;
  height: 16px;
}

.footer {
  padding: 2rem 1.5rem;
  border-top: 1px solid #eee;
  background: #fff;
}

.footer p {
  color: #777;
  font-size: 13px;
}

@media (max-width: 720px) {
  .publication-nav .navbar-brand {
    max-width: 240px;
  }

  .publication-nav .navbar-burger {
    display: block;
  }

  .publication-nav .navbar-menu.is-active {
    display: block;
  }

  .publication-nav .navbar-menu {
    display: none;
  }

  .publication-nav .navbar-end {
    padding: .4rem 0 .7rem;
  }

  .publication-nav .navbar-item {
    padding: .55rem .75rem;
  }

  .publication-hero .hero-body {
    padding: 3.25rem 1rem 1.5rem;
  }

  .publication-title {
    font-size: 2.55rem;
    white-space: normal;
  }

  .teaser-container {
    width: min(calc(100% - 32px), 1120px);
    max-width: 1120px !important;
  }

  .section .teaser-container {
    width: 100%;
    max-width: none;
  }

  .teaser-section .publication-figure img {
    width: 100%;
    margin-left: 0;
  }

  .section.teaser-section {
    padding: 0;
  }

  .publication-deck {
    font-size: 1.05rem;
  }

  .publication-authors {
    font-size: 14px;
  }

  .publication-affiliations {
    font-size: 12px;
    line-height: 1.45;
  }

  .section {
    padding: 3.7rem 1rem;
  }

  .section .title.is-3 {
    font-size: 1.8rem;
  }

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

  .project-stats .column {
    border-left: 0;
    border-top: 1px solid #ddd;
  }

  .project-stats .column:nth-child(-n + 2) {
    border-top: 0;
  }

  .method-tabs ul,
  .feature-tabs ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .method-tabs li a,
  .feature-tabs li a {
    font-size: 12px;
  }

  .feature-grid {
    display: block;
  }

  .feature-sample + .feature-sample {
    margin-top: 1rem;
  }

  .chart-frame {
    height: 215px;
  }

  .bibtex-wrap pre {
    font-size: 12px;
  }
}

@media (max-width: 900px) and (min-width: 721px) {
  .publication-title {
    white-space: normal;
  }
}
