/* ── Mobile Bottom Tab Bar (< 768px) ──────────────────────────────
   Shown only on small screens; replaces hamburger for primary nav.
   Uses design tokens — dark mode works automatically.
──────────────────────────────────────────────────────────────────── */

.dmu-bottom-nav {
  display: none;
}

@media (max-width: 767.98px) {
  /* Push page content above the bar */
  body {
    padding-bottom: calc(56px + env(safe-area-inset-bottom));
  }

  .dmu-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(56px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--bg-raised);
    border-top: 1px solid var(--border-subtle);
    z-index: var(--z-sticky);
    align-items: stretch;
  }

  .dmu-bottom-nav__tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 6px 4px 4px;
    transition: color var(--duration-fast) var(--ease-default);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
  }

  .dmu-bottom-nav__tab:hover {
    color: var(--text-secondary);
    text-decoration: none;
  }

  .dmu-bottom-nav__tab.is-active {
    color: var(--text-accent);
  }

  .dmu-bottom-nav__icon {
    font-size: 1.35rem;
    line-height: 1;
  }

  .dmu-bottom-nav__label {
    line-height: 1;
  }
}

/* Hide the bottom nav on tablet/desktop regardless of DOM */
@media (min-width: 768px) {
  .dmu-bottom-nav {
    display: none !important;
  }
}
