/* Academic project page styling, visually inspired by AgentVLN. */
@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/noto-sans-latin.woff2") format("woff2");
}
:root {
  --ink: #363636;
  --body: #4a4a4a;
  --muted: #707070;
  --accent: #209cee;
  --accent-deep: #156ba5;
  --paper: #fff;
  --wash: #f5f5f5;
  --line: #dbdbdb;
  --sans: "Noto Sans", Arial, Helvetica, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--body); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body.paper-page { font-size: 18px; line-height: 1.7; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
figure, p, h1, h2, h3 { margin: 0; }
strong { color: var(--ink); font-weight: 700; }
button, a { transition: color .15s ease, background-color .15s ease, border-color .15s ease; }
:focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 4px; }
::selection { background: #dceeff; color: #26394a; }
[hidden] { display: none !important; }
.shell { width: min(960px, calc(100% - 48px)); margin-inline: auto; }
.reading-width { width: min(768px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 30; padding: 10px 20px; background: var(--ink); color: white; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Title, authors, and publication links. */
.publication-header { padding-top: 48px; padding-bottom: 48px; text-align: center; }
.publication-title { color: var(--ink); font-size: 48px; font-weight: 600; line-height: 1.125; letter-spacing: -1.6px; margin-bottom: 24px; overflow-wrap: break-word; text-wrap: balance; }
.publication-venue { margin: -4px 0 20px; font-size: 20px; font-weight: 600; }
.publication-authors, .publication-affiliations, .author-notes { font-size: 20px; line-height: 1.6; }
.author-block { display: inline-block; }
.publication-authors a, .author-name { color: var(--accent); }
.publication-authors a:hover { text-decoration: underline; }
sup { font-size: .7em; vertical-align: super; line-height: 0; }
.publication-affiliations span { display: block; }
.author-notes { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 15px; margin-top: 4px; }
.publication-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 20px; }
.resource-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 7px 19px; background: #363636; color: white; border: 1px solid transparent; border-radius: 999px; font-size: 16px; line-height: 24px; text-decoration: none; }
.resource-button svg { width: 17px; height: 17px; }
.resource-button:disabled { opacity: 1; }
.resource-button:not(:disabled):hover { background: #262626; color: white; text-decoration: none; }

/* White, centered paper sections with a narrower reading column. */
.section { padding-block: 48px; }
h2 { color: var(--ink); font-size: 32px; font-weight: 600; line-height: 1.125; }
.paper-page .section h2 { text-align: center; margin-bottom: 24px; }
h3 { color: var(--ink); font-size: 18px; font-weight: 600; line-height: 1.5; }
.abstract-content, .method-description, .results-notes { text-align: justify; }
.abstract-content p + p, .method-description p + p, .results-notes p + p { margin-top: 16px; }
.teaser { padding-bottom: 48px; }
.teaser img, .method-figure img { width: 100%; }
figcaption { margin-top: 20px; }
.teaser figcaption { text-align: center; font-size: 20px; line-height: 1.4; }
.method-figure figcaption { text-align: justify; }
.method-description { margin-top: 24px; }
.section-subtitle { font-size: 23px; line-height: 1.4; text-align: center; margin-bottom: 24px; }
.demo-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }

/* Paper figures retain their original aspect ratios and link to full resolution. */
.paper-figure img { width: 100%; height: auto; }
.figure-link { display: block; cursor: zoom-in; }
.paper-figure figcaption { font-size: 18px; line-height: 1.7; text-align: justify; }
.teaser .paper-figure figcaption { font-size: 20px; line-height: 1.4; text-align: center; }
.figure-description { max-width: 768px; margin: 24px auto 0; text-align: justify; }
.figure-description p + p { margin-top: 16px; }
.secondary-figure { margin: 36px auto 0; max-width: 800px; }
.geometry-targets { max-width: 768px; }
.attention-figure { max-width: 700px; margin-inline: auto; }
.supplementary { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 18px; }
.supplementary summary { color: var(--accent-deep); cursor: pointer; font-weight: 600; }
.supplementary[open] summary { margin-bottom: 24px; }
.supplementary > p { max-width: 768px; margin: 0 auto 24px; }
.resource-button small { font-size: 12px; }

/* Accessible tables transcribed from the manuscript. */
.results-table-wrap { position: relative; overflow-x: auto; }
.results-table { width: 100%; border-collapse: collapse; border-block: 2px solid #555; text-align: right; white-space: nowrap; font-size: 17px; }
.results-table th, .results-table td { padding: 13px 18px; }
.results-table thead { border-bottom: 1px solid #777; }
.results-table th:first-child { text-align: left; }
.results-table thead th { font-weight: 600; }
.results-table tbody th { font-weight: 400; }
.results-table td { font-variant-numeric: tabular-nums; }
.results-table .ours { border-top: 1px solid #bbb; background: #f5f5f5; }
.results-table .ours th, .results-table .ours td { font-weight: 700; }
.results-table caption:not(.sr-only) { padding-bottom: 16px; text-align: center; }
.results-table .table-group th { background: #fafafa; color: var(--muted); font-size: 12px; font-weight: 400; text-align: left; white-space: normal; border-top: 1px solid var(--line); }
.results-table th[scope="colgroup"] { text-align: center; }
.benchmark-table thead tr:last-child th, .backbone-table thead tr:last-child th { text-align: right; }
.table-note { font-size: 13px; margin-top: 14px; }
.results-notes { margin-top: 24px; }

/* Citation and acknowledgements. */
.citation-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.paper-page .citation-heading h2 { text-align: left; margin-bottom: 0; }
.copy-button { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 4px; background: white; color: var(--body); font-size: 13px; }
.copy-button svg { width: 15px; height: 15px; }
.copy-button:hover { background: var(--wash); border-color: #aaa; }
.bibtex-code { margin: 0; padding: 20px 24px; background: #f5f5f5; color: #4a4a4a; font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-x: auto; tab-size: 2; }
.copy-feedback { min-height: 21px; color: var(--muted); font-size: 13px; margin-top: 8px; }
.paper-footer { padding: 48px 0 64px; background: #fafafa; font-size: 15px; }
.footer-links { display: flex; gap: 12px; align-items: center; margin-top: 20px; font-size: 13px; }

/* The repository landing page keeps its separate visual identity. */
body.site-index { --ink: #202b28; --body: #202b28; --muted: #65726c; --accent: #33735d; --accent-deep: #255642; --paper: #fdfdfb; --wash: #f3f5f1; --line: #dfe5de; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; line-height: 1.7; }
.site-index .shell { width: min(1120px, calc(100% - 64px)); }
.accent { color: var(--accent); }
.site-header { position: sticky; top: 0; z-index: 20; background: rgb(253 253 251 / 96%); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.nav-shell { max-width: 1328px; margin: auto; min-height: 73px; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 17px; font-weight: 650; text-decoration: none; letter-spacing: -.5px; white-space: nowrap; }
.brand-mark { font-family: Georgia, "Times New Roman", serif; color: var(--accent); font-weight: 700; font-size: 26px; }
.back-link { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; text-decoration: none; color: var(--muted); white-space: nowrap; }
.back-link span { font-size: 18px; }
.back-link:hover { color: var(--accent-deep); }
.eyebrow { color: var(--accent); font-size: 10px; font-weight: 650; line-height: 1.5; letter-spacing: 1.9px; text-transform: uppercase; }
.site-index .project-index { min-height: calc(100svh - 160px); max-width: 960px; padding-top: 95px; padding-bottom: 100px; }
.project-index h1 { font-size: clamp(37px, 5.5vw, 62px); letter-spacing: -2.7px; line-height: 1.2; font-weight: 550; margin-top: 17px; }
.index-intro { color: var(--muted); margin-top: 18px; font-size: 15px; }
.project-card { display: block; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 48px; max-width: 680px; background: white; }
.project-card:hover { border-color: var(--accent); text-decoration: none; }
.project-card-art { background: var(--wash); border-bottom: 1px solid var(--line); }
.project-card-art img { width: 100%; }
.project-card-body { display: flex; justify-content: space-between; align-items: center; padding: 27px 30px; gap: 20px; }
.project-card h2 { margin-top: 8px; font-size: 29px; letter-spacing: -1.3px; font-weight: 550; }
.project-card p { color: var(--muted); margin-top: 8px; font-size: 13px; }
.project-card-arrow { font-size: 29px; color: var(--accent); }
.site-index .site-footer { padding: 33px 0; text-align: center; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.site-index .site-footer span { margin-inline: 12px; }

@media (max-width: 768px) {
  .publication-title { font-size: 38px; letter-spacing: -1px; }
  .publication-authors, .publication-affiliations, .author-notes { font-size: 18px; }
  .publication-header { padding-top: 40px; padding-bottom: 32px; }
  .section { padding-block: 36px; }
  .teaser { padding-bottom: 32px; }
  .teaser .paper-figure figcaption { font-size: 18px; }
}
@media (max-width: 480px) {
  body.paper-page { font-size: 17px; }
  .shell, .reading-width { width: calc(100% - 36px); }
  .publication-header { padding-top: 32px; padding-bottom: 28px; }
  .publication-title { font-size: 32px; line-height: 1.18; letter-spacing: -.8px; margin-bottom: 22px; }
  .publication-authors, .publication-affiliations { font-size: 17px; line-height: 1.8; }
  .author-notes { font-size: 14px; column-gap: 12px; margin-top: 8px; }
  .publication-links { margin-top: 20px; }
  .section { padding-block: 32px; }
  h2 { font-size: 28px; }
  .abstract-content, .method-description, .method-figure figcaption, .results-notes, .figure-description, .paper-figure figcaption { text-align: left; }
  .paper-figure figcaption { font-size: 17px; }
  .teaser .paper-figure figcaption { font-size: 18px; }
  .section-subtitle { font-size: 20px; }
  .results-table { font-size: 15px; }
  .results-table th, .results-table td { padding: 12px; }
  .table-note { font-size: 12px; }
  .bibtex-code { padding: 18px; font-size: 12px; }
  .copy-button { font-size: 12px; padding: 7px 9px; }
  .paper-footer { padding-block: 32px 48px; font-size: 14px; }
  .site-index .shell { width: calc(100% - 36px); }
  .nav-shell { min-height: 61px; padding-inline: 18px; }
  .brand { font-size: 15px; gap: 8px; }
  .back-link { font-size: 11px; gap: 6px; }
  .site-index .project-index { padding-top: 57px; padding-bottom: 65px; }
  .project-index h1 { letter-spacing: -1.5px; }
  .project-card { margin-top: 33px; }
  .project-card-body { padding: 20px; }
  .project-card p { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
