@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;650;700&family=Noto+Sans:wght@400;500;600;700&display=swap');

:root {
  --ink: #363636;
  --muted: #686868;
  --link: #176fa3;
  --paper: #ffffff;
  --surface: #f5f5f5;
  --line: #dddddd;
  --sans: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'Manrope', 'Noto Sans', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: #10527b; text-decoration: underline; }
button { font: inherit; cursor: pointer; }
a, button, summary { touch-action: manipulation; }
a:focus-visible, button:focus-visible, summary:focus-visible,
video:focus-visible, [tabindex="0"]:focus-visible {
  outline: 3px solid #1674b2;
  outline-offset: 4px;
}
::selection { background: #dceef9; }
.section-width { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }

/* Paper identity, following the centered OpenVLA research-page layout. */
.hero { padding: 48px 0 42px; text-align: center; }
.hero h1 {
  margin: 0 auto;
  font: 600 44px/1.17 var(--display);
  letter-spacing: -1.35px;
}
.project-name, .paper-title { display: inline; }
.authors {
  max-width: 1000px;
  margin: 26px auto 0;
  color: var(--link);
  font-size: 19px;
  line-height: 1.8;
}
.author-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 7px; }
.authors span { white-space: nowrap; }
.authors span:not(:last-child)::after { content: ','; color: var(--ink); }
.authors sup { margin-left: 2px; font-size: 11px; }
.affiliations { margin: 18px auto 0; font-size: 16px; line-height: 1.8; }
.affiliations p { margin: 0; }
.affiliations .affiliation-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.affiliations .affiliation-row + .affiliation-row { margin-top: 6px; }
.affiliation-item { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; text-align: left; }
.affiliation-mark { position: relative; display: block; flex: 0 0 30px; width: 30px; height: 34px; overflow: hidden; }
.affiliation-mark img { display: block; max-width: none; }
/* Show the original emblem portions of the paper's wordmarks. */
.mark-eit img { position: absolute; left: -4px; top: -12px; width: 112px; height: auto; }
.mark-polyu img { width: 28px; height: 28px; margin-top: 3px; }
.mark-youtu img { width: 211px; height: auto; }
.affiliations sup { margin-right: 3px; font-size: 10px; }
.author-notes { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.author-notes span { margin-inline: 6px; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 24px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 84px;
  min-height: 40px;
  padding: 7px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 16px;
  line-height: 1.5;
  transition: background .15s;
}
.button:hover { background: #222222; color: white; text-decoration: none; }
.button-icon { display: block; width: 17px; height: 17px; object-fit: contain; filter: brightness(0) invert(1); }
.button-icon.brand-icon { width: 20px; height: 20px; filter: none; }
.section-nav { display: flex; justify-content: center; gap: 24px; margin-top: 20px; font-size: 14px; }
.section-nav a { color: var(--muted); }

/* Shared section typography and the real terminal video. */
h2 { margin: 0; font: 600 32px/1.3 var(--display); letter-spacing: -.6px; }
.section-heading { margin-bottom: 28px; text-align: center; }
.section-heading > p { max-width: 840px; margin: 14px auto 0; color: var(--muted); font-size: 17px; }
.demo-section { padding: 36px 0 48px; background: var(--surface); }
.demo-shell { overflow: hidden; border-radius: 6px; background: white; }
.demo-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  font-size: 12px;
}
.demo-toolbar > div { display: flex; align-items: center; gap: 10px; }
.demo-toolbar strong { font-weight: 600; }
.toolbar-separator { color: #aaaaaa; }
.demo-type { color: var(--muted); }
.demo-shell video { display: block; width: 100%; aspect-ratio: 16/9; background: #10151c; }
.results-tabs button {
  min-height: 38px;
  border: 1px solid #d2d2d2;
  border-radius: 5px;
  padding: 7px 16px;
  background: white;
  color: var(--ink);
  font-size: 14px;
}
.results-tabs button[aria-selected="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

/* Method and full-dataset results. */
.method-section { padding-top: 60px; padding-bottom: 54px; }
.paper-summary { max-width: 960px; margin: 18px auto 0; font-size: 17px; line-height: 1.85; }
.paper-subsection { max-width: 960px; margin: 46px auto 0; }
.paper-subsection h3 { margin: 0 0 12px; font: 600 23px/1.4 var(--display); letter-spacing: -.3px; }
.paper-subsection p { margin: 0; font-size: 16px; line-height: 1.9; }
.results-section .section-heading + .result-conclusion { margin-top: 0; }
.paper-figure { margin: 34px 0 0; }
.paper-figure > a { display: block; cursor: zoom-in; }
.paper-figure img { display: block; width: 100%; height: auto; }
.paper-figure figcaption { max-width: 920px; margin: 14px auto 0; color: var(--muted); text-align: center; font-size: 13px; }
.tradeoff-figure { max-width: 820px; margin-inline: auto; }
.paper-takeaway { margin-top: 32px; }
.results-section { padding: 50px 0 54px; background: #fafafa; }
.results-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 28px 0 24px; }
.paper-table { max-width: 1000px; margin: 0 auto; }
.paper-table-scroll { overflow-x: auto; border: 1px solid #e8e8e8; border-radius: 5px; background: white; }
.paper-table-scroll a { display: block; cursor: zoom-in; }
.paper-table-scroll img { min-width: 760px; }
.ood-table { max-width: 860px; }
.ood-table img { min-width: 640px; }
.results-note { margin: 18px 0 0; color: var(--muted); font-size: 13px; line-height: 1.9; }

/* Original paper evidence and ablations. */
.analysis-section { padding-top: 58px; padding-bottom: 56px; }
.analysis-block + .analysis-block { margin-top: 50px; }
.analysis-block .paper-subsection { margin-top: 0; }
.analysis-block .paper-figure { margin-top: 28px; }
.ablation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 58px; padding-top: 42px; border-top: 1px solid var(--line); }
.ablation-card { min-width: 0; }
.ablation-card h3 { margin: 0 0 12px; font: 600 23px/1.4 var(--display); letter-spacing: -.3px; }
.ablation-card > p { min-height: 92px; margin: 0; font-size: 16px; line-height: 1.9; }
.ablation-card .paper-figure { margin-top: 24px; }
.ablation-card figcaption { font-size: 12px; }

/* Citation and source acknowledgements. */
.citation-section { max-width: 960px; padding-top: 54px; padding-bottom: 50px; }
.citation-section > p { margin: 13px 0 22px; color: var(--muted); }
.citation-block { overflow: hidden; border-radius: 5px; background: var(--surface); }
.citation-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 13px; }
.citation-toolbar button { padding: 5px 10px; border: 1px solid #cccccc; border-radius: 4px; background: white; color: var(--ink); font-size: 12px; }
.citation-toolbar button:hover { background: #ebebeb; }
.citation-block pre { overflow-x: auto; margin: 0; padding: 20px; font: 12px/1.9 ui-monospace, SFMono-Regular, Consolas, monospace; }
.site-footer { padding: 27px 24px; background: var(--surface); text-align: center; }
.site-footer p { margin: 4px 0; color: var(--muted); font-size: 13px; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 9px 14px; background: var(--ink); color: white; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .hero h1 { font-size: 37px; }
  .authors { font-size: 18px; }
}

@media (max-width: 700px) {
  .section-width { width: calc(100% - 32px); }
  .hero { padding: 34px 0 32px; }
  .hero h1 { font-size: 29px; line-height: 1.23; letter-spacing: -.75px; }
  .desktop-break { display: none; }
  .authors { margin-top: 20px; font-size: 16px; line-height: 1.8; }
  .author-row { gap: 0 6px; }
  .authors sup { font-size: 9px; }
  .affiliations { margin-top: 14px; font-size: 13px; }
  .affiliations .affiliation-row { gap: 8px 16px; }
  .author-notes { font-size: 11px; }
  .hero-actions { margin-top: 22px; }
  .button { min-height: 40px; padding: 7px 17px; font-size: 15px; }
  .section-nav { margin-top: 18px; gap: 22px; font-size: 13px; }
  h2 { font-size: 27px; }
  .section-heading { margin-bottom: 22px; }
  .section-heading > p { font-size: 15px; line-height: 1.7; }
  .section-heading br { display: none; }
  .demo-section { padding: 28px 0 34px; }
  .demo-toolbar { gap: 6px; padding: 10px 11px; font-size: 10px; }
  .demo-type { font-size: 9px; }
  .results-tabs { gap: 6px; }
  .results-tabs button { padding: 7px 10px; font-size: 12px; }
  .method-section { padding-top: 40px; padding-bottom: 36px; }
  .paper-summary { font-size: 15px; }
  .paper-subsection { margin-top: 32px; }
  .paper-subsection h3 { font-size: 20px; }
  .paper-subsection p { font-size: 15px; line-height: 1.8; }
  .paper-figure { margin-top: 28px; }
  .paper-figure figcaption { font-size: 12px; }
  .results-section { padding: 36px 0; }
  .results-note { font-size: 12px; }
  .analysis-section { padding-top: 38px; padding-bottom: 36px; }
  .analysis-block + .analysis-block { margin-top: 36px; }
  .ablation-grid { grid-template-columns: 1fr; gap: 36px; margin-top: 36px; padding-top: 30px; }
  .ablation-card h3 { font-size: 20px; }
  .ablation-card > p { min-height: 0; font-size: 15px; line-height: 1.8; }
  .citation-section { padding-top: 38px; padding-bottom: 36px; }
  .citation-section > p { font-size: 15px; }
  .citation-block pre { padding: 14px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
