/* Mobile hamburger + drawer — shared by the demo pages */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    background: var(--navy);
    overflow: hidden;
    max-height: 0;
    transition: max-height .32s ease;
    position: sticky;
    top: 54px;
    z-index: 9;
}

.mobile-nav.open {
    max-height: 400px;
}

.mobile-nav a {
    display: block;
    padding: 14px 24px;
    color: rgba(255, 255, 255, .85);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    transition: background .13s, color .13s;
}

.mobile-nav a:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

@media (max-width: 980px) {
    .hamburger {
        display: flex;
    }

    .mobile-nav {
        display: block;
    }

    .nav {
        display: none !important;
    }
}
