#public-mobile-nav-toggle {
    display: none;
    position: fixed;
    top: 0.35rem;
    left: 0.35rem;
    z-index: 11001;
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0.35rem 1rem rgba(32, 40, 72, 0.22);
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

#public-mobile-nav-toggle .line {
    position: absolute;
    left: 0.78rem;
    width: 1.2rem;
    height: 2px;
    background: #5f4b9a;
    border-radius: 10px;
    transform-origin: center;
    transition: transform 0.24s ease, opacity 0.2s ease;
}

#public-mobile-nav-toggle .line-1 {
    top: 0.9rem;
}

#public-mobile-nav-toggle .line-2 {
    top: 1.28rem;
}

#public-mobile-nav-toggle .line-3 {
    top: 1.66rem;
}

#public-mobile-nav-toggle.is-open .line-1 {
    transform: translateY(0.34rem) rotate(45deg);
}

#public-mobile-nav-toggle.is-open .line-2 {
    opacity: 0;
    transform: scaleX(0.2);
}

#public-mobile-nav-toggle.is-open .line-3 {
    transform: translateY(-0.34rem) rotate(-45deg);
}

#public-mobile-nav {
    display: none;
}

@media screen and (max-width: 980px) {
    #titleBar,
    #navPanel {
        display: none !important;
    }

    #nav,
    #header #nav {
        display: none !important;
    }

    #public-mobile-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px;
        max-width: 44px;
        min-height: 44px;
        max-height: 44px;
        flex: 0 0 44px;
        border-radius: 10px;
        padding: 0 !important;
        overflow: hidden;
        appearance: none;
        -webkit-appearance: none;
    }

    #public-mobile-nav-toggle .line {
        left: 12px;
        width: 20px;
    }

    #public-mobile-nav-toggle .line-1 {
        top: 14px;
    }

    #public-mobile-nav-toggle .line-2 {
        top: 20px;
    }

    #public-mobile-nav-toggle .line-3 {
        top: 26px;
    }

    #public-mobile-nav {
        display: none;
        position: fixed;
        top: 2.95rem;
        left: 0.35rem;
        right: auto;
        width: min(24rem, calc(100vw - 1.1rem));
        max-width: 24rem;
        max-height: calc(100vh - 3.35rem);
        overflow-y: auto;
        z-index: 11000;
        padding: 0.45rem 0.7rem;
        border-radius: 0.9rem;
        background: rgba(247, 247, 247, 0.98);
        backdrop-filter: blur(4px);
        box-shadow: 0 1rem 2.5rem rgba(32, 40, 72, 0.2);
    }

    #public-mobile-nav.is-open {
        display: block;
    }

    #public-mobile-nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    #public-mobile-nav li {
        margin: 0;
        padding: 0;
    }

    #public-mobile-nav li + li {
        border-top: 1px solid rgba(120, 135, 168, 0.3);
    }

    #public-mobile-nav li + li:has(> a.button.project-cta-button) {
        border-top: 0;
    }

    #public-mobile-nav a {
        display: flex;
        align-items: center;
        min-height: 2.75rem;
        text-align: left;
        padding: 0.55rem 0.4rem;
        margin: 0;
        border-radius: 0.6rem;
        text-decoration: none;
        color: #636363;
        opacity: 1;
        border: 0 !important;
        border-bottom: 0 !important;
        box-shadow: none !important;
    }

    #public-mobile-nav a.button.project-cta-button {
        margin-top: 0.4rem;
        justify-content: center;
        text-align: center;
        color: #ffffff !important;
        background: linear-gradient(90deg, #1e1e4c 0%, #4091bf 60%, #d88cab 100%);
        background-size: 200% 100%;
        background-position: 100% 0;
        border: 0 !important;
        box-shadow: 0 8px 18px rgba(30, 30, 76, 0.2) !important;
    }

    #public-mobile-nav a.button.project-cta-button:hover,
    #public-mobile-nav a.button.project-cta-button:focus {
        color: #ffffff !important;
        background-position: 0 0;
        box-shadow: 0 12px 24px rgba(30, 30, 76, 0.26) !important;
    }

    #public-mobile-nav a:hover,
    #public-mobile-nav a:focus {
        color: #3f3f3f;
        background: rgba(120, 135, 168, 0.08);
    }
}
