/* MLE shared page width. Full-bleed sections and component-internal widths stay intact. */
:root {
    --mle-page-gutter: 24px;
    --mle-page-width: min(var(--mle-container), calc(100% - var(--mle-page-gutter) - var(--mle-page-gutter)));
}
@media (max-width: 767px) {
    :root { --mle-page-gutter: 16px; }
}

/* Real template containers only: do not resize cards, dialogs, menus, or media. */
body:not(.wp-admin) #main.mle-main :is(
    .mle-container,
    .mle-product-container,
    .mle-product-category-list,
    .mle-news-panel-wrap,
    .mle-news-sheet,
    .mle-contact-container,
    .mle-download-panel,
    .mle-download-quote-inner,
    .mle-faq-surface,
    .mle-news-hero-content,
    .mle-news-banner-inner,
    .mle-contact-hero-content,
    .mle-faq-banner-inner
),
body:not(.wp-admin) #main.mle-product-detail .mle-product-container,
body.home #main.mle-main.mle-home .mle-container,
body:not(.wp-admin) .mle-header .mle-header-inner,
body:not(.wp-admin) .mle-footer .mle-container {
    box-sizing: border-box;
    width: var(--mle-page-width);
    max-width: var(--mle-container);
    min-width: 0;
    margin-inline: auto;
}

/* The download list already lives inside its padded page panel. */
body:not(.wp-admin) .mle-download-panel .mle-download-panel-inner {
    width: 100%;
    max-width: none;
}

/* The inquiry backgrounds remain full-bleed; align the two inner columns to the
   shared page edges without enlarging the existing compact Fluent Forms form. */
body.home #main.mle-main .mle-inquiry-faq-grid {
    container-type: inline-size;
}
@media (min-width: 801px) {
    body.home #main.mle-main .mle-inquiry-column {
        padding-inline-start: max(var(--mle-page-gutter), calc((100vw - var(--mle-container)) / 2));
        padding-inline-end: 40px;
        justify-content: flex-start;
    }
    body.home #main.mle-main .mle-faq-column {
        padding-inline-start: 40px;
        padding-inline-end: max(var(--mle-page-gutter), calc((100vw - var(--mle-container)) / 2));
    }
    body.home #main.mle-main .mle-faq-inner { margin-inline-start: auto; }
    @supports (width: 1cqw) {
        body.home #main.mle-main .mle-inquiry-column {
            padding-inline-start: max(var(--mle-page-gutter), calc((100cqw - var(--mle-container)) / 2));
        }
        body.home #main.mle-main .mle-faq-column {
            padding-inline-end: max(var(--mle-page-gutter), calc((100cqw - var(--mle-container)) / 2));
        }
    }
}

/* Match the FAQ width to the quote form so their gaps to the center split are
   equal. The mirrored column padding above also keeps narrower layouts safe. */
@media (min-width: 1051px) {
    body.home #main.mle-main .mle-faq-inner {
        width: min(650px, 100%);
        max-width: 650px;
    }
}