/* Mobile tab nav — landing-safe (does not restyle body / ASCII art). */

.app-mobile-nav {
    padding: 0.45rem 0.75rem 0.65rem;
    width: 100%;
    box-sizing: border-box;
}

/* Landing pages don't load Bootstrap, so d-md-none is a no-op there. */
@media (min-width: 768px) {
    .app-mobile-nav {
        display: none !important;
    }
}

/* Match /blog. Landing has no data-bs-theme, so the component's
   light defaults (#ebebeb / white thumb) would otherwise win. */
.app-mobile-nav tab-switcher.app-mobile-nav__switcher {
    margin-bottom: 0;
    width: 100%;
    background: #2a2a2a;
    border: 0;
    border-radius: 10px;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.2;
}

.app-mobile-nav tab-item {
    color: #c8c8c8;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: lowercase;
    min-width: 0;
}

.app-mobile-nav tab-item[selected] {
    color: #f0f0f0;
}

.app-mobile-nav tab-switcher .thumb {
    background: #3d3d3d;
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.app-mobile-nav tab-item .hold-glow {
    background: rgba(255, 255, 255, 0.12);
}

.app-mobile-nav__misc-tab {
    padding: 0;
    opacity: 1;
}

.app-mobile-nav__misc-tab .label {
    display: flex;
    width: 100%;
    height: 100%;
}

.app-mobile-nav__misc {
    width: 100%;
    flex-direction: row;
}

.app-mobile-nav__misc > .nav-item {
    width: 100%;
}

.app-mobile-nav__misc .nav-link {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 10px 12px;
    color: inherit !important;
    text-transform: lowercase;
    letter-spacing: 0.04em;
}

.app-mobile-nav__misc .nav-link.active,
.app-mobile-nav tab-item[selected] .nav-link {
    color: #f0f0f0 !important;
}

.app-mobile-nav__misc .dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 40;
    min-width: 12rem;
    margin: 0.25rem 0 0;
    padding: 0.4rem 0;
    list-style: none;
    background-color: #1c1a1e;
    border: 1px solid rgba(200, 200, 200, 0.14);
    border-radius: 0.25rem;
}

.app-mobile-nav__misc .dropdown-menu.show {
    display: block;
}

.app-mobile-nav__misc .dropdown {
    position: relative;
}

.app-mobile-nav__misc .dropdown-item {
    color: #c8c8c8;
}

.app-mobile-nav__misc .dropdown-item:hover,
.app-mobile-nav__misc .dropdown-item:focus {
    background-color: rgba(76, 100, 184, 0.2);
    color: #f0f0f0;
}

.app-mobile-nav__misc .dropdown-item.logout {
    width: 100%;
    text-align: left;
    text-transform: lowercase;
    letter-spacing: 0.04em;
    background: transparent;
    border: 0;
    color: #c8c8c8;
}

/* Landing pages are a centered column; pin the mobile nav to the top. */
body:not(.app-shell) > .app-mobile-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
}

/* Quadrate's stylesheet zeros padding, so the grid otherwise sits under the nav. */
@media (max-width: 767.98px) {
    body:not(.app-shell) > .grid-container {
        margin-top: 4.25rem;
    }
}
