/* ==========================================================================
   Bottom menu bar (phones and small tablets)
   ========================================================================== */

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    display: grid;
    grid-auto-flow: column;              /* equal columns for however many items there are */
    grid-auto-columns: minmax(0, 1fr);
}

.bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 12px;
    font-weight: 600;
    color: #4B3E66;
}

.bottom-nav__icon {
    width: 24px;
    height: 24px;
}

.bottom-nav__item.is-active {
    color: var(--color-primary);
    font-weight: 800;
}

/* Large screens: the same links are in the header (partials/header, .header-nav) */
@media (min-width: 1024px) {
    .bottom-nav {
        display: none;
    }
}
