/* The story's counts (2026-11-07, D-125; js/counts.js): after the visitor's own choice, a small slip of paper under the
   consequence says what others chose at this fork. The site's paper (site.css): paper on the table under the lamp, set
   slightly askew like the laid card; every word at 16 px or more (S-15); the visitor's own row marked in words ("Your
   choice"), by weight and by a darker strip, never by colour alone. No animation here: the slip's opening is
   js/counts.js's, and only when motion is allowed. Nothing flashes.
   The type pass (2026-11-12, docs/design/TYPE.md): the slip is the record (counted, not imagined), so it speaks in the
   record's voice throughout; its sizes are site.css's scale. */
.counts-wrap { display: block; }
.counts-slip { max-width: 32em; padding: 13px 18px 12px; display: flex; flex-direction: column; gap: 9px; transform: rotate(0.45deg); box-shadow: var(--paper-shadow-s); }
.counts-h { margin: 0; font-family: var(--record); font-weight: 700; font-size: var(--fs-small); line-height: 1.3; color: var(--ink-soft); }

/* every choice of the fork, with its whole percentage, and a strip of paper as long as its share. Every class is the
   slip's own (the page's top bar is ".bar") */
.counts-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
/* a wide window: the label, its strip and its percentage on one line, every strip the same length */
.counts-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(5em, 30%) 3.4em; column-gap: 12px; row-gap: 3px; align-items: center; }
.counts-lab { grid-column: 1; grid-row: 1; font-size: var(--fs-small); line-height: 1.3; min-width: 0; }
.counts-yours { display: inline-block; margin-left: 8px; padding: 0 6px; border: 1.5px solid currentColor; border-radius: var(--radius); font-size: var(--fs-small); font-weight: 700; line-height: 1.35; color: var(--ink-brown); white-space: nowrap; transform: rotate(-1deg); vertical-align: 1px; }
.counts-pct { grid-column: 3; grid-row: 1; font-family: var(--record); font-size: var(--fs-small); font-variant-numeric: tabular-nums; color: var(--ink-soft); text-align: right; }
.counts-strip { grid-column: 2; grid-row: 1; display: block; height: 6px; border-radius: 3px; background: rgba(84, 71, 58, 0.17); overflow: hidden; }
.counts-strip > span { display: block; height: 100%; border-radius: 3px; background: rgba(84, 71, 58, 0.55); }
.counts-mine .counts-name { font-weight: 700; }
.counts-mine .counts-pct { color: var(--ink); font-weight: 700; }
.counts-mine .counts-strip > span { background: var(--ink-brown); }

/* the slip's own line: the share that chose the same (or "too few"), with the total after it, which wraps whole */
.counts-same, .counts-few { margin: 0; line-height: 1.35; }
.counts-p, .counts-few { font-family: var(--record); font-weight: 700; font-size: var(--fs-body); }
.counts-total { display: inline-block; font-size: var(--fs-small); font-weight: 400; color: var(--ink-soft); }
.counts-off { margin: 0; font-size: var(--fs-small); line-height: 1.4; text-wrap: balance; }
.counts-slip p { text-wrap: pretty; }

/* the note and the switch, under a torn-paper rule like a slip's foot */
.counts-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; padding-top: 9px; border-top: 1.5px dashed var(--paper-edge); }
.counts-slip.off { max-width: 27em; }
.counts-slip.off .counts-foot { border-top: 0; padding-top: 0; justify-content: flex-start; }
.counts-note { margin: 0; font-size: var(--fs-small); line-height: 1.4; color: var(--ink-soft); }
.counts-switch { padding: 6px 14px; }

/* a phone, or any upright window: the slip takes the column's width, and each strip runs under its label */
html.narrow .counts-slip { max-width: none; transform: rotate(0.3deg); }
html.narrow .counts-list li { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; }
html.narrow .counts-pct { grid-column: 2; }
html.narrow .counts-strip { grid-column: 1 / -1; grid-row: 2; }
