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

/* The chart: each decision's lead under its rule. Two layouts of one drawing, each in its own figure so the hover
   readout follows the layout on screen. */
figure.ar {display: none; margin: 0;}
figure.ar + .chart-readout {display: none;}
@media (min-width: 760px) {figure.ar-wide, figure.ar-wide + .chart-readout {display: block;}}
@media (max-width: 759px) {figure.ar-narrow, figure.ar-narrow + .chart-readout {display: block;}}
figure.chart .chart-plot svg.abars {width: 100%; height: auto; display: block; overflow: visible; font-family: var(--viz-font-body);}
figure.chart .chart-plot svg.abars-wide {max-width: 820px;}
figure.chart .chart-plot svg.abars-narrow {max-width: 420px;}
svg.abars .tick {font-size: 12px; fill: var(--viz-muted); font-variant-numeric: tabular-nums;}
svg.abars .axis-label {font-size: 13px; fill: var(--viz-muted);}
svg.abars .grid {stroke: var(--viz-grid); stroke-width: 1;}
svg.abars .zero {stroke: var(--viz-rule-strong); stroke-width: 1.5;}
svg.abars .hit {fill: transparent;}
svg.abars .range.flips {fill: var(--viz-categorical-2);}
svg.abars .range.holds {fill: var(--viz-categorical-1);}
svg.abars .dot {fill: var(--viz-foreground); stroke: var(--viz-surface); stroke-width: 2;}
svg.abars .cat {font-size: 14px; fill: var(--viz-foreground);}
svg.abars-narrow .cat {font-size: 13px;}

/* The worked record, as the code prints it */
pre.record {white-space: pre-wrap; overflow-wrap: anywhere; margin: .75rem 0 1rem; 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; max-width: 72rem;}
ul.record-links {margin: .5rem 0 0; padding-left: 1.2rem;}
ul.record-links li {margin: .2rem 0;}

/* Tables */
table.lead-table td, table.flip-table td {min-width: 8rem;}
table.lead-table td.num, table.fit-table td.num, table.flip-table td.num {white-space: nowrap;}
table.fit-table td.over {font-weight: 600; color: var(--viz-loss);}
table.grid-table td {font-size: var(--viz-type-small); min-width: 5rem;}
#seen, #evidence, #example, #flips, #fit, #rollout, #standards, #limits, #ai, section.method {content-visibility: visible;}
.standards {grid-template-columns: minmax(0, 1fr);}

table.fit-table th[scope=row] {min-width: 12rem;}
@media (max-width: 759px) {
  table.stack-table caption {display: block;}
  table.fit-table th[scope=row] {min-width: 9rem;}
  table.lead-table td, table.flip-table td, table.grid-table td {min-width: 0;}
  table.lead-table td.num, table.fit-table td.num, table.flip-table td.num {white-space: normal;}
}
@media print {
  figure.ar-wide {display: block;}
  figure.ar-narrow {display: none;}
  pre.record {break-inside: avoid;}
}
