/* Wrap whole category labels onto separate rows on narrow article headers. */
@media (max-width: 999px) {
    body.single-post .featured-media-under-header__cat-wrap > .meta-category {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 15px;
    }

    body.single-post .featured-media-under-header__cat-wrap > .meta-category > a {
        margin: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
    }
}

/* Classic article table figures use block class names without loading core/table.css. */
body.single-post .post-content figure.wp-block-table {
    max-width: 100%;
    overflow-x: auto;
    margin-block-end: 1.35em;
}

body.single-post .post-content figure.wp-block-table > table {
    margin-block-end: 0;
}

body.single-post .post-content figure.wp-block-table > figcaption {
    margin-block-start: 0.5em;
    color: #505050;
    font-size: 0.8em;
    line-height: 1.45;
}

/* Give consecutive questions and the following section room to breathe. */
body.single-post .post-content .schema-faq {
    margin-block-end: 1.25em;
}

body.single-post .post-content .schema-faq .schema-faq-section + .schema-faq-section {
    margin-block-start: 1rem;
}

/* Match paragraph links in the classic lists authored in articles. */
body.single-post .post-content .content-inner :where(ul:not([class]), ol:not([class])) > li > a[href]:not(:where(nav *, .est-calc *, [class], [role="button"], :has(img, picture, svg))) {
    text-decoration-line: underline;
}

/* Long words and literal URLs should fit narrow reading columns. */
@media (max-width: 690px) {
    body.single-post .post-content .content-inner > :is(p, ul, ol, blockquote) {
        overflow-wrap: anywhere;
    }
}
