:root {
  --ink:#18273a;
  --muted:#647184;
  --accent:#cf692f;
  --accent-light:#fff2e7;
  --line:#e1e5e9;
  --tint:#f6f7f9;
  --font:"Avenir Next",Avenir,"Segoe UI",Arial,sans-serif;
  --radius:16px;
}

* {
  box-sizing:border-box;
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:95px;
}

body {
  margin:0;
  background:#fff;
  color:var(--ink);
  font-family:var(--font);
  font-size:16px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}

a {
  color:inherit;
  text-decoration:none;
}

button,select {
  font:inherit;
}

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

button {
  color:inherit;
}

button,a,select,summary {
  touch-action:manipulation;
}

button {
  cursor:pointer;
}

a:focus-visible,button:focus-visible,select:focus-visible,summary:focus-visible,[tabindex]:focus-visible {
  outline:3px solid var(--accent);
  outline-offset:5px;
}

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

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

svg {
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.65;
  stroke-linecap:round;
  stroke-linejoin:round;
}

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

sub {
  font-size:.7em;
}

strong {
  font-weight:650;
}

.container {
  max-width:1176px;
  padding-inline:36px;
  margin-inline:auto;
}

.section {
  padding-block:100px;
}

.section-tint {
  background:var(--tint);
}

.eyebrow {
  text-transform:uppercase;
  font-size:11px;
  line-height:1.5;
  font-weight:700;
  letter-spacing:2px;
  color:var(--accent);
  margin-bottom:15px;
}

.section-heading {
  max-width:710px;
  margin-bottom:42px;
}

.section-heading h2 {
  font-size:clamp(30px,3.5vw,44px);
  font-weight:650;
  line-height:1.18;
  letter-spacing:-1.5px;
  margin-bottom:20px;
}

.section-heading>p:not(.eyebrow) {
  font-size:17px;
  line-height:1.8;
  color:var(--muted);
  max-width:650px;
}

.section-heading>p+p {
  margin-top:16px;
}

.section-heading strong {
  color:var(--ink);
}

.skip-link {
  position:absolute;
  left:20px;
  top:-70px;
  padding:10px 20px;
  background:var(--ink);
  color:white;
  z-index:100;
}

.skip-link:focus {
  top:10px;
}

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

/* A restrained sticky header keeps the paper's sections within reach. */
.site-header {
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(255,255,255,.95);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(14px);
}

.nav {
  height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.brand {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:16px;
  letter-spacing:1px;
  font-weight:750;
}

.brand-mark {
  position:relative;
  display:grid;
  place-items:center;
  width:28px;
  height:29px;
  font-size:18px;
  line-height:1;
  background:var(--ink);
  color:white;
  border-radius:7px;
  letter-spacing:0;
}

.brand-mark span {
  position:absolute;
  right:-3px;
  bottom:-2px;
  width:9px;
  height:9px;
  border:2px solid white;
  background:var(--accent);
  border-radius:50%;
}

.nav-links {
  display:flex;
  gap:32px;
  font-size:13px;
  font-weight:550;
  color:var(--muted);
}

.nav-links a:hover,.nav-links a[aria-current="location"] {
  color:var(--accent);
}

.nav-code {
  font-size:13px;
  font-weight:650;
}

.nav-code span {
  margin-left:8px;
  color:var(--accent);
}

.hero {
  text-align:center;
  padding-top:63px;
  padding-bottom:70px;
}

.venue {
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid #e6ddd5;
  background:#fdf9f5;
  border-radius:30px;
  padding:5px 15px;
  font-size:12px;
  letter-spacing:1.2px;
  font-weight:650;
}

.venue-dot {
  width:6px;
  height:6px;
  background:var(--accent);
  border-radius:50%;
}

.hero-wordmark {
  font-size:clamp(65px,8vw,102px);
  line-height:1.1;
  letter-spacing:-5px;
  font-weight:800;
  margin-top:21px;
  margin-bottom:18px;
}

.hero-wordmark span {
  color:var(--accent);
}

.hero h1 {
  max-width:1040px;
  margin-inline:auto;
  font-size:clamp(27px,3.25vw,41px);
  line-height:1.22;
  letter-spacing:-1.35px;
  font-weight:600;
  text-wrap:balance;
}

.authors {
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px 22px;
  font-size:15px;
  font-weight:550;
  margin-top:29px;
}

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

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

.affiliations {
  display:flex;
  justify-content:center;
  gap:25px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:13px;
  margin-top:10px;
}

.correspondence {
  font-size:11px;
  color:#8c96a2;
  margin-top:6px;
}

.resource-links {
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:26px;
}

.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-size:13px;
  line-height:1.3;
  font-weight:650;
  border:1px solid #d8dee5;
  background:#fff;
  border-radius:8px;
  padding:13px 19px;
  min-height:46px;
  transition:background .18s,border-color .18s,transform .18s;
}

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

.button-primary {
  color:white;
  background:var(--ink);
  border-color:var(--ink);
}

.button-primary:hover {
  background:#2e425b;
  border-color:#2e425b;
}

.button-detail {
  color:#bec9d5;
  font-size:11px;
  font-weight:450;
}

.button>span:last-child:not(.button-detail) {
  font-size:15px;
}

.hero-summary {
  font-size:24px;
  line-height:1.55;
  font-weight:600;
  letter-spacing:-.5px;
  margin-top:39px;
}

.hero-summary>span {
  display:block;
  margin-top:8px;
  color:var(--muted);
  font-size:18px;
  line-height:1.6;
  letter-spacing:0;
  font-weight:450;
}

.explore-link {
  display:inline-flex;
  align-items:center;
  gap:15px;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:1.8px;
  margin-top:29px;
  color:var(--muted);
}

.explore-link span {
  font-size:18px;
  color:var(--accent);
}

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

.overview {
  padding-bottom:75px;
}

.compact-heading {
  text-align:center;
  margin-inline:auto;
  margin-bottom:30px;
}

.compact-heading h2 {
  font-size:30px;
  letter-spacing:-.7px;
  margin-bottom:12px;
}

.compact-heading>p:not(.eyebrow) {
  font-size:15px;
  max-width:760px;
  margin-inline:auto;
}

.figure {
  min-width:0;
}

.figure-expand {
  display:block;
  position:relative;
  width:100%;
  padding:0;
  border:0;
  background:white;
  border-radius:10px;
  overflow:hidden;
  text-align:left;
}

.figure-expand img {
  width:100%;
}

.expand-label {
  position:absolute;
  right:10px;
  bottom:10px;
  display:flex;
  gap:6px;
  align-items:center;
  font-size:10px;
  font-weight:600;
  background:rgba(255,255,255,.95);
  border:1px solid var(--line);
  border-radius:5px;
  padding:4px 8px;
  color:var(--muted);
  opacity:0;
  transition:opacity .15s;
}

.expand-label>span {
  font-size:15px;
}

.figure-expand:hover .expand-label,.figure-expand:focus-visible .expand-label {
  opacity:1;
}

figcaption {
  font-size:12px;
  line-height:1.7;
  color:var(--muted);
  margin-top:15px;
}

.figure-number {
  color:var(--ink);
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.7px;
  margin-right:9px;
}

.overview-figure {
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:32px 30px 20px;
  box-shadow:0 12px 35px rgba(24,39,58,.035);
}

.overview-figure figcaption {
  text-align:center;
  padding-top:17px;
  border-top:1px solid #f0f1f3;
  margin-top:20px;
}

.highlights {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  padding-top:35px;
  gap:24px;
}

.highlights>div {
  display:flex;
  gap:16px;
  align-items:center;
  justify-content:center;
}

.highlights>div+div {
  border-left:1px solid var(--line);
}

.highlight-number {
  font-size:40px;
  font-weight:650;
  letter-spacing:-1.5px;
  line-height:1.2;
}

.highlight-number>span {
  font-size:23px;
  letter-spacing:-1px;
}

.highlights p {
  font-size:11px;
  line-height:1.8;
  color:var(--muted);
}

.highlights>div:last-child .highlight-number {
  font-size:28px;
  letter-spacing:-.8px;
}

.motivation-section {
  padding-block:79px;
}

.motivation-layout {
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:center;
  gap:75px;
}

.motivation-layout .section-heading {
  margin-bottom:0;
}

.concept {
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:28px 30px;
}

.concept-top {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:11px;
  color:var(--muted);
  margin-bottom:28px;
}

.concept-image {
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  border-radius:8px;
  background:#eef2f6;
  color:var(--ink);
}

.concept-image svg {
  width:24px;
  height:24px;
}

.concept-arrow {
  margin-left:auto;
  font-size:26px;
  color:#bcc6d0;
}

.concept-row {
  display:flex;
  align-items:center;
  gap:20px;
  margin-block:25px;
}

.concept-label {
  min-width:54px;
  font-size:12px;
  font-weight:600;
}

.concept-chain {
  display:flex;
  align-items:center;
  flex:1;
}

.concept-chain i {
  width:23px;
  height:23px;
  border-radius:50%;
  background:#587d9c;
  flex-shrink:0;
}

.concept-chain b {
  height:2px;
  background:#c4d3df;
  flex:1;
  min-width:5px;
}

.baseline-chain i:nth-of-type(2) {
  background:#95aec1;
}

.baseline-chain i:nth-of-type(3) {
  background:#c3d1dc;
}

.baseline-chain i:nth-of-type(4) {
  background:#e0e6ec;
}

.baseline-chain i:nth-of-type(5) {
  background:#eef1f5;
}

.rapo-chain i {
  background:#587d9c;
}

.rapo-chain .anchor-node {
  background:var(--accent);
  box-shadow:0 0 0 5px var(--accent-light);
}

.rapo-chain b {
  background:#c9a184;
}

.concept-legend {
  display:flex;
  gap:24px;
  margin-top:37px;
  font-size:10px;
  color:var(--muted);
  flex-wrap:wrap;
}

.concept-legend>span {
  display:flex;
  align-items:center;
  gap:7px;
}

.legend-dot {
  width:7px;
  height:7px;
  border-radius:50%;
  background:#587d9c;
}

.anchor-dot {
  background:var(--accent);
}

.concept-caption {
  font-size:9px;
  color:#8893a1;
  margin-top:18px;
  border-top:1px solid #f0f1f3;
  padding-top:14px;
}

.method-steps {
  list-style:none;
  padding:0;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:28px;
  margin:0 0 62px;
}

.method-steps li {
  border-top:1px solid var(--line);
  padding-top:20px;
}

.step-number {
  color:var(--accent);
  font-size:12px;
  font-weight:700;
  letter-spacing:1px;
}

.method-steps h3 {
  font-size:16px;
  line-height:1.45;
  letter-spacing:-.3px;
  margin-top:13px;
  margin-bottom:10px;
}

.method-steps p {
  color:var(--muted);
  font-size:13px;
  line-height:1.8;
}

.method-detail {
  display:grid;
  grid-template-columns:.9fr 1.4fr;
  gap:60px;
  align-items:center;
  border:1px solid var(--line);
  padding:35px;
  border-radius:var(--radius);
}

.method-detail-copy h3 {
  font-size:26px;
  line-height:1.3;
  letter-spacing:-.6px;
  margin-bottom:16px;
}

.method-detail-copy>p:not(.eyebrow) {
  font-size:13px;
  color:var(--muted);
  line-height:1.85;
}

.inline-note {
  border-left:2px solid var(--accent);
  padding-left:14px;
  margin-top:20px;
}

.mask-figure figcaption {
  font-size:11px;
}

.results-heading {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  margin-bottom:35px;
}

.results-heading .section-heading {
  margin-bottom:0;
}

.model-control {
  display:flex;
  flex-direction:column;
  gap:8px;
  flex-shrink:0;
  font-size:10px;
  font-weight:650;
  letter-spacing:.5px;
  color:var(--muted);
}

.model-control select {
  appearance:auto;
  border:1px solid #d3dce5;
  background:white;
  color:var(--ink);
  border-radius:8px;
  min-height:46px;
  padding:9px 35px 9px 13px;
  font-size:12px;
  letter-spacing:0;
  max-width:100%;
}

.results-card {
  background:white;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:30px;
}

.results-summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding-bottom:24px;
  border-bottom:1px solid var(--line);
}

.results-summary .eyebrow {
  color:var(--muted);
  font-size:9px;
  letter-spacing:1px;
}

.results-summary h3 {
  font-size:19px;
  letter-spacing:-.5px;
  margin-top:5px;
}

.result-gain {
  text-align:right;
}

.result-gain strong {
  display:block;
  font-size:35px;
  line-height:1.25;
  letter-spacing:-1.4px;
  color:var(--accent);
}

.result-gain span {
  display:block;
  font-size:10px;
  color:var(--muted);
  margin-top:3px;
}

.average-chart {
  padding:29px 3px 27px;
}

.chart-row {
  display:grid;
  grid-template-columns:110px 1fr 52px;
  gap:18px;
  align-items:center;
  margin-bottom:12px;
  font-size:11px;
  line-height:1.5;
}

.chart-row>span {
  font-weight:550;
}

.bar-track {
  height:17px;
  position:relative;
  background:repeating-linear-gradient(to right,transparent 0,transparent calc(25% - 1px),#edf0f3 calc(25% - 1px),#edf0f3 25%);
}

.bar {
  height:100%;
  background:#b9c8d7;
  border-radius:0 4px 4px 0;
  min-width:2px;
  transition:width .35s;
}

.chart-row:first-child .bar {
  background:#d7dfe7;
}

.chart-row strong {
  font-variant-numeric:tabular-nums;
  font-weight:550;
}

.chart-row.ours .bar {
  background:var(--accent);
}

.chart-row.ours>span,.chart-row.ours>strong {
  font-weight:750;
  color:var(--accent);
}

.chart-axis {
  display:flex;
  justify-content:space-between;
  margin:17px 70px 0 128px;
  color:#8b96a5;
  font-size:9px;
}

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

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

.results-table caption {
  text-align:left;
  font-size:10px;
  color:var(--muted);
  padding-bottom:14px;
}

.results-table th,.results-table td {
  padding:11px 8px;
  text-align:right;
  border-bottom:1px solid #eef0f3;
}

.results-table th:first-child {
  text-align:left;
  padding-left:13px;
  min-width:115px;
}

.results-table thead th {
  text-align:right;
  font-size:9px;
  color:var(--muted);
  font-weight:600;
}

.results-table thead .table-groups th {
  text-align:center;
  padding-block:11px;
  font-size:9px;
  background:#f7f8fa;
}

.results-table thead .table-groups th:first-child {
  text-align:left;
}

.results-table .ours {
  background:var(--accent-light);
}

.results-table .ours th {
  color:#ac4f1c;
}

.results-table .ours td:last-child {
  color:#ac4f1c;
  font-weight:750;
}

.results-table .best {
  font-weight:750;
  color:var(--ink);
}

.table-note {
  font-size:10px;
  color:var(--muted);
  margin-top:19px;
  line-height:1.8;
}

.training-details {
  margin-top:20px;
  font-size:12px;
  color:var(--muted);
  border-bottom:1px solid var(--line);
}

.training-details summary {
  list-style:none;
  cursor:pointer;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 0;
  color:var(--ink);
  font-weight:600;
}

.training-details summary::-webkit-details-marker {
  display:none;
}

.training-details summary span {
  font-size:21px;
  font-weight:400;
}

.training-details[open] summary span {
  transform:rotate(45deg);
}

.training-details>div {
  padding-bottom:20px;
  max-width:900px;
}

.training-details p+p {
  margin-top:12px;
}

.analysis-number {
  display:block;
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:1.5px;
  font-weight:650;
  color:var(--accent);
  margin-bottom:12px;
}

.analysis-copy h3,.analysis-panel h3 {
  font-size:23px;
  line-height:1.3;
  letter-spacing:-.6px;
  margin-bottom:14px;
}

.analysis-copy p,.analysis-panel>p {
  font-size:14px;
  line-height:1.85;
  color:var(--muted);
}

.analysis-lead {
  border-top:1px solid var(--line);
  padding-top:30px;
  margin-bottom:50px;
}

.analysis-copy {
  display:grid;
  grid-template-columns:1fr 1.2fr;
  column-gap:55px;
  margin-bottom:28px;
}

.analysis-copy .analysis-number {
  grid-column:1 / -1;
}

.analysis-copy h3 {
  max-width:400px;
}

.analysis-lead .figure {
  border:1px solid var(--line);
  padding:25px 25px 20px;
  border-radius:var(--radius);
}

.analysis-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:55px;
}

.analysis-panel {
  border-top:1px solid var(--line);
  padding-top:27px;
  min-width:0;
}

.analysis-panel .figure {
  margin-top:25px;
}

.analysis-panel:first-child img {
  max-height:340px;
  object-fit:contain;
}

.analysis-note {
  margin-top:28px;
  padding:21px 23px;
  background:var(--tint);
  border-radius:10px;
}

.analysis-note>strong {
  font-size:12px;
}

.analysis-note p {
  font-size:12px;
  line-height:1.8;
  margin-top:6px;
  color:var(--muted);
}

.text-button {
  display:inline-flex;
  align-items:center;
  gap:12px;
  border:0;
  background:transparent;
  padding:0;
  font-size:11px;
  color:var(--accent);
  font-weight:650;
  margin-top:12px;
}

.text-button:hover {
  text-decoration:underline;
  text-underline-offset:4px;
}

.analysis-footnote {
  font-size:10px;
  color:var(--muted);
  border-top:1px solid var(--line);
  padding-top:20px;
  margin-top:35px;
  line-height:1.8;
}

.case-card {
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:30px;
}

.case-question {
  display:grid;
  grid-template-columns:235px 1fr;
  gap:38px;
  align-items:center;
  padding-bottom:28px;
}

.case-image {
  background:#fafafa;
  border-radius:9px;
  padding:20px;
}

.case-image img {
  width:100%;
  image-rendering:auto;
}

.case-question h3 {
  font-size:24px;
  letter-spacing:-.5px;
  margin-bottom:12px;
}

.case-question p:not(.eyebrow) {
  font-size:14px;
  line-height:1.8;
  color:var(--muted);
  max-width:630px;
}

.case-comparison {
  display:grid;
  grid-template-columns:1fr 1fr;
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden;
}

.case-comparison article {
  padding:27px;
}

.case-comparison article+article {
  border-left:1px solid var(--line);
}

.case-ours {
  background:#fdf7f1;
}

.answer-label {
  display:inline-block;
  color:#a24c1d;
  font-size:10px;
  font-weight:650;
  letter-spacing:.4px;
}

.base-label {
  color:var(--muted);
}

.case-comparison h3 {
  font-size:27px;
  letter-spacing:-.4px;
  margin-top:10px;
  margin-bottom:12px;
}

.case-comparison p {
  font-size:12px;
  line-height:1.85;
  color:var(--muted);
  max-width:390px;
}

.case-caption {
  font-size:10px;
  color:var(--muted);
  margin-top:19px;
}

.abstract-section {
  display:grid;
  grid-template-columns:1fr 2.8fr;
  gap:60px;
  padding-top:85px;
  padding-bottom:85px;
}

.abstract-section .section-heading {
  margin-bottom:0;
}

.abstract-section>p {
  font-size:14px;
  line-height:1.95;
  color:var(--muted);
  text-align:left;
}

.abstract-section h2 {
  font-size:34px;
}

.citation-section {
  background:var(--ink);
  color:#eef3f8;
  padding-block:58px 45px;
}

.citation-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:25px;
}

.citation-heading .eyebrow {
  color:#e0a174;
  margin-bottom:8px;
}

.citation-heading h2 {
  font-size:30px;
  line-height:1.3;
  letter-spacing:-.6px;
}

.copy-button {
  background:transparent;
  border-color:#4c5b6c;
  color:white;
  font-size:11px;
  padding:10px 16px;
  min-height:40px;
}

.copy-button:hover {
  background:#293b50;
  border-color:#718194;
}

.copy-button svg {
  width:16px;
  height:16px;
}

.citation-section pre {
  margin:0;
  padding:23px 26px;
  border:1px solid #3e4c5d;
  background:#1e2e43;
  border-radius:10px;
  font-size:12px;
  line-height:1.85;
  overflow-x:auto;
  color:#d1deec;
  tab-size:2;
}

.citation-section code {
  font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace;
}

.copy-status {
  min-height:18px;
  font-size:10px;
  margin-top:10px;
  color:#d4b191;
}

.site-footer {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  padding-block:29px;
}

.site-footer p {
  font-size:10px;
  color:var(--muted);
}

.site-footer>a:last-child {
  font-size:11px;
  color:var(--muted);
}

/* A native dialog supplies focus trapping and Escape-to-close without a library. */
dialog {
  border:1px solid var(--line);
  padding:0;
  border-radius:14px;
  width:min(1300px,calc(100vw - 48px));
  max-width:none;
  max-height:90dvh;
  color:var(--ink);
  box-shadow:0 20px 70px #0003;
}

dialog::backdrop {
  background:rgba(15,25,39,.65);
  backdrop-filter:blur(3px);
}

.dialog-toolbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:12px 20px;
  border-bottom:1px solid var(--line);
  background:white;
}

.dialog-toolbar h2 {
  font-size:13px;
  font-weight:600;
  line-height:1.4;
}

.dialog-toolbar>div {
  display:flex;
  align-items:center;
  gap:18px;
  flex-shrink:0;
}

.dialog-toolbar select {
  font-size:11px;
  border:1px solid var(--line);
  border-radius:5px;
  background:white;
  padding:5px;
}

.dialog-toolbar a {
  font-size:10px;
  color:var(--accent);
}

.dialog-toolbar button {
  border:0;
  background:var(--tint);
  border-radius:50%;
  width:32px;
  height:32px;
  font-size:24px;
  line-height:1;
}

.dialog-image-scroll {
  padding:24px;
  overflow:auto;
  max-height:calc(90dvh - 62px);
}

.dialog-image-scroll img {
  width:100%;
  max-width:none;
  max-height:none;
}

body:has(dialog[open]) {
  overflow:hidden;
}

@media(min-width:1500px) {
  .hero {
    padding-top:78px;
    padding-bottom:80px;
  }
}

@media(max-width:1000px) {
  .container {
    padding-inline:28px;
  }
  .nav-links {
    gap:24px;
  }
  .hero h1 {
    font-size:34px;
  }
  .authors {
    gap:9px 18px;
    font-size:14px;
  }
  .highlights>div {
    gap:12px;
  }
  .highlight-number {
    font-size:34px;
  }
  .highlights p {
    font-size:10px;
  }
  .highlights>div:last-child .highlight-number {
    font-size:23px;
  }
  .motivation-layout {
    gap:35px;
  }
  .concept {
    padding:23px;
  }
  .concept-row {
    gap:14px;
  }
  .concept-chain i {
    width:20px;
    height:20px;
  }
  .method-steps {
    gap:22px;
  }
  .method-detail {
    gap:30px;
    padding:27px;
  }
  .results-heading .section-heading {
    max-width:540px;
  }
  .results-heading h2 {
    font-size:36px;
  }
  .analysis-grid {
    gap:35px;
  }
  .case-question {
    grid-template-columns:200px 1fr;
  }
}

@media(max-width:760px) {
  html {
    scroll-padding-top:83px;
  }
  .container {
    padding-inline:22px;
  }
  .nav {
    height:62px;
    gap:18px;
  }
  .nav-links {
    gap:17px;
    font-size:11px;
  }
  .nav-code {
    display:none;
  }
  .hero {
    padding-top:39px;
    padding-bottom:51px;
  }
  .hero-wordmark {
    font-size:78px;
    margin-top:20px;
    margin-bottom:17px;
  }
  .hero h1 {
    font-size:29px;
    letter-spacing:-.8px;
    line-height:1.28;
  }
  .authors {
    font-size:13px;
    gap:8px 16px;
    margin-top:24px;
  }
  .affiliations {
    gap:4px 17px;
    font-size:11px;
  }
  .hero-summary {
    font-size:22px;
    margin-top:32px;
  }
  .hero-summary>span {
    font-size:16px;
  }
  .resource-links {
    gap:8px;
  }
  .button {
    padding:11px 13px;
    gap:8px;
    font-size:12px;
  }
  .button svg {
    width:17px;
    height:17px;
  }
  .compact-heading h2 {
    font-size:27px;
  }
  .compact-heading>p:not(.eyebrow) {
    font-size:14px;
  }
  .overview-figure {
    padding:20px 14px 15px;
  }
  .overview-figure figcaption {
    font-size:10px;
  }
  .overview {
    padding-bottom:50px;
  }
  .expand-label {
    opacity:1;
    font-size:9px;
    padding:2px 5px;
    right:5px;
    bottom:5px;
  }
  .highlights {
    gap:12px;
    padding-top:26px;
  }
  .highlights>div {
    flex-direction:column;
    text-align:center;
    gap:8px;
    justify-content:flex-start;
  }
  .highlight-number {
    font-size:33px;
  }
  .highlights>div:last-child .highlight-number {
    font-size:25px;
    margin-top:6px;
  }
  .highlights p {
    font-size:9px;
  }
  .section {
    padding-block:65px;
  }
  .section-heading {
    margin-bottom:30px;
  }
  .section-heading h2 {
    font-size:34px;
    letter-spacing:-1px;
  }
  .section-heading>p:not(.eyebrow) {
    font-size:15px;
  }
  .motivation-section {
    padding-block:55px;
  }
  .motivation-layout {
    grid-template-columns:1fr;
    gap:30px;
  }
  .concept {
    padding:25px 30px;
  }
  .concept-chain i {
    width:25px;
    height:25px;
  }
  .method-steps {
    grid-template-columns:1fr 1fr;
    gap:26px;
    margin-bottom:34px;
  }
  .method-steps h3 {
    font-size:15px;
  }
  .method-detail {
    grid-template-columns:1fr;
    gap:24px;
    padding:24px;
  }
  .method-detail-copy h3 br {
    display:none;
  }
  .results-heading {
    flex-direction:column;
    align-items:flex-start;
    gap:23px;
  }
  .results-heading h2 {
    font-size:34px;
  }
  .model-control {
    width:100%;
  }
  .model-control select {
    width:100%;
  }
  .results-card {
    padding:21px 18px;
  }
  .results-summary h3 {
    font-size:15px;
  }
  .result-gain strong {
    font-size:28px;
  }
  .result-gain span {
    font-size:9px;
    max-width:100px;
    line-height:1.5;
  }
  .results-summary .eyebrow {
    font-size:8px;
  }
  .chart-row {
    grid-template-columns:82px 1fr 39px;
    gap:11px;
    font-size:10px;
  }
  .chart-axis {
    margin-left:93px;
    margin-right:50px;
  }
  .bar-track {
    height:14px;
  }
  .results-table {
    font-size:10px;
    min-width:720px;
  }
  .results-table caption {
    font-size:9px;
  }
  .table-note {
    font-size:9px;
  }
  .analysis-copy {
    display:block;
  }
  .analysis-copy h3 {
    font-size:22px;
    max-width:100%;
  }
  .analysis-copy p {
    font-size:13px;
  }
  .analysis-lead .figure {
    padding:15px 12px;
  }
  .analysis-lead figcaption {
    font-size:10px;
  }
  .analysis-grid {
    grid-template-columns:1fr;
    gap:34px;
  }
  .analysis-panel h3 {
    font-size:22px;
  }
  .analysis-panel>p {
    font-size:13px;
  }
  .analysis-panel:first-child img {
    max-height:360px;
  }
  .case-card {
    padding:21px;
  }
  .case-question {
    grid-template-columns:140px 1fr;
    gap:21px;
  }
  .case-image {
    padding:10px;
  }
  .case-question h3 {
    font-size:20px;
  }
  .case-question p:not(.eyebrow) {
    font-size:12px;
  }
  .case-question .eyebrow {
    font-size:9px;
    letter-spacing:1px;
  }
  .case-comparison article {
    padding:20px;
  }
  .case-comparison h3 {
    font-size:22px;
  }
  .case-comparison p {
    font-size:11px;
  }
  .case-caption {
    font-size:9px;
  }
  .abstract-section {
    grid-template-columns:1fr;
    gap:10px;
  }
  .abstract-section .section-heading h2 {
    font-size:30px;
  }
  .abstract-section>p {
    font-size:13px;
  }
  .citation-section {
    padding-block:40px 28px;
  }
  .citation-section pre {
    font-size:10px;
    padding:18px;
  }
  .citation-heading h2 {
    font-size:28px;
  }
  .citation-heading .eyebrow {
    font-size:9px;
  }
  .copy-button {
    font-size:10px;
    min-height:38px;
    padding:9px 11px;
  }
  .site-footer {
    padding-block:24px;
    flex-wrap:wrap;
    gap:13px;
  }
  .site-footer p {
    order:3;
    flex-basis:100%;
    font-size:9px;
  }
  .site-footer>a:last-child {
    margin-left:auto;
  }
  dialog {
    width:calc(100vw - 24px);
  }
  .dialog-toolbar {
    padding:10px 12px;
    align-items:flex-start;
  }
  .dialog-toolbar>div {
    gap:9px;
  }
  .dialog-toolbar h2 {
    font-size:11px;
    max-width:50%;
  }
  .dialog-toolbar a {
    font-size:9px;
  }
  .dialog-image-scroll {
    padding:14px;
  }
}

@media(max-width:430px) {
  .container {
    padding-inline:18px;
  }
  .brand {
    font-size:13px;
    gap:7px;
  }
  .brand-mark {
    width:23px;
    height:25px;
    font-size:15px;
  }
  .nav-links {
    gap:13px;
    font-size:10px;
  }
  .hero h1 {
    font-size:25px;
  }
  .hero-wordmark {
    font-size:72px;
  }
  .authors {
    font-size:12px;
    gap:6px 13px;
  }
  .resource-links {
    gap:7px;
  }
  .button {
    padding:10px 12px;
    font-size:11px;
    gap:6px;
  }
  .button-detail {
    display:none;
  }
  .button svg {
    width:15px;
    height:15px;
  }
  .hero-summary>span {
    font-size:14px;
  }
  .desktop-break {
    display:none;
  }
  .highlights {
    gap:8px;
  }
  .highlights p {
    font-size:8px;
  }
  .highlight-number {
    font-size:29px;
  }
  .highlights>div:last-child .highlight-number {
    font-size:22px;
  }
  .section-heading h2,.results-heading h2 {
    font-size:30px;
  }
  .concept {
    padding:22px;
  }
  .concept-chain i {
    width:21px;
    height:21px;
  }
  .case-question {
    grid-template-columns:1fr;
    gap:21px;
  }
  .case-image {
    width:200px;
    margin:auto;
  }
  .case-comparison {
    grid-template-columns:1fr;
  }
  .case-comparison article+article {
    border-left:0;
    border-top:1px solid var(--line);
  }
  .case-comparison h3 {
    font-size:24px;
  }
  .result-gain strong {
    font-size:25px;
  }
  .results-summary h3 {
    font-size:13px;
  }
  .results-summary {
    gap:12px;
  }
  .citation-section pre {
    font-size:9px;
  }
  .dialog-toolbar a {
    display:none;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto;
  }
  *,*::before,*::after {
    transition:none!important;
    animation:none!important;
  }
}
