:root {
  --accent:      #edcd6a;  /* muted gold (title & IROS highlights keep the brighter #ffda33) */
  --accent-dark: #c9a43a;
  --accent-soft: #faf4e0;
  --ink:   #1c1c1a;
  --ink2:  #4a4a46;
  --ink3:  #7a7a76;
  --sans:  "Helvetica Neue", Helvetica, Arial, sans-serif;
}
html, body { background: #fff; }
body, button, input, select, textarea { font-family: var(--sans); }
.title, .subtitle { font-family: var(--sans); color: var(--ink); letter-spacing: -.01em; }
.content, p, li { color: var(--ink2); font-size: 1.05rem; line-height: 1.7; }
.content a, p a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 2px; }
.content a:hover, p a:hover { color: var(--ink); background: var(--accent-soft); text-decoration-color: var(--accent-dark); }

.hero.is-light { background: var(--accent-soft); }
.title.publication-title { font-weight: 600; font-size: 2rem; }
/* keep the title on one line on wider screens */
@media (min-width: 769px) {
  .title.publication-title { white-space: nowrap; font-size: clamp(1.6rem, 3.1vw, 2.2rem); }
}
.publication-authors { font-size: 1rem; }
.author-block { display: inline-block; }
.author-block a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 2px; }
.author-block a:hover { background: var(--accent-soft); text-decoration-color: var(--accent-dark); }
.is-affiliation .author-block { font-size: 1rem; color: var(--ink3); display:block; }

/* nerfies-style link buttons */
.publication-links .button {
  background: var(--ink); color: #fff; border: none; border-radius: 999px;
  font-weight: 500;
}
.publication-links .button:hover { background: var(--accent); color: var(--ink); }
.publication-links .button:hover .icon { color: var(--ink); }
.publication-links .button .icon { color: #fff; }

/* Code button: show a "Coming soon!" speech bubble below on hover */
.code-btn { cursor: default; position: relative; overflow: visible; }
.code-tip {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(-4px);
  background: var(--ink); color: #fff; font-size: .8rem; font-weight: 500; white-space: nowrap;
  padding: .35rem .75rem; border-radius: 8px; pointer-events: none; z-index: 10;
  opacity: 0; visibility: hidden; transition: opacity .15s, transform .15s, visibility .15s;
}
.code-tip::before {
  content: ""; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-bottom-color: var(--ink);
}
.code-btn:hover .code-tip { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

.section-heading {
  font-family: var(--sans); font-size: 2.3rem; font-weight: 600;
  letter-spacing: -.01em; text-align: center; color: var(--ink); margin-bottom: 1.75rem;
}
.eyebrow {
  font-family: 'IBM Plex Mono', monospace; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .14em; color: var(--ink3);
  font-weight: 600; text-align: center; margin-bottom: .4rem;
}

.teaser img, .teaser video { border-radius: 10px; width: 100%; display: block; }
.teaser .caption { color: var(--ink3); font-size: .9rem; margin-top: .8rem; }
.tagline { font-family: "Times New Roman", Times, serif; text-align: center; font-size: 1.95rem; font-weight: 700; line-height: 1.3; letter-spacing: -.005em; color: var(--ink); margin-bottom: .35rem; }
.tagline em { font-style: italic; font-weight: 700; color: #c8940c; }  /* darker than the title yellow so it stays legible as text */
.research-q { font-family: "Times New Roman", Times, serif; font-style: italic; text-align: center; font-size: 1.5rem; line-height: 1.3; color: var(--ink2); margin-bottom: 2.5rem; }
.research-q em { font-style: italic; font-weight: 700; color: var(--ink); }

/* Stage 1 / Stage 2 labels, tinted to match the architecture figure */
.stage-tag { padding: .1em .35em; border-radius: 4px; }
.stage-tag.teacher { background: #f2f2f2; }
.stage-tag.student { background: #e9f0fd; }

.results-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.results-table th, .results-table td { padding: .6rem .9rem; text-align: center; border-bottom: 1px solid #e0e0dd; }
.results-table thead th { color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--accent); }
.results-table td:first-child, .results-table th:first-child { text-align: left; }
.results-table tr.ours { background: var(--accent-soft); font-weight: 600; }
.results-table caption { caption-side: bottom; color: var(--ink3); font-size: .95rem; margin-top: .7rem; text-align: left; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.5rem 0 0; }
.stat { text-align: center; }
.stat .num { font-family: 'EB Garamond', serif; font-size: 2.7rem; color: var(--ink); line-height: 1; }
.stat .lbl { color: var(--ink3); font-size: .95rem; margin-top: .3rem; }

.fig { text-align: center; }
.fig img { border-radius: 10px; width: 100%; }
.fig figcaption { color: var(--ink3); font-size: .95rem; margin-top: .6rem; }

/* image slider (Offline Evaluation) */
.slider-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; margin-bottom: 1.25rem; }
.slider-label { font-weight: 600; font-size: .95rem; color: var(--ink); text-align: center; margin-bottom: .45rem; }
.slider { position: relative; overflow: hidden; border-radius: 10px; }
.slider-col { min-width: 0; }
@media (max-width: 768px) { .slider-pair { grid-template-columns: minmax(0, 1fr); } }
.slider-track { display: flex; transition: transform .35s ease; }
.slide { flex: 0 0 100%; }
.slide img { display: block; width: 100%; border-radius: 10px; }
.slide-placeholder { aspect-ratio: 16 / 9; align-items: center; justify-content: center; border: 2px dashed #ccc; border-radius: 10px; color: var(--ink3); font-size: .85rem; padding: 1rem; text-align: center; }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.85); color: var(--ink); font-size: 1.5rem; line-height: 1;
  box-shadow: 0 1px 4px rgba(0,0,0,.15); display: flex; align-items: center; justify-content: center; padding-bottom: 3px;
}
.slider-arrow:hover { background: var(--accent); }
.slider-arrow.prev { left: .6rem; }
.slider-arrow.next { right: .6rem; }
.slider-dots {
  position: absolute; left: 50%; bottom: .7rem; transform: translateX(-50%); z-index: 2;
  display: flex; gap: .45rem;
}
.slider-dots button { width: 8px; height: 8px; padding: 0; border: none; border-radius: 50%; background: rgba(255,255,255,.7); box-shadow: 0 0 3px rgba(0,0,0,.5); cursor: pointer; }
.slider-dots button.active { background: var(--accent); }

/* colour legend for the offline-evaluation trajectory figure */
.traj-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.1rem; font-size: .9rem; color: var(--ink2); margin-bottom: .9rem; }
.traj-legend span { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.traj-legend .line { display: inline-block; width: 22px; height: 4px; border-radius: 2px; }
.traj-legend .star { font-style: normal; font-size: 1.1rem; line-height: 1; -webkit-text-stroke: .5px #b8860b; }

/* row of four comparison videos (Results) */
.video-row-title { font-size: 1.25rem; font-weight: 600; color: var(--ink); text-align: center; margin-bottom: .9rem; }
.video-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin-bottom: 2rem; }
.video-cell { margin: 0; text-align: center; }
.video-cell video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 3px solid #8a8a86; border-radius: 8px; background: #000; }
.video-cell figcaption { color: var(--ink3); font-size: .9rem; margin-top: .4rem; }
.video-cell.ours video { border-color: #22a55b; }
.video-cell.bad video { border-color: #c62828; }
.video-cell.ours figcaption { color: #1e9150; font-weight: 600; }
.video-note { background: #8a8a86; color: #fff; font-size: .85rem; font-weight: 600; line-height: 1.3; padding: .35rem .5rem; border-radius: 8px; margin-bottom: .4rem; }
.video-cell.ours .video-note { background: #22a55b; }
.video-cell.bad .video-note { background: #c62828; }
@media (max-width: 768px) { .video-row { grid-template-columns: repeat(2, 1fr); } }

pre code { font-family: 'IBM Plex Mono', monospace; font-size: .92rem; }
.bibtex-box { background: #f6f7f5; border: none; border-radius: 12px; overflow-x: auto; }
.bibtex-box pre { background: transparent; color: var(--ink2); }

/* light grey rule between consecutive sections (teaser flows straight into the abstract) */
.section + .section { border-top: 1px solid #e8e8e6; }
.teaser + .section { border-top: none; }

/* page fills the viewport so the footer sticks to the very bottom */
body { display: flex; flex-direction: column; min-height: 100vh; }
.footer { background: #fff; border-top: 1px solid #e8e8e6; margin-top: auto; padding: 2.5rem 1.5rem; }
.footer p { color: var(--ink3) !important; }
.footer a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

.back-link {
  position: fixed; top: 1rem; left: 1.25rem; z-index: 100;
  color: var(--ink); font-size: .85rem; font-weight: 500; text-decoration: none;
  background: rgba(255,255,255,.75); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: .4rem .8rem; border-radius: 999px; border: 1px solid rgba(201,164,58,.35);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.back-link:hover { background: var(--accent-soft); border-color: var(--accent-dark); }

.img-fallback { border:2px dashed #ccc; border-radius:10px; padding:3rem 1rem; text-align:center; color:var(--ink3); }
