/* AE PDS Theme: shared content width; native stretched rows remain full width. */
:root{--ae-pds-content-width:1400px;--ae-pds-page-gutter:32px}
@media(max-width:767px){:root{--ae-pds-page-gutter:20px}}
body #td-outer-wrap .tdc-content-wrap .tdc-row:not(.td-stretch-content),
body #td-outer-wrap .tdc-content-wrap .tdc-row.stretch_row_1400{
 width:min(var(--ae-pds-content-width),calc(100% - 2 * var(--ae-pds-page-gutter)))!important;
 max-width:none!important;margin-left:auto!important;margin-right:auto!important;padding-left:0!important;padding-right:0!important;box-sizing:border-box;
}
body #td-outer-wrap .tdc-content-wrap .tdc-row:not(.td-stretch-content)>.vc_row,
body #td-outer-wrap .tdc-content-wrap .tdc-row.stretch_row_1400>.vc_row{
 width:auto!important;margin-left:0!important;margin-right:0!important;
}
body #td-outer-wrap .tdc-content-wrap .tdc-row:not(.td-stretch-content)>.vc_row>.vc_column:first-of-type,
body #td-outer-wrap .tdc-content-wrap .tdc-row.stretch_row_1400>.vc_row>.vc_column:first-of-type{padding-left:0!important}
body #td-outer-wrap .tdc-content-wrap .tdc-row:not(.td-stretch-content)>.vc_row>.vc_column:last-of-type,
body #td-outer-wrap .tdc-content-wrap .tdc-row.stretch_row_1400>.vc_row>.vc_column:last-of-type{padding-right:0!important}
body #td-outer-wrap .pds-brand-container,
body #td-outer-wrap .pds-brand-hero__copy,
body #td-outer-wrap .pds-brand-hero__bottom{
 width:min(var(--ae-pds-content-width),calc(100% - 2 * var(--ae-pds-page-gutter)))!important;margin-left:auto;margin-right:auto;
}
/* Full-width background with boxed content: standard WPBakery stretch_row. */
body #td-outer-wrap .tdc-content-wrap .tdc-row.stretch_row>.vc_row{
 max-width:var(--ae-pds-content-width)!important;width:calc(100% - 2 * var(--ae-pds-page-gutter))!important;margin-left:auto!important;margin-right:auto!important;
}
body #td-outer-wrap .tdc-content-wrap>.vc_row[data-vc-full-width="true"][data-vc-stretch-content="true"]{max-width:none}

/* Space between the site header and standard page content. */
body.pds-main-site.page.page-template-default:not(.home) #td-outer-wrap .td-main-page-wrap {
    padding-top: clamp(24px, 4vw, 56px);
}

/* Give standard article headers breathing room on larger screens. */
@media (min-width: 768px) {
    body.pds-main-site.single-post #td-outer-wrap .td-main-content-wrap:has(.td-post-header):not(:has(.td-post-header[class*="td-image-gradient-style"])) {
        padding-top: 10px;
    }
}

/* Keep the sidebar in flow so it meets the sticky header without a jump. */
@media (min-width: 1019px) {
    body.pds-main-site:is(.single-post, .page):has(.td-header-desktop-sticky-wrap):has(.td-main-sidebar > .td-ss-main-sidebar[style*="position:"]) #td-outer-wrap {
        overflow: clip;
    }

    body.pds-main-site:is(.single-post, .page):has(.td-header-desktop-sticky-wrap) .td-main-sidebar:has(> .td-ss-main-sidebar[style*="position:"]) {
        position: sticky;
        top: calc(72px + var(--wp-admin--admin-bar--height, 0px));
        align-self: start;
    }

    body.pds-main-site:is(.single-post, .page):has(.td-header-desktop-sticky-wrap) .td-main-sidebar > .td-ss-main-sidebar[style*="position:"] {
        position: static !important;
        width: auto !important;
    }
}
