/* Balance short display text, including post titles on listing pages. */
main h1,
main h2,
main h3,
main h4,
main h5,
main h6 {
    text-wrap: balance;
}

/* Browsers without pretty retain their normal wrapping; the JS fallback below
   only joins the final two words when it detects a one-word last line. */
main p,
main li,
main dt,
main dd,
main figcaption {
    text-wrap: pretty;
}

/* Keep section introductions consistent with other prose. */
main > header p {
    text-wrap: pretty;
}

/* Reset only the wrapping style, preserving white-space and wrapping modes.
   Keep controls, metadata, code and explicitly opted-out content unchanged. */
main pre,
main pre *,
main code,
main kbd,
main samp,
main textarea,
main nav,
main nav *,
main .post-meta,
main .post-meta *,
main [contenteditable],
main [contenteditable] *,
main .wrap-normal,
main .wrap-normal * {
    text-wrap-style: auto;
}
