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

h1, h2, h3, h4, h5, h6,
.title, .subtitle {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
}

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

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

.publication-authors a {
  color: #3273dc;
  text-decoration: none;
}

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

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

.publication-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.publication-links .button {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
}

.publication-links .button[disabled] {
  opacity: 0.55;
  pointer-events: none;
}

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

.link-block a {
  margin-top: 5px;
  margin-bottom: 5px;
}

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

.publication-video {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
  border-radius: 10px !important;
}

.publication-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Gallery carousel */
.results-carousel {
  overflow: hidden;
}

.results-carousel .item {
  margin: 5px;
  overflow: hidden;
  border: 1px solid #bbb;
  border-radius: 10px;
  padding: 0;
  font-size: 0;
}

.results-carousel video {
  margin: 0;
}


/* Gallery items */
.gallery-item video {
  border-radius: 6px;
  width: 100%;
}

.gallery-item {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 8px;
  overflow: hidden;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* Cards */
.card {
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s ease;
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* Comparison tabs */
#comparison-tabs .tabs ul {
  border-bottom: none;
}

#comparison-tabs li a {
  font-weight: 500;
  font-size: 0.95rem;
}

.comparison-panel {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* TOC navigation */
.toc-nav .tag {
  font-weight: 500;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.toc-nav .tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Section spacing */
.section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Video styling */
video {
  border-radius: 6px;
  background: #f0f0f0;
}

/* Alternating section backgrounds */
.has-background-light {
  background-color: #f8f9fa !important;
}

/* Footer */
.footer {
  background-color: #f8f9fa;
  border-top: 1px solid #e9ecef;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .publication-title {
    font-size: 1.5rem !important;
  }

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

  .toc-nav .tag {
    font-size: 0.7rem;
  }
}

/* Image styling */
figure img, .content img {
  background: #f0f0f0;
}

/* Figcaption styling */
figcaption {
  font-family: 'Noto Sans', sans-serif;
}

/* Comparison input strip — small thumbnails in a row */
.comp-input-strip {
  display: flex;
  gap: 4px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.comp-input-strip img {
  flex: 1;
  min-width: 0;
  border-radius: 4px;
  border: 1px solid #dee2e6;
}

/* Comparison 2x2 grid */
.comp-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.comp-cell {
  margin: 0;
}

.comp-cell img {
  width: 100%;
  border-radius: 5px;
  border: 2px solid #dee2e6;
  display: block;
}

.comp-cell figcaption {
  text-align: center;
  font-size: 0.8rem;
  margin-top: 0.2rem;
  color: #555;
}

.comp-img-gt img {
  border-color: #48c774;
}

.comp-img-ours img {
  border-color: #3273dc;
}

/* Ablation section */
.ablation-input-row .column {
  flex: 1 1 0;
  min-width: 0;
}

.ablation-input-grid {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

.ablation-input-left {
  flex: 2;
  min-width: 0;
}

.ablation-input-right {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.ablation-input-right img {
  width: 100%;
  border-radius: 4px;
}

.ablation-input {
  width: 100%;
  border-radius: 4px;
  border: 1px solid #dee2e6;
}

.ablation-gt {
  border: 2px solid #48c774;
}

.ablation-cell {
  position: relative;
}

.ablation-cell img {
  width: 100%;
  border-radius: 6px;
  border: 2px solid #dee2e6;
}

.ablation-cell figcaption {
  text-align: center;
  font-size: 0.85rem;
  margin-top: 0.3rem;
  color: #555;
}

.ablation-ours img {
  border: 2px solid #3273dc;
}

.ablation-ours figcaption {
  color: #3273dc;
}
