body:not(.loaded) {
    display: none;
}

body.home:has(>.mfp-bg) :is(#page) {
    display: none !important;
}

/* body > .mfp-bg {
   background-image: url('/wp-content/uploads/2025/03/sarasin-screenshot-min.png');
}

body:has(>.mfp-bg) #siteterms h3 {
    font-family: sans-serif;
    font-weight: 600;
} */

.page-id-14760 .accordion-title.open::after {
    content: "Hide Voting Record";
}

.page-id-14760 .accordion-title::after {
    content: "Show Voting Record";
    position: relative;
    display: block;
    font-size: 20px;
    margin-bottom: 1em;
    text-decoration: underline;
}

.page-id-14760 .accordion-title + div {
    display: none;
}

.page-id-14760 .accordion-title.open + div {
    display: block;
}

#page .header-hero.page-header:not(.header-hero.page-header:has(.page-header-image img)) {
    height: auto;
    padding-bottom: 2em;
}

#page .header-hero.page-header p {
    width: 100%;
    max-width: 850px;
    margin: 0;
}

@media only screen and (max-width: 782px) {

    .nav-open .off-canvas {
        display: flex;
        gap: 1em;
        flex-direction: column;
        padding: 26px 31px 0 16px;
        height: 100vh;
        overflow: auto;
    }

    .nav-open .off-canvas nav#expanded-navigation {
        flex: 1;
    }

    .nav-open .off-canvas #expanded-navigation .sub-menu li {
        padding-left: 5px;
    }

    .nav-open .off-canvas #expanded-navigation .sub-menu li a {
        font-size: clamp(12px, 4vw, 16px);
        line-height: 1.2;
        height: auto;
    }

    .nav-open .off-canvas .expanded-sub {
        position: relative;
        width: 100%;
        left: 0;
        bottom: 0;
        padding-bottom: 20px;
}

}

/* Archive Post and Post template */

:is(.post-template-default, .wpa_news-template-default, .wpa_stewardship-template-default, .wpa_learn-template-default) .news-layout {
    padding-top: 2em;
}

.main-content .think-posts .think-arrange-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2em;
}

.main-content .think-posts .think-arrange-posts article {
    flex-direction: column;
}

.main-content .think-posts .think-arrange-posts article .entry-featured {
    width: 100%;
}

.main-content .think-posts .think-arrange-posts article .entry-content {
    margin: 1em 0 0;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.main-content .think-posts .think-arrange-posts article .entry-content::before,
.main-content .think-posts .think-arrange-posts article .entry-content::after {
    content: none;
}

.main-content article .entry-featured img {
    aspect-ratio: 16 / 9;
}

:is(.post-template-default, .wpa_news-template-default, .wpa_stewardship-template-default, .wpa_learn-template-default) .single-content :is(h2, h3, h4) {
    padding-top: 0;
}

:is(.post-template-default, .wpa_news-template-default, .wpa_stewardship-template-default, .wpa_learn-template-default) .newsletter-subscribe {
    margin-top: 1em;
}

:is(.post-template-default, .wpa_news-template-default, .wpa_stewardship-template-default, .wpa_learn-template-default) .coloured-blocks {
    margin: 4em 0 2em;
}

:is(.post-template-default, .wpa_news-template-default, .wpa_stewardship-template-default, .wpa_learn-template-default) .coloured-blocks .coloured-outer.coloured-outer-boxed {
    padding: 2em 0;
}

:is(.post-template-default, .wpa_news-template-default, .wpa_stewardship-template-default, .wpa_learn-template-default) div#newsletter {
    max-width: 800px;
    width: 80%;
    max-height: 80vh;
    padding: 0;
    border: none;
}

:is(.post-template-default, .wpa_news-template-default, .wpa_stewardship-template-default, .wpa_learn-template-default) div#newsletter::backdrop {
    background: rgb(0 0 0 / 10%);
}

:is(.post-template-default, .wpa_news-template-default, .wpa_stewardship-template-default, .wpa_learn-template-default) div#newsletter .signup-content {
    width: 100%!important;
}

:is(.post-template-default, .wpa_news-template-default, .wpa_stewardship-template-default, .wpa_learn-template-default) div#newsletter .signup-content h2 span {
    display: inline!important;
}

:is(.post-template-default, .wpa_news-template-default, .wpa_stewardship-template-default, .wpa_learn-template-default) div#newsletter .signup-wrapper {
    padding: 0!important;
    border: none!important;
}

.search-and-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1em;
}

.search-and-filters > div {
    margin-bottom: 0;
}

.fs-wrap.multiple {
    width: 100%;
    cursor: pointer!important;
}

.fs-wrap.multiple .fs-label-wrap {
    border-radius: 50px;
    padding: 0.5em;
    transition: border-radius 100ms;
}

.fs-wrap.multiple.fs-open .fs-label-wrap {
    border-radius: 25px 25px 0 0;
}

/* Featured Fund block */

:is(.post-template-default, .wpa_news-template-default, .wpa_stewardship-template-default, .wpa_learn-template-default) .entry-content .image-content-block {
    margin: 2em 0;
    margin-left: -25.666667%;
    margin-right: -26.666667%;
    padding: 2em 0;
    padding-left: 25.666667%;
}

@media only screen and (min-width: 782px) {

    :is(.post-template-default, .wpa_news-template-default, .wpa_stewardship-template-default, .wpa_learn-template-default) #page {
        overflow: visible;
    }

    :is(.post-template-default, .wpa_news-template-default, .wpa_stewardship-template-default, .wpa_learn-template-default) article {
        padding: 0;
    }
    
    :is(.post-template-default, .wpa_news-template-default, .wpa_stewardship-template-default, .wpa_learn-template-default) #page .entry-sidebar {
        position: sticky;
        top: 2em;
        z-index: 99;
        background-color: #fbfbfb;
        padding: 5px;
    }

    :is(.post-template-default, .wpa_news-template-default, .wpa_stewardship-template-default, .wpa_learn-template-default) #page .coloured-blocks .coloured-outer.coloured-outer-boxed {
        margin-left: -25.666667%;
    }
    

}

@media only screen and (max-width: 782px) {
    :is(.post-template-default, .wpa_news-template-default, .wpa_stewardship-template-default, .wpa_learn-template-default) div#newsletter #gform_submit_button_1 {
        font-size: min(1rem, 3.5vw);
    }

    :is(.post-template-default, .wpa_news-template-default, .wpa_stewardship-template-default, .wpa_learn-template-default) .entry-content .image-content-block {
        margin: 0;
        padding-left: 0;
    }

    :is(.post-template-default, .wpa_news-template-default, .wpa_stewardship-template-default, .wpa_learn-template-default) .entry-content .image-content-block .image-content-row {
        flex-direction: column-reverse;
    }

    :is(.post-template-default, .wpa_news-template-default, .wpa_stewardship-template-default, .wpa_learn-template-default) .entry-content .image-content-block .image-content-image {
        width: min(100%, 300px);
    }
    
}

/* Hide share class col on south africa site */

:is(.page-id-1510.active-za-storeindividual, .page-id-1510[data-type="ZA - Adviser"]) .fund-share-class {
    display: none !important;
}


:is(.page-id-1510.active-za-storeindividual, .page-id-1510[data-type="ZA - Adviser"]) #filter-display .fund-filter-column:nth-child(2) {
    display: none;
}

body .pending-fsca {
    display: none;
}

body:has(.facetwp-checkbox.checked[data-value="real-estate"]) .pending-fsca,
.fl-module-funds-table:not(:has(.facetwp-checkbox.checked)) + .pending-fsca {
     display: block;
}

.position-location-label {
    margin: 6px 6px 6px 2px;
}