/* JAR Foundation header */
.jar-skip-link {
    position: fixed;
    top: -100px;
    left: 20px;
    z-index: 100000;
    padding: 12px 18px;
    border-radius: 6px;
    background: #fff;
    color: #06783f;
    font-weight: 800;
    text-decoration: none;
}

.jar-skip-link:focus {
    top: 20px;
}

.jar-site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e5ebe7;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .05);
}

.admin-bar .jar-site-header {
    top: 32px;
}

.jar-header-inner {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    width: min(1320px, calc(100% - 40px));
    min-height: 104px;
    margin: 0 auto;
}

.jar-brand {
    display: block;
    width: 280px;
    min-width: 280px;
}

.jar-brand-link {
    display: flex;
    min-height: 90px;
    align-items: center;
    text-decoration: none;
}

.jar-brand-logo {
    display: block;
    width: 260px;
    height: 90px;
    max-width: 260px;
    max-height: 90px;
    object-fit: contain;
    object-position: left center;
}

.jar-primary-nav {
    justify-self: end;
    min-width: 0;
}

.jar-primary-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.jar-primary-menu li {
    position: relative;
    margin: 0;
}

.jar-primary-menu a {
    display: block;
    padding: 16px 11px;
    color: #17231c;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
}

.jar-primary-menu a:hover,
.jar-primary-menu a:focus,
.jar-primary-menu .current-menu-item > a,
.jar-primary-menu .current-menu-ancestor > a {
    color: #06783f;
}

.jar-primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    display: none;
    min-width: 240px;
    margin: 0;
    padding: 10px;
    border: 1px solid #e5ebe7;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(0, 0, 0, .13);
    list-style: none;
}

.jar-primary-menu li:hover > .sub-menu,
.jar-primary-menu li:focus-within > .sub-menu {
    display: block;
}

.jar-primary-menu .sub-menu a {
    padding: 11px 12px;
}

.jar-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.jar-header-btn {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 11px 19px;
    border: 2px solid #06783f;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
}

.jar-header-btn--outline {
    background: #fff;
    color: #06783f;
}

.jar-header-btn--solid {
    background: #06783f;
    color: #fff;
}

.jar-header-btn--outline:hover,
.jar-header-btn--outline:focus {
    background: #06783f;
    color: #fff;
}

.jar-header-btn--solid:hover,
.jar-header-btn--solid:focus {
    border-color: #045f31;
    background: #045f31;
    color: #fff;
}

.jar-mobile-toggle {
    display: none;
    width: 48px;
    height: 46px;
    padding: 10px;
    border: 0;
    border-radius: 9px;
    background: #06783f;
    cursor: pointer;
}

.jar-mobile-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    margin: 4px 0;
    border-radius: 3px;
    background: #fff;
    transition: transform .2s ease, opacity .2s ease;
}

.jar-mobile-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.jar-mobile-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.jar-mobile-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1050px) {
    .jar-header-inner {
        grid-template-columns: 215px minmax(0, 1fr) auto;
    }

    .jar-brand {
        width: 215px;
        min-width: 215px;
    }

    .jar-brand-logo {
        width: 205px;
        height: 72px;
        max-width: 205px;
        max-height: 72px;
    }

    .jar-primary-menu a {
        padding: 15px 8px;
        font-size: 14px;
    }
}

@media (max-width: 992px) {
    .jar-header-inner {
        position: relative;
        display: flex;
        min-height: 86px;
    }

    .jar-brand {
        margin-right: auto;
    }

    .jar-brand-link {
        min-height: 70px;
    }

    .jar-mobile-toggle {
        display: block;
    }

    .jar-header-btn--outline {
        display: none;
    }

    .jar-primary-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        max-height: calc(100vh - 110px);
        overflow: auto;
        margin: 0;
        padding: 15px;
        border-top: 1px solid #e5ebe7;
        background: #fff;
        box-shadow: 0 15px 30px rgba(0, 0, 0, .13);
    }

    .jar-primary-nav.is-open {
        display: block;
    }

    .jar-primary-menu {
        display: block;
    }

    .jar-primary-menu a {
        padding: 13px 10px;
        border-bottom: 1px solid #edf1ee;
    }

    .jar-primary-menu .sub-menu {
        position: static;
        display: block;
        min-width: 0;
        padding-left: 18px;
        border: 0;
        box-shadow: none;
    }
}

@media (max-width: 782px) {
    .admin-bar .jar-site-header {
        top: 46px;
    }
}

@media (max-width: 640px) {
    .jar-header-inner {
        width: min(100% - 20px, 1320px);
    }

    .jar-brand {
        width: 175px;
        min-width: 175px;
    }

    .jar-brand-logo {
        width: 165px;
        height: 58px;
        max-width: 165px;
        max-height: 58px;
    }

    .jar-header-btn--solid {
        display: none;
    }
}
