/* Aravoca — mobile bottom navigation bar. */

.bottom-nav { display: none; }

@media (max-width: 860px) {
  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    height: 60px;
    background: white;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04);
    z-index: 90;
    padding-bottom: env(safe-area-inset-bottom, 0);
    font-family: Inter, system-ui, -apple-system, sans-serif;
  }

  .bottom-nav__item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #6b7280;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    transition: color 0.12s ease, background 0.12s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .bottom-nav__item:active {
    background: #f3f4f6;
  }
  .bottom-nav__item--active {
    color: #2f6f4f;
    font-weight: 600;
  }

  .bottom-nav__item svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.9;
  }
  .bottom-nav__item--active svg {
    stroke-width: 2.2;
  }

  /* Keep page content from hiding under the bar.
     Applied via body.has-bottom-nav (set by bottomnav.js on mount). */
  body.has-bottom-nav {
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0));
  }

  /* Lift the practice-page Audio error banner above the bar. */
  body.has-bottom-nav .audio-banner {
    bottom: calc(72px + env(safe-area-inset-bottom, 0));
  }
}
