@font-face {
  font-family: Manrope;
  src: url('assets/fonts/manrope-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --ink: #282d34;
  --muted: #626b75;
  --link: #225f99;
  --link-hover: #163f68;
  --line: #e0e4e9;
  --tint: #f7f8fa;
  --font: Manrope, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; color: var(--ink); background: #fff; font-family: var(--font); font-size: 16px; line-height: 1.8; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.3; }
h1 { font-size: clamp(30px, 3.05vw, 43px); font-weight: 750; letter-spacing: -.035em; text-wrap: balance; }
h2 { font-size: 29px; font-weight: 700; letter-spacing: -.025em; text-align: center; margin-bottom: 26px; }
h3 { font-size: 20px; font-weight: 650; letter-spacing: -.015em; }
p + p { margin-top: 16px; }
strong { font-weight: 700; }
a { color: var(--link); text-decoration: none; text-underline-offset: 3px; transition: color .16s ease; }
a:hover { color: var(--link-hover); text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img, video, svg { max-width: 100%; }
img { display: block; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 3px solid #75a9d4; outline-offset: 4px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #75a9d4; outline-offset: 2px; }
::selection { color: #172c40; background: #dcebf8; }
[hidden] { display: none !important; }
.container { width: min(100% - 64px, 1020px); margin-inline: auto; }
.reading-width { max-width: 900px; }
.paper-section { padding: 48px 0 54px; }
.paper-section + .paper-section > .container { border-top: 1px solid var(--line); padding-top: 48px; }
.paper-section + .paper-section { padding-top: 0; }
.section-intro { margin-bottom: 26px; }
.subsection-title { margin-top: 38px; margin-bottom: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 15px; top: -70px; z-index: 99; background: var(--link); color: #fff; padding: 10px 18px; border-radius: 4px; }
.skip-link:focus { top: 10px; }
/* Restrained navigation, with the paper itself as the visual focus. */
.site-nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.nav-shell { width: min(100% - 64px, 1120px); min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-inline: auto; }
.nav-title { font-size: 15px; color: #363c43; font-weight: 700; white-space: nowrap; }
.nav-title:hover { color: var(--ink); text-decoration: none; }
.nav-title span { color: var(--muted); font-size: 10px; font-weight: 500; border-left: 1px solid #cdd3da; padding-left: 10px; margin-left: 9px; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: #606873; font-size: 12px; padding: 17px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.current { color: var(--link); border-bottom-color: var(--link); text-decoration: none; }
.menu-toggle { display: none; background: none; border: 0; }
.mobile-nav { width: min(100% - 40px, 720px); margin: auto; padding-bottom: 16px; }
/* Publication header, following the supplied academic project template. */
.paper-header { background: linear-gradient(#f9fafb, #fff); padding: 55px 0 37px; text-align: center; border-bottom: 1px solid #edf0f3; }
.paper-header .container { max-width: 1120px; }
.authors { display: grid; grid-template-columns: repeat(4, max-content); justify-content: center; gap: 6px 28px; margin: 25px auto 0; }
.authors .author { color: var(--ink); font-size: 15px; line-height: 1.8; font-weight: 500; }
.venue { margin-top: 20px; }
.venue p { font-size: 14px; }
.venue a { color: #3d4956; }
.venue strong { color: var(--link); }
.venue .venue-location { margin-top: 2px; font-size: 12px; color: var(--muted); }
.institution-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 38px; margin: 25px 0 24px; }
.institution-logos img { object-fit: contain; filter: grayscale(1); opacity: .85; transition: filter .2s ease, opacity .2s ease; }
.institution-logos a:hover img, .institution-logos a:focus-visible img { filter: grayscale(0); opacity: 1; }
.unibo-logo { width: 100px; height: 73px; }
.unipr-logo { width: 160px; height: 51px; }
.vislab-logo { width: 150px; height: 34px; }
.ambarella-logo { width: 95px; height: 58px; }
.paper-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.resource-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; border: 1px solid #d6dce2; border-radius: 5px; padding: 8px 16px; background: #fff; color: #343b44; font-size: 12px; font-weight: 600; line-height: 1.5; transition: background .16s ease, border-color .16s ease; }
.resource-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.resource-button:hover { text-decoration: none; background: #f0f4f8; border-color: #aebdca; color: #253c51; }
.resource-button.primary { background: #343d47; border-color: #343d47; color: #fff; }
.resource-button.primary:hover { background: #1f2b37; border-color: #1f2b37; }
.resource-button.unavailable { color: #7a838d; border-style: dashed; background: transparent; font-weight: 500; }
.resource-button small { font-size: 9px; font-weight: 400; }
.abstract-text { text-align: justify; hyphens: auto; font-size: 15px; line-height: 1.95; }
/* Research media retain their original aspect ratio and full visual content. */
.video-figure { margin-top: 26px; }
.video-frame { background: #10171b; border: 1px solid #d5dbe0; border-radius: 5px; overflow: hidden; }
video { display: block; width: 100%; height: auto; background: #10171b; }
#research-video { aspect-ratio: 1553 / 834; }
#field-video { aspect-ratio: 267 / 114; }
figcaption { color: #5f6770; font-size: 13px; line-height: 1.75; margin-top: 15px; text-align: left; }
figcaption strong { color: #3b434c; }
.panel-reference { font-variant-ligatures: none; font-feature-settings: "liga" 0, "clig" 0, "dlig" 0, "calt" 0, "rlig" 0; }
.media-links { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; color: #7a828c; font-size: 11px; }
.media-links a { color: #64758a; }
.media-links a span { margin-left: 5px; }
.video-error { color: #8b4536; font-size: 13px; margin-top: 10px; }
.paper-figure { margin-top: 28px; }
.figure-zoom { position: relative; display: block; border: 1px solid var(--line); border-radius: 5px; padding: 21px; background: #fff; cursor: zoom-in; }
.figure-zoom img { width: 100%; height: auto; }
.zoom-hint { position: absolute; right: 9px; bottom: 9px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border: 1px solid #e3e7eb; border-radius: 3px; background: rgba(255,255,255,.95); color: #66727d; font-size: 9px; }
.zoom-hint svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.3; }
.method-explanation { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; margin-top: 30px; }
.method-explanation h3 { font-size: 18px; }
.method-explanation p { margin-top: 10px; font-size: 14px; line-height: 1.85; }
.field-video-figure { margin-top: 22px; }
/* Numbered research tables retain all metrics, with independent mobile scrolling. */
.results-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 22px 0 18px; font-size: 13px; }
.results-nav a { text-decoration: underline; text-decoration-color: #bbcddd; }
.table-reading-note, .table-scroll-hint { color: var(--muted); font-size: 12px; }
.table-scroll-hint { display: none; }
.table-scroll { overflow-x: auto; margin-top: 24px; overscroll-behavior-x: contain; }
.table-scroll + .table-scroll { margin-top: 36px; }
.results-table { border-collapse: collapse; width: 100%; min-width: 580px; border-block: 2px solid #515b66; font-size: 14px; font-variant-numeric: tabular-nums; }
.results-table caption { caption-side: bottom; text-align: left; font-size: 12px; line-height: 1.8; color: #616a74; padding-top: 14px; }
.results-table th, .results-table td { padding: 11px 18px; border-bottom: 1px solid #e1e5e9; text-align: center; }
.results-table td { white-space: nowrap; }
.results-table thead th { font-size: 12px; font-weight: 650; border-bottom: 1px solid #8c959e; }
.results-table th:first-child { text-align: left; width: 40%; }
.results-table tbody th { font-weight: 500; }
.results-table tfoot { border-top: 1px solid #8c959e; color: var(--muted); font-size: 12px; }
.results-table tfoot th { font-weight: 500; }
.highlight-row { background: #eff5fa; }
.highlight-row th { font-weight: 700 !important; }
.results-table td small { display: block; font-size: 10px; color: #487599; line-height: 1.6; }
.second-best { text-decoration: underline; text-underline-offset: 3px; }
.dataset-table { min-width: 740px; }
.dataset-table th:first-child { width: auto; }
.dataset-table th[scope="row"] { text-align: left; }
.dataset-table .dataset-label { width: 18%; vertical-align: middle; font-weight: 600; }
.dataset-label span { display: block; color: var(--muted); font-size: 10px; font-weight: 400; }
.dataset-table tbody + tbody { border-top: 1px solid #8c959e; }
.dataset-table .method-group-start { border-top: 1px solid #b7c0ca; }
.table-note { font-size: 13px; color: #606975; margin-top: 18px; }
/* Download links, citation, and correspondence. */
.resource-list { margin: 0; }
.resource-list > div { display: grid; grid-template-columns: 150px 1fr; gap: 15px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.resource-list dt { font-size: 14px; font-weight: 600; }
.resource-list dd { margin: 0; font-size: 14px; }
.file-type { display: inline-block; border: 1px solid #d5dce4; color: #788797; padding: 0 5px; border-radius: 3px; font-size: 9px; margin-left: 5px; vertical-align: middle; }
.resource-pending { color: #7a8490; }
.citation { margin-top: 38px; scroll-margin-top: 85px; }
.citation-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.citation-heading h3 { font-size: 22px; }
.copy-button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid #d7dde4; background: #fff; border-radius: 4px; font-size: 11px; }
.copy-button:hover:not(:disabled) { background: #f1f4f7; }
.copy-button:disabled { cursor: default; opacity: .45; }
.copy-button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.citation pre { min-height: 110px; margin: 0; padding: 23px 26px; background: #f6f7f9; border: 1px solid #e2e6ec; border-radius: 5px; overflow-x: auto; font-family: var(--mono); font-size: 12px; line-height: 1.9; color: #485360; tab-size: 2; }
.citation code { font-family: inherit; }
.contact-width { max-width: 740px; }
.contact-intro { text-align: center; font-size: 14px; }
.contact-intro a { white-space: nowrap; }
.contact-form { margin-top: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contact-form label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; }
.contact-form input, .contact-form select, .contact-form textarea { display: block; width: 100%; min-height: 43px; margin-bottom: 20px; padding: 10px 12px; border: 1px solid #cfd6df; border-radius: 4px; background: #fff; color: var(--ink); font-size: 14px; line-height: 1.6; }
.contact-form textarea { resize: vertical; min-height: 135px; }
.form-submit { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.form-submit p { font-size: 11px; color: #7a838e; line-height: 1.7; }
.form-status { color: var(--link); font-size: 13px; margin-top: 18px; }
.form-status:empty { display: none; }
.contact-retry { display: inline; padding: 0; border: 0; background: transparent; color: var(--link); font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.site-footer { margin-top: 18px; border-top: 1px solid var(--line); padding: 25px 0; background: #fafbfc; }
.site-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.site-footer p { font-size: 11px; color: #707b86; line-height: 1.8; }
.site-footer p span { color: #9199a4; font-size: 10px; }
.site-footer a { font-size: 11px; color: #64768a; white-space: nowrap; }
/* Native dialog adds a keyboard-accessible full-resolution figure view. */
.figure-dialog { width: min(95vw, 1550px); max-width: 95vw; max-height: 92vh; padding: 20px; border: 1px solid #d4dce4; border-radius: 8px; background: white; overflow: auto; }
.figure-dialog::backdrop { background: rgba(21,29,39,.68); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 20px; font-size: 14px; font-weight: 600; }
.dialog-heading button { border: 1px solid #d6dce3; border-radius: 4px; padding: 7px 12px; background: white; font-size: 12px; }
.dialog-heading button span { margin-left: 9px; font-size: 17px; line-height: 1; }
.figure-dialog img { width: 100%; height: auto; }
.figure-dialog > p { margin-top: 14px; font-size: 12px; text-align: right; }
@media (max-width: 1000px) {
  .nav-links { gap: 18px; }
  .authors { gap: 6px 20px; }
  .authors .author { font-size: 14px; }
  .title-break { display: none; }
  .paper-header { padding-top: 44px; }
}
@media (max-width: 900px) {
  html { scroll-padding-top: 76px; }
  .container, .nav-shell { width: calc(100% - 40px); }
  .nav-shell { min-height: 55px; }
  .nav-links { display: none; }
  .menu-toggle { display: flex; width: 36px; height: 36px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
  .menu-toggle span { width: 20px; height: 1.5px; background: #485361; transition: transform .15s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  .mobile-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px 15px; border-top: 1px solid var(--line); padding-top: 10px; }
  .mobile-nav a { font-size: 13px; padding: 7px 0; }
  .paper-header { padding: 35px 0 30px; }
  h1 { max-width: 620px; margin: auto; font-size: 32px; line-height: 1.3; letter-spacing: -.03em; }
  h2 { font-size: 27px; margin-bottom: 23px; }
  .authors { grid-template-columns: repeat(2, max-content); gap: 5px 30px; margin-top: 22px; }
  .authors .author { font-size: 14px; }
    .venue { margin-top: 18px; }
  .venue p { font-size: 12px; max-width: 540px; margin-inline: auto; }
  .venue .venue-location { font-size: 11px; margin-top: 5px; }
  .institution-logos { gap: 28px; margin: 22px 0; }
  .unipr-logo { width: 140px; height: 45px; }
  .vislab-logo { width: 125px; height: 30px; }
  .ambarella-logo { width: 83px; height: 51px; }
  .paper-links { gap: 8px; }
  .resource-button { font-size: 11px; padding: 8px 12px; }
  .paper-section { padding: 38px 0 42px; }
  .paper-section + .paper-section > .container { padding-top: 36px; }
  .abstract-text { text-align: left; font-size: 15px; line-height: 1.85; }
  body { font-size: 15px; line-height: 1.85; }
  figcaption { font-size: 12px; }
  .figure-zoom { padding: 13px; }
  .method-explanation { gap: 25px; }
  .method-explanation h3 { font-size: 17px; }
  .method-explanation p { font-size: 13px; }
  .subsection-title { font-size: 19px; margin-top: 32px; }
  .results-table th, .results-table td { padding: 11px 12px; }
  .results-nav { gap: 6px 18px; font-size: 12px; }
  .table-scroll-hint { display: block; margin-top: 8px; font-size: 11px; }
  .table-note { font-size: 12px; }
  .resource-list > div { grid-template-columns: 125px 1fr; }
  .resource-list dt, .resource-list dd { font-size: 13px; }
  .citation pre { font-size: 11px; padding: 18px; }
  .contact-form input, .contact-form select, .contact-form textarea { font-size: 16px; }
}
@media (max-width: 480px) {
  .container, .nav-shell { width: calc(100% - 36px); }
  .paper-header { padding-top: 30px; }
  h1 { font-size: 29px; line-height: 1.3; }
  .authors { gap: 5px 18px; }
  .authors .author { font-size: 12px; }
      .venue p { font-size: 11px; }
  .venue .venue-location { font-size: 10px; }
  .institution-logos { display: grid; grid-template-columns: repeat(2, 135px); gap: 15px 26px; justify-items: center; }
  .unibo-logo { width: 82px; height: 60px; }
  .institution-logos > a:last-child { grid-column: 1 / -1; }
  .unipr-logo { width: 109px; height: 35px; }
  .vislab-logo { width: 93px; height: 25px; }
  .ambarella-logo { width: 66px; height: 41px; }
  .paper-links { gap: 7px; max-width: 350px; margin: auto; }
  .resource-button { padding: 8px 10px; font-size: 10px; }
  .resource-button svg { width: 14px; height: 14px; }
  .resource-button.unavailable { font-size: 10px; }
  .resource-button small { font-size: 8px; }
  h2 { font-size: 25px; }
  .abstract-text { font-size: 14px; line-height: 1.9; }
  body { font-size: 14px; }
  .section-intro { margin-bottom: 20px; }
  figcaption { font-size: 11px; }
  .media-links { font-size: 10px; }
  .method-explanation { grid-template-columns: 1fr; gap: 22px; margin-top: 25px; }
  .method-explanation h3 { font-size: 17px; }
  .figure-zoom { padding: 8px; }
  .zoom-hint { padding: 2px 4px; font-size: 8px; right: 5px; bottom: 5px; }
  .zoom-hint svg { width: 10px; height: 10px; }
  .resource-list > div { grid-template-columns: 1fr; gap: 3px; padding: 13px 0; }
  .resource-list dt { font-size: 12px; }
  .resource-list dd { font-size: 12px; }
  .citation pre { font-size: 10px; padding: 15px; }
  .contact-intro { font-size: 13px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-submit { gap: 12px; }
  .form-submit p { font-size: 10px; }
  .form-submit .resource-button { padding: 10px 12px; font-size: 11px; }
  .site-footer .container { align-items: flex-start; gap: 12px; }
  .site-footer p { font-size: 9px; }
  .site-footer p span { font-size: 9px; }
  .site-footer a { font-size: 9px; }
  .figure-dialog { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Author affiliation numbers correspond to the institution legend. */
.affiliations { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; margin: 13px auto 0; padding: 0; color: var(--muted); font-size: 12px; }
.affiliations li { white-space: normal; }
.authors sup { margin-left: 2px; color: var(--link); font-size: .7em; font-weight: 500; }
@media(max-width:760px) { .affiliations { max-width: 500px; font-size: 11px; gap: 4px 16px; } }
@media(max-width:480px) { .affiliations { flex-direction: column; gap: 2px; margin-top: 15px; font-size: 10px; } }

/* Original paper figures and keyboard-accessible scientific image explorers. */
.representation-figure { max-width: 800px; margin-inline: auto; margin-bottom: 35px; }
.method-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 30px; }
.method-figures .paper-figure { display: flex; flex-direction: column; margin-top: 0; }
.method-figures .figure-zoom { flex: 1; display: flex; align-items: center; min-height: 305px; padding: 15px; }
#visualizations .subsection-title:not(:first-child) { margin-top: 42px; }
.visual-explorer { margin-top: 24px; }
.explorer-controls { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.explorer-controls legend { padding: 0; margin-bottom: 9px; font-size: 12px; color: var(--muted); }
.explorer-options { display: flex; flex-wrap: wrap; gap: 8px; }
.explorer-options label { position: relative; cursor: pointer; }
.explorer-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.explorer-options span { display: block; padding: 8px 14px; border: 1px solid #cdd6df; border-radius: 4px; font-size: 12px; line-height: 1.5; color: #4c5966; background: white; transition: background .15s ease, border-color .15s ease; }
.explorer-options input:checked + span { background: #eaf2f9; color: #194e7d; border-color: #7ca3c5; font-weight: 650; }
.explorer-options input:focus-visible + span { outline: 3px solid #75a9d4; outline-offset: 3px; }
.explorer-options label:hover span { border-color: #7ca3c5; }
.explorer-panel + .explorer-panel { margin-top: 25px; }
.explorer-controls:not([hidden]) ~ .explorer-panel { margin-top: 0; }
.panel-grid { display: grid; gap: 18px; align-items: start; }
.panel-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.panel-label { color: #475563; font-size: 12px; font-weight: 600; margin-bottom: 9px; }
.panel-grid .figure-zoom { padding: 7px; }
.panel-grid--three .figure-zoom { display: flex; align-items: center; aspect-ratio: 4 / 3; }
.panel-grid--three .figure-zoom img { height: 100%; object-fit: contain; }
.analysis-details { margin-top: 25px; border-block: 1px solid var(--line); }
.analysis-details + .analysis-details { border-top: 0; margin-top: 0; }
.analysis-details summary { padding: 16px 0; font-size: 14px; color: var(--link); cursor: pointer; }
.analysis-details summary:focus-visible { outline: 3px solid #75a9d4; outline-offset: 4px; }
.analysis-details[open] { padding-bottom: 24px; }
.analysis-intro { font-size: 13px; margin-top: 5px; }
.qualitative-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.qualitative-grid .paper-figure { margin-top: 5px; }
.qualitative-grid .figure-zoom { padding: 10px; }
.metric-readout { display: grid; grid-template-columns: max-content 28px max-content; align-items: end; justify-content: center; gap: 16px; margin: 15px 0 22px; color: var(--muted); font-size: 12px; }
.metric-readout strong { display: block; color: var(--ink); font-size: 26px; line-height: 1.5; font-variant-numeric: tabular-nums; white-space: nowrap; }
.metric-arrow { display: flex; align-items: center; justify-content: center; width: 28px; height: 39px; color: #637c91; }
.metric-arrow svg { display: block; width: 28px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.metric-readout > span:last-child strong { color: var(--link); }
.dialog-heading { position: sticky; top: -20px; background: white; z-index: 1; padding: 10px 0; }
.dialog-actions { display: flex; align-items: center; flex-shrink: 0; gap: 18px; }
.dialog-actions a { font-size: 12px; }
.figure-dialog > p { text-align: left; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) {
  .method-figures { gap: 20px; }
  .method-figures .figure-zoom { min-height: 230px; padding: 10px; }
  .panel-grid { gap: 12px; }
}
@media (max-width: 600px) {
  .method-figures, .qualitative-grid { grid-template-columns: 1fr; gap: 26px; }
  .method-figures .figure-zoom { min-height: 0; }
  .panel-grid--three { grid-template-columns: 1fr; gap: 20px; }
  .panel-grid--three .figure-zoom { aspect-ratio: auto; }
  .panel-grid--three .figure-zoom img { height: auto; }
  .panel-grid--two { grid-template-columns: 1fr; gap: 20px; }
  .explorer-options { gap: 7px; }
  .explorer-options span { padding: 9px 11px; font-size: 11px; }
  .analysis-details summary { font-size: 13px; }
  .dialog-heading { align-items: flex-start; gap: 10px; font-size: 12px; }
  .dialog-actions { gap: 9px; }
  .dialog-actions a { font-size: 10px; }
  .dialog-heading button { font-size: 10px; padding: 6px 8px; }
}
@media (max-width: 480px) { .dialog-heading { top: -12px; } }

/* Analytic construction precedes the Gaussian spread comparison. */
.field-construction { margin-top: 26px; }
.construction-step { margin-top: 25px; }
.construction-step h4, .spread-comparison-title { font-size: 16px; font-weight: 650; line-height: 1.5; margin: 0 0 10px; }
.construction-step p { font-size: 14px; line-height: 1.85; }
.equation-scroll { overflow-x: auto; padding: 17px 12px; margin: 17px 0; overscroll-behavior-x: contain; }
.equation-scroll math { width: max-content; min-width: max-content; margin: 0 auto; font-size: 1.14rem; }
.equation-pair { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 50px; }
.equation-pair .equation-scroll { max-width: 100%; }
.field-vector { background: var(--tint); border-block: 1px solid var(--line); }
.construction-note { color: var(--muted); font-size: 12px; line-height: 1.8; margin-top: 18px; }
.spread-comparison-title { margin-top: 30px; }
@media (max-width: 600px) {
  .construction-step h4, .spread-comparison-title { font-size: 15px; }
  .construction-step p { font-size: 13px; }
  .equation-scroll { padding: 14px 4px; }
  .equation-scroll math { font-size: 1rem; }
  .equation-pair { display: block; }
}

/* A denser publication layout keeps the interactive method within easy reach. */
body { font-size: 15px; line-height: 1.75; }
.paper-header { padding: 32px 0 26px; }
.authors { margin-top: 18px; gap: 3px 24px; }
.venue { margin-top: 12px; }
.institution-logos { gap: 30px; margin: 17px 0; }
.institution-logos img { max-height: 58px; }
.paper-section { padding: 32px 0; }
.paper-section + .paper-section { padding-top: 0; }
.paper-section + .paper-section > .container { padding-top: 30px; }
h2 { margin-bottom: 18px; font-size: 27px; }
.section-intro { margin-bottom: 18px; }
.subsection-title, #visualizations .subsection-title:not(:first-child) { margin-top: 30px; margin-bottom: 10px; }
.abstract-text { line-height: 1.8; font-size: 14px; }
.overview-media { display: grid; grid-template-columns: .9fr 1.1fr; align-items: start; gap: 24px; }
.overview-media > figure { min-width: 0; margin: 0; }
.overview-media .figure-zoom { padding: 12px; }
.overview-media .video-frame { margin-top: 0; }
.paper-figure, .video-figure { margin-top: 20px; }
.architecture { max-width: 880px; margin-inline: auto; }
.field-video-figure { max-width: 760px; margin-inline: auto; }
.figure-zoom { padding: 14px; }
figcaption { margin-top: 10px; font-size: 12px; line-height: 1.65; }
.analysis-details { margin-top: 16px; }
.analysis-details summary { padding: 13px 0; }
.analysis-details summary > span { color: var(--muted); font-size: 11px; margin-left: 10px; }
.method-figures { margin-top: 8px; }
.method-figures .figure-zoom { min-height: 220px; }
.method-detail { margin-top: 20px; }
.results-table th, .results-table td { padding: 8px 14px; }
.results-table { font-size: 13px; }
.table-scroll + .table-scroll { margin-top: 24px; }
.result-detail .subsection-title { margin-top: 14px; }
.result-detail summary { font-weight: 600; }
.citation { margin-top: 24px; }
.citation pre { min-height: 58px; padding: 15px 20px; }
.field-construction { margin-top: 10px; }
.construction-step { margin-top: 16px; }
.construction-step p { line-height: 1.75; }
.construction-derivation .equation-scroll { margin-block: 10px; padding-block: 12px; }

/* Interactive analytic field: geometry → integral → tensor → confidence. */
.field-lab { margin-top: 22px; border: 1px solid #d4e0e9; border-radius: 9px; overflow: hidden; background: #fff; }
.lab-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; }
.lab-eyebrow { display: block; color: var(--link); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 3px; }
.lab-heading h4 { margin: 0; font-size: 20px; line-height: 1.4; font-weight: 650; letter-spacing: -.025em; }
.lab-badge { flex-shrink: 0; font-size: 10px; color: #547087; border: 1px solid #d4e0e9; border-radius: 20px; padding: 3px 10px; }
.lab-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid #dce5ed; background: #f7f9fb; }
.lab-steps button { min-width: 0; min-height: 48px; padding: 11px 8px; border: 0; border-bottom: 2px solid transparent; background: transparent; font-size: 12px; font-weight: 600; color: #62798d; }
.lab-steps button + button { border-left: 1px solid #e2e9f0; }
.lab-steps button span { margin-right: 7px; font-family: var(--mono); font-size: 10px; opacity: .75; }
.lab-steps button:hover { background: #edf3f8; }
.lab-steps button[aria-selected="true"] { background: #eaf2f9; border-bottom-color: #266ba5; color: #205d91; }
.lab-steps button:focus-visible { outline-offset: -4px; }
.lab-body { display: grid; grid-template-columns: 1.2fr 1fr; }
.lab-map { min-width: 0; padding: 18px; border-right: 1px solid #e2e9f0; }
.lab-scenes { border: 0; margin: 0 0 12px; padding: 0; }
.lab-scenes .explorer-options { gap: 6px; }
.lab-scenes .explorer-options span { font-size: 10px; padding: 5px 10px; border-radius: 20px; }
#field-canvas { display: block; width: 100%; height: auto; aspect-ratio: 28 / 18; border: 1px solid #dbe4ec; border-radius: 5px; cursor: crosshair; touch-action: none; }
#field-canvas:focus-visible { outline-offset: 2px; }
.lab-map-caption { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; gap: 10px; }
#probe-position { font-family: var(--mono); font-size: 11px; color: #405d75; font-variant-numeric: tabular-nums; }
#probe-reset { font-size: 10px; border: 0; background: transparent; color: var(--link); padding: 3px 0; }
#probe-reset:hover { text-decoration: underline; }
.lab-hint { font-size: 10px; color: #6a7d8e; margin-top: 5px; }
.lab-hint strong { color: #a04d27; }
.lab-legend { font-size: 10px; color: #536f85; margin-top: 6px; min-height: 18px; }
.lab-explanation { min-width: 0; padding: 23px 22px 16px; }
.lab-explanation h5 { font-size: 17px; line-height: 1.4; font-weight: 650; margin: 0 0 10px; letter-spacing: -.02em; }
.lab-explanation p { font-size: 12px; line-height: 1.8; }
.lab-explanation p + p { margin-top: 12px; }
.lab-equation { padding: 12px 4px; margin: 12px 0; border-block: 1px solid #e6ecf2; text-align: center; overflow-x: auto; }
.lab-equation math { width: max-content; margin: 0 auto; font-size: 1.1rem; }
.lab-sums { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 18px; font-family: Georgia, serif; font-size: 15px; }
.lab-explanation .lab-takeaway { padding: 10px 12px; margin-top: 14px; border-left: 2px solid #70a0c5; background: #f0f6fb; color: #355977; font-size: 12px; }
.lab-explanation .lab-small { color: #64798b; font-size: 11px; margin-top: 12px; }
.kernel-chart { display: block; width: 100%; max-height: 87px; margin-top: -2px; }
.kernel-label { display: flex; justify-content: space-between; color: #62798d; font-size: 10px; margin-top: 5px; }
.kernel-label output { color: #9a552b; font-family: var(--mono); }
#kernel-t { margin: 2px 0; }
.kernel-readout { display: flex; justify-content: space-between; gap: 12px; font-size: 9px; color: #62798d; }
.kernel-readout output { display: block; color: #315976; font-family: var(--mono); font-size: 14px; }
.segment-contribution { display: grid; grid-template-columns: 40px 1fr 44px; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 1px solid transparent; border-radius: 4px; background: transparent; margin-top: 3px; color: #5b7287; font-size: 11px; text-align: left; }
.segment-contribution:hover, .segment-contribution[aria-pressed="true"] { background: #eff5fa; border-color: #d7e4ef; }
.segment-contribution.excluded { color: #8696a3; }
.segment-contribution output { text-align: right; font-family: var(--mono); }
.contribution-track { height: 5px; background: #e9eff4; border-radius: 3px; overflow: hidden; }
.contribution-track > span { display: block; height: 100%; }
.tensor-readout { display: flex; justify-content: center; gap: 15px; align-items: center; margin-top: 15px; color: #46647b; font-size: 11px; flex-wrap: wrap; }
.tensor-matrix { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 14px; border-inline: 1px solid #6e8ba3; border-radius: 3px; padding: 2px 10px; font-family: var(--mono); font-size: 11px; }
.eigen-readout { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; font-size: 10px; color: #62798d; }
.eigen-readout output { display: block; font-family: var(--mono); font-size: 16px; color: #315976; }
.lab-output { display: flex; gap: 18px; padding: 15px 22px; background: #f7f9fc; border-block: 1px solid #e2e9f0; }
.lab-output-label { display: flex; flex-direction: column; justify-content: center; min-width: 96px; color: #496d89; }
.lab-output-label strong { font-size: 20px; font-family: Georgia, serif; font-style: italic; font-weight: 400; }
.lab-output-label > span { font-size: 9px; }
.channel-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; flex: 1; min-width: 0; }
.channel-strip > div { min-width: 0; }
.channel-strip > div > span:first-child { display: block; font-size: 10px; color: #5b7489; }
.channel-strip output { display: block; font-family: var(--mono); font-size: 16px; line-height: 1.8; color: #254d70; font-variant-numeric: tabular-nums; }
.channel-track { display: block; height: 3px; background: #dce7f0; overflow: hidden; border-radius: 2px; }
.channel-fill { display: block; height: 100%; background: #6497bf; }
.channel-fill.negative { background: #b96837; }
.lab-footnote { padding: 10px 22px; color: #6a7f90; font-size: 9px; line-height: 1.7; }
.segment-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 10px; }
.segment-picker { display: flex; align-items: center; gap: 8px; padding: 0; margin: 0; border: 0; min-width: 0; }
.segment-picker legend { float: left; padding: 0; margin-right: 9px; font-size: 10px; color: #62798d; line-height: 29px; }
.segment-picker .explorer-options { gap: 4px; }
.segment-picker .explorer-options span { padding: 4px 9px; font-size: 10px; line-height: 1.8; }
.segment-enabled { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; font-size: 10px; color: #5b7287; cursor: pointer; }
.segment-enabled input { accent-color: #266ba5; width: 14px; height: 14px; margin: 0; }
.segment-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 9px; }
.segment-controls > div { min-width: 0; }
.segment-controls .kernel-label { margin: 0; }
.segment-points { display: block; font-family: var(--mono); font-size: 9px; color: #62798d; }
.segment-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
#map-target-hint { font-size: 9px; color: #62798d; }
#geometry-reset { font-size: 10px; border: 0; background: transparent; color: var(--link); padding: 3px 0; }
#geometry-reset:hover { text-decoration: underline; }
.lab-range { --range-thumb: 20px; display: block; appearance: none; -webkit-appearance: none; width: 100%; height: 36px; padding: 0; margin: 0; border: 0; border-radius: 0; background: transparent; cursor: ew-resize; touch-action: none; user-select: none; -webkit-user-select: none; }
.lab-range::-webkit-slider-runnable-track { height: 4px; border-radius: 3px; background: #d8e4ee; }
.lab-range::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: var(--range-thumb); height: var(--range-thumb); margin-top: calc((4px - var(--range-thumb)) / 2); border: 2px solid #fff; border-radius: 50%; background: #b96837; box-shadow: 0 0 0 1px #ab6137; }
.lab-range::-moz-range-track { height: 4px; border-radius: 3px; background: #d8e4ee; }
.lab-range::-moz-range-thumb { width: var(--range-thumb); height: var(--range-thumb); box-sizing: border-box; border: 2px solid #fff; border-radius: 50%; background: #b96837; box-shadow: 0 0 0 1px #ab6137; }
.lab-range:focus-visible { outline: 2px solid #75a9d4; outline-offset: 0; border-radius: 4px; }
@media (pointer: coarse) { .lab-range { --range-thumb: 24px; height: 44px; } }
@media (max-width: 760px) {
  .overview-media { grid-template-columns: 1fr 1fr; gap: 16px; }
  .lab-body { grid-template-columns: 1fr; }
  .lab-map { border-right: 0; border-bottom: 1px solid #e2e9f0; padding: 16px; }
  #field-canvas { max-width: 500px; margin-inline: auto; }
  .lab-explanation { padding: 18px; min-height: 290px; }
  .lab-explanation h5 { font-size: 17px; }
  .lab-explanation p { font-size: 13px; }
  .lab-output-label { min-width: 70px; }
  .lab-output { gap: 12px; padding: 14px 16px; }
  .channel-strip { gap: 12px; }
  .channel-strip output { font-size: 13px; }
  .analysis-details summary > span { display: block; margin: 2px 0 0 15px; }
}
@media (max-width: 520px) {
  .paper-header { padding: 26px 0 24px; }
  .paper-section { padding-bottom: 26px; }
  .paper-section + .paper-section > .container { padding-top: 26px; }
  .overview-media { grid-template-columns: 1fr; gap: 22px; }
  .overview-media .representation-figure { max-width: 370px; }
  .lab-heading { padding: 15px; }
  .lab-heading h4 { font-size: 17px; }
  .lab-eyebrow { font-size: 9px; }
  .lab-badge { display: none; }
  .lab-steps button { font-size: 10px; min-height: 51px; padding: 6px 2px; }
  .lab-steps button span { display: block; margin-right: 0; font-size: 9px; }
  .lab-map { padding: 12px; }
  .lab-scenes .explorer-options span { font-size: 10px; padding: 6px 9px; }
  .lab-explanation { padding: 17px 14px; }
  .lab-output { display: block; padding: 10px 14px 14px; }
  .lab-output-label { flex-direction: row; justify-content: flex-start; align-items: baseline; gap: 8px; margin-bottom: 6px; }
  .lab-output-label strong { font-size: 17px; }
  .channel-strip { gap: 8px; }
  .channel-strip output { font-size: 12px; }
  .lab-footnote { padding: 9px 14px; }
  .segment-toolbar { gap: 2px 8px; }
  .segment-picker .explorer-options span { padding: 4px 7px; }
  .results-table th, .results-table td { padding: 8px 10px; }
}
