html {
  scroll-behavior: smooth;
}

body {
  color: #222;
  font-family: 'Noto Sans', sans-serif;
}

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

.publication-title,
.publication-authors,
.teaser {
  font-family: 'Google Sans', sans-serif;
}

.publication-title {
  line-height: 1.16;
}

.publication-authors {
  margin-top: 1rem;
}

.publication-authors a {
  color: hsl(204, 86%, 53%) !important;
}

.publication-authors a:hover {
  text-decoration: underline;
}

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

.affiliation {
  color: #555;
  margin-top: 0.35rem;
}

.publication-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin-top: 0.55rem;
}

.link-block .button {
  margin: 5px 0;
}

.is-placeholder {
  cursor: default;
  user-select: none;
}

.code-button {
  height: 3.15em;
}

.button-copy {
  align-items: flex-start;
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
  text-align: left;
}

.button-copy small {
  color: #d3d3d3;
  font-size: 0.62rem;
  margin-top: 0.22rem;
}

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

.teaser video {
  background: #111;
  border-radius: 8px;
  display: block;
  max-height: 72vh;
  object-fit: contain;
}

.publication-body {
  padding-bottom: 1rem;
}

.project-section {
  margin-bottom: 4.5rem;
}

.project-section:last-child {
  margin-bottom: 1.5rem;
}

.project-section > .title {
  margin-bottom: 1.5rem;
}

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

.publication-figure img {
  display: block;
  height: auto;
  margin: 0 auto;
  max-width: 100%;
}

.publication-figure figcaption {
  color: #4a4a4a;
  font-size: 0.96rem;
  line-height: 1.45;
  margin: 0.9rem auto 0;
  max-width: 780px;
}

.overview-figure {
  max-width: 830px;
}

.wide-figure {
  max-width: 1040px;
}

.experiment-plots {
  align-items: center;
  margin-top: 0.75rem;
}

.compact-figure {
  margin-top: 0;
}

.compact-figure figcaption {
  font-size: 0.9rem;
}

.experiment-heading {
  margin-bottom: 1rem !important;
  margin-top: 3.4rem;
}

.table-caption {
  color: #4a4a4a;
  font-size: 0.92rem;
  margin: 0 auto 0.75rem;
  max-width: 920px;
  text-align: center;
}

.results-table-container {
  margin-left: calc((100% - 1120px) / 2);
  margin-right: calc((100% - 1120px) / 2);
  max-width: 1120px;
}

.narrow-table-container {
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
}

.academic-table {
  border-bottom: 2px solid #363636;
  border-top: 2px solid #363636;
  font-size: 0.86rem;
  margin-bottom: 0.5rem !important;
  text-align: center;
  white-space: nowrap;
}

.academic-table th {
  border-bottom: 1.5px solid #555 !important;
  color: #222;
  font-size: 0.82rem;
  line-height: 1.25;
  text-align: center !important;
  vertical-align: bottom;
}

.academic-table td {
  border-color: #e6e6e6;
  text-align: center;
  vertical-align: middle;
}

.academic-table th:first-child,
.academic-table td:first-child {
  text-align: left !important;
}

.main-results-table {
  font-size: 0.75rem;
}

.main-results-table th {
  font-size: 0.72rem;
}

.ours-row {
  background: #f3f6fb;
}

.muted-label {
  color: #777;
  font-size: 0.78em;
}

.group-start td {
  border-top: 1.5px solid #aaa !important;
}

.gain {
  color: #008751;
  font-size: 0.82em;
}

.drop {
  color: #cb4335;
  font-size: 0.82em;
}

.experiment-summary {
  margin: 1.2rem auto 0;
  max-width: 880px;
}

.result-cards {
  margin-bottom: 1.4rem;
  margin-top: 1.8rem;
}

.result-card {
  align-items: center;
  background: #f7f7f7;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  min-height: 118px;
  padding: 1rem 0.75rem;
  text-align: center;
}

.result-value {
  color: #1f5fbf;
  font-family: 'Google Sans', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.2;
}

.result-label {
  color: #555;
  font-size: 0.84rem;
  line-height: 1.35;
  margin-top: 0.45rem;
}

.real-world-figure {
  margin-top: 2rem;
}

.citation-section {
  padding-top: 2rem;
}

.citation-section pre {
  border-radius: 6px;
  white-space: pre-wrap;
}

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

.footer .content {
  font-size: 0.9rem;
}

@media screen and (max-width: 768px) {
  .publication-header .hero-body {
    padding-top: 2.5rem;
  }

  .publication-title.title.is-1 {
    font-size: 2rem;
  }

  .project-section {
    margin-bottom: 3.5rem;
  }

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

  .publication-figure figcaption {
    font-size: 0.88rem;
  }

  .experiment-heading {
    margin-top: 2.75rem;
  }

  .results-table-container {
    margin-left: 0;
    margin-right: 0;
  }

  .academic-table {
    font-size: 0.75rem;
  }
}
