:root {
    --dha-nav-green: #009b3a;
    --dha-nav-hover: #fed100;
    --dha-nav-active: #ffd933;
}

.dha-mobile-toolbar { display: none; }

@media (max-width: 959px) {
    .dha-mobile-nav-enabled #site-header #oceanwp-mobile-menu-icon { display: none; }

    .dha-mobile-nav-enabled .dha-mobile-toolbar {
        position: fixed;
        z-index: 9999;
        inset: auto 0 0;
        display: flex;
        justify-content: center;
        padding: 5px 12px calc(5px + env(safe-area-inset-bottom, 0px));
        background: #000;
        border-top: 1px solid var(--dha-nav-green);
        transition: transform .2s ease, visibility .2s;
    }

    .dha-mobile-toolbar.is-hidden {
        transform: translateY(100%);
        visibility: hidden;
    }

    .dha-mobile-toolbar .dha-mobile-toggle {
        min-width: 9rem;
        min-height: 48px;
        padding: 0 1rem;
        background: var(--dha-nav-green);
        border: 0;
        border-radius: 4px;
        color: #000;
        font: inherit;
        font-weight: 700;
    }

    .dha-mobile-toolbar .dha-mobile-toggle[aria-expanded="true"],
    .dha-mobile-toolbar .dha-mobile-toggle:hover {
        background: var(--dha-nav-hover);
        color: #000;
    }

    #dha-mobile-panel {
        position: absolute;
        inset: auto 0 100%;
        max-height: 65vh;
        max-height: 65dvh;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: #000;
        border-top: 1px solid var(--dha-nav-green);
    }

    #dha-mobile-panel[hidden] { display: none; }
    #dha-mobile-panel ul { list-style: none; margin: 0; padding: 0; }
    #dha-mobile-panel ul ul { padding-inline-start: 1rem; }

    #dha-mobile-panel a {
        display: flex;
        align-items: center;
        min-height: 48px;
        padding: .5rem 1rem;
        border-bottom: 1px solid #27432f;
        color: var(--dha-nav-green);
        line-height: 1.35;
    }

    #dha-mobile-panel a:hover { color: var(--dha-nav-hover); }
    #dha-mobile-panel .current-menu-item > a,
    #dha-mobile-panel .current-menu-ancestor > a { color: var(--dha-nav-active); }

    .dha-mobile-toolbar :focus-visible {
        outline: 2px solid var(--dha-nav-hover);
        outline-offset: -3px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dha-mobile-nav-enabled .dha-mobile-toolbar { transition: none; }
}
