:root {
    --header-container: 1180px;
    --header-primary: #007a74;
    --header-dark: #344055;
    --header-border: #e5e7eb;
    --header-background: #ffffff;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    z-index: 100000;
    top: 8px;
    left: 8px;
    width: auto;
    height: auto;
    padding: 12px 16px;
    clip: auto;
    background: #fff;
    color: #000;
}

.header-container {
    width: min(100% - 32px, var(--header-container));
    margin-inline: auto;
}

.header-announcement {
    padding: 8px 0;
    background: var(--header-primary);
    color: #fff;
    text-align: center;
}

.header-announcement p,
.header-announcement .announcement-widget {
    margin: 0;
}

.header-announcement a {
    color: inherit;
}

.header-top-bar {
    border-bottom: 1px solid var(--header-border);
    background: #f7f8f9;
}

.header-top-bar__inner {
    display: flex;
    justify-content: flex-end;
    min-height: 38px;
    align-items: center;
}

.top-menu,
.primary-menu,
.login-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.top-menu {
    gap: 18px;
    font-size: 0.875rem;
}

.site-header a {
    color: var(--header-dark);
    text-decoration: none;
}

.site-header a:hover,
.site-header a:focus-visible {
    color: var(--header-primary);
}

.main-header {
    border-bottom: 1px solid var(--header-border);
    background: var(--header-background);
}

.main-header__inner {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
    align-items: center;
    gap: 28px;
    min-height: 84px;
}

.site-branding {
    justify-self: start;
}

.custom-logo {
    display: block;
    width: auto;
    max-width: 220px;
    max-height: 64px;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.primary-navigation {
    justify-self: center;
}

.primary-menu {
    justify-content: center;
}

.header-actions {
    display: flex;
    justify-self: end;
    align-items: center;
    gap: 18px;
}

.header-search .search-form {
    display: flex;
    align-items: stretch;
}

.header-search .search-field {
    width: 150px;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid var(--header-border);
}

.header-search .search-submit {
    min-height: 40px;
    border: 0;
    padding: 8px 12px;
    background: var(--header-primary);
    color: #fff;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    justify-self: end;
    border: 1px solid var(--header-border);
    padding: 8px 12px;
    background: #fff;
    color: var(--header-dark);
    font-size: 1.25rem;
    cursor: pointer;
}

@media (max-width: 960px) {
    .main-header__inner {
        grid-template-columns: 1fr auto;
        min-height: 72px;
    }

    .menu-toggle {
        display: block;
    }

    .primary-navigation,
    .header-actions {
        display: none;
        grid-column: 1 / -1;
        justify-self: stretch;
    }

    .site-header.is-menu-open .primary-navigation,
    .site-header.is-menu-open .header-actions {
        display: flex;
    }

    .primary-menu,
    .header-actions {
        flex-direction: column;
        align-items: stretch;
        padding-bottom: 20px;
    }

    .primary-menu {
        gap: 0;
    }

    .primary-menu a {
        display: block;
        padding: 10px 0;
    }

    .header-search .search-field {
        width: 100%;
    }

    .header-search .search-form {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .header-top-bar__inner {
        justify-content: center;
    }

    .top-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 16px;
        padding: 8px 0;
    }

    .custom-logo {
        max-width: 170px;
        max-height: 54px;
    }
}

/****************************************************/
/* =========================================================
   Top menu
   ========================================================= */

.header-top-bar {
    width: 100%;
    background-color: var(--tb-dark, #344055);
}

.header-top-bar__inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 42px;
}

.top-navigation {
    min-width: 0;
}

.top-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.top-menu > li {
    margin: 0;
    padding: 0;
}

.top-menu a {
    display: block;
    padding: 11px 0;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition: color 180ms ease;
}

.top-menu a:hover,
.top-menu a:focus-visible {
    color: var(--tb-soft, #81d8d0);
}

.top-menu .current-menu-item > a {
    color: var(--tb-soft, #81d8d0);
}

.top-menu a:focus-visible {
    outline: 2px solid var(--tb-accent, #00ccff);
    outline-offset: 3px;
}

/* =========================================================
   Small screens
   ========================================================= */

@media (max-width: 700px) {
    .header-top-bar__inner {
        justify-content: center;
    }

    .top-menu {
        justify-content: center;
        gap: 16px;
        flex-wrap: wrap;
    }

    .top-menu a {
        padding-block: 9px;
        font-size: 0.8125rem;
    }
}