/* PaperWeb layout rules (owner, 2026-10-14: no orphans anywhere; AGENTS.md "Layout rules").
   Linked first on every page, so any page rule wins (every selector here is :where(), 0 specificity).
   Copies: w/css/balance.css (weather) and mailcheck/www/css/balance.css, kept identical by
   tools/test_consistency.py. /js/balance.js does what CSS cannot (short paragraphs that still end
   on a runt, wrapped rows of chips, card grids whose last row would hold one card).

   1 text: short text (headings, labels, chips, captions, cards, cells) is balanced, so no line
     is left with one word; running text (p, li, dd, blockquote) is pretty, which keeps a lone word
     off its last line without narrowing the paragraph. text-wrap-style, never the text-wrap
     shorthand: it leaves a page's nowrap alone. */
:where(html){text-wrap-style:balance}
:where(p,li,dd,blockquote,pre){text-wrap-style:pretty}
/* balance.js marks a block that still ends on a runt: balanced (up to six lines), pretty past that */
.bal-t{text-wrap-style:balance!important}
.bal-p{text-wrap-style:pretty!important}
/* 2 rows: balance.js breaks a wrapping row of chips into even lines with these; a break carries the
   row gap, the row's own gap is off while it is balanced */
.bal-br{flex-basis:100%;width:0;margin:0;padding:0;border:0}
