/*
  /proof: the parts only this page has. Shared reading-page styles (hero, contents, tables, code) are in qz-doc.css, the system in qz.css.
  Tokens only; the one off-scale length is named here once.
*/
:root {
  --proof-bar-h: 0.75rem;
}

/* Hero: the split with the live figures, then the contents row. */
.proof-hero { display: grid; gap: var(--space-8); }
.proof-live-wrap { display: grid; gap: var(--space-3); justify-items: start; min-width: 0; }
.proof-live-wrap .doc-meta { max-width: 26rem; }
@media (min-width: 48rem) { .proof-live-wrap { justify-items: end; } }
.proof-live .qz-crt__label { margin: 0; font: inherit; }
/* The status line changes when the live read lands. Two lines are reserved so the card never changes height. */
.proof-live__status { min-block-size: calc(2 * var(--text-body-line) * 1em); margin: 0; }

.doc-table--counts td { font-variant-numeric: tabular-nums; }
.doc-flow h3 { margin-block-start: var(--space-4); }

/* Tier distribution: one bar per tier, the length is the machine count. */
.tier-bars { display: grid; gap: var(--space-3); max-width: var(--measure); }
.tier-bars li { display: grid; grid-template-columns: 6rem minmax(0, 1fr) 4rem; align-items: center; gap: var(--space-3); }
.tier-name { font-weight: 600; }
.tier-count { text-align: end; font-variant-numeric: tabular-nums; color: var(--color-ink-muted); }
.bar { display: block; inline-size: 100%; block-size: var(--proof-bar-h); border-radius: var(--radius-sm); }
.bar-back { fill: var(--color-sunk); }
.bar-fill { fill: var(--color-accent); }

/* Machine renders: one slab each, the render square, the caption under it. */
.renders { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr)); gap: var(--space-4); max-width: none; }
.proof-render { padding: var(--space-3); }
.proof-render figure { display: grid; gap: var(--space-3); margin: 0; min-width: 0; }
.proof-render img { aspect-ratio: 1; object-fit: cover; outline: var(--border-hair) solid color-mix(in oklab, black 10%, transparent); outline-offset: calc(-1 * var(--border-hair)); }
.proof-render figcaption { display: grid; gap: var(--space-1); padding-inline: var(--space-1); font-size: var(--text-caption-size); line-height: var(--text-caption-line); }
.proof-render figcaption strong { font-weight: 600; }
.proof-render figcaption .doc-sub { margin: 0; overflow-wrap: anywhere; }
