/* Shared public header and footer; follows page styles and header-logo.css. */
.nav-header {
    overflow: visible;
    border: 1px solid #e6eee8;
    box-shadow: 0 14px 38px rgba(24, 70, 46, .09);
}

.nav-header .nav-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
}

.nav-header .nav-brand img {
    display: block;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain;
}

@media (min-width: 992px) {
    .nav-header .nav-brand img {
        width: 238px !important;
    }

    .nav-header nav .container-fluid {
        padding-inline: clamp(24px, 3vw, 48px) !important;
    }

    .nav-header nav .d-flex.justify-content-between {
        align-items: center !important;
    }

    .nav-header .social {
        display: flex !important;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 7px;
        width: auto !important;
    }

    .nav-header .social li {
        display: block;
        padding: 0 !important;
        margin: 0 !important;
    }

    .nav-header .social a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 29px;
        height: 29px;
        border-radius: 50%;
    }

    .nav-header .social img {
        display: block;
        width: 24px;
        height: 24px;
    }

    .nav-header nav .nav-middle {
        width: auto !important;
        min-width: 0;
        flex: none !important;
        order: 0 !important;
    }

    .nav-header nav .d-flex.justify-content-between > .nav-item:last-child {
        width: auto !important;
        min-width: 0;
        flex: none !important;
        order: 0 !important;
    }

    .nav-header nav .links {
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: nowrap !important;
        gap: 7px !important;
        width: auto !important;
        margin: 0 !important;
    }

    .nav-header nav .links li {
        flex: 0 0 auto;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
    }

    .nav-header nav .links a.account-signin,
    .nav-header nav .links a.account-register,
    .nav-header nav .links a.account-dashboard {
        min-height: 42px !important;
        padding: 8px 10px !important;
        font-size: 13px !important;
    }

    .nav-header .links_menu ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 4px 16px !important;
    }
}

@media (min-width: 1240px) {
    .nav-header nav .d-flex.justify-content-between {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 18px;
        min-height: 70px;
    }

    .nav-header nav .d-flex.justify-content-between > .nav-item.d-lg-block {
        grid-column: 1;
        justify-self: start;
    }

    .nav-header nav .nav-middle {
        grid-column: 2;
        justify-self: center;
    }

    .nav-header nav .d-flex.justify-content-between > .nav-item:last-child {
        grid-column: 3;
        justify-self: end;
    }
}

@media (min-width: 992px) and (max-width: 1239.98px) {
    .nav-header nav .d-flex.justify-content-between {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas: "brand brand" "social actions";
        gap: 10px 16px;
    }

    .nav-header nav .nav-middle {
        grid-area: brand;
        justify-self: center;
    }

    .nav-header nav .d-flex.justify-content-between > .nav-item.d-lg-block {
        grid-area: social;
        justify-self: start;
    }

    .nav-header nav .d-flex.justify-content-between > .nav-item:last-child {
        grid-area: actions;
        justify-self: end;
    }
}

/* The same sharp brand mark and a balanced set of links on every public page. */
footer {
    border-top: 4px solid #348c50;
    background: #f5f8f5 !important;
    color: #173c30;
}

footer .top_footer {
    padding: 32px 0 28px !important;
    border-bottom: 1px solid #dbe6dd;
}

footer .top_footer .row {
    display: grid !important;
    grid-template-columns: 230px minmax(0, 1fr);
    align-items: center !important;
    gap: 28px;
}

footer .top_footer .row > [class*="col-"] {
    width: auto !important;
    max-width: none !important;
    padding-inline: 0 !important;
}

footer .footer_logo {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
}

footer .footer_logo img {
    display: block;
    width: 225px !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain;
}

footer .top_footer .links {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 7px 18px;
    margin: 0 !important;
}

footer .top_footer .links li {
    display: block !important;
    margin: 0 !important;
    border: 0 !important;
}

footer .top_footer .links a {
    display: inline-block;
    padding: 6px 0 !important;
    color: #214936;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
}

footer .top_footer .links a:hover,
footer .top_footer .links a:focus-visible,
footer .terms_links a:hover,
footer .terms_links a:focus-visible {
    color: #18834b;
    text-decoration: underline;
}

footer a:focus-visible,
footer button:focus-visible,
footer input:focus-visible {
    outline: 2px solid #18834b;
    outline-offset: 3px;
}

footer .copyright {
    padding: 26px 0 32px !important;
}

footer .copyright .row {
    display: grid !important;
    grid-template-columns: minmax(170px, .8fr) minmax(220px, 1fr) minmax(280px, 1.25fr);
    align-items: center !important;
    gap: 24px;
}

footer .copyright .row > [class*="col-"] {
    width: auto !important;
    max-width: none !important;
    padding-inline: 0 !important;
}

footer .copyright .social {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 !important;
}

footer .copyright .social li {
    display: block;
    margin: 0 !important;
}

footer .copyright .social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #d9e7db;
    border-radius: 10px;
    background: #fff;
}

footer .copyright .social img {
    display: block;
    width: 22px;
    height: 22px;
}

footer .copyright p {
    margin-bottom: 8px !important;
    color: #526b5e;
    font-size: 13px;
    line-height: 1.6;
}

footer .copyright .terms_links {
    display: flex !important;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 0 !important;
}

footer .copyright .terms_links li {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

footer .copyright .terms_links a {
    padding: 0 !important;
    color: #526b5e;
    font-size: 13px;
    text-decoration: none;
}

footer .copyright h3 {
    margin: 0 0 10px !important;
    color: #173c30;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
}

footer .news_form {
    display: flex !important;
    align-items: stretch;
    width: 100%;
    height: 46px !important;
    margin: 0 !important;
    overflow: hidden;
    border: 1px solid #d5e3d8;
    border-radius: 10px;
    background: #fff;
}

footer .news_form input[type="email"] {
    display: block !important;
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
    height: 100% !important;
    padding: 10px 13px !important;
    border: 0 !important;
    background: transparent;
    color: #173c30;
}

footer .news_form button {
    position: static !important;
    flex: 0 0 auto;
    height: 100% !important;
    padding: 8px 16px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #28884d !important;
    color: #fff !important;
    font-weight: 700;
}

footer .news_form button:hover {
    background: #176a3d !important;
}

@media (max-width: 991.98px) {
    footer .top_footer .row {
        grid-template-columns: 210px minmax(0, 1fr);
        gap: 18px;
    }

    footer .copyright .row {
        grid-template-columns: minmax(145px, .7fr) minmax(190px, 1fr) minmax(230px, 1.2fr);
        gap: 16px;
    }
}

@media (max-width: 767.98px) {
    footer .top_footer {
        padding: 28px 0 24px !important;
    }

    footer .top_footer .row {
        display: flex !important;
        flex-direction: column;
        gap: 22px;
        margin-inline: 0;
    }

    footer .top_footer .row > [class*="col-"] {
        width: 100% !important;
    }

    footer .footer_logo {
        display: flex;
        justify-content: center;
    }

    footer .footer_logo img {
        width: min(225px, 72vw) !important;
    }

    footer .top_footer .links {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px 18px;
        text-align: start;
    }

    footer .top_footer .links a {
        width: 100%;
        padding: 7px 0 !important;
    }

    footer .copyright {
        padding: 25px 0 30px !important;
    }

    footer .copyright .row {
        display: flex !important;
        flex-direction: column;
        align-items: stretch !important;
        gap: 22px;
        margin-inline: 0;
    }

    footer .copyright .row > [class*="col-"] {
        width: 100% !important;
        text-align: center !important;
    }

    footer .copyright .row > [class*="col-"]:nth-child(3) {
        order: -1;
        text-align: start !important;
    }

    footer .copyright .social {
        justify-content: center;
    }
}
