/* Continuous academic layout: one type system and one reading column. */
:root{--text:#363636;--heading:#292929;--muted:#626262;--link:#3273dc;--rule:#e5e5e5;--soft:#f7f7f7;--content:960px;color-scheme:light}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:28px}
body{margin:0;color:var(--text);background:white;font:400 16px/1.65 Arial,Helvetica,sans-serif}
h1,h2,h3,p,figure{margin:0}
h1,h2,h3{color:var(--heading);font-weight:700}
h2{font-size:30px;line-height:1.25}
h3{font-size:20px;line-height:1.4}
strong,b{font-weight:700}
a{color:var(--link);text-decoration:none;text-underline-offset:3px}
a:hover{text-decoration:underline}
button,select{font:inherit;cursor:pointer}
button,a{touch-action:manipulation}
button:focus-visible,select:focus-visible,a:focus-visible,[tabindex]:focus-visible,summary:focus-visible{outline:2px solid var(--link);outline-offset:4px}
img{max-width:100%;height:auto;display:block}
video{display:block;width:100%;height:100%;background:#101010;object-fit:contain}
[hidden]{display:none!important}
.container{width:calc(100% - 40px);max-width:var(--content);margin-inline:auto}
.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}
.skip-link{position:fixed;top:-80px;left:16px;z-index:100;padding:10px 18px;background:white;border:1px solid var(--link)}
.skip-link:focus-visible{top:12px}

/* Publication header */
.hero{max-width:1120px;padding-block:54px 34px;text-align:center}
.eyebrow{margin-bottom:8px;color:#147d85;font-size:14px;font-weight:700;line-height:1.6;letter-spacing:.08em;text-transform:uppercase}
.project-name{display:block;color:#25343e;font-size:50px;line-height:1.14;margin-bottom:12px}
.project-name span{color:#147d85}
.paper-title{display:block;margin-inline:auto;font-size:32px;line-height:1.3;font-weight:700}
.authors{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 28px;margin:24px auto 11px;color:var(--link);font-size:19px;line-height:1.45}
.authors span{white-space:nowrap}
.authors .author-break{flex-basis:100%;height:0}
sup{font-size:.65em}
.authors sup{color:#b3261e}
.affiliation{color:var(--muted);font-size:15px}
.corresponding{margin-top:4px;font-size:13px;color:#777}
.resource-links{display:flex;flex-wrap:wrap;justify-content:center;gap:9px;margin-top:22px}
.pill{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:8px 16px;border-radius:999px;background:#363636;color:white;font-size:14px;font-weight:700;line-height:1.2}
.pill:hover{color:white;background:#202020;text-decoration:none}
.pill svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.teaser{max-width:930px;margin:32px auto 0}
.video-shell{aspect-ratio:16/9;overflow:hidden;background:#101010}
figcaption{margin-top:11px;color:var(--muted);font-size:14px;line-height:1.6;text-align:left}
.teaser figcaption{font-size:16px;color:#505050}

/* Shared column and vertical rhythm */
.section{padding-block:46px;border-top:1px solid var(--rule)}
.abstract-section{background:var(--soft)}
.section-heading{text-align:center;margin-bottom:26px}
.section-heading>p{margin:13px auto 0;max-width:830px;color:var(--muted);font-size:15px}
.prose{max-width:820px;margin-inline:auto;color:#454545;font-size:16px;line-height:1.75}
.prose p+p{margin-top:16px}
.paper-figure{margin-inline:auto}
.figure-link{position:relative;display:block;cursor:zoom-in;background:white}
.figure-link img{width:100%}
.overview-figure{margin-bottom:34px}
.overview-figure figcaption{max-width:940px}
.zoom-hint{position:absolute;right:6px;bottom:6px;padding:4px 8px;background:#fffffff2;color:#555;border:1px solid #ddd;border-radius:3px;font-size:12px;opacity:0}
.figure-link:hover .zoom-hint,.figure-link:focus-visible .zoom-hint{opacity:1}
.method-tabs{display:flex;justify-content:center;border-bottom:1px solid #ddd;gap:20px}
.method-tabs button{display:block;flex:1;border:0;border-bottom:2px solid transparent;padding:12px 4px;color:#666;background:transparent;font-size:15px;line-height:1.5;font-weight:400;text-align:center}
.method-tabs button span{margin-right:6px;font-size:14px}
.method-tabs button[aria-selected=true]{border-bottom-color:#363636;color:#292929;font-weight:700}
.method-panel{padding-top:25px}
.method-copy{max-width:880px;margin:0 auto 24px}
.method-copy h3{font-size:18px;margin-bottom:8px}
.method-copy p{font-size:16px;color:#505050}
.method-image{width:100%;margin-inline:auto}
.method-image img{width:100%;height:auto;object-fit:contain}
#panel-skills .method-image{max-width:590px}

/* Paper-style tables and unframed figures */
.results-summary{max-width:880px;margin:0 auto 28px;font-size:16px;color:#505050}
.results-grid{display:block}
.table-card{min-width:0}
.table-card h3{text-align:center}
.table-intro{margin:9px 0 18px;text-align:center;font-size:14px;color:var(--muted)}
.table-scroll{overflow-x:auto;overscroll-behavior-x:contain}
table{width:100%;border-collapse:collapse;color:#404040;font-size:14px;font-variant-numeric:tabular-nums;line-height:1.6;white-space:nowrap}
th,td{padding:10px 12px;border-bottom:1px solid #dedede;text-align:right}
th:first-child{text-align:left;padding-left:8px}
thead th{border-top:2px solid #444;border-bottom:1px solid #777;color:#292929;font-size:14px;font-weight:700}
tbody th{font-weight:400}
tbody tr:last-child>*{border-bottom:2px solid #444}
td small{font-size:13px}
td.ours,th.ours{font-weight:700;color:#303030;background:#f5f5f5}
.small-note{margin-top:12px;font-size:13px;line-height:1.65;color:#6b6b6b}
.token-figure{max-width:760px;margin:36px auto 0}
.token-figure h3{margin-bottom:18px;text-align:center}
.token-figure .figure-link{max-width:680px;margin-inline:auto}
.token-figure figcaption{margin-top:14px}
.ablation-details{margin-top:32px;border-block:1px solid #ddd}
.ablation-details summary{list-style:none;display:flex;align-items:center;gap:18px;padding:17px 0;cursor:pointer;font-size:18px;font-weight:700;color:#333}
.ablation-details summary::-webkit-details-marker{display:none}
.ablation-details summary span:not(.expand-icon){font-size:14px;color:#777;font-weight:400}
.ablation-details .expand-icon{margin-left:auto;font-size:22px;line-height:1;color:#666}
.ablation-details[open] .expand-icon{transform:rotate(45deg)}
.ablation-content{padding:2px 0 22px;font-size:15px}
.ablation-content .table-scroll{margin-top:20px}
.formula{font-family:Georgia,"Times New Roman",serif;font-size:20px;text-align:center;margin:22px 0 13px}
.additional-results{margin-top:34px}
.additional-results>h3{margin-bottom:24px;text-align:center}
.figure-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.figure-grid img{width:100%;height:270px;object-fit:contain}
.figure-grid figcaption{font-size:14px}
.figure-grid figcaption strong{display:block;color:#444;font-size:15px;line-height:1.45;margin-bottom:6px}

/* Video captions follow the paper captions. */
.video-options{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:7px;font-size:12px;line-height:1.5;color:var(--muted);text-align:left}
.video-options label{display:flex;align-items:center;gap:7px;white-space:nowrap}
.video-options select{padding:3px 7px;border:1px solid #ccc;border-radius:3px;background:white;color:#444;font-size:12px}
.video-status{margin-right:auto}
.full-demo figcaption{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 16px}
.full-demo figcaption strong{color:#444;font-size:15px}
.full-demo figcaption a{margin-left:auto}
.chapters{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 20px;margin:15px 0 32px;padding:10px 0;border-bottom:1px solid var(--rule)}
.chapters button{border:0;padding:4px 0;color:#555;background:transparent;font-size:14px}
.chapters span{margin-right:7px;font-size:13px;font-variant-numeric:tabular-nums;color:#777}
.chapters button:hover,.chapters button.active{color:var(--link);text-decoration:underline;text-underline-offset:4px}
.demo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 24px}
.demo-copy{padding-top:11px}
.demo-copy h3{font-size:17px;text-align:center;margin-bottom:7px}
.demo-copy p{font-size:14px;line-height:1.65;color:var(--muted)}
.demo-note{margin-top:24px}

/* Resources and citation */
.resource-note{max-width:850px;margin:0 auto 30px;color:#555;font-size:16px;line-height:1.7}
.citation-box{max-width:850px;margin-inline:auto}
.citation-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.citation-header h3{font-size:20px}
.citation-header button{padding:5px 11px;border:1px solid #ccc;border-radius:3px;background:white;color:#555;font-size:12px}
.citation-header button:hover{background:#f0f0f0}
pre{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;padding:20px 22px;border:1px solid #e0e0e0;border-radius:4px;background:#f5f5f5;color:#3d3d3d;font:13px/1.6 Consolas,"Liberation Mono",monospace}
footer{padding:26px 0 30px;border-top:1px solid var(--rule);color:#777;text-align:center;font-size:13px}
.footer-brand{font-weight:700;color:#555;font-size:15px}
footer p{margin-top:3px}
dialog{width:min(94vw,1600px);max-width:94vw;max-height:92vh;border:1px solid #ddd;border-radius:5px;padding:0;background:white;box-shadow:0 12px 60px #0003}
dialog::backdrop{background:#000b}
.dialog-toolbar{position:sticky;top:0;z-index:1;display:flex;align-items:center;gap:18px;padding:10px 16px;background:white;border-bottom:1px solid #ddd;font-size:13px}
.dialog-toolbar p{margin-right:auto;font-weight:700}
.dialog-toolbar a{font-size:12px}
.dialog-toolbar button{width:32px;height:32px;border:1px solid #ddd;border-radius:3px;background:white;font-size:24px;line-height:24px;color:#555}
.dialog-image{padding:20px;overflow:auto}
.dialog-image img{width:100%;max-height:calc(90vh - 110px);object-fit:contain}

@media(max-width:1000px){.paper-title{font-size:28px}.desktop-break{display:none}.authors{gap:6px 23px}.figure-grid{gap:18px}.figure-grid img{height:235px}}
@media(max-width:700px){.hero{padding-top:38px}.project-name{font-size:42px}.paper-title{font-size:25px;line-height:1.3}.authors{max-width:580px;font-size:17px;gap:6px 19px;margin-top:21px}.authors .author-break{display:none}.eyebrow{font-size:12px}.teaser{margin-top:27px}.teaser figcaption{font-size:15px}.section{padding-block:36px}h2{font-size:27px}h3{font-size:19px}.section-heading{margin-bottom:23px}.section-heading>p{font-size:14px}.overview-figure{margin-bottom:25px}.method-tabs{gap:9px}.method-tabs button{font-size:13px;padding:10px 2px}.method-tabs button span{display:block;margin-right:0;font-size:12px}.method-panel{padding-top:20px}.method-copy h3{font-size:18px}.method-copy p{font-size:15px}.method-copy{margin-bottom:20px}.results-summary{font-size:15px}table,thead th{font-size:13px}th,td{padding:9px 10px}td small{font-size:12px}.ablation-details summary span:not(.expand-icon){display:none}.figure-grid{grid-template-columns:1fr;gap:25px}.figure-grid figure{max-width:460px;margin-inline:auto;width:100%}.figure-grid img{height:auto;max-height:420px}.full-demo figcaption a{margin-left:0}.chapters{gap:5px 17px}.chapters button{font-size:13px}.demo-grid{gap:27px 20px}.demo-copy h3{font-size:16px}.demo-copy p{font-size:14px}.dialog-image{padding:12px}}
@media(max-width:480px){.container{width:calc(100% - 32px)}.project-name{font-size:38px}.paper-title{font-size:23px}.authors{font-size:16px;gap:6px 15px}.affiliation{font-size:14px}.resource-links{gap:8px}.pill{font-size:13px;padding:8px 13px}.pill svg{width:14px;height:14px}.prose{font-size:16px}.teaser figcaption{font-size:14px}h2{font-size:25px}.demo-grid{grid-template-columns:1fr}.full-demo figcaption strong{width:100%}.full-demo figcaption{font-size:13px}pre{font-size:12px;padding:16px}.formula{font-size:17px}.dialog-toolbar{gap:12px;padding:9px 12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
