:root {
    --hub-header-ink: #15233a;
    --hub-header-text: #526176;
    --hub-header-line: #dce4ec;
    --hub-header-green: #0b7a42;
    --hub-header-green-dark: #075d33;
    --hub-header-green-soft: #eaf7f0;
    --hub-header-transition: 220ms ease;
}

.hub-public-header *,
.hub-public-header *::before,
.hub-public-header *::after {
    box-sizing: border-box;
}

.hub-public-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--hub-header-line);
    backdrop-filter: blur(12px);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hub-public-header .site-container {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.hub-public-header .header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.hub-public-header .brand {
    display: inline-flex;
    align-items: center;
}

.hub-public-header .brand img {
    display: block;
    width: auto;
    height: 48px;
}

.hub-public-header .main-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hub-public-header .nav-link,
.hub-public-header .nav-action {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border-radius: 10px;
    color: var(--hub-header-text);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: color var(--hub-header-transition), background-color var(--hub-header-transition), transform var(--hub-header-transition);
}

.hub-public-header .nav-link:hover,
.hub-public-header .nav-link:focus-visible,
.hub-public-header .nav-link.is-current {
    color: var(--hub-header-green-dark);
    background: var(--hub-header-green-soft);
}

.hub-public-header .nav-action {
    margin-left: 6px;
    padding-inline: 20px;
    background: var(--hub-header-green);
    color: #fff;
}

.hub-public-header .nav-action:hover,
.hub-public-header .nav-action:focus-visible {
    background: var(--hub-header-green-dark);
    transform: translateY(-1px);
}

.hub-public-header .mobile-menu-button {
    display: none;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    border: 1px solid var(--hub-header-line);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.hub-public-header .mobile-menu-button > span:not(.sr-only) {
    width: 20px;
    height: 2px;
    background: var(--hub-header-ink);
    transition: transform var(--hub-header-transition), opacity var(--hub-header-transition);
}

.hub-public-header .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 720px) {
    .hub-public-header .site-container {
        width: min(100% - 32px, 1180px);
    }

    .hub-public-header .header-inner {
        min-height: 68px;
    }

    .hub-public-header .brand img {
        height: 40px;
    }

    .hub-public-header .mobile-menu-button {
        display: flex;
    }

    .hub-public-header .mobile-menu-button[aria-expanded="true"] > span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hub-public-header .mobile-menu-button[aria-expanded="true"] > span:nth-child(2) {
        opacity: 0;
    }

    .hub-public-header .mobile-menu-button[aria-expanded="true"] > span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hub-public-header .main-navigation {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        display: grid;
        gap: 5px;
        padding: 14px 16px 18px;
        border-bottom: 1px solid var(--hub-header-line);
        background: #fff;
        box-shadow: 0 18px 32px rgba(20, 35, 58, 0.12);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 180ms ease, transform var(--hub-header-transition), visibility 180ms ease;
    }

    .hub-public-header .main-navigation.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .hub-public-header .nav-link,
    .hub-public-header .nav-action {
        justify-content: flex-start;
        margin: 0;
        padding-inline: 14px;
    }

    .hub-public-header .nav-action {
        justify-content: center;
        margin-top: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hub-public-header .nav-link,
    .hub-public-header .nav-action,
    .hub-public-header .mobile-menu-button > span:not(.sr-only),
    .hub-public-header .main-navigation {
        transition-duration: 1ms;
    }
}
