:root {
  --ink: #363636;
  --body: #4a4a4a;
  --blue: #267cb3;
  --line: #e5e5e5;
  --surface: #f5f5f5;
  --sans: "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { margin: 0; background: #fff; color: var(--body); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; text-underline-offset: 4px; }
a:hover { color: #17527a; text-decoration: underline; }
button { cursor: pointer; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; min-width: 0; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); font-weight: 600; line-height: 1.25; }
h1 { font-size: 36px; letter-spacing: -1.2px; margin-bottom: 14px; }
h2 { font-size: 32px; letter-spacing: -.7px; margin-bottom: 24px; text-align: center; }
h3 { font-size: 20px; margin-bottom: 12px; }
p { margin-bottom: 18px; }
sup { font-size: .67em; line-height: 0; vertical-align: super; }
.page-shell { width: min(100% - 48px, 1024px); margin-inline: auto; }
.skip-link { position: absolute; top: 12px; left: 12px; padding: 10px 16px; background: #fff; transform: translateY(-160%); z-index: 10; }
.skip-link:focus { transform: none; }

/* The supplied logo files contain transparent padding; crop it in layout only. */
.institution-logos { display: flex; align-items: center; justify-content: flex-end; gap: 24px; padding: 20px 32px 0; }
.institution-logo { position: relative; display: block; overflow: hidden; flex: 0 0 auto; height: 56px; }
.logo-toronto { width: 138px; }
.logo-mcgill { width: 150px; }
.institution-logo img { position: absolute; top: 50%; left: 50%; width: 100%; max-width: none; height: auto; transform: translate(-50%, -50%); }
.hero { padding: 36px 0 48px; text-align: center; }
.hero-copy { max-width: 940px; margin: auto; }
.project-mark { width: 76px; height: auto; margin: 0 auto 20px; }
.paper-subtitle { font-size: 24px; line-height: 1.4; color: var(--ink); max-width: 900px; margin: 0 auto 26px; letter-spacing: -.45px; }
.authors { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 22px; row-gap: 6px; font-size: 20px; line-height: 1.6; max-width: 800px; margin: 0 auto 8px; }
.authors > span { white-space: nowrap; }
.authors a { color: #2784ba; }
.authors sup { margin-left: 2px; }
.contribution { font-size: 14px; margin: 0 0 12px; }
.affiliations { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; font-size: 18px; max-width: 760px; margin: 0 auto 18px; }
.affiliations span { white-space: nowrap; }
.publication-status { font-size: 20px; margin-bottom: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 20px; min-height: 42px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff; font-size: 16px; line-height: 1.5; transition: background .15s; }
.button:hover { background: #202020; color: #fff; text-decoration: none; }
.button svg { width: 16px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button .resource-logo { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }
.button .arxiv-logo { width: 16px; height: 22px; filter: brightness(0) invert(1); }
.teaser { max-width: 920px; margin: 0 auto; }
.video-figure video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #fff; }
.video-figure figcaption { text-align: center; font-size: 14px; }
.tldr { max-width: 900px; margin: 22px auto 0; font-size: 20px; line-height: 1.6; text-align: center; }
.tldr strong { margin-right: 6px; color: var(--ink); }

.section { padding: 48px 0; }
.section-intro { max-width: 860px; margin: 0 auto 30px; text-align: justify; }
#overview { max-width: 860px; margin-inline: auto; padding-bottom: 20px; }
#overview .section-intro { margin-bottom: 0; }
figcaption { font-size: 15px; line-height: 1.65; margin-top: 14px; }
.figure-label { font-weight: 600; color: var(--ink); margin-right: 7px; }
.paper-figure { margin: 28px 0; }
.pdf-figure { width: 100%; }
.pdf-viewport { width: 100%; aspect-ratio: var(--pdf-ratio, 4 / 3); background: #fff; }
.pdf-document { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.pdf-document canvas { display: block; width: 100%; height: 100%; }
.pdf-status { padding: 24px; text-align: center; font-size: 14px; }
.pdf-link { display: block; width: fit-content; margin: 8px 0 0 auto; font-size: 13px; }
.figure-portrait { max-width: 850px; margin-inline: auto; }
.radar-figure { max-width: 640px; margin: 42px auto; text-align: center; }
.method-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 36px 0; }
.step-number { display: block; font-size: 14px; color: var(--blue); margin-bottom: 10px; }
.method-steps p { font-size: 15px; margin-bottom: 0; }
.figure-details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 28px; }
.figure-details summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; list-style: none; cursor: pointer; font-weight: 500; color: var(--ink); }
.figure-details summary::-webkit-details-marker { display: none; }
.figure-details summary > span { font-size: 24px; font-weight: 400; transition: transform .15s; }
.figure-details[open] summary > span { transform: rotate(45deg); }
.figure-details > figure, .localizer-grid { margin: 16px 0 24px; }
.localizer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.tab-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.tab-list button { color: var(--body); background: #fff; border: 1px solid #ccc; border-radius: 999px; padding: 9px 17px; font-size: 14px; }
.tab-list button:hover { border-color: var(--ink); }
.tab-list button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.figure-browser figure { margin: 24px 0; }
.findings { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 24px; text-align: center; margin: 0 0 30px; padding: 22px 0; }
.findings strong { display: block; color: var(--ink); font-weight: 600; font-size: 28px; line-height: 1.3; }
.findings strong span { font-size: 16px; font-weight: 400; }
.findings p { font-size: 13px; line-height: 1.5; margin: 10px 0 0; }
.table-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 32px; }
.table-heading span { font-size: 13px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; white-space: nowrap; }
caption { text-align: left; padding-bottom: 12px; font-size: 14px; }
th, td { padding: 13px 14px; text-align: right; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
th:first-child { text-align: left; }
thead th { background: var(--surface); font-weight: 600; }
.table-note { font-size: 13px; margin: 14px 0 0; }
.result-callout { margin: 28px 0; padding: 20px 24px; background: var(--surface); display: flex; align-items: flex-start; gap: 18px; }
.result-callout p { margin: 0; }
.callout-mark { font-size: 25px; color: var(--blue); }
.discussion-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.citation-section { max-width: 960px; margin-inline: auto; }
.citation-heading { position: relative; display: flex; justify-content: center; align-items: center; margin-bottom: 24px; }
.citation-heading h2 { margin: 0; }
.copy-button { position: absolute; right: 0; padding: 6px 16px; min-height: 36px; font-size: 13px; }
pre { padding: 24px; background: var(--surface); overflow-x: auto; margin: 0; font: 13px/1.65 var(--mono); tab-size: 2; }
.copy-status { font-size: 14px; min-height: 24px; margin: 8px 0 0; }
.acknowledgements { max-width: 860px; margin: 0 auto; padding: 24px 0 48px; text-align: center; }
.acknowledgements h2 { font-size: 24px; }
.acknowledgements p { font-size: 15px; }
.site-footer { background: #fafafa; padding: 36px 0; text-align: center; font-size: 14px; }
.site-footer p { margin: 10px 0 0; }
.wordmark { color: var(--ink); font-weight: 600; font-size: 18px; }

@media (max-width: 760px) {
  .institution-logos { padding: 16px 24px 0; gap: 16px; }
  .institution-logo { height: 48px; }
  .logo-toronto { width: 118px; }
  .logo-mcgill { width: 128px; }
  .hero { padding-top: 32px; padding-bottom: 36px; }
  h1 { font-size: 32px; }
  .paper-subtitle { font-size: 21px; }
  .authors { font-size: 18px; column-gap: 18px; }
  .affiliations { font-size: 16px; column-gap: 18px; }
  .section { padding: 36px 0; }
  .method-steps { grid-template-columns: 1fr; gap: 24px; }
  .method-steps h3 { margin-bottom: 8px; }
  .localizer-grid, .discussion-grid { grid-template-columns: 1fr; gap: 24px; }
  .findings { grid-template-columns: 1fr; gap: 24px; }
  .table-heading { display: block; }
  .table-heading h3 { margin-bottom: 6px; }
  .table-heading span { display: block; margin-bottom: 12px; }
}
@media (max-width: 480px) {
  .page-shell { width: calc(100% - 36px); }
  .institution-logos { padding-right: 18px; }
  h1 { font-size: 29px; letter-spacing: -.8px; }
  h2 { font-size: 28px; }
  .paper-subtitle { font-size: 19px; }
  .authors { font-size: 16px; gap: 7px 14px; }
  .contribution { font-size: 12px; }
  .affiliations { font-size: 14px; gap: 6px 14px; }
  .publication-status { font-size: 18px; }
  .tldr { font-size: 18px; text-align: left; }
  .section-intro { text-align: left; }
  .tab-list { gap: 6px; }
  .tab-list button { font-size: 13px; padding: 8px 12px; }
  .citation-heading { justify-content: space-between; gap: 16px; }
  .copy-button { position: static; }
  .result-callout { padding: 18px; }
  pre { padding: 18px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
