/* 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: 78rem;
  --text: 70rem;
  --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; 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: 2.75rem 0 60px; text-align: center; }
.venue {
  margin: 0 0 0.75rem; color: var(--nv-green-dark);
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0; text-transform: uppercase;
}
h1 {
  max-width: var(--text); margin: 0 auto;
  font-size: 2.625rem; font-weight: 600; letter-spacing: 0; line-height: 1.2;
  text-wrap: balance;
}
.title-line { display: block; }
h1 strong { color: var(--nv-green); font-weight: 800; white-space: nowrap; }
.title-emoji { display: inline-block; width: auto; height: 1.1em; vertical-align: -0.15em; }
.authors { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; max-width: var(--text); margin: 1.25rem auto 0; padding: 0; list-style: none; font-size: 21.675px; }
.authors li { white-space: nowrap; }
.authors sup { font-size: 0.6em; margin-left: 0.15em; }
.authors a { color: var(--nv-green); text-decoration: underline; }
.authors a:hover { color: var(--nv-green-dark); }
.institution-badges { display: flex; justify-content: center; align-items: center; gap: 2.75rem; max-width: 100%; margin: 1.25rem auto 0; min-height: 4.125rem; }
.institution-badge { position: relative; display: flex; align-items: center; width: 14rem; min-width: 0; height: 4.125rem; }
.institution-badge-sfu { width: 15.375rem; }
.institution-badge img { width: 100%; height: auto; }
.institution-badge-nvidia img { transform: translateY(-7px); }
.institution-badge sup { position: absolute; left: -0.875rem; top: 0.375rem; font-size: 0.75rem; }
.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.75rem; margin-top: 1.5rem; }

.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); }
.paper-links .button { justify-content: center; gap: 0.5rem; min-width: 7.25rem; min-height: 2.75rem; padding: 0.625rem 1.25rem; border-radius: 999px; font-size: 1rem; font-weight: 500; transition: background-color 150ms, border-color 150ms, color 150ms; }
.paper-links .button svg { flex: 0 0 18px; }
.paper-links .button:disabled { opacity: 1; cursor: not-allowed; border-color: var(--ink); background: var(--ink); color: #fff; }

/* Content */
.teaser { max-width: 100rem; margin: 0 auto; }
.teaser img { max-height: clamp(12rem, calc(100svh - 460px), 38rem); object-fit: contain; }
section { max-width: var(--text); margin: 0 auto; padding-top: 2.75rem; }
h2 { margin: 0 0 1rem; font-size: 2rem; letter-spacing: 0; 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%; }
figure > a { display: block; }
figure > a:focus-visible { outline-offset: 5px; }
figcaption { margin-top: 0.6rem; color: var(--muted); font-size: 0.9375rem; }
.teaser figcaption { text-align: center; }
.section-index { display: block; margin-bottom: 0.75rem; color: var(--nv-green-dark); font-size: 0.8125rem; font-weight: 600; }
.overview-comparison { margin: 1.5rem 0 0; }
.overview-comparison video, .simulation-video video { background: #101810; border-radius: 8px; }
.method-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.method-steps { margin-block: 1.5rem; }
.method-steps article { border-top: 1px solid var(--line); padding-top: 1rem; }
.step-number { color: var(--nv-green-dark); font-size: 0.8125rem; font-weight: 700; }
.method-steps h3 { font-size: 1.125rem; margin: 0.5rem 0; }
.method-steps p, .method-note { font-size: 0.9375rem; color: var(--muted); }
#analysis h3 { margin: 2rem 0 0.75rem; font-size: 1.25rem; }
.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; }
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.625rem; }
  .authors { font-size: 17.85px; gap: 0.375rem 0.875rem; }
  .institution-badges { gap: 1.5rem; margin-top: 1rem; }
  .institution-badge { width: 9.625rem; height: 2.75rem; }
  .institution-badge-sfu { width: 11.5rem; }
  .institution-badge-nvidia img { transform: translateY(-5px); }
  .institution-badge sup { left: -0.625rem; top: 0; }
  .method-steps { grid-template-columns: minmax(0, 1fr); }
  .lpr-bar-inner { gap: 0.7rem; }
  .lpr-logo svg { width: 5.5rem; height: 1rem; }
  .lpr-lab { font-size: 0.75rem; }
}
