.announcement-banner {
    width: 100%;
    background: var(--announcement-banner-bg, #102038);
    color: var(--announcement-banner-text, #ffffff);
    display: block !important;
    min-height: 44px;
    overflow: hidden;
    opacity: 1 !important;
    visibility: visible !important;
}

.announcement-banner-track {
    width: min(1120px, calc(100% - 32px));
    min-height: 44px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.announcement-banner-item {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 44px;
    opacity: 1;
    background: var(--announcement-banner-bg, #102038);
    color: var(--announcement-banner-text, #ffffff);
    transition: none;
}

.announcement-banner-carousel .announcement-banner-track {
    display: grid;
    align-items: center;
    justify-content: stretch;
}

.announcement-banner-carousel .announcement-banner-item {
    grid-area: 1 / 1;
    flex: 1 1 auto;
    min-width: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: none;
    transition: none;
}

.announcement-banner-carousel .announcement-banner-item.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}

.announcement-banner-item.is-active {
    opacity: 1;
}

.announcement-banner-title {
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 700;
}

.announcement-banner-link {
    flex: 0 0 auto;
    color: var(--announcement-banner-text, #ffffff);
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(16, 32, 56, 0.08);
    box-shadow: 0 10px 30px rgba(16, 32, 56, 0.08);
    backdrop-filter: blur(18px);
    overflow: visible;
}

.site-header,
.site-header-primary,
.site-header-inner,
.site-header-secondary,
.site-header-secondary-inner,
.announcement-banner,
.announcement-banner-track {
    contain: layout paint;
}

.site-header,
.site-header *,
.site-header *::before,
.site-header *::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
}

.site-header-primary {
    width: 100%;
}

.site-header-inner {
    width: min(1120px, calc(100% - 32px));
    min-height: 88px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-header-inner > .brand {
    flex: 0 0 auto;
}

.site-header-secondary {
    width: 100%;
    border-top: 1px solid rgba(16, 32, 56, 0.06);
    background: rgba(247, 250, 254, 0.72);
}

.site-header-secondary-inner {
    width: min(1120px, calc(100% - 32px));
    min-height: 52px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.site-header-secondary-inner > .simple-menu {
    flex: 0 0 auto;
}

.site-header-actions {
    display: grid;
    grid-template-columns: repeat(2, 44px);
    grid-auto-flow: column;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}

html.has-header-auth-session .site-header-actions {
    grid-template-columns: repeat(4, 44px);
}

.site-header-actions > [data-header-icon-id="home"] {
    order: 1;
}

.site-header-actions > .header-notifications {
    width: 44px;
    height: 44px;
    order: 2;
}

.site-header-actions > .header-messages-link {
    order: 3;
}

.site-header-actions > .header-profile-link {
    order: 2;
}

html.has-header-auth-session .site-header-actions > .header-profile-link {
    order: 4;
}

.site-header-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex: 0 0 auto;
}

.site-header-desktop-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.site-header-super-menus {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.site-header-super-menus .super-menu-button {
    justify-content: center;
}

.site-header-action {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    color: var(--muted);
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    transition:
            color 180ms ease,
            background-color 180ms ease,
            border-color 180ms ease,
            box-shadow 180ms ease;
    -webkit-tap-highlight-color: transparent;
}

.site-header-action.super-menu-button {
    min-height: 0;
    padding: 0;
    font-size: inherit;
    line-height: 0;
}

.site-header-actions .header-auth-menu {
    display: inline-flex;
}

.site-header-actions .header-notifications {
    display: inline-flex;
}

.site-header-actions [data-header-auth-slot] {
    flex: 0 0 auto;
}

.site-header-actions [data-header-auth-slot].is-auth-locked {
    display: none !important;
    pointer-events: none;
    visibility: hidden;
}

html.has-header-auth-session .site-header-actions > .header-notifications.is-auth-locked {
    display: inline-flex !important;
    pointer-events: auto;
    visibility: visible;
}

html.has-header-auth-session .site-header-actions > .header-messages-link.is-auth-locked {
    display: inline-grid !important;
    pointer-events: auto;
    visibility: visible;
}

.site-header-actions [data-auth-required][hidden],
.site-header-action[hidden],
.header-notifications[hidden] {
    display: none !important;
}

.header-notification-trigger {
    position: relative;
    display: inline-grid;
    place-items: center;
}

.header-notification-badge {
    position: absolute;
    top: -9px;
    right: -11px;
    min-width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    padding: 0 5px;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: #b42318;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
}

.header-notification-badge[hidden] {
    display: none;
}

.header-notifications-panel {
    width: min(480px, 100%);
    display: grid;
    gap: 14px;
    margin: 0 auto;
}

.header-notifications-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.header-notifications-title,
.header-notifications-status,
.header-notification-item-title,
.header-notification-item-meta {
    margin: 0;
}

.header-notifications-title {
    color: var(--brand-deep);
    font-size: 1.1rem;
    font-weight: 900;
}

.header-notifications-link {
    color: var(--brand-deep);
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
}

.header-notifications-status {
    padding: 16px;
    color: var(--muted);
    border: 1px solid rgba(16, 32, 56, 0.08);
    border-radius: 8px;
    background: rgba(247, 250, 254, 0.82);
    font-weight: 700;
    line-height: 1.45;
}

.header-notifications-list {
    display: grid;
    gap: 8px;
}

.header-notification-item {
    display: grid;
    gap: 6px;
    padding: 14px;
    color: var(--muted);
    border: 1px solid rgba(16, 32, 56, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    text-decoration: none;
}

.header-notification-item-title {
    color: var(--brand-deep);
    font-weight: 900;
    line-height: 1.35;
}

.header-notification-item-meta {
    font-size: 0.78rem;
    font-weight: 800;
}

.header-hamburger {
    display: none;
    position: relative;
    flex: 0 0 auto;
}

.header-hamburger-button {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: var(--muted);
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    list-style: none;
    transition:
            color 180ms ease,
            background-color 180ms ease,
            border-color 180ms ease,
            box-shadow 180ms ease;
    -webkit-tap-highlight-color: transparent;
}

.header-hamburger-button::-webkit-details-marker {
    display: none;
}

.header-hamburger-button::marker {
    content: "";
}

.header-menu-icon,
.header-close-icon {
    grid-area: 1 / 1;
    display: inline-grid;
    place-items: center;
}

.header-close-icon {
    display: none;
}

.header-close-button {
    display: inline-grid;
    place-items: center;
}

.header-hamburger[open] .header-menu-icon {
    display: none;
}

.header-hamburger[open] .header-close-icon {
    display: inline-grid;
}

.header-hamburger-button:focus-visible {
    outline: 3px solid rgba(73, 126, 214, 0.28);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(73, 126, 214, 0.16);
}

.header-hamburger[open] .header-hamburger-button,
.header-hamburger-button:hover {
    color: var(--brand-deep);
    background: rgba(31, 75, 153, 0.06);
    border-color: rgba(31, 75, 153, 0.1);
}

.header-hamburger-panel {
    position: fixed;
    top: var(--site-header-height, 140px);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 150;
    width: 100vw;
    max-width: 100vw;
    height: calc(100dvh - var(--site-header-height, 140px));
    max-height: calc(100dvh - var(--site-header-height, 140px));
    display: grid;
    align-content: start;
    gap: 18px;
    padding: 24px max(16px, calc((100vw - 1120px) / 2));
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid rgba(16, 32, 56, 0.1);
    border-radius: 0;
    box-shadow: 0 24px 60px rgba(16, 32, 56, 0.16);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
}

.header-hamburger-panel[hidden] {
    display: none !important;
}

.header-hamburger-panel .menu,
.header-hamburger-panel .menu-list {
    width: 100%;
}

.header-hamburger-panel .menu-list {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.header-hamburger-panel .menu-simple .menu-list {
    gap: 10px;
}

.header-hamburger-panel .menu-link {
    width: 100%;
    justify-content: flex-start;
}

.header-hamburger-panel .header-cta {
    width: 100%;
    max-inline-size: none;
    justify-content: center;
}

.header-hamburger-super-menus {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.header-hamburger-super-menus .super-menu {
    width: 100%;
}

.header-hamburger-super-menus .super-menu-button {
    width: 100%;
    justify-content: space-between;
}

.header-hamburger-panel .super-menu-panel {
    z-index: 40;
}

@media (hover: hover) {
    .site-header-action:hover {
        color: var(--brand-deep);
        background: rgba(31, 75, 153, 0.06);
        border-color: rgba(31, 75, 153, 0.1);
    }
}

.site-header-action:focus-visible {
    outline: 3px solid rgba(73, 126, 214, 0.28);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(73, 126, 214, 0.16);
}

.site-header-action[aria-current="page"] {
    color: var(--brand-deep);
    background: rgba(31, 75, 153, 0.08);
    border-color: rgba(31, 75, 153, 0.14);
}

@media (max-width: 640px) {
    .announcement-banner-track {
        width: min(100% - 20px, 1120px);
        min-height: 48px;
    }

    .announcement-banner-item {
        justify-content: center;
        gap: 12px;
        min-height: 48px;
        text-align: center;
    }

    .announcement-banner-title {
        flex: 0 1 auto;
        font-size: 0.82rem;
    }

    .announcement-banner-link {
        font-size: 0.8rem;
    }

    .site-header-inner {
        width: min(100% - 20px, 1120px);
        min-height: 72px;
        gap: 16px;
    }

    .site-header-secondary-inner {
        width: min(100% - 20px, 1120px);
        min-height: 48px;
        gap: 16px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .site-header-secondary-inner::-webkit-scrollbar {
        display: none;
    }

    .site-header-actions {
        gap: 4px;
    }

    .site-header-controls {
        gap: 8px;
    }

    .site-header-desktop-cta,
    .site-header-super-menus,
    .site-header-secondary {
        display: none;
    }

    .header-hamburger {
        display: block;
    }

    .site-header-action {
        width: 40px;
        height: 40px;
    }

    .header-hamburger-button {
        width: 40px;
        height: 40px;
    }

    .header-hamburger-panel {
        top: var(--site-header-height, 72px);
        height: calc(100dvh - var(--site-header-height, 72px));
        max-height: calc(100dvh - var(--site-header-height, 72px));
        padding: 20px 16px;
    }

    .header-hamburger-super-menus {
        grid-template-columns: 1fr;
    }
}
