/* Main container to align the base and the script block */
.math-expression {
  display: inline-flex;      /* Use flexbox for easy vertical alignment */
  align-items: center;        /* Center the script block with the middle of the base text */
  vertical-align: middle;   /* Helps align the whole thing with surrounding text */
}

/* The container for our vertically stacked scripts */
.stacked-scripts {
  display: inline-flex;       /* We'll use flexbox here too */
  flex-direction: column;     /* This is the magic rule: it stacks children vertically! */
  text-align: left;           /* Ensure multi-character scripts align left */
  font-size: 0.75em;          /* Make scripts smaller, like in LaTeX */
  line-height: 1.2;           /* Adjust the space between the two scripts */
  margin-left: 0.1em;         /* Adds a tiny space after the closing brace '}' */
}

/* You don't need specific rules for these classes, but they are here for clarity */
.script-sup {
  /* The flex-direction handles the positioning */
}

.script-sub {
  /* The flex-direction handles the positioning */
}

/* --- Figure caption styling --- */
.caption-wrapper {
  max-width: 75ch;
  margin: 0.75rem auto 0;
  text-align: left !important;
  line-height: 1.5;
  font-size: 1.1rem;        /* 👈 smaller than body (≈ 14px if body is 16px) */
  color: #555;               /* softer gray for supporting tone */
}

.caption-wrapper p { margin: 0; }
.caption-wrapper em { font-style: italic; }
.caption-wrapper strong { font-weight: 600; }

.caption-wrapper strong {
  font-weight: 600;
}

.caption-wrapper em {
  font-style: italic;
}

.caption-wrapper sub {
  vertical-align: baseline;
  position: relative;
  font-style: italic;
  top: 0.3em;     /* raise subscripts a bit */
  font-size: 0.75em;  /* slightly larger than default (usually 0.6em) */
}

.caption-wrapper sup {
  vertical-align: baseline;
  position: relative;
  top: -0.3em;    /* lift superscripts upward */
  font-size: 0.75em;
}



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


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

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

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


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

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


.publication-title {
}

.publication-banner {
  max-height: parent;

}

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

.publication-header .hero-body {
}

.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 {
}

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

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

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

.publication-banner img {
}

.publication-authors {
  /*color: #4286f4;*/
}

.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%;
}

.publication-body img {
}

.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-panel {
  background: #f5f5f5;
  border-radius: 10px;
}

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

.interpolation-video-column {
}

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

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

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

/* ── Interactive Demo Preview ── */
.demo-preview-section {
  background: linear-gradient(135deg, #faf6f1 0%, #f3ece4 100%);
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.demo-preview-card {
  position: relative;
  display: block;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 4px 24px rgba(140, 110, 70, 0.12),
    0 1px 4px rgba(140, 110, 70, 0.08);
  transition: transform 0.35s cubic-bezier(.25,.8,.25,1),
              box-shadow 0.35s cubic-bezier(.25,.8,.25,1);
}

.demo-preview-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 12px 40px rgba(140, 110, 70, 0.22),
    0 2px 8px rgba(140, 110, 70, 0.12);
}

.demo-preview-card img {
  display: block;
  width: 100%;
  height: auto;
}

/* Gradient overlay that becomes visible on hover */
.demo-preview-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    180deg,
    rgba(60, 42, 20, 0) 0%,
    rgba(60, 42, 20, 0.55) 100%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}

.demo-preview-card:hover .demo-preview-overlay {
  opacity: 1;
}

.demo-preview-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.95);
  color: #6b4f2e;
  font-family: 'Google Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  transform: translateY(12px);
  transition: transform 0.35s cubic-bezier(.25,.8,.25,1);
}

.demo-preview-card:hover .demo-preview-cta {
  transform: translateY(0);
}

.demo-preview-cta .cta-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.demo-preview-card:hover .demo-preview-cta .cta-arrow {
  transform: translateX(4px);
}

/* Subtitle under the section heading */
.demo-subtitle {
  max-width: 600px;
  margin: 0.25rem auto 1.5rem;
  font-family: 'Noto Sans', sans-serif;
  font-size: 1.05rem;
  color: #7a6a57;
  line-height: 1.5;
}

/* Pulsing glow on the hero Demo button */
.demo-highlight {
  animation: demo-pulse 2.5s ease-in-out infinite;
}

@keyframes demo-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(180, 140, 80, 0.45); }
  50%      { box-shadow: 0 0 0 8px rgba(180, 140, 80, 0); }
}
