/* team-operating-model.html only, on top of tokens.css, kit.css, style.css and operating.css. Every colour comes from a token. */

/* The chart: hours lost per arm. Two layouts of one drawing, each in its own figure so the hover readout follows the
   layout on screen. */
figure.tm {display: none; margin: 0;}
figure.tm + .chart-readout {display: none;}
@media (min-width: 760px) {figure.tm-wide, figure.tm-wide + .chart-readout {display: block;}}
@media (max-width: 759px) {figure.tm-narrow, figure.tm-narrow + .chart-readout {display: block;}}
figure.chart .chart-plot svg.tbars {width: 100%; height: auto; display: block; overflow: visible; font-family: var(--viz-font-body);}
figure.chart .chart-plot svg.tbars-wide {max-width: 820px;}
figure.chart .chart-plot svg.tbars-narrow {max-width: 420px;}
svg.tbars .tick {font-size: 12px; fill: var(--viz-muted); font-variant-numeric: tabular-nums;}
svg.tbars .axis-label {font-size: 13px; fill: var(--viz-muted);}
svg.tbars .grid {stroke: var(--viz-grid); stroke-width: 1;}
svg.tbars .hit {fill: transparent;}
svg.tbars .range.off {fill: var(--viz-categorical-1); opacity: .45;}
svg.tbars .range.on {fill: var(--viz-categorical-2); opacity: .45;}
svg.tbars .dot.off {fill: var(--viz-categorical-1); stroke: var(--viz-surface); stroke-width: 2;}
svg.tbars .dot.on {fill: var(--viz-categorical-2); stroke: var(--viz-surface); stroke-width: 2;}
svg.tbars .cat {font-size: 14px; fill: var(--viz-foreground);}
svg.tbars-narrow .cat {font-size: 13px;}
.swatch.off {background: var(--viz-categorical-1);}
.swatch.on {background: var(--viz-categorical-2);}
p.chart-source {font-size: var(--viz-type-small); color: var(--viz-muted); margin: .5rem 0 0;}

/* Tables */
table.arms-table td, table.leaver-table td, table.practice-table td {min-width: 7rem;}
table.arms-table td.num, table.leaver-table td.num, table.sweep-table td.num {white-space: nowrap;}
table.owner-table td.num {min-width: 9rem;}
table.sweep-table td {font-size: var(--viz-type-small);}
table.triage-table td:nth-child(2), table.practice-table td:nth-child(2), table.practice-table td:nth-child(3) {min-width: 14rem;}
#seen, #triage, #evidence, #when, #leaver, #oneteam, #standards, #limits, #ai, section.method {content-visibility: visible;}
.standards {grid-template-columns: minmax(0, 1fr);}

@media (max-width: 759px) {
  table.stack-table caption {display: block;}
  table.arms-table td, table.leaver-table td, table.practice-table td, table.owner-table td.num {min-width: 0;}
  table.arms-table td.num, table.leaver-table td.num, table.sweep-table td.num {white-space: normal;}
  table.triage-table td:nth-child(2), table.practice-table td:nth-child(2), table.practice-table td:nth-child(3) {min-width: 0;}
}
@media print {
  figure.tm-wide {display: block;}
  figure.tm-narrow {display: none;}
}

/* The plain question above the h1, the standing line after the ranking, a visible KPI caption. */
section.hero p.hero-question {margin: 1rem 0 0; max-width: 72ch; font-size: 1.1rem; color: var(--viz-muted);}
section.hero p.standing {margin: .5rem 0; max-width: 72ch;}
section.hero table.kpis caption {caption-side: top; text-align: left; padding: 0 0 .4rem; font-size: var(--viz-type-label); color: var(--viz-muted);}
