:root {
  --ink: #262b31;
  --muted: #626b75;
  --blue: #2463a0;
  --line: #dce1e6;
  --pale: #f5f7f9;
  --sans: Arial, Helvetica, ui-sans-serif, sans-serif;
}

/* Working query tool. */
.demo-lead { text-align: center; }
.demo-preset-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 22px 0 26px; font-size: 14px; }
.demo-preset-row > span { color: var(--muted); margin-right: 3px; }
.demo-preset-row button, .download-result { background: #fff; color: var(--blue); border: 1px solid #bdcddd; border-radius: 4px; padding: 7px 11px; line-height: 1.5; }
.demo-preset-row button:hover, .download-result:hover { background: #eef5fb; border-color: var(--blue); }
.live-demo-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.12fr); gap: 28px; align-items: start; }
.query-form { padding: 24px; background: #f7f9fb; border: 1px solid #dce4ed; border-radius: 5px; }
.field-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.query-form textarea, .query-form input:not([type="checkbox"]):not([type="file"]) { width: 100%; min-width: 0; border: 1px solid #b7c4d1; border-radius: 3px; background: #fff; color: var(--ink); padding: 8px 10px; font-size: 15px; line-height: 1.5; }
.query-form textarea { resize: vertical; min-height: 120px; font-family: ui-monospace, Consolas, monospace; }
.field-help { font-size: 12px; line-height: 1.6; color: var(--muted); margin-top: 7px; }
.file-upload { display: block; color: var(--blue); font-size: 13px; margin-top: 12px; }
.file-upload input { display: block; width: 100%; margin-top: 6px; font-size: 12px; }
.query-fields { display: grid; grid-template-columns: 1fr; gap: 13px; margin: 17px 0; }
.query-fields fieldset { margin: 0; padding: 9px 12px 11px; border: 1px solid #d3dde7; border-radius: 3px; min-width: 0; }
.query-fields legend { padding: 0 5px; font-size: 13px; font-weight: 600; }
.pair-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pair-fields label { font-size: 12px; color: var(--muted); }
.pair-fields input { margin-top: 4px; }
.endpoint-fields { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: 12px; }
.endpoint-fields label { display: flex; align-items: center; gap: 5px; }
.query-actions { display: flex; gap: 12px; align-items: center; margin-top: 18px; }
.cancel-query { border: 0; padding: 5px; background: transparent; font-size: 13px; text-decoration: underline; }
button:disabled { opacity: .55; cursor: wait; }
.local-privacy { color: #47634f; font-size: 12px; line-height: 1.6; margin-top: 12px; }
.query-answer { min-width: 0; padding: 18px 0 0; }
.answer-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.answer-heading h3 { font-size: 20px; }
#query-state { font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: #47634f; padding: 3px 7px; background: #eff5ef; border-radius: 3px; }
.query-status { margin-top: 9px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.query-error .query-status { color: #9f362f; }
.query-error #query-state { color: #9f362f; background: #fbefed; }
.answer-metrics { display: grid; grid-template-columns: 1fr 1fr; margin-top: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line); gap: 14px; }
.answer-metrics span { display: block; font-size: 12px; color: var(--muted); }
.answer-metrics strong { display: block; font-size: 23px; font-weight: 500; line-height: 1.4; color: var(--blue); }
.demo-chart { margin-top: 13px; }
.demo-chart svg { display: block; width: 100%; height: auto; }
.demo-chart text { font-family: var(--sans); fill: var(--muted); font-size: 11px; }
.demo-result-table { overflow-x: auto; margin-top: 9px; }
.demo-result-table table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.demo-result-table caption { font-size: 12px; text-align: left; color: var(--muted); margin-bottom: 7px; }
.demo-result-table th, .demo-result-table td { padding: 8px 7px; text-align: right; border-bottom: 1px solid #e1e7ed; white-space: nowrap; }
.demo-result-table thead th { color: #526477; background: #f3f6f9; font-size: 11px; font-weight: 600; }
.demo-result-table tbody th { font-weight: 500; text-align: left; }
.demo-result-table td:nth-child(2), .demo-result-table td:nth-child(3) { color: var(--blue); font-weight: 600; }
.result-interpretation { margin-top: 13px; font-size: 13px; line-height: 1.65; }
.download-result { display: inline-block; margin-top: 15px; font-size: 13px; }
.query-placeholder { min-height: 240px; display: flex; flex-direction: column; justify-content: center; text-align: center; padding: 35px 15px; }
.query-placeholder > span { color: #8c9fb2; font-size: 24px; }
.query-placeholder > p { color: var(--muted); font-size: 13px; line-height: 1.8; margin-top: 15px; }
.demo-contract { margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); line-height: 1.65; }
.demo-source { margin-top: 18px; font-size: 12px; color: var(--muted); line-height: 1.65; }
.demo-movies { padding-top: 22px; width: min(1180px, calc(100% - 48px)); }
.movie-tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); margin: 18px 0 20px; }
.movie-tabs button { flex: 1; border: 0; border-bottom: 2px solid transparent; background: #fff; padding: 11px 5px; font-size: 14px; line-height: 1.5; margin-bottom: -1px; }
.movie-tabs button[aria-selected="true"] { border-color: var(--blue); color: var(--blue); }
#demo-video { display: block; width: 100%; aspect-ratio: 1364 / 1016; background: #fff; border: 1px solid #e1e7ed; border-radius: 4px; }
.movie-caption { display: flex; justify-content: space-between; gap: 22px; margin-top: 12px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.movie-caption p { flex: 1; }
.movie-caption > div { display: flex; flex-wrap: wrap; gap: 5px 13px; max-width: 225px; align-content: start; }
.app-topbar { width: min(1240px, calc(100% - 48px)); margin: 0 auto 17px; padding: 13px 0 11px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 14px; font-size: 14px; }
.app-topbar nav { display: flex; gap: 20px; font-size: 12px; }
.app-page .live-demo { width: min(1240px, calc(100% - 48px)); padding: 0; }
.app-page .live-demo > h2 { margin-bottom: 5px; text-align: left; font-size: 24px; }
.app-page .demo-lead { max-width: none; text-align: left; font-size: 13px; line-height: 1.6; }
.app-page .demo-preset-row { justify-content: flex-start; margin: 12px 0 15px; }
.app-page .live-demo-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; }
.app-page .query-form { padding: 16px 19px; }
.app-page .query-form textarea { min-height: 90px; height: 100px; }
.app-page .query-fields { grid-template-columns: 1.1fr 1fr; gap: 10px; margin: 13px 0; }
.app-page .query-fields fieldset { padding: 7px 9px 9px; }
.app-page .query-fields legend { font-size: 12px; }
.app-page .pair-fields { gap: 8px; }
.app-page .field-help { font-size: 11px; line-height: 1.5; }
.app-page .query-form input:not([type="checkbox"]):not([type="file"]) { padding: 6px 8px; font-size: 14px; }
.app-page .query-actions { margin-top: 13px; }
.app-page .query-answer { padding-top: 8px; }
.app-page .query-status { margin-top: 5px; font-size: 12px; }
.app-page .answer-metrics { margin-top: 11px; padding-bottom: 7px; }
.app-page .answer-metrics strong { font-size: 22px; }
.app-page .demo-chart { margin-top: 6px; }
.app-page .demo-chart svg { height: 155px; }
.app-page .demo-result-table { margin-top: 6px; }
.app-page .demo-result-table th, .app-page .demo-result-table td { padding-block: 6px; }
.app-page .result-interpretation { margin-top: 10px; font-size: 12px; }
.app-page .download-result { margin-top: 11px; }
.app-page .demo-contract { font-size: 11px; margin-top: 11px; padding-top: 10px; }
.app-page .demo-source { margin-top: 14px; font-size: 11px; }
.app-footer { width: min(1240px, calc(100% - 48px)); margin: 18px auto 12px; font-size: 11px; color: var(--muted); }
@media (max-width: 740px) {
  .app-page .live-demo-layout, .app-page .query-fields { grid-template-columns: 1fr; }
  .live-demo-layout { grid-template-columns: 1fr; gap: 12px; }
  .query-form { padding: 18px; }
  .query-answer { padding-top: 12px; }
  .movie-tabs { gap: 3px; }
  .movie-tabs button { font-size: 12px; padding-inline: 3px; }
  .movie-caption { display: block; }
  .movie-caption > div { max-width: none; margin-top: 8px; }
  .answer-metrics strong { font-size: 21px; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: #fff; color: var(--ink); font: 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure { margin: 0; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #174c7c; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button, a, input { touch-action: manipulation; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid #619ed6; outline-offset: 4px; }
[hidden] { display: none !important; }
.shell { width: min(1000px, calc(100% - 48px)); margin-inline: auto; }
.icon { display: inline-block; width: 17px; height: 17px; vertical-align: -3px; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: absolute; top: 12px; left: 12px; transform: translateY(-150%); padding: 8px 12px; background: #fff; z-index: 10; }
.skip-link:focus { transform: translateY(0); }

/* A centered paper heading and direct links to the research material. */
.paper-header { text-align: center; padding-top: 46px; }
h1 { font-size: clamp(30px, 3.4vw, 40px); font-weight: 600; line-height: 1.2; letter-spacing: -1px; }
.paper-authors { margin-top: 22px; font-size: 20px; color: var(--blue); }
.author-separator { margin-inline: 10px; color: var(--muted); font-size: 17px; }
.paper-affiliation { margin-top: 3px; font-size: 17px; }
.paper-links { display: flex; justify-content: center; gap: 9px; flex-wrap: wrap; margin-top: 18px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #30343a; border-radius: 24px; padding: 7px 17px; background: #30343a; color: #fff; font-size: 15px; font-weight: 500; line-height: 1.5; text-decoration: none; }
.button:hover { background: #454b53; border-color: #454b53; color: #fff; }

/* The fixed real-data example is the first substantive content on the page. */
.teaser { width: min(1080px, calc(100% - 48px)); padding-top: 42px; padding-bottom: 30px; }
.teaser > h2 { text-align: center; font-size: 21px; line-height: 1.4; font-weight: 500; letter-spacing: -.3px; margin-bottom: 28px; }
.teaser-grid { display: grid; grid-template-columns: 1.85fr .72fr 1.03fr; gap: 24px; align-items: center; }
.opening-film { margin: 0 0 30px; }
.opening-film video { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 660; background: #fbf7f1; border: 1px solid #e6e0d6; border-radius: 6px; }
.opening-film figcaption { max-width: 900px; margin: 12px auto 0; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.65; }
.teaser h3 { font-size: 15px; font-weight: 600; line-height: 1.45; text-align: center; }
.teaser-input { min-width: 0; }
.teaser-input img { display: block; width: 100%; height: auto; margin-top: 6px; }
.teaser-input figcaption { display: block; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 2px; }
.teaser-constraint { min-width: 0; text-align: center; }
.teaser-arrow { display: block; width: 100%; max-width: 145px; height: 24px; margin: 19px auto 11px; color: #7f8b96; }
.teaser-equation { font-size: 16px; white-space: nowrap; }
.teaser-domain { color: var(--muted); font-size: 12px; line-height: 1.7; margin-top: 14px; }
.budget-picker { margin: 18px 0 0; padding: 0; border: 0; min-width: 0; }
.budget-picker legend { padding: 0; width: 100%; text-align: center; font-size: 13px; margin-bottom: 7px; color: var(--muted); }
.budget-options { display: flex; justify-content: center; gap: 4px; }
.budget-options label { position: relative; cursor: pointer; flex: 1; max-width: 39px; }
.budget-options input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.budget-options label > span { display: block; border: 1px solid #cbd2da; border-radius: 3px; padding: 6px 1px; text-align: center; font-size: 13px; line-height: 1.5; }
.budget-options input:checked + span { color: #fff; background: var(--blue); border-color: var(--blue); }
.budget-options input:focus-visible + span { outline: 3px solid #619ed6; outline-offset: 3px; }
.budget-options label:hover > span { border-color: var(--blue); }
.teaser-output { min-width: 0; text-align: center; }
.answer-pair { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin-top: 19px; font-size: clamp(35px, 4vw, 50px); letter-spacing: -1.8px; font-weight: 500; line-height: 1.2; color: var(--blue); font-variant-numeric: tabular-nums; }
.denominator { font-size: 18px; font-weight: 400; letter-spacing: 0; color: var(--muted); white-space: nowrap; }
.answer-label { font-size: 12px; line-height: 1.6; color: var(--muted); margin-top: 7px; }
.count-range { display: block; width: 100%; max-width: 280px; height: auto; margin: 6px auto 0; overflow: visible; }
.count-range text { fill: #65717c; font-size: 12px; font-family: var(--sans); }
.teaser-output-note { margin-top: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.budget-explanation { margin-top: 24px; text-align: center; font-size: 15px; font-weight: 500; }
.teaser-caption { max-width: 900px; margin: 12px auto 0; text-align: center; font-size: 16px; line-height: 1.7; }
.teaser-source { max-width: 920px; margin: 10px auto 0; text-align: center; font-size: 12px; line-height: 1.7; color: var(--muted); }
.noscript-note { margin-top: 12px; text-align: center; font-size: 14px; color: var(--muted); }

/* The remaining sections follow a restrained, readable paper-page layout. */
.section { padding-block: 42px; }
.section h2 { text-align: center; font-size: 29px; line-height: 1.3; font-weight: 600; letter-spacing: -.5px; margin-bottom: 24px; }
.section h3 { font-size: 20px; line-height: 1.4; font-weight: 500; }
.abstract-section { max-width: 850px; padding-top: 31px; }
.abstract-section > p { text-align: justify; }
.section-intro, .worked-intro > p, .body-copy { max-width: 850px; margin-inline: auto; }
.section-subtitle { margin: -14px auto 23px; text-align: center; font-size: 14px; color: var(--muted); }
.intro-grid { display: block; }
.body-copy p + p { margin-top: 12px; }
.worked-intro > p { text-align: left; }
.toy-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 850px; margin: 25px auto 0; border-bottom: 1px solid var(--line); }
.toy-tabs button { background: #fff; border: 0; border-bottom: 2px solid transparent; padding: 12px 6px; text-align: center; font-size: 16px; line-height: 1.5; margin-bottom: -1px; }
.toy-tabs button[aria-selected="true"] { color: var(--blue); border-bottom-color: var(--blue); }
.toy-tabs button:hover { color: var(--blue); }
.toy-tabs small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.toy-workspace { display: grid; grid-template-columns: 1fr 1.12fr; gap: 42px; padding-top: 30px; }
.toy-workspace:focus-visible { outline: 2px solid #619ed6; outline-offset: 7px; }
.example-label { color: var(--muted); font-size: 13px; margin-bottom: 9px; }
.toy-explanation h3 { margin-bottom: 13px; }
.toy-explanation > p:not(.example-label):not(.toy-answer) { margin-top: 13px; font-size: 15px; line-height: 1.75; }
.toy-budget-picker { border: 0; min-width: 0; margin: 20px 0 0; padding: 0; }
.toy-budget-picker legend { padding: 0; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.toy-budget-options { display: flex; gap: 8px; }
.toy-budget-options label { position: relative; cursor: pointer; flex: 1; }
.toy-budget-options input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.toy-budget-options label > span { display: block; padding: 9px 12px; border: 1px solid #cbd2da; border-radius: 3px; font-size: 16px; line-height: 1.4; text-align: center; }
.toy-budget-options small { display: block; font-size: 12px; margin-top: 3px; }
.toy-budget-options input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.toy-budget-options input:focus-visible + span { outline: 3px solid #619ed6; outline-offset: 3px; }
.toy-budget-options label:hover > span { border-color: var(--blue); }
.toy-explanation .toy-answer { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1px 12px; margin-top: 19px; padding-block: 12px; border-block: 1px solid var(--line); }
.toy-answer > span { font-size: 13px; color: var(--muted); }
.toy-answer > strong { grid-column: 2; grid-row: 1 / 3; font-size: 38px; font-weight: 500; letter-spacing: -1px; line-height: 1.2; color: var(--blue); }
.toy-explanation p.toy-extra { color: var(--muted); font-size: 13px !important; }
.toy-proof { min-width: 0; }
.toy-table-wrap { overflow-x: auto; }
.toy-table { border-collapse: collapse; width: 100%; font-size: 13px; line-height: 1.6; text-align: center; font-variant-numeric: tabular-nums; }
.toy-table caption { font-size: 14px; text-align: left; font-weight: 600; padding-bottom: 12px; }
.toy-table th, .toy-table td { border-bottom: 1px solid var(--line); padding: 8px; }
.toy-table thead th { font-weight: 400; font-size: 12px; color: var(--muted); padding-top: 0; }
.toy-table tr > th:first-child { text-align: left; width: 48%; padding-left: 0; font-weight: 400; }
.toy-table td { min-width: 40px; }
.toy-table .toy-observed td { font-size: 22px; font-weight: 500; }
.toy-table th span { font-size: 11px; color: var(--muted); }
.toy-table thead th span { display: block; }
.toy-table .toy-path-heading > th { width: auto; padding: 9px; border-top: 14px solid #fff; border-bottom: 0; background: var(--pale); font-weight: 600; font-size: 13px; }
.toy-path-heading span { float: right; font-weight: 400; white-space: nowrap; margin-left: 8px; }
.toy-table .toy-masked { color: var(--muted); background: #f7f8fa; }
.toy-table .toy-hits td { font-weight: 600; color: var(--blue); }
.toy-table .toy-hits td.toy-masked { color: var(--muted); font-weight: 400; }
.toy-table-note { margin-top: 12px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.worked-to-real { margin: 25px auto 0; max-width: 850px; font-size: 14px; color: var(--muted); }
.worked-to-real a { margin-left: 4px; }
.toy-fallback { margin-top: 20px; font-size: 15px; }
.toy-fallback p + p { margin-top: 12px; }
.example-figure { margin-top: 26px; }
.paper-figure { margin-inline: auto; }
.figure-image-link { display: block; }
.paper-figure img { display: block; width: 100%; height: auto; }
.paper-figure figcaption { display: flex; align-items: baseline; gap: 12px; margin-top: 13px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.figure-number { font-weight: 600; white-space: nowrap; color: var(--ink); }
.paper-figure figcaption p { flex: 1; }
.paper-figure figcaption > a { font-size: 12px; white-space: nowrap; }
.paper-figure figcaption strong { color: var(--ink); font-weight: 600; }
.scope-note { max-width: 900px; margin: 20px auto 0; font-size: 13px; color: var(--muted); }
.facts-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 900px; margin: 26px auto; padding-block: 18px; border-block: 1px solid var(--line); }
.facts-strip > div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 5px; }
.fact-value { font-size: 25px; line-height: 1.3; font-weight: 500; color: var(--blue); }
.facts-strip > div > span:last-child { font-size: 13px; color: var(--muted); line-height: 1.6; }
.query-contract { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 28px; margin: 0 auto 26px; font-size: 14px; }
.formula { font-size: 23px; white-space: nowrap; }
.formula sup, .formula sub { font-size: 11px; }
.contract-description { font-size: 14px; color: var(--muted); }
.query-contract a { font-size: 13px; }
.method-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 32px; }
.method-steps .step-number { display: none; }
.method-steps h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.method-steps p { font-size: 14px; color: var(--muted); line-height: 1.75; }
.complexity-note { margin: 28px auto 0; max-width: 900px; padding-top: 20px; border-top: 1px solid var(--line); }
.complexity-note > .eyebrow { font-size: 14px; color: var(--muted); margin-bottom: 7px; }
.complexity-formula { font-size: 23px; line-height: 1.5; overflow-wrap: anywhere; }
.complexity-formula span { font-size: 14px; margin-left: 9px; color: var(--muted); }
.complexity-note > p:last-child { font-size: 14px; color: var(--muted); margin-top: 8px; }
.evidence-scope { display: flex; justify-content: center; gap: 42px; margin: 24px auto; font-size: 14px; }
.evidence-scope > div { display: flex; align-items: baseline; gap: 9px; }
.evidence-scope strong { font-size: 22px; font-weight: 500; }
.evidence-scope span { color: var(--muted); font-size: 13px; }
.results-table-wrap { overflow-x: auto; }
.results-table { border-collapse: collapse; width: 100%; text-align: left; font-size: 15px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.results-table caption { text-align: left; font-size: 16px; font-weight: 600; padding-bottom: 16px; }
.results-table caption span { display: block; font-size: 13px; font-weight: 400; color: var(--muted); margin-top: 3px; }
.results-table th, .results-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); }
.results-table th:first-child { padding-left: 0; }
.results-table thead th { font-size: 13px; font-weight: 500; color: var(--muted); border-top: 1px solid var(--line); }
.results-table tbody th { font-weight: 500; }
.results-table tbody th span { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.results-table tbody tr.favorable td:nth-child(2), .results-table tbody tr.favorable td:nth-child(3) { color: var(--blue); }
.result-indicator { display: none; }
.results-table td span { display: block; color: var(--muted); font-size: 12px; }
.results-table td.win { color: var(--blue); }
.results-table td.win span { color: var(--muted); }
.ratio-table td:not(:last-child) { white-space: nowrap; }
.ratio-table td:last-child { font-size: 13px; color: var(--muted); min-width: 180px; }
.horizon-table { margin-top: 34px; }
.table-note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.results-detail-grid { margin-top: 30px; }
.results-figure { max-width: 800px; }
.results-reading { max-width: 850px; margin: 28px auto 0; }
.results-reading h3 { font-size: 20px; margin-bottom: 12px; }
.results-reading > p { margin-top: 10px; font-size: 15px; }
.absolute-cost { margin-top: 18px; padding-block: 14px; border-block: 1px solid var(--line); }
.absolute-cost > span { font-size: 13px; color: var(--muted); margin-right: 20px; }
.absolute-cost strong { font-size: 22px; font-weight: 500; }
.absolute-cost small { font-size: 14px; font-weight: 400; }
.absolute-cost p { margin-top: 5px; font-size: 13px; color: var(--muted); }
.results-reading .small-copy { font-size: 13px; color: var(--muted); }
.text-link { display: inline-flex; gap: 7px; align-items: center; font-size: 14px; }
.results-reading .text-link { margin-top: 16px; }
.data-download { display: inline-block; margin: 16px 0 0 22px; font-size: 14px; }
.data-download span { font-size: 12px; }
.measurement-note { max-width: 900px; margin: 25px auto 0; border-top: 1px solid var(--line); padding-top: 20px; font-size: 14px; }
.measurement-note strong { font-weight: 600; }
.measurement-note p { margin-top: 8px; color: var(--muted); }

.code-intro { max-width: 850px; margin-inline: auto; }
.code-intro > p { font-size: 16px; }
.code-intro .button { margin-top: 17px; }
.code-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 15px; font-size: 14px; }
.code-content { max-width: 850px; margin: 24px auto 0; }
.code-box { border: 1px solid var(--line); background: var(--pale); margin-top: 17px; overflow: hidden; border-radius: 4px; }
.code-toolbar { padding: 10px 16px; display: flex; justify-content: space-between; gap: 15px; align-items: center; border-bottom: 1px solid var(--line); font-size: 13px; }
.code-language { color: var(--muted); margin-left: 9px; font-size: 12px; }
.copy-button { border: 0; padding: 1px 0; background: transparent; color: var(--blue); font-size: 12px; }
.copy-button span { margin-left: 7px; }
.copy-button .icon { width: 13px; height: 13px; }
pre { margin: 0; overflow: auto; font: 13px/1.8 ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', monospace; }
.code-box pre { padding: 17px 16px; }
.syntax-keyword { color: #245b92; }
.syntax-comment { color: #65717d; }
.native-details { margin-top: 18px; font-size: 14px; }
.native-details summary { cursor: pointer; color: var(--blue); }
.native-details summary span { display: none; }
.native-details p { margin-top: 12px; font-size: 14px; }
.native-details pre { margin-top: 12px; padding: 14px 16px; background: var(--pale); border: 1px solid var(--line); }
.code-footnote { margin-top: 17px; font-size: 13px; color: var(--muted); }
.citation-grid { max-width: 850px; margin-inline: auto; }
.citation-grid > div > p { font-size: 15px; }
.citation-text { margin-top: 22px; border: 1px solid var(--line); border-radius: 4px; padding: 17px 20px; }
.citation-heading-row { display: flex; justify-content: space-between; gap: 15px; align-items: center; font-size: 13px; color: var(--muted); }
.citation-text p#citation-text { margin: 12px 0; font-size: 16px; }
.citation-text pre { margin: 12px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.citation-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.attribution { max-width: 900px; margin: 26px auto 0; color: var(--muted); font-size: 13px; }
.attribution p + p { margin-top: 12px; }
.attribution strong { color: var(--ink); font-weight: 500; }
.site-footer { border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 15px; padding-block: 24px 30px; color: var(--muted); font-size: 12px; }
.site-footer a { white-space: nowrap; }
.site-footer .icon { width: 13px; height: 13px; }

@media (max-width: 900px) {
  .teaser { max-width: 760px; }
  .teaser-grid { grid-template-columns: 1.5fr .85fr; gap: 20px; align-items: center; }
  .teaser-input { grid-column: 1; grid-row: 1 / 3; }
  .teaser-constraint { grid-column: 2; }
  .teaser-output { grid-column: 2; }
  .teaser-constraint h3 { font-size: 14px; }
  .teaser-arrow { display: none; }
  .teaser-equation { margin-top: 8px; }
  .budget-picker { margin-top: 10px; }
  .teaser-domain { margin-top: 10px; }
  .teaser-output h3 { font-size: 14px; }
  .answer-pair { font-size: 40px; margin-top: 8px; }
  .answer-label { font-size: 11px; }
  .teaser-output-note { font-size: 11px; }
  .count-range { max-width: 240px; margin-top: 0; }
  .budget-explanation { margin-top: 22px; }
  .toy-workspace { gap: 28px; grid-template-columns: .95fr 1.05fr; }
  .toy-path-heading span { display: block; float: none; margin: 2px 0 0; }
  .toy-table { font-size: 12px; }
  .toy-table th, .toy-table td { padding-inline: 6px; }
  .evidence-scope { gap: 25px; }
  .evidence-scope > div { flex-direction: column; gap: 1px; align-items: center; text-align: center; }
}
@media (max-width: 640px) {
  .shell, .teaser { width: calc(100% - 32px); }
  .paper-header { padding-top: 30px; }
  h1 { font-size: 30px; letter-spacing: -.7px; line-height: 1.2; }
  .paper-authors { font-size: 17px; margin-top: 18px; }
  .author-separator { margin-inline: 5px; font-size: 15px; }
  .paper-affiliation { font-size: 15px; }
  .paper-links { margin-top: 16px; }
  .button { font-size: 14px; padding: 7px 14px; }
  .teaser { padding-top: 32px; padding-bottom: 25px; }
  .teaser > h2 { font-size: 19px; max-width: 330px; margin-inline: auto; margin-bottom: 22px; }
  .teaser-grid { grid-template-columns: 1fr 1.3fr; gap: 24px 16px; }
  .teaser-input { grid-column: 1 / -1; grid-row: 1; width: min(100%, 520px); margin-inline: auto; }
  .teaser-input h3 { font-size: 15px; }
  .teaser-input img { margin-top: 8px; }
  .teaser-input figcaption { font-size: 12px; }
  .teaser-constraint { grid-column: 1; grid-row: 2; }
  .teaser-output { grid-column: 2; grid-row: 2; }
  .teaser h3 { font-size: 13px; }
  .teaser-equation { font-size: 14px; }
  .budget-picker legend { font-size: 12px; }
  .budget-options { gap: 3px; }
  .budget-options label > span { font-size: 12px; padding-block: 6px; }
  .teaser-domain { font-size: 11px; }
  .answer-pair { font-size: 37px; gap: 6px; letter-spacing: -1.3px; }
  .denominator { font-size: 14px; }
  .answer-label { font-size: 10px; }
  .teaser-output-note { font-size: 10px; }
  .count-range { margin-top: 1px; }
  .budget-explanation { margin-top: 24px; font-size: 14px; }
  .teaser-caption { margin-top: 11px; font-size: 15px; text-align: left; }
  .teaser-source { text-align: left; font-size: 11px; }
  .section { padding-block: 30px; }
  .section h2 { font-size: 26px; margin-bottom: 20px; }
  .abstract-section > p { text-align: left; }
  .toy-tabs { gap: 6px; margin-top: 20px; }
  .toy-tabs button { font-size: 13px; padding: 10px 2px; }
  .toy-tabs small { font-size: 11px; }
  .toy-workspace { grid-template-columns: 1fr; gap: 25px; padding-top: 24px; }
  .toy-explanation h3 { font-size: 20px; }
  .toy-explanation > p:not(.example-label):not(.toy-answer) { font-size: 15px; }
  .toy-table { font-size: 13px; }
  .toy-table .toy-path-heading > th { font-size: 13px; }
  .toy-path-heading span { float: right; display: inline; margin: 0 0 0 7px; }
  .toy-budget-options small { font-size: 12px; }
  .toy-explanation p.toy-extra { font-size: 13px !important; }
  .toy-table-note { font-size: 12px; }
  .paper-figure figcaption { flex-wrap: wrap; gap: 5px 10px; font-size: 12px; }
  .paper-figure figcaption p { flex-basis: calc(100% - 80px); }
  .paper-figure figcaption > a { margin-left: 0; }
  .scope-note { font-size: 12px; }
  .facts-strip { gap: 12px; padding-block: 16px; }
  .fact-value { font-size: 23px; }
  .facts-strip > div > span:last-child { font-size: 11px; }
  .query-contract { gap: 13px; justify-content: flex-start; }
  .formula { font-size: 23px; }
  .contract-description { font-size: 13px; }
  .method-steps { grid-template-columns: 1fr; gap: 21px; margin-top: 25px; }
  .method-steps h3 { font-size: 17px; margin-bottom: 5px; }
  .method-steps p { font-size: 14px; }
  .complexity-formula { font-size: 20px; }
  .evidence-scope { gap: 20px; justify-content: space-between; }
  .evidence-scope strong { font-size: 20px; }
  .evidence-scope span { font-size: 11px; }
  .results-table { min-width: 600px; font-size: 14px; }
  .ratio-table { min-width: 720px; }
  .results-table th, .results-table td { padding: 10px 12px; }
  .results-table th:first-child { padding-left: 0; }
  .results-table caption { font-size: 15px; }
  .results-table caption span { font-size: 12px; }
  .table-note { font-size: 12px; }
  .results-reading > p { font-size: 15px; }
  .absolute-cost > span { display: block; margin-right: 0; }
  .data-download { display: block; margin-left: 0; }
  .measurement-note { font-size: 13px; }
  .code-toolbar { padding: 10px 12px; font-size: 12px; }
  .code-language { margin-left: 5px; font-size: 11px; }
  .copy-button { font-size: 11px; }
  .copy-button span { margin-left: 4px; }
  .code-box pre { padding: 14px 12px; }
  pre { font-size: 12px; }
  .code-footnote { font-size: 12px; overflow-wrap: anywhere; }
  .citation-text { padding: 15px; }
  .attribution { font-size: 12px; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 10px; font-size: 11px; padding-block: 20px; }
}
@media (max-width: 380px) {
  h1 { font-size: 27px; }
  .paper-authors { font-size: 15px; }
  .teaser-grid { grid-template-columns: 1fr; gap: 23px; }
  .teaser-input { grid-column: 1; }
  .teaser-constraint { grid-column: 1; grid-row: 2; max-width: 230px; width: 100%; margin-inline: auto; }
  .teaser-output { grid-column: 1; grid-row: 3; }
  .teaser-output h3 { font-size: 15px; }
  .answer-pair { font-size: 48px; }
  .answer-label, .teaser-output-note { font-size: 12px; }
  .count-range { max-width: 250px; }
  .toy-path-heading span { float: none; display: block; margin: 2px 0 0; }
}
.teaser-grid.teaser-grid--explore { grid-template-columns: minmax(0, 300px) minmax(0, 340px); justify-content: center; gap: 24px 56px; }
.teaser-grid--explore .teaser-constraint, .teaser-grid--explore .teaser-output { grid-column: auto; grid-row: auto; }
.teaser-grid--explore .teaser-arrow { display: none; }
.teaser-grid--explore .teaser-equation { margin-top: 12px; }
@media (max-width: 560px) {
  .teaser-grid.teaser-grid--explore { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px 16px; }
  .opening-film { margin-bottom: 24px; }
  .opening-film figcaption { font-size: 12px; }
}
@media (max-width: 380px) {
  .teaser-grid.teaser-grid--explore { grid-template-columns: minmax(0, 1fr); }
  .teaser-grid--explore .teaser-constraint { max-width: 230px; width: 100%; margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .shell, .teaser { width: 100%; }
  .paper-header { padding-top: 10px; }
  h1 { font-size: 28pt; }
  .paper-links, .copy-button, .budget-picker, .toy-tabs, .toy-budget-picker, .site-footer a { display: none; }
  .teaser { padding-top: 25px; }
  .teaser-grid { grid-template-columns: 1.7fr .8fr 1fr; gap: 15px; }
  .teaser-input { grid-column: auto; grid-row: auto; }
  .opening-film video { max-height: 9cm; width: auto; margin-inline: auto; }
  .teaser-constraint, .teaser-output { grid-column: auto; grid-row: auto; }
  .teaser-arrow { display: block; }
  .section { padding-block: 24px; }
  .paper-figure, .toy-table, .code-box { break-inside: avoid; }
  .paper-figure img { max-height: 21cm; object-fit: contain; }
  a { text-decoration: none; }
}
