/* Piece styles on top of viz-design-system 2.1.0 (tokens.css, kit/kit.css). Every colour comes from a token. */
/* Metric-matched local fallback for the body font (measured in Chrome: Public Sans is 1.0407 times as wide as Arial on the
   hero text), so the swap to Public Sans does not reflow the hero and shift the review points below it. */
@font-face {font-family: "Public Sans Fallback"; src: local("Arial"), local("Liberation Sans"), local("Helvetica"); size-adjust: 104.07%; ascent-override: 91.3%; descent-override: 22.1%; line-gap-override: 0%;}
:root {--viz-font-body: "Public Sans", "Public Sans Fallback", system-ui, sans-serif;}
body {background: var(--viz-background); color: var(--viz-foreground); font: var(--viz-type-body)/var(--viz-type-line-height) var(--viz-font-body);}
a {color: var(--viz-link);}
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, [tabindex]:focus-visible {outline: 3px solid var(--viz-focus); outline-offset: 3px;}
h1, h2, h3 {font-family: var(--viz-font-heading); font-optical-sizing: auto;}
main h2 {font-size: var(--viz-type-section); font-weight: 500; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .75rem; max-width: 40ch;}
main h3 {font-size: 1.25rem; font-weight: 600; line-height: 1.3; margin: 0 0 .5rem;}
p {max-width: 72ch; margin: 0 0 1rem;}
code {font-size: .9em;}
.block {margin-top: 3.25rem; scroll-margin-top: 1rem;}
#use {margin-bottom: 2rem;}
pre.prompt {white-space: pre-wrap; overflow-wrap: anywhere; max-width: 72ch; margin: 1rem 0 0; padding: 1rem; font-family: var(--viz-font-figures); font-size: .875rem; line-height: 1.55; background: var(--viz-panel); color: var(--viz-foreground); border: 1px solid var(--viz-rule); border-radius: 6px;}
.lede {color: var(--viz-muted); max-width: 70ch;}
.hint {font-size: var(--viz-type-small); color: var(--viz-muted);}
.subhead {margin-top: 2rem !important;}
section.hero .hero-dek {max-width: 50rem;}
table.kpis .kpi-unit {font-family: var(--viz-font-body); font-size: .5em; letter-spacing: 0; font-weight: 400; color: var(--viz-muted);}

/* Lead figure (D48): the first year at a glance. The SVG has no viewBox: positions are percentages of the plot width and
   text keeps its pixel size, so the drawing reflows instead of scaling. Three layouts of one drawing: wide from 1180 px,
   medium from 760 px, narrow below. The kit sets svg height:auto, so each layout's drawn height is pinned here (the page
   builder checks it). */
.lead-wrap {margin-top: 2.25rem;}
figure.lead-figure > figcaption {max-width: 46rem;}
figure.chart .chart-plot svg.timeline {max-width: none; width: 100%; overflow: visible; font-family: var(--viz-font-body); display: block;}
figure.tl {display: none; margin: 0;}
figure.tl + .chart-readout {display: none;}
svg .hit {fill: transparent;}
.metrics-cell {min-width: 0;}
figure.chart .chart-plot svg.timeline-wide {height: 364px;}
figure.chart .chart-plot svg.timeline-medium {height: 444px;}
figure.chart .chart-plot svg.timeline-narrow {height: 602px;}
svg.timeline text {font-size: 14px; fill: var(--viz-foreground);}
svg.timeline .tick {font-size: 12px; fill: var(--viz-muted); font-variant-numeric: tabular-nums;}
svg.timeline .q-head {font-size: 15px; font-weight: 600;}
svg.timeline .q-months {font-size: 13px; font-weight: 400; fill: var(--viz-muted);}
svg.timeline .q-label, svg.timeline .q-note {fill: var(--viz-muted);}
svg.timeline .q-note {font-size: 13px;}
svg.timeline .value {font-size: 13px; paint-order: stroke; stroke: var(--viz-surface); stroke-width: 4px; stroke-linejoin: round;}
svg.timeline .year-value {font-size: 15px; font-weight: 500;}
svg.timeline .range-to {fill: var(--viz-muted);}
svg.timeline .mark.neutral {fill: var(--viz-bar);}
svg.timeline .mark.highlight {fill: var(--viz-highlight);}
svg.timeline .grid {stroke: var(--viz-grid); stroke-width: 1;}
svg.timeline .axis {stroke: var(--viz-rule-strong); stroke-width: 1;}
svg.timeline .rail {stroke: var(--viz-rule-strong); stroke-width: 1.5;}
svg.timeline .node {fill: var(--viz-surface); stroke: var(--viz-rule-strong); stroke-width: 2;}
svg.timeline .node-year {fill: var(--viz-rule-strong);}
@media (min-width: 1180px) {figure.tl-wide, figure.tl-wide + .chart-readout {display: block;}}
@media (min-width: 760px) and (max-width: 1179px) {figure.tl-medium, figure.tl-medium + .chart-readout {display: block;}}
@media (max-width: 759px) {figure.tl-narrow, figure.tl-narrow + .chart-readout {display: block;}}

/* Phases */
.phases {display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1.5rem;}
/* One card scaffold for the phases and the hires (D48): surface, ruled top, a muted kicker, a Newsreader title, 16 px text,
   muted field labels, and a hairline between a card's summary and its fields. */
.phase, .role {background: var(--viz-surface); border: 1px solid var(--viz-rule); border-top: 2px solid var(--viz-rule-strong); border-radius: 0 0 6px 6px; padding: 1.15rem 1.35rem 1.3rem; min-width: 0;}
.phase-days, .hire-order {margin: 0 0 .3rem; font-size: var(--viz-type-label); letter-spacing: .04em; color: var(--viz-muted);}
.phase h3, .role h3 {margin: 0 0 .6rem;}
.phase p {font-size: 1rem; line-height: 1.55; margin-bottom: 0;}
.phase dl {margin: 1rem 0 0; padding-top: .1rem; border-top: 1px solid var(--viz-rule);}
.phase dt, .role dt {font-size: var(--viz-type-label); font-weight: 600; color: var(--viz-muted); margin-top: .75rem;}
.phase dd, .role dd {margin: .1rem 0 0; font-size: 1rem; line-height: 1.55;}
.callout {margin: 1.5rem 0 0; padding: .8rem 1rem; border-inline-start: 4px solid var(--viz-accent); background: var(--viz-surface); max-width: 72ch;}
ul.judge {padding-left: 1.2rem; max-width: 72ch; margin: 0;}
ul.judge li {margin: .35rem 0;}

/* Self-check */
.questions {display: grid; gap: .9rem; margin: 1.25rem 0;}
fieldset {min-width: 0; margin: 0; padding: .9rem 1.1rem 1rem; border: 1px solid var(--viz-rule); border-radius: 6px; background: var(--viz-surface);}
legend {padding: 0 .4rem; font-weight: 600; max-width: 100%;}
.choices {display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .35rem;}
.choice {display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: .4rem .9rem; border: 1px solid var(--viz-border); border-radius: 6px; cursor: pointer; background: var(--viz-panel);}
.choice:has(input:checked) {border-color: var(--viz-foreground); box-shadow: inset 0 0 0 1px var(--viz-foreground); font-weight: 600;}
.choice input {width: 18px; height: 18px; margin: 0; accent-color: var(--viz-accent);}
.buttons {display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center;}
button {font: inherit; font-weight: 600; cursor: pointer; min-height: 44px; padding: .5rem 1.1rem; border-radius: 6px; border: 1px solid var(--viz-foreground); background: var(--viz-foreground); color: var(--viz-background);}
button.secondary {background: transparent; color: var(--viz-foreground); border-color: var(--viz-border);}
button:disabled {opacity: .55; cursor: default;}
header.site button.theme-toggle {font-weight: 400; background: transparent; color: var(--viz-foreground); border-color: var(--viz-border);}
#suggestions {margin-top: 1.25rem; padding: 1.1rem 1.25rem; background: var(--viz-surface); border: 1px solid var(--viz-rule); border-inline-start: 4px solid var(--viz-accent); border-radius: 0 6px 6px 0;}
#suggestions[hidden] {display: none;}
#suggestions h3 {margin-top: 0;}
#suggestions li {margin: .6rem 0; max-width: 72ch;}
#hiring-hint {font-weight: 600;}
noscript p {padding: 1rem; border: 1px solid var(--viz-rule);}

/* MRR bridge */
.metrics-grid {display: grid; grid-template-columns: minmax(0, 28rem) minmax(0, 1fr); gap: 1.5rem; align-items: start; margin-top: 1.25rem;}
figure.chart .chart-plot svg.bridge {max-width: 420px;}
svg.bridge text {font-family: var(--viz-font-body);}
svg.bridge .b-name {font-size: 15px; font-weight: 600; fill: var(--viz-foreground);}
svg.bridge .b-sign {font-family: var(--viz-font-figures); font-size: 15px; font-weight: 500; fill: var(--viz-foreground);}
svg.bridge .b-def, svg.bridge .b-note {font-size: 12px; fill: var(--viz-muted);}
svg.bridge .b-total {fill: var(--viz-foreground);}
svg.bridge .b-gain {fill: var(--viz-gain);}
svg.bridge .b-loss {fill: var(--viz-loss);}
svg.bridge .b-link {stroke: var(--viz-border); stroke-width: 1; stroke-dasharray: 3 3;}
svg.bridge .b-axis {stroke: var(--viz-rule-strong); stroke-width: 1.5;}
.traps h3 {margin-top: 0;}
table.trap-table th[scope=row] {font-weight: 600; white-space: nowrap; vertical-align: top;}
table.trap-table td {vertical-align: top;}
table.data th[scope=row] {font-weight: 600;}
table.census {max-width: 36rem;}

/* Roadmap, budget, team, stop list, stakeholders */
table.data td.num .fig, table.data td.range {white-space: nowrap;}
table.data thead th.num {font-family: var(--viz-font-body); font-variant-numeric: normal;}
.table-scroll + p {margin-top: 1.25rem;}
table.data td, table.data th {vertical-align: top;}
.roadmap-table th[scope=row] .q-name, .roadmap-table th[scope=row] .q-months {display: block;}
.roadmap-table th[scope=row], .roadmap-table thead th.num {white-space: nowrap;}
.range-to {font-family: var(--viz-font-body); font-variant-numeric: normal; color: var(--viz-muted);}
.budget-table th[scope=row] {min-width: 9rem;}
.budget-table td.assumes {min-width: 15rem; width: 42%;}
.budget-table .spent {padding-left: 1.5rem;}
.budget-table thead th {vertical-align: bottom;}
.roadmap-table th[scope=row] .q-months {font-weight: 400; color: var(--viz-muted);}
.roadmap-table tfoot th, .roadmap-table tfoot td, .budget-table tfoot th, .budget-table tfoot td {font-weight: 600; border-bottom: 0;}
.budget-table tfoot tr:first-child th, .budget-table tfoot tr:first-child td, .roadmap-table tfoot th, .roadmap-table tfoot td {border-top: 1px solid var(--viz-rule-strong);}
.roadmap-table td:nth-child(2) {min-width: 16rem;}
.roles {list-style: none; padding: 0; display: grid; gap: 1rem; margin: 1.25rem 0 1.5rem;}
.role {display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1.5rem;}
.role dl {margin: 0;}
.role dt:first-child {margin-top: 0;}
ol.steps {padding-left: 1.4rem; margin: 0 0 1rem; max-width: 72ch;}
ol.steps li {margin: .4rem 0;}
.source-line {margin: 1.5rem 0 0; padding-left: 1rem; border-left: 2px solid var(--viz-rule-strong); font-size: var(--viz-type-small); max-width: 80ch;}
.source-line strong {font-weight: 600;}
#diagnose > p, #diagnose form, #diagnose noscript, #diagnose #suggestions {max-width: none;}
.two-col {display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem;}
.two-col ul {padding-left: 1.2rem; margin: 0 0 1rem;}
.two-col li {margin: .35rem 0;}
.two-col h3 {margin-top: .25rem;}
footer.site p {max-width: none;}
section.method details > *:not(summary) {max-width: 72ch;}
section.method details > .table-scroll {max-width: 36rem; margin-bottom: 1rem;}
section.method ul {padding-left: 1.2rem;}

/* Sections far below the first screen skip layout until scrolled near (they stay in the accessibility tree and in print). */
@media screen {#plan, #roadmap, #budget, #team, #metrics, #risks, #tools, #rollout, #worth, #ai, section.method {content-visibility: auto; contain-intrinsic-size: auto 1000px;}}

/* Glossary under "In plain words" (rollout-20261017) */
dl.glossary {display: grid; grid-template-columns: minmax(9rem, max-content) minmax(0, 1fr); gap: .4rem 1.25rem; max-width: 72ch; margin: 1.25rem 0 0;}
dl.glossary dt {font-weight: 600;}
dl.glossary dd {margin: 0; color: var(--viz-muted);}
ul.risks li {margin: .6rem 0;}
.traps details, #budget details {margin-top: .75rem;}
@media (max-width: 759px) {dl.glossary {grid-template-columns: minmax(0, 1fr); gap: .1rem;} dl.glossary dd {margin-bottom: .5rem;}}

@media (max-width: 959px) {
  .phases {grid-template-columns: minmax(0, 1fr);}
  .metrics-grid {grid-template-columns: minmax(0, 1fr);}
}
@media (max-width: 759px) {
  .role, .two-col {grid-template-columns: minmax(0, 1fr); gap: .75rem;}
  .choice {padding: .4rem .7rem;}
  fieldset {padding: .75rem .8rem .9rem;}
  table.trap-table thead, table.stack-table thead {position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);}
  table.trap-table, table.trap-table tbody, table.trap-table tr, table.trap-table th, table.trap-table td,
  table.stack-table, table.stack-table tbody, table.stack-table tfoot, table.stack-table tr, table.stack-table th, table.stack-table td {display: block;}
  table.stack-table caption {display: block;}  /* a visible caption spans the stacked table, not one narrow column */
  table.trap-table tr, table.stack-table tr {padding: .6rem 0; border-bottom: 1px solid var(--viz-rule);}
  table.trap-table th[scope=row], table.trap-table td, table.stack-table th, table.stack-table td {border: 0 !important; padding: .15rem 0; white-space: normal; text-align: left !important;}
  table.trap-table td::before, table.stack-table td[data-label]::before {content: attr(data-label); display: block; font-size: var(--viz-type-label); color: var(--viz-muted);}
  table.stack-table td[aria-hidden=true] {display: none;}
  table.stack-table td[data-label]::before {font-family: var(--viz-font-body); font-variant-numeric: normal;}
  .roadmap-table td:nth-child(2) {min-width: 0;}
  .block {margin-top: 2.5rem;}
  .phase, .role {padding: 1rem 1rem 1.1rem;}
}

@media print {
  @page {size: A4; margin: 15mm;}
  body {font-size: 10pt; line-height: 1.45;}
  header.site nav, .buttons, noscript, .kit-skip {display: none;}
  header.site .site-row {min-height: 0; padding-block: 0 .4rem;}
  section.hero {padding-block: .5rem .5rem;}
  section.hero h1 {font-size: 24pt; max-width: none;}
  main h2 {font-size: 16pt; break-after: avoid;}
  main h3 {font-size: 12pt; break-after: avoid;}
  .block {margin-top: 1.2rem;}
  .phases {grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem;}
  .phase {padding: .6rem .7rem; break-inside: avoid;}
  .phase p, .phase dd, .role dd {font-size: 9pt;}
  .table-scroll {overflow: visible; background: none;}
  .roadmap-table th[scope=row], .roadmap-table thead th.num {white-space: normal;}
  .budget-table td.assumes {min-width: 0;}
  .metrics-grid {grid-template-columns: minmax(0, 1fr);}
  figure.chart {break-inside: avoid;}
  figure.chart .chart-plot svg.bridge {max-width: 95mm;}
  details.chart-data {display: none;}
  .traps, .role, fieldset, #suggestions, .source-line, table.data tr {break-inside: avoid;}
  .questions {gap: .3rem; margin: .5rem 0;}
  fieldset {padding: .3rem .6rem .45rem;}
  .choice {min-height: 0; padding: .1rem .5rem;}
  .choice input {width: 11px; height: 11px;}
  .role {grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); padding: .6rem .7rem;}
  .two-col {grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);}
  table.trap-table th[scope=row] {white-space: normal;}
  section.method details {border: 0;}
  section.method summary {min-height: 0; padding: .3rem 0;}
  section.method details > summary::before {content: none;}
  a {color: inherit;}
  #suggestion-heading:focus {outline: none;}
  footer.site {margin-top: 1rem; padding-block: .5rem 0;}
  footer.site a {min-height: 0;}
}
