html, body.wcs-page, body.page-template-wcs-full-width {
    margin: 0;
}

.wcs-page .wcs-part {
    display: contents;
}

.wcs-page .wcs-page-content {
    max-width: none !important;
    width: 100% !important;
}

/* Ensure converted Gutenberg and Elementor scope roots stretch edge-to-edge naturally without overriding authored padding or margin */
.gcb-scope,
.wp-block-gcb-element.alignfull,
.wcs-page-content > .elementor,
.wcs-page-content > .gcb-scope {
    box-sizing: border-box;
    max-width: none !important;
    width: 100% !important;
}

/* Reset theme layout containers and Gutenberg block wrappers so they don't constrain width or offset content */
.entry-content:has(.gcb-scope),
.site-main:has(.gcb-scope),
.is-layout-constrained:has(.gcb-scope),
.wp-site-blocks:has(.gcb-scope),
#page:has(.gcb-scope),
#content:has(.gcb-scope),
#primary:has(.gcb-scope),
#main:has(.gcb-scope),
body.wcs-page .entry-content,
body.wcs-page .site-main,
body.wcs-page .is-layout-constrained,
body.wcs-page .wp-site-blocks,
body.wcs-page #page,
body.wcs-page #content,
body.wcs-page #primary,
body.wcs-page #main,
body.page-template-wcs-full-width .entry-content,
body.page-template-wcs-full-width .site-main,
body.page-template-wcs-full-width .is-layout-constrained,
body.page-template-wcs-full-width .wp-site-blocks,
body.page-template-wcs-full-width #page,
body.page-template-wcs-full-width #content,
body.page-template-wcs-full-width #primary,
body.page-template-wcs-full-width #main {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

/* Only the bridge shell layout reset */
body.wcs-page > .wcs-header,
body.wcs-page > .wcs-footer,
body.wcs-page > .wcs-page-content {
    gap: 0;
}

/* The body, rather than the short embedded header document, contains sticky motion. */
body.wcs-page > .wcs-header.wcs-sticky-header {
    display: block;
    position: sticky;
    top: var(--wcs-header-top, 0px);
    z-index: var(--wcs-header-layer, auto);
}

body.wcs-page > .wcs-header.wcs-sticky-header .wcs-sticky-source {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
}