/* Astra / Nerfies layout; local additions support UltraWorld media controls. */
@font-face { font-family: 'Google Sans'; src: url('assets/vendor/google-sans.ttf') format('truetype'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: 'Noto Sans'; src: url('assets/vendor/noto-sans.ttf') format('truetype'); font-style: normal; font-weight: 400; font-display: swap; }
html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans', sans-serif; }
.publication-header { background: white; }
.publication-title { font-family: 'Google Sans', sans-serif; }
.publication-authors, .author-note, .publication-review { color: #4a4a4a; }
.publication-authors .author-block { margin: 0 .15em; }
.affiliations { margin-top: .35rem; }
.author-note { margin-top: .45rem; font-size: .875rem; }
.publication-review { margin-top: .6rem; }
.publication-links { display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; }
.publication-links .icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.publication-links .resource-pending { opacity: 1; cursor: default; }
.preview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.preview-grid video { display: block; width: 100%; border: 1px solid #bbb; border-radius: 10px; }
.preview-grid figcaption { margin-top: .5rem; }
.method-section { padding-top: 20px; }
.paper-figure { margin: 0; }
.paper-figure img { width: 100%; height: auto; display: block; }
.paper-figure figcaption { margin-top: .6rem; font-size: 1rem; line-height: 1.5; }
.method-video { display: block; width: 100%; height: auto; margin-top: 1.5rem; }
.paper-table { margin: 0 auto; }
.clinical-table { max-width: 640px; margin-bottom: 1.5rem; }
.result-block { margin-top: 3rem; }
.operation-group + .operation-group { margin-top: 3rem; }
#demos > .container { max-width: 1440px; }
#demos .result-block { max-width: 960px; margin-left: auto; margin-right: auto; }
.experiment-clip { margin: 0 0 2rem; }
.experiment-clip figcaption { margin-top: .6rem; font-size: .9rem; }
.experiment-clip[hidden] { display: none; }
.case-carousel { position: relative; margin: 0 20px; }
.case-track { display: grid; grid-template-columns: minmax(0, 1fr); }
.case-carousel .experiment-clip { margin-bottom: 0; }
.case-track .comparison-video { min-width: 0; }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #4a4a4a; box-shadow: 0 2px 5px #0003; cursor: pointer; }
.carousel-arrow:hover { background: #f5f5f5; }
.carousel-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.carousel-previous { left: -20px; }
.carousel-next { right: -20px; }
.carousel-dots { display: flex; justify-content: center; gap: 2px; margin-top: .5rem; }
.carousel-dot { display: flex; justify-content: center; align-items: center; width: 28px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.carousel-dot::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #ccc; }
.carousel-dot[aria-pressed="true"]::before { background: #4a4a4a; }
.comparison-scroll { overflow-x: auto; }
.comparison-video { display: block; width: 100%; min-width: 760px; aspect-ratio: 3928 / 720; }
.figure-note { font-size: .8rem; margin-top: 1rem; color: #666; }
.content pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.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: absolute; top: -100px; left: 1rem; z-index: 10; background: white; padding: .5rem; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid #3273dc; outline-offset: 3px; }
@media screen and (max-width: 768px) {
 .publication-title.title.is-1 { font-size: 2rem; }
 .publication-authors.is-size-5 { font-size: 1.05rem !important; }
 .has-text-justified { text-align: left !important; }
}
@media screen and (max-width: 1024px) { .preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media screen and (max-width: 600px) { .preview-grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
