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


/* ---- Reusable video block (teaser + supplementary clips) ---- */
.video-block {
  width: 100%;
  margin: 0 auto;
}

.video-block video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
}

.video-caption {
  margin-top: 1.25rem;
}

/* 5-panel comparison clips (H1): low wide strip, same width as the results table,
   keep the video's native 5:1 proportion, never letterbox */
.video-block--panel video {
  aspect-ratio: 1920 / 384;
  height: auto;
  background: transparent;
  border-radius: 8px;
}

.task-video-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  margin: 1.6rem 0 0.9rem;
  font-family: 'Google Sans', sans-serif;
}

.task-video-label {
  font-weight: 600;
  color: #363636;
}

.task-video-caption {
  margin-top: 0.6rem;
  font-size: 0.92rem;
  color: #555;
}

/* ---- Sliding info cards: one card per page, swipe or use arrows/dots ---- */
.card-pager {
  position: relative;
  max-width: 46rem;
  margin: 0 auto;
}

.card-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.3rem 2px 0.3rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.card-rail::-webkit-scrollbar {
  display: none;
}

.info-card {
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid rgba(27, 42, 74, 0.10);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 18px rgba(15, 23, 42, 0.05);
  padding: 1.3rem 1.5rem;
  font-size: 1rem;
  line-height: 1.55;
  color: #374151;
  text-align: left;
}

.info-card .kicker {
  display: block;
  font-family: 'Google Sans', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f5821f;
  margin-bottom: 0.45rem;
}

.info-card b {
  color: #1b2a4a;
}

/* prev / next arrows */
.pager-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  color: #1b2a4a;
  background: #fff;
  border: 1px solid rgba(27, 42, 74, 0.18);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
  z-index: 2;
}

.pager-arrow:hover {
  background: #1b2a4a;
  color: #fff;
}

.pager-arrow:disabled {
  opacity: 0.25;
  cursor: default;
  pointer-events: none;
}

.pager-prev { left: -3.1rem; }
.pager-next { right: -3.1rem; }

/* dots */
.pager-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.6rem;
}

.pager-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #d1d5db;
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}

.pager-dot.is-active {
  width: 22px;
  background: #1b2a4a;
}

@media screen and (max-width: 1120px) {
  .pager-prev { left: 0.35rem; }
  .pager-next { right: 0.35rem; }
  .pager-arrow { opacity: 0.85; }
}

/* touch widths: swipe + dots only, arrows would overlap the card text */
@media screen and (max-width: 768px) {
  .pager-arrow { display: none; }
}

/* one-line figure captions */
.fig-caption {
  margin-top: 0.5rem;
  font-size: 0.92rem;
  color: #555;
}


.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;
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.05;
    margin-bottom: 0.35rem;
    color: #1b2a4a;
}

/* Gradient divider under the title block — a brand-colored section rule (like a markdown ---) */
.title-divider {
    width: min(88%, 30rem);
    height: 3px;
    margin: 1.4rem auto 1.1rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(90deg, #f5821f 0%, #fb9b3a 45%, #4a90d9 100%);
}

.title-with-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.resteer-logo {
    height: 72px;
    margin-bottom: 0;
}

/* project logo beside the hero title — larger, with a brand-colored glow */
.warp-title-logo {
    height: clamp(58px, 11vw, 108px);
    width: auto;
    margin-bottom: 0;
    filter:
        drop-shadow(0 0 9px rgba(245, 130, 31, 0.50))
        drop-shadow(0 0 17px rgba(74, 144, 217, 0.42))
        drop-shadow(0 2px 5px rgba(15, 23, 42, 0.18));
}

.title-with-logo {
    gap: clamp(0.6rem, 2vw, 1.25rem);
}

.title-with-logo .publication-title {
    margin-bottom: 0;
}

.publication-subtitle {
    font-family: 'Google Sans', sans-serif;
    font-size: clamp(1.25rem, 3.2vw, 1.9rem);
    font-weight: 600;
    line-height: 1.3;
    max-width: 46rem;
    margin: 0 auto;
    color: #374151;
}

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

#eval-video {
    clip-path: inset(1px 1px);
}

/* ---- Hero anonymous-review note ---- */
.anon-note {
    margin-top: 0;
    font-size: 0.95rem;
    font-style: italic;
    color: #6b7280;
}
@media screen and (max-width: 480px) {
    .publication-title { letter-spacing: 0.03em; }
    .anon-note { padding: 0 1rem; }
}

/* Long display equations scroll inside their own box instead of widening the page (mobile) */
mjx-container[display="true"] {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

/* ---- Results tables: LaTeX booktabs look (Computer Modern, print-black) ---- */
.results-metrics-table {
    margin: 0 auto;
    font-family: 'Computer Modern Serif', 'Latin Modern Roman', Georgia, serif;
    font-size: 1rem;
    color: #111;
    border-collapse: collapse;
}

/* doubled class beats Bulma's .content table td/th rules */
.results-metrics-table.results-metrics-table td,
.results-metrics-table.results-metrics-table th,
.results-metrics-table.results-metrics-table thead th {
    border: none;
    text-align: center;
    vertical-align: middle;
    padding: 0.3em 0.7em;
    color: #111;
}

.results-metrics-table td {
    white-space: nowrap;
}

.results-metrics-table th:first-child,
.results-metrics-table td:first-child {
    text-align: left;
    white-space: nowrap;
}

/* booktabs rules: \toprule, \cmidrule(lr), \midrule, \bottomrule */
.results-metrics-table.results-metrics-table thead tr:first-child th {
    border-top: 1.6px solid #000;
    padding-top: 0.45em;
}
/* trimmed cmidrule: an inset hairline instead of a full-width border */
.results-metrics-table.results-metrics-table thead th[colspan] {
    background: linear-gradient(#555, #555) bottom center / calc(100% - 1.5em) 1px no-repeat;
    padding-bottom: 0.4em;
}
.results-metrics-table.results-metrics-table thead tr:last-child th,
.results-metrics-table.results-metrics-table thead th[rowspan] {
    border-bottom: 1px solid #000;
}
.results-metrics-table.results-metrics-table tbody tr:first-child td {
    padding-top: 0.42em;
}
.results-metrics-table.results-metrics-table tbody tr:last-child td {
    border-bottom: 1.6px solid #000;
    padding-bottom: 0.45em;
}
.results-metrics-table.results-metrics-table .jl-sep td {
    border-top: 0.8px solid #000;
}

/* light vertical separators between metric groups (the | in the LaTeX colspec) */
.tbl-h1 tbody td:nth-child(3),
.tbl-h1 tbody td:nth-child(6),
.tbl-h1 tbody td:nth-child(9),
.tbl-h1 thead tr:first-child th:nth-child(3),
.tbl-h1 thead tr:first-child th:nth-child(4),
.tbl-h1 thead tr:first-child th:nth-child(5),
.tbl-h1 thead tr:last-child th:nth-child(1),
.tbl-h1 thead tr:last-child th:nth-child(4),
.tbl-h1 thead tr:last-child th:nth-child(7),
.tbl-dex tbody td:nth-child(2),
.tbl-dex tbody td:nth-child(4),
.tbl-dex tbody td:nth-child(6),
.tbl-dex tbody td:nth-child(8),
.tbl-dex thead tr:first-child th:nth-child(2),
.tbl-dex thead tr:first-child th:nth-child(3),
.tbl-dex thead tr:first-child th:nth-child(4),
.tbl-dex thead tr:first-child th:nth-child(5),
.tbl-dex thead tr:last-child th:nth-child(1),
.tbl-dex thead tr:last-child th:nth-child(3),
.tbl-dex thead tr:last-child th:nth-child(5),
.tbl-dex thead tr:last-child th:nth-child(7) {
    border-left: 1px solid #cfcfcf;
}

.results-metrics-table .unit {
    font-weight: 400;
    color: #555;
    font-size: 0.82em;
}
.results-metrics-table .warp-row {
    background-color: #f3e8ff;
}

/* ============================================================
   Full-screen video splash  (human demos / robot replays)
   ============================================================ */
.warp-splash {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;            /* avoid mobile URL-bar jump where supported */
  min-height: 460px;
  overflow: hidden;
  background: #fff;
}

.warp-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 7px;
  padding: 7px;
  background: #fff;          /* white seams between the framed tiles */
}

.warp-cell {
  position: relative;
  overflow: hidden;
  border-radius: 7px;
  background-color: #0b0b0b;
  /* poster (set inline per cell) cover-fills the tile before the clip paints,
     so there is never a letterbox — even if autoplay is blocked */
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.warp-cell video {
  position: absolute;        /* fill the tile regardless of intrinsic size */
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;         /* crop-to-fill, as in the reference layout */
  background: transparent;
}

/* row identity frames — peach = human demonstration, blue = robot replay */
.warp-cell--human { border: 5px solid #f4c19c; }
.warp-cell--robot { border: 5px solid #a8d3ed; }

/* orbital project logo, upper-left */
.warp-splash-logo {
  position: absolute;
  top: clamp(0.6rem, 1.6vw, 1.5rem);
  left: clamp(0.6rem, 1.6vw, 1.5rem);
  width: clamp(76px, 10vw, 150px);
  height: auto;
  z-index: 3;
  filter: drop-shadow(0 2px 7px rgba(0, 0, 0, 0.30));
  pointer-events: none;
}

/* centered WARP wordmark */
.warp-splash-center {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  pointer-events: none;
}

.warp-splash-wordmark {
  width: clamp(260px, 44vw, 640px);
  height: auto;
  /* white halo keeps the dark wordmark legible over any frame */
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.9))
          drop-shadow(0 0 6px rgba(255, 255, 255, 0.95))
          drop-shadow(0 3px 10px rgba(0, 0, 0, 0.18));
}

/* bouncing scroll-down cue */
.warp-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(0.9rem, 2.4vh, 1.9rem);
  z-index: 4;
  width: 2.6rem;
  height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  transform: translateX(-50%);
  animation: warp-bounce 1.8s ease-in-out infinite;
  transition: background 0.15s ease;
}

.warp-scroll-cue:hover { background: #fff; }

.warp-scroll-cue::after {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  margin-top: -3px;
  border-right: 2.5px solid #1b2a4a;
  border-bottom: 2.5px solid #1b2a4a;
  transform: rotate(45deg);
}

@keyframes warp-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* (project logo now lives beside the hero title — see .warp-title-logo) */

/* phones: stack to 2 columns × 4 rows (humans top, robots bottom) */
@media screen and (max-width: 768px) {
  .warp-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 1fr);
  }
  .warp-splash-wordmark { width: min(78vw, 360px); }
  .warp-cell--human,
  .warp-cell--robot { border-width: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .warp-scroll-cue { animation: none; }
}
