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: #A31F34 !important;   /* MIT red */
}

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


/* ===== Point2Pose custom styles ===== */

/* Figure + caption styling */
.fig {
  margin: 0 auto;
}
.fig img,
.fig video {
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  width: 100%;
  display: block;
}
.fig-caption {
  margin-top: 0.85rem;
  color: #555;
  font-size: 0.95rem;
}
.fig-caption .tag-label {
  color: #A31F34;   /* MIT red */
  font-weight: 700;
}

/* Pipeline flowchart: break out wider than the text column */
.pipeline-fig {
  width: 90vw;
  max-width: 1200px;
  margin-left: 50%;
  transform: translateX(-50%);
}
.pipeline-fig figcaption {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Teaser image */
.teaser .fig img,
.teaser .fig video {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

/* Highlight cards */
.highlight-card {
  height: 100%;
  background: #fff;
  border: 1px solid #ededed;
  border-radius: 14px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.highlight-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
}
.highlight-card .hl-icon {
  font-size: 2rem;
  color: #A31F34;   /* MIT red */
  margin-bottom: 0.6rem;
}
.highlight-card .hl-title {
  font-family: 'Google Sans', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}
.highlight-card .hl-text {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.45;
}

/* Section that highlights the headline contribution */
.section.is-feature {
  background: linear-gradient(180deg, #fafafb 0%, #f2f2f4 100%);
}

/* Synthetic frame grid */
.frame-grid img {
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
  width: 100%;
  display: block;
}

/* Quantitative table emphasis */
.table td b, .table th { white-space: nowrap; }
.table .ours { background: #fbeef0; }

/* Pill badges under the title */
.contrib-pills .tag {
  margin: 0.2rem;
  font-weight: 600;
}

/* Hero affiliation logo(s) */
.affiliation-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin: 1.4rem 0 0.6rem;
}
.affiliation-logos img {
  height: 120px;
  width: auto;
  object-fit: contain;
}
.affiliation-logos .logo-mit {
  height: 120px;
}

/* Interactive reconstructed-mesh viewers (<model-viewer>) */
.recon-viewer {
  display: block !important;
  width: 100% !important;
  max-width: 420px;
  height: 380px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  background: radial-gradient(circle at 50% 35%, #ffffff 0%, #e9e9ee 100%);
  border-radius: 10px;
  --poster-color: transparent;
}
@media screen and (max-width: 768px) {
  .recon-viewer { height: 340px !important; }
}

/* Venue line (matches the "Abstract" section heading: .title.is-3) */
.venue-text {
  margin: 0.6rem auto 1.2rem;
  color: #363636;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.125;
}

/* Tracker ablation table */
.ablation-table {
  font-size: 0.95rem;
  background: transparent;
}
.ablation-table thead th {
  vertical-align: middle;
  text-align: center;
  color: #363636;
  font-family: 'Google Sans', sans-serif;
}
.ablation-table thead tr:first-child th {
  border-bottom-width: 1px;
}
.ablation-table tbody td {
  text-align: center;
  vertical-align: middle;
}
.ablation-table thead th:first-child,
.ablation-table tbody td:first-child {
  text-align: left;
  white-space: nowrap;
}
.ablation-table .group-l {
  border-left: 1px solid #dbdbdb;
}
.ablation-table tbody td a {
  color: #A31F34;
}
.ablation-table .tag-label {
  font-size: 0.8rem;
  font-weight: 600;
}
.table-note {
  line-height: 1.45;
  font-size: 0.85rem;
}
.ref-list {
  font-size: 0.85rem;
  color: #555;
  margin-top: 1.25rem;
}
.ref-list ol {
  margin-top: 0.3rem;
}
.ref-list li {
  margin-bottom: 0.15rem;
}
.ref-list a {
  color: #A31F34;
}
.seq {
  font-family: 'Menlo', 'Consolas', monospace;
  font-size: 0.9em;
}

/* ===== Interactive Rerun demo (front page) ===== */

/* Break out of the text column: the viewer needs the width */
.rerun-demo {
  width: 92vw;
  max-width: 1240px;
  margin-left: 50%;
  transform: translateX(-50%);
}

.rerun-picker {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.rerun-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.8rem 0.35rem 0.35rem;
  background: #fff;
  border: 1px solid #e2e2e6;
  border-radius: 999px;
  cursor: pointer;
  font-family: 'Google Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: #4a4a4a;
  transition: border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease,
    transform 0.15s ease;
}
.rerun-chip img {
  width: 44px;
  height: 33px;
  object-fit: cover;
  border-radius: 999px;
  display: block;
}
.rerun-chip:hover {
  transform: translateY(-1px);
  border-color: #c9c9d0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.rerun-chip.is-active {
  color: #A31F34;   /* MIT red */
  border-color: #A31F34;
  box-shadow: 0 4px 16px rgba(163, 31, 52, 0.16);
}
.rerun-chip:focus-visible {
  outline: 2px solid #A31F34;
  outline-offset: 2px;
}

.rerun-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #12141a;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}
.rerun-viewer,
.rerun-viewer canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Loading / error veil over the canvas */
.rerun-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: #12141a url("../images/rerun_poster.jpg") center / cover no-repeat;
  transition: opacity 0.25s ease;
}
.rerun-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12, 14, 19, 0.82);
}
.rerun-overlay[hidden] {
  display: none;
}
.rerun-overlay-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  max-width: 32rem;
  text-align: center;
}
.rerun-status {
  color: #e7e7ea;
  font-family: 'Google Sans', sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}
.rerun-spinner {
  width: 26px;
  height: 26px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: rerun-spin 0.9s linear infinite;
}
.rerun-overlay[data-kind="error"] .rerun-spinner {
  display: none;
}
@keyframes rerun-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .rerun-spinner { animation-duration: 3s; }
}

.rerun-hint {
  margin-top: 0.9rem;
  color: #555;
  font-size: 0.92rem;
  line-height: 1.5;
  text-align: center;
}
.rerun-hint a {
  color: #A31F34;
}

@media screen and (max-width: 900px) {
  .rerun-demo { width: 100%; margin-left: 0; transform: none; }
  .rerun-stage { aspect-ratio: 4 / 3; }
  .rerun-chip { font-size: 0.85rem; padding-right: 0.7rem; }
  .rerun-chip img { width: 36px; height: 27px; }
}

/* Fullscreen control above the viewer */
.rerun-controls {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.55rem;
}
.rerun-fullscreen {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  background: #fff;
  border: 1px solid #e2e2e6;
  border-radius: 999px;
  cursor: pointer;
  font-family: 'Google Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  transition: border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.rerun-fullscreen:hover {
  color: #A31F34;   /* MIT red */
  border-color: #A31F34;
  box-shadow: 0 4px 14px rgba(163, 31, 52, 0.14);
}
.rerun-fullscreen:focus-visible {
  outline: 2px solid #A31F34;
  outline-offset: 2px;
}
.rerun-fs-icon {
  font-size: 0.8rem;
  line-height: 1;
}

/* In fullscreen the stage must drop its 16/9 box and fill the screen */
.rerun-stage:fullscreen,
.rerun-stage:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
}

/* "Live Demo" heading above the picker, with an MIT-red accent rule */
.rerun-heading {
  margin-bottom: 1.1rem !important;
}
.rerun-heading::after {
  content: "";
  display: block;
  width: 100%;           /* spans the full width of the demo block */
  height: 3px;
  margin: 0.8rem auto 0;
  background: #A31F34;   /* MIT red */
}
