.site-topbar-motto {
    flex: 1 1 auto;
    align-self: flex-start;
    min-width: 0;
    padding: 10px 0;
    color: var(--motto-color, #fff);
    font-family: var(--motto-font-family, Inter, sans-serif);
    font-size: var(--motto-font-size, 12px);
    font-weight: var(--motto-font-weight, 700);
    font-style: var(--motto-font-style, normal);
    line-height: 1.5;
    text-align: left;
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .site-topbar-motto {
        align-self: center;
        box-sizing: border-box;
        width: 100%;
        padding: 0 8px;
        text-align: center;
        text-wrap: balance;
    }
}

.public-header,
.public-header *,
.public-header *::before,
.public-header *::after {
    letter-spacing: 0;
}

.public-header.site-header {
    font-family: "Inter", Arial, sans-serif;
    line-height: normal;
    background: #fff;
    backdrop-filter: none;
}

body .public-header.site-header {
    position: sticky;
    top: 0;
}

.public-header .home-nav {
    width: min(1280px, calc(100% - 48px));
    min-height: 88px;
    gap: 20px;
}

.public-header .home-nav :focus-visible {
    outline: 2px solid #1769aa;
    outline-offset: 3px;
}

.public-header .home-brand {
    flex: 0 1 270px;
    min-width: 0;
}

.public-header .home-brand span {
    min-width: 0;
}

.public-header .home-brand small {
    max-width: 200px;
    font-size: 11px;
    font-weight: 500;
}

.public-header .home-links {
    align-self: stretch;
    gap: 8px;
    margin-left: auto;
    color: #25314d;
    font-size: 14px;
    font-weight: 600;
}

.public-header .nav-dropdown {
    align-self: stretch;
    gap: 0;
    padding: 0;
}

.public-header .nav-dropdown > a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 10px;
    border-radius: 0;
    color: #25314d;
    background: transparent;
    white-space: nowrap;
}

.public-header .nav-dropdown:has(.home-submenu-toggle) > a {
    padding-right: 4px;
}

.public-header .nav-dropdown > a::after {
    right: 10px;
    bottom: 0;
    left: 10px;
    height: 3px;
    border-radius: 0;
    background: #b31327;
}

.public-header .nav-dropdown:hover > a,
.public-header .nav-dropdown:focus-within > a,
.public-header .nav-dropdown > a[aria-current="page"],
.public-header .nav-dropdown.is-current-section > a,
.public-header .nav-dropdown.is-submenu-open > a {
    color: #07166d;
    background: transparent;
}

.public-header .nav-dropdown > a[aria-current="page"]::after,
.public-header .nav-dropdown.is-current-section > a::after,
.public-header .nav-dropdown.is-submenu-open > a::after {
    transform: scaleX(1);
}

.home-submenu-toggle {
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    width: 28px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    color: #53617b;
    background: transparent;
    cursor: pointer;
}

.home-submenu-toggle:hover,
.home-submenu-toggle:focus-visible {
    color: #07166d;
    background: #f2f5fc;
}

.home-nav-chevron {
    width: 7px;
    height: 7px;
    margin-top: -4px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 160ms ease;
}

.is-submenu-open > .home-submenu-toggle .home-nav-chevron {
    margin-top: 3px;
    transform: rotate(225deg);
}

.public-header .nav-dropdown-menu {
    z-index: 2;
    width: max-content;
    min-width: 232px;
    max-width: 300px;
    gap: 2px;
    padding: 8px;
    border: 1px solid #e1e6f0;
    border-top: 3px solid #07166d;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 12px 28px rgba(7, 22, 109, .12);
    visibility: hidden;
}

.public-header .nav-dropdown:last-child .nav-dropdown-menu {
    right: 0;
    left: auto;
}

.public-header .nav-dropdown:hover .nav-dropdown-menu,
.public-header .nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
}

.public-header .nav-dropdown.is-submenu-open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.public-header .nav-dropdown-menu a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 4px;
    color: #34415b;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
}

.public-header .nav-dropdown-menu a:hover,
.public-header .nav-dropdown-menu a:focus-visible,
.public-header .nav-dropdown-menu a[aria-current="page"] {
    color: #07166d;
    background: #f2f5fc;
}

.public-header .nav-dropdown-menu a::before {
    content: none;
}

.public-header .home-nav > .nav-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 44px;
    padding: 11px 18px;
    border: 1px solid #07166d;
    border-radius: 5px;
    color: #fff;
    background: #07166d;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 160ms ease, border-color 160ms ease;
}

.public-header .home-nav > .nav-action:hover {
    border-color: #b31327;
    color: #fff;
    background: #b31327;
}

.home-menu-heading {
    display: none;
}

@media (max-width: 1100px) {
    .public-header .home-nav {
        min-height: 78px;
        flex-wrap: nowrap;
        gap: 12px;
    }

    .public-header .home-brand {
        flex: 1 1 0;
        margin-right: auto;
    }

    .public-header .home-brand small {
        white-space: normal;
    }

    .public-header .home-menu-toggle {
        display: grid;
        width: 44px;
        height: 44px;
        border-radius: 5px;
        box-shadow: none;
    }

    .public-header .home-menu-toggle::before {
        content: none;
    }

    .public-header .home-links {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 42;
        width: min(360px, 88vw);
        height: 100dvh;
        display: flex;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 0 20px 28px;
        overflow-y: auto;
        overscroll-behavior: contain;
        border-right: 1px solid #e1e6f0;
        background: #fff;
        box-shadow: 20px 0 50px rgba(7, 22, 109, .15);
        transform: translateX(-104%);
        visibility: hidden;
        transition: transform 220ms ease, visibility 220ms ease;
    }

    .public-header .home-nav.is-open .home-links {
        transform: translateX(0);
        visibility: visible;
        transition: transform 220ms ease;
    }

    .home-menu-heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex: 0 0 82px;
        margin-bottom: 12px;
        border-bottom: 1px solid #e1e6f0;
        color: #07166d;
        font-size: 20px;
    }

    .home-menu-close {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        border-radius: 4px;
        color: #07166d;
        background: #f2f5fc;
        font-size: 28px;
        cursor: pointer;
    }

    .public-header .home-nav-overlay {
        position: fixed;
        inset: 0;
        z-index: 41;
        display: block;
        background: rgba(13, 23, 48, .4);
        opacity: 0;
        visibility: hidden;
        transition: opacity 220ms ease, visibility 220ms ease;
    }

    .public-header .home-nav.is-open .home-nav-overlay {
        opacity: 1;
        visibility: visible;
    }

    .public-header .nav-dropdown {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        width: 100%;
        border-bottom: 1px solid #edf0f7;
    }

    .public-header .nav-dropdown > a {
        min-height: 54px;
        padding: 12px 10px;
        font-size: 15px;
        font-weight: 600;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .public-header .nav-dropdown > a::after,
    .public-header .nav-dropdown:has(.nav-dropdown-menu) > a::before,
    .public-header .nav-dropdown::after {
        content: none;
    }

    .public-header .nav-dropdown:has(> a[aria-current="page"]),
    .public-header .nav-dropdown.is-current-section {
        border-left: 3px solid #b31327;
        background: #f2f5fc;
    }

    .home-submenu-toggle {
        width: 44px;
        height: 44px;
    }

    .public-header .nav-dropdown-menu {
        position: static;
        grid-column: 1 / -1;
        display: none;
        width: auto;
        min-width: 0;
        max-width: none;
        margin: 0 0 12px 10px;
        padding: 4px 0 4px 12px;
        border: 0;
        border-left: 1px solid #d9e1f2;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        transition: none;
    }

    .public-header .nav-dropdown.is-submenu-open .nav-dropdown-menu {
        display: grid;
    }
}

@media (max-width: 600px) {
    .public-header .home-nav {
        width: calc(100% - 28px);
        gap: 8px;
    }

    .public-header .home-brand {
        gap: 8px;
    }

    .public-header .home-brand img {
        width: 42px;
        height: 42px;
    }

    .public-header .home-brand strong {
        font-size: 18px;
    }

    .public-header .home-brand small {
        display: none;
    }
}

@media (max-width: 600px) {
    .public-header .home-nav {
        flex-wrap: nowrap;
    }

    .public-header .home-nav:has(> .nav-action ~ .nav-action) {
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .public-header .home-nav:has(> .nav-action ~ .nav-action) .home-brand {
        flex-basis: calc(100% - 60px);
    }

    .public-header .home-nav > .nav-action {
        min-height: 40px;
        padding: 9px 10px;
        font-size: 12px;
        white-space: nowrap;
    }

}

@media (prefers-reduced-motion: reduce) {
    .public-header *,
    .public-header *::before,
    .public-header *::after {
        transition: none !important;
    }
}
