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


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

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


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

.results-carousel .item p {
  font-size: 0.85rem;
  margin: 0;
}

.results-carousel .item img {
  width: 100%;
  height: 400px;
  object-fit: contain;
  background: #f5f5f5;
}

.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%;
  text-align: center;
}
#interpolation-image-wrapper img {
  border-radius: 5px;
  width: 100%;
  max-height: 400px;
  object-fit: contain;
}

/* Ego4D page tabs */
#ego4d-page-tabs {
  margin-bottom: 0.5rem;
}

/* Ego4D token sweep panel */
#ego4d-sweep-panel .ego4d-sweep-grid .column {
  padding: 0.35rem;
}

.ego4d-sweep-pair {
  display: flex;
  gap: 0.25rem;
}

.ego4d-sweep-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: center;
}

.ego4d-sweep-right {
  flex: 2;
  text-align: center;
}

.ego4d-sweep-pair span {
  display: block;
  color: #888;
  margin-bottom: 0.15rem;
}

.ego4d-sweep-left span {
  margin-bottom: 0;
  line-height: 1.2;
}

.ego4d-sweep-ctrl img,
.ego4d-sweep-gt img,
.ego4d-sweep-pred img {
  width: 100%;
  border-radius: 5px;
  display: block;
}

/* Roundtrip transfer section */
.roundtrip-grid {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.roundtrip-header {
  display: flex;
  align-items: baseline;
  gap: 0;
}

.roundtrip-header .roundtrip-block-label {
  flex: 3;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #444;
}

.roundtrip-header .roundtrip-arrow-spacer {
  flex: 0 0 32px;
}

.roundtrip-sublabels {
  margin-top: -0.1rem;
  margin-bottom: 0.15rem;
}

.roundtrip-block-pair {
  flex: 3;
  display: flex;
  gap: 3px;
}

.roundtrip-block-pair span {
  flex: 1;
  text-align: center;
  font-size: 0.85rem;
  color: #777;
}

.rt-recovery-labels {
  gap: 14px;
}

.roundtrip-row {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}

.roundtrip-block {
  flex: 3;
  display: flex;
  gap: 3px;
}

.roundtrip-block .roundtrip-img {
  flex: 1;
}

.roundtrip-block .roundtrip-img img {
  width: 100%;
  border-radius: 4px;
  display: block;
}

.roundtrip-arrow {
  flex: 0 0 32px;
  text-align: center;
  color: #999;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.rt-arrow-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  margin-bottom: 2px;
  border-radius: 50%;
  background: #e7eef8;
  border: 1px solid #5f7fb4;
  color: #5f7fb4;
  font-size: 0.68rem;
  font-style: italic;
  line-height: 1;
}

.rt-recovery-block {
  gap: 0 !important;
}

.rt-approx {
  flex: 0 0 14px;
  text-align: center;
  font-size: 1rem;
  color: #888;
  align-self: center;
  font-weight: 700;
}

.roundtrip-scene-label {
  position: absolute;
  left: 2px;
  top: 2px;
  font-size: 0.65rem;
  color: #fff;
  background: rgba(0,0,0,0.5);
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 600;
}

#roundtrip-k-slider {
  margin: 0.5rem 0 0 0 !important;
}

/* --- Fig. 6 redesign: colored frames, function labels, row tags, return arc, legend --- */
/* Color-coded frames: teal = source scene, coral = new/target scene, dashed = generated */
.roundtrip-block .roundtrip-img img {
  box-sizing: border-box;
}
.rt-source-0 img,
.rt-source-1 img,
.rt-gt img {
  border: 2px solid #5a9e5a;   /* source scene, real (Encoder green) */
}
.rt-control img {
  border: 2px solid #ec7a63;   /* new scene, real (Translator red) */
}
.rt-transfer img {
  border: 2px dashed #ec7a63;  /* new scene, generated */
}
.rt-recovery img {
  border: 2px dashed #5a9e5a;  /* source scene, generated */
}

/* Function-notation sublabel colors */
.roundtrip-block-pair span.rt-sub-src { color: #4f8f4f; }
.roundtrip-block-pair span.rt-sub-tgt { color: #ec7a63; }

/* Keep scene superscripts (o_t^src / o_t^tgt) compact and out of the line box */
.roundtrip-sublabels sup,
.roundtrip-sublabels sub,
.roundtrip-header .roundtrip-block-label sup,
.roundtrip-header .roundtrip-block-label sub {
  font-size: 0.62em;
  line-height: 0;
}

/* Single return arc band below the grid */
.roundtrip-arc-band {
  position: relative;
  width: 100%;
  height: 50px;
  margin-top: 0.1rem;
}
.rt-arc-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

/* One-line legend */
.roundtrip-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.25rem 1.1rem;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: #555;
}
.roundtrip-legend .rt-leg {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.roundtrip-legend .rt-swatch {
  display: inline-block;
  width: 22px;
  height: 0;
  border-top: 2px solid transparent;
}
.roundtrip-legend .rt-swatch.src { border-top-color: #5a9e5a; }
.roundtrip-legend .rt-swatch.tgt { border-top-color: #ec7a63; }
.roundtrip-legend .rt-swatch.dashed { border-top-style: dashed; border-top-color: #888; }
.roundtrip-legend .rt-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e7eef8;
  border: 1px solid #5f7fb4;
  color: #5f7fb4;
  font-size: 0.62rem;
}

/* Composition-chain formula in caption */
.rt-formula {
  text-align: center;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.82rem;
  color: #333;
  margin: 0.5rem 0 0.2rem !important;
  line-height: 1.6;
}
.rt-formula .rt-op { color: #aaa; padding: 0 0.35rem; }

@media screen and (max-width: 600px) {
  .roundtrip-legend { font-size: 0.7rem; gap: 0.2rem 0.7rem; }
}
