/*
 * Global footer (footer.php + template-parts/footer/*).
 * Moved out of header/custom-header.css; visual values are unchanged.
 */

/* ---------- Footer shell ---------- */
.site-footer[data-wpr-lazyrender] {
    content-visibility: visible;
}
.site-footer {
    color: #ffffff;
    font-family: inherit;
    position: relative;
}
footer,
.footer-address p {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6em;
    color: #fff;
    margin: 0;
}
footer .footer-shape {
    fill: #283D98;
    height: 30px;
    display: block;
    width: 100%;
}

/* ---------- Top area: editor-managed columns and blocks ---------- */
.footer-top {
    padding: 80px 0 40px;
    background-color: #283d98;
}
.footer-top .footer-top-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}
/* Columns: "Auto" shares space evenly; Wide/Medium/Narrow are the approved
   40% / 36% / 24% proportions. */
.footer-top .footer-col {
    flex: 1 1 0;
    min-width: 0;
}
.footer-top .footer-col--wide {
    flex: 0 1 40%;
}
.footer-top .footer-col--medium {
    flex: 0 1 36%;
}
.footer-top .footer-col--narrow {
    flex: 0 1 24%;
}
/* More than three columns: columns grow to fill and wrap when space runs out. */
.footer-top .footer-top-grid--many {
    flex-wrap: wrap;
    row-gap: 40px;
}
.footer-top .footer-top-grid--many .footer-col {
    flex: 1 1 180px;
}
.footer-top .footer-top-grid--many .footer-col--wide {
    flex: 1.6 1 300px;
}
/* Blocks stacked inside a column. */
.footer-top .footer-block + .footer-block {
    margin-top: 32px;
}

/* Section headings (h2): keep the approved footer title style. */
footer .footer-site-title,
footer .footer-widget-title {
    color: #fff;
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    line-height: 26px;
    letter-spacing: normal;
    text-transform: none;
    margin: 0 0 15px;
}

/* Links */
footer .footer-links a,
footer .footer-top a {
    color: var(--svcw-link-primary-lt);
}
footer .footer-links a:focus,
footer .footer-links a:hover,
footer .footer-top a:focus,
footer .footer-top a:hover {
    color: #ffffff;
}
footer .footer-top a:focus-visible,
footer .footer-bottom a:focus-visible,
footer .footer-bottom button:focus-visible {
    outline: 2px solid #fff;
    color: #fff;
    outline-offset: 3px;
}

/* Contact block */
.site-footer address {
    font-style: normal;
}
.footer-address ul.list-items {
    display: flex;
    flex-flow: column;
    gap: 5px;
    list-style: none;
    margin: 15px 0 0 0;
    padding: 0;
    position: relative;
}
.footer-address ul.list-items li,
.footer-address ul.list-items li a.address-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}
.footer-address .address-text {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.footer-address ul.list-items svg {
    width: 18px;
    fill: #fff;
}
.footer-address a {
    color: #fff;
    font-weight: 600;
    font-size: inherit;
    line-height: inherit;
}

/* Newsletter button block (can sit in any column) */
.footer-newsletter {
    text-align: center;
    max-width: 310px;
}
.footer-newsletter .singup-popup {
    padding: 0 20px;
}
.footer-top .footer-address + .footer-newsletter {
    margin-top: 35px;
}

/* Commission meetings block */
.footer-meetings .meeting-date {
    font-weight: 700;
    margin: 0 0 15px;
}
.footer-meetings .commission-meeting {
    margin: 0;
}

/* Link-list blocks */
.footer-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-link-list li {
    line-height: 1.6em;
}

/* ---------- Bottom area: legal & utility links + copyright ---------- */
.footer-bottom {
    padding: 12px 0;
    background-color: #283d98;
}
.footer-privacy-links {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
.footer-privacy-links .footer-links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}
/* Cookie Preferences is a <button>; it looks like the links next to it. */
.footer-privacy-links .footer-links button {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    font: inherit;
    line-height: inherit;
    cursor: pointer;
    color: var(--svcw-link-primary-lt);
}
.footer-privacy-links .footer-links button:hover,
.footer-privacy-links .footer-links button:focus {
    color: #fff;
}
.footer-copyright {
    margin: 0;
    font-size: 13px;
    color: #ffffff;
    text-align: center;
}
.footer-copyright small {
    font-size: inherit;
}

/* ---------- eNews sign-up dialog ---------- */
.popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999999;
}
.popup.is-open {
    display: flex;
}
.popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .75);
}
.popup .popup-content .form-style-noelementor {
    padding: 40px;
    overflow: auto;
    max-height: calc(100vh - 70px);
}
.popup .popup-content {
    position: relative;
    width: 550px;
    margin: auto;
    background: #0274BE;
    z-index: 1;
    border: 25px solid #fff;
}
.popup .popup-content button.popup-close {
    position: absolute;
    right: -45px;
    top: -45px;
    background: transparent;
    padding: 0;
    line-height: 0;
    border: 0;
    outline: 0;
    cursor: pointer;
}
.popup .popup-content button.popup-close svg {
    fill: var(--svcw-link-secoundry);
    width: 40px;
    height: 40px;
}
footer .footer-widget-newsletter .footer-widget-title {
    color: #fff;
    font-size: 1.64705882353rem;
    font-weight: 600;
    line-height: 1.3em;
    text-transform: none;
    margin: 0 0 20px;
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
    .footer-top .footer-top-grid,
    .footer-top .footer-top-grid--many {
        gap: 32px;
        flex-flow: column;
    }
    .footer-top .footer-col,
    .footer-top .footer-top-grid--many .footer-col {
        flex: 0 0 auto;
        width: 100%;
    }
    .popup .popup-content .form-style-noelementor {
        padding: 20px;
    }
    .popup .popup-content {
        padding: 0;
        border-width: 10px;
        width: 90%;
    }
    .popup .popup-content button.popup-close {
        right: -30px;
        top: -30px;
    }
}
@media (max-width: 425px) {
    footer .footer-site-title {
        font-size: 22px;
    }
    .footer-privacy-links .footer-links li {
        text-align: center;
    }
    .footer-privacy-links .footer-links ul {
        flex-flow: column;
        gap: 2px;
    }
}
@media (max-width: 390px) {
    footer .footer-site-title {
        font-size: 20px;
    }
}
