/* Responsive navigation for the public Habililab header. */
.habililab-page .hlab-menu-toggle,
.habililab-page .hlab-nav__mobile-cta {
    display: none;
}

@media (max-width: 820px) {
    .habililab-page .hlab-header {
        overflow: visible;
    }

    .habililab-page .hlab-header__inner {
        gap: 14px;
        justify-content: space-between;
        min-height: 72px;
    }

    .habililab-page .hlab-brand {
        min-width: 0;
    }

    .habililab-page .hlab-brand img {
        height: auto;
        max-height: 46px;
        width: min(168px, 48vw);
    }

    .habililab-page .hlab-header__cta {
        display: none;
    }

    .habililab-page .hlab-menu-toggle {
        align-items: center;
        background: rgba(1, 9, 30, 0.42);
        border: 1px solid rgba(0, 224, 255, 0.42);
        border-radius: 6px;
        cursor: pointer;
        display: flex;
        flex: 0 0 44px;
        flex-direction: column;
        gap: 5px;
        height: 44px;
        justify-content: center;
        padding: 0;
        width: 44px;
    }

    .habililab-page .hlab-menu-toggle span {
        background: #fafafa;
        border-radius: 2px;
        display: block;
        height: 2px;
        transition: transform 0.2s ease, opacity 0.2s ease;
        width: 22px;
    }

    .habililab-page .hlab-menu-toggle:hover,
    .habililab-page .hlab-menu-toggle:focus-visible {
        background: rgba(0, 224, 255, 0.16);
        border-color: #00e0ff;
        outline: none;
    }

    .habililab-page .hlab-header.is-menu-open .hlab-menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .habililab-page .hlab-header.is-menu-open .hlab-menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .habililab-page .hlab-header.is-menu-open .hlab-menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .habililab-page .hlab-nav {
        align-items: stretch;
        background: rgba(1, 9, 30, 0.98);
        border-bottom: 1px solid rgba(0, 224, 255, 0.32);
        box-shadow: 0 22px 40px rgba(1, 9, 30, 0.34);
        display: none;
        flex-direction: column;
        gap: 0;
        left: 0;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
        padding: 12px 20px;
        position: absolute;
        right: 0;
        top: 100%;
    }

    .habililab-page .hlab-header.is-menu-open .hlab-nav {
        display: flex;
    }

    .habililab-page .hlab-nav > a {
        border-bottom: 1px solid rgba(250, 250, 250, 0.1);
        color: #fafafa;
        font-size: 16px;
        padding: 15px 4px;
    }

    .habililab-page .hlab-nav > a:hover,
    .habililab-page .hlab-nav > a.is-active {
        color: #00e0ff;
    }

    .habililab-page .hlab-nav .hlab-nav__mobile-cta {
        align-items: center;
        background: #00e0ff;
        border: 0;
        border-radius: 6px;
        color: #003b73;
        display: flex;
        font-weight: 700;
        justify-content: center;
        margin: 12px 0 6px;
        padding: 14px 18px;
    }

    .habililab-page .hlab-nav .hlab-nav__mobile-cta:hover {
        background: #fafafa;
        color: #003b73;
    }
}
