/*
 * planenews responsive page gutters — 1.5.50
 * Restore consistent 12px left/right spacing on tablet and mobile.
 * The Living Assistance component keeps its separately-scoped full-bleed rule.
 */
@media (max-width: 1024px) {
    /* Main content wrappers: use one predictable 12px gutter per side. */
    .site-main.container,
    .site-main > .container,
    .libu-home > .container,
    .site-footer .container {
        width: 100% !important;
        max-width: 1200px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        box-sizing: border-box !important;
    }

    /* Keep all homepage columns inside the page gutter. */
    .libu-home-layout,
    .libu-home-main,
    .libu-home-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    /* Prevent headline and ordinary homepage modules from escaping the content width. */
    .libu-home-headline,
    #head-blog.head-blog-static,
    .libu-home-main > .home-section,
    .libu-home-sidebar > * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* The category strip aligns with the same 12px page edge. */
    .libu-category-nav .container {
        width: 100% !important;
        max-width: 1200px !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

/* Living Assistance alone is allowed to break out to the screen edge. */
@media (max-width: 700px) {
    .libu-home > .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}


/* ==========================================================
   1.5.51 — LIVING ASSISTANCE FULL-BLEED ON TABLET + MOBILE
   Keep normal page gutters, but let this one module span 100vw.
   Responsive layout adjustments.
   intentionally override earlier width/max-width constraints.
   ========================================================== */
@media (max-width: 1024px) {
    /* The homepage content column must not clip the breakout. */
    .libu-home-layout,
    .libu-home-main {
        min-width: 0 !important;
        overflow: visible !important;
    }

    /* Only the Living Assistance section breaks out of the page gutter. */
    .libu-home-main > .libu-living-assistance {
        position: relative !important;
        left: auto !important;
        width: 100vw !important;
        min-width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        border-radius: 0 !important;
        overflow: visible !important;
    }

    .libu-home-main > .libu-living-assistance > .libu-living-assistance-title {
        display: block !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        border-radius: 0 !important;
    }

    .libu-home-main > .libu-living-assistance > .libu-living-assistance-content {
        display: block !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

}
