/* Research content, figures, and native controls; no component framework. */
:root {
  color-scheme: light;
  --ink: #202124;
  --muted: #555b62;
  --accent: #185aa5;
  --line: #d9dde2;
  --wash: #f5f7f9;
  font-family: "Helvetica Neue", Helvetica, sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
}
[hidden] {
  display: none !important;
}
a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 4px;
}
a:hover {
  text-decoration: underline;
}
button,
select,
input {
  font: inherit;
}
button,
select {
  color: inherit;
  cursor: pointer;
  background: #fff;
  border: 1px solid #adb5bf;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 1rem;
  min-height: 44px;
}
button:hover {
  background: var(--wash);
}
a:focus-visible,
button:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
figure,
fieldset {
  margin: 0;
}
fieldset {
  border: 0;
  padding: 0;
  min-width: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  max-width: 960px;
  margin-inline: auto;
  font-family: inherit;
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
}
h2 {
  font-size: 2rem;
  line-height: 1.25;
  font-weight: 600;
}
h3 {
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 600;
}
.container {
  width: min(1120px, calc(100% - 64px));
  margin-inline: auto;
}
.section {
  padding: 56px 0;
}
.project-hero {
  padding-top: 64px;
  padding-bottom: 12px;
  text-align: center;
}
.venue {
  color: var(--muted);
  font-size: 1rem;
  margin-top: 12px;
}
.publication-authors {
  font-size: 1.2rem;
  margin-top: 28px;
}
.author-block {
  display: inline-block;
}
sup {
  font-size: 0.65em;
  margin-left: 3px;
}
.publication-affiliations {
  font-size: 1rem;
  color: var(--muted);
  margin-top: 12px;
}
.publication-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.publication-links a {
  display: inline-block;
  border: 1px solid #363636;
  border-radius: 24px;
  background: #363636;
  color: #fff;
  padding: 8px 22px;
  font-size: 1rem;
}
.publication-links .primary-link {
  color: #fff;
  background: #363636;
  border-color: #363636;
}
.content > p {
  max-width: 860px;
  margin: 20px 0;
}
.paper-demo {
  margin-top: 0;
}
.demo-controls,
.demo-selector,
.scatter-controls,
.chart-heading,
.section-heading,
.citation-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.demo-selector,
.scatter-controls {
  justify-content: flex-start;
  gap: 12px;
  font-size: 1rem;
}
select {
  max-width: 100%;
}
.demo-controls {
  margin-bottom: 24px;
}
.quiet-button {
  color: var(--muted);
}
.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
}
#half-image {
  width: 100%;
}
.demo-choices,
.metric-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.demo-choices legend {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.demo-choices label,
.metric-switch label {
  position: relative;
  cursor: pointer;
  padding: 8px 10px;
  border-bottom: 2px solid var(--line);
  font-size: 1rem;
  min-height: 44px;
}
.demo-choices input,
.metric-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.demo-choices label:has(:checked),
.metric-switch label:has(:checked) {
  color: var(--accent);
  border-color: var(--accent);
  background: #eef4fb;
}
.demo-choices label:has(:focus-visible),
.metric-switch label:has(:focus-visible) {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.demo-caption {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  line-height: 1.4;
  min-height: 3em;
  margin: 24px 0;
}
#half-caption-addition {
  color: #a13b26;
  background: #fff0e9;
  box-decoration-break: clone;
}
.demo-caption[data-kind="full"] #half-caption-addition {
  color: #176444;
  background: #eaf5ee;
}
.demo-axis-label,
.demo-note,
.figure-note,
figcaption {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
}
.demo-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  font-size: 1rem;
}
output,
td {
  font-variant-numeric: tabular-nums;
}
.demo-row output {
  text-align: right;
}
.demo-track {
  height: 22px;
  position: relative;
  background: var(--wash);
}
.chart-bar {
  height: 100%;
  display: block;
  background: #8d949c;
  transform-origin: left center;
}
.chart-ours {
  background: var(--accent);
}
.demo-anchor {
  position: absolute;
  top: -4px;
  bottom: -4px;
  border-left: 1px dashed var(--ink);
}
.demo-axis {
  display: flex;
  justify-content: space-between;
  margin: 10px 60px 0 84px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}
.demo-explanation {
  font-size: 1rem;
  min-height: 3.5em;
  margin-top: 18px;
}
.demo-note {
  margin-top: 20px;
}
.abstract-section,
.method-section {
  background: var(--wash);
}
.abstract-section {
  margin-top: 44px;
}
.section h2 {
  text-align: center;
}
.reading-width {
  max-width: 860px;
}
.abstract-text p {
  margin-top: 20px;
}
.section-intro {
  max-width: 860px;
  margin: 20px auto 32px;
}
.method-section .content > p {
  margin-inline: auto;
}
.method-section .paper-figure {
  margin: 32px 0;
}
.method-section .paper-figure img {
  width: 100%;
}
.section-heading {
  justify-content: center;
  margin-bottom: 0;
}
.chart-heading {
  margin-bottom: 30px;
}
.benchmark-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.dataset-panel header {
  margin-bottom: 24px;
}
.dataset-panel header span {
  color: var(--muted);
  font-size: 1rem;
}
.result-bar-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  margin: 18px 0;
}
.result-bar-row output {
  text-align: right;
}
.result-track {
  height: 22px;
  background: var(--wash);
}
.result-bar {
  display: block;
  height: 100%;
  background: #8d949c;
  transition: width 0.35s ease;
}
.result-bar-row.ours {
  color: var(--accent);
  font-weight: 600;
}
.ours .result-bar {
  background: var(--accent);
}
.fsc .result-bar {
  background: #ad8750;
}
.result-axis {
  display: flex;
  justify-content: space-between;
  margin: 16px 50px 0 90px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}
.result-overview .figure-note {
  margin-top: 24px;
}

.ablation-panel {
  min-width: 0;
}
#compositional-scatter {
  width: 100%;
  max-width: 800px;
  margin: 24px auto;
}
#scatter-download {
  display: block;
}
figcaption {
  margin-top: 16px;
}
.table-container {
  overflow-x: auto;
  max-width: 100%;
  margin: 20px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}
caption {
  color: var(--muted);
  text-align: left;
  padding-bottom: 16px;
  font-size: 1rem;
}
th,
td {
  text-align: right;
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
th:first-child {
  text-align: left;
}
thead th {
  color: var(--muted);
  font-weight: 500;
}
tbody th {
  font-weight: 400;
}
tr.highlight {
  background: #eef4fb;
}
tr.highlight th,
tr.highlight td,
.positive {
  font-weight: 600;
  color: var(--accent);
}
.results-table {
  border-block: 1px solid var(--line);
  margin: 40px 0;
  padding: 20px 0;
}
summary {
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 500;
}
#half-results {
  min-width: 780px;
}
.ablation-panel .figure-note {
  margin-top: 14px;
}
.citation-heading {
  margin-bottom: 24px;
}
pre {
  font-size: 0.9375rem;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--wash);
  padding: 24px;
}
#copy-status {
  font-size: 1rem;
  margin-top: 12px;
}
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding: 32px 0;
  font-size: 1rem;
}
footer p {
  width: 100%;
  color: var(--muted);
  font-size: 0.875rem;
}
.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  z-index: 10;
  padding: 12px;
  background: white;
  top: 0;
  left: 0;
}
@media (max-width: 900px) {
  .benchmark-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .dataset-panel {
    border-bottom: 1px solid var(--line);
    padding-bottom: 20px;
  }
  .dataset-panel:last-child {
    border: 0;
    padding-bottom: 0;
  }
  .demo-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  #half-image {
    max-width: 600px;
    margin-inline: auto;
  }
}
@media (max-width: 600px) {
  .container {
    width: calc(100% - 36px);
  }
  .project-hero {
    padding-top: 28px;
  }
  .publication-authors {
    font-size: 1.125rem;
  }
  .publication-affiliations {
    font-size: 0.9375rem;
  }
  .publication-links {
    gap: 8px;
  }
  .publication-links a {
    padding-inline: 16px;
  }
  .section {
    padding: 36px 0;
  }
  h2 {
    font-size: 1.75rem;
  }
  .demo-choices {
    gap: 4px;
  }
  .demo-choices label {
    padding-inline: 8px;
  }
  .demo-row {
    grid-template-columns: 72px minmax(0, 1fr) 48px;
    gap: 8px;
  }
  .demo-axis {
    margin-inline: 80px 56px;
  }
  .demo-caption {
    min-height: 2.8em;
  }
  .dataset-panel header {
    margin-bottom: 12px;
  }
  th,
  td {
    padding-inline: 8px;
  }
  .ablation-panel table {
    min-width: 550px;
  }
  pre {
    padding: 16px;
    font-size: 0.875rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.venue-badge {
  display: inline-block;
  margin: 0 0 24px;
  padding: 7px 18px;
  border: 1px solid #a8c3e3;
  border-radius: 999px;
  background: #eef5fc;
  color: #185aa5;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.venue-badge span {
  margin: 0 6px;
}
.affiliation-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px 36px;
  margin: 24px auto;
}
.affiliation-logos img {
  width: auto;
  height: auto;
  max-width: min(300px, 100%);
  max-height: 56px;
}
.publication-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
}
.publication-links svg {
  flex: 0 0 18px;
}
