/* AcouSplat supplementary page — typography follows the paper figures (STIX). Fully offline. */
@font-face { font-family: "STIX Local"; src: url("../assets/fonts/STIXGeneral.ttf") format("truetype"); font-weight: 400; font-style: normal; }
@font-face { font-family: "STIX Local"; src: url("../assets/fonts/STIXGeneralItalic.ttf") format("truetype"); font-weight: 400; font-style: italic; }
@font-face { font-family: "STIX Local"; src: url("../assets/fonts/STIXGeneralBol.ttf") format("truetype"); font-weight: 700; font-style: normal; }
@font-face { font-family: "STIX Local"; src: url("../assets/fonts/STIXGeneralBolIta.ttf") format("truetype"); font-weight: 700; font-style: italic; }

:root {
  --ink: #1b1d22;
  --muted: #5d6470;
  --faint: #8c929c;
  --rule: #e2e4e9;
  --panel: #f6f6f3;
  --bg: #ffffff;
  --accent: #367dbd;          /* cvprblue of the paper */
  --accent-soft: #e8f0f8;
  --left: #0073d9;            /* left ear, as in the figures */
  --right: #cc268c;           /* right ear */
  --gold: #e8b931;
  --ours: #1f5f99;
  --radius: 6px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "STIX Local", "STIXGeneral", "STIX Two Text", "Times New Roman", serif;
  font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; display: block; }
button { font: inherit; }
a { color: var(--accent); }

.hero { text-align: center; padding: 50px 0 30px; }
.venue { margin: 0 0 14px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; font-size: 13.5px; }
.hero h1 { margin: 0; font-size: 40px; line-height: 1.18; font-weight: 700; letter-spacing: -0.005em; }
.authors { margin: 16px 0 0; font-size: 20px; color: var(--muted); font-style: italic; }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 22px 0 0; }
.linkbtn {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 7px 6px 14px;
  border: 1px solid #cfd4dc; border-radius: 999px; background: #fff; color: var(--ink);
  font: inherit; font-size: 16.5px; line-height: 1; cursor: pointer;
  transition: border-color .12s, background .12s;
}
.linkbtn:hover { border-color: var(--accent); background: var(--accent-soft); }
.linkbtn svg { width: 16px; height: 16px; flex: none; color: var(--accent); }
.linkbtn-label { font-weight: 700; }
.soon {
  font-family: "Segoe UI", "Helvetica Neue", sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ours);
  background: var(--accent-soft); border-radius: 999px; padding: 4px 8px;
}
.headphones {
  display: inline-flex; align-items: center; gap: 10px; margin: 16px 0 0; padding: 7px 16px;
  border: 1px solid var(--rule); border-radius: 999px; font-size: 15.5px; color: var(--muted); background: var(--panel);
}
.hp-icon {
  width: 18px; height: 16px; display: inline-block;
  background: no-repeat center/contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22' fill='none' stroke='%235d6470' stroke-width='2' stroke-linecap='round'><path d='M3 14v-3a9 9 0 0 1 18 0v3'/><rect x='2' y='13' width='5' height='8' rx='1.5'/><rect x='17' y='13' width='5' height='8' rx='1.5'/></svg>");
}

.toc { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,0.94); backdrop-filter: blur(6px);
       border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.toc .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 26px; padding-top: 10px; padding-bottom: 10px; }
.toc a { color: var(--muted); text-decoration: none; font-size: 16px; }
.toc a:hover { color: var(--accent); }

section { padding: 44px 0 10px; border-bottom: 1px solid var(--rule); }
section:last-of-type { border-bottom: 0; padding-bottom: 48px; }
h2 { font-size: 30px; margin: 0 0 18px; font-weight: 700; }
#overview h2 { text-align: center; }
h3 { font-size: 19px; margin: 0 0 6px; }
.lead { color: #2c3038; margin: 0 0 18px; }
.small { font-size: 15px; color: var(--muted); margin-top: 18px; }
.abstract { text-align: justify; hyphens: auto; }
.lch { color: var(--left); font-weight: 700; } .rch { color: var(--right); font-weight: 700; }
.star { color: var(--gold); }

.figure { margin: 0 0 26px; }
.figure img { margin: 0 auto; border-radius: 2px; }
.figure figcaption { font-size: 15.5px; color: #3b4049; margin-top: 10px; line-height: 1.5; text-align: justify; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 8px 0 26px; }
.step { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px 18px 14px; }
.step p { margin: 0; font-size: 16px; color: #353a43; }
.step .num { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff;
             align-items: center; justify-content: center; font-weight: 700; font-size: 15px; margin-bottom: 8px; }

/* tabs and chips */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--rule); margin: 6px 0 14px; flex-wrap: wrap; }
.tab { font: inherit; font-size: 17px; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted);
       padding: 8px 16px 9px; cursor: pointer; margin-bottom: -1px; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); font-weight: 700; }
.dsnote { font-size: 15px; color: var(--muted); margin: 0 0 16px; min-height: 1em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chip { font: inherit; font-size: 15.5px; border: 1px solid var(--rule); background: #fff; color: #333944; border-radius: 999px;
        padding: 5px 14px; cursor: pointer; transition: background .12s, border-color .12s; }
.chip:hover { border-color: #b9c3d1; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip.ours { font-weight: 700; }

/* example grids */
.example { margin: 0 0 30px; }
.example-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.example-head .title { font-weight: 700; font-size: 17.5px; }
.example-head .meta { font-size: 14.5px; color: var(--muted); }
.grid-scroll { overflow-x: auto; padding-bottom: 6px; }
.egrid { display: grid; gap: 8px; min-width: 980px; }
.ecol { display: flex; flex-direction: column; }
.ecol .lab { font-size: 14.5px; text-align: center; color: #2f343c; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ecol.ours .lab { font-weight: 700; color: var(--ours); }
.view { border-radius: 3px; overflow: hidden; background: #eee; }
.view img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 480 / 307; }
.cellbtn { position: relative; padding: 0; border: 1px solid var(--rule); border-radius: 3px; overflow: hidden; background: #fff; cursor: pointer; }
.cellbtn img { width: 100%; aspect-ratio: 480 / 307; }
.cellbtn:hover { border-color: #9fb3c9; box-shadow: 0 1px 6px rgba(30, 60, 100, .12); }
.cellbtn .play { position: absolute; right: 6px; top: 6px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.92);
                 box-shadow: 0 1px 3px rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; }
.cellbtn .play::before { content: ""; border-left: 9px solid var(--ink); border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 2px; }
.cellbtn.playing { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.cellbtn.playing .play::before { border: 0; width: 9px; height: 10px; margin: 0; background: linear-gradient(90deg, var(--ink) 0 35%, transparent 35% 65%, var(--ink) 65%); }
.cellbtn .cursor { position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.95); box-shadow: 0 0 3px rgba(0,0,0,.6); left: 0; display: none; }
.cellbtn.playing .cursor { display: block; }
.legend { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14.5px; color: var(--muted); margin: 4px 0 18px; }
.legend i { display: inline-block; width: 18px; height: 3px; vertical-align: middle; margin-right: 6px; border-radius: 2px; }

/* transport */
.player { display: flex; align-items: center; gap: 14px; margin: 10px 0; }
.pbtn { font: inherit; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; cursor: pointer;
        display: flex; align-items: center; justify-content: center; flex: none; }
.pbtn::before { content: ""; border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }
.pbtn.on::before { border: 0; width: 12px; height: 14px; margin: 0; background: linear-gradient(90deg, #fff 0 34%, transparent 34% 66%, #fff 66%); }
.timeline { position: relative; flex: 1; height: 30px; cursor: pointer; }
.timeline .track { position: absolute; left: 0; right: 0; top: 13px; height: 4px; background: var(--rule); border-radius: 2px; }
.timeline .fill { position: absolute; left: 0; top: 13px; height: 4px; background: var(--accent); border-radius: 2px; width: 0; }
.timeline .knob { position: absolute; top: 8px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); left: 0; }
.timeline .tick { position: absolute; top: 20px; font-size: 12px; color: var(--faint); transform: translateX(-50%); }
.timeline .tick::before { content: ""; position: absolute; left: 50%; top: -9px; width: 1px; height: 6px; background: #c9cdd4; }
.ptime { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 92px; text-align: right; }

/* walk */
.walk-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.frames { position: relative; border-radius: 4px; overflow: hidden; background: #111; aspect-ratio: 16 / 9; }
.frames img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: none; }
.frames .stamp { position: absolute; left: 10px; bottom: 9px; color: #fff; font-size: 14px; background: rgba(0,0,0,.5); padding: 2px 9px; border-radius: 3px; }
#walk-map { width: 100%; height: auto; aspect-ratio: 16 / 9; border: 1px solid var(--rule); border-radius: 4px; background: #fbfbfa; display: block; }

/* receivers */
.rx-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 8px; }
.rx { position: relative; padding: 0; border: 2px solid transparent; border-radius: 5px; overflow: hidden; cursor: pointer; background: #000; }
.rx img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: .82; transition: opacity .15s; }
.rx:hover img { opacity: 1; }
.rx .tag { position: absolute; left: 8px; top: 7px; font-size: 13.5px; color: #fff; background: rgba(0,0,0,.55); padding: 1px 8px; border-radius: 3px; }
.rx[aria-pressed="true"] { border-color: var(--accent); }
.rx[aria-pressed="true"] img { opacity: 1; }
.rx[aria-pressed="true"] .tag { background: var(--accent); }

.notes { padding-left: 20px; } .notes li { margin-bottom: 8px; font-size: 16.5px; }
.foot { color: var(--faint); font-size: 14px; padding: 26px 0 40px; text-align: center; }
code { font-size: 0.92em; }

@media (max-width: 860px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .hero h1 { font-size: 29px; }
  .steps { grid-template-columns: 1fr; }
  .walk-stage { grid-template-columns: 1fr; }
  .rx-grid { grid-template-columns: repeat(2, 1fr); }
}

/* SoundSpaces viewpoints: the 3D view and four images share one full-width row. */
.ssv { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: start; margin-top: 6px; }
.ssv-3d { grid-column: 1; }
.v3d-stage.ssv-stage { aspect-ratio: 1 / 1; }
.ssv-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 8px; }
.ssv-cards { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ssv-card { position: relative; padding: 0; border: 2px solid transparent; border-radius: 5px; overflow: hidden; cursor: pointer; background: #000; }
.ssv-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; opacity: .9; }
.ssv-card:hover img { opacity: 1; }
.ssv-card .tag { position: absolute; left: 8px; top: 7px; font-size: 13.5px; color: #fff; background: rgba(0,0,0,.55); padding: 1px 8px; border-radius: 3px; }
.ssv-card.playing { border-color: var(--accent); }
.ssv-card.playing .tag { background: var(--accent); }
.ssv-card .bar { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--accent); width: 0; }
@media (max-width: 860px) {
  .ssv { grid-template-columns: 1fr; }
  .ssv-3d, .ssv-cards { grid-column: auto; }
  .ssv-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 3-D viewer */
.v3d-tabs .tab { font-size: 15.5px; padding: 7px 12px 8px; }
.v3d { margin-top: 4px; }
.v3d-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden;
             background: #fbfbfa; cursor: grab; touch-action: none; user-select: none; }
.v3d-stage:active { cursor: grabbing; }
.v3d-gl, .v3d-over { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.v3d-over { pointer-events: none; }
.v3d-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 16px; }
.v3d-check { display: inline-flex; align-items: center; gap: 6px; font-size: 15.5px; color: #333944; margin-left: 6px; cursor: pointer; }
.v3d-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; font-size: 14.5px; color: var(--muted); margin: 8px 0 20px; }
.v3d-legend { margin: 0; gap: 14px; }
.v3d-legend .sw { display: inline-block; width: 18px; height: 11px; border-radius: 50%; border: 1.3px solid; vertical-align: middle; margin-right: 5px; }
.v3d-legend .star-sw { color: #f2a900; font-size: 15px; margin-right: 4px; -webkit-text-stroke: 0.6px #000; }
.v3d-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 0 0 1px #c9cdd4; vertical-align: middle; margin-right: 5px; }
