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;
}

/* PartUV Results Carousel */
.pv-gallery {
  position: relative;
  width: 100%;
  margin-top: 1rem;
}
.pv-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0.25rem 0.75rem;
  -webkit-overflow-scrolling: touch;
}
.pv-track::-webkit-scrollbar { height: 10px; }
.pv-track::-webkit-scrollbar-thumb {
  background: #d0d0d0; border-radius: 6px;
}
.pv-card {
  scroll-snap-align: start;
  flex: 0 0 calc((100% - 2rem) / 4); /* 4-up default - smaller cards */
  background: linear-gradient(180deg, #ffffff, #fbfbfb);
  border: 1px solid #e9e9e9;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  overflow: hidden;
}
@media (max-width: 1080px) {
  .pv-card { flex-basis: calc((100% - 1rem) / 3); } /* 3-up on medium */
}
@media (max-width: 680px) {
  .pv-card { flex-basis: 100%; } /* 1-up */
}
.pv-card-header {
  padding: 12px 14px;
  font-weight: 600;
  font-size: 0.95rem;
  background: #f7f8fa;
  border-bottom: 1px solid #eee;
}
.pv-card-body { padding: 10px 12px 12px; }

.pv-row {
  margin-bottom: 10px;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.pv-row-header {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.85rem; font-weight: 600;
  padding: 8px 10px; background: #fafafa; border-bottom: 1px solid #f3f3f3;
}
.pv-badge {
  font-size: 0.72rem; font-weight: 600; opacity: 0.8;
  border: 1px solid #e6e6e6; border-radius: 999px; padding: 2px 8px;
}
.pv-figure {
  position: relative; width: 100%; aspect-ratio: 1;
  background: #fafafa;
}
.pv-figure img {
  width: 100%; height: 100%; object-fit: contain; display: block;
}

/* N/A state */
.pv-na {
  display: grid; place-items: center;
  width: 100%; height: 100%;
  font-size: 0.85rem; color: #999;
  background:
    repeating-linear-gradient(45deg, #f5f5f5 0 10px, #f0f0f0 10px 20px);
}

/* Nav buttons */
.pv-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid #e0e0e0; background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  display: grid; place-items: center;
  font-size: 22px; line-height: 1; cursor: pointer; z-index: 2;
}
.pv-prev { left: -10px; }
.pv-next { right: -10px; }
@media (max-width: 680px) {
  .pv-prev { left: 2px; } .pv-next { right: 2px; }
}
.pv-nav:active { transform: translateY(-50%) scale(0.98); }

/* Make Results section smaller */
#Results .container {
  max-width: 1000px;
}
#Results .column.is-four-fifths {
  width: 100% !important;
}
/* Show more cards per row on wide screens to make each card smaller */
@media (min-width: 1280px) {
  .pv-card { flex-basis: calc((100% - 4rem) / 5); } /* 5-up on wide screens */
}

/* Compact Results section vertical spacing */
#Results.section {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
#Results .title.is-3 {
  margin-bottom: 0.5rem;
}
#Results .pv-gallery {
  margin-top: 0.5rem;
}


/* --- Applications horizontal board --- */
.apps-board { position: relative; margin-top: 1rem; }
.apps-track {
  display: flex; gap: 16px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px 4px 18px;
  scrollbar-width: none;
}
.apps-track::-webkit-scrollbar { display: none; }

.apps-card {
  scroll-snap-align: center;
  flex: 0 0 82%;
  max-width: 82%;
  border-radius: 18px;
  background: linear-gradient(180deg,#111218 0%,#0b0c10 100%);
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.apps-card:focus-within,
.apps-card:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(0,0,0,.32); }
@media (min-width: 900px)  { .apps-card { flex-basis: 58%; max-width: 58%; } }
@media (min-width: 1200px) { .apps-card { flex-basis: 46%; max-width: 46%; } }

.apps-media-wrap {
  position: relative;
  aspect-ratio: 16/10;         /* unifies tile height while allowing mixed ratios */
  display: grid; place-items: center;
  background: #0f1016;
}
.apps-media {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto; object-fit: contain;
  image-rendering: auto;
}
.apps-na {
  color:#a9acb5; font-size:.9rem;
  padding: 28px; text-align:center; width:100%;
}

.apps-body { padding: 14px 16px 16px; color: #e9ecf1; }
.apps-title { font-weight: 700; font-size: 1.05rem; line-height: 1.25; margin-bottom: 6px; }
.apps-desc  { color: #aeb3bd; font-size: .92rem; line-height: 1.35; }
.apps-chip  {
  display:inline-block; margin-top: 8px;
  font-size: .75rem; padding: 3px 8px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
}

.apps-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(17,17,20,.6);
  color: #fff; width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; cursor: pointer;
  z-index: 2; backdrop-filter: blur(4px);
}
.apps-prev { left: 6px; } .apps-next { right: 6px; }
.apps-nav:disabled { opacity: .35; cursor: default; }

.apps-edge {
  position: absolute; top: 0; bottom: 0; width: 80px; z-index: 1; pointer-events: none;
}
.apps-edge-left  { left: 0;  background: linear-gradient(90deg, rgba(16,16,20,1) 0%, rgba(16,16,20,0) 85%); }
.apps-edge-right { right: 0; background: linear-gradient(270deg, rgba(16,16,20,1) 0%, rgba(16,16,20,0) 85%); }

.apps-dots { display:flex; justify-content:center; gap:8px; margin-top: 10px; }
.apps-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.28); border: none;
}
.apps-dot.is-active { background: #fff; width: 18px; border-radius: 8px; transition: width .2s ease; }


/* === Applications scroller === */
.apps-gallery {
  position: relative;
  margin-top: 0.75rem;
}
.apps-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0;
  scrollbar-width: none;           /* Firefox */
}
.apps-track::-webkit-scrollbar {   /* Chrome/Safari */
  display: none;
}

.app-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  border: 1px solid #eaeaea;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  background: #fff;
}

.app-figure {
  width: 100%;
  max-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
}
.app-figure img {
  width: 100%;
  height: auto;
  object-fit: contain;   /* keep full image without cropping */
}

.app-caption {
  margin-top: 12px;
  text-align: left;
}
.app-caption h3 {
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 6px;
}
.app-caption p {
  color: #666;
  line-height: 1.55;
}

/* Arrow buttons */
.apps-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  user-select: none;
}
.apps-prev { left: -12px; }
.apps-next { right: -12px; }

@media (max-width: 480px) {
  .app-figure { max-height: 360px; }
}


/* === Video gallery: 2 videos visible per page, scroll by one === */
.vids-gallery {
  position: relative;
  margin-top: 0.75rem;
}
.vids-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0;
  scrollbar-width: none;
}
.vids-track::-webkit-scrollbar { display: none; }

.vid-card {
  flex: 0 0 calc((100% - 16px) / 2); /* two cards visible per page */
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: 1px solid #eaeaea;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  background: #fff;
}
@media (max-width: 680px) {
  .vid-card { flex-basis: 100%; } /* 1-up on mobile */
}

.vid-figure {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}
.vid-figure video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.vid-caption {
  margin-top: 10px;
  text-align: center;
}
.vid-caption h3 {
  font-family: 'Google Sans', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0;
  color: #222;
}
.vid-caption p {
  color: #666;
  font-size: 0.92rem;
  line-height: 1.4;
}

.vids-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  user-select: none;
  font-size: 22px;
  line-height: 1;
}
.vids-prev { left: -12px; }
.vids-next { right: -12px; }


/* === Prediction results (scene selector + main viewer) === */

/* Scene strip: horizontal thumbnail picker */
.preds-scene-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 4px 14px;
  scrollbar-width: thin;
  scrollbar-color: #d4d4d4 transparent;
  scroll-snap-type: x proximity;
  margin-top: 0.5rem;
}
.preds-scene-strip::-webkit-scrollbar { height: 6px; }
.preds-scene-strip::-webkit-scrollbar-thumb {
  background: #d4d4d4;
  border-radius: 999px;
}

/* Scene card: a clean image tile with the scene name overlaid. */
.preds-scene-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 160px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  border-radius: 14px;
  transition: transform .15s ease;
}
.preds-scene-chip:hover { transform: translateY(-2px); }

.preds-scene-chip-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 2px 10px rgba(0,0,0,.10);
  outline: 2.5px solid transparent;
  outline-offset: 0;
  transition: outline-color .15s ease, box-shadow .15s ease;
}
.preds-scene-chip:hover .preds-scene-chip-thumb {
  box-shadow: 0 8px 20px rgba(0,0,0,.16);
}
.preds-scene-chip[aria-selected="true"] .preds-scene-chip-thumb {
  outline-color: #1976D2;
  box-shadow: 0 6px 18px rgba(25,118,210,0.28);
}
.preds-scene-chip-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(1.02);
  transition: transform .25s ease;
}
.preds-scene-chip:hover .preds-scene-chip-thumb img { transform: scale(1.04); }

/* Query-count badge — same style on every card (1 query / N queries). */
.preds-scene-chip-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  padding: 2px 8px;
  font-family: 'Google Sans', sans-serif;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  background: rgba(20,22,28,0.62);
  border-radius: 999px;
  backdrop-filter: blur(3px);
}
.preds-scene-chip[aria-selected="true"] .preds-scene-chip-badge {
  background: rgba(25,118,210,0.95);
}

/* Scene name overlaid on a bottom gradient scrim for legibility. */
.preds-scene-chip-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 12px 9px;
  font-family: 'Google Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  text-align: left;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  background: linear-gradient(to top, rgba(0,0,0,0.66) 0%, rgba(0,0,0,0.28) 55%, rgba(0,0,0,0) 100%);
}

/* Main viewer card */
.preds-viewer {
  margin-top: 6px;
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,.06);
}
.preds-viewer-figure {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #0d0d10;
  aspect-ratio: 16 / 9;
}
@media (max-width: 720px) {
  .preds-viewer-figure { aspect-ratio: 4 / 3; }
}
.preds-viewer-figure.is-loading .preds-canvas { opacity: 0; }
.preds-viewer-figure .preds-canvas { transition: opacity .25s ease; }

.preds-viewer-caption {
  margin-top: 12px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.preds-scene-name {
  font-family: 'Google Sans', sans-serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1976D2;
  font-weight: 600;
}
.preds-viewer-caption .preds-instr {
  font-family: 'Google Sans', sans-serif;
  font-weight: 600;
  font-size: 1.18rem;
  line-height: 1.3;
  color: #1f1f1f;
}

/* Query selector (pills) below the viewer caption */
.preds-query-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.preds-query-bar:empty { display: none; }

.preds-query-pill {
  font-family: 'Google Sans', sans-serif;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1;
  color: #444;
  background: #f4f5f7;
  border: 1.5px solid #e6e7eb;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .12s ease;
}
.preds-query-pill:hover {
  background: #eef2f8;
  border-color: #cfd8e3;
  color: #1f1f1f;
}
.preds-query-pill[aria-selected="true"] {
  background: #1976D2;
  border-color: #1976D2;
  color: #fff;
  box-shadow: 0 2px 10px rgba(25,118,210,0.28);
}

/* 3D canvas (main view) */
.preds-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;       /* let OrbitControls own touch */
  cursor: grab;
}
.preds-canvas:active { cursor: grabbing; }

/* Loading placeholder while the binary point cloud is fetched */
.preds-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 0.85rem;
  font-family: 'Google Sans', sans-serif;
  pointer-events: none;
  background:
    repeating-linear-gradient(45deg, #15171c 0 12px, #181a20 12px 24px);
}

/* RGB input thumbnail floating in a corner of the 3D view */
.preds-thumb {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32%;
  max-width: 200px;
  min-width: 110px;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.55);
  border: 1.5px solid rgba(255,255,255,0.9);
  pointer-events: none;     /* don't intercept canvas drags */
}
.preds-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Subtle hint on the figure: "drag to orbit" */
.preds-hint {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 3px 8px;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.78);
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  pointer-events: none;
  backdrop-filter: blur(2px);
}

/* Legend (yellow -> blue gradient) shown above the gallery */
.preds-legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0.25rem auto 0;
  font-size: 0.82rem;
  color: #555;
}
.preds-legend-bar {
  display: inline-block;
  width: 96px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #FFEA00 0%, #1976D2 100%);
  border: 1px solid #e0e0e0;
}

/* === Teaser highlight pills === */
.afun-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 1.75rem 0 0.75rem;
}
@media (max-width: 980px) {
  .afun-pills { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .afun-pills { grid-template-columns: 1fr; }
}

.afun-pill {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.afun-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.afun-pill-stat {
  font-family: 'Google Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  color: #1f1f1f;
  margin-bottom: 8px;
}

.afun-pill-body {
  font-family: 'Noto Sans', sans-serif;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #444;
}
.afun-pill-body strong { color: #222; }
