/* Shared mobile nav wheel styles — extracted from mobile.css.
   Used by base.html (transitively, via mobile.css) and by landing.html
   (directly, since landing doesn't load mobile.css to avoid the .hero-*
   collision that broke hero typography in PR #293).

   Keep these rules in sync with the .bz-mobile-nav-* block in mobile.css
   (currently lines ~52-262 + 1188-1204).
   ───────────────────────────────────────────────────────────────────── */

@media (max-width: 991px) {
    body.bz-mobile-nav-open {
        overflow: hidden;
    }
    body.bz-mobile-nav-open .bz-mobile-nav-backdrop {
        opacity: 1;
        pointer-events: auto;
    }
    body.bz-mobile-nav-open .bz-mobile-nav-sheet {
        transform: translateY(var(--bz-mobile-nav-drag, 0px));
    }
    .bz-mobile-nav-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1800;
        background: rgba(4, 8, 14, 0.72);
        backdrop-filter: blur(14px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.22s ease;
    }
    .bz-mobile-nav-sheet {
        --bz-mobile-nav-drag: 0px;
        --bz-mobile-nav-option-height: 56px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1810;
        height: min(64svh, 520px);
        padding: 8px 12px calc(16px + env(safe-area-inset-bottom));
        background: #05070c;
        border-top: 1px solid rgba(255,255,255,.16);
        border-radius: 24px 24px 0 0;
        box-shadow: 0 -20px 56px rgba(0,0,0,.76);
        transform: translateY(calc(100% + var(--bz-mobile-nav-drag, 0px)));
        transition: transform 0.28s cubic-bezier(.22,.8,.24,1);
        will-change: transform;
    }
    .bz-mobile-nav-sheet::before {
        content: "";
        position: absolute;
        left: 18px;
        right: 18px;
        top: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,.34), transparent);
        pointer-events: none;
    }
    .bz-mobile-nav-sheet.is-dragging {
        transition: none;
    }
    .bz-mobile-nav-sheet-inner {
        position: relative;
        height: 100%;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .bz-mobile-nav-close {
        position: absolute;
        top: 4px;
        right: 4px;
        z-index: 5;
        width: 38px;
        height: 38px;
        border: none;
        border-radius: 50%;
        background: transparent;
        color: rgba(240,246,252,.86);
        font-size: 19px;
        font-weight: 400;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: transparent;
    }
    .bz-mobile-nav-close::before {
        content: "";
        position: absolute;
        inset: 6px;
        border: 1px solid rgba(255,255,255,.12);
        border-radius: 50%;
        background: rgba(255,255,255,.08);
        z-index: -1;
    }
    .bz-mobile-nav-close:active::before {
        background: rgba(255,255,255,.16);
    }
    .bz-mobile-nav-close:active {
        color: #fff;
    }
    .bz-mobile-nav-handle-wrap {
        display: flex;
        justify-content: center;
        align-items: center;
        align-self: center;
        width: min(168px, 48vw);
        min-height: 42px;
        margin: 0 auto;
        padding: 11px 38px 9px;
        border: 1px solid rgba(255,255,255,.07);
        border-radius: 999px;
        background: rgba(255,255,255,.045);
        -webkit-tap-highlight-color: transparent;
    }
    .bz-mobile-nav-handle {
        width: 54px;
        height: 5px;
        border-radius: 999px;
        background: rgba(255,255,255,.48);
        box-shadow: 0 0 0 1px rgba(255,255,255,.08);
    }
    .bz-mobile-nav-handle-wrap:focus {
        outline: none;
    }
    .bz-mobile-nav-handle-wrap:active .bz-mobile-nav-handle {
        background: rgba(255,255,255,.3);
    }
    .bz-mobile-nav-wheel-shell {
        position: relative;
        flex: 1;
        min-height: 0;
        overflow: hidden;
        border-radius: 0;
        background: transparent;
        border: none;
    }
    .bz-mobile-nav-wheel-shell::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 3;
        pointer-events: none;
        background: linear-gradient(180deg,
            rgba(5, 7, 12, 1) 0%,
            rgba(5, 7, 12, 0.62) 10%,
            rgba(5, 7, 12, 0) 24%,
            rgba(5, 7, 12, 0) 76%,
            rgba(5, 7, 12, 0.66) 90%,
            rgba(5, 7, 12, 1) 100%);
    }
    .bz-mobile-nav-wheel-focus {
        display: none;
    }
    .bz-mobile-nav-wheel {
        position: relative;
        z-index: 2;
        height: 100%;
        overflow-y: auto;
        overscroll-behavior: contain;
        scroll-snap-type: y mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        touch-action: pan-y;
        padding-inline: 0;
    }
    .bz-mobile-nav-wheel::-webkit-scrollbar {
        display: none;
    }
    .bz-mobile-nav-option {
        width: 100%;
        min-height: 56px;
        border: none;
        background: transparent;
        color: rgba(240,246,252,.26);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 14px;
        font-size: 22px;
        line-height: 1;
        font-weight: 700;
        letter-spacing: 0;
        text-align: center;
        user-select: none;
        scroll-snap-align: center;
        transition: color 0.16s ease, opacity 0.16s ease, transform 0.16s ease;
        transform: scale(0.72);
        opacity: 0.38;
    }
    .bz-mobile-nav-option.is-neighbor {
        color: rgba(240,246,252,.6);
        transform: scale(0.84);
        opacity: 0.72;
    }
    .bz-mobile-nav-option.is-active {
        color: #ffffff;
        transform: scale(1.2);
        opacity: 1;
        text-shadow: 0 10px 24px rgba(255,255,255,.14);
    }
    .bz-mobile-nav-option.is-distant {
        transform: scale(0.66);
    }
    .bz-mobile-nav-open-btn {
        width: 100%;
        min-height: 56px;
        border: 1px solid rgba(255,255,255,.12);
        border-radius: 18px;
        background: rgba(255,255,255,.08);
        color: #f0f6fc;
        font-size: 16px;
        font-weight: 700;
        letter-spacing: 0.01em;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
        -webkit-tap-highlight-color: transparent;
    }
    .bz-mobile-nav-open-btn:active {
        background: rgba(255,255,255,.14);
    }
}

@media (max-width: 576px) {
    .bz-mobile-nav-sheet {
        height: min(64svh, 520px);
        padding-left: 12px;
        padding-right: 12px;
    }
    .bz-mobile-nav-handle-wrap {
        width: min(168px, 48vw);
        min-height: 42px;
        padding: 11px 38px 9px;
    }
    .bz-mobile-nav-option {
        min-height: 54px;
        font-size: 23px;
    }
    .bz-mobile-nav-open-btn {
        min-height: 54px;
    }
}
