html {
  scroll-behavior: smooth;
}

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

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

/* Tighten heading bottom margins */
.title.is-3 {
  margin-bottom: 2rem !important;
}

.title.is-4 {
  margin-bottom: 1.0rem !important;
}

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

.footer {
  border-top: 1px solid #e8e8e8;
  padding: 2.5rem 1.5rem 2.5rem;
}

/* ── Publication links ── */
.link-block a {
  margin-top: 5px;
  margin-bottom: 5px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.link-block a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dnerf {
  font-variant: small-caps;
}

/* ── Teaser ── */
.teaser .hero-body {
  padding-top: 0;
  padding-bottom: 3rem;
}

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

.teaser .hero-body > img {
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  max-width: 85%;
  margin: 0 auto;
  display: block;
  margin-bottom: 1rem;
}

.teaser .subtitle {
  font-size: 1.05rem;
  max-width: 85%;
  margin-left: auto;
  margin-right: auto;
}

/* ── Publication header ── */
.publication-title {
  font-family: 'Google Sans', sans-serif;
}

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

.publication-venue {
  color: #555;
  width: fit-content;
  font-weight: bold;
}

.publication-awards {
  color: #ff3860;
  width: fit-content;
  font-weight: bolder;
}

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

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

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

/* ── Publication banner ── */
.publication-banner {
  max-height: parent;
}

.publication-banner video {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  object-fit: fit;
}

/* ── Publication video ── */
.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%;
}

/* ── Results carousel (legacy) ── */
.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;
}

/* ── Interpolation ── */
.interpolation-panel {
  background: #f5f5f5;
  border-radius: 10px;
}

.interpolation-panel .interpolation-image {
  width: 100%;
  border-radius: 5px;
}

.interpolation-panel .slider {
  margin: 0 !important;
}

#interpolation-image-wrapper {
  width: 100%;
}

#interpolation-image-wrapper img {
  border-radius: 5px;
}

/* ── Title gradient ── */
.title-gradient {
  background: linear-gradient(90deg, #1a91f0, #9b5de5, #f15bb5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Abstract accent ── */
.abstract-accent {
  border-left: 3px solid transparent;
  border-image: linear-gradient(180deg, #1a91f0, #9b5de5, #f15bb5) 1;
  padding-left: 1rem;
}

/* ── Method cards ── */
.method-card {
  background: #f8f9fc;
  border-radius: 14px;
  padding: 1.25rem 2rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  margin-bottom: 2rem;
}

.method-card .title.is-4 {
  margin-top: 0.25rem;
}

/* ── Qualitative Carousel ── */
.qual-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #fafafa;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  border: 1px solid #eaeaea;
}

.qual-carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  object-fit: scale-down;
  object-position: center;
}

.qual-carousel-track img {
  width: 100%;
  flex-shrink: 0;
  display: block;
}

.qual-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, opacity 0.25s ease, transform 0.25s ease;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}

.qual-carousel-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.qual-carousel-btn.prev { left: 12px; }
.qual-carousel-btn.next { right: 12px; }

.qual-carousel-counter {
  position: absolute;
  bottom: 12px;
  right: 16px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  z-index: 2;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.qual-carousel-btn.pause {
  top: auto;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.9rem;
}

.qual-carousel.show-controls .qual-carousel-btn {
  opacity: 1;
  pointer-events: auto;
}

.qual-carousel.show-controls .qual-carousel-counter {
  opacity: 1;
  pointer-events: auto;
}

.qual-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 14px 0;
}

.qual-carousel-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.qual-carousel-dots span.active {
  background: #1a91f0;
  transform: scale(1.25);
}

/* ── Quantitative Tabs ── */
.quant-card {
  background: #f8f9fc;
  border-radius: 14px;
  padding: 1.25rem 2rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  margin-bottom: 2rem;
}

.quant-card .title.is-4 {
  margin-top: 0.25rem;
}

.quant-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.quant-tab-btn {
  padding: 10px 22px;
  border: 2px solid #ddd;
  border-radius: 30px;
  background: #fff;
  color: #555;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
}

.quant-tab-btn:hover {
  border-color: #1a91f0;
  color: #1a91f0;
}

.quant-tab-btn.active {
  background: linear-gradient(135deg, #1a91f0, #9b5de5);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(26, 145, 240, 0.35);
  transform: translateY(-1px);
}

.quant-table-panel {
  position: relative;
  min-height: 100px;
  display: flex;
  justify-content: center;
}

.quant-table-panel img {
  width: 100%;
  max-width: 980px;
  height: auto;
  border-radius: 8px;
  display: none;
  margin: 0 auto;
}

#qa-beacon,
#qa-msqa {
  width: auto;
  max-width: min(100%, 680px);
}

.quant-table-panel img.active {
  display: block;
}

/* ── BibTeX ── */
.bibtex-wrapper {
  position: relative;
}

.bibtex-wrapper pre {
  background: #f5f5f7;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  padding-right: 3.5rem;
  border: 1px solid #e8e8e8;
  font-size: 0.88rem;
  overflow-x: auto;
}

.bibtex-copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  color: #555;
  transition: all 0.2s ease;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
}

.bibtex-copy-btn:hover {
  background: #f0f0f0;
  border-color: #bbb;
}

.bibtex-copy-btn.copied {
  background: #1a91f0;
  color: #fff;
  border-color: #1a91f0;
}
