:root {
  color-scheme: light;
  --white: #fff;
  --paper: #f5f7fb;
  --ink: #122039;
  --muted: #52617a;
  --line: #dae2ef;
  --blue: #2157a5;
  --dark: #10223c;
  --radius: 20px;
  font: 100%/1.6 system-ui, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
}
* { box-sizing: border-box; }
body, h1, h2, h3, p, figure, ul { margin: 0; }
body { min-width: 280px; }
a { color: var(--blue); text-underline-offset: .2em; }
a:hover { text-decoration: underline; }
button, select { font: inherit; }
button, select, summary { cursor: pointer; }
:focus-visible { outline: 3px solid #bf681e; outline-offset: 4px; }
img, video { max-width: 100%; display: block; }
.shell { width: min(calc(100% - 72px), 1240px); margin-inline: auto; }
.skip { position: fixed; left: 18px; top: 12px; transform: translateY(-150%); z-index: 5; padding: 8px 14px; background: white; }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.header-inner { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { color: var(--ink); display: inline-flex; align-items: center; font-weight: 790; font-size: 1.44rem; gap: 9px; text-decoration: none; white-space: nowrap; }
.header-inner nav { display: flex; gap: clamp(16px, 3vw, 38px); flex-wrap: wrap; }
.header-inner nav a, .paper-nav { color: var(--muted); font-weight: 620; font-size: .94rem; text-decoration: none; }
.paper-nav { color: var(--blue); white-space: nowrap; }
.paper-nav[aria-disabled="true"] { color: var(--muted); text-decoration: none; }
.hero { background: radial-gradient(ellipse at 87% 14%, #e4edff 0, #f4f7fb 52%, #f8fafc 80%); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; padding-block: clamp(45px, 6vw, 92px); }
.hero-copy { container-type: inline-size; }
.hero-kicker, .overline { text-transform: uppercase; letter-spacing: .14em; font-weight: 760; font-size: .83rem; color: var(--blue); }
h1, h2, h3 { text-wrap: balance; }
.hero-title {
  font-size: clamp(2.35rem, 4.35vw, 4.25rem);
  font-size: min(clamp(2.35rem, 4.35vw, 4.25rem), 10.3cqi);
  font-weight: 780;
  letter-spacing: -.058em;
  line-height: 1.06;
  margin-block: 16px 20px;
}
.hero-title span { display: block; }
.hero-deck { max-width: 40ch; text-wrap: pretty; font-size: clamp(1.12rem, 1.68vw, 1.42rem); color: var(--muted); font-weight: 480; line-height: 1.42; }
.authors { display: flex; flex-wrap: wrap; gap: 4px 17px; padding: 0; list-style: none; margin-block: 25px 8px; font-size: .96rem; font-weight: 640; line-height: 1.45; }
.authors sup, .affiliations sup { margin-left: 2px; }
.affiliations { display: flex; flex-wrap: wrap; gap: 3px 13px; font-size: .87rem; color: var(--muted); }
.corresponding-author { margin-top: 3px; font-size: .82rem; color: var(--muted); }
.email { margin-left: 4px; text-decoration: none; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 8px 17px; min-height: 45px; border-radius: 9px; border: 1px solid #cbd7e8; background: var(--white); color: var(--ink); text-decoration: none; font-weight: 650; }
.button:hover { background: #edf3fd; text-decoration: none; }
.button.primary { color: white; background: var(--blue); border-color: var(--blue); }
.button.primary:hover { background: #194883; }
.button[aria-disabled="true"] { color: var(--muted); background: #e8eef6; border-color: #d4deeb; }
.hero-abstract { margin-top: 8px; }
.hero-abstract summary { display: list-item; list-style-position: inside; width: fit-content; padding-block: 2px; color: var(--blue); font-size: .875rem; font-weight: 650; line-height: 1.5; }
.hero-abstract summary:hover { text-decoration: underline; text-underline-offset: .2em; }
.hero-abstract p { margin-top: 6px; padding-inline-start: 12px; border-inline-start: 2px solid #c6d8ee; color: var(--muted); line-height: 1.5; }
.explorer { container-type: inline-size; min-width: 0; background: linear-gradient(145deg, #182d4e, #102039); color: #f6f9ff; border: 1px solid #2d4768; border-radius: var(--radius); padding: clamp(18px, 3vw, 32px); box-shadow: 0 22px 55px #10223c25; }
.hero-inner:has(.hero-abstract[open]) .explorer { align-self: start; }
.explorer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.explorer-head h2 { font-size: clamp(1.5rem, 2.5vw, 2.02rem); letter-spacing: -.035em; line-height: 1.2; margin-top: 4px; }
.segments { border-radius: 8px; display: flex; background: #0c1b31; padding: 4px; gap: 4px; }
.segments button { border: 0; border-radius: 6px; flex: 1; min-width: 0; background: transparent; color: #c7d8f2; min-height: 39px; padding: 5px 9px; font-size: .9rem; font-weight: 650; }
.segments button[aria-pressed="true"] { color: white; background: #315783; }
.selects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-block: 12px 16px; }
.selects label { display: grid; gap: 4px; font-size: .88rem; font-weight: 560; color: #c5d6ee; }
.selects select { appearance: none; color: #f6f9ff; background: #142743; border: 1px solid #496586; border-radius: 7px; padding: 6px 22px 6px 10px; width: 100%; min-height: 40px; }
.selects label { position: relative; }
.selects label::after { content: ""; position: absolute; bottom: 17px; right: 12px; width: 6px; height: 6px; transform: rotate(45deg); border: solid #aac6e9; border-width: 0 1.5px 1.5px 0; pointer-events: none; }
.chart-body { --met-line: #94c6ff; --vit-line: #f4a7bc; padding: 12px 12px 6px; border: 1px solid #385173; border-radius: 12px; background: #11233c; }
.chart-heading { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; column-gap: 12px; }
.chart-stat { font-size: .91rem; color: #d8e7ff; padding: 0 4px 4px; min-height: 1.5em; }
.chart-stat strong { color: #9fe0c7; font-weight: 780; font-size: 1.16rem; }
#scaling-chart { width: 100%; height: 174px; display: block; }
#scaling-chart[data-axis="size"] { height: 208px; }
.size-legend { display: flex; gap: 14px; list-style: none; padding: 0 4px; color: #d8e7ff; font-size: .91rem; }
.size-legend li { display: flex; gap: 6px; align-items: center; }
.size-legend li::before { content: ""; width: 16px; border-top: 2px solid var(--met-line); }
.size-legend .vit-line::before { border-top: 2px dashed var(--vit-line); }
.selects label[hidden], .size-legend[hidden] { display: none; }
.size-summary { margin-top: 6px; padding: 10px 12px; border: 1px solid #385173; border-radius: 10px; background: #11233c; }
.size-summary .chart-stat { padding-inline: 0; }
.size-gains { display: grid; gap: 6px; list-style: none; padding: 0; }
.size-gains li { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) 6ch; gap: 8px; align-items: center; font-size: .9rem; }
.size-gains strong { color: #a5e0c9; text-align: right; font-variant-numeric: tabular-nums; }
.gain-track { height: 10px; background: #243a58; border-radius: 5px; }
.gain-fill { display: block; height: 100%; background: linear-gradient(90deg, #69aa9d, #a5e0c9); border-radius: inherit; }
.cost-label { margin-top: 11px; padding-top: 9px; border-top: 1px solid #385173; color: #c6d6ef; font-size: .875rem; }
.size-costs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 4px 0 0; }
.size-costs dt { color: #bdd1ee; font-size: .875rem; }
.size-costs dd { margin: 0; color: #f6f9ff; font-weight: 700; font-variant-numeric: tabular-nums; }
.chart-caption { margin-top: 11px; color: #c6d6ef; font-size: .875rem; }
.chart-data, .size-comparison { margin-top: 6px; font-size: .875rem; }
.chart-data summary, .size-comparison summary { color: #c7ddfa; }
.chart-data table { color: #e9f3ff; }
.chart-data th, .chart-data td { border-color: #405574; }
.results-strip { background: #f1f5fd; border-block: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block: 24px; }
.stats > div { padding: 0 clamp(12px, 1.8vw, 24px); border-left: 1px solid #d1ddf0; }
.stats > div:first-child { padding-left: 0; border: 0; }
.stats strong { color: #1c4c8b; display: block; font-weight: 770; font-size: clamp(1.85rem, 3.2vw, 3rem); letter-spacing: -.055em; font-variant-numeric: tabular-nums; line-height: 1.08; }
.stats strong span { font-size: .56em; letter-spacing: 0; }
.stats p { color: var(--muted); font-size: .9rem; margin-top: 6px; line-height: 1.4; }
.section { padding-block: clamp(44px, 6vw, 86px); }
.band { background: var(--paper); border-block: 1px solid var(--line); }
.section-heading { max-width: 740px; margin-bottom: 30px; }
.section-heading h2 { font-size: clamp(1.85rem, 3.8vw, 3.2rem); line-height: 1.12; letter-spacing: -.042em; margin-block: 6px 12px; }
.section-heading > p:not(.overline), .case-heading p { color: var(--muted); }
.section-heading > p + p { margin-top: 10px; }
.figure-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.paper-figure, .paper-table, .case { border: 1px solid var(--line); border-radius: 15px; background: white; min-width: 0; }
.paper-figure { padding: clamp(14px, 2vw, 23px); }
.paper-figure.wide { grid-column: 1 / -1; }
.paper-figure img { margin-inline: auto; width: auto; height: auto; max-height: 720px; object-fit: contain; }
.paper-figure .figure-asset { padding: 10px; margin-top: 9px; display: block; border-radius: 8px; }
.paper-figure .figure-asset:hover { background: #f4f7fd; }
.paper-figure figcaption { color: var(--muted); font-size: .92rem; }
.paper-figure figcaption strong { color: var(--ink); }
.paper-figure .figure-id, .table-id { color: var(--blue); font-size: .875rem; font-weight: 730; }
.paper-figure .figure-id { white-space: nowrap; }
.figure-link { display: inline-block; margin-top: 6px; font-size: .875rem; }
.table-stack { display: grid; gap: 10px; margin-top: 19px; }
#architecture-tables { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; column-gap: 16px; }
#table-3, #table-4 { grid-column: 1 / -1; }
.paper-table summary { padding: 12px 17px; color: var(--ink); font-weight: 660; }
.table-id { display: inline; margin-right: 8px; }
.paper-table .table-inner { padding: 0 16px 16px; }
#table-1 .table-inner, #table-2 .table-inner, #table-4 .table-inner { max-width: 38rem; margin-inline: auto; }
.table-inner p { font-size: .92rem; color: var(--muted); margin-bottom: 7px; }
.table-scroll { overflow-x: auto; max-width: 100%; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; text-align: left; font-size: .91rem; }
td, th { padding: 7px 10px; border-bottom: 1px solid var(--line); }
th { font-weight: 690; }
th[scope="col"] { vertical-align: middle; background: #edf3fc; }
.chart-data th[scope="col"] { background: transparent; }
.paper-table tr.highlight, .case tr.highlight { background: #eef7f3; }
table caption { text-align: left; padding-bottom: 6px; font-weight: 640; }
.case-section { margin-top: 34px; }
.case-heading { margin-bottom: 14px; }
.case-heading h3 { font-size: 1.55rem; letter-spacing: -.025em; }
.case-grid { display: grid; align-items: start; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.case { overflow: hidden; }
.case summary { padding: 14px 16px; font-weight: 660; }
.case[open] summary { border-bottom: 1px solid var(--line); }
.case summary small { display: block; padding-left: 18px; font-size: .84rem; color: var(--muted); font-weight: 550; }
.case-content { padding: 14px 16px 17px; }
.case-content video { width: 100%; max-height: 260px; aspect-ratio: 16 / 9; background: #0d1830; border-radius: 8px; object-fit: contain; }
.plot-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: .84rem; margin-top: 10px; }
.plot-legend span { display: inline-flex; align-items: center; gap: 5px; }
.swatch { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--swatch); }
.case canvas { display: block; width: 100%; height: 168px; }
.case p { color: var(--muted); font-size: .9rem; margin: 9px 0; }
.case table { margin-top: 8px; }
.case td:first-child, .case td:last-child { white-space: nowrap; }
.case .correct { color: #18674e; }
.case .incorrect { color: #a33e50; }
.case th, .case td { padding-inline: 5px; }
.citation { padding-block: 44px; }
.citation-box { display: flex; flex-direction: row-reverse; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 10px; background: #172b47; }
.citation-box pre { flex: 1; align-self: stretch; min-width: 0; margin: 0; padding: 3px 2px; overflow-x: auto; color: #e8f1ff; font-size: .89rem; line-height: 1.55; }
.citation-copy { flex: none; min-height: 34px; padding: 4px 11px; border: 1px solid #526e92; border-radius: 7px; color: #edf4ff; background: #2a4365; font-size: .875rem; font-weight: 650; }
.citation-copy:hover { background: #38567e; }
.copy-status { color: var(--muted); font-size: .875rem; }
.copy-status:not(:empty) { margin-top: 8px; }
.site-footer { padding-block: 18px; border-top: 1px solid var(--line); }
.site-footer .shell { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; }
.site-footer p { color: var(--muted); font-size: .875rem; }
.load-error { background: #fff2dd; color: #694521; border-radius: 8px; padding: 9px 12px; margin-top: 10px; }
@media (max-width: 950px) {
  .hero-inner { gap: 24px; }
  .shell { width: calc(100% - 44px); }
}
@media (max-width: 850px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .hero-title span { display: inline-block; }
}
@media (max-width: 740px) {
  .figure-grid, .case-grid, #architecture-tables { grid-template-columns: minmax(0, 1fr); }
  .header-inner { min-height: auto; padding-block: 12px; flex-wrap: wrap; gap: 10px; }
  .header-inner nav { order: 3; flex-basis: 100%; gap: 8px 19px; }
  .citation-box { flex-direction: column; gap: 6px; }
  .citation-copy { align-self: flex-end; }
}
@media (max-width: 420px) {
  .stats > div { padding-inline: 8px; }
  .stats strong { font-size: clamp(1.25rem, 6.6vw, 1.85rem); }
}
@media (max-width: 360px) {
  .shell { width: calc(100% - 26px); }
  .segments button { font-size: .84rem; }
}
.case table { table-layout: fixed; }
.case th[scope="col"]:first-child { width: 27%; }
.case th[scope="col"]:last-child { width: 4.5rem; }
.case th[scope="row"] { overflow-wrap: anywhere; }
.case td:nth-child(2) { overflow-wrap: anywhere; }
@container (max-width: 320px) {
  .size-costs { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .size-costs > div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
}
@container (max-width: 280px) {
  .selects { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}
@media (max-width: 450px) {
  .case th[scope="col"]:first-child { width: 29%; }
  .case th, .case td { font-size: .85rem; }
}

#additional-case-figures { margin-top: 26px; }

.table-preview { max-height: 630px; width: auto; object-fit: contain; }
