/* CORO-V components on top of the PlaceIt3D (Bulma) template. */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --text: #111214;
  --muted: #6b7079;
  --line: #e8e9ec;
  --accent: #2f5bd3;
  --front: #e5484d;
  --right: #2f9e5f;
  --up: #3b6fd8;
  --max: 1040px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: "Charter", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.center { text-align: center; }
.lead { color: var(--muted); font-size: 16.5px; max-width: 720px; margin: 0 auto 36px; }
.figure { background: #fff; border-radius: 10px; overflow: hidden; }
.figure img { width: 100%; height: auto; }
figcaption { color: var(--muted); font-size: 14.5px; line-height: 1.65; margin: 16px auto 0; max-width: 900px; }
figcaption b { color: var(--text); font-weight: 600; }
.figure.tall { max-width: 720px; margin: 0 auto; }
.wrap.wide { max-width: 1280px; }
.gap-top { margin-top: 40px; }
.toolbar.centered { justify-content: center; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 24px; }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 16px; height: 3px; border-radius: 2px; display: inline-block; }
.c-front { background: var(--front); }
.c-right { background: var(--right); }
.c-up { background: var(--up); }
.vcard .media { border-radius: 10px; overflow: hidden; background: #000; cursor: zoom-in; }
.vcard video { width: 100%; height: auto; transition: transform .35s ease; }
.vcard .media:hover video { transform: scale(1.015); }
.vcard .meta { padding: 9px 2px 0; }
.vcard .ds { font-size: 14px; color: var(--muted); }
.vcard[hidden] { display: none; }
.table-wrap { overflow-x: auto; }
table.results { border-collapse: collapse; width: 100%; font-size: 12.5px; font-variant-numeric: tabular-nums; }
table.results th, table.results td { padding: 6px 6px; text-align: center; white-space: nowrap; }
table.results thead tr:first-child th { font-weight: 600; border-top: 1.5px solid var(--text); padding-top: 12px; }
table.results thead tr.sub th { color: var(--muted); font-weight: 450; font-size: 12px; border-bottom: 1px solid var(--text); }
table.results th:first-child, table.results td:first-child { text-align: left; position: sticky; left: 0; background: var(--bg); z-index: 1; }
table.results tr.group td { font-style: italic; color: var(--muted); padding-top: 14px; border-top: 1px solid var(--line); }
table.results tr.ours.first td { border-top: 1px solid var(--line); }
table.results tr.ours td:first-child { font-weight: 650; }
table.results tbody tr:last-child td { border-bottom: 1.5px solid var(--text); }
table.results td.best { font-weight: 700; }
table.results .ov { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.tnote { color: var(--muted); font-size: 13px; margin: 12px 0 0; }
.data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 860px; margin: 0 auto; }
.data-card h3 { display: flex; align-items: baseline; gap: 8px; font-size: 19px; }
.data-card h3 small { color: var(--muted); font-weight: 400; font-size: 13px; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.kv b { display: block; font-size: 24px; font-weight: 650; letter-spacing: -.02em; }
.kv span { color: var(--muted); font-size: 13px; }
.data-card p { color: var(--muted); margin: 0; font-size: 15px; }
@media (max-width: 760px) { .data-grid { grid-template-columns: 1fr; gap: 32px; } }
.charts2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; max-width: 1000px; margin: 0 auto; }
@media (max-width: 860px) { .charts2 { grid-template-columns: 1fr; gap: 32px; } }
svg.chart { width: 100%; height: auto; display: block; font-family: var(--sans); max-width: 1000px; margin: 0 auto; }
svg.chart .ct { font-size: 14px; font-weight: 600; fill: var(--text); }
svg.chart .cs { font-size: 11.5px; fill: var(--muted); }
svg.chart .cl { font-size: 12.5px; fill: var(--muted); }
svg.chart .cv { font-size: 12px; fill: var(--muted); font-variant-numeric: tabular-nums; }
svg.chart .strong { fill: var(--text); font-weight: 700; }
svg.chart .grid-l { stroke: var(--line); stroke-width: 1; }
.b-off { fill: color-mix(in srgb, var(--muted) 35%, var(--bg)); background: color-mix(in srgb, var(--muted) 35%, var(--bg)); }
.b-coro { fill: color-mix(in srgb, var(--muted) 75%, var(--bg)); background: color-mix(in srgb, var(--muted) 75%, var(--bg)); }
.b-ours { fill: var(--accent); background: var(--accent); }
.chart-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 0; font-size: 13px; color: var(--muted); }
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.chart-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.chart-h { margin: 64px 0 14px; font-size: 15px; font-weight: 600; }
.full-table { margin: 48px auto 0; }
.full-table summary { cursor: pointer; text-align: center; color: var(--muted); font-size: 14px; list-style: none; }
.full-table summary::-webkit-details-marker { display: none; }
.full-table summary::after { content: " ▾"; }
.full-table[open] summary { margin-bottom: 18px; }
.full-table summary:hover { color: var(--text); }
.lead b.ink { color: var(--text); font-weight: 650; }
.subhead { font: 400 1.15rem/1.4 'Noto Sans', sans-serif; color: var(--muted); margin: -4px auto 18px; }
.tldr { max-width: 760px; margin: 0 auto 28px; padding: 0 24px; text-align: center; font: 400 19px/1.5 var(--serif); }
.player { max-width: 960px; margin: 0 auto; }
.player .stage { border-radius: 12px; overflow: hidden; background: #000; }
.player .main { width: 100%; height: auto; display: block; }
.player.tall .stage { max-width: 440px; margin: 0 auto; }
.thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 14px 2px 6px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.player.tall .thumbs { justify-content: safe center; }
.thumb { flex: 0 0 auto; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: none;
  cursor: pointer; opacity: .8; transition: opacity .15s, border-color .15s, transform .15s, box-shadow .15s; scroll-snap-align: start; position: relative; }
.thumb:hover, .thumb:focus-visible { opacity: 1; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.thumb-img::after { content: ""; position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
  background: rgba(0,0,0,.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 7v10l8-5z'/%3E%3C/svg%3E") center/18px no-repeat;
  transition: opacity .15s; pointer-events: none; }
.thumb.on .thumb-img::after { opacity: 0; }
/* example picker panel */
.picker { border: 1px solid var(--line); border-radius: 12px; background: #f7f8fa; padding: 14px 14px 16px; }
.picker-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.picker-title { font: 600 15px/1.2 'Google Sans', sans-serif; color: var(--text); }
.picker-nav { display: inline-flex; align-items: center; gap: 8px; }
.pnav { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #d5d8de; background: #fff; color: var(--text);
  font-size: 20px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0 0 2px;
  transition: background .15s, border-color .15s, color .15s; }
.pnav:hover, .pnav:focus-visible { background: #3273dc; border-color: #3273dc; color: #fff; }
.pcount { font: 500 13px/1 'Noto Sans', sans-serif; color: var(--muted); min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; }
.player .thumbs .thumb { display: flex; flex-direction: column; background: #fff; border: 1px solid #dfe2e7; border-radius: 10px; padding: 4px;
  opacity: 1; overflow: visible; }
.player .thumbs .thumb:hover, .player .thumbs .thumb:focus-visible { border-color: #3273dc; }
.player .thumbs .thumb.on { border-color: #3273dc; box-shadow: 0 0 0 2px #3273dc; }
.thumb-img { position: relative; display: block; border-radius: 6px; overflow: hidden; }
.thumb-ds { display: block; font: 500 11.5px/1.2 'Noto Sans', sans-serif; color: var(--muted); text-align: center; padding: 6px 2px 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb.on .thumb-ds { color: #3273dc; font-weight: 600; }
.thumb.on { opacity: 1; border-color: var(--text); }
.thumb img { display: block; height: 72px; width: auto; }
.player.tall .thumb img { height: 96px; }
.reel-wrap { margin: 8px 0 0; padding: 0 0 44px; overflow: hidden; }
.reel { position: relative; }
.reel-track { display: flex; gap: 20px; will-change: transform; transition: transform .45s cubic-bezier(.4, 0, .2, 1); }
.reel-card { flex: 0 0 min(680px, 56vw); aspect-ratio: 16 / 9; background: #000; cursor: pointer; opacity: .4; transition: opacity .45s ease; }
.reel-card.on { opacity: 1; cursor: default; }
.reel-card video { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel-ui { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 18px 0 0; }
.reel-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); transition: background .15s;
}
.reel-btn:hover { background: color-mix(in srgb, var(--text) 15%, transparent); }
.reel-btn svg { width: 16px; height: 16px; }
.reel-dots { display: flex; gap: 8px; align-items: center; }
.reel-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; cursor: pointer;
  background: color-mix(in srgb, var(--text) 25%, transparent); transition: width .3s ease, background .3s ease;
}
.reel-dots button.on { width: 24px; background: var(--text); }
.reel-cap { text-align: center; color: var(--muted); font-size: 14px; margin: 14px 24px 0; }
@media (max-width: 640px) { .reel-card { flex-basis: 86vw; } .reel-track { gap: 10px; } }
@media (prefers-reduced-motion: reduce) { .reel-track, .reel-card, .reel-dots button { transition: none; } }
.reel-card, .player .stage, .vcard .media { border-radius: 0; }
.reel-btn.toggle { margin-left: 6px; }
.reel-btn.toggle svg { width: 12px; height: 12px; }
.reel-btn.toggle .i-play { display: none; }
.reel-btn.toggle[aria-pressed="true"] .i-play { display: block; }
.reel-btn.toggle[aria-pressed="true"] .i-pause { display: none; }
.gap-top-s { margin-top: 36px; }
.player.tall { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 36px; max-width: 1000px; align-items: start; }
.player.tall .stage { max-width: none; margin: 0; }
.player.tall .side { display: flex; flex-direction: column; gap: 16px; }
.side-key { margin: 0; font-size: 14.5px; line-height: 1.75; color: var(--muted); }
.side-key b { color: var(--text); font-weight: 600; display: inline-block; min-width: 62px; }
.player.tall .thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 10px; overflow: visible; padding: 0; }
.player.tall .thumb img { height: auto; width: 100%; }
@media (max-width: 760px) { .player.tall { grid-template-columns: 1fr; gap: 16px; } .player.tall .stage { max-width: 420px; margin: 0 auto; } .player.tall .thumbs { display: flex; overflow-x: auto; } .player.tall .thumb img { height: 96px; width: auto; } }

/* light only, like the template */
:root { color-scheme: light; --bg: #fff; --text: #363636; --muted: #6b7079; --line: #e8e9ec; }
.tldr { font-family: 'Google Sans', sans-serif; font-size: 1.25rem; margin: 6px auto 22px; max-width: 760px; text-align: center; color: #4a4a4a; }
.reel-wrap { margin: 0 auto; max-width: 1240px; }
.teaser-fig { margin-top: 2rem; }
.teaser-fig .figure, .qual-fig .figure { padding: 0; background: none; }
.qual-fig { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid #c8c8c8; }
.content figure { margin: 0; }
.content figcaption { text-align: left; }
.content h3.chart-h { font-size: 1rem; font-weight: 600; margin: 1.5rem 0 .75rem; }
.content table.results td, .content table.results th { border: 0; }
.content table.results thead tr:first-child th { border-top: 1.5px solid var(--text); }
.content table.results thead tr.sub th { border-bottom: 1px solid var(--text); }
.content table.results tbody tr:last-child td { border-bottom: 1.5px solid var(--text); }
.content .kv b { display: block; }
.language-css { position: relative; }
.language-css pre { white-space: pre; border-radius: 10px; padding: 1.25rem 1.25rem; font-size: .85rem; }
.btn-copy { position: absolute; top: 8px; right: 8px; font: 600 12px 'Google Sans', sans-serif; color: #fff; background: #363636;
  border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.footer-note { padding: 1rem 0 2.5rem; color: #7a7a7a; font-size: .9rem; }
.publication-authors .author-block { margin: 0 .15rem; }
.hero .teaser-fig { margin: .5rem auto 2.5rem; }
.hero .teaser-fig figcaption { font-size: .95rem; }
/* Font Awesome inline-SVG sizing (as in the template) */
.svg-inline--fa { display: inline-block; height: 1em; overflow: visible; vertical-align: -.125em; font-size: inherit; }
.svg-inline--fa.fa-w-12 { width: .75em; }
/* Data: composition bars and synthetic gallery */
.sub-h { font-family: 'Google Sans', sans-serif; font-size: 1.15rem !important; font-weight: 600; margin: 2.75rem 0 1.1rem !important; }
.comp { max-width: 860px; margin: 0 auto; }
.comp-row { margin: 0 0 14px; }
.comp-h { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.comp-h span { color: var(--muted); }
.comp-bar { position: relative; display: flex; height: 26px; background: var(--line); overflow: hidden; }
.comp-bar span { display: block; height: 100%; }
.comp-bar span + span { box-shadow: inset 2px 0 0 #fff; }
.comp-bar em { position: absolute; top: 50%; transform: translate(-50%, -50%); color: #fff; font-style: normal; font-size: 13px; font-weight: 600; }
.g-syn { background: #363636; } .g-drive { background: #8d939c; } .g-hum { background: #b4b9c0; } .g-obj { background: #d3d6da; } .g-rel { background: #e6e8ea; }
.comp-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; font-size: 13px; color: var(--muted); margin-top: 12px; }
.comp-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; }
.comp-note { text-align: center; color: var(--muted); font-size: 13px; margin: 8px 0 0 !important; }
.synth-lead { max-width: 760px; margin: 0 auto 18px !important; text-align: center; color: #4a4a4a; }
.synth-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.synth-grid figure { margin: 0 !important; }
.synth-grid img, .synth-grid video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.synth-grid figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 4px; }
.center-legend { justify-content: center; margin-top: 12px; }
@media (max-width: 640px) { .synth-grid { grid-template-columns: 1fr 1fr; } }

.player.tall .side, .picker { min-width: 0; }

/* separator between teaser videos and teaser figure */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.axis-divider { display: flex; align-items: center; gap: 8px; max-width: 520px; margin: 6px auto 30px; }
.axis-divider span { flex: 1; height: 1px; }
.axis-divider span:first-child { background: linear-gradient(90deg, transparent, #cfd3da); }
.axis-divider span:last-child { background: linear-gradient(90deg, #cfd3da, transparent); }
.axis-divider i { width: 6px; height: 6px; border-radius: 50%; }
.axis-divider .f { background: var(--front); } .axis-divider .r { background: var(--right); } .axis-divider .u { background: var(--up); }

/* edge arrows on the teaser reel */
.reel-edge { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.92); color: var(--text); box-shadow: 0 2px 10px rgba(0,0,0,.18); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .15s, transform .15s; }
.reel-edge svg { width: 18px; height: 18px; }
.reel-edge:hover, .reel-edge:focus-visible { background: #fff; transform: translateY(-50%) scale(1.08); }
.reel-edge.prev { left: 16px; } .reel-edge.next { right: 16px; }
@media (max-width: 640px) { .reel-edge { width: 36px; height: 36px; } .reel-edge.prev { left: 8px; } .reel-edge.next { right: 8px; } }

/* tighter gap between teaser figure and abstract */
.hero .teaser-fig { margin-bottom: 0; }
.hero .hero-body { padding-bottom: 12px; }
/* larger method figure: breaks out of the 960px column */
#method img[src$="method.jpg"] { width: min(1200px, 94vw); max-width: none; position: relative; left: 50%; transform: translateX(-50%); }
/* larger "Full results table" toggle */
.full-table summary { font-size: 16.5px; font-weight: 500; }
.reel-edge { width: 56px; height: 56px; }
.reel-edge svg { width: 24px; height: 24px; }
@media (max-width: 640px) { .reel-edge { width: 42px; height: 42px; } .reel-edge svg { width: 20px; height: 20px; } }
/* synthetic gallery: 3 per row, last row centred */
.synth-grid { display: flex !important; flex-wrap: wrap; justify-content: center; }
.synth-grid figure { flex: 0 0 calc((100% - 20px) / 3); }
@media (max-width: 640px) { .synth-grid figure { flex-basis: calc((100% - 10px) / 2); } }
/* smooth jump to the citation */
html { scroll-behavior: smooth; }
#citation { scroll-margin-top: 24px; }
.synth-grid figure { flex: 0 0 calc((100% - 10px) / 2); }
.synth-grid figure { flex: 0 0 calc((100% - 20px) / 3); }
@media (max-width: 640px) { .synth-grid figure { flex-basis: 100%; } }
