/* RecallWorld project styles.
 * Template, icon and font styles remain in their original files.
 * Sections follow the established cascade; responsive rules stay with
 * their components. Add future project styles here.
 */

/* 01. Base styles and comparison controls */
:root {
  --ink:#363636;
  --muted:#6b6b6b;
  --maroon:#941f30;
  --orange:#d16c33;
  --border:#e5e5e5;
  --reveal:50%
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:24px
}

button,input {
  font:inherit
}

button {
  cursor:pointer
}

a:focus-visible,button:focus-visible,input:focus-visible {
  outline:3px solid var(--orange);
  outline-offset:4px
}

.comparison-figure {
  margin:0
}

.comparison-frame {
  position:relative;
  width:100%;
  aspect-ratio:20/11;
  border-radius:14px;
  overflow:hidden;
  background:#e9e3da;
  box-shadow:0 16px 42px #5645330f
}

.comparison-frame canvas {
  display:block;
  width:100%;
  height:100%
}

.comparison-frame video {
  display:none
}

.method-label {
  position:absolute;
  top:20px;
  z-index:3;
  padding:9px 12px;
  border-radius:7px;
  background:#fcfaf6ec;
  box-shadow:0 2px 12px #18110d12;
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:700;
  pointer-events:none
}

.left-label {
  left:20px
}

.right-label {
  right:20px;
  color:var(--maroon)
}

.ours-label {
  font-weight:400;
  opacity:.75;
  margin-left:4px
}

.method-indicator {
  width:6px;
  height:6px;
  border-radius:50%;
  display:block
}

.baseline-indicator {
  background:#6f7274
}

.ours-indicator {
  background:var(--maroon)
}

.divider {
  position:absolute;
  left:var(--reveal);
  inset-block:0;
  width:2px;
  background:#fff;
  transform:translateX(-50%);
  pointer-events:none;
  z-index:2;
  box-shadow:0 0 9px #24150755
}

.divider-handle {
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:43px;
  height:43px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius:50%;
  background:#fff;
  color:#3f342d;
  box-shadow:0 3px 15px #0003;
}

.divider-handle span {
  height:16px;
  width:1px;
  background:#ded5ca
}

.reveal-slider {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  margin:0;
  opacity:0;
  z-index:4;
  cursor:ew-resize;
  touch-action:pan-y
}

.comparison-frame:focus-within {
  outline:3px solid var(--orange);
  outline-offset:5px
}

.media-status {
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  padding:10px 14px;
  border-radius:6px;
  color:var(--muted);
  background:#fff;
  z-index:5;
  pointer-events:none
}

.media-status[hidden] {
  display:none
}

.comparison-toolbar {
  display:flex;
  align-items:center;
  gap:13px;
  padding:17px 2px 11px
}

.timeline-label {
  color:var(--muted);
  white-space:nowrap
}

.time-slider {
  flex:1;
  min-width:50px;
  height:4px;
  accent-color:var(--maroon);
  cursor:pointer
}

.comparison-toolbar output {
  color:var(--muted);
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
  min-width:69px
}

figcaption {
  max-width:750px;
  margin:0 auto;
  text-align:center
}

figcaption p {
  line-height:1.7;
  color:var(--muted);
  margin:9px 0
}

.interaction-hint {
  color:#48413b!important
}

.interaction-hint span {
  margin-right:7px;
}

.comparison-frame {
  border-radius:8px;
  background:#ececec;
  box-shadow:none
}

.method-label {
  background:#ffffffec
}

.section-heading {
  margin-bottom:1.5rem
}

.memory-intro {
  margin-bottom:2rem
}

.memory-steps {
  list-style:none;
  margin-top:0;
  margin-bottom:0
}

.memory-steps li {
  padding:1rem 1.4rem
}

.step-number {
  display:block;
  margin-bottom:.65rem
}

.navworld-title {
  color:var(--maroon)
}

.navworld-name {
  color:var(--maroon);
  font-weight:700
}

.publication-links a[aria-disabled="true"] {
  cursor:default
}

.method-figure {
  margin:1.5rem 0 2rem
}

.method-figure img,.wide-field-figure img {
  display:block;
  width:100%;
  height:auto
}

.method-explanation {
  margin-top:1rem
}

.result-example {
  margin:2rem 0 3rem
}

.result-example:last-child {
  margin-bottom:0
}

.result-panels img {
  display:block;
  width:100%;
  height:auto
}

.panel-label {
  font-weight:700;
  margin-bottom:.5rem
}

.wide-field-figure {
  max-width:820px;
  margin:1.5rem auto 0
}

@media(max-width:768px) {
  .method-label {
    top:10px;
    padding:7px 8px;
    gap:6px
  }
  .left-label {
    left:10px
  }
  .right-label {
    right:10px
  }
  .ours-label {
    display:none
  }
  .divider-handle {
    width:35px;
    height:35px
  }
  .comparison-toolbar {
    gap:10px;
    flex-wrap:wrap
  }
  .timeline-label {
    display:none
  }
  .reset-button {
    margin-left:auto
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
}

/* 02. Author links */
/* GOFish author-link underline; retain the academic template typography. */
.publication-authors[aria-label="Authors"] a[href]  {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 1.5px;
  transition: background-size .3s ease, color .2s ease;
}

.publication-authors[aria-label="Authors"] a[href]:hover, .publication-authors[aria-label="Authors"] a[href]:focus-visible  {
  background-size: 100% 1.5px;
}

@media (hover: none)  {
  .publication-authors[aria-label="Authors"] a[href]:hover  {
    background-size: 0% 1.5px;
  }
}

@media (prefers-reduced-motion: reduce)  {
  .publication-authors[aria-label="Authors"] a[href]  {
    transition: none;
  }
}

/* 03. Starting images, headline video and world cards */
.source-selector {
  width:280px;
  max-width:calc(100% - 104px);
  margin:0 auto 1.15rem
}

.source-heading {
  text-align:center;
  margin-bottom:.55rem
}

.source-image-shell {
  position:relative
}

.source-carousel {
  display:flex;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
  overscroll-behavior-x:contain;
  cursor:grab;
  touch-action:pan-x pan-y
}

.source-carousel::-webkit-scrollbar {
  display:none
}

.source-slide {
  flex:0 0 100%;
  min-width:0;
  scroll-snap-align:start
}

.source-choice {
  display:block;
  width:100%;
  padding:2px;
  border:0;
  background:none;
  font:inherit;
  color:inherit
}

.source-choice img {
  display:block;
  width:100%;
  height:auto;
  border:2px solid #000;
  border-radius:5px;
  box-sizing:border-box;
  user-select:none;
  -webkit-user-drag:none
}

.source-caption {
  display:block;
  margin-top:.35rem;
  font-size:.9rem
}

.source-nav {
  position:absolute;
  top:calc(50% - .8rem);
  transform:translateY(-50%);
  width:46px;
  height:46px;
  border:1px solid #dedede;
  border-radius:50%;
  background:#fff;
  box-shadow:0 2px 7px #00000012;
  color:#333;
  display:grid;
  place-items:center;
  transition:color .15s,border-color .15s,box-shadow .15s
}

.source-nav[data-source-previous] {
  left:-54px
}

.source-nav[data-source-next] {
  right:-54px
}

.source-nav::before {
  content:"";
  display:block;
  width:15px;
  height:15px;
  border-top:3px solid currentColor;
  border-right:3px solid currentColor;
  transform:rotate(45deg);
  margin-left:-6px
}

.source-nav[data-source-previous]::before {
  transform:rotate(-135deg);
  margin-left:6px
}

.source-nav:hover {
  color:#941f30;
  border-color:#941f30;
  box-shadow:0 3px 10px #941f3020
}

.source-controls {
  display:flex;
  justify-content:center;
  gap:.2rem;
  margin-top:.25rem
}

.source-dot {
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  border:0;
  background:none;
  padding:0;
  cursor:pointer
}

.source-dot::before {
  content:"";
  width:9px;
  height:9px;
  border-radius:50%;
  background:#bcbcbc;
  transition:transform .15s,background .15s
}

.source-dot[aria-pressed=true]::before {
  background:#941f30;
  transform:scale(1.2)
}

.headline-candidates {
  display:none
}

.headline-frame {
  position:relative;
  overflow:hidden;
  width:100%;
  border:0;
  box-shadow:0 4px 16px #00000024;
  border-radius:8px;
  background:#000
}

.headline-frame video {
  display:block;
  width:100%;
  height:auto;
  object-fit:contain
}

.headline-figure figcaption {
  margin-top:.8rem
}

.worlds-gallery {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:2rem 1.5rem
}

.world-card {
  min-width:0
}

.world-card h3 {
  font-family:"Google Sans","Noto Sans",sans-serif;
  text-align:center;
  font-size:1.1rem;
  font-weight:500;
  margin-bottom:.7rem;
  color:#363636
}

.world-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:.5rem;
  gap:.6rem
}

.world-toolbar select {
  font:inherit;
  max-width:65%;
  border:1px solid #d4d4d4;
  border-radius:5px;
  background:#fff;
  color:#363636;
  padding:.3rem .55rem;
  cursor:pointer
}

.world-frame {
  position:relative;
  aspect-ratio:20/11;
  border-radius:8px;
  overflow:hidden;
  background:#000;
  box-shadow:0 4px 16px #00000024;
  --split:45%
}

.world-frame video {
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  object-fit:contain
}

.world-frame .world-baseline {
  clip-path:inset(0 calc(100% - var(--split)) 0 0)
}

.world-divider {
  position:absolute;
  inset-block:0;
  left:var(--split);
  width:2px;
  background:white;
  transform:translateX(-50%);
  pointer-events:none;
  box-shadow:0 0 5px #0006
}

.world-divider::after {
  content:"";
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:32px;
  height:32px;
  border-radius:50%;
  background:#ffffffee;
  box-shadow:0 2px 8px #0003
}

.world-divider::before {
  content:"";
  position:absolute;
  z-index:1;
  top:calc(50% - 6px);
  left:-3px;
  width:6px;
  height:12px;
  border-left:2px solid #777;
  border-right:2px solid #777
}

.world-range {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:0;
  margin:0;
  cursor:ew-resize;
  touch-action:pan-y
}

.world-frame:focus-within {
  outline:3px solid #d16c33;
  outline-offset:4px
}

.world-label {
  position:absolute;
  top:10px;
  padding:.35em .6em;
  border-radius:.6em;
  color:white;
  background:#000000c9;
  font-family:"Google Sans","Noto Sans",sans-serif;
  font-size:clamp(12px,1.5vw,18px);
  line-height:1.1;
  pointer-events:none
}

.world-label.baseline-label {
  left:10px
}

.world-label.ours-label {
  right:10px;
  background:#941f30d9;
  color:white;
  font-weight:500;
  opacity:1
}

.world-status {
  font-size:.875rem;
  text-align:center;
  margin-top:.4rem;
  color:#941f30
}

.world-status[hidden] {
  display:none
}

.method-explanation {
  margin-bottom:2rem
}

.section-copy {
  max-width:820px;
  margin:0 auto 1.25rem
}

.wide-field-figure {
  margin-bottom:0
}

@media(max-width:768px) {
  .worlds-gallery {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .source-nav {
    width:44px;
    height:44px
  }
  .world-label {
    font-size:16px
  }
}

@media(prefers-reduced-motion:reduce) {
  .source-nav,.source-dot::before {
    transition:none
  }
}

@media(max-width:480px) {
  .worlds-gallery {
    grid-template-columns:1fr
  }
}

#gallery > .container {
  width:100%
}

.headline-frame {
  max-width:760px;
  margin-inline:auto
}

/* Clip-level measurements follow the same method clock as the diagonal loop. */
.headline-frame {
  container-type:inline-size;
  box-shadow:0 12px 32px #17131a25,0 2px 7px #17131a12
}

.headline-metrics {
  position:absolute;
  left:2.04%;
  top:16.25%;
  display:grid;
  gap:.2em;
  padding:.45em .7em;
  border-radius:.6em;
  background:#000000d7;
  color:#fff;
  font-family:"Google Sans","Noto Sans",sans-serif;
  font-size:clamp(11px,2.04cqw,17px);
  font-weight:500;
  line-height:1.15;
  pointer-events:none;
  box-shadow:0 2px 8px #0003
}

.headline-metrics[data-method="navworld"] {
  background:#941f30e0
}

.headline-metrics[hidden] {
  display:none
}

.headline-metrics span {
  white-space:nowrap;
  font-variant-numeric:tabular-nums
}

.method-figure>img,.wide-field-figure>img {
  border:1px solid #941f3018;
  border-radius:12px;
  box-shadow:0 12px 32px #17131a17,0 2px 6px #17131a0a;
  background:#fff
}

.method-figure figcaption,.wide-field-figure figcaption {
  margin-top:1.1rem
}

/* 04. Dark theme, panel treatment and motion preferences */
/* A dark showcase skin; the academic template retains its typography. */
:root  {
  color-scheme: dark;
  --page-background: #050505;
  --panel-background: #16171b;
  --ink: #e2e4e9;
  --muted: #adb3bd;
  --border: #383c45;
  --link-color: #79bcff;
  --brand-text: #e58a9b;
}

html, body, main, main > .hero, main > .section, main > .hero.is-light, .footer  {
  background: var(--page-background);
  color: var(--ink);
}

.title, .subtitle, .content h1, .content h2, .content h3, .content h4, .content strong, strong, .hero.is-light .title, .hero.is-light .subtitle, .hero.is-light strong, .world-card h3  {
  color: #f8f9fc;
}

a  {
  color: var(--link-color);
}

.hero.is-light a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current)  {
  color: var(--link-color);
}

a:hover  {
  color: #b4daff;
}

.hero.is-light a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current):hover  {
  color: #b4daff;
}

.publication-authors[aria-label="Authors"] a[href]  {
  color: var(--link-color) !important;
}

.publication-authors[aria-label="Authors"] a[href]:hover  {
  color: #b4daff !important;
}

.publication-authors sup, .publication-affiliations, .source-caption  {
  color: var(--muted);
}

.navworld-title, .navworld-name, .world-status  {
  color: var(--brand-text);
}

/* Tighten the title/resources and the opening demo without resizing type. */
main > .hero[aria-labelledby="paper-title"] > .hero-body  {
  padding-bottom: .75rem;
}

#paper-title  {
  margin-bottom: .7rem;
}

.publication-affiliations  {
  margin-top: .1rem;
}

.publication-affiliations + .column  {
  padding-top: .15rem;
  padding-bottom: .15rem;
}

.publication-links .button.is-dark  {
  background: #202228;
  border: 1px solid #4b505c;
  color: #f8f9fc;
}

.publication-links .button.is-dark:hover  {
  background: #2a2e38;
  border-color: #79bcff;
  color: #fff;
}

#headline-comparison  {
  padding-top: 1.25rem;
}

#headline-comparison-title  {
  margin-bottom: .85rem;
}

.source-heading  {
  margin-bottom: .4rem;
}

.source-selector  {
  margin-bottom: .8rem;
}

.source-nav  {
  background: #202228;
  border-color: #555c69;
  color: #e6e9ef;
  box-shadow: 0 3px 12px #0009;
}

.source-nav:hover  {
  color: #fff;
  border-color: #79bcff;
  background: #2a2e38;
  box-shadow: 0 4px 18px #000b;
}

.source-dot::before  {
  background: #8b929e;
}

.source-dot[aria-pressed="true"]::before  {
  background: var(--brand-text);
}

.world-toolbar select  {
  background: #202228;
  color: #e2e4e9;
  border-color: #555c69;
}

.world-toolbar select:hover  {
  border-color: #79bcff;
}

.headline-frame, .world-frame, .method-figure > img, .wide-field-figure > img  {
  box-shadow: 0 12px 30px #0009, 0 0 0 1px #ffffff26;
}

/* Scientific raster colors are retained, including their white canvas. */
.method-figure > img, .wide-field-figure > img  {
  border-color: #535965;
}

#visibility .method-figure  {
  max-width: 640px;
  margin: 1.3rem auto 1.6rem;
}

#visibility .method-figure figcaption  {
  max-width: 640px;
}

figcaption p, .footer p  {
  color: var(--muted);
}

.interaction-hint  {
  color: var(--muted) !important;
}

.footer .icon-link  {
  color: var(--link-color);
}

/* Hover is visual only; players, drag controls and media bounds stay intact. */
@media (hover: hover) and (pointer: fine)  {
  .headline-frame, .world-frame, .method-figure > img, .wide-field-figure > img  {
    transition: transform .2s ease, box-shadow .2s ease;
  }
  .headline-frame:hover, .world-card:hover .world-frame, .method-figure > img:hover, .wide-field-figure > img:hover  {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px #000c, 0 0 0 1px #e58a9b80;
  }
}

@media (prefers-reduced-motion: reduce)  {
  .headline-frame, .world-frame, .method-figure > img, .wide-field-figure > img  {
    transition: none;
    transform: none !important;
  }
}

/* 05. Resource buttons and source arrows */
/* Warm resource buttons and the author's white starting-image arrows. */
.publication-links .button.is-dark  {
  background: #2b1820;
  border-color: #845561;
  color: #ffffff;
  box-shadow: 0 3px 14px #941f3026;
}

.publication-links .button.is-dark:hover  {
  background: #44222d;
  border-color: #c88697;
  color: #ffffff;
  box-shadow: 0 4px 18px #941f3038;
}

.source-nav  {
  background: #ffffff;
  border-color: #ffffff;
  color: #17181c;
  box-shadow: 0 3px 14px #ffffff16;
}

.source-nav:hover  {
  background: #fff0f3;
  border-color: #e58a9b;
  color: #941f30;
  box-shadow: 0 4px 18px #e58a9b33;
}

.publication-links .button.is-dark:focus-visible, .source-nav:focus-visible  {
  outline: 2px solid #e58a9b;
  outline-offset: 3px;
}

/* 06. Figure captions */
/* Keep this result caption aligned with its own full-width panel. */
#figure-5 .method-figure figcaption  {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* 07. Affiliation links */
/* White affiliation links with the existing GOFish underline treatment. */
.publication-affiliations a[href]  {
  color: #ffffff !important;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 1.5px;
  transition: background-size .3s ease;
}

.publication-affiliations a[href]:hover, .publication-affiliations a[href]:focus-visible  {
  color: #ffffff !important;
  background-size: 100% 1.5px;
}

@media (hover: none)  {
  .publication-affiliations a[href]:hover  {
    background-size: 0% 1.5px;
  }
}

@media (prefers-reduced-motion: reduce)  {
  .publication-affiliations a[href]  {
    transition: none;
  }
}

/* 08. result-tables-fbb77b8c59e3495d */
#results-carousel .results-tabs  {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin: 1rem 0;
}

.result-tab, .results-nav  {
  background: #2b1820;
  color: #f2e4e8;
  border: 1px solid #845561;
  cursor: pointer;
}

.result-tab  {
  padding: .45rem .85rem;
  border-radius: 999px;
  font: inherit;
}

.result-tab[aria-selected="true"]  {
  background: #941f30;
  color: #fff;
  border-color: #c66a7d;
}

.result-tab:hover, .results-nav:hover  {
  background: #44222d;
  color: #fff0f4;
  border-color: #c88697;
}

.result-tab:focus-visible, .results-nav:focus-visible, .results-viewport:focus-visible  {
  outline: 2px solid #e58a9b;
  outline-offset: 3px;
}

.results-viewport  {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 12px;
  box-shadow: 0 14px 32px #0009;
}

.results-viewport::-webkit-scrollbar  {
  display: none;
}

.result-slide  {
  flex: 0 0 100%;
  min-width: 0;
  align-self: flex-start;
  scroll-snap-align: start;
  box-sizing: border-box;
  padding: 1.15rem 1.25rem 1.25rem;
  background: #121317;
  border: 1px solid #424650;
  border-radius: 12px;
}

.result-slide h3  {
  margin: 0 0 .4rem;
}

.result-subtitle  {
  margin: 1rem 0 .4rem;
  color: #f8f9fc;
  font-weight: 700;
}

.result-caption  {
  color: var(--muted);
  margin: 0 0 1rem;
  line-height: 1.6;
}

.result-datasets  {
  display: block;
  margin-top: .3rem;
}

.result-table-scroll  {
  overflow-x: auto;
}

.result-table  {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: .875rem;
  font-variant-numeric: tabular-nums;
}

.result-table th, .result-table td  {
  padding: .55rem .5rem;
  white-space: nowrap;
  border-bottom: 1px solid #333742;
}

.result-table thead th  {
  color: #f8f9fc;
  font-weight: 700;
  text-align: center;
}

.result-table th[scope="row"], .result-table thead tr:first-child th:first-child, .result-table .result-group th  {
  text-align: left;
}

.result-table .result-group th  {
  padding-top: .8rem;
  color: #afb5c0;
  font-weight: 500;
}

.result-table .result-ours  {
  background: #2b141c;
}

.result-table .result-ours th  {
  color: #e58a9b;
  font-weight: 700;
}

.result-table .result-empty  {
  color: #88909f;
}

.results-footer  {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .85rem;
  margin-top: .9rem;
}

.results-nav  {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.results-position  {
  min-width: 3rem;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 768px)  {
  .result-slide  {
    padding: 1rem .75rem;
  }
  .result-table  {
    font-size: .8125rem;
  }
}

/* 09. Gallery pagination */
.worlds-pages [data-gallery-page][hidden]  {
  display: none !important;
}

.worlds-carousel  {
  position: relative;
  padding: 0 54px 42px;
  margin: 1.25rem auto 1rem;
}

.worlds-navigation  {
  display: contents;
}

.worlds-page-arrow  {
  position: absolute;
  top: calc((100% - 42px) / 2);
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  color: #161616;
  background: #fff;
  font-size: 26px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.worlds-page-arrow[data-gallery-previous]  {
  left: 0;
}

.worlds-page-arrow[data-gallery-next]  {
  right: 0;
}

.worlds-page-arrow:hover  {
  background: #f1d9df;
}

.worlds-page-dots  {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}

.worlds-page-dot  {
  width: 12px;
  height: 12px;
  border: 1px solid #d5d5d5;
  padding: 0;
  border-radius: 50%;
  background: #444;
  cursor: pointer;
}

.worlds-page-dot[aria-pressed="true"]  {
  background: #fff;
}

.worlds-page-arrow:focus-visible, .worlds-page-dot:focus-visible  {
  outline: 3px solid #f28aaa;
  outline-offset: 5px;
}

.worlds-pages  {
  scroll-margin-top: 1rem;
}

.world-card .ours-label  {
  background: rgba(20,20,20,.85);
  color: #fff;
}

.world-card[data-selected-method="navworld"] .baseline-label  {
  background: #941f30;
  color: #fff;
}

@media (max-width: 600px)  {
  .worlds-carousel  {
    padding-left: 48px;
    padding-right: 48px;
  }
}

/* 10. Native fisheye gallery */
.native-world-grid {
  display:grid;
  gap:2rem 1.5rem;
  grid-template-columns:repeat(2,minmax(0,1fr));
  max-width:690px;
  margin:1.5rem auto 0
}

.native-gallery-caption {
  max-width:690px;
  margin:0 auto
}

.native-input-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:10px
}

.native-input-heading h3 {
  margin:0
}

.native-input-heading figure {
  margin:0;
  text-align:center
}

.native-input-heading img {
  display:block;
  width:81px;
  height:54px;
  object-fit:contain;
  border:1px solid #999;
  border-radius:4px
}

.native-input-heading figcaption {
  font-size:.7rem;
  color:#ccc;
  line-height:1.3;
  margin-top:3px
}

.native-world-grid .world-card[data-selected-method="navworld_perspective"] .baseline-label {
  background:#941f30;
  color:#fff
}

@media(max-width:600px) {
  .native-world-grid {
    grid-template-columns:1fr;
    max-width:420px
  }
}

/* 11. Selectable comparisons and shared gallery arrows */
/* Both panels are selectable; original media and the academic fonts are retained. */
.world-toolbar .world-method-left, .world-toolbar .world-method-right  {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  max-width: none;
  padding: .3rem .35rem;
  font-size: .8rem;
}

.world-toolbar  {
  gap: .35rem;
}

.world-card .world-label  {
  display: block;
}

.world-card[data-reference-method^="navworld"] .ours-label  {
  background: #941f30;
  color: #fff;
}

.native-world-grid .world-label  {
  font-size: 14px;
  line-height: 1.15;
  max-width: calc(50% - 20px);
}

.world-label-detail  {
  display: block;
  margin-top: .15em;
  font-size: 11px;
  line-height: 1.15;
  font-weight: 400;
}

.native-input-heading img  {
  width: 64px;
  height: 64px;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}

/* Match the accepted source-selector circles and vector chevrons. */
.worlds-page-arrow.source-nav  {
  top: calc((100% - 42px) / 2);
  width: 46px;
  height: 46px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #fff;
  color: #17181c;
  box-shadow: 0 3px 14px #ffffff16;
  display: grid;
  place-items: center;
  transition: color .15s, border-color .15s, box-shadow .15s;
}

.worlds-page-arrow.source-nav::before  {
  content: "";
  width: 15px;
  height: 15px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  transform: rotate(45deg);
  margin-left: -6px;
}

.worlds-page-arrow[data-gallery-previous]::before  {
  transform: rotate(-135deg);
  margin-left: 6px;
}

.worlds-page-arrow.source-nav:hover  {
  background: #fff0f3;
  border-color: #e58a9b;
  color: #941f30;
  box-shadow: 0 4px 18px #e58a9b33;
}

.worlds-page-arrow.source-nav:focus-visible  {
  outline: 2px solid #e58a9b;
  outline-offset: 3px;
}

@media (max-width: 768px)  {
  .worlds-page-arrow.source-nav  {
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce)  {
  .worlds-page-arrow.source-nav  {
    transition: none;
  }
}

/* 12. Footer, navigation and light theme */
.explore-more  {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  margin: 1.5rem auto 0;
  color: var(--muted);
}

.explore-more a, .colophon .plain-link  {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size .25s ease;
}

.explore-more a:hover, .explore-more a:focus-visible, .colophon .plain-link:hover, .colophon .plain-link:focus-visible  {
  background-size: 100% 1px;
}

.explore-more svg  {
  width: 1em;
  height: 1em;
  color: var(--link-color);
}

#gallery  {
  scroll-margin-top: 1rem;
}

.footer-resources  {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  padding: 2.25rem 1.5rem .25rem;
}

.footer-resources .icon-link  {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--ink);
  font-size: 1.65rem;
}

.footer-resources .icon-link[aria-disabled="true"]  {
  cursor: default;
}

.footer .template-credit  {
  font-size: .8rem;
  margin-bottom: 1.25rem;
}

.colophon p  {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  margin: 0;
}

.colophon .plain-link  {
  color: var(--ink);
}

.colophon-toggle  {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.colophon-toggle:hover  {
  background: var(--panel-background);
}

.colophon-toggle:focus-visible  {
  outline: 2px solid var(--link-color);
  outline-offset: 3px;
}

.theme-icon-wrap  {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
}

.theme-icon  {
  position: absolute;
}

.theme-icon-moon  {
  display: none;
}

html[data-theme="light"]  {
  color-scheme: light;
  --page-background: #fafafa;
  --panel-background: #f0f1f4;
  --ink: #262b33;
  --muted: #56616f;
  --border: #d6dbe2;
  --link-color: #17649c;
  --brand-text: #941f30;
}

html[data-theme="light"] .title, html[data-theme="light"] .subtitle, html[data-theme="light"] .content h1, html[data-theme="light"] .content h2, html[data-theme="light"] .content h3, html[data-theme="light"] .content h4, html[data-theme="light"] strong, html[data-theme="light"] .hero.is-light .title, html[data-theme="light"] .hero.is-light .subtitle, html[data-theme="light"] .world-card h3, html[data-theme="light"] .result-subtitle, html[data-theme="light"] .result-table thead th  {
  color: var(--ink);
}

html[data-theme="light"] .publication-affiliations a[href]  {
  color: var(--ink) !important;
}

html[data-theme="light"] a:not(.button):hover, html[data-theme="light"] .hero.is-light a:not(.button):hover, html[data-theme="light"] .publication-authors[aria-label="Authors"] a[href]:hover  {
  color: #0d497b !important;
}

html[data-theme="light"] .world-toolbar select  {
  background: #fff;
  color: var(--ink);
  border-color: #aeb7c3;
}

html[data-theme="light"] .result-slide  {
  background: #fff;
  border-color: var(--border);
}

html[data-theme="light"] .result-table th, html[data-theme="light"] .result-table td  {
  border-color: var(--border);
}

html[data-theme="light"] .result-table .result-group th, html[data-theme="light"] .result-table .result-empty  {
  color: var(--muted);
}

html[data-theme="light"] .result-table .result-ours  {
  background: #f7ecef;
}

html[data-theme="light"] .result-table .result-ours th  {
  color: var(--brand-text);
}

html[data-theme="light"] .headline-frame, html[data-theme="light"] .world-frame, html[data-theme="light"] .method-figure > img, html[data-theme="light"] .wide-field-figure > img, html[data-theme="light"] .results-viewport  {
  box-shadow: 0 10px 28px #1a253018, 0 0 0 1px #00000016;
}

html[data-theme="light"] .theme-icon-sun  {
  display: none;
}

html[data-theme="light"] .theme-icon-moon  {
  display: block;
}

@media (prefers-reduced-motion: reduce)  {
  .explore-more a, .colophon .plain-link  {
    transition: none;
  }
}

/* 13. RecallWorld video label */
/* The comparison pixels, camera inset, cadence and original media stay unchanged. */
#headline-frame  {
  container-type: inline-size;
}

#headline-frame .recallworld-video-label  {
  position:absolute;
  left:2.043269%;
  top:3.541667%;
  z-index:4;
  padding:1.081731cqw 1.682692cqw;
  border-radius:1.442308cqw;
  background:#941f30;
  color:#fff;
  white-space:nowrap;
  pointer-events:none;
  font-family:"Google Sans",sans-serif;
  font-size:4.086538cqw;
  font-weight:400;
  line-height:1;
  margin:0;
}

#headline-frame .recallworld-video-label[hidden]  {
  display:none !important;
}

/* 14. gallery-labels-c0f58ed5d73e93c8 */
/* Match the compact method labels used by the native fisheye comparisons. */
.world-card .world-label  {
  font-size: 14px;
  line-height: 1.15;
  max-width: calc(50% - 20px);
}

/* 15. branding-logo-c91b367c90c8b923 */
.publication-title .recallworld-logo  {
  display: block;
  width: min(520px, 85%);
  height: auto;
  margin: 0 auto 0.65rem;
}

.publication-title .recallworld-subtitle  {
  display: block;
}

@media (max-width: 600px)  {
  .publication-title .recallworld-logo  {
    width: 94%;
    max-width: 360px;
    margin-bottom: 0.55rem;
  }
}

/* 16. memory-carousel-a8e2650a2b24a040 */
/* Align memory copy with its figures and place navigation beside the artwork. */
#wide-field .section-copy  {
  max-width: 800px;
  text-align: left !important;
}

#wide-field .section-copy p  {
  text-align: left;
  color: var(--ink);
}

#wide-field .memory-carousel  {
  position: relative;
  max-width: 800px;
  margin: 1.3rem auto 1.6rem;
}

.memory-viewport  {
  display: flex;
  align-items: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.memory-viewport::-webkit-scrollbar  {
  display: none;
}

#wide-field .memory-slide  {
  flex: 0 0 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.memory-artwork  {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1400 / 1058;
  overflow: hidden;
  background: #fff;
  border: 1px solid #535965;
  border-radius: 12px;
  box-shadow: 0 12px 30px #0009, 0 0 0 1px #ffffff26;
}

#wide-field .memory-artwork img  {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

#wide-field .memory-slide figcaption  {
  max-width: none;
  width: 100%;
  margin: 1.1rem 0 0;
  text-align: left;
}

#wide-field .memory-slide figcaption p  {
  margin: 0;
  color: var(--ink);
  text-align: left;
}

.memory-controls  {
  display: contents;
}

#memory-carousel .memory-arrow.source-nav  {
  position: absolute;
  inset: auto;
  top: calc(var(--memory-artwork-height) / 2);
  transform: translateY(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  box-shadow: 0 2px 10px #0006;
}

#memory-carousel .memory-arrow[data-memory-previous]  {
  left: -58px;
}

#memory-carousel .memory-arrow[data-memory-next]  {
  right: -58px;
}

#memory-carousel .memory-arrow.source-nav::before  {
  content: none;
  display: none;
}

.memory-arrow svg  {
  width: 19px;
  height: 19px;
}

.memory-dots  {
  position: absolute;
  top: calc(var(--memory-artwork-height) - 31px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 12px;
  padding: 6px 9px;
  border-radius: 20px;
  background: #111d;
}

.memory-dot  {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid #d5d5d5;
  border-radius: 50%;
  background: #444;
}

.memory-dot[aria-pressed="true"]  {
  background: #fff;
}

@media (max-width: 1000px)  {
  #memory-carousel .memory-arrow[data-memory-previous]  {
    left: 10px;
  }
  #memory-carousel .memory-arrow[data-memory-next]  {
    right: 10px;
  }
}

html[data-theme="light"] .memory-artwork  {
  border-color: #bdc1c9;
}

@media (hover: hover) and (pointer: fine)  {
  .memory-artwork  {
    transition: box-shadow 180ms ease;
  }
  .memory-artwork:hover  {
    box-shadow: 0 16px 36px #000b;
  }
}

@media (prefers-reduced-motion: reduce)  {
  .memory-artwork  {
    transition: none;
  }
}

/* 17. media-scale-2a31ac3d39247802 */
/* Expand scientific media by approximately 25%, retaining template typography. */
#headline-comparison > .container, #method > .container, #wide-field > .container, #visibility > .container, #gallery > .container, #native-fisheye-gallery > .container, #figure-5 > .container, #results-carousel > .container  {
  width: 100%;
  max-width: 1200px;
}

#headline-comparison .headline-frame  {
  max-width: 950px;
}

#headline-comparison .source-selector  {
  width: 350px;
}

#visibility .method-figure  {
  max-width: 800px;
}

#visibility .method-figure figcaption  {
  max-width: 800px;
}

#visibility .section-copy  {
  max-width: 800px;
}

#native-fisheye-gallery .native-world-grid, #native-fisheye-gallery .native-gallery-caption  {
  max-width: 862.5px;
}

#figure-5 .paper-figure  {
  width: 100%;
}

@media (min-width: 1001px)  {
  #gallery > .container  {
    width: calc(100% - 48px);
  }
}

@media (max-width: 768px)  {
  #headline-comparison .source-selector  {
    width: 280px;
    max-width: calc(100% - 104px);
  }
}

/* 18. quad-teaser-8c4217c3eaa39b91 */
/* One full-frame comparison, split by a draggable two-axis divider. */
#headline-comparison .quad-stage  {
  --split-x: 50%;
  --split-y: 50%;
  position: relative;
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 832 / 480;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  background: #111;
  box-shadow: 0 12px 32px #0008;
  touch-action: pan-y;
  cursor: crosshair;
}

.quad-stage video  {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.quad-tl  {
  clip-path: inset(0 calc(100% - var(--split-x)) calc(100% - var(--split-y)) 0);
}

.quad-tr  {
  clip-path: inset(0 0 calc(100% - var(--split-y)) var(--split-x));
}

.quad-bl  {
  clip-path: inset(var(--split-y) calc(100% - var(--split-x)) 0 0);
}

.quad-br  {
  clip-path: inset(var(--split-y) 0 0 var(--split-x));
}

.quad-label  {
  position: absolute;
  z-index: 2;
  max-width: calc(50% - 24px);
  padding: .4em .65em;
  border-radius: 6px;
  color: #fff;
  background: #111c;
  font: 500 clamp(12px, 1.4vw, 19px) / 1.15 "Google Sans", "Noto Sans", sans-serif;
  pointer-events: none;
}

.quad-label-tl  {
  left: 12px;
  top: 12px;
  background: #941f30ed;
}

.quad-label-tr  {
  right: 12px;
  top: 12px;
}

.quad-label-bl  {
  left: 12px;
  bottom: 12px;
}

.quad-label-br  {
  right: 12px;
  bottom: 12px;
}

.quad-line  {
  position: absolute;
  z-index: 3;
  background: #fff;
  pointer-events: none;
  box-shadow: 0 0 3px #0009;
}

.quad-line-x  {
  left: var(--split-x);
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
}

.quad-line-y  {
  top: var(--split-y);
  left: 0;
  right: 0;
  height: 2px;
  transform: translateY(-50%);
}

.quad-handle  {
  position: absolute;
  left: var(--split-x);
  top: var(--split-y);
  transform: translate(-50%, -50%);
  z-index: 4;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #fffffff2;
  color: #32323c;
  box-shadow: 0 2px 10px #0007;
  cursor: move;
  touch-action: none;
}

.quad-handle svg  {
  width: 28px;
  height: 28px;
}

.quad-handle:focus-visible  {
  outline: 3px solid #e66983;
  outline-offset: 5px;
}

.quad-stage.is-dragging  {
  cursor: move;
  touch-action: none;
}

.quad-caption  {
  max-width: 1100px;
  margin: .8rem auto 0;
  text-align: center;
}

.quad-caption p  {
  color: var(--ink);
}

.quad-play  {
  margin-left: .65rem;
  padding: .2rem .6rem;
  border: 1px solid #85858b;
  border-radius: 5px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
}

.quad-starting-image  {
  width: 260px;
  max-width: 60%;
  margin: 0 auto 1rem;
}

.quad-starting-image p  {
  margin-bottom: .45rem;
  text-align: center;
}

.quad-starting-image img  {
  display: block;
  width: 100%;
  border-radius: 6px;
}

@media (max-width: 600px)  {
  .quad-label  {
    padding: .3em .45em;
    max-width: calc(50% - 16px);
    font-size: 12px;
  }
  .quad-label-tl  {
    left: 8px;
    top: 8px;
  }
  .quad-label-tr  {
    right: 8px;
    top: 8px;
  }
  .quad-label-bl  {
    left: 8px;
    bottom: 8px;
  }
  .quad-label-br  {
    right: 8px;
    bottom: 8px;
  }
  .quad-handle  {
    width: 38px;
    height: 38px;
  }
  .quad-handle svg  {
    width: 24px;
    height: 24px;
  }
}

/* 19. gallery-layout-44a1de75ee85979a */
/* Six larger comparisons on each desktop gallery page. */
#gallery > .container  {
  width: calc(100% - 48px);
  max-width: 1400px;
}

#gallery .worlds-gallery  {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1000px)  {
  #gallery .worlds-gallery  {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px)  {
  #gallery > .container  {
    width: calc(100% - 32px);
  }
  #gallery .worlds-gallery  {
    grid-template-columns: 1fr;
  }
  #gallery .worlds-carousel  {
    padding: 0 0 46px;
  }
  #gallery .worlds-page-arrow  {
    z-index: 5;
  }
}

/* 20. fisheye-selector-3b687ddd147cea25 */
#native-fisheye-gallery .container {
  max-width:1200px
}

#native-fisheye-gallery .native-gallery-caption {
  max-width:850px;
  color:var(--ink)
}

.fisheye-browser {
  display:grid;
  grid-template-columns:220px minmax(0,1fr);
  gap:28px;
  max-width:1100px;
  margin:28px auto 0;
  align-items:start
}

.fisheye-inputs {
  display:grid;
  gap:14px
}

.fisheye-inputs h3 {
  font-size:1rem;
  font-weight:500;
  margin:0;
  text-align:center;
  color:var(--ink)
}

.fisheye-choice {
  display:block;
  width:100%;
  padding:10px;
  border:2px solid var(--border);
  border-radius:12px;
  background:var(--panel-background);
  color:var(--ink);
  font:inherit;
  cursor:pointer;
  text-align:center;
  transition:border-color .15s,background .15s
}

.fisheye-choice img {
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:3/2;
  object-fit:contain;
  border-radius:6px;
  background:#000
}

.fisheye-choice span {
  display:block;
  margin-top:7px;
  font-size:.95rem;
  line-height:1.35
}

.fisheye-choice[aria-pressed="true"] {
  border-color:#dc8696;
  background:rgba(148,31,48,.14)
}

.fisheye-choice:hover {
  border-color:#dc8696
}

.fisheye-choice:focus-visible {
  outline:3px solid #fff;
  outline-offset:4px
}

.fisheye-comparisons {
  min-width:0
}

.fisheye-comparison[hidden] {
  display:none!important
}

#native-fisheye-gallery .world-card {
  width:100%;
  max-width:none;
  margin:0
}

#native-fisheye-gallery .native-input-heading {
  justify-content:flex-start;
  margin:0 0 12px
}

#native-fisheye-gallery .native-input-heading h3 {
  font-size:1.25rem;
  color:var(--ink)
}

#native-fisheye-gallery .world-toolbar {
  margin-bottom:12px
}

#native-fisheye-gallery .world-frame {
  width:100%
}

#native-fisheye-gallery .world-card[data-selected-method="navworld_perspective"] .baseline-label {
  background:#941f30;
  color:#fff
}

html[data-theme="light"] .fisheye-choice:focus-visible {
  outline-color:#941f30
}

@media(max-width:900px) {
  .fisheye-browser {
    grid-template-columns:180px minmax(0,1fr);
    gap:20px
  }
}

@media(max-width:700px) {
  .fisheye-browser {
    grid-template-columns:1fr;
    gap:22px
  }
  .fisheye-inputs {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px
  }
  .fisheye-inputs h3 {
    grid-column:1/-1
  }
  .fisheye-choice {
    padding:8px
  }
  .fisheye-choice img {
    max-height:145px
  }
  .fisheye-choice span {
    font-size:.9rem
  }
}

@media(prefers-reduced-motion:reduce) {
  .fisheye-choice {
    transition:none
  }
}

/* 21. caption-inputs-599d5f7f987dbf2d */
/* Keep emphasized copy readable in the light theme, including hero sections. */
html[data-theme="light"] .content strong, html[data-theme="light"] .hero.is-light strong  {
  color: var(--ink);
}

#wide-field .section-copy strong  {
  display: block;
  margin-bottom: .4rem;
  color: var(--ink);
}

#wide-field .section-copy, #wide-field .section-copy p  {
  text-align: left;
}

/* Circular display crops; the original native fisheye images stay unchanged. */
#native-fisheye-gallery .fisheye-choice, #native-fisheye-gallery .fisheye-choice[aria-pressed="true"]  {
  background: #000;
  color: #f8f9fc;
}

#native-fisheye-gallery .fisheye-choice img  {
  width: min(100%, 194px);
  height: auto;
  max-height: none;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  margin: 0 auto;
  background: #000;
}

@media (max-width: 700px)  {
  #native-fisheye-gallery .fisheye-choice img  {
    width: min(100%, 140px);
  }
}

/* 22. fisheye-datasets-c8c0f9d57b92f06d */
#native-fisheye-gallery .fisheye-browser {
  grid-template-columns:230px minmax(0,1fr);
  gap:24px
}

#native-fisheye-gallery .fisheye-inputs {
  display:flex;
  flex-direction:column;
  gap:12px
}

.fisheye-datasets {
  display:grid;
  gap:7px
}

.fisheye-dataset-choice {
  font:inherit;
  font-size:.95rem;
  line-height:1.35;
  color:var(--ink);
  background:var(--panel-background);
  border:1px solid var(--border);
  border-radius:7px;
  padding:7px 12px;
  cursor:pointer
}

.fisheye-dataset-choice[aria-pressed="true"] {
  border-color:#dc8696;
  background:rgba(148,31,48,.2)
}

.fisheye-dataset-choice:focus-visible {
  outline:2px solid #dc8696;
  outline-offset:3px
}

.fisheye-scene-group {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px
}

.fisheye-scene-group[hidden] {
  display:none!important
}

#native-fisheye-gallery .fisheye-choice {
  padding:7px;
  border-radius:9px
}

#native-fisheye-gallery .fisheye-choice img {
  width:min(100%,96px)
}

#native-fisheye-gallery .fisheye-choice span {
  font-size:.8rem;
  line-height:1.25;
  margin-top:7px
}

@media(max-width:900px) {
  #native-fisheye-gallery .fisheye-browser {
    grid-template-columns:205px minmax(0,1fr);
    gap:18px
  }
}

@media(max-width:700px) {
  #native-fisheye-gallery .fisheye-browser {
    grid-template-columns:1fr;
    gap:18px
  }
  #native-fisheye-gallery .fisheye-inputs {
    display:grid;
    grid-template-columns:90px minmax(0,1fr);
    align-items:start;
    gap:10px
  }
  #native-fisheye-gallery .fisheye-inputs h3 {
    grid-column:1/-1
  }
  .fisheye-datasets {
    grid-column:1
  }
  .fisheye-dataset-choice {
    font-size:.8rem;
    padding:7px 4px
  }
  .fisheye-scene-group {
    grid-column:2;
    grid-row:2
  }
  #native-fisheye-gallery .fisheye-choice img {
    width:min(100%,84px)
  }
  #native-fisheye-gallery .fisheye-choice span {
    font-size:.74rem
  }
}

/* 23. lantern-teaser-450dfbb4c258f1e5 */
/* Lantern street: native video aspect, prominent matched-clip metrics. */
#headline-comparison .quad-stage  {
  aspect-ratio:640/352;
}

#headline-comparison .quad-label  {
  text-align:center;
  font-family:"Google Sans","Noto Sans",sans-serif;
  font-size:clamp(12px,1.8vw,24px);
}

#headline-comparison .quad-method  {
  display:block;
}

#headline-comparison .quad-metrics  {
  display:grid;
  gap:4px;
  margin-top:6px;
  font-size:1em;
  font-weight:400;
  line-height:1.2;
}

#wide-field .section-copy strong  {
  text-align:center;
}

@media(max-width:600px) {
  #headline-comparison .quad-label  {
    font-size:clamp(12px,3.33vw,14px);
  }
  #headline-comparison .quad-metrics  {
    gap:2px;
    margin-top:4px;
  }
}

/* 24. revisit-magnifier-216cbf50b3f2d464 */
#figure-5 .revisit-magnifier  {
  --revisit-zoom-x: 50%;
  --revisit-zoom-y: 50%;
  overflow: hidden;
  position: relative;
  width: 100%;
  border-radius: 4px;
  cursor: zoom-in;
  touch-action: pan-y;
}

#figure-5 .revisit-magnifier > img  {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  transform-origin: var(--revisit-zoom-x) var(--revisit-zoom-y);
}

#figure-5 .revisit-magnifier.is-zoomed  {
  cursor: zoom-out;
}

#figure-5 .revisit-magnifier.is-zoomed > img  {
  transform: scale(4);
}

#figure-5 .revisit-magnifier:focus-visible  {
  outline: 3px solid #ed7395;
  outline-offset: 4px;
}

#bibtex .bibtex-container  {
  padding: 1.15rem 1.5rem;
  border: 1px solid #7776;
  border-radius: 8px;
  text-align: left;
}

#bibtex .bibtex-pending  {
  color: #d5d5d5;
  margin: 0;
}

html[data-theme="light"] #bibtex .bibtex-pending, body.light-theme #bibtex .bibtex-pending  {
  color: #383838;
}

/* 25. readable-method-labels-b1962260bfc5c7c5 */
/* Keep method labels legible within the native academic table styles. */
html:not([data-theme="light"]) .result-table tbody th, html:not([data-theme="light"]) .result-table tbody td:first-child  {
  color: #e0e3e9;
}

html:not([data-theme="light"]) .result-table .result-group th  {
  color: #c2c7d0;
}

html:not([data-theme="light"]) .result-table .result-ours th  {
  color: #f2a0b3;
}

html[data-theme="light"] .result-table tbody th, html[data-theme="light"] .result-table tbody td:first-child  {
  color: #343842;
}

html[data-theme="light"] .result-table .result-ours th  {
  color: #941f30;
}

/* 26. gofish-selector-arrows-d5d8c00c1c4b9a8b */
/* GoFish Results scene rail; enlarge only its thumbnail column. */
#native-fisheye-gallery .fisheye-browser  {
  --scene-rail-width: clamp(100px, 12cqw, 144px);
  container-type: inline-size;
  grid-template-columns: var(--scene-rail-width) minmax(0, 1fr) var(--scene-rail-width);
  column-gap: .75rem;
  row-gap: 0;
  align-items: stretch;
}

#native-fisheye-gallery .fisheye-inputs  {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  gap: .35rem;
  min-width: 0;
  min-height: 0;
}

#native-fisheye-gallery .fisheye-inputs h3  {
  display: none;
}

#native-fisheye-gallery .fisheye-datasets  {
  display: grid;
  gap: .25rem;
}

#native-fisheye-gallery .fisheye-dataset-choice  {
  width: 100%;
  min-width: 0;
  padding: .28rem .12rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink);
  background: var(--panel-background);
  font: inherit;
  font-family: "Noto Sans", sans-serif;
  font-size: clamp(.7rem, calc(1.8cqw - .3rem), 1.18rem);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.15;
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

#native-fisheye-gallery .fisheye-dataset-choice[aria-pressed="true"]  {
  border-color: var(--ink);
  color: var(--panel-background);
  background: var(--ink);
}

#native-fisheye-gallery .fisheye-dataset-choice:focus-visible  {
  outline: 2px solid #dc8696;
  outline-offset: 2px;
}

#native-fisheye-gallery .fisheye-scene-viewport  {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  align-self: stretch;
  min-width: 0;
  min-height: 240px;
  overflow: hidden;
}

#native-fisheye-gallery .fisheye-scene-group  {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-content: start;
  gap: .4rem;
  min-width: 0;
  min-height: 0;
  padding-right: 2px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--border) transparent;
  scrollbar-width: thin;
}

#native-fisheye-gallery .fisheye-choice  {
  display: block;
  flex: 0 0 auto;
  height: auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: .7rem;
  background: #000;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

#native-fisheye-gallery .fisheye-choice img  {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  background: #000;
}

#native-fisheye-gallery .fisheye-choice span  {
  display: none;
}

#native-fisheye-gallery .fisheye-choice:hover  {
  border-color: var(--border);
  transform: translateY(-1px);
}

#native-fisheye-gallery .fisheye-choice[aria-pressed="true"]  {
  border-color: #dc8696;
  background: #000;
  box-shadow: 0 3px 12px #0003;
}

#native-fisheye-gallery .fisheye-comparisons  {
  grid-column: 2;
  grid-row: 1;
}

@media (max-width: 768px)  {
  #native-fisheye-gallery .fisheye-browser  {
    --scene-rail-width: clamp(64px, 20vw, 86px);
    grid-template-columns: var(--scene-rail-width) minmax(0, 1fr);
    gap: .5rem;
  }
  #native-fisheye-gallery .fisheye-inputs  {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }
  #native-fisheye-gallery .fisheye-datasets  {
    grid-column: 1;
    grid-row: 1;
  }
  #native-fisheye-gallery .fisheye-scene-viewport  {
    grid-column: 1;
    grid-row: 2;
    min-height: 160px;
  }
  #native-fisheye-gallery .fisheye-scene-group  {
    grid-column: auto;
    grid-row: auto;
    gap: .28rem;
    padding-right: 1px;
  }
  #native-fisheye-gallery .fisheye-dataset-choice  {
    padding: .36rem .25rem;
    font-size: clamp(.7rem, 3.2cqw, .82rem);
    font-weight: 600;
    letter-spacing: -.025em;
  }
  #native-fisheye-gallery .fisheye-choice  {
    border-radius: .45rem;
  }
}

@media (prefers-reduced-motion: reduce)  {
  #native-fisheye-gallery .fisheye-choice, #native-fisheye-gallery .fisheye-dataset-choice  {
    transition: none;
  }
  #native-fisheye-gallery .fisheye-choice:hover  {
    transform: none;
  }
}

/* Keep memory navigation outside the artwork, with page dots below. */
#wide-field #memory-carousel  {
  max-width: min(800px, calc(100% - 88px));
}

#wide-field .memory-viewport  {
  display: block;
  padding: 0;
  gap: 0;
  scroll-padding: 0;
  overflow: visible;
  height: auto !important;
}

#wide-field .memory-slide[hidden]  {
  display: none;
}

#wide-field .memory-slide  {
  padding: 0;
  box-sizing: border-box;
}

#wide-field .memory-artwork  {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#memory-carousel .memory-controls  {
  display: contents;
}

#memory-carousel .memory-arrow.source-nav  {
  position: absolute;
  inset: auto;
  top: calc(var(--memory-artwork-height) / 2);
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
}

#memory-carousel .memory-arrow[data-memory-previous]  {
  left: -44px;
}

#memory-carousel .memory-arrow[data-memory-next]  {
  right: -44px;
}

#memory-carousel .memory-arrow svg  {
  width: 16px;
  height: 16px;
}

#memory-carousel .memory-dots  {
  position: static;
  inset: auto;
  transform: none;
  justify-content: center;
  margin-top: 14px;
  padding: 0;
  background: none;
  gap: 10px;
}

#memory-carousel .memory-dot  {
  width: 10px;
  height: 10px;
}

@media (max-width: 600px)  {
  #wide-field #memory-carousel  {
    max-width: calc(100% - 80px);
  }
  #memory-carousel .memory-arrow.source-nav  {
    width: 32px;
    height: 32px;
  }
  #memory-carousel .memory-arrow[data-memory-previous]  {
    left: -40px;
  }
  #memory-carousel .memory-arrow[data-memory-next]  {
    right: -40px;
  }
}

#method .method-figure math  {
  font-size: 1em;
}

/* 27. baseline-links-03d89407b22f6fdf */
/* Preserve the readable method colors and expose standard link controls. */
.result-table th a.result-baseline-link  {
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

.result-table th a.result-baseline-link:hover  {
  text-decoration-thickness: 2px;
}

.result-table th a.result-baseline-link:focus-visible  {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* 28. fisheye-alignment-dd0ceaa00b818925 */
/* Center the visible scene rail and comparison as one desktop block. */
@media (min-width: 769px)  {
  #native-fisheye-gallery .fisheye-browser  {
    --fisheye-original-width: min(1100px, calc(100vw - 3rem));
    grid-template-columns: var(--scene-rail-width) minmax(0, 1fr);
    max-width: calc(min(1100px, 100%) - var(--scene-rail-width) - .75rem);
  }
  #native-fisheye-gallery .fisheye-dataset-choice  {
    font-size: clamp(.7rem, calc(var(--fisheye-original-width) * .018 - .3rem), 1.18rem);
  }
}

/* 29. bibtex */
/* Citation box and copy control follow GOFish's published design. */
#bibtex .bibtex-container  {
  --citation-bg: #ffffff;
  --citation-code-bg: #f5f5f5;
  --citation-text: #4a4a4a;
  --citation-quiet: #595959;
  --citation-border: #858585;
  --citation-border-hover: #6b6b6b;
  --citation-hover: #363636;
  --citation-copied: #257953;
  position: relative;
  background-color: var(--citation-code-bg);
  border-radius: 8px;
  padding: .5rem;
}

html[data-theme="dark"] #bibtex .bibtex-container  {
  --citation-bg: #000000;
  --citation-code-bg: #141414;
  --citation-text: #f7f9fb;
  --citation-quiet: #a6b0bb;
  --citation-border: #6b6b6b;
  --citation-border-hover: #9a9a9a;
  --citation-hover: #f7f9fb;
  --citation-copied: #56d364;
}

#bibtex .bibtex-container pre  {
  margin: 0;
  padding: 1.25em 1.5em;
  background: transparent;
  color: var(--citation-text);
  font-size: .875em;
  overflow-x: auto;
  white-space: pre;
  word-wrap: normal;
  overflow-wrap: normal;
}

#bibtex .bibtex-container code  {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: 1em;
  white-space: inherit;
}

#bibtex .copy-code-btn  {
  position: absolute;
  top: .5rem;
  right: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .5rem;
  background-color: var(--citation-bg);
  border: 1px solid var(--citation-border);
  border-radius: 4px;
  color: var(--citation-quiet);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

#bibtex .copy-code-btn:hover  {
  border-color: var(--citation-border-hover);
  color: var(--citation-hover);
}

#bibtex .copy-code-btn.copied  {
  color: var(--citation-copied);
  border-color: var(--citation-copied);
}

#bibtex .copy-code-btn:focus-visible  {
  outline: 2px solid #0476d0;
  outline-offset: 2px;
  border-radius: 3px;
}

#bibtex .copy-code-btn:active  {
  transform: translateY(1px);
}

@media (prefers-reduced-motion: reduce)  {
  #bibtex .copy-code-btn  {
    transition: none;
  }
}
