/* CSG-Fusion additions to vids.css (the stylesheet of the ViDS project page). Light only, like ViDS. */
html:root { color-scheme: light !important; }
html, body { background: #fff; }
body { overflow-x: clip; }
.section, .hero-body { padding-left: max(1.25rem, env(safe-area-inset-left, 0px)); padding-right: max(1.25rem, env(safe-area-inset-right, 0px)); }
.publication-title .paper-name { display: block; }
.publication-title .paper-subtitle { display: block; margin-top: .5rem; font-size: 1.75rem; line-height: 1.25; }
.publication-venue { display: flex; flex-wrap: wrap; justify-content: center; gap: .1rem .6rem; margin: 1rem auto .75rem; padding: .3rem 1.1rem; border: 1px solid #e0a100; border-radius: 1.75rem; background: #fff3c4; color: #4a3300; font-size: 1.2rem; line-height: 1.35; }
.publication-venue strong { display: inline-flex; align-items: center; gap: .4rem; color: #8a4b00; }
.publication-venue svg { width: 1.1em; height: 1.1em; fill: #c98a00; }
@media screen and (max-width: 768px) { .publication-venue { padding: .3rem 1rem; font-size: 1.1rem; } }
.publication-links .icon svg { width: 1em; height: 1em; fill: currentColor; }
.publication-links .button[aria-disabled="true"] { opacity: .5; cursor: default; pointer-events: none; }
.viewer-labels, .viewer-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 4fr); gap: .5rem; }
.viewer-labels { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 2fr); margin-bottom: .5rem; }
.viewer-labels span { padding: .25rem; font-size: .85rem; font-weight: 600; line-height: 1.25; text-align: center; }
.viewer-inputs { display: grid; gap: .5rem; align-content: space-between; }
.viewer-inputs img { display: block; width: 100%; aspect-ratio: 1.03; object-fit: cover; border: 1px solid var(--border-color); border-radius: 10px; }
.viewer-stage { position: relative; display: flex; gap: .8%; aspect-ratio: 2.016; overflow: hidden; border: 1px solid var(--border-color); border-radius: 10px; background: #fff; }
.viewer-stage img { flex: 1 1 0; min-width: 0; width: 50%; height: 100%; object-fit: cover; }
.viewer-stage canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.viewer-stage canvas:active { cursor: grabbing; }
.viewer-stage canvas:focus-visible { outline: 3px solid rgba(32, 156, 238, .65); outline-offset: -3px; }
.viewer-tag { display: none; }
.viewer-load { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.viewer-controls { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: .6rem; }
.viewer-controls [aria-pressed="true"] { border-color: #c22f3a; background: #c22f3a; color: #fff; }
.viewer-note { margin-top: .4rem; color: var(--muted-color); font-size: .82rem; text-align: center; }
.splat-viewer + .splat-viewer { margin-top: 2rem; }
.tab-list { display: none; }
.tab-title { margin: 1.5rem 0 .75rem !important; font-size: 1.2rem; font-weight: 600; text-align: center; }
.is-ready > .overlap-panel > .tab-title { display: none; }
.tab-list button { border: 0; color: #363636; font: inherit; line-height: 1.25; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
/* view overlap: one segmented control; it stays in view above the three 3D viewers */
.is-ready > .overlap-tabs { display: flex; gap: 4px; width: fit-content; max-width: 100%; margin: 0 auto 1.25rem; padding: 4px; border-radius: 999px; background: #ececec; }
.is-ready:has(> .overlap-panel .splat-viewer) > .overlap-tabs { position: sticky; top: .75rem; z-index: 5; box-shadow: 0 0 0 4px #fff; }
.overlap-tabs button { flex: 1 1 0; min-width: 8.5rem; min-height: 44px; padding: .4rem .5rem; border-radius: 999px; background: transparent; font-weight: 600; white-space: nowrap; }
.overlap-tabs button:hover { background: #d9d9d9; }
.overlap-tabs button[aria-selected="true"] { background: #363636; color: #fff; }
/* scenes of one overlap: thumbnails */
.is-ready > .scene-tabs { display: grid; grid-template-columns: repeat(4, 7.5rem); gap: .75rem; justify-content: center; margin-bottom: 1.25rem; }
.scene-tabs button { display: block; padding: 4px 4px .4rem; border: 2px solid #dbdbdb; border-radius: 10px; background: #fff; font-size: .85rem; }
.scene-tabs button:hover { border-color: #8a8a8a; background: #f5f5f5; }
.scene-tabs button[aria-selected="true"] { border-color: #363636; background: #363636; color: #fff; font-weight: 600; }
.scene-tabs img { display: block; width: 100%; aspect-ratio: 1.5; margin-bottom: .35rem; border-radius: 6px; object-fit: cover; }
.tab-list button:focus-visible, .zoom-tile:focus-visible { outline: 3px solid rgba(32, 156, 238, .65); outline-offset: 2px; }
.baseline-hint { margin-bottom: 1rem; }
[role="tabpanel"][hidden] { display: none; }
[data-tabs] + .quantitative-table-note { margin-top: 1rem; }
.baseline-panel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem .6rem; }
.baseline-panel figure { margin: 0; }
.baseline-panel figcaption { margin-top: .3rem; font-size: .85rem; line-height: 1.3; text-align: center; }
.baseline-panel figcaption span { font-weight: 600; }
.baseline-panel figcaption .ours { color: #b3261e; }
.baseline-panel figcaption small { display: block; color: var(--muted-color); font-size: .75rem; }
.zoom-tile { display: block; width: 100%; padding: 0; overflow: hidden; border: 1px solid #ddd; border-radius: 8px; background: #fff; cursor: zoom-in; }
.zoom-tile img { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.is-zoomed .zoom-tile img { transform: scale(2.5); transform-origin: var(--x) var(--y); }
.baseline-inputs > div { display: flex; flex-direction: column; gap: 4%; align-items: center; justify-content: center; aspect-ratio: 1; }
.baseline-inputs img { width: auto; height: 48%; aspect-ratio: 1; border: 1px solid #ddd; border-radius: 6px; }
.strip-scroll { overflow-x: auto; }
.strip-scroll figure { min-width: 720px; margin-top: 1rem; }
.strip-scroll img { display: block; width: 100%; border: 1px solid #ddd; border-radius: 6px; }
.strip-scroll p { margin-bottom: .35rem; font-size: .85rem; font-weight: 600; text-align: center; }
.quantitative-table .group-row th { position: static; background: #fafafa; color: var(--muted-color); font-weight: 600; text-align: left; }
.quantitative-table tbody th:first-child { white-space: normal; }
.multiview-table .run-column { width: 26%; }
.table-title { margin: 2.5rem 0 1rem; }
/* efficiency: one bar panel per metric; on wide screens they share the method names of the first */
.bar-legend { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-bottom: .75rem; font-size: .85rem; }
.bar-legend i { display: inline-block; width: 12px; height: 12px; margin-right: .4rem; border-radius: 3px; vertical-align: -1px; }
.bar-chart { display: grid; grid-template-columns: 22rem repeat(4, minmax(0, 1fr)); gap: 0 1rem; font-size: .8rem; line-height: 1.2; }
.bar-panel { position: relative; min-width: 0; }
.bar-title { height: 2.4rem; font-weight: 600; }
.bar-title small { display: block; color: var(--muted-color); font-weight: 400; }
.bar-group { height: 1.9rem; padding-top: .7rem; color: var(--muted-color); font-size: .75rem; font-weight: 600; white-space: nowrap; }
.bar-row { position: relative; display: flex; align-items: center; height: 1.65rem; }
.bar-name { position: relative; flex: 0 0 9.6rem; padding-left: 1rem; overflow-wrap: anywhere; }
.bar-track { display: flex; flex: 1 1 0; align-items: center; min-width: 0; padding-right: 2.7rem; }
.bar-track i { flex: 0 0 auto; height: 14px; background: #2a78d6; }
.bar-track i:last-of-type { border-radius: 0 4px 4px 0; }
.bar-track b { flex: 0 0 auto; width: 0; text-indent: 4px; font-weight: 400; white-space: nowrap; }
.part-reconstruct { background: #2a78d6 !important; }
.part-camera { background: #eb6834 !important; }
.part-render { background: #1baf7a !important; }
.kind-pixel { background: #2a78d6 !important; }
.kind-filtered { background: repeating-linear-gradient(135deg, #2a78d6 0 3px, #cfe0f5 3px 6px) !important; }
.kind-voxel { background: #fff !important; box-shadow: inset 0 0 0 2px #2a78d6; }
.bar-name i { position: absolute; left: 0; top: .2rem; width: 10px; height: 10px; border-radius: 2px; }
.bar-row.is-ours { background: #f3f3f3; font-weight: 700; }
.bar-row.is-ours b { font-weight: 700; }
.bar-row:hover, .bar-row:focus-visible { background: #e8eef6; outline: none; }
.bar-row:hover::after, .bar-row:focus-visible::after { content: attr(data-tip); position: absolute; z-index: 6; left: 0; top: 100%; width: max-content; max-width: 17rem; padding: .4rem .6rem; border-radius: 6px; background: #363636; color: #fff; font-size: .78rem; font-weight: 400; white-space: normal; pointer-events: none; }
.bar-panel:nth-child(n+4) .bar-row::after { right: 0; left: auto !important; }
@media screen and (min-width: 1024px) {
  .bar-panel:not(:first-child) .bar-name { display: none; }
  .bar-panel:not(:first-child) .bar-group { color: transparent; overflow: hidden; }
}
@media screen and (max-width: 1023px) {
  .bar-chart { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
  .bar-title { height: auto; }
}
@media screen and (max-width: 768px) { .bar-chart { grid-template-columns: minmax(0, 1fr); } .bar-panel .bar-row::after { right: auto; left: 0 !important; } }
.efficiency-table { margin-top: 0; }
.quantitative-table .type-column { width: 9.5%; }
.quantitative-table td { overflow-wrap: anywhere; }
.efficiency-table td, .multiview-table td { white-space: normal; line-height: 1.2; }
.efficiency-table thead th { white-space: normal; line-height: 1.2; }
.efficiency-section .quantitative-table-scroll { margin-top: 2rem; }
.citation-block { user-select: text; }
@media screen and (min-width: 1024px) { .publication-title.title.is-1 { white-space: normal; } .teaser .subtitle { white-space: normal; } }
@media screen and (max-width: 768px) {
  .publication-title .paper-subtitle { font-size: 1.3rem; }
  .viewer-labels { display: none; }
  .overlap-tabs button { min-width: 0; padding: .4rem .7rem; }
  .is-ready > .overlap-tabs { width: 100%; }
  .overlap-tabs .tab-unit { display: block; font-size: .7rem; font-weight: 400; line-height: 1; }
  .is-ready > .scene-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; }
  .scene-tabs button { padding: 3px 3px .3rem; font-size: .8rem; }
  .viewer-tag { position: absolute; top: .5rem; left: .5rem; display: block; padding: .15rem .5rem; border-radius: 6px; background: rgba(20, 20, 20, .75); color: #fff; font-size: .8rem; font-weight: 600; pointer-events: none; }
  .viewer-tag + .viewer-tag { top: calc(50% + .5rem); }
  .viewer-row { grid-template-columns: minmax(0, 1fr); }
  .viewer-inputs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .viewer-stage { flex-direction: column; aspect-ratio: .498; }
  .viewer-stage img { width: 100%; height: 50%; }
  .quantitative-table th:first-child { min-width: 120px; }
  .baseline-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .baseline-inputs { order: -2; }
  .baseline-gt { order: -1; }
}
.multiview-table thead th { white-space: normal; }
.publication-authors a, .publication-authors a:visited { color: #000 !important; }
.publication-authors a:hover, .publication-authors a:focus-visible { text-decoration: underline; }
@media screen and (max-width: 360px) { .publication-venue { padding: .3rem .5rem; font-size: 1rem; } .publication-links .button { font-size: .875rem; } }
.page-footer { padding: 2rem 1rem; color: var(--muted-color); font-size: .85rem; text-align: center; }
.page-footer a { color: inherit; text-decoration: underline; }
