#ep-mobile-bottom-tabs {
    display: none !important;
}

@media screen and (max-width: 760px) {
    #ep-mobile-bottom-tabs {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 1000;
        background: var(--header-bg);
        border-top: 1px solid var(--header-border);
        padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -3px 15px rgba(0,0,0,.2);
    }

    #ep-mobile-bottom-tabs a {
        display: flex !important;
        visibility: visible !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        color: var(--header-text);
        opacity: 0.75;
        font-size: 12px;
        font-weight: 600;
        text-decoration: none;
        white-space: nowrap;
    }

    #ep-mobile-bottom-tabs a.ep-selected {
        color: var(--header-text);
        opacity: 1;
        font-weight: 800;
    }

    #ep-mobile-bottom-tabs svg {
        display: block;
        width: 25px;
        height: 25px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    #ep-mobile-bottom-spacer {
        height: calc(72px + env(safe-area-inset-bottom, 0px));
    }
}

/* Compact mobile hamburger menu */

@media screen and (max-width: 760px) {

    body #ep-mobile-menu:not([hidden]) {
        padding-top: 140px !important;
        padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)) !important;
        overflow-y: auto !important;
    }

    #ep-mobile-menu .ep-menu-intro h2 {
        font-size: 22px !important;
        line-height: 1.15 !important;
        margin-top: 8px !important;
        margin-bottom: 5px !important;
    }

    #ep-mobile-menu .ep-menu-intro {
        margin-bottom: 8px !important;
    }

    #ep-mobile-menu .ep-mobile-menu-links a {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    #ep-mobile-menu .ep-menu-footer {
        padding-top: 12px !important;
        top: 0 !important;
    }

    #ep-mobile-menu .ep-menu-footer p {
        margin-bottom: 6px !important;
    }

    #ep-mobile-menu .ep-menu-footer > span {
        margin-top: 5px !important;
    }

    #ep-mobile-menu .ep-menu-footer .ep-menu-author {
        margin-top: 5px !important;
        font-size: 13px !important;
        letter-spacing: 0 !important;
    }

}

