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

/* Larger main body text. Figure captions keep their own explicit size, so they
   are unaffected. */
.content {
  font-size: 1.15rem;
}

.offline-text {
  font-size: 1.15rem;
}


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

.link-block a {
    margin-top: 5px;
    margin-bottom: 5px;
}

#implicit-ensembles .paper-figure {
  margin-bottom: 1.5rem;
}

#implicit-ensembles .paper-figure img {
  display: block;
  width: 40%;
  margin: 0 auto;
}

#mechanism-3 .paper-figure {
  margin-bottom: 2rem;
}

.dnerf,
.frs {
  font-variant: small-caps;
}

.teaser-figure {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 2rem;
  display: block;
}

.video-placeholder {
  aspect-ratio: 16 / 9;
  background: #f0f0f0;
  border: 2px dashed #ccc;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 0.95rem;
  text-align: center;
  padding: 1rem;
}

.video-placeholder i {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
}

.stats-box {
  background: #f5f5f5;
  border-radius: 10px;
  padding: 1.25rem;
  margin: 1rem 0;
}

.stats-box ul {
  margin-bottom: 0;
}

.figure-caption {
  table-layout: fixed;
  font-size: 0.78rem;
  color: #555;
  margin-top: 0.5rem;
}

.video-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.video-grid-2col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
}

.video-grid-3col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2rem;
}

@media screen and (max-width: 768px) {
  .video-grid-2col,
  .video-grid-3col {
    grid-template-columns: 1fr;
  }
}

.video-aspect {
  width: 100%;
  background: #111;
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
  position: relative;   /* anchor injected overlays (e.g. Video Speed Controller) to the video box */
}

.video-card .video-aspect video {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

.video-card-caption {
  margin-top: 0.75rem;
  margin-bottom: 0;
  text-align: center;
  font-size: 1rem;
}

/* Simulation: 3-up sliding carousel inside a grey box */
.sim-carousel {
  position: relative;
  margin-top: 1.25rem;
  padding: 1.5rem;
  background: #f0f0f2;
  border-radius: 14px;
}

.sim-carousel-viewport {
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 14%,
    #000 86%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 14%,
    #000 86%,
    transparent 100%
  );
}

.sim-carousel-track {
  display: flex;
  transition: transform 0.35s ease;
  will-change: transform;
}

.sim-carousel-card {
  flex: 0 0 64%;
  max-width: 64%;
  padding: 0 0.6rem;
  box-sizing: border-box;
  opacity: 0.45;
  transition: opacity 0.35s ease;
}

.sim-carousel-card.is-active {
  opacity: 1;
}

.sim-carousel-card .sim-video-aspect {
  min-height: 0;
  max-width: 100%;
  aspect-ratio: 1 / 1;
}

.sim-carousel-card .video-card-caption {
  margin-top: 0.6rem;
  font-size: 0.95rem;
}

.sim-carousel-card:not(.is-active) .video-card-caption {
  visibility: hidden;
}

/* Multi-method carousel card: main "Ours" clip full width, the two comparison
   clips half width/height in a row underneath. All clips are 16:9. */
.sim-carousel-card .video-aspect.ar169 {
  aspect-ratio: 16 / 9;
  max-width: 100%;
}

.rollout-cell .video-aspect.ar169 video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

.rollout-variants {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.method-label {
  margin: 0.4rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
}

.rollout-variant .method-label {
  font-size: 0.78rem;
}

.method-label.ours {
  color: #6a4fa3;
}

.sim-carousel-card:not(.is-active) .method-label {
  visibility: hidden;
}

.sim-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: none;
  background: rgba(40, 40, 40, 0.85);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.sim-carousel-stage {
  position: relative;
}

.sim-carousel-prev {
  left: 0;
}

.sim-carousel-next {
  right: 0;
}

.sim-carousel-arrow:hover {
  background: rgba(40, 40, 40, 0.95);
}

.sim-carousel-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.sim-carousel-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.sim-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #c6c6cf;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.sim-dot:hover {
  background: #9a9aa6;
}

.sim-dot.is-active {
  background: #555;
  transform: scale(1.35);
}

.sim-carousel-cap {
  margin: 1.1rem auto 0;
  max-width: 46rem;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #555;
}

@media screen and (max-width: 768px) {
  .sim-carousel {
    padding: 1rem 0.5rem;
  }
  .sim-carousel-card {
    flex-basis: 80%;
    max-width: 80%;
    padding: 0 0.3rem;
  }
  .sim-carousel-card .video-card-caption {
    font-size: 0.82rem;
  }
  .sim-carousel-arrow {
    width: 2.4rem;
    height: 2.4rem;
    font-size: 0.95rem;
  }
  .sim-carousel-prev {
    left: 0;
  }
  .sim-carousel-next {
    right: 0;
  }
}

.sim-video-stage {
  margin-top: 1.5rem;
}

.sim-video-aspect {
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  min-height: 320px;
}

.sim-video-aspect video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

#sim-rollout-caption {
  margin-top: 1rem;
  font-size: 1.05rem;
}

.button.is-disabled-coming-soon {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Overview video (Steerable Policies style) */
.overview-video-section {
  padding-top: 0;
  padding-bottom: 2rem;
}

.video-toggle-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.video-toggle-wrapper .toggle-container {
  position: relative;
  margin-top: 1rem;
  margin-bottom: 0;
  width: 350px;
  max-width: 100%;
}

.video-wrapper {
  width: 100%;
  max-width: 960px;
  position: relative;   /* anchor injected video overlays to the video box */
}

.overview-video {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  background: #000;
}

.presentation-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.presentation-slide {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}

.presentation-slide.is-fading {
  animation: presentation-fade 260ms ease;
}

@keyframes presentation-fade {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

.presentation-pdf-link,
.presentation-controls {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(18, 18, 18, 0.78);
  color: #fff;
  backdrop-filter: blur(8px);
}

.presentation-pdf-link {
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  table-layout: fixed;
  font-size: 0.78rem;
}

.presentation-pdf-link:hover,
.presentation-pdf-link:focus {
  color: #fff;
  background: rgba(18, 18, 18, 0.9);
}

.presentation-controls {
  left: 50%;
  bottom: 0.75rem;
  transform: translateX(-50%);
  padding: 0.35rem;
  border-radius: 999px;
}

.presentation-control {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.presentation-control:hover,
.presentation-control:focus {
  background: rgba(255, 255, 255, 0.18);
}

.presentation-counter {
  min-width: 3.5rem;
  padding-right: 0.35rem;
  table-layout: fixed;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.paper-section {
  scroll-margin-top: 1.5rem;
}

.paper-section-heading {
  margin-bottom: 1.5rem;
  text-align: center;
}

.section-kicker {
  margin-bottom: 0.35rem;
  color: #8a3a6f;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

.paper-section-text {
  min-height: 0.75rem;
  margin: 0 auto 1.5rem;
  max-width: 860px;
}

.media-row {
  display: grid;
  gap: 1rem;
  align-items: stretch;
  margin: 1.25rem 0;
}

.media-row-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.media-row-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.media-row-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.compact-media-row {
  gap: 0.75rem;
}

.prelim-stills-row {
  --prelim-stills-width: 70%;
  max-width: var(--prelim-stills-width);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
}

.paper-figure,
.paper-video-block {
  margin: 0;
}

.paper-figure img,
.paper-video-block video {
  width: 100%;
  display: block;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.08);
}

.paper-figure img {
  height: 100%;
  object-fit: contain;
}

.paper-figure-wide {
  max-width: 980px;
  margin: 0 auto;
}

.real-results-plot {
  margin-bottom: 1.5rem;
}

.method-definition-grid {
  max-width: 980px;
  margin: 0 auto 1.75rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.method-definition-grid div {
  padding: 0.85rem 1rem;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.05);
}

.method-definition-grid strong,
.method-definition-grid span {
  display: block;
}

.method-definition-grid strong {
  margin-bottom: 0.25rem;
  color: #303643;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.86rem;
}

.method-definition-grid span {
  color: #4f5663;
  font-size: 0.9rem;
  line-height: 1.35;
}

.paper-figure figcaption,
.paper-video-block figcaption,
.policy-divergence-figure figcaption {
  margin-top: 0.55rem;
  color: #4f5663;
  table-layout: fixed;
  font-size: 0.78rem;
  text-align: center;
}

.paper-video-block {
  max-width: 980px;
  margin: 1.5rem auto 0;
}

.paper-video-block video {
  background: #111;
}

.demo-video-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.demo-video-row .small-video {
  margin-top: 0;
}

.asset-note {
  max-width: 860px;
  margin: 0 auto;
  padding: 0.9rem 1rem;
  border-left: 4px solid #b8a8ce;
  background: #f6f3f8;
  color: #4f4659;
}

.theorem-panel {
  max-width: 900px;
  margin: 0 auto 1.75rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid #d8d3e4;
  border-left: 5px solid #8a3a6f;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(46, 30, 66, 0.08);
}

.takeaway-panel {
  max-width: 900px;
  margin: 2rem auto 0;
  padding: 1.25rem 1.35rem;
  border: 1px solid #cfe0f3;
  border-left: 5px solid #2f6fae;
  border-radius: 8px;
  background: #f6f9fd;
  box-shadow: 0 10px 24px rgba(24, 75, 125, 0.08);
}

.theorem-panel h3 {
  margin: 0 0 0.65rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.takeaway-panel h3 {
  margin: 0 0 0.65rem;
  color: #183f68;
  font-size: 1.25rem;
  font-weight: 700;
}

.theorem-label {
  margin-bottom: 0.35rem;
  color: #8a3a6f;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.takeaway-label {
  margin-bottom: 0.35rem;
  color: #2f6fae;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.takeaway-panel ul {
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.results-table-wrap {
  max-width: 860px;
  margin: 1.25rem auto 2rem;
  overflow-x: auto;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  table-layout: fixed;
  font-size: 0.78rem;
  text-align: center;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
}

.results-table th,
.results-table td {
  padding: 0.55rem 0.35rem;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: middle;
}

.results-table thead th {
  border-top: 2px solid #20242c;
  border-bottom: 1.5px solid #20242c;
  color: #20242c;
  font-weight: 700;
  white-space: nowrap;
}

.results-table tbody tr:last-child th,
.results-table tbody tr:last-child td {
  border-bottom: 2px solid #20242c;
}

.results-table th:first-child {
  border-right: 2px solid #20242c;
  font-family: 'Roboto Mono', monospace;
  text-align: left;
  white-space: normal;
}

.results-table .pm {
  display: inline-block;
  color: #5f6673;
  font-size: 0.76rem;
  white-space: nowrap;
}

.compact-results-table {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.libero-video {
  max-width: 520px;
}

.libero-loss-row {
  --prelim-stills-width: 52%;
}

.policy-divergence-figure {
  max-width: 720px;
  margin: 0 auto;
}

.policy-divergence-diagram {
  position: relative;
  height: 560px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(32, 75, 124, 0.06), rgba(138, 58, 111, 0.06));
  overflow: hidden;
}

.policy-node,
.ellipsis {
  position: absolute;
  z-index: 2;
  width: 84px;
  min-height: 38px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #24476f;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(16, 24, 40, 0.1);
  font-size: 0.92rem;
}

.policy-node.learned {
  border-color: #8a3a6f;
}

.ellipsis {
  border: 0;
  box-shadow: none;
  background: transparent;
}

.s0 { left: 22%; top: 88%; }
.s1 { left: 22%; top: 66%; }
.s2 { left: 22%; top: 44%; }
.st { left: 22%; top: 12%; }
.s1hat { left: 48%; top: 66%; }
.s2hat { left: 58%; top: 44%; }
.sthat { left: 72%; top: 12%; }
.demo-ell { left: 22%; top: 28%; }
.learned-ell { left: 65%; top: 28%; }

.edge,
.gap {
  position: absolute;
  z-index: 1;
  height: 2px;
  transform-origin: left center;
  background: #24476f;
}

.edge::after,
.gap::before,
.gap::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.edge::after {
  right: -1px;
  transform: translateY(-50%) rotate(45deg);
}

.edge.learned {
  background: #8a3a6f;
  color: #8a3a6f;
}

.edge.demo {
  color: #24476f;
}

.edge span {
  position: absolute;
  left: 50%;
  bottom: 0.45rem;
  transform: translateX(-50%);
  min-width: 170px;
  color: #2f3440;
  font-size: 0.78rem;
  text-align: center;
}

.e01 { left: 22%; top: 77%; width: 120px; transform: rotate(-90deg); }
.e12 { left: 22%; top: 55%; width: 120px; transform: rotate(-90deg); }
.e2t { left: 22%; top: 36%; width: 135px; transform: rotate(-90deg); }
.eh01 { left: 27%; top: 82%; width: 160px; transform: rotate(-47deg); }
.eh12 { left: 50%; top: 57%; width: 118px; transform: rotate(-60deg); }
.eh2t { left: 59%; top: 36%; width: 145px; transform: rotate(-70deg); }

.gap {
  z-index: 0;
  border-top: 2px dashed #6b7280;
  background: transparent;
  color: #6b7280;
}

.gap::before {
  left: 0;
  transform: translateY(-50%) rotate(-135deg);
}

.gap::after {
  right: 0;
  transform: translateY(-50%) rotate(45deg);
}

.gap span {
  position: absolute;
  left: 50%;
  bottom: 0.35rem;
  transform: translateX(-50%);
  padding: 0 0.25rem;
  background: #fbfbfd;
  color: #3f4652;
  font-size: 0.85rem;
}

.g1 { left: 26%; top: 66%; width: 108px; }
.g2 { left: 26%; top: 44%; width: 190px; }
.gt { left: 26%; top: 12%; width: 310px; }

.droid-results-grid {
  max-width: 1120px;
  margin: 2rem auto 0;
}

.droid-carousel {
  margin-top: 1rem;
}

.droid-task-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 1rem;
}

.droid-carousel .sim-carousel-viewport {
  -webkit-mask-image: none;
  mask-image: none;
}

.droid-carousel .sim-carousel-card {
  flex: 0 0 100%;
  max-width: 100%;
  opacity: 1;
  padding: 0 0.75rem;
}

.droid-task-card h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
}

.droid-task-card {
  width: 100%;
}

.droid-method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.droid-method {
  min-width: 0;
  padding: 0.85rem;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.07);
}

.droid-method h5 {
  margin-bottom: 0.6rem;
  color: #303643;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: left;
}

.droid-method video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  background: #111;
}

.rollout-selector {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.rollout-button {
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.45rem;
  border: 1px solid #c6c6cf;
  border-radius: 999px;
  background: #fff;
  color: #4f5663;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.rollout-button.is-active {
  border-color: #7a6db0;
  background: #7a6db0;
  color: #fff;
}

.bar-chart-wrap {
  max-width: 980px;
  margin: 1rem auto 1.75rem;
  padding: 1.25rem;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
}

.bar-chart-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
}

.bar-key {
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  margin-right: 0.35rem;
  border-radius: 3px;
  vertical-align: -0.08rem;
}

.bar-chart {
  display: grid;
  gap: 0.85rem;
}

.bar-row {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: end;
}

.bar-row h4 {
  margin: 0;
  color: #303643;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.82rem;
  font-weight: 700;
}

.bar-group {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  align-items: end;
  height: 8.5rem;
  padding-top: 0.5rem;
  border-bottom: 1px solid #cfd4dc;
}

.bar {
  height: calc(var(--value) * 1%);
  min-height: 1.1rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.25rem;
  border-radius: 5px 5px 0 0;
  color: #20242c;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
}

.bar.markovian,
.bar-key.markovian {
  background: #dfe9d9;
  border: 2px solid #5a8f47;
}

.bar.ac,
.bar-key.ac {
  background: #c9d9f0;
  border: 2px solid #3d61ad;
}

.bar.delay,
.bar-key.delay {
  background: #d4edf5;
  border: 2px solid #2d8da6;
}

.bar.rde,
.bar-key.rde {
  background: #d9c9ed;
  border: 2px solid #7b56b3;
}
@media screen and (max-width: 900px) {
  .media-row-3,
  .media-row-4,
  .demo-video-row,
  .droid-method-grid {
    grid-template-columns: 1fr;
  }

  .media-row-2 {
    grid-template-columns: 1fr;
  }

  .prelim-stills-row {
    max-width: 100%;
  }

  .policy-divergence-diagram {
    height: 500px;
  }

  .edge span {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  .method-definition-grid {
    grid-template-columns: 1fr;
  }

  .bar-row {
    grid-template-columns: 1fr;
  }

  .bar-group {
    height: 7rem;
  }
}

.overview-video.is-hidden {
  display: none;
}

.overview-video-placeholder {
  aspect-ratio: 16 / 9;
  background: #f0f0f0;
  border: 2px dashed #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 1rem;
  text-align: center;
  padding: 1.5rem;
}

.overview-video-placeholder i {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
  color: #aaa;
}

#video-toggle {
  display: none;
}

.video-mode-slider {
  display: flex;
  position: relative;
  background: #ccc;
  border-radius: 25px;
  cursor: pointer;
  overflow: hidden;
  user-select: none;
  padding: 5px;
  margin: 0;
}

.video-mode-slider::after {
  content: '';
  position: absolute;
  top: 5px;
  left: var(--capsule-left, 5px);
  width: var(--capsule-width, calc(50% - 10px));
  height: calc(100% - 10px);
  background: #3273dc;
  border-radius: 25px;
  z-index: 0;
  transition: left 0.3s ease, width 0.3s ease;
}

.video-mode-slider .toggle-label {
  flex: 1;
  text-align: center;
  font-family: 'Google Sans', sans-serif;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
  padding: 8px 12px;
  white-space: nowrap;
  transition: color 0.3s ease, font-weight 0.3s ease;
  cursor: pointer;
}

#video-toggle:checked + .video-mode-slider .toggle-label.off {
  color: rgb(100, 100, 100);
  font-weight: 400;
}

#video-toggle:checked + .video-mode-slider .toggle-label.on {
  color: white;
  font-weight: 600;
}

#video-toggle:not(:checked) + .video-mode-slider .toggle-label.off {
  color: white;
  font-weight: 600;
}

#video-toggle:not(:checked) + .video-mode-slider .toggle-label.on {
  color: rgb(100, 100, 100);
  font-weight: 400;
}

.publication-subtitle {
  font-family: 'Google Sans', sans-serif;
  margin-top: 0.25rem;
  margin-bottom: 1rem;
}

.tagline {
  font-family: 'Google Sans', sans-serif;
  font-weight: 500;
  line-height: 1.5;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

.figure-wrap-block::after {
  content: "";
  display: table;
  clear: both;
}

.figure-float {
  margin-bottom: 1rem;
}

.figure-float img {
  width: 100%;
  border-radius: 10px;
}

.figure-float-right {
  float: right;
  width: 50%;
  margin-left: 1.5rem;
}

.figure-float-left {
  float: left;
  width: 50%;
  margin-right: 1.5rem;
}

.figure-float figcaption {
  text-align: center;
}

.figure-full {
  width: 100%;
  border-radius: 10px;
  display: block;
}

@media screen and (max-width: 768px) {
  .figure-float-right,
  .figure-float-left {
    float: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

/* Offline DSBC qualitative rollouts: main "Ours" clip on the left, the two
   comparison clips stacked on the right; the block spans the full content width.
   The columns are equal height (align-items: stretch), so the bottom labels
   ("Offline DSBC (Ours)" / "Standard Flow BC") line up. The main clip's box
   flex-grows to fill its column, making it as tall as the whole right column
   minus its own label = [base clip + "Base VLA" label + bottom clip]. */
.offline-videos {
  display: flex;
  align-items: stretch;
  gap: 0.8rem;
  width: 100%;
  margin: 0.5rem auto 0;
}

.offline-main {
  flex: 2 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.offline-main .offline-main-aspect {
  flex: 1 1 0;       /* grow to fill the (taller) right-column height */
  min-height: 0;
}

.offline-stack {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.offline-stack-cell {
  display: flex;
  flex-direction: column;
}

.offline-stack .video-aspect.ar169 { aspect-ratio: 16 / 9; }

.offline-videos .video-aspect video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

.offline-text {
  max-width: 52rem;
  margin: 0.5rem auto 0;
  text-align: justify;
}

@media screen and (max-width: 768px) {
  .offline-videos { flex-direction: column; align-items: stretch; }
  .offline-main, .offline-stack { flex: 0 0 auto; width: 100%; }
  .offline-main .offline-main-aspect { aspect-ratio: 16 / 9; flex: 0 0 auto; }
}


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

/* ---- hovering table of contents (left rail) ---------------------------- */
html { scroll-behavior: smooth; }
h2[id], h3[id] { scroll-margin-top: 1.5rem; }

#toc-nav {
  position: fixed;
  left: 1.75rem;
  top: 30%;
  transform: translateY(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  font-family: 'Roboto Mono', monospace;
  opacity: 0;
  transition: opacity 0.25s ease;
}

#toc-nav::before {            /* the line connecting the circles */
  content: "";
  position: absolute;
  left: 8px;
  top: 9px;
  bottom: 9px;
  width: 2px;
  background: #dcdcdc;
  z-index: -1;
}

.toc-item { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }

.toc-dot-wrap { width: 18px; height: 18px; flex: 0 0 18px; display: flex; align-items: center; justify-content: center; }

.toc-dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: #fff; border: 2px solid #c2c2c2; box-sizing: border-box;
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.toc-label {                  /* always shown, small + greyed; the active one pops */
  font-size: 0.72rem; font-weight: 600; color: #b4b4b4; white-space: nowrap;
  transition: color 0.2s ease, font-weight 0.2s ease;
}

.toc-item:hover .toc-dot { border-color: #7a6db0; }
.toc-item:hover .toc-label { color: #666; }

.toc-item.active .toc-dot { width: 17px; height: 17px; background: #7a6db0; border-color: #7a6db0; }
.toc-item.active .toc-label { color: #7a6db0; font-weight: 700; }

@media (max-width: 1100px) { #toc-nav { display: none; } }

/* ---- DSRL example: a static (non-carousel) row of 5 rollout videos ------ */
.rl-vidbox {
  margin: 1.5rem 0 0.5rem;
  padding: 1.5rem;
  background: #f0f0f2;
  border-radius: 14px;
}

.rl-vidrow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.7rem;
}

.rl-vid { display: flex; flex-direction: column; }

.rl-vid .video-aspect {
  aspect-ratio: 1 / 1;
  background: #111;
  border-radius: 8px;
  overflow: hidden;
  line-height: 0;
}

.rl-vid video { width: 100%; height: 100%; object-fit: cover; display: block; }

.rl-step {
  margin: 0.5rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: 'Roboto Mono', monospace;
}
.rl-step.fail { color: #d64545; }
.rl-step.success { color: #3f9a47; }

.rl-caption {
  margin: 1.1rem auto 0;
  max-width: 48rem;
  text-align: center;
  font-size: 0.92rem;
  color: #555;
}

@media (max-width: 768px) { .rl-vidrow { grid-template-columns: repeat(2, 1fr); } }

@media screen and (max-width: 900px) {
  .droid-video-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

