/* CSEiRO Edytor 0.7.1 — scoped frontend correction for extra sections.
   Does not modify any original section of the imported designs. */

/* Gutenberg's is-layout-constrained rules narrow direct children, unless they
   carry the alignfull class. Prevent remaining max-width rules or group margins
   from constraining the inserted wrapper. */
.cseiro-page-content .cse-v07-addon-page.alignfull {
    display:block !important;
    clear:both;
    box-sizing:border-box;
    min-width:0;
    max-width:none !important;
    width:100% !important;
    flex:0 0 100%;
    margin:0 !important;
    padding:0 !important;
    overflow:visible;
}

/* Keep the section itself edge-to-edge; its INNER content remains centred at
   the original builder width, providing normal comfortable reading margins. */
.cseiro-page-content .cse-v07-addon-page .cse-v06-section {
    box-sizing:border-box;
    display:block;
    width:100% !important;
    max-width:none !important;
    min-width:0;
    margin:0 !important;
    isolation:isolate;
}
.cseiro-page-content .cse-v07-addon-page .cse-v06-inner {
    display:block;
    box-sizing:border-box;
    width:100%;
    max-width:1210px;
    margin-inline:auto;
    min-width:0;
}

/* The quote element alone has a decorative opening mark, max text length,
   and enlarged type. The SECTION always occupies the whole viewport width. */
.cseiro-page-content .cse-v06-page .cse-v06-section.cse-v06-quote-section {
    background:#482537;
    color:#fff;
    font-size:inherit;
    max-width:none !important;
    width:100% !important;
    text-align:left;
}
.cseiro-page-content .cse-v06-page .cse-v06-quote-section::before,
.cseiro-page-content .cse-v06-page .cse-v06-quote-section::after {
    content:none !important;
}
.cseiro-page-content .cse-v06-page .cse-v06-quote-section .cse-v06-quote {
    font-size:clamp(36px,4.4vw,64px);
    line-height:1.16;
    max-width:1030px;
    margin:0 0 30px;
    color:#fff;
    overflow-wrap:break-word;
}
.cseiro-page-content .cse-v06-page .cse-v06-quote-section .cse-v06-lead {
    color:#f4d8b5;
}

/* WP and template rules sometimes apply max-width / flex sizing to nested
   generic groups and their descendants. The card GRID should fill the builder
   content column, not shrink to an arbitrary width. */
.cseiro-page-content .cse-v07-addon-page .cse-v06-cards {
    width:100%;
    max-width:none;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:clamp(14px,1.6vw,22px);
}
.cseiro-page-content .cse-v07-addon-page .cse-v06-card {
    min-width:0;
    overflow-wrap:anywhere;
}
.cseiro-page-content .cse-v07-addon-page .cse-v06-card h3 {
    overflow-wrap:anywhere;
}

@media(max-width:900px) {
    .cseiro-page-content .cse-v07-addon-page .cse-v06-cards {
        grid-template-columns:1fr;
        gap:15px;
    }
}
@media(max-width:600px) {
    .cseiro-page-content .cse-v07-addon-page .cse-v06-section {
        padding:54px 20px;
    }
    .cseiro-page-content .cse-v06-page .cse-v06-quote-section .cse-v06-quote {
        font-size:clamp(33px,9vw,49px);
    }
}

/* v0.7.2 — definitive cards fix: the outer SECTION must remain a block.
   The cards grid belongs exclusively to the nested `.cse-v06-cards` div.
   Narrow content must never break headings in the middle of a word. */
.cseiro-page-content .cse-v06-page .cse-v06-section.cse-v06-cards-section {
    display:block !important;
    grid-template-columns:none !important;
    width:100% !important;
    max-width:none !important;
}
.cseiro-page-content .cse-v07-addon-page .cse-v06-cards-section > .cse-v06-inner {
    width:100%;
    max-width:1210px;
    margin-inline:auto;
}
.cseiro-page-content .cse-v07-addon-page .cse-v06-card h3 {
    overflow-wrap:normal;
    word-break:normal;
    hyphens:auto;
}
