/* Shared content safeguards; Theme Setup variables are added inline. Low specificity leaves block controls editable. */
:where(.wp-block-table){overflow-x:auto}
:where(.wp-block-table:not(.is-style-mn-register) table){min-width:320px}
:where(.wp-block-code,.wp-block-preformatted){overflow-x:auto;max-width:100%;white-space:pre}
:where(.wp-block-cover){overflow:hidden}
:where(.wp-block-gallery){gap:12px}
:where(.wp-block-image figcaption,.wp-element-caption){line-height:1.45}
:where(.wp-block-image img){height:auto}
:where(.wp-block-pullquote){border-block:1px solid currentColor;padding:2rem 0}
:where(.wp-block-separator){margin-block:2.5rem}
:where(.wp-block-details){border-block-end:1px solid var(--wp--preset--color--rule);padding-block:1rem}
:where(.wp-block-details summary){cursor:pointer}
:where(.wp-block-post-content a,.wp-block-comment-content a){text-decoration:underline}
:where(.wp-block-post-content iframe,.wp-block-post-content video){max-width:100%}
:where(.wp-block-site-logo img){max-width:100%;height:auto}
:where(.wp-block-post-title,.wp-block-heading){overflow-wrap:break-word}
/* Content robustness: long unbroken words wrap inside titles, previous/next links and menu labels instead of widening the page; classic [caption] figures keep their images inside the column. */
:where(.wp-block-post-title,.wp-block-post-title a,.wp-block-query-title,.wp-block-post-navigation-link,.wp-block-post-navigation-link a,.wp-block-navigation-item__label,.wp-block-navigation-item__content){overflow-wrap:anywhere;min-width:0}
:where(.wp-block-post-content,.wp-block-post-excerpt,.wp-block-comment-content){overflow-wrap:break-word}
:where(.wp-caption){max-width:100%}
.wp-caption.wp-caption{max-width:min(100%,var(--wp--style--global--content-size,100%))}
:where(.wp-caption img){max-width:100%;height:auto}

/* Classic <pre> blocks (no block class) in post content and comments scroll inside the column instead of widening the page. */
:where(.wp-block-post-content pre,.wp-block-comment-content pre){overflow-x:auto;max-width:100%}
/* Page links on posts split with <!--nextpage-->: one wrapping row after the text, in the theme's own link style. */
:where(.post-nav-links){display:flex;flex-wrap:wrap;align-items:baseline;gap:.35rem .9rem;margin-block-start:2rem}
