@import url("climb-base.css?v=2");

/* MoBayes scenes on the LiGHT layout foundation. */
:root { --line: var(--hair); --sea: #0c43a0; --lake: #68afe7; --section-gap: clamp(48px,6vw,80px); --heading-gap: clamp(24px,3vw,32px); }
.section { padding-top: var(--section-gap); }
.section-head { margin-bottom: var(--heading-gap); }
.section:not(.cite) h2, .harness-stage h2 { font: 500 clamp(34px,4.6vw,54px)/1.1 var(--display); letter-spacing: -.015em; text-wrap: balance; }
.hero-video { max-width: min(100%, calc((100svh - 100px) * 16 / 9)); margin-inline: auto; }
button, select, input { font: inherit; }
button { color: inherit; touch-action: manipulation; }
button:disabled { opacity: .4; cursor: default; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.hero-head .authors { max-width: 760px; }
.hero h1.wordmark { font-size: clamp(62px, calc(15vw + 14px), 164px); font-weight: 800; letter-spacing: -.035em; -webkit-text-stroke: .006em currentColor; white-space: nowrap; }
.wordmark-mo, .subtitle .name-mo { color: var(--sea); }
.wordmark-bayes, .subtitle .name-bayes { color: var(--ink); }
.subtitle .name-expansion { white-space: nowrap; }
.subtitle .name-expansion strong { font-size: 1.12em; font-weight: 800; text-decoration: underline; text-decoration-color: var(--lake); text-decoration-thickness: .1em; text-underline-offset: .12em; }
.v-title { font: 500 24px var(--display); fill: var(--ink); }
.v-label { font: 500 18px var(--sans); fill: var(--ink); }
.v-small { font: 400 16px var(--sans); fill: var(--ink-2); }
.v-tiny { font: 500 13px var(--sans); fill: var(--ink-2); }
.v-number { font: 500 20px var(--sans); fill: var(--ink); font-variant-numeric: tabular-nums; }
.v-say { font: 500 24px var(--sans); fill: var(--ink); }
.v-say.light { fill: var(--paper); }
/* The opening examples share one type scale with the animated consultation. */
#hero-scene .v-title { font-family: var(--sans); }
#hero-scene .svg-caption { font: 500 26px var(--sans); fill: #102d5c; }
.h-risk-label { font: 400 20px var(--sans); fill: #557092; }
.h-risk-body { font: 500 24px var(--sans); fill: #102d5c; }
.h-risk-value { font: 600 58px var(--sans); fill: #102d5c; font-variant-numeric: tabular-nums; }
.h-risk-accent { fill: #0c43a0; }
.h-risk-token { font: 500 20px var(--sans); fill: #fff; }
.h-document { fill: #fff; stroke: #b8cfe8; stroke-width: 2; stroke-linejoin: round; }
.h-flow-line { fill: none; stroke: #68afe7; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#k-prior-bars .v-tiny { fill: #fff; }
.wide-scene { display: block; width: 100%; height: auto; }
.machine-eyes { transform-box: fill-box; transform-origin: center; animation: machine-blink 6s infinite; }
@keyframes machine-blink { 0%,94%,100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
.builder { background: #e9f1fa; }
.kb-cell { opacity: 0; }
#results .chart-note { font-size: 12px; font-weight: 400; }
#results .chart { overflow: hidden; }
.tk-viz { min-width: 0; }
.threshold-stats { display: grid; grid-template-columns: 1fr 1fr .65fr; gap: 15px; margin: 10px 0 26px; }
.threshold-stats > div > strong { display: block; font: 600 39px/1.1 var(--sans); letter-spacing: -.04em; color: var(--sea); font-variant-numeric: tabular-nums; }
.threshold-stats > div:nth-child(2) > strong { color: var(--lake); }
.threshold-stats > div:nth-child(3) > strong { color: var(--ink); }
.threshold-stats strong span { font-size: 20px; }
.threshold-stats > div > span { display: block; font-size: 11px; color: var(--ink-2); margin-top: 7px; }
.threshold-chart svg { width: 100%; height: auto; }
.chart-grid { stroke: var(--hair); stroke-width: 1; stroke-dasharray: 3 4; }
.slider-label { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin: 14px 0 5px; }
.slider-label output { color: var(--sea); }
input[type=range] { width: 100%; accent-color: var(--sea); cursor: pointer; }
.range-ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 3px; }
.segmented { display: inline-flex; gap: 3px; padding: 4px; border: 1px solid var(--hair); border-radius: 999px; }
.segmented button { border: 0; background: none; border-radius: 999px; padding: 8px 14px; color: var(--ink-2); cursor: pointer; font-size: 13px; }
.segmented button[aria-pressed=true] { background: var(--ink); color: var(--paper); }
@media(max-width:960px) {
 .tk { grid-template-columns: 1fr; gap: 24px; }
 .tk-copy { max-width: 740px; }
 .tk-viz { width: 100%; }
}
@media(max-width:760px) {
 .nav nav a { display: none !important; }
 .nav nav a[href="#results"], .nav nav a[href="#cite"] { display: block !important; }
 #hero-scene { aspect-ratio: 630 / 1040; }
 .risk-flow { display: none; }
 #hero-scene text { display: initial; }
 .scene-toggle { top: auto; bottom: 18px; }
 #hero-scene .svg-caption { font-size: 23px; }
 .h-horizon { display: none; }
 .hero .affil { font-size: 12px; line-height: 1.8; }
 .hero .authors { font-size: 14px; }
 .wide-scene .svg-caption { font-size: 21px; }
 .wide-scene .v-small { font-size: 19px; }
 .wide-scene .v-tiny { font-size: 16px; }
 #m-engine .v-small { font-size: 16px; }
 #m-engine .v-tiny { font-size: 14px; }
 #m-book + path, #m-book + path + text { display: none; }
 #k-table .v-small { font-size: 17px; }
 .b-dice { left: auto; right: 8px; top: 8px; width: 29px; height: 29px; }
 .b-dice svg { width: 18px; height: 18px; }
 .threshold-stats { gap: 10px; }
 .threshold-stats > div > strong { font-size: 34px; }
 .threshold-stats > div > span { font-size: 10px; }
 .segmented { align-self: start; }
 .segmented button { font-size: 12px; }
}
@media(max-width:380px) {
 .hero .links { flex-wrap: nowrap; gap: 6px; }
 .hero .links .btn { padding: 10px 11px; gap: 5px; font-size: 13px; }
 .hero .links .btn svg { width: 14px; height: 14px; }
}
@media(prefers-reduced-motion:reduce) { .machine-eyes { animation: none; } }

/* Quiet chapter controls beneath the opening animation. */
#hero-overview .overview-controls { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 12px; }
.overview-chapters { display: flex; align-items: center; gap: 4px; }
.overview-chapters button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: none; font: 500 13px var(--sans); color: #557092; white-space: nowrap; cursor: pointer; }
.overview-chapters button::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .35; }
.overview-chapters button[aria-pressed=true] { color: #0c43a0; background: #e9f1fa; }
.overview-chapters button[aria-pressed=true]::before { opacity: 1; }
.overview-tools { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
#hero-overview .scene-toggle, #hero-overview .overview-watch { position: static; transform: none; flex-shrink: 0; border: 0; border-radius: 8px; background: none; box-shadow: none; color: #557092; cursor: pointer; }
#hero-overview .scene-toggle { width: 44px; height: 44px; }
#hero-overview .overview-watch { min-height: 44px; padding: 0 8px; gap: 8px; font: 500 13px var(--sans); color: #102d5c; }
#hero-overview .overview-watch span { font-size: 12px; color: #557092; }
#hero-overview .overview-controls button:hover { color: #0c43a0; background: #e9f1fa; }
#hero-overview .overview-controls button:focus-visible { outline: 2px solid #0c43a0; outline-offset: 2px; }
@media(max-width:760px) {
 #hero-overview .overview-controls { flex-wrap: wrap; gap: 4px; margin-top: 8px; }
 .overview-chapters { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); width: 100%; }
 .overview-chapters button { padding: 0 4px; font-size: 12px; }
 .overview-chapters button::before { display: none; }
 .overview-tools { margin-left: auto; gap: 8px; }
}

/* The extracted record enters Bayes before the next question is selected. */
.harness-scroll { margin: 0; padding-top: var(--section-gap); }
.harness-stage { max-width: var(--wrap); padding: 0 var(--gutter); margin-inline: auto; }
.harness-stage h2 { margin: 0 0 var(--heading-gap); }
.harness-intro { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(24px,4vw,56px); margin-bottom: var(--heading-gap); color: var(--ink-2); }
.harness-intro p { margin: 0 0 16px; }
.harness-intro p:last-child { margin-bottom: 0; }
.harness-intro .harness-takeaway { color: var(--ink); font-weight: 600; }
.harness-figure-title { font: 500 18px/1.4 var(--sans); color: var(--ink); margin: 0 0 16px; }
.harness-canvas { border: 1px solid #d7e5f2; border-radius: 12px; overflow: hidden; background: #e9f1fa; }
#method-scene { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 528; }
.mh-label { font: 400 20px var(--sans); fill: #557092; }
.mh-disease { font: 500 26px var(--sans); fill: #102d5c; }
.mh-speech { font: 400 21px var(--sans); fill: #102d5c; }
.mh-number { font: 600 27px var(--sans); fill: #102d5c; font-variant-numeric: tabular-nums; }
.mh-gain-number { font: 500 25px var(--sans); fill: #102d5c; font-variant-numeric: tabular-nums; }
.mh-meta { font: 400 21px var(--sans); fill: #557092; }
.mh-caption { font: 400 23px var(--sans); fill: #557092; }
.mh-decision { font: 500 34px var(--sans); fill: #102d5c; }
.mh-light { fill: #fff; }
.mh-field { font: 400 26px var(--sans); fill: #102d5c; }
.mh-field-caption { font: 400 18px var(--sans); fill: #557092; }
.mh-field-name { font-weight: 600; fill: #0c43a0; }
.mh-check { fill: none; stroke: #0c43a0; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.harness-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.harness-transport { display: flex; flex-shrink: 0; }
.harness-transport button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: #557092; cursor: pointer; }
.harness-transport button:hover { color: #0c43a0; background: #e9f1fa; }
.harness-transport button:focus-visible { outline: 2px solid #0c43a0; outline-offset: -3px; }
.harness-transport svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
:is(#harness-toggle,#knowledge-toggle) .mh-play, :is(#harness-toggle,#knowledge-toggle)[aria-pressed=true] .mh-pause { display: none; }
:is(#harness-toggle,#knowledge-toggle)[aria-pressed=true] .mh-play { display: block; }
.harness-source { font-size: 11px; color: #557092; margin: 0; }
@media(max-width:760px) {
 .harness-intro { grid-template-columns: 1fr; gap: 20px; }
 #method-scene { aspect-ratio: 620 / 1056; }
 .mh-label { font-size: 22px; }
 .mh-meta { font-size: 22px; }
 .mh-field-caption { font-size: 20px; }
}

/* Citation actions sit above the code, with the same width as the harness. */
#cite { max-width: calc(860px + var(--gutter) + var(--gutter)); }
.citation-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
#cite h2 { font-size: 32px; line-height: 1.2; }
#copy-citation { min-height: 44px; padding: 9px 14px; font-size: 12px; flex-shrink: 0; }
#copy-citation:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
#cite .bib { box-shadow: none; }
#cite .bib pre { padding: 22px 24px; font: 400 12.5px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2; }
#cite .bib code { font: inherit; }
#cite .bib pre:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.bib-entry, .bib-key { color: var(--ink); font-weight: 600; }
.bib-field { color: var(--accent); }
@media(max-width:600px) { #cite h2 { font-size: 28px; } .citation-header { gap: 12px; margin-bottom: 14px; } #cite .bib pre { max-height: 320px; overflow: auto; padding: 18px 16px; font-size: 12px; } }

/* Lead finding, followed by paired findings with aligned figures. */
#results { max-width: var(--wrap); }
#results .section-lede { font-size: 18px; }
#results .takeaways { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 32px; }
#results .tk { grid-template-columns: minmax(0,1fr); grid-template-rows: subgrid; grid-row: span 3; gap: 18px; align-items: start; padding-top: 28px; border-top: 1px solid var(--hair); }
#results .tk-featured { grid-column: 1 / -1; grid-row: auto; grid-template-columns: minmax(0,1fr); grid-template-rows: auto auto; gap: 16px; padding-top: 0; border-top: 0; margin-bottom: 0; }
#results .tk h3 { font-size: 28px; line-height: 1.15; margin: 0 0 12px; }
#results .tk-copy { max-width: 58ch; }
#results .tk-copy p { font-size: 15px; line-height: 1.65; }
#results .tk-featured .tk-copy { max-width: none; }
#results .tk-featured h3 { font-size: clamp(28px,3.4vw,40px); }
.benchmark-scores { display: flex; flex-wrap: wrap; gap: 24px 56px; padding: 8px 0; }
.benchmark-scores > div { display: flex; flex-direction: column; gap: 4px; color: var(--ink-2); }
.benchmark-scores strong { font: 600 clamp(38px,5vw,52px)/1.1 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.benchmark-scores > div:first-child strong { color: var(--sea); }
.benchmark-scores strong span { font: 400 14px var(--sans); letter-spacing: 0; }
.benchmark-scores > div > span { font: 400 13px/1.5 var(--sans); }
#results .tk-viz { display: flex; flex-direction: column; align-self: stretch; padding: 20px; box-shadow: none; border-radius: 10px; }
#results figcaption { font: 400 12px/1.55 var(--sans); color: var(--muted); margin-top: 16px; }
#results .tk-viz > figcaption { margin-top: auto; padding-top: 16px; }
#results #family-chart text { paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
#results .legend { font-size: 11px; gap: 6px 18px; margin-bottom: 12px; }
#results .legend .result-circle { width: 9px; height: 9px; border-radius: 50%; background: var(--sea); }
#results .legend .result-square { width: 9px; height: 9px; border-radius: 0; background: var(--lake); }
#results .segmented { margin-bottom: 18px; }
#results .segmented button { padding: 7px 10px; font-size: 11px; }
#results .threshold-stats { margin: 0 0 20px; }
#results .threshold-stats strong { font-size: 30px; }
#results .threshold-stats strong span { font-size: 16px; }
.result-details { grid-column: 1 / -1; align-self: start; min-width: 0; }
.result-details > summary { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 0; font: 600 13px var(--sans); cursor: pointer; list-style: none; }
.result-details > summary::-webkit-details-marker { display: none; }
.result-details > summary::after { content: ''; width: 7px; height: 7px; margin: 0 4px 4px auto; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); flex-shrink: 0; }
.result-details[open] > summary::after { transform: rotate(225deg); margin-bottom: 0; }
.result-details > summary:focus-visible { outline: 2px solid var(--sea); outline-offset: 4px; border-radius: 2px; }
.result-details > summary span { color: var(--muted); font-weight: 400; }
.result-table-panel { padding: 0 0 16px; }
.result-table-panel p { font-size: 12px; line-height: 1.7; margin: 12px 0; color: var(--muted); }
.result-table-panel .table-scroll { overflow: auto; max-height: 520px; border: 1px solid var(--hair); border-radius: 6px; }
.results-table { width: 100%; border-collapse: separate; border-spacing: 0; font: 400 12px var(--sans); white-space: nowrap; font-variant-numeric: tabular-nums; }
.results-table th, .results-table td { padding: 11px 12px; text-align: right; border-bottom: 1px solid var(--hair); min-width: 65px; }
.results-table thead th { background: #eef5fc; color: var(--ink); font-weight: 500; position: sticky; z-index: 1; top: 0; }
.results-table thead tr:nth-child(2) th { top: 38px; }
.results-table thead th[colspan] { text-align: center; border-left: 1px solid var(--hair); }
.results-table th:first-child[rowspan], .results-table tbody th { position: sticky; left: 0; text-align: left; min-width: 240px; font-weight: 400; background: var(--surface); border-right: 1px solid var(--hair); }
.results-table th:first-child[rowspan] { background: #eef5fc; z-index: 2; }
.results-table .ours, .results-table .ours th { background: #eaf2fc; }
.results-table .ours th, .results-table .dhs-cell { font-weight: 600; }
.results-table .ours th { color: var(--sea); }
.results-table sup { margin-left: 2px; }
@media (max-width: 860px) {
 #results .takeaways { grid-template-columns: 1fr; gap: 32px; }
 #results .tk { grid-column: auto; grid-row: auto; grid-template-columns: 1fr; grid-template-rows: auto; gap: 18px; padding-top: 28px; }
 #results .tk-featured { padding-top: 0; margin-bottom: 0; }
 #results .tk h3 { font-size: 26px; }
 #results .tk-viz { padding: 18px; }
 #results .tk-copy { max-width: 560px; }
 .result-details > summary { gap: 10px; font-size: 12px; }
 .result-details > summary span { font-size: 11px; }
}

.research-scope{text-align:center;font-size:13px;max-width:790px;margin:27px auto 0}

#results #pricing-chart text { paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
#results .cost-point:focus { outline: none; }
#results .cost-point:is(:hover, :focus) .cost-marker { stroke: var(--ink); stroke-width: 2px; }
#results .cost-point:is(:hover, :focus) text { font-weight: 600; }

/* The abstract stays closed until requested. */
.abstract { margin-top: 18px; }
.abstract summary { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; font: 500 14px var(--sans); letter-spacing: 0; text-transform: none; }
.abstract summary::after, .abstract[open] summary::after { content: none; }
.abstract summary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.abstract[open] summary svg { transform: rotate(180deg); }
.abstract summary:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; border-radius: 6px; }
.abstract p { margin: 16px 0 0; font-size: 15px; line-height: 1.75; text-align: left; }

/* Both knowledge sources remain visible; the table is populated by one at a time. */
.knowledge-intro { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(24px,4vw,56px); margin-bottom: var(--heading-gap); color: var(--ink-2); }
.knowledge-intro h3 { margin: 0 0 12px; font: 600 18px/1.4 var(--sans); color: var(--ink); }
.knowledge-intro p { margin: 0 0 16px; }
.knowledge-intro p:last-child { margin-bottom: 0; }
@media(max-width:760px) { .knowledge-intro { grid-template-columns: 1fr; gap: 24px; } }
#kb-scene .svg-caption { font: 500 24px var(--sans); fill: var(--ink); }
#kb-scene .v-title { font-family: var(--sans); }
.kb-source-title { font: 500 28px var(--sans); fill: var(--ink); }
#k-table .v-label { font-size: 22px; }
#k-table .v-small { font-size: 18px; }
.knowledge-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 6px; }
.knowledge-swap { min-height: 44px; border: 0; padding: 0; background: none; font: 500 13px var(--sans); color: var(--sea); cursor: pointer; }
.knowledge-swap:hover { text-decoration: underline; text-underline-offset: 4px; }
.knowledge-swap:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; }
@media(max-width:760px) {
 #kb-scene .svg-caption { font-size: 22px; }
}
