/* Academy-only exceptions to the parent's full-screen fog presentation.
 * Important declarations counter the verified site-wide Additional CSS rules.
 * Do not remove the body scope or apply these rules to parent-site pages.
 */
html:has(body.gma-academy-site) {
    height: auto !important;
    min-height: 100%;
    overflow-x: clip !important;
    overflow-y: auto !important;
}

body.gma-academy-site {
    height: auto !important;
    min-height: 100vh;
    overflow: visible !important;
    background: #f8f6f1 !important;
    color: #1d2430;
}

body.gma-academy-site :is(.site, .site-content, .content, .ast-article-single, #page-content) {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    background: #f8f6f1 !important;
}

body.gma-academy-site #page-content {
    display: block !important;
}

body.gma-academy-site :is(.fog-background, #your-background-video-container, .eyes-container) {
    display: none !important;
}

body.gma-academy-site :is(h1, h2, h3, h4, h5, h6, p, li, label, legend, a, button) {
    color: #1d2430 !important;
    text-shadow: none !important;
}

body.gma-academy-site :is(.site-header, .ast-primary-header-bar, .ast-mobile-header-content, .ast-mobile-popup-drawer .ast-mobile-popup-inner) {
    background: #f8f6f1 !important;
}

body.gma-academy-site :is(.gma-foundation, .gma-foundation .wp-block-group) {
    background: #f8f6f1 !important;
}

body.gma-academy-site .gma-foundation .gma-section-muted {
    background: #ece9e1 !important;
}

body.gma-academy-site .gma-foundation .gma-card {
    background: #fff !important;
}

body.gma-academy-site .gma-foundation .gma-section-accent {
    background: #176b78 !important;
}

body.gma-academy-site .gma-foundation .gma-section-accent :is(h2, h3, p, li, a) {
    color: #fff !important;
}

body.gma-academy-site a {
    color: #0c4d58 !important;
}

body.gma-academy-site .gma-foundation a:not(.wp-element-button):not(.wp-block-button__link) {
    text-decoration: underline;
    text-underline-offset: .18em;
}

body.gma-academy-site .gma-foundation :is(.wp-element-button, .wp-block-button__link, button) {
    background: #176b78 !important;
    color: #fff !important;
    border-color: #176b78;
}

body.gma-academy-site .gma-foundation :is(.wp-element-button, .wp-block-button__link, button):hover {
    background: #0c4d58 !important;
}

body.gma-academy-site .gma-foundation button.gma-button-danger {
    background: #9d2d2d !important;
    border-color: #9d2d2d;
}

body.gma-academy-site .gma-foundation button.gma-button-danger:hover {
    background: #7b2020 !important;
}

body.gma-academy-site a:focus-visible,
body.gma-academy-site button:focus-visible {
    outline: 3px solid #854c20 !important;
    outline-offset: 3px;
}

body.gma-academy-site .gma-page {
    overflow: visible;
}

body.gma-academy-site .gma-foundation :is(h1, h2, h3, p, li, a) {
    overflow-wrap: anywhere;
}
