/* SonicWorld content and controls, adapted to Academic Project Page Template. */
:root { --ink: #1e293b; --muted: #64748b; --blue: #2563eb; --teal: #2563eb; --orange: #b75a27; --line: #e2e8f0; --soft: #f8fafc; }
* { box-sizing: border-box; }
html { scroll-padding-top: 76px; }
body { margin: 0; font-size: 17px; line-height: 1.7; }
button, select, input { font: inherit; }
button { cursor: pointer; }
a { text-underline-offset: 4px; }
button:focus-visible, a:focus-visible, select:focus-visible, [tabindex="0"]:focus-visible { outline: 3px solid #2563eb; outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; width: 19px; height: 19px; flex-shrink: 0; }
h3 { font-size: 20px; line-height: 1.4; font-weight: 650; color: var(--ink); }
strong { font-weight: 650; }
.container { width: min(1100px, calc(100% - 48px)); max-width: 1100px; margin-inline: auto; }
.container.is-max-desktop { max-width: 980px; }
.container.reading-width { width: min(860px, calc(100% - 48px)); max-width: 860px; margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; left: 20px; top: 12px; padding: 8px 14px; background: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
.publication-header .hero-body { padding: 3rem 0 1.6rem; }
.publication-title { font-size: 3.8rem !important; letter-spacing: -.04em; margin-bottom: 1.15rem !important; }
.paper-title { font-size: 1.8rem; line-height: 1.4; font-weight: 500; max-width: 850px; margin: 0 auto 1.8rem; text-wrap: balance; }
.paper-category { color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.publication-authors { display: flex; flex-direction: column; gap: 7px; margin-bottom: 0; line-height: 1.6; font-size: 1.13rem; }
.author-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.publication-authors a { white-space: nowrap; }
sup { font-size: .67em; padding-left: 2px; }
.affiliations { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; line-height: 1.7; color: var(--muted); max-width: 930px; margin: 14px auto 0; }
.affiliations span { white-space: nowrap; }
.corresponding-author { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.7; text-align: center; }
.publication-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }
.publication-links .button { border-radius: 999px !important; min-height: 46px; height: auto; padding: .68rem 1.35rem; gap: 9px; margin: 0 !important; font-size: 15px; }
.release-note { font-size: 13px; color: var(--muted); margin-top: 14px; line-height: 1.5; text-wrap: balance; }
.teaser { padding: 0 0 2.8rem; }
.teaser .hero-body { padding: 1rem 0 1.8rem; }
.teaser-statement { max-width: 860px; margin: 0 auto 24px; font-size: 20px; text-align: center; line-height: 1.6; text-wrap: balance; }
.teaser-statement strong { color: var(--ink); }
.paper-figure { margin: 0; }
.figure-surface { position: relative; background: white; padding: 22px 18px 14px; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 2px 8px #0f172a05; }
.figure-surface > img { width: 100%; height: auto; }
.zoom-button, .icon-button { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.zoom-button { position: absolute; top: 8px; right: 8px; background: #fffffff2; width: 30px; height: 30px; color: var(--muted); z-index: 1; }
.zoom-button:hover, .icon-button:hover { background: #f1f5f9; border-color: #cbd5e1; }
figcaption { font-size: 14px; color: var(--muted); line-height: 1.7; text-align: center; max-width: 870px; margin: 18px auto 0; text-wrap: pretty; }
.section-nav { position: sticky; top: 0; background: #ffffffed; backdrop-filter: blur(10px); border-block: 1px solid var(--line); z-index: 4; }
.section-nav .container { display: flex; justify-content: center; gap: 30px; }
.section-nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 550; white-space: nowrap; padding: 15px 0 13px; border-bottom: 2px solid transparent; }
.section-nav a:hover, .section-nav a.active { color: var(--blue); border-bottom-color: var(--blue); }
.section { padding: 4rem 0; }
.abstract-section .hero-body { padding: 3.7rem 0; }
.abstract-section h2 { text-align: center; }
.abstract-section .eyebrow { text-align: center; }
.abstract-section p { line-height: 1.85; text-wrap: pretty; }
.abstract-section p + p { margin-top: 18px; }
.abstract-section strong { color: var(--ink); }
.section-heading { max-width: 860px; text-align: center; margin: 0 auto 32px; }
.section-heading > p:last-child { margin-top: 14px; color: var(--muted); }
.title.is-3 { font-size: 2rem; line-height: 1.3; text-wrap: balance; }
.eyebrow { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .09em; text-transform: uppercase; margin-bottom: 11px; }
.method-steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; margin-top: 36px; }
.method-steps article { padding: 22px; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; }
.step-number { font-size: 14px; color: var(--blue); font-weight: 700; }
.method-steps h3 { margin: 7px 0 10px; }
.method-steps p { font-size: 16px; color: var(--muted); line-height: 1.65; }
.benchmark-section, .examples-section { background: var(--soft); border-block: 1px solid var(--line); }
.statistics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 34px 0 38px; padding: 26px 0; background: white; border: 1px solid var(--line); border-radius: 12px; }
.statistics > div { text-align: center; border-right: 1px solid var(--line); padding: 4px 12px; }
.statistics > div:last-child { border-right: none; }
.stat-value { display: block; font-size: 34px; font-weight: 700; line-height: 1.3; color: var(--blue); font-variant-numeric: tabular-nums; }
.stat-label { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }
.benchmark-details { display: grid; grid-template-columns: 1.15fr 1fr; gap: 52px; }
.benchmark-details p { color: var(--muted); }
.split-description { margin-top: 14px; }
.benchmark-details h3 { margin-bottom: 12px; }
.task-list { list-style: none; padding: 0; margin: 0; }
.task-list li { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); gap: 12px; font-size: 16px; }
.task-list svg { color: var(--blue); }
.task-list small { color: var(--muted); margin-left: auto; font-size: 14px; text-align: right; }
.result-highlights { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin-bottom: 36px; }
.result-highlight { --result-accent: #2563eb; --result-soft: #eff6ff; padding: 22px 16px 16px; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.result-highlight h3 { font-size: 18px; }
.result-highlight > p { color: var(--muted); font-size: 14px; margin-top: 5px; }
.summary-comparison { width: 100%; border-collapse: collapse; table-layout: fixed; margin-top: 20px; font-variant-numeric: tabular-nums; }
.summary-comparison th, .summary-comparison td { text-align: right; padding: 10px 7px; }
.summary-comparison thead th { font-size: 12px; font-weight: 550; color: var(--muted); padding-block: 7px; }
.summary-comparison th:first-child { width: 36%; text-align: left; padding-left: 0; }
.summary-comparison tbody th { font-size: 14px; font-weight: 450; line-height: 1.5; }
.summary-comparison tbody th span { color: var(--muted); }
.summary-comparison td { font-size: 18px; color: var(--muted); line-height: 1.3; }
.summary-comparison tr > :last-child { background: var(--result-soft); color: var(--result-accent); }
.summary-comparison strong { font-size: 22px; font-weight: 700; }
.table-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.result-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; max-width: 100%; }
.result-select-wrap { display: flex; }
.result-select-wrap select, .case-select-wrap select { min-height: 46px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 30px 8px 12px; color: var(--ink); background: white; font-size: 14px; max-width: 100%; }
.result-description, .table-source, .metric-note { color: var(--muted); font-size: 14px; }
.result-description { margin-bottom: 16px; }
.metric-note { margin-top: 13px; }
.segmented { display: inline-flex; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; max-width: 100%; background: #f1f5f9; }
.segmented button { padding: 8px 15px; min-height: 40px; border-radius: 7px; border: 0; color: #64748b; background: transparent; font-size: 15px; line-height: 1.45; font-weight: 550; white-space: nowrap; }
.segmented button[aria-selected="true"] { background: var(--ink); color: white; }
.segmented button:hover:not([aria-selected="true"]) { background: #e2e8f0; }
.table-scroll { overflow-x: auto; border-top: 2px solid #64748b; scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
#results-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 16px; font-variant-numeric: tabular-nums; }
#results-table th { font-weight: 650; text-align: right; padding: 13px 15px; border-bottom: 1px solid #cbd5e1; white-space: nowrap; }
#results-table th:first-child, #results-table td:first-child { text-align: left; }
#results-table td { padding: 10px 15px; text-align: right; border-bottom: 1px solid #e2e8f0; white-space: nowrap; }
#results-table .group-row th { font-size: 12px; font-weight: 600; color: var(--muted); padding: 12px 15px 8px; border: 0; background: var(--soft); text-align: left; }
#results-table tbody tr:not(.group-row):not(.ours):hover td { background: var(--soft); }
#results-table tr.ours td { background: #eff6ff; border-top: 1px solid #bfdbfe; border-bottom: 1px solid #bfdbfe; color: #1d4ed8; }
#results-table tr.ours td:first-child { font-weight: 700; border-left: 3px solid var(--blue); padding-left: 12px; }
#results-table .best { font-weight: 700; color: #1d4ed8; }
.gallery-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.case-select-wrap { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.case-select-wrap select { width: 245px; }
.gallery-figure { background: #fff; padding: 12px 18px 0; border: 1px solid var(--line); border-radius: 12px; }
.gallery-figure .figure-surface { border: 0; padding-inline: 0; min-height: 180px; box-shadow: none; }
.gallery-figure img { width: 100%; object-fit: contain; }
.gallery-figure figcaption { padding: 16px 0 20px; margin-top: 20px; border-top: 1px solid var(--line); }
.case-text { margin: 18px auto 0; max-width: 840px; color: var(--muted); text-align: center; font-size: 16px; }
footer { border-top: 1px solid var(--line); padding: 26px 0; color: var(--muted); font-size: 13px; background: var(--soft); }
footer .container { display: flex; gap: 22px; align-items: center; }
footer p { flex: 1; }
.back-to-top { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 6px; margin-left: auto; }
dialog { width: min(1450px,calc(100% - 40px)); max-height: calc(100dvh - 40px); border: 0; border-radius: 10px; padding: 0; box-shadow: 0 15px 80px #0004; }
dialog::backdrop { background: #0f172bb5; }
.dialog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 14px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
.dialog-toolbar h2 { font-size: 18px; min-width: 0; }
.dialog-actions { display: flex; align-items: center; flex-shrink: 0; gap: 6px; }
.dialog-actions output { font-size: 13px; min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; }
.dialog-actions .icon-button { width: 32px; height: 32px; }
.icon-button:disabled { cursor: default; opacity: .4; }
.dialog-image { overflow: auto; padding: 16px; max-height: 75dvh; }
.dialog-image img { margin: auto; max-width: none; height: auto; }
@media (max-width: 1023px) {
  .result-highlights { grid-template-columns: 1fr; gap: 22px; }
  .gallery-toolbar { flex-direction: column; align-items: flex-start; }
  .case-select-wrap { width: 100%; justify-content: space-between; }
  .case-select-wrap select { width: 310px; }
  .summary-comparison th:first-child { width: 42%; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 32px); }
  .publication-header .hero-body { padding: 2.8rem 0 1.7rem; }
  .publication-title { font-size: 2.9rem !important; margin-bottom: 1rem !important; }
  .paper-title { font-size: 1.35rem; margin-bottom: 1.4rem; }
  .desktop-break { display: none; }
  .publication-authors { display: grid; grid-template-columns: 1fr 1fr; max-width: 370px; margin-inline: auto; font-size: 15px !important; gap: 6px 10px; }
  .author-row { display: contents; }
  .author-row:last-child a:last-child { grid-column: 1 / -1; justify-self: center; }
  .affiliations { gap: 3px 10px; font-size: 12px; }
  .affiliations span { white-space: normal; }
  .publication-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
  .publication-links .button { width: 100%; min-width: 0; font-size: 14px !important; padding: .7rem .6rem !important; }
  .teaser { padding-top: 0; }
  .container.reading-width { width: calc(100% - 32px); }
  .teaser-statement { font-size: 18px; margin-bottom: 21px; }
  .figure-surface { padding: 18px 6px 8px; border-radius: 10px; }
  .section-nav .container { justify-content: flex-start; gap: 19px; overflow-x: auto; scrollbar-width: none; }
  .section-nav .container::-webkit-scrollbar { display: none; }
  .section, .abstract-section .hero-body { padding-block: 2.7rem; }
  .title.is-3 { font-size: 1.65rem; }
  .section-heading { margin-bottom: 25px; }
  .method-steps, .benchmark-details { grid-template-columns: 1fr; gap: 20px; }
  .statistics { grid-template-columns: 1fr 1fr; gap: 23px 0; }
  .statistics > div:nth-child(2) { border-right: none; }
  .stat-value { font-size: 30px; }
  .stat-label { font-size: 13px; }
  .table-toolbar { align-items: flex-start; flex-direction: column; gap: 8px; }
  .result-controls { width: 100%; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; font-size: 14px; padding: 7px 8px; white-space: normal; min-width: 0; }
  .gallery-toolbar .segmented button { font-size: 13px; }
  .dataset-tabs { display: grid; grid-template-columns: 1fr 1.4fr .65fr; }
  .dataset-tabs button { padding-inline: 6px; font-size: 13px; white-space: nowrap; }
  .summary-comparison th:first-child { width: 37%; }
  .summary-comparison thead th { font-size: 11px; }
  .summary-comparison td { font-size: 17px; }
  #results-table { font-size: 14px; min-width: 600px; }
  #results-table[data-setting="spatialsceneqa"] { min-width: 380px; }
  #results-table th, #results-table td { padding: 10px 12px; }
  #results-table thead th:first-child, #results-table tbody td:first-child { position: sticky; left: 0; background: white; border-right: 1px solid var(--line); }
  #results-table tr.ours td:first-child { background: #eff6ff; padding-left: 9px; }
  .case-select-wrap { flex-direction: column; align-items: flex-start; gap: 6px; }
  .case-select-wrap select { width: 100%; }
  .gallery-figure { padding: 10px 10px 0; }
  .gallery-figure .figure-surface { min-height: 110px; }
  footer .container { flex-wrap: wrap; gap: 10px; }
  dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
  .dialog-toolbar { padding: 10px 12px; }
  .dialog-toolbar h2 { font-size: 14px; }
  .dialog-actions { gap: 3px; }
  .dialog-image { padding: 8px; }
}
@media (max-width: 359px) { .publication-links { grid-template-columns: 1fr; } .summary-comparison strong { font-size: 20px; } .summary-comparison th, .summary-comparison td { padding-inline: 5px; } .task-list li { gap: 8px; font-size: 14px; } .task-list small { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, .hero, .section { animation: none !important; transition: none !important; } }
