:root {
  color-scheme: light;
  --ink: #202823;
  --muted: #66716a;
  --green: #176d4c;
  --green-light: #eaf3ed;
  --blue: #356fb3;
  --coral: #ae5547;
  --line: #dfe5e0;
  --surface: #f7f9f8;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; letter-spacing: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; font: 16px/1.65 var(--font); color: var(--ink); background: #fff; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, figure, dl, dd { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
button img, .button img, .nav-code img, .footer-links img { flex: 0 0 auto; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
::selection { background: #d7ebdf; color: #163b29; }
[hidden] { display: none !important; }
.container { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.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; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; background: #fff; padding: 8px 16px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.navigation { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.nav-inner { width: min(1280px, calc(100% - 64px)); margin: auto; min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { font-size: 26px; font-weight: 750; line-height: 1; }
.wordmark span { color: var(--green); }
.nav-links { display: flex; gap: 30px; align-items: center; font-size: 13px; font-weight: 550; }
.nav-links a { padding-block: 14px; color: var(--muted); }
.nav-links a:hover, .nav-links a[aria-current="location"] { color: var(--green); }
.nav-links .nav-code { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); }
.menu-toggle { display: none !important; }
.paper-header { text-align: center; padding: 52px 0 38px; }
.venue { display: inline-flex; align-items: center; gap: 9px; color: var(--green); font-size: 13px; font-weight: 650; }
.venue-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: 86px; line-height: 1.05; font-weight: 500; margin: 12px 0 12px; }
.paper-title { font-size: 30px; font-weight: 550; line-height: 1.4; text-wrap: balance; }
.authors { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 30px; margin-top: 22px; font-size: 17px; }
.authors a { text-underline-offset: 5px; text-decoration-thickness: 1px; }
.authors a:hover { text-decoration: underline; color: var(--green); }
.authors sup { font-size: 11px; margin-left: 2px; }
.affiliation { color: var(--muted); font-size: 14px; margin-top: 10px; }
.correspondence { font-size: 11px; color: var(--muted); margin-top: 5px; }
.resource-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.button { height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--line); border-radius: 6px; padding: 0 17px; font-size: 13px; font-weight: 600; transition: background .15s, border-color .15s; }
.button-primary { background: var(--green); border-color: var(--green); color: #fff; }
.button-primary img { filter: invert(1); }
.button-primary:hover { background: #10583c; }
.button-secondary:hover { border-color: var(--green); background: var(--surface); }
.header-summary { font-size: 14px; color: var(--muted); margin-top: 24px; }
.opening-figure { padding-top: 22px; padding-bottom: 60px; }
.opening-figure figure { max-width: 920px; margin: auto; }
.figure-link { position: relative; display: block; }
.paper-figure { width: 100%; height: auto; }
.figure-zoom { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 6px; background: #fffffff2; display: grid; place-items: center; opacity: 0; transition: opacity .15s; }
.figure-link:hover .figure-zoom, .figure-link:focus-visible .figure-zoom { opacity: 1; }
figcaption { font-size: 13px; line-height: 1.7; color: var(--muted); margin-top: 18px; }
figcaption strong { color: var(--ink); font-weight: 600; }
.opening-figure figcaption { text-align: center; max-width: 740px; margin-inline: auto; }
.section { padding: 78px 0; border-top: 1px solid var(--line); }
.section-label { display: flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 600; color: var(--green); }
.section-number { color: #88958c; font-variant-numeric: tabular-nums; font-size: 11px; }
h2 { font-size: 34px; line-height: 1.25; font-weight: 550; text-wrap: balance; }
h3 { font-size: 17px; line-height: 1.4; font-weight: 600; }
.lead { font-size: 19px; line-height: 1.75; color: #46544a; }
.overview-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 36px; }
.overview-layout > .section-label { align-self: start; padding-top: 9px; }
.overview-content { max-width: 760px; }
.overview-content .lead { margin-top: 24px; }
.abstract { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.abstract h3 { font-size: 13px; margin-bottom: 12px; }
.abstract p { font-size: 15px; line-height: 1.9; color: var(--muted); }
.method-section { background: var(--surface); }
.section-topline { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.small-label { color: var(--muted); font-size: 12px; }
.section-intro { color: var(--muted); font-size: 16px; max-width: 700px; margin-top: 18px; }
.method-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 40px 0; }
.method-step { padding: 0 28px; border-left: 1px solid var(--line); }
.method-step:first-child { border: 0; padding-left: 0; }
.method-step:last-child { padding-right: 0; }
.step-index { font-size: 10px; font-weight: 700; }
.routing { color: var(--coral); }
.acquisition { color: var(--blue); }
.verification { color: var(--green); }
.method-step h3 { margin-top: 10px; }
.method-step p { font-size: 14px; color: var(--muted); line-height: 1.8; margin-top: 10px; }
.method-figure { background: #fff; padding: 14px; }
.method-figure figcaption { text-align: center; margin-top: 12px; }
.tools-row { display: flex; align-items: baseline; gap: 35px; margin-top: 26px; font-size: 12px; }
.tools-label { color: var(--muted); white-space: nowrap; }
.tools-row ul { display: flex; flex-wrap: wrap; gap: 12px 28px; list-style: none; margin: 0; padding: 0; font-weight: 550; }
.results-heading { margin-top: 24px; }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 36px; margin-bottom: 18px; }
.table-toolbar > p { font-size: 13px; font-weight: 600; }
.segmented-control { display: flex; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
.segmented-control button { white-space: nowrap; border: 0; background: transparent; padding: 8px 14px; border-radius: 4px; font-size: 12px; color: var(--muted); font-weight: 550; }
.segmented-control button[aria-selected="true"] { background: #fff; color: var(--green); box-shadow: 0 1px 4px #182b1e14; }
.table-scroll { overflow-x: auto; scrollbar-width: thin; }
table { border-collapse: collapse; width: 100%; min-width: 650px; font-size: 14px; font-variant-numeric: tabular-nums; }
thead th { font-size: 12px; font-weight: 600; padding: 16px 18px; border-block: 1px solid var(--line); text-align: right; color: var(--ink); background: var(--surface); }
thead th span { display: block; font-weight: 400; font-size: 10px; color: var(--muted); padding-top: 4px; }
thead th:first-child { text-align: left; width: 28%; }
tbody th, tbody td { padding: 15px 18px; border-bottom: 1px solid #edf0ed; text-align: right; }
tbody th { font-weight: 400; text-align: left; }
.eva-row { background: var(--green-light); }
.eva-row th, .eva-row td { font-weight: 650; color: var(--green); border-bottom-color: #c8e0d0; }
.eva-row th span { font-size: 10px; margin-left: 9px; font-weight: 450; }
.results-note, .measurement-note { font-size: 11px; color: var(--muted); line-height: 1.8; margin-top: 15px; }
.gain-strip { display: grid; grid-template-columns: 1.1fr repeat(4, minmax(0, 1fr)); align-items: center; gap: 12px; padding-top: 26px; }
.gain-strip > span { font-size: 12px; color: var(--muted); }
.gain-strip > span small { display: block; margin-top: 4px; font-size: 10px; }
.gain-strip strong { font-size: 23px; font-weight: 550; color: var(--green); font-variant-numeric: tabular-nums; }
.gain-strip strong.negative { color: var(--coral); }
.gain-strip small { display: block; font-size: 11px; font-weight: 450; margin-top: 3px; color: var(--muted); }
.results-note a { text-decoration: underline; text-underline-offset: 3px; }
.efficiency-section { background: var(--surface); }
.efficiency-section h2 { margin-top: 24px; }
.efficiency-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: center; margin-top: 42px; }
.efficiency-copy .lead { font-size: 17px; }
.efficiency-stats { margin-top: 24px; }
.efficiency-stats > div { display: flex; align-items: center; gap: 26px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.efficiency-stats dt { font-size: 36px; font-weight: 500; line-height: 1; color: var(--green); min-width: 130px; font-variant-numeric: tabular-nums; }
.efficiency-stats dt span { font-size: 23px; margin-left: 2px; }
.efficiency-stats dd { font-size: 12px; line-height: 1.65; color: var(--muted); }
.efficiency-layout figure { padding: 14px; background: #fff; }
.efficiency-layout figcaption { font-size: 11px; }
.case-section h2 { margin-top: 24px; }
.case-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; margin-top: 40px; }
.case-question { font-size: 19px; line-height: 1.6; margin-bottom: 22px; }
.case-step { display: grid; grid-template-columns: 25px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.case-step > span { font-size: 11px; color: var(--green); padding-top: 4px; }
.case-step h3 { font-size: 14px; }
.case-step p { margin-top: 8px; font-size: 13px; line-height: 1.8; color: var(--muted); }
.evidence-values { margin-top: 14px; font-size: 12px; }
.evidence-values > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.evidence-values dd { font-variant-numeric: tabular-nums; font-weight: 600; }
.case-step .unit { font-size: 10px; }
.case-step .case-answer { display: flex; gap: 8px; align-items: center; color: var(--green); font-size: 14px; }
.case-answer img { flex: 0 0 auto; }
.case-figure { padding-top: 5px; }
.case-figure figcaption { font-size: 11px; }
.ablation-section { background: var(--surface); }
.ablation-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.ablation-layout h2 { font-size: 28px; margin-top: 20px; }
.ablation-layout .section-intro { font-size: 14px; }
.ablation-item { margin-bottom: 17px; }
.ablation-item > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-size: 12px; margin-bottom: 6px; }
.ablation-item strong { font-weight: 600; font-variant-numeric: tabular-nums; }
meter { display: block; appearance: none; width: 100%; height: 7px; background: #e2e8e3; border: 0; border-radius: 0; }
meter::-webkit-meter-bar { border: 0; background: #e2e8e3; height: 7px; border-radius: 0; }
meter::-webkit-meter-optimum-value { background: #9aaebd; }
meter::-moz-meter-bar { background: #9aaebd; }
.ablation-item:first-child meter::-webkit-meter-optimum-value { background: var(--green); }
.ablation-item:first-child meter::-moz-meter-bar { background: var(--green); }
.citation-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.citation-heading h2 { margin-top: 18px; }
.icon-button { width: 40px; height: 40px; display: inline-flex; justify-content: center; align-items: center; border: 1px solid var(--line); background: #fff; border-radius: 6px; flex: 0 0 auto; }
.icon-button:hover { background: var(--green-light); border-color: #b2cabc; }
pre { padding: 26px 30px; overflow-x: auto; margin: 22px 0 0; background: var(--surface); border-left: 2px solid var(--green); font-size: 12px; line-height: 1.8; tab-size: 2; }
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.footer { border-top: 1px solid var(--line); padding: 35px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.footer p { font-size: 11px; color: var(--muted); margin-top: 12px; }
.footer-links { display: flex; gap: 28px; font-size: 12px; }
.footer-links a { display: inline-flex; align-items: center; gap: 5px; }
.footer-links a:hover { color: var(--green); }
.figure-dialog { width: min(1320px, calc(100% - 48px)); max-height: calc(100dvh - 48px); padding: 20px; border: 1px solid var(--line); border-radius: 8px; }
.figure-dialog::backdrop { background: #14261bd1; }
.dialog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 16px; }
.dialog-toolbar p { font-size: 12px; line-height: 1.6; }
.dialog-image-scroll { overflow: auto; max-height: calc(100dvh - 170px); }
.dialog-image-scroll img { width: 100%; height: auto; cursor: zoom-in; }
.dialog-image-scroll img.zoomed { width: auto; max-width: none; cursor: zoom-out; }
body.dialog-open { overflow: hidden; }
.toast { position: fixed; z-index: 100; bottom: 24px; left: 50%; transform: translate(-50%, 12px); background: var(--ink); color: white; padding: 10px 18px; font-size: 12px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 900px) {
  .overview-layout { grid-template-columns: 140px minmax(0, 1fr); gap: 26px; }
  .efficiency-layout, .case-layout, .ablation-layout { gap: 34px; }
  .efficiency-stats > div { gap: 14px; }
  .efficiency-stats dt { min-width: 115px; font-size: 32px; }
  .method-step { padding-inline: 18px; }
  h2 { font-size: 30px; }
  .paper-title { font-size: 27px; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 78px; }
  .container, .nav-inner { width: calc(100% - 36px); }
  .nav-inner { min-height: 58px; }
  .wordmark { font-size: 23px; }
  .menu-toggle { display: inline-flex !important; border-color: transparent; }
  .nav-links { position: absolute; top: 58px; left: 0; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 18px 15px; border-bottom: 1px solid var(--line); background: #fff; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 2px; }
  .paper-header { padding: 34px 0 25px; }
  .venue { font-size: 11px; }
  h1 { font-size: 66px; margin-top: 12px; margin-bottom: 12px; }
  .paper-title { font-size: 22px; line-height: 1.45; }
  .desktop-break { display: none; }
  .authors { gap: 8px 23px; font-size: 15px; margin-top: 20px; }
  .affiliation { font-size: 12px; max-width: 300px; margin-inline: auto; line-height: 1.7; }
  .correspondence { font-size: 10px; }
  .resource-links { gap: 7px; margin-top: 20px; }
  .button { height: 41px; padding-inline: 12px; font-size: 12px; gap: 7px; }
  .header-summary { font-size: 12px; margin-top: 22px; max-width: 290px; margin-inline: auto; }
  .opening-figure { padding-top: 15px; padding-bottom: 40px; }
  figcaption { font-size: 11px; margin-top: 12px; }
  .figure-zoom { opacity: 1; width: 30px; height: 30px; right: 6px; top: 6px; }
  .section { padding: 48px 0; }
  h2 { font-size: 27px; }
  .section-label { font-size: 11px; gap: 10px; }
  .overview-layout { display: block; }
  .overview-layout > .section-label { padding-top: 0; margin-bottom: 22px; }
  .lead { font-size: 17px; }
  .abstract { margin-top: 26px; padding-top: 24px; }
  .abstract p { font-size: 14px; }
  .section-topline { margin-bottom: 22px; }
  .small-label { display: none; }
  .section-intro { font-size: 14px; }
  .method-steps { grid-template-columns: 1fr; margin-block: 28px; gap: 22px; }
  .method-step, .method-step:first-child, .method-step:last-child { padding: 0 0 22px; border: 0; border-bottom: 1px solid var(--line); }
  .method-step:last-child { padding-bottom: 0; border-bottom: 0; }
  .method-step h3 { margin-top: 6px; font-size: 16px; }
  .method-step p { margin-top: 7px; font-size: 13px; }
  .method-figure { padding: 6px; }
  .method-figure figcaption { font-size: 10px; }
  .tools-row { display: block; margin-top: 22px; }
  .tools-row ul { gap: 8px 22px; margin-top: 10px; font-size: 11px; }
  .table-toolbar { flex-direction: column; align-items: start; gap: 13px; margin-top: 26px; }
  .segmented-control { width: 100%; }
  .segmented-control button { flex: 1; font-size: 11px; padding: 8px 9px; }
  .gain-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .gain-strip > span { grid-column: 1 / -1; }
  .gain-strip strong { font-size: 22px; }
  .efficiency-layout, .case-layout, .ablation-layout { grid-template-columns: 1fr; gap: 28px; margin-top: 28px; }
  .efficiency-stats > div { gap: 22px; }
  .efficiency-stats dt { min-width: 130px; font-size: 35px; }
  .efficiency-layout figure { padding: 8px; }
  .case-question { font-size: 18px; }
  .case-step { padding: 17px 0; }
  .case-figure { max-width: 470px; }
  .ablation-layout { margin-top: 0; }
  .ablation-layout h2 { font-size: 26px; }
  .citation-heading h2 { margin-top: 12px; }
  pre { padding: 18px; font-size: 10px; }
  .footer-inner { align-items: start; gap: 20px; }
  .footer-links { flex-direction: column; gap: 13px; }
  .footer p { font-size: 10px; }
  .figure-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); padding: 12px; }
  .dialog-toolbar { gap: 12px; }
  .dialog-toolbar p { font-size: 10px; }
  .dialog-image-scroll { max-height: calc(100dvh - 160px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
