/*
====================================================================
 AMSODE — C2-D R4 / VISUAL MIRROR
 Chapter 04 English mirrors French Chapter 04.
 This file contains only compatibility hardening; the visual language
 itself comes from the existing French phase12f2.css.
====================================================================
*/

/* Keep the English mirror inside the existing FR04 geometry. */
body.en-r4-mirror .p4-container,
body.en-r4-mirror #bk-04 .p4-container {
    min-width: 0;
}

body.en-r4-mirror .p4-section-head > *,
body.en-r4-mirror .p4-type-card,
body.en-r4-mirror .p4-info-card,
body.en-r4-mirror .p4-swatch-card {
    min-width: 0;
}

body.en-r4-mirror .p4-subnav {
    flex-wrap: wrap;
}

body.en-r4-mirror .p4-section-head h2,
body.en-r4-mirror .p4-section-head p,
body.en-r4-mirror .p4-type-card p,
body.en-r4-mirror .p4-info-card p,
body.en-r4-mirror .p4-swatch-details p {
    overflow-wrap: break-word;
}

/* User decision: no decorative blue border on content titles. */
body.en-r4-mirror #bk-04 .bk-chapter-heading,
body.en-r4-mirror #bk-04 .bk-sourced,
body.en-r4-mirror .p4-hero,
body.en-r4-mirror .p4-section-head h2 {
    border-left: 0 !important;
}

/* Do not allow old English chapter styles to reintroduce title boxes. */
body.bk-en-reader.en-r4-mirror #bk-04 .p4-section-head h2,
body.bk-en-reader.en-r4-mirror #bk-04 .p4-section-head h3 {
    background: transparent !important;
    box-shadow: none !important;
}

@media screen and (max-width: 720px) {
    body.en-r4-mirror .p4-subnav {
        gap: 8px;
    }

    body.en-r4-mirror .p4-section-head,
    body.en-r4-mirror .p4-swatch-grid,
    body.en-r4-mirror .p4-type-grid {
        min-width: 0;
    }
}

@media print {
    body.en-r4-mirror .p4-copy {
        display: none !important;
    }
}
