/* WoVR+-specific video controls. Base typography, colors, spacing, hero,
   navigation, headings, media frames, captions and cards come from RISE. */
button, select { font-family: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible {
  outline: 2px solid var(--navy-light); outline-offset: 3px;
}
.skip-link { position: fixed; top: -60px; left: 12px; z-index: 100; background: white; padding: 10px; }
.skip-link:focus { top: 10px; }
section, .task-comparison, #recovery { scroll-margin-top: 84px; }
.paper-authors { list-style: none; margin: 0; padding: 0; }
.paper-authors li { white-space: nowrap; }
.paper-authors sup { margin-left: 2px; }
/* Reuse RISE's hero metadata styles; let long affiliations wrap on small screens. */
.hero-video { height: auto; min-height: max(640px, 100svh); }
.hero-overlay { height: auto; min-height: max(640px, 100svh); padding: 64px 0 104px; }
.hero-overlay-inner { width: 100%; transform: none; }
.hero-title { text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.hero-meta, .hero-affiliations { text-shadow: 0 1px 4px rgba(0,0,0,.85); }
.hero-affiliations .affil-item { white-space: normal; }
.hero-dim { background: linear-gradient(90deg, rgba(0,0,0,.40), rgba(0,0,0,.22) 70%, rgba(0,0,0,.08)); }
@media (max-width: 768px) {
  .hero-video, .hero-overlay { min-height: 100svh; }
  .hero-overlay { padding: 40px 0 100px; }
}
.task-comparison { margin-top: 28px; }
.clip-label { color: var(--navy); font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.playback-note { margin-top: 0; }
.replay-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 24px; }
.replay-tab { background: white; color: var(--navy); border: 1px solid var(--rule); border-radius: 4px; padding: 8px 16px; font-size: 14px; line-height: 1.5; }
.replay-tab:hover { border-color: var(--navy); }
.replay-tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: white; }
.replay-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
.replay-panel[hidden] { display: none; }
.replay-card { min-width: 0; }
.replay-card h3 { margin: 0 0 14px; }
.media.video-frame.replay-frame { aspect-ratio: 8 / 9; }
@media (max-width: 700px) {
  .replay-panel { grid-template-columns: minmax(0, 1fr); }
  .replay-tab { padding: 8px 12px; }
}
.hero-video::after {
  background: linear-gradient(180deg, rgba(0,0,0,.30) 0%, rgba(0,0,0,.12) 42%, rgba(0,0,0,0) 68%, rgba(255,255,255,0) 94%, rgba(255,255,255,.90) 100%);
}
.topbar:not(.scrolled) { opacity: 0; visibility: hidden; pointer-events: none; }
.scrollhint { display: flex; bottom: 32px; pointer-events: auto; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.scrollhint:hover { text-decoration: none; color: #fff; }
.scrollhint .chevdown { filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.paper-figure { margin: 20px 0; }
.paper-figure img, .challenge-panel img { width: 100%; height: auto; display: block; }
.paper-figure a, .challenge-panel a { display: block; cursor: zoom-in; }
.core-claim-figure { max-width: 760px; margin: 20px auto; }
.core-question { font-style: italic; font-weight: 600; }
.challenge-grid { display: grid; grid-template-columns: minmax(0,1fr) 140px minmax(0,1fr); gap: 24px; align-items: center; max-width: 760px; margin: 24px auto; }
.challenge-panel { margin: 0; }
.challenge-panel figcaption, .extension-diagrams figcaption { font-family: Georgia, "Times New Roman", Times, serif; font-size: 18px; font-weight: 700; color: var(--navy); text-align: center; margin-bottom: 12px; }
.challenge-transition { text-align: center; color: var(--navy); }
.challenge-transition > span { display: block; font-size: 38px; line-height: 1.2; }
.challenge-transition small { display: block; color: var(--muted); font-size: 13px; margin-top: 8px; }
.extension-diagrams { max-width: 1000px; margin: 20px auto; }
.extension-diagrams .paper-figure + .paper-figure { margin-top: 30px; }
.extension-list { padding-left: 24px; margin: 22px 0 0; }
.extension-list li { padding-left: 4px; margin-bottom: 14px; }
.method-block + .method-block { margin-top: 36px; }
.method-block { scroll-margin-top: 84px; }
.method-points { padding-left: 24px; margin: 20px 0 0; }
.method-points li { padding-left: 4px; margin-bottom: 12px; }
.result-block { scroll-margin-top: 84px; }
.result-block + .result-block { margin-top: 42px; }
.result-table-wrap { overflow-x: auto; margin: 20px 0 10px; border-top: 1px solid var(--navy); border-bottom: 1px solid var(--navy); }
.result-table-wrap:focus-visible { outline: 2px solid var(--navy-light); outline-offset: 4px; }
.result-table { width: 100%; min-width: 570px; border-collapse: collapse; font-size: 14px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.result-table caption { text-align: left; font-weight: 600; padding: 12px 10px; }
.result-table th, .result-table td { padding: 8px 10px; text-align: center; white-space: nowrap; border-bottom: 1px solid #e5e7eb; }
.result-table thead th { color: var(--navy-dark); background: #f8f9fa; font-weight: 600; }
.result-table tbody th { text-align: left; font-weight: 400; }
.result-table tbody tr:last-child > * { border-bottom: 0; }
.result-table .ours { background: #f1f5fb; }
.result-table .ours th { color: var(--navy); font-weight: 700; }
.result-table .group-start > * { border-top: 1px solid #9ca3af; }
.result-table .view-group th { border-top: 1px solid #9ca3af; font-family: Georgia, "Times New Roman", Times, serif; font-style: italic; color: var(--navy); padding-top: 12px; }
.fidelity-table { min-width: 1010px; font-size: 12px; }
.fidelity-table th, .fidelity-table td { padding: 8px 7px; }
.fidelity-table thead th[colspan] { border-bottom-color: #9ca3af; }
.fidelity-table tbody td:nth-child(8), .fidelity-table tbody td:last-child { border-left: 1px solid #e5e7eb; }
.compact-results-table { max-width: 850px; margin-left: auto; margin-right: auto; }
.second-best { text-decoration: underline; text-underline-offset: 3px; }
.result-note { line-height: 1.55; }
.result-figure { margin: 24px 0; }
.result-figure figcaption { color: var(--muted); font-size: 13px; line-height: 1.6; margin-top: 10px; }
.correlation-figure { max-width: 700px; margin-left: auto; margin-right: auto; }
.phone-result-figure { scroll-margin-top: 84px; }
.phone-results-grid { display: grid; grid-template-columns: minmax(0,1.85fr) minmax(0,1fr); gap: 24px; }
.phone-results-grid h4 { margin: 0 0 12px; color: var(--navy); font: 600 18px/1.3 Georgia, "Times New Roman", Times, serif; }
.phone-stage-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-variant-numeric: tabular-nums; }
.phone-stage-table thead th { height: 40px; padding: 0 4px; text-align: center; font-size: 12px; font-weight: 500; color: var(--muted); }
.phone-stage-table thead th:first-child { width: 29%; text-align: left; padding-left: 10px; }
.phone-stage-table tbody tr { height: 72px; }
.phone-stage-table tbody th { padding: 8px 10px; text-align: left; font-size: 13px; line-height: 1.4; font-weight: 500; background: #fafbfc; border-bottom: 1px solid #e5e7eb; }
.phone-stage-table tbody th span { display: block; }
.phone-stage-cell { text-align: center; padding: 8px 2px; background: var(--stage-color); border: 2px solid white; line-height: 1.5; }
.phone-stage-cell strong { display: block; font-size: 17px; color: #172554; font-weight: 600; }
.phone-stage-cell > span { display: block; color: #354666; font-size: 12px; }
.phone-uniform th { color: var(--navy); font-weight: 700 !important; background: #eef2ff !important; }
.phone-stage-table .phone-uniform > * { box-shadow: inset 0 2px 0 var(--navy), inset 0 -2px 0 var(--navy); }
.phone-stage-table .phone-uniform th { box-shadow: inset 2px 0 0 var(--navy), inset 0 2px 0 var(--navy), inset 0 -2px 0 var(--navy); }
.phone-stage-table .phone-uniform td:last-child { box-shadow: inset -2px 0 0 var(--navy), inset 0 2px 0 var(--navy), inset 0 -2px 0 var(--navy); }
.phone-heatmap-scale { height: 32px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; color: var(--muted); font-size: 11px; }
.phone-heatmap-gradient { width: 104px; height: 8px; border-radius: 2px; background: linear-gradient(to right, #f4f7fc, #9daffd); border: 1px solid #d4dbe7; }
.phone-end-subtitle { height: 40px; display: flex; align-items: center; padding-left: 8px; color: var(--muted); font-size: 12px; }
.phone-end-row { height: 72px; display: flex; align-items: center; }
.phone-end-chart { display: block; width: 100%; height: 64px; overflow: visible; font-family: inherit; }
.phone-end-grid { stroke: rgba(10,20,40,.10); stroke-width: 1; }
.phone-end-bar { fill: rgba(120,140,170,.55); }
.phone-uniform .phone-end-bar { fill: rgba(91,124,250,.88); }
.phone-end-value { fill: #526078; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.phone-end-count { font-size: 12px; font-weight: 400; }
.phone-uniform .phone-end-value { fill: var(--navy); font-weight: 700; }
.phone-end-axis { display: block; width: 100%; height: 28px; color: var(--muted); fill: currentColor; font-size: 11px; font-family: inherit; }
.phone-mobile-method { display: none; }
@media (max-width: 760px) {
  .phone-results-grid { grid-template-columns: 1fr; gap: 26px; }
  .phone-results-grid h4 { font-size: 17px; }
  .phone-stage-table tbody th { font-size: 12px; padding-left: 5px; padding-right: 5px; overflow-wrap: anywhere; }
  .phone-stage-cell strong { font-size: 13px; }
  .phone-stage-cell > span { font-size: 11px; }
  .phone-stage-table thead th { font-size: 11px; }
  .phone-stage-table thead th:first-child { width: 30%; padding-left: 5px; }
  .phone-stage-cell { border-width: 1px; }
  .phone-end-subtitle { height: auto; padding: 0; margin-bottom: 14px; }
  .phone-end-row { height: auto; display: block; margin-bottom: 12px; }
  .phone-mobile-method { display: block; font-size: 13px; font-weight: 500; }
  .phone-mobile-method span { margin-left: 4px; }
  .phone-uniform .phone-mobile-method { color: var(--navy); font-weight: 700; }
}
@media (max-width: 360px) {
  .phone-stage-cell strong { font-size: 11px; }
  .phone-stage-cell > span { font-size: 10px; }
  .phone-stage-table thead th { padding: 0 1px; font-size: 10px; }
  .phone-stage-table tbody th { font-size: 11px; }
}
.robot-result-figure { scroll-margin-top: 84px; }
.robot-chart-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 12px; }
.robot-chart-toolbar .legend { gap: 18px; }
.robot-sft-swatch { background: rgba(120,140,170,.55); }
.robot-ours-swatch { background: rgba(91,124,250,.88); }
.robot-chart-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,.64fr); gap: 12px; }
.robot-chart-panel { min-width: 0; padding: 14px 10px 8px; border: 1px solid var(--rule); border-radius: 6px; background: #fafbfc; }
.robot-chart-panel h4 { font-family: Georgia, "Times New Roman", Times, serif; font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--navy); margin: 0 4px 12px; }
.robot-chart-wrap { position: relative; border: 1px solid var(--rule); border-radius: 14px; background: white; }
.robot-chart { display: block; width: 100%; height: 300px; font-family: inherit; }
.robot-gridline { stroke: rgba(10,20,40,.10); stroke-width: 1; }
.robot-axis { stroke: rgba(11,16,32,.60); stroke-width: 1; }
.robot-axis-label { fill: rgba(75,85,101,.85); font-size: 11px; }
.robot-task-label { fill: rgba(11,16,32,.85); font-size: 11px; font-weight: 500; }
.robot-sft .robot-bar-shape { fill: rgba(120,140,170,.55); }
.robot-ours .robot-bar-shape { fill: rgba(91,124,250,.88); }
.robot-error-bar { fill: none; stroke: #526078; stroke-width: 1.25; }
.robot-bar-value { fill: #526078; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.robot-ours .robot-bar-value { fill: var(--navy); }
.robot-bar-hit { fill: transparent; }
.robot-bar { cursor: default; outline: none; }
.robot-bar:hover .robot-bar-shape, .robot-bar:focus .robot-bar-shape { stroke: var(--navy); stroke-width: 1.5; }
.robot-bar:focus-visible .robot-bar-hit { stroke: var(--navy); stroke-width: 1.5; stroke-dasharray: 3 3; }
.robot-chart-tip { z-index: 2; width: max-content; max-width: calc(100% - 16px); }
.robot-chart-tip > * { display: block; }
.robot-result-figure noscript img { display: block; width: 100%; height: auto; }
.will-animate .robot-bar-ink { transform: scaleY(0); transform-origin: 0px var(--chart-baseline); }
.will-animate .robot-bar-value { opacity: 0; }
.will-animate.is-visible .robot-bar-ink { transform: scaleY(1); transition: transform .75s cubic-bezier(.22,.61,.36,1); }
.will-animate.is-visible .robot-bar-value { opacity: 1; transition: opacity .35s ease .45s; }
@media (max-width: 900px) {
  .robot-chart-grid { grid-template-columns: 1fr; }
  .robot-chart-panel { padding: 14px 12px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .will-animate .robot-bar-ink { transform: none; }
  .will-animate .robot-bar-value { opacity: 1; }
}
@media (max-width: 600px) {
  .challenge-grid { grid-template-columns: 1fr; gap: 14px; }
  .challenge-panel { max-width: 290px; width: 100%; margin: 0 auto; }
  .challenge-transition > span { transform: rotate(90deg); }
  .challenge-transition small { display: none; }
}
.media.video-frame { aspect-ratio: 4 / 3; }
.media.video-frame video { object-fit: contain; }
.expand-button { position: absolute; right: 10px; top: 10px; display: flex; align-items: center; justify-content: center; width: 30px; height: 28px; background: rgba(0,0,0,.45); color: white; border: 1px solid rgba(255,255,255,.65); border-radius: 4px; font-size: 21px; line-height: 1; }
.expand-button:hover { background: rgba(0,0,0,.7); }
.recovery-single { max-width: 680px; margin-top: 10px; }
.video-dialog { width: min(1000px, calc(100vw - 28px)); max-height: 94vh; border: 1px solid var(--rule); border-radius: 6px; padding: 18px; }
.video-dialog::backdrop { background: rgba(0,0,0,.8); }
.dialog-heading { display: flex; align-items: start; gap: 20px; justify-content: space-between; }
.dialog-heading h2 { font-size: 20px; font-weight: 700; }
.dialog-heading .btn { flex-shrink: 0; }
.video-dialog video { width: 100%; max-height: 70vh; display: block; object-fit: contain; }
.video-error { position: absolute; inset: 35% 15px auto; color: white; font-size: 14px; text-align: center; background: #222; padding: 12px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Latest paper figures; preserve the RISE base stylesheet. */
.extended-scope-figure { max-width: 1000px; margin: 24px auto; }
.extensions-overview-figure { max-width: none; margin: 24px auto; }
.result-block h4 { color: var(--navy); font: 600 18px/1.4 Georgia, "Times New Roman", Times, serif; margin: 24px 0 12px; }
