/* CIO Website Builder 0.6.5 - Divi-safe controlled global header/footer navigation */

/* My Account is intentionally separated with space only: no button, box or outline. */
#top-menu > li.cio-nav-account,
.et-menu > li.cio-nav-account,
nav ul.menu > li.cio-nav-account,
nav ul.et-menu > li.cio-nav-account {
    margin-left: 24px !important;
}

#top-menu > li.cio-nav-account > a,
.et-menu > li.cio-nav-account > a,
nav ul.menu > li.cio-nav-account > a,
nav ul.et-menu > li.cio-nav-account > a {
    border: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.cio-wb-global-footer-nav {
    width: 100%;
    margin: 0 auto 9px;
    text-align: center;
    font-size: 0.83rem;
    line-height: 1.55;
}

.cio-wb-global-footer-nav-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin: 2px 0;
}

.cio-wb-global-footer-nav a {
    text-decoration: none !important;
}

.cio-wb-global-footer-nav a:hover,
.cio-wb-global-footer-nav a:focus-visible {
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

.cio-wb-footer-separator {
    opacity: 0.65;
}

.cio-wb-site-footer .cio-wb-global-footer-nav a,
#footer-bottom .cio-wb-global-footer-nav a,
footer .cio-wb-global-footer-nav a {
    color: inherit !important;
}

.cio-wb-site-footer .cio-wb-global-footer-legal {
    opacity: 0.9;
    font-size: 0.95em;
}

@media (max-width: 980px) {
    #top-menu > li.cio-nav-account,
    .et-menu > li.cio-nav-account,
    nav ul.menu > li.cio-nav-account,
    nav ul.et-menu > li.cio-nav-account {
        margin-left: 0 !important;
        margin-top: 7px !important;
        padding-top: 7px !important;
    }
}

@media (max-width: 620px) {
    .cio-wb-global-footer-nav-row {
        gap: 6px;
    }
    .cio-wb-footer-separator {
        display: none;
    }
    .cio-wb-global-footer-nav a {
        margin: 0 5px;
    }
}


/* One standard full-width footer across CIO pages.
   This is inserted only when Controlled Navigation is enabled. */
.cio-wb-global-site-footer {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin: 0 calc(50% - 50vw);
    padding: 18px 24px 20px;
    box-sizing: border-box;
    background: linear-gradient(90deg, #001316, #00656b);
    color: #fff;
    text-align: center;
    font-size: 0.78rem;
    line-height: 1.45;
    z-index: 2;
}

.cio-wb-global-site-footer-inner {
    width: min(1160px, 100%);
    margin: 0 auto;
}

.cio-wb-global-site-footer .cio-wb-global-footer-nav {
    margin-bottom: 7px;
}

.cio-wb-global-site-footer .cio-wb-global-footer-nav,
.cio-wb-global-site-footer .cio-wb-global-footer-nav a,
.cio-wb-global-site-footer p,
.cio-wb-global-site-footer a {
    color: #fff !important;
}

.cio-wb-global-site-footer p {
    margin: 2px 0;
}

.cio-wb-global-site-footer a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cio-wb-global-site-footer .cio-wb-global-footer-nav a {
    text-decoration: none !important;
}

.cio-wb-global-site-footer .cio-wb-global-footer-nav a:hover,
.cio-wb-global-site-footer .cio-wb-global-footer-nav a:focus-visible {
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

body.cio-wb-global-footer-standardised .cio-wb-site-footer,
body.cio-wb-global-footer-standardised #main-footer,
body.cio-wb-global-footer-standardised .et-l--footer,
body.cio-wb-global-footer-standardised #footer-bottom,
body.cio-wb-global-footer-standardised footer {
    display: none !important;
}

/* The CIO standard footer is a div, not a <footer>, so the generic footer
   rule above safely retires theme/Divi footers while controlled navigation is on. */
body.cio-wb-global-footer-standardised .cio-wb-global-site-footer {
    display: block !important;
}

@media (max-width: 620px) {
    .cio-wb-global-site-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
}


/* Legacy Home credit band retired by the exact-text fallback in 0.6.5. */
.cio-wb-retired-legacy-credit {
    display: none !important;
}
