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

.footer .icon-link {
  font-size: 25px;
  color: #000;
}

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

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

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

.publication-title strong {
  font-weight: 700;
}

.method-name {
  font-variant: small-caps;
  letter-spacing: 0.02em;
}

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

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

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

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

.publication-affiliations {
  color: #4a4a4a;
}

.publication-venue-badge {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: #f3e8ff;
  color: #5b21b6;
  font-weight: 600;
  font-size: 0.95rem;
}

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

.publication-links .button {
  margin: 0.25rem;
}

.publication-links .button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.section-alt {
  background-color: #f8fafc;
}

.section-figure {
  display: block;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  border-radius: 8px;
}

.figure-caption {
  color: #475569;
  font-size: 0.95rem;
  margin: 1rem auto 0;
  max-width: 1000px;
  text-align: left;
}

.figure-caption strong {
  color: #334155;
}

.section-lead {
  max-width: 900px;
  margin: 0 auto 2rem;
  text-align: center;
  color: #475569;
}

/* Side-by-side demonstration comparison */
.demo-block {
  max-width: 1200px;
  margin: 0 auto 2.5rem;
  padding: 1.75rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-align: center;
}

.demo-block:last-child {
  margin-bottom: 0;
}

.demo-block .demo-title {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.demo-block .demo-credit {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.compare-card {
  text-align: center;
}

.compare-card .compare-label {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  font-family: 'Google Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
}

.compare-card .compare-label.is-baseline {
  background: #fee2e2;
  color: #b91c1c;
}

.compare-card .compare-label.is-ours {
  background: #ede9fe;
  color: #5b21b6;
}

.compare-card video,
.compare-card img.compare-media {
  display: block;
  width: 100%;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.compare-card .compare-caption {
  margin-top: 0.6rem;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.45;
}

.compare-card .compare-caption strong {
  color: #1e293b;
}

@media screen and (max-width: 600px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }
  .demo-block {
    padding: 1.25rem 1rem;
  }
}

/* Contribution / step cards */
.contrib-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.contrib-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: left;
}

.contrib-card .contrib-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: #ede9fe;
  color: #5b21b6;
  font-size: 1.1rem;
  margin-bottom: 0.9rem;
}

.contrib-card h3 {
  font-family: 'Google Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1e293b;
}

.contrib-card p {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.55;
}

.contrib-card .eq {
  margin: 0.75rem 0 0.25rem;
  padding: 0.6rem 0.75rem;
  background: #f8fafc;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.95rem;
}

@media screen and (max-width: 1023px) {
  .contrib-grid {
    grid-template-columns: 1fr;
  }
}

/* Highlighted equation card */
.eq-block {
  max-width: 900px;
  margin: 1.5rem auto 0;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-align: center;
  overflow-x: auto;
}

mjx-container[jax="CHTML"][display="true"] {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.25rem;
}

.eq-block .eq-title {
  font-family: 'Google Sans', sans-serif;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.eq-block .eq-note {
  color: #64748b;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.eq-block .eq-note .term-task {
  color: #b91c1c;
  font-weight: 600;
}

.eq-block .eq-note .term-explore {
  color: #1d4ed8;
  font-weight: 600;
}

/* Results blocks */
.result-block {
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 1.75rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.result-block:last-child {
  margin-bottom: 0;
}

.result-block .result-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  text-align: center;
}

.result-block .result-text {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 1.25rem;
}

.result-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
}

.result-stat {
  min-width: 150px;
  flex: 1 1 150px;
  max-width: 220px;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-align: center;
}

.result-stat .stat-value {
  font-family: 'Google Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e293b;
}

.result-stat .stat-label {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.15rem;
}

/* Benchmark strip */
.bench-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin: 1.5rem auto 0;
}

.bench-card {
  text-align: center;
}

.bench-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.bench-card .bench-name {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #334155;
  font-weight: 600;
}

.bench-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.bench-pill {
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.85rem;
}

.bench-pill strong {
  color: #5b21b6;
}

@media screen and (max-width: 600px) {
  .bench-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .result-block {
    padding: 1.25rem 1rem;
  }
  .result-block .result-text {
    text-align: left;
  }
  .result-stat {
    flex: 1 1 120px;
    min-width: 120px;
    padding: 0.7rem 0.5rem;
  }
  .result-stat .stat-value {
    font-size: 1.2rem;
  }
}

@media screen and (max-width: 600px) {
  .eq-block {
    padding: 1rem 0.75rem;
    font-size: 0.85rem;
  }
  .contrib-card .eq {
    font-size: 0.85rem;
  }
}
