/* ===== Default: Mobile-first ===== */
.top-menu {
    display: none;
}

.bottom-menu {
    display: none;
}

.bottom-menu-small {
    flex: 0 1 auto;
    width: 100%;
    min-height: 60px;
    display: flex;
    justify-content: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Menu list and item base styles (shared) */
.top-menu ul,
.bottom-menu ul,
.bottom-menu-small ul {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    gap: 0.5rem;
}

.top-menu li,
.bottom-menu li,
.bottom-menu-small li {
    flex: 0 0 auto;
    padding: 0.5rem 1rem;
    white-space: nowrap;
}

/* Menu link styles (shared) */
.top-menu a,
.bottom-menu a,
.bottom-menu-small a {
    text-decoration: none;
    display: block;
    padding: 0.5rem 1rem;
    color: inherit;
}

/* ===== Tablet & Desktop: breakpoint at 900px ===== */
@media (min-width: 900px) {
    .top-menu {
        display: flex;
        justify-content: center;
        width: 100%;
        max-width: 960px;
        margin: 0 auto;
        padding: 0 1rem;
    }

    .bottom-menu {
        display: flex;
        justify-content: center;
        width: 100%;
        max-width: 960px;
        margin: 0 auto;
        padding: 0 1rem;
    }

    .bottom-menu-small {
        display: none;
    }
}

/* ===== Below 900px: mobile layout ===== */
@media (max-width: 899px) {
    .top-menu {
        display: none;
    }

    .bottom-menu {
        display: none;
    }

    .bottom-menu-small {
        display: flex;
    }
}
