/* FReSH additions to Academic Project Page Template. Upstream CSS is unchanged. */
html{scroll-padding-top:24px}button,input,select{font:inherit}button{cursor:pointer}img{display:block;max-width:100%}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid #2563eb;outline-offset:4px}.publication-authors .author-block{color:var(--primary-color)}.institutions{font-size:.9rem;line-height:1.8;max-width:900px;margin-inline:auto}.institutions .author-block{color:var(--text-secondary)}.institutions small{font-size:.75rem}.publication-links .icon svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round;fill:none}.publication-links .button[disabled]{opacity:.55;transform:none;cursor:default;pointer-events:none}.publication-links .link-block{display:inline-block}.section-links{display:flex;justify-content:center;gap:24px;margin-top:20px;font-size:.85rem}.image-button{display:block;width:100%;padding:0;border:0;background:none;cursor:zoom-in}.image-button img{width:100%}.teaser .hero-body{padding-top:0}.teaser-caption{margin-top:24px!important}.section-description{color:var(--text-secondary);font-size:1rem;line-height:1.7;margin:0 auto 28px;max-width:760px}.fine-print{font-size:.75rem;color:var(--text-secondary);margin:16px 0 0;line-height:1.7}.method-figure{margin:0;padding:12px;background:white;border:1px solid var(--border-color);border-radius:var(--border-radius)}
.fresh-viewer .viewer-shell{background:white;border:1px solid var(--border-color);border-radius:var(--border-radius-lg);overflow:hidden;box-shadow:var(--shadow-md)}
.fresh-viewer .viewer-toolbar,.comparison-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;border-bottom:1px solid var(--border-color)}
.select-label{display:flex;align-items:center;gap:12px;font-size:.75rem;color:var(--text-secondary)}.select-label select{background:white;border:1px solid var(--border-color);border-radius:7px;color:var(--text-primary);padding:8px 12px;font-size:.8rem;max-width:350px}
.fresh-viewer .viewer-actions{display:flex;align-items:center;gap:8px}.fresh-viewer .viewer-actions a,.fresh-viewer .viewer-actions button{border:1px solid var(--border-color);background:white;border-radius:7px;padding:6px 12px;font-size:.75rem;color:var(--text-primary);white-space:nowrap}.fresh-viewer #fullscreen-scene{font-size:24px;line-height:1;padding:3px 10px}
.fresh-viewer .input-strip{padding:16px 20px 12px;background:#f8fafc;border-bottom:1px solid var(--border-color)}.fresh-viewer .input-heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:10px}.fresh-viewer .input-heading h3{font-size:.8rem;font-weight:600;margin:0}.fresh-viewer #input-cameras{font-size:.7rem;color:var(--text-secondary)}.fresh-viewer #input-video{display:block;width:100%;aspect-ratio:4;background:#17202b;border-radius:6px;object-fit:contain}.fresh-viewer .input-caption{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:10px;font-size:.7rem;color:var(--text-secondary)}.fresh-viewer .input-caption p{margin:0}.fresh-viewer .input-caption label{white-space:nowrap;display:flex;align-items:center;gap:6px}.fresh-viewer .input-caption input{accent-color:var(--primary-color)}
/* Size the viewport independently of the WebGL canvas and loading message. */
.fresh-viewer #scene-canvas{position:relative;width:100%;aspect-ratio:16/9;min-height:240px;max-height:520px;overflow:hidden;background:#f5f6f7}
.fresh-viewer #scene-canvas>canvas{position:absolute;inset:0;width:100%;height:100%}
.fresh-viewer .canvas-placeholder{position:absolute;inset:0;display:grid;place-items:center;margin:0;padding:24px;text-align:center;color:var(--text-secondary)}
@media(max-width:600px){.fresh-viewer #scene-canvas{aspect-ratio:4/3;max-height:420px}}
.fresh-viewer #scene-status{font-size:.7rem;line-height:1.5;margin:0;padding:10px 20px;min-height:36px;color:var(--text-secondary);border-top:1px solid var(--border-color)}.fresh-viewer #scene-status[data-state=error]{color:#b42318}
.fresh-viewer #viewer-shell:fullscreen{height:100%;width:100%;display:flex;flex-direction:column;background:white;border-radius:0;overflow-y:auto}
.fresh-viewer #viewer-shell:fullscreen> :not(#scene-canvas){flex-shrink:0}
.fresh-viewer #viewer-shell:fullscreen #scene-canvas{height:auto;flex:1 0 160px;min-height:160px;max-height:none;aspect-ratio:auto}
.fresh-viewer #viewer-shell:fullscreen #input-video{max-height:20vh}
.comparison-shell{max-width:720px;margin:auto;background:white;border:1px solid var(--border-color);border-radius:var(--border-radius-lg);overflow:hidden;box-shadow:var(--shadow-md)}.micro{font-size:.7rem;color:var(--text-secondary)}.comparison-image{position:relative;aspect-ratio:1;overflow:hidden;background:var(--background-accent)}.comparison-image>img,#comparison-gt-wrap img{display:block;width:100%;height:100%;max-width:none;object-fit:contain}#comparison-gt-wrap{position:absolute;inset:0;clip-path:inset(0 50% 0 0)}.image-label{position:absolute;top:16px;z-index:2;background:#ffffffed;border:1px solid var(--border-color);border-radius:6px;padding:5px 10px;font-size:.7rem;font-weight:500}.gt-label{left:16px}.pred-label{right:16px;color:var(--primary-color)}.comparison-divider{position:absolute;top:0;bottom:0;left:50%;width:2px;background:white;box-shadow:0 0 0 1px #23352e25;pointer-events:none;z-index:2}.comparison-divider span{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:white;border:1px solid var(--border-color);border-radius:50%;width:40px;height:40px;display:grid;place-items:center;color:var(--text-primary);font-size:18px;box-shadow:var(--shadow-md)}.comparison-image input{position:absolute;inset:0;width:100%;height:100%;opacity:0;z-index:3;cursor:ew-resize;margin:0}.comparison-image:focus-within{outline:3px solid var(--primary-color);outline-offset:-3px}.comparison-note{padding:14px 20px;color:var(--text-secondary);font-size:.75rem;margin:0}#bibtex{white-space:pre-wrap;word-break:break-word}#BibTeX .title{margin:0}.footer .content{font-size:.8rem}dialog{border:0;padding:42px 16px 16px;max-width:96vw;max-height:95vh;border-radius:12px;box-shadow:var(--shadow-xl)}dialog::backdrop{background:#172638d9}dialog img{max-height:84vh;max-width:90vw;object-fit:contain}#close-image{position:absolute;top:4px;right:10px;border:0;background:transparent;font-size:28px;color:var(--text-primary)}
@media(max-width:768px){.publication-title{font-size:2.15rem!important;line-height:1.15!important}.publication-authors{font-size:1rem!important}.institutions{font-size:.8rem!important}.author-break{display:none}.section-links{gap:18px;font-size:.75rem}.hero-body{padding:3rem 1.25rem}.teaser .hero-body{padding-inline:1.25rem}.section{padding:3rem 1.25rem}.fresh-viewer .viewer-toolbar,.comparison-toolbar{padding:12px 14px}.fresh-viewer #scene-status{padding:10px 14px 14px}.select-label{gap:8px}.select-label select{font-size:.72rem;max-width:230px}.micro{display:none}}
@media(max-width:480px){.publication-title{font-size:1.85rem!important}.publication-authors{font-size:.95rem!important}.institutions{font-size:.75rem!important}.publication-links .button{font-size:.8rem}.publication-links .link-block a{margin:5px 2px}.section-description{font-size:.9rem}.title.is-3{font-size:1.65rem!important}.section-links{gap:16px}.select-label{font-size:.65rem}.select-label select{max-width:175px;padding:7px 5px}.fresh-viewer .viewer-actions button{font-size:.6rem;padding:5px}.fresh-viewer #fullscreen-scene{font-size:20px;padding:0 6px}.fine-print{font-size:.65rem}.comparison-note{font-size:.65rem;padding:12px}.image-label{top:10px;font-size:.65rem}.gt-label{left:10px}.pred-label{right:10px}.method-figure{padding:5px}.bibtex-header{gap:12px}.copy-bibtex-btn{font-size:.7rem;padding:.6rem .8rem}pre{font-size:.7rem!important}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important}}

@media(max-width:768px){.fresh-viewer .input-strip{padding:12px 14px}.fresh-viewer .input-caption{align-items:flex-start;gap:10px}.fresh-viewer #input-cameras{font-size:.6rem}.fresh-viewer .viewer-actions a{font-size:.65rem;padding:6px 8px}}
@media(max-width:480px){.fresh-viewer .input-caption{flex-direction:column;font-size:.65rem}.fresh-viewer .input-heading{gap:8px}.fresh-viewer #input-cameras{max-width:65%;text-align:right}.fresh-viewer .viewer-toolbar{gap:8px}.fresh-viewer #scene-select{max-width:160px}}

.fresh-viewer .sample-toolbar{display:flex;align-items:center;gap:14px;padding:12px 20px;border-bottom:1px solid var(--border-color);font-size:.7rem;color:var(--text-secondary)}.fresh-viewer .sample-toolbar>span{white-space:nowrap}.fresh-viewer .sample-buttons{display:flex;flex-wrap:wrap;gap:6px}.fresh-viewer .sample-buttons button{border:1px solid var(--border-color);background:white;border-radius:6px;padding:6px 10px;font-size:.7rem;font-variant-numeric:tabular-nums;color:var(--text-primary)}.fresh-viewer .sample-buttons button[aria-pressed=true]{color:white;background:#2563eb;border-color:#2563eb}.fresh-viewer .sample-buttons button:disabled{opacity:.5;cursor:default}@media(max-width:480px){.fresh-viewer .sample-toolbar{align-items:flex-start;gap:10px;padding:12px 14px}.fresh-viewer .sample-buttons{gap:5px}.fresh-viewer .sample-buttons button{font-size:.65rem;padding:5px 7px}}

.project-video{aspect-ratio:16/9;background:#f5f6f7;border-radius:10px;overflow:hidden}.project-video video,.project-video iframe{width:100%;height:100%;display:block;border:0}.sample-buttons button[aria-pressed="true"]{background:#2563eb;color:white}
.viewer-bottom{padding:1rem 1.25rem;background:#fff;border-top:1px solid #dfe5ed;display:grid;gap:1rem}.playback{display:flex;align-items:center;gap:.8rem;flex-wrap:wrap}.playback button{border:1px solid #dfe5ed;border-radius:6px;background:white;padding:.45rem .8rem;font:inherit;cursor:pointer}.playback input[type=range]{flex:1;min-width:80px}.playback output{font-size:.875rem;white-space:nowrap}.layers{display:flex;align-items:center;flex-wrap:wrap;gap:.6rem 1rem;font-size:.875rem}.layers label{display:flex;align-items:center;gap:.35rem}.layers .point-size{flex:1;min-width:220px}.point-size input{flex:1;min-width:70px;width:100px}.point-size output{white-space:nowrap}#scene-status{padding:1rem 1.25rem;font-size:.875rem;line-height:1.6}@media(max-width:600px){.viewer-bottom{padding:1rem}.playback output{width:100%}.layers{gap:.75rem}.layers .point-size{width:100%}}

/* Approved FReSH wordmark: the paired-hands leaf grows from e. */
.publication-brand{display:inline-block;white-space:nowrap}
.publication-title .publication-wordmark{display:inline-block;width:auto;height:1.04em;max-width:none;vertical-align:-.035em}
