/* ==========================================================================
   Mobile bottom navigation bar (app-like) — loaded on every page
   Shows only on mobile, never overlays content (body gets bottom padding)
   ========================================================================== */

.mw-bottom-nav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 900;
    display: none;
    align-items: stretch;
    justify-content: space-around;
    background: #fff;
    border-top: 1px solid var(--it-border, #e2e6ec);
    box-shadow: 0 -4px 16px rgba(15, 23, 42, .06);
    padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 0px));
}

.mw-bottom-nav .mw-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1 1 0;
    min-width: 0;
    padding: 6px 8px;
    border-radius: 12px;
    color: #93a1b5;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: color .2s ease, background .2s ease;
}
.mw-bottom-nav .mw-nav-item i {
    font-size: 20px;
    line-height: 1;
}
.mw-bottom-nav .mw-nav-item:hover,
.mw-bottom-nav .mw-nav-item:focus-visible {
    color: var(--it-theme-1, #1F3E6C);
    background: rgba(31, 62, 108, .06);
}
.mw-bottom-nav .mw-nav-item.active {
    color: var(--it-theme-1, #1F3E6C);
    background: rgba(31, 62, 108, .08);
}
.mw-bottom-nav .mw-nav-item.active i { transform: translateY(-1px); }

@media (max-width: 767.98px) {
    .mw-bottom-nav { display: flex; }
    /* reserve space so the bar never covers page content */
    body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
    .mw-bottom-nav .scroll-top { bottom: 84px; }
}