/* Static copy of the readout page (src/build_export.py), on top of the kit (design system 2.0.4).
   The app keeps static/v3.css, which also fits Streamlit's own containers; this file holds the same piece rules
   for plain HTML, plus the inline SVG charts and the setup and prior menus. */
section.hero h1 {font-size: clamp(2rem, 3.6vw, 3rem); max-width: 30ch;}
section.hero {padding-block: 1.75rem .5rem;}
h2.v3-section {font-size: var(--viz-type-section); line-height: 1.15; margin: 1.75rem 0 .5rem;}
h2.v3-section.kit-rule {margin-top: 2.25rem;}
.v3-lede {color: var(--viz-muted); margin: 0 0 1rem;}
.v3-muted {color: var(--viz-muted); font-size: var(--viz-type-small);}
.v3-decision h3 {font-size: 1.6rem; line-height: 1.2; margin: .25rem 0 .25rem;}
.v3-decision .v3-reason {font-weight: 600; margin-bottom: .5rem;}
.v3-decision table.kpis {margin-bottom: 1.25rem;}
.v3-decision table.kpis .kpi-context {max-width: 28rem;}
.v3-note {margin: .5rem 0 1rem; padding: .6rem 1rem; border-inline-start: 4px solid var(--viz-rule-strong); background: var(--viz-surface);}
.v3-note p {margin: 0; font-size: var(--viz-type-small);}
.v3-note-strong p {font-size: var(--viz-type-body); font-weight: 600;}
.v3-callout {border-inline-start: 4px solid var(--viz-highlight); padding: .4rem 0 .4rem 1rem; margin: 1rem 0;}
.v3-disclosure-body {padding: .25rem 0 .75rem;}
.v3-downloads {font-size: 1.15rem; margin: 0 0 .25rem;}
details.kit-disclosure {border-bottom: 1px solid var(--viz-rule);}
details.kit-disclosure > summary {color: var(--viz-link); font-weight: 600; cursor: pointer; min-height: 44px; display: flex; align-items: center;}
table.data td, table.data th {vertical-align: top; overflow-wrap: normal;}
table.data td.num {font-family: var(--viz-font-figures); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; text-align: left;}
.table-scroll {margin: 0 0 1rem; overflow-x: auto;}
.table-scroll:focus-visible {outline: 3px solid var(--viz-focus); outline-offset: 2px;}
.v3-reader p, .v3-reader .v3-list, .v3-reader .v3-glossary {max-width: 72ch;}
.v3-glossary dt {font-weight: 600; margin-top: .75rem;}
.v3-glossary dd {margin: .15rem 0 0;}
.v3-list {padding-left: 1.25rem;}
.v3-menus {display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: end; margin: 0 0 1.25rem;}
.v3-menus label {display: grid; gap: .3rem; font-weight: 600;}
.v3-menus select {font: inherit; min-height: 44px; min-width: 14rem; padding: .3rem .6rem; color: var(--viz-foreground); background: var(--viz-surface); border: 1px solid var(--viz-border); border-radius: 6px;}
.v3-menus select:focus-visible {outline: 3px solid var(--viz-focus); outline-offset: 2px;}
.v3-pair {display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: start;}
.v3-pair > * {min-width: 0;}
@media (min-width: 900px) {.v3-pair {grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);}}
.v3-pair h2.v3-section {margin-top: .5rem;}
.v3-downloads-list {list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .25rem;}
.v3-downloads-list a {display: inline-flex; align-items: center; min-height: 44px;}
.v3-checks {max-width: 72ch;}
pre.v3-prompt {font: var(--viz-type-small)/1.6 var(--viz-font-figures); white-space: pre-wrap; overflow-wrap: anywhere; max-width: 80ch; margin: 1rem 0 0; padding: 1rem; background: var(--viz-surface); border: 1px solid var(--viz-rule); border-radius: 6px;}
/* Inline SVG charts: every colour is a kit token, so they follow the theme with the page. */
svg.v3-chart text {font-family: var(--viz-font-body); font-size: 12px; fill: var(--viz-muted);}
svg.v3-chart text.v3-axis-title {font-size: 13px; fill: var(--viz-foreground);}
svg.v3-chart text.v3-line-label {font-size: 13px; fill: var(--viz-foreground); paint-order: stroke; stroke: var(--viz-surface); stroke-width: 4px; stroke-linejoin: round;}
svg.v3-chart .v3-grid {stroke: var(--viz-grid); stroke-width: 1;}
svg.v3-chart .v3-zero {stroke: var(--viz-rule-strong); stroke-width: 1;}
svg.v3-chart .v3-ref {stroke: var(--viz-foreground); stroke-width: 1; stroke-dasharray: 2 3;}
svg.v3-chart .v3-now {stroke: var(--viz-foreground); stroke-width: 1;}
svg.v3-chart .s1 {stroke: var(--viz-categorical-1); fill: var(--viz-categorical-1);}
svg.v3-chart .s2 {stroke: var(--viz-categorical-2); fill: var(--viz-categorical-2);}
svg.v3-chart .s3 {stroke: var(--viz-categorical-3); fill: var(--viz-categorical-3);}
svg.v3-chart .s4 {stroke: var(--viz-categorical-4); fill: var(--viz-categorical-4);}
svg.v3-chart path.v3-line {fill: none;}
svg.v3-chart text.v3-legend {fill: var(--viz-foreground);}
svg.v3-chart .hit {fill: transparent;}
svg.v3-chart .pt-dot {opacity: 0;}
svg.v3-chart .pt.pt-on .pt-dot {opacity: 1;}
svg.v3-chart .v3-guide {stroke: var(--viz-muted); stroke-width: 1;}
/* Setup and prior views: all ship visible, each under its label, so the page reads in full without script. The switcher
   script marks the views not selected with view-off; no view carries that class in the HTML. */
p.view-label {margin: 1.5rem 0 .5rem; padding-top: .5rem; border-top: 1px solid var(--viz-rule); color: var(--viz-muted); font-size: var(--viz-type-small); font-weight: 600;}
span.view-label {display: block; margin-top: .5rem; color: var(--viz-muted); font-size: var(--viz-type-small); font-weight: 600;}
[data-view].view-off {display: none;}
/* While the page loads with script on, the head sets class js on the root: only the default view (DEFAULT_SCENARIO and
   DEFAULT_PRIOR in src/build_export.py) shows until the switcher runs and removes the class. */
.js [data-view]:not([data-view="clear_win-500"]) {display: none;}
