/* LPR project page.
   The black LPR bar, the footer, the colors and the NVIDIA Sans font tie the page to NVIDIA Learning
   and Perception Research (research.nvidia.com/labs/lpr/). Keep those; style the content freely. */

@font-face {
  font-family: "NVIDIA Sans";
  src: url("https://images.nvidia.com/etc/designs/nvidiaGDC/clientlibs_base/fonts/nvidia-sans/GLOBAL/var/NVIDIASansVF_W_Wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --nv-green: #76b900;
  --nv-green-dark: #456f00; /* green for text on white (5.9:1) */
  --ink: #171a1c;
  --muted: #5d656b;
  --line: #d9dddf;
  --surface: #f5f6f6;
  --focus: #3d7fc2;
  --radius: 4px;
  --page: 64rem;
  --text: 52rem;
  --font: "NVIDIA Sans", Arial, Helvetica, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: #fff; font: 1.0625rem/1.65 var(--font); }
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--nv-green-dark); text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.skip-link {
  position: absolute; top: -4rem; left: 0.75rem; z-index: 10;
  padding: 0.5rem 0.75rem; background: var(--nv-green); color: #000; font-weight: 700;
}
.skip-link:focus { top: 0.75rem; }

/* LPR bar */
.lpr-bar { background: #000; }
.lpr-bar-inner {
  display: flex; align-items: center; gap: 0.9rem;
  max-width: var(--page); min-height: 3.25rem; margin: 0 auto; padding: 0 1.25rem;
}
.lpr-logo { display: block; color: #fff; }
.lpr-logo svg { display: block; width: 6.75rem; height: 1.25rem; }
.lpr-divider { width: 1px; height: 1.25rem; background: #4d5358; }
.lpr-lab { color: #fff; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.01em; text-decoration: none; }
.lpr-lab:hover { color: var(--nv-green); }

/* Paper header */
main { padding: 0 1.25rem; }
.paper-header { max-width: var(--page); margin: 0 auto; padding: 3.5rem 0 2.25rem; text-align: center; }
.venue {
  margin: 0 0 0.75rem; color: var(--nv-green-dark);
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
h1 {
  max-width: var(--text); margin: 0 auto;
  font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12;
  text-wrap: balance;
}
.authors { max-width: var(--text); margin: 1.25rem auto 0; }
.authors a { color: var(--ink); text-decoration-color: var(--line); }
.authors a:hover { text-decoration-color: var(--nv-green); }
.affiliations { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.9375rem; }
.affiliations span + span { margin-left: 1rem; }
.paper-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 1.75rem; }

.button {
  display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0.5rem 1.1rem;
  border: 1px solid var(--ink); border-radius: var(--radius); background: var(--ink); color: #fff;
  font: inherit; font-size: 0.9375rem; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
}
.button:hover { border-color: var(--nv-green); background: var(--nv-green); color: #000; }
.button-quiet { border-color: var(--line); background: #fff; color: var(--ink); }

/* Content */
.teaser { max-width: var(--page); margin: 0 auto; }
section { max-width: var(--text); margin: 0 auto; padding-top: 2.75rem; }
h2 { margin: 0 0 1rem; font-size: 1.5rem; letter-spacing: -0.01em; line-height: 1.25; }
h2::after { content: ""; display: block; width: 2.5rem; height: 3px; margin-top: 0.5rem; background: var(--nv-green); }
p { margin: 0 0 1rem; }
figure { margin: 0 0 1.5rem; }
figure img, figure video { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
figcaption { margin-top: 0.6rem; color: var(--muted); font-size: 0.9375rem; }
.teaser figcaption { text-align: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.25rem; }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
pre {
  margin: 0; overflow-x: auto; padding: 1rem 1.25rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  font: 0.875rem/1.5 var(--mono);
}

/* Footer */
.lpr-footer { margin-top: 4rem; border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 0.8125rem; }
.lpr-footer-inner { max-width: var(--page); margin: 0 auto; padding: 1.75rem 1.25rem 2.25rem; }
.lpr-footer p { margin: 0 0 0.75rem; }
.lpr-footer a { color: var(--muted); }
.lpr-footer .legal { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; margin-bottom: 0.75rem; }

@media (max-width: 40rem) {
  body { font-size: 1rem; }
  .paper-header { padding-top: 2.25rem; }
  .lpr-bar-inner { gap: 0.7rem; }
  .lpr-logo svg { width: 5.5rem; height: 1rem; }
  .lpr-lab { font-size: 0.75rem; }
}

/* Edge-wise: spacious paper layout inspired by the PivotOPD project page. */
:root {
  --page: 68.75rem;
  --text: 53.75rem;
  --ink: #1a1a1a;
  --muted: #686e70;
  --line: #e2e5df;
  --surface: #f4f5f2;
  --radius: 12px;
}
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { -webkit-font-smoothing: antialiased; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
.lpr-bar { border-top: 4px solid var(--nv-green); }
.lpr-bar-inner { min-height: 3.5rem; padding-inline: 24px; }
main { padding: 0; }
.container { max-width: var(--page); margin-inline: auto; padding-inline: 24px; }
.paper-header { padding: 64px 24px 40px; }
.hero-logo { display: inline-block; color: #000; margin-bottom: 30px; }
.hero-logo svg { display: block; width: 190px; height: 35px; }
.hero-logo:hover { color: #000; }
.venue { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; margin-bottom: 18px; }
h1 { max-width: 1000px; font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.project-name { color: #000; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 600; letter-spacing: -0.035em; white-space: nowrap; }
.title-colon { display: inline-block; margin-left: 0.08em; margin-right: 0.05em; font-weight: 500; }
.arxiv-reference { margin: 18px 0 0; font: 400 14px/1.6 var(--mono); letter-spacing: 0.08em; color: var(--nv-green-dark); }
.title-accent { color: var(--nv-green-dark); }
.paper-subtitle { max-width: var(--text); margin: 18px auto 0; color: var(--muted); font-size: clamp(20px, 2.4vw, 28px); line-height: 1.4; }
.authors { font-size: 19px; margin-top: 26px; }
.authors sup { font-size: 11px; margin-left: 2px; }
.authors { max-width: 1000px; display: flex; flex-wrap: wrap; justify-content: center; column-gap: 18px; row-gap: 5px; }
.author { white-space: nowrap; }
.author-notes { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.author-notes sup { margin-right: 3px; }
.authors a { text-decoration: underline; }
.affiliations { margin-top: 6px; font-size: 15px; }
.paper-links { gap: 10px; margin-top: 28px; }
.button { gap: 9px; padding: 12px 20px; min-height: 46px; border-radius: 999px; font-size: 15px; font-weight: 600; transition: background 150ms, border-color 150ms, color 150ms; }
.button:hover { text-decoration: none; }
.button svg { width: 18px; height: 18px; flex-shrink: 0; }
.button-pending { background: #f0f1ee; border-color: #f0f1ee; color: #666c63; cursor: default; }
.button-pending:hover { background: #f0f1ee; border-color: #f0f1ee; color: #666c63; }
.resource-status { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; padding-left: 8px; border-left: 1px solid #d4d8d0; }
.teaser { padding: 0 24px 56px; max-width: var(--page); }
.teaser img { border: 1px solid #d7dfcb; border-radius: 16px; box-shadow: 0 18px 48px rgb(32 45 12 / 10%); }
.teaser figcaption { margin-top: 32px; }
.teaser figcaption strong { color: var(--nv-green-dark); }
.eyebrow { display: block; margin: 0 0 12px; font: 600 11px/1.5 var(--mono); letter-spacing: 0.15em; text-transform: uppercase; color: var(--nv-green-dark); }
.teaser figcaption p { margin: 0; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.45; color: var(--ink); font-weight: 600; }
.teaser figcaption p span { display: inline-block; margin-top: 8px; color: var(--muted); font-size: 16px; font-weight: 400; }
section { max-width: none; margin: 0; padding: 56px 0; }
.section-light { background: var(--surface); border-block: 1px solid #eceee8; }
h2 { margin-bottom: 24px; font-size: clamp(28px, 3vw, 34px); font-weight: 800; letter-spacing: -0.025em; }
h2::after { width: 64px; height: 5px; margin-top: 14px; }
.section-intro { max-width: var(--text); color: #535950; font-size: 18px; margin-bottom: 28px; }
#abstract .section-intro { max-width: none; margin: 0; font-size: 17px; line-height: 1.7; text-wrap: pretty; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 30px 0; }
.step { padding: 24px; border: 1px solid var(--line); border-top: 5px solid var(--nv-green); border-radius: 12px; background: #fff; }
.step-number { color: var(--nv-green-dark); font: 700 13px/1.5 var(--mono); letter-spacing: 0.1em; }
.step h3 { margin: 16px 0 10px; font-size: 20px; line-height: 1.3; }
.step p { font-size: 15px; color: var(--muted); margin: 0; }
.figure-card { padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; margin: 28px 0 0; }
.insight-figure img { border: 0; border-radius: 0; background: #fff; }
.insight-figure figcaption { margin-top: 22px; font-size: 17px; line-height: 1.7; color: #535950; text-wrap: pretty; }
.harness-figure img { max-width: 480px; margin-inline: auto; }
.figure-placeholder { min-height: 240px; background: #f7f8f5; border: 1px dashed #d9ded1; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 24px; }
.figure-placeholder strong { color: #59634e; font-size: 19px; font-weight: 500; }
.figure-placeholder > span { color: var(--muted); font-size: 14px; }
.figure-placeholder .placeholder-symbol { font-size: 36px; color: var(--nv-green-dark); }
figcaption { font-size: 14px; margin: 14px 0 2px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 32px 0 0; }
.metric { padding: 24px; background: #171a16; color: #fff; border-radius: 12px; }
.metric-value { display: block; color: #a4d94c; font-size: clamp(30px, 3vw, 44px); font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
.metric h3 { margin: 18px 0 6px; font-size: 17px; font-weight: 500; }
.metric p { margin: 16px 0 0; color: #b9c0b4; font-size: 14px; }
.metric p strong { color: #fff; font-weight: 700; }
.results-description { margin-top: 36px; }
.results-description h3 { margin: 0 0 14px; font-size: 22px; font-weight: 700; line-height: 1.35; }
.results-description p { margin: 0; font-size: 17px; line-height: 1.7; color: #535950; text-wrap: pretty; }
.results-description strong { color: var(--ink); font-weight: 700; }
.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid .figure-placeholder { min-height: 220px; }
.section-head { align-items: center; margin-bottom: 24px; }
.section-head h2 { margin-bottom: 0; }
pre { background: #171a16; color: #e8ece4; border: 0; border-left: 5px solid var(--nv-green); padding: 24px; font-size: 14px; line-height: 1.7; }
.citation-note { margin-top: 14px; color: var(--muted); font-size: 13px; }
.back-to-top { text-align: center; margin: 40px 0 0; font-size: 14px; font-weight: 600; }
.lpr-footer { margin-top: 0; background: #fff; }
.lpr-footer-inner { padding: 30px 24px 36px; }
@media (max-width: 760px) {
  .paper-header { padding-top: 40px; }
  .authors { font-size: 17px; }
  .steps, .metrics { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  section { padding: 40px 0; }
  .teaser { padding-bottom: 40px; }
  .teaser figcaption p span { font-size: 14px; }
  .container, .paper-header, .teaser { padding-inline: 20px; }
  .lpr-bar-inner { padding-inline: 20px; }
  .figure-placeholder { min-height: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
