@font-face {
  font-family: Inter;
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #1a2134;
  --muted: #606a7e;
  --accent: #4b50ca;
  --accent-dark: #353bb0;
  --purple: #7962bb;
  --line: #e1e5ee;
  --tint: #f6f7fb;
  --soft: #eef0fb;
  --radius: 18px;
  --container: 1200px;

  /* Benchmark bar chart palette (kept from this edition) */
  --indigo: #5670e6;
  --indigo-pale: #c8d3fa;
  --violet: #8960e3;
  --violet-pale: #d9cbf9;
  --coral: #df6d59;
  --coral-pale: #f5cec6;
  --bar-neutral: #dfe2e8;
  --gain-green: #0f7b55;
  --gain-bg: #eef7f3;

  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  overflow-anchor: none;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input, select {
  font: inherit;
}

button, a, summary, select {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: default;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible,
select:focus-visible,
video:focus-visible {
  outline: 3px solid #9eaff3;
  outline-offset: 4px;
}

h1, h2, h3, p, figure {
  margin: 0;
}

h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(30px, 3.05vw, 42px);
  font-weight: 620;
}

h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

p + p {
  margin-top: 16px;
}

img {
  max-width: 100%;
  display: block;
}

sup {
  font-size: 0.68em;
  line-height: 0;
  vertical-align: super;
  margin-left: 2px;
}

svg {
  display: block;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svg-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.container {
  width: min(var(--container), calc(100% - 72px));
  margin-inline: auto;
}

.section {
  padding-top: 96px;
  padding-bottom: 96px;
}

.section-tint {
  background: var(--tint);
  border-block: 1px solid #eceef5;
}

.eyebrow {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.13em;
  color: var(--accent);
  line-height: 1.5;
  margin-bottom: 18px;
}

.meta {
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.inline-code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--tint);
  border: 1px solid var(--line);
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

/* Header */
.site-header {
  height: 72px;
  border-bottom: 1px solid rgba(225, 229, 238, 0.85);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 30;
}

.nav-wrap {
  max-width: 1320px;
  height: 100%;
  margin: auto;
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-weight: 710;
  font-size: 20px;
  letter-spacing: -0.05em;
}

.brand:hover {
  color: var(--accent);
}

.brand-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-header nav > a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 550;
}

.site-header nav > a:hover,
.site-header nav > a.active {
  color: var(--accent);
}

.menu-toggle {
  display: none;
}

/* Hero */
.hero {
  text-align: center;
  padding-top: 62px;
  padding-bottom: 58px;
}

.project-name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: clamp(50px, 6.2vw, 74px);
  font-weight: 750;
  letter-spacing: -0.065em;
  color: var(--accent);
  line-height: 1.06;
  margin-bottom: 20px;
}

.hero-logo {
  height: clamp(48px, 5.8vw, 68px);
  width: auto;
  object-fit: contain;
}

.paper-title {
  display: block;
  max-width: 1040px;
  margin: auto;
  font-size: clamp(26px, 3.05vw, 40px);
  font-weight: 570;
  line-height: 1.22;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.authors {
  max-width: 1050px;
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(6, max-content);
  justify-content: center;
  column-gap: 24px;
  row-gap: 8px;
  line-height: 1.65;
}

.authors a {
  color: #354157;
  font-size: 16px;
  white-space: nowrap;
}

.authors a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.authors sup {
  color: var(--accent);
}

.mail-icon {
  display: inline-block;
  width: 11px;
  height: 11px;
  vertical-align: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
}

.affiliations {
  max-width: 1000px;
  margin: 17px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.affiliation-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px 20px;
}

.affiliation-row > span {
  white-space: nowrap;
}

.affiliations sup {
  margin-right: 3px;
}

.institution-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 27px;
  margin: 25px 0;
}

.institution-logos img {
  height: 46px;
  width: auto;
  max-width: 62px;
  object-fit: contain;
}

.resource-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  min-height: 45px;
  padding: 11px 20px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 560;
  border-radius: 9px;
  line-height: 1.4;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.button.primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 3px 9px rgba(75, 80, 202, 0.12);
}

.button.primary:hover {
  background: var(--accent-dark);
  color: #ffffff;
  transform: translateY(-1px);
}

.button.secondary {
  border-color: #d9deea;
  background: #ffffff;
  color: var(--ink);
}

.button.secondary:hover {
  background: var(--tint);
  border-color: #aeb8d0;
  color: var(--ink);
  transform: translateY(-1px);
}

/* Video Demo */
.demo-section {
  padding-bottom: 0;
}

.demo-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 20px;
}

.demo-heading h2 {
  font-size: 25px;
  letter-spacing: -0.035em;
  font-weight: 570;
}

.video-shell {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #141a2c;
  border: 1px solid #dce0eb;
  box-shadow: 0 16px 48px -30px rgba(46, 53, 102, 0.36);
  aspect-ratio: 16 / 9;
}

.video-shell video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-chapters {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  padding: 0 2px;
  margin-top: 17px;
}

.video-chapters button {
  border: 0;
  border-top: 2px solid #e5e8f0;
  background: transparent;
  text-align: left;
  padding: 13px 12px 9px;
  color: #596379;
  font-size: 13px;
  line-height: 1.4;
  transition: color 0.2s, border-color 0.2s;
}

.video-chapters button:first-child {
  padding-left: 0;
}

.video-chapters button span {
  display: block;
  font-size: 12px;
  color: #858da0;
  letter-spacing: 0.03em;
  margin-bottom: 5px;
  font-variant-numeric: tabular-nums;
}

.video-chapters button:hover,
.video-chapters button.is-current {
  border-top-color: var(--accent);
  color: var(--accent);
}

.video-chapters button.is-current span {
  color: var(--accent);
}

/* Overview + Headline Stats */
.overview-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  column-gap: 90px;
  row-gap: 60px;
}

.section-intro h2 {
  max-width: 490px;
}

.overview-copy {
  padding-top: 37px;
}

.overview-copy .lead {
  font-size: 22px;
  color: var(--ink);
  line-height: 1.5;
  letter-spacing: -0.025em;
  margin-bottom: 15px;
}

.overview-copy .lead em {
  font-style: normal;
  color: var(--accent);
}

.overview-copy > p:not(.lead) {
  color: var(--muted);
  line-height: 1.8;
}

.abstract {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 17px;
}

.abstract summary {
  display: list-item;
  width: fit-content;
  font-size: 14px;
  font-weight: 570;
  cursor: pointer;
  color: var(--accent);
  list-style-position: inside;
}

.abstract[open] summary {
  margin-bottom: 20px;
}

.abstract div {
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.82;
}

.abstract strong {
  color: var(--ink);
  font-weight: 600;
}

.headline-stats {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.headline-stats > div {
  padding: 0 32px;
  border-right: 1px solid var(--line);
}

.headline-stats > div:first-child {
  padding-left: 0;
}

.headline-stats > div:last-child {
  border: 0;
  padding-right: 0;
}

.stat-number {
  display: block;
  color: var(--accent);
  font-size: 53px;
  line-height: 1.1;
  letter-spacing: -0.06em;
  font-weight: 620;
  margin-bottom: 15px;
  font-variant-numeric: tabular-nums;
}

.stat-number > span {
  font-size: 22px;
  font-weight: 450;
  margin-left: 7px;
  letter-spacing: -0.03em;
}

.headline-stats h3 {
  font-size: 17px;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}

.headline-stats p {
  font-size: 14px;
  color: var(--muted);
  max-width: 300px;
  line-height: 1.65;
}

/* Motivation */
.motivation-grid {
  display: grid;
  grid-template-columns: 390px 1fr;
  gap: 74px;
  align-items: center;
}

.motivation-grid > * {
  min-width: 0;
}

.motivation-copy > h2 {
  margin-bottom: 35px;
}

.gap-explanation {
  display: flex;
  align-items: flex-start;
  gap: 17px;
  margin-top: 28px;
}

.gap-line {
  width: 3px;
  min-height: 30px;
  flex: none;
  background: #5686d4;
  margin-top: 4px;
  border-radius: 3px;
}

.gap-line.purple {
  background: #8b6bcd;
}

.gap-explanation h3 {
  font-size: 18px;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.gap-explanation p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.78;
}

.figure-panel {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}

.figure-panel img {
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

.figure-panel figcaption {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
}

.figure-expand {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e1e5ed;
  color: #667087;
  width: 35px;
  height: 35px;
  padding: 8px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  z-index: 2;
}

.figure-expand:hover {
  color: var(--accent);
  border-color: #b8bee5;
}

.figure-expand .icon {
  width: 16px;
  height: 16px;
}

/* Method */
.section-heading-simple {
  margin-bottom: 34px;
}

.method-figure {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 24px 20px;
  background: #ffffff;
}

.method-figure img {
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

.method-caption {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
}

.method-caption strong {
  color: var(--ink);
  font-weight: 600;
}

/* Results Panel (Astra shell + multi-backbone bar colors from this edition) */
.results-panel {
  background: #ffffff;
  border: 1px solid #dde2ef;
  border-radius: var(--radius);
  padding: 32px 36px 24px;
  box-shadow: 0 5px 15px -12px rgba(63, 72, 123, 0.18);
}

.chart-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.chart-toolbar h3 {
  font-size: 22px;
  font-weight: 600;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.swatch {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  display: inline-block;
}

.bench-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 24px;
}

.bench-pill {
  padding: 5.5px 9.5px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 560;
  transition: all 0.16s ease;
}

.bench-pill:hover {
  border-color: #b8c0dd;
  color: var(--accent);
}

.bench-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.chart-scroll {
  overflow-x: auto;
}

.bars-stage {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 16px;
  align-items: end;
  height: 295px;
  padding: 18px 8px 0;
  border-bottom: 1px solid var(--line);
}

.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}

.bar-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 7px;
  text-align: center;
}

.bar-meta img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  margin-bottom: 4px;
}

.bar-score {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
}

.bar-gain {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gain-green);
  min-height: 15px;
}

.bar-stack {
  width: 100%;
  max-width: 60px;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: height 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.bar-seg-gain {
  width: 100%;
  transition: height 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.bar-seg-base {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: rgba(26, 33, 52, 0.68);
  transition: height 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.bars-labels {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 16px;
  padding: 12px 8px 4px;
  text-align: center;
}

.bar-lbl {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.32;
  color: var(--ink);
}

.bar-lbl span {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}

.full-fig1-wrap {
  position: relative;
  padding-top: 6px;
}

.full-fig1-wrap img {
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

/* Always-Visible Benchmark Table Card */
.table-panel {
  background: #ffffff;
  border: 1px solid #dde2ef;
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-top: 24px;
  box-shadow: 0 5px 15px -12px rgba(63, 72, 123, 0.18);
}

.table-wrap {
  overflow-x: auto;
}

table.booktabs {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.4px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

table.booktabs thead {
  border-top: 2px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}

table.booktabs tbody {
  border-bottom: 2px solid var(--ink);
}

table.booktabs th {
  padding: 7px 3.5px;
  font-weight: 650;
  color: var(--ink);
  text-align: right;
}

table.booktabs th:first-child,
table.booktabs td:first-child {
  text-align: left;
  padding-left: 2px;
}

table.booktabs th.group-th {
  text-align: center;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}

table.booktabs td {
  padding: 5px 3.5px;
  text-align: right;
  color: var(--muted);
}

table.booktabs tr.group-row td {
  text-align: center;
  font-style: italic;
  color: #768093;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid #eceff6;
  padding: 5px 0;
  background: var(--tint);
}

table.booktabs tr.ours-apd td {
  background: var(--soft);
  color: var(--ink);
}

table.booktabs tr.ours-base td {
  border-top: 1px solid var(--line);
}

table.booktabs td .delta {
  font-size: 9.8px;
  color: var(--accent);
  margin-left: 1px;
}

table.booktabs td .delta.neg {
  color: #858da0;
}

table.booktabs strong {
  color: var(--ink);
  font-weight: 700;
}

table.booktabs u {
  text-underline-offset: 2px;
}

/* Analysis 2x2 Grid */
.analysis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
}

.analysis-grid > * {
  min-width: 0;
}

.analysis-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #dde2ef;
  border-radius: 14px;
  padding: 24px 26px;
}

.analysis-card > .figure-expand + img {
  margin-top: 14px;
}

.analysis-card img {
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

.analysis-caption {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
}

.analysis-caption strong {
  color: var(--ink);
  font-weight: 600;
}

.analysis-card h3 {
  font-size: 18px;
  font-weight: 620;
  color: var(--ink);
}

.analysis-sub {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.6;
}

.compact-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 16px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.compact-table th,
.compact-table td {
  padding: 9px 5px;
  border-bottom: 1px solid #e9ecf3;
  text-align: right;
  color: var(--muted);
}

.compact-table th:first-child,
.compact-table td:first-child {
  text-align: left;
  padding-left: 0;
  color: var(--ink);
}

.compact-table thead th {
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}

.compact-table tr.highlight-row td {
  font-weight: 650;
  color: var(--accent);
  background: var(--soft);
}

.compact-table tr.highlight-row td:first-child {
  padding-left: 8px;
  border-radius: 6px 0 0 6px;
}

.compact-table tr.highlight-row td:last-child {
  padding-right: 8px;
  border-radius: 0 6px 6px 0;
}

/* Citation & Footer */
.citation-box {
  border: 1px solid #e0e4ed;
  border-radius: 12px;
  background: #f8f9fc;
  overflow: hidden;
  min-width: 0;
}

.citation-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5e8f0;
  padding: 14px 19px;
}

.citation-toolbar h3 {
  font-size: 14px;
  letter-spacing: 0;
  font-weight: 600;
}

.citation-toolbar button {
  border: 0;
  background: transparent;
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  padding: 4px 6px;
  font-size: 13px;
  border-radius: 6px;
}

.citation-toolbar button:hover {
  color: var(--accent);
  background: var(--soft);
}

.citation-toolbar .icon {
  height: 15px;
  width: 15px;
}

.citation-box pre {
  padding: 19px;
  margin: 0;
  overflow: auto;
  font-size: 12.5px;
  line-height: 1.85;
  color: #536078;
  font-family: var(--font-mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
}

.site-footer > .container {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-footer .brand {
  font-size: 17px;
  gap: 8px;
}

.site-footer .brand-logo {
  width: 24px;
  height: 24px;
}

.site-footer p {
  color: #7c8597;
  font-size: 13px;
  flex: 1;
}

/* Dialog Lightbox */
#figure-dialog {
  max-width: min(1560px, 94vw);
  width: 94vw;
  max-height: 94vh;
  padding: 0;
  border: 1px solid #e2e7f0;
  border-radius: 14px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 20px 100px rgba(0, 0, 0, 0.28);
}

#figure-dialog::backdrop {
  background: rgba(12, 19, 39, 0.72);
  backdrop-filter: blur(5px);
}

.dialog-toolbar {
  padding: 16px 20px;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 2;
}

.dialog-toolbar p {
  font-size: 14px;
  font-weight: 550;
}

.dialog-toolbar button {
  border: 0;
  padding: 5px;
  background: transparent;
  color: var(--muted);
  flex: none;
}

.dialog-toolbar button:hover {
  color: var(--accent);
}

.dialog-image-wrap {
  padding: 24px;
  overflow: auto;
}

.dialog-image-wrap img {
  width: 100%;
  height: auto;
}

/* Responsive */
@media (max-width: 1100px) {
  .container {
    width: calc(100% - 56px);
  }
  .overview-section {
    column-gap: 50px;
  }
  .motivation-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 40px;
  }
  .authors {
    grid-template-columns: repeat(4, max-content);
    column-gap: 20px;
  }
  .section-heading {
    gap: 40px;
  }
  .headline-stats > div {
    padding: 0 24px;
  }
}

@media (max-width: 860px) {
  .site-header {
    height: 64px;
  }
  .nav-wrap {
    padding: 0 24px;
  }
  .container {
    width: calc(100% - 40px);
  }
  .hero {
    padding-top: 42px;
    padding-bottom: 44px;
  }
  .section {
    padding-block: 72px;
  }
  .overview-section,
  .motivation-grid,
  .analysis-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .overview-copy {
    padding-top: 0;
  }
  .section-intro h2 br,
  .motivation-copy > h2 br {
    display: none;
  }
  .section-heading {
    display: block;
    margin-bottom: 28px;
  }
  .section-heading > p {
    margin-top: 16px;
  }
  .video-chapters {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 8px;
  }
  .video-chapters button:first-child {
    padding-left: 10px;
  }
  .bars-stage,
  .bars-labels {
    min-width: 720px;
  }
  .results-panel {
    padding: 24px 20px 18px;
  }
  .table-panel {
    padding: 20px 18px;
  }
}

@media (max-width: 560px) {
  .nav-wrap {
    padding: 0 18px;
  }
  .site-header nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    background: #ffffff;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 20px rgba(26, 33, 52, 0.06);
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .site-header nav.is-open {
    display: grid;
  }
  .menu-toggle {
    border: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 2px 10px 12px;
  }
  .menu-toggle span {
    display: block;
    height: 1.5px;
    width: 21px;
    background: var(--ink);
  }
  .authors {
    grid-template-columns: repeat(3, max-content);
    column-gap: 13px;
  }
  .authors a {
    font-size: 14px;
  }
  .affiliations {
    font-size: 12px;
  }
  .affiliation-row > span {
    white-space: normal;
  }
  .institution-logos {
    gap: 20px;
  }
  .institution-logos img {
    height: 36px;
  }
  .resource-links {
    gap: 10px;
  }
  .headline-stats {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 24px;
  }
  .headline-stats > div,
  .headline-stats > div:first-child,
  .headline-stats > div:last-child {
    padding: 0 0 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .headline-stats > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }
  .stat-number {
    font-size: 42px;
    margin-bottom: 8px;
  }
  .method-tabs {
    gap: 18px;
    flex-wrap: wrap;
  }
  .method-tabs button {
    padding: 12px 2px;
  }
  .method-tabs button > span {
    font-size: 18px;
  }
  .method-tabs button > small {
    display: block;
    font-size: 12px;
  }
}
