/* ---------- Base typography ---------- */

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

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

/* Buttons under title (Paper / arXiv / Code / etc.) */
.link-block a {
  margin-top: 5px;
  margin-bottom: 5px;
}

/* Nerfies small-caps helper (kept for compatibility) */
.dnerf {
  font-variant: small-caps;
}

/* ---------- Teaser / hero tweaks ---------- */

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

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

/* ---------- Publication header ---------- */

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

.publication-banner {
  max-height: parent;
}

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

.publication-header .hero-body {
}

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

/* ---------- Embedded video (if you add one) ---------- */

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

/* ---------- (Legacy) carousel / interpolation styles – safe to keep ---------- */

.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-image-wrapper {
  width: 100%;
}

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

/* ---------- Results section: tabs + before/after slider ---------- */

/* Only show the active task panel */
.task-panel {
  display: none;
  margin-top: 1.5rem;
}

.task-panel.is-active {
  display: block;
}

/* Before/after slider layout */
.ba-slider {
  position: relative;
  max-width: 100%;
  margin: 1.5rem auto 0 auto;
}

/* Base images */
.ba-img-before {
  display: block;
  width: 100%;
  height: auto;
}

/* Overlay (after) image container */
.ba-img-after-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

/* After image sits exactly on top of before */
.ba-img-after {
  display: block;
  width: 100%;
  height: auto;
}

/* Invisible range input spanning the image
   (we use it just for dragging) */
.ba-slider-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
}

/* Visible vertical handle */
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ffffff;
  border-left: 1px solid #333;
  border-right: 1px solid #333;
  pointer-events: none; /* clicks go to the hidden range input */
}

/* Little circle on the line */
.ba-handle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #333;
  transform: translate(-50%, -50%);
}

/* TL;DR inline label + text */
.tldr-line {
  font-size: 1.4rem;          /* was 1rem – increase this for bigger text */
  line-height: 1.7;
}

.tldr-inline .tldr-label {
  font-family: 'Google Sans', sans-serif;
  font-weight: 600;
  font-size: 1.5rem;       /* make the TL;DR label a bit larger */
  letter-spacing: 0.03em;
  margin-right: 0.6rem;
}