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: 3.5rem;
  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;
}

/* ===== CAMP custom styles ===== */
.task-title { margin-top: 2.5rem !important; margin-bottom: 1rem !important; }
.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.method-card {
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  overflow: hidden;
  background: #fafafa;
}
.method-card.is-ours {
  border: 2px solid rgba(245, 73, 41, 0.38);
  box-shadow: 0 4px 14px rgba(245, 73, 41, 0.13);
}
.method-card .method-label {
  font-weight: 600;
  text-align: center;
  padding: 0.45rem 0.25rem;
  font-size: 0.95rem;
  background: #f0f0f0;
}
.method-card.is-ours .method-label {
  background: rgba(245, 73, 41, 0.78);
  color: #fff;
}
.method-card video { display: block; width: 100%; height: auto; background: #000; }

/* placeholder cell for a not-yet-available comparison video */
.method-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  background: #f0f0f0;
  color: #9b9b9b;
  font-style: italic;
  font-size: 0.95rem;
}

/* ===== Memory-Manip-Bench horizontal scroller ===== */
.bench-scroller {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bench-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0.25rem 1rem;
  -webkit-overflow-scrolling: touch;
  /* center items when they fit; fall back to left-align (so scrolling works) when they overflow */
  justify-content: safe center;
}
.bench-track::-webkit-scrollbar { height: 8px; }
.bench-track::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
.bench-item {
  position: relative;
  flex: 0 0 230px;
  scroll-snap-align: start;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  overflow: hidden;
  background: #fafafa;
}
.bench-item .bench-label {
  font-weight: 600;
  text-align: center;
  padding: 0.45rem 0.25rem;
  font-size: 0.95rem;
  background: #f0f0f0;
}
.bench-item video { display: block; width: 100%; height: auto; background: #000; }
.bench-arrow {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(245, 73, 41, 0.7);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  margin: 0 0.4rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.bench-arrow > span { display: block; line-height: 1; }
.bench-arrow:hover { background: rgba(245, 73, 41, 0.9); }
.bench-arrow:disabled { background: rgba(245, 73, 41, 0.3); cursor: default; box-shadow: none; }

/* ===== loading spinner overlay for videos ===== */
.method-card, .bench-item { position: relative; }
.cmp-spinner {
  position: absolute;
  top: 50%; left: 50%;
  width: 38px; height: 38px;
  margin: -19px 0 0 -19px;
  border: 4px solid rgba(0,0,0,0.18);
  border-top-color: #F5492A;
  border-radius: 50%;
  animation: cmp-spin 0.8s linear infinite;
  pointer-events: none;
  z-index: 5;
}
.cmp-spinner.is-hidden { display: none; }
@keyframes cmp-spin { to { transform: rotate(360deg); } }

/* ===== Per-video seek slider (real-robot clips) — translucent, bottom overlay ===== */
.seek-wrap {                         /* transparent hover zone covering the bottom of the video */
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 40%;
  display: flex;
  align-items: flex-end;
  padding: 0 8px 7px;
  z-index: 6;
  pointer-events: auto;
  transition: background 0.18s ease;
}
.seek-wrap:hover {                   /* faint gradient so the bar is readable on hover */
  background: linear-gradient(to top, rgba(0,0,0,0.40), rgba(0,0,0,0));
}
.seek-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  margin: 0;
  border-radius: 3px;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  opacity: 0;                        /* hidden until the mouse is near the bottom */
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.seek-wrap:hover .seek-slider { opacity: 1; pointer-events: auto; }
.seek-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 13px; height: 13px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 3px rgba(0,0,0,0.6); cursor: pointer;
}
.seek-slider::-moz-range-thumb {
  width: 13px; height: 13px; border: none; border-radius: 50%;
  background: #fff; box-shadow: 0 0 3px rgba(0,0,0,0.6); cursor: pointer;
}
.seek-slider::-moz-range-track { background: transparent; }

/* ===== Benchmark task descriptions (Memory-T-Bench etc.) ===== */
.tbench-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
  align-items: start;   /* cards keep their own height so hover-expand affects only one */
}
.tbench-card {
  position: relative;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 1.05rem 1.15rem 1.6rem;
  background: #fff;
  text-align: left;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.tbench-card .head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  flex-wrap: wrap;
}
.tbench-card .name { font-weight: 700; color: #F5492A; font-size: 1.02rem; }
.tbench-chev {
  position: absolute;
  bottom: 0.45rem;
  left: 50%;
  transform: translateX(-50%);
  color: #c9c9c9;
  font-size: 0.85rem;
  line-height: 1;
  transition: opacity 0.2s ease;
}
.tbench-card:hover .tbench-chev { opacity: 0; }
.tbench-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8.6rem;          /* all tags share the width of the longest one */
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 9999px;
  white-space: nowrap;
  background: rgba(245,73,41,0.12);
  color: #c2410c;
}

/* ===== Memory-T-Bench: compact info card attached under each task video ===== */
.bench-track { align-items: flex-start; }   /* only the hovered item grows on expand */
.bench-item .tinfo {
  border-top: 1px solid #ececec;
  padding: 0.5rem 0.6rem 0.55rem;
  text-align: left;
}
.tinfo-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
.tinfo-chev {
  color: #c4c4c4;
  font-size: 0.72rem;
  line-height: 1;
  transition: transform 0.25s ease, color 0.25s ease;
}
.bench-item:hover .tinfo-chev { transform: rotate(180deg); color: #F5492A; }
.tinfo-detail {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  overflow: hidden;
  transition: max-height 0.32s ease, opacity 0.25s ease, margin-top 0.2s ease;
}
.bench-item:hover .tinfo-detail { max-height: 320px; opacity: 1; margin-top: 0.5rem; }
.tinfo-detail p { margin: 0 0 0.3rem; font-size: 0.8rem; line-height: 1.42; color: #444; }
.tinfo-detail .success { font-size: 0.76rem; color: #6a6a6a; margin-bottom: 0; }
.tinfo-detail .success strong { color: #444; }
/* preview by default; expand on hover */
.tbench-card { transition: box-shadow 0.2s ease; }
.tbench-card:hover { box-shadow: 0 8px 22px rgba(0,0,0,0.10); }
.tbench-detail {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  overflow: hidden;
  transition: max-height 0.32s ease, opacity 0.25s ease, margin-top 0.25s ease;
}
.tbench-card:hover .tbench-detail {
  max-height: 360px;
  opacity: 1;
  margin-top: 0.2rem;
}
.tbench-tag.track,
.tbench-tag.learn { background: rgba(245,73,41,0.12); color: #c2410c; }
.tbench-card p { margin: 0 0 0.45rem; line-height: 1.45; }
.tbench-card .success { font-size: 0.86rem; color: #6a6a6a; margin-bottom: 0; }
.tbench-card .success strong { color: #444; }
.tbench-result {
  margin-top: 1.75rem;
  padding: 1.1rem 1.35rem;
  border-left: 4px solid #F5492A;
  background: rgba(245,73,41,0.05);
  border-radius: 8px;
  text-align: left;
  line-height: 1.55;
}

/* ===== Real-robot task-name card (centered under each task title) ===== */
.task-meta {
  max-width: 560px;
  margin: -0.2rem auto 1.2rem;
  text-align: center;
  cursor: default;
}
.task-meta .tinfo-detail { text-align: center; }
.task-meta:hover .tinfo-detail { max-height: 220px; opacity: 1; margin-top: 0.5rem; }
.task-meta:hover .tinfo-chev { transform: rotate(180deg); color: #F5492A; }

/* ===== Real-robot task card (reference-style: bordered box, expand on hover) ===== */
.task-card-ref {
  max-width: 760px;
  margin: 2.6rem auto 1.3rem;
  border: 1px solid #e3e3e3;
  border-radius: 14px;
  background: #fff;
  padding: 1rem 1.6rem;
  cursor: default;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.task-card-ref:hover {
  border-color: rgba(245,73,41,0.55);
  box-shadow: 0 6px 22px rgba(245,73,41,0.10);
}
.tcr-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}
.tcr-name { font-size: 1.4rem; font-weight: 700; color: #2b2b2b; line-height: 1.2; }
.tcr-chev {
  color: #F5492A;
  font-size: 0.85rem;
  line-height: 1;
  transition: transform 0.25s ease;
}
.task-card-ref:hover .tcr-chev { transform: rotate(180deg); }
.tcr-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  text-align: center;
  transition: max-height 0.32s ease, opacity 0.25s ease, margin-top 0.25s ease;
}
.task-card-ref:hover .tcr-body { max-height: 260px; opacity: 1; margin-top: 0.7rem; }
.tcr-body .tbench-tag { margin-bottom: 0.55rem; }
.tcr-body p { margin: 0.35rem 0 0; color: #555; line-height: 1.5; }
.tcr-body p.success { font-size: 0.9rem; color: #7a7a7a; }
.tcr-body p strong { color: #333; }
