
/* Disable the bottom margin for paragraphs in a WYSIWYG editor */
.component-basic-copy :where(.content-wrap > p:last-of-type) {
    margin-block-end: 0;
}

/*
Restore top spacing above in-copy headings (H3–H6 entered in the WYSIWYG). The global
`p + heading` / `ul + heading` rule in core/css/105-headers.css zeroes the heading's
top margin whenever it follows body text, which collapsed the gap editors expect above
a heading. Scoped to basic copy so the global normalization is left intact elsewhere.
*/
.component-basic-copy .content-wrap :where(p, ul, ol) + :where(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6) {
    margin-block-start: 1.5rem;
}

.component-basic-copy.documentation-example .content-wrap > :where(*):first-child {
    padding-block-start: 1em;
    margin-block: 0;
}

@media print {
    .component-basic-copy {
        page-break-inside: auto;
        break-inside: auto;
    }
}
