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-banner {
  max-height: parent;

}

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


.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-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 {
  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-panel .slider {
  margin: 0 !important;
}

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

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

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



:root {
  --accent: #0b6efd;
  --muted: #6b7280;
  --rule: #d1d5db;
  --border: #111827;
}

.h3-with-tag {
  margin: 2.5rem 0 1.5rem 0;

  .tag {
    margin-right: 0.6rem;
    vertical-align: middle;
  }
}

.title.is-5.h4-rail-sm {
  margin: 2.5rem 0 1.5rem 0;
  border-left: 3px solid currentColor;
  padding-left: 0.7rem;
}

.table-wrap {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  container-type: inline-size;

  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;

  padding-inline: 25px;

  &:focus-within {
    outline: 2px solid var(--accent, #0b6efd);
    outline-offset: 2px;
  }

  table.booktabs {
    margin: 0;
    width: 100%;

    caption {
      font-weight: 700;
      letter-spacing: 0.2px;
      margin: 10px;
    }

    thead th {
      position: sticky;
      top: 0;
      background: var(--surface, #fff);
      z-index: 2;
    }

    th {

      &:first-child,
      &.rowname {
        position: sticky;
        left: 0;
        background: var(--surface, #fff);
        z-index: 1;
        box-shadow: 1px 0 0 0 var(--rule, #e5e7eb);
      }
    }

    th,
    td {
      padding: 7px;
      vertical-align: middle;
    }

    tr {
      &:first-child {
        th {
          border-top: 2px solid var(--border);
          border-bottom: 1px solid var(--rule);
          font-size: 15px;
        }
      }
    }

    th:first-child,
    td.rowname {
      font-weight: 600;
    }

    .num {
      text-align: right;
      font-variant-numeric: tabular-nums;
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", "Noto Sans Mono", monospace;
    }

    tbody {
      border-bottom: 2px solid var(--border);

    }

    td.strong {
      color: var(--accent);
      background: rgba(11, 110, 253, 0.06);
      padding: 4px 8px;
      font-weight: 700;
    }
  }
}


@container (max-width: 520px) {
  .table-wrap {
    /* no horizontal scrollbar in card layout */
    overflow-x: hidden;
    /* breathing room since table margin is removed */
    padding-inline: 12px;

    table {
      &.booktabs {
        /* was 25px in wide mode */
        margin: 0;
        min-width: 0;
        width: 100%;

        thead {
          /* Hide column headers in card mode */
          position: absolute;
          clip: rect(0 0 0 0);
          width: 1px;
          height: 1px;
          margin: -1px;
          overflow: hidden;
          padding: 0;
          border: 0;
        }

        tbody,
        tr,
        td,
        th {
          display: block;
          width: 100%;
        }

        tbody {
          border-bottom-color: transparent;
        }

        tr {
          border: 1px solid var(--rule, #e5e7eb);
          border-radius: 10px;
          padding: 10px 12px;
          margin-block: 12px;
          background: var(--card-bg, #fff);
        }

        /* Row title first */
        td.rowname,
        th[scope="row"] {
          font-weight: 700;
          margin-bottom: 6px;
        }

        /* Data cells show header label */
        td:not(.rowname) {
          display: grid;
          grid-template-columns: 1fr auto;
          align-items: baseline;
          gap: 8px;
          padding: 6px 6px;
          border-top: 1px dashed var(--rule, #e5e7eb);
        }

        td:not(.rowname)::before {
          /* Uses data-label injected by JS */
          content: attr(data-label);
          font-weight: 600;
          opacity: 0.8;
          text-align: left;
          /* Keep monospaced numbers for values on the right */
        }

        td.num {
          text-align: right;
        }

        td.strong {
          /* Keep the emphasis look in card mode */
          background: rgba(11, 110, 253, 0.06);
          padding: 6px 6px;
          border-radius: 6px;
          /* box-shadow: inset 0 0 0 9999px rgba(11, 110, 253, 0.06); */
        }
      }
    }
  }
}


/*
 * Carousel
 */
/* Carousel root */
.carousel {
  position: relative;

  /* Tunable variables */
  --carousel-peek: 0.75rem;
  --slide-min: 220px;
  --slide-max: 460px;

  /* Square slide size used for both width and height */
  --slide-size: min(max(var(--slide-min), calc(100% - var(--carousel-peek) * 2)),
      var(--slide-max));

  /* Edge space so the first or last slide can be centered */
  --edge-inset: calc((100% - var(--slide-size)) / 2);
}

/* Track: each slide is a square tile and never exceeds the container */
.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--slide-size);
  gap: 0.75rem;

  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;

  padding-inline: calc(var(--edge-inset) + var(--carousel-peek));
  margin: 0;
  list-style: none;
  box-sizing: border-box;

  scroll-padding-inline: var(--edge-inset);
}

/* Paste these overrides after your current carousel CSS */

/* Smaller square tiles for carousels marked as is-compact */
.carousel.is-compact {
  /* Less side peek, smaller tiles */
  --carousel-peek: 0.5rem;
  --slide-min: 140px;
  /* lower bound */
  --slide-max: 270px;
  /* upper bound */
}

/* Even smaller preset (optional) */
.carousel.is-tiny {
  --carousel-peek: 0.5rem;
  --slide-min: 120px;
  --slide-max: 220px;
}

/* Keep captions compact inside small cards (optional) */
.carousel.is-compact .card-content,
.carousel.is-tiny .card-content {
  padding: 0.5rem 0.75rem;
}

.carousel.is-compact .subtitle.is-6,
.carousel.is-tiny .subtitle.is-6 {
  font-size: 0.875rem;
}

/* Hide scrollbar on WebKit */
.carousel-track::-webkit-scrollbar {
  display: none;
}

/* Slides */
.carousel-slide {
  scroll-snap-align: center;
  scroll-snap-stop: always;
  transition: transform 200ms ease, opacity 200ms ease, box-shadow 200ms ease;
  border-radius: 12px;
  overflow: hidden;
  opacity: 0.78;
  transform: scale(0.96);
}

.carousel-slide.is-active {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 8px 24px rgba(10, 10, 10, 0.25);
}

/* Square media area */
/* 1) Use Bulma's is-1by1 for a square wrapper */
.carousel-slide .card-image .image.is-1by1 {
  /* Ensure modern browsers keep it square even without padding hack */
  aspect-ratio: 1 / 1;
}

/* 2) Make the image fill the square without distortion */
.carousel-slide .card-image .image.is-1by1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* source images are square, so no cropping in practice */
  display: block;
}

/* Keep captions and controls consistent */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  opacity: 0.9;
}

.carousel-nav.is-previous {
  left: 0.5rem;
}

.carousel-nav.is-next {
  right: 0.5rem;
}

/* Add after your existing carousel CSS */

/* Stronger separation from the background */
.carousel-nav.button.is-dark {
  /* Outer dark shadow plus soft light halo */
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 6px rgba(255, 255, 255, 0.45));
  position: absolute;
  /* already set, kept for clarity */
  /* Optional: slightly less opaque background to let the halo show */
  background-color: rgba(54, 54, 54, 0.92);
  /* Bulma is-dark base tweaked */
}

/* Thin inner ring for edge definition on very bright frames */
.carousel-nav.button.is-dark::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 9999px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55) inset;
  pointer-events: none;
}

/* Hover and focus states with better accessibility */
.carousel-nav.button.is-dark:hover {
  transform: translateY(-50%) scale(1.04);
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 8px rgba(255, 255, 255, 0.55));
}

.carousel-nav.button.is-dark:focus-visible {
  /* High contrast focus ring without layout shift */
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

/* Optional: increase tap target a bit on touch devices */
@media (pointer: coarse) {
  .carousel-nav.button {
    padding: 0.6rem 0.9rem;
  }
}

/* Narrow and wide tweaks */
@media (max-width: 420px) {
  .carousel {
    --slide-min: 200px;
    --slide-max: 380px;
  }
}

@media (min-width: 1280px) {
  .carousel {
    --slide-max: 520px;
  }
}
