/* Piece styles on top of viz-design-system 2.2.1 (tokens.css, kit/kit.css, kit/takeaway.css, kit/wayfinding.css). Every colour comes from a token. */
main h2 {font-size: var(--viz-type-section); font-weight: 500; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .75rem;}
main h3 {font-size: 1.2rem; font-weight: 600; line-height: 1.3; margin: 1.25rem 0 .4rem;}
p, li, dd {max-width: 72ch;}
.block {margin-top: 3rem;}
.lede {color: var(--viz-muted); max-width: 66ch;}
.kpi-unit {font-family: var(--viz-font-body); font-size: .5em; letter-spacing: 0; font-weight: 400; color: var(--viz-muted);}
table.kpis {table-layout: fixed;}
.kpi-caption {font-size: var(--viz-type-label); color: var(--viz-muted); margin: 1.25rem 0 0;}
@media (max-width: 759px) {table.kpis tbody td {display: grid; grid-row: span 3; grid-template-rows: subgrid; align-content: start;}}
table.data th.num-head, table.data td.num {text-align: right;}
table.data th, table.data td {vertical-align: top;}
.bars-figure {max-width: 860px; margin: 1.5rem 0 0;}
.bars-figure figcaption {margin-bottom: .5rem;}
ol.bars {list-style: none; margin: .25rem 0 0; padding: 0; display: grid; gap: .55rem;}
.bar-row {display: grid; grid-template-columns: 13.5rem minmax(0, 1fr) 7rem; align-items: center; gap: .75rem;}
.bar-label {font-size: var(--viz-type-small);}
.bar-note {color: var(--viz-muted); font-weight: 400;}
.bar-track {display: block; height: 22px; background: var(--viz-track); border-radius: 2px;}
.bar {display: block; height: 100%; background: var(--viz-bar); border-radius: 2px;}
.is-base .bar {background: var(--viz-highlight);}
.is-base .bar-label {font-weight: 600;}
.bar-value {text-align: right; font-weight: 500;}
@media (max-width: 759px) {
  .bar-row {grid-template-columns: minmax(0, 1fr) 6.5rem; gap: .2rem .6rem;}
  .bar-label {grid-column: 1 / -1;}
}
.iv-figure {max-width: 860px; margin: 1.5rem 0 0;}
.iv-figure figcaption {margin-bottom: .5rem;}
.iv-head {margin: 1.1rem 0 .35rem;}
ol.ivs {list-style: none; margin: .25rem 0 .5rem; padding: 0; display: grid; gap: .55rem;}
.iv-row {display: grid; grid-template-columns: 13.5rem minmax(0, 1fr) 7.5rem; align-items: center; gap: .75rem;}
.iv-track {position: relative; display: block; height: 22px; background: var(--viz-track); border-radius: 2px;}
.iv-zero {position: absolute; top: 0; bottom: 0; width: 1px; background: var(--viz-rule-strong);}
.iv-ci {position: absolute; top: 10px; height: 2px; background: var(--viz-bar);}
.iv-dot {position: absolute; top: 5px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--viz-bar);}
.is-base .iv-ci, .is-base .iv-dot {background: var(--viz-highlight);}
.iv-ci-text {display: block; font-size: var(--viz-type-small); color: var(--viz-muted); font-weight: 400;}
@media (max-width: 759px) {
  .iv-row {grid-template-columns: minmax(0, 1fr) 7rem; gap: .2rem .6rem;}
  .iv-row .bar-label {grid-column: 1 / -1;}
}
dl.glossary {display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; max-width: 72ch; margin: 1rem 0 0;}
dl.glossary dt {font-weight: 600;}
dl.glossary dd {margin: 0;}
.callout {border-left: 3px solid var(--viz-rule-strong); padding: .25rem 0 .25rem 1rem; max-width: 72ch;}
.plain-list {padding-left: 1.4rem; max-width: 72ch;}
.plain-list li {margin: .7rem 0;}
pre.prompt {max-width: 80ch; margin: 0; padding: .75rem; border: 1px solid var(--viz-rule); border-radius: 4px; background: var(--viz-background); font: 13px/1.5 var(--viz-font-figures); white-space: pre-wrap; overflow-wrap: anywhere;}
.workflow {max-width: 72ch;}
.table-scroll {overflow-x: auto; max-width: 760px; container-type: inline-size;}
.caption-fit {display: block; position: sticky; left: 0; max-width: 100cqw;}
code {font-family: var(--viz-font-figures); font-size: .9em;}
@media (max-width: 759px) {dl.glossary {grid-template-columns: 1fr;} dl.glossary dd {margin-bottom: .5rem;}}
@media print {
  @page {size: A4; margin: 15mm;}
  body {font-size: 10pt; line-height: 1.45;}
  header.site nav, .kit-skip {display: none;}
  a {color: inherit;}
  h2, h3, dt, caption {break-after: avoid;}
  figure.chart, tr {break-inside: avoid;}
  .table-scroll {overflow: visible;}
}
