/* ─────────────────────────────────────────
   SHARED MOBILE BOTTOM NAV
   Used by standalone mobile pages (Layout = null) whose root wrapper is a
   `position:fixed; inset:0; display:flex; flex-direction:column` shell —
   this nav sits as the last flex child (flex-shrink:0), not fixed itself.
   Markup comes from Pages/Shared/_MobileBottomNav.cshtml.
───────────────────────────────────────── */
.mnav-bottom-nav {
  flex-shrink: 0;
  height: 64px;
  background: #ffffff;
  border-top: 1px solid rgba(12,68,124,0.12);
  display: flex;
  align-items: stretch;
  padding: 0 8px;
  box-shadow: 0 -4px 16px rgba(0,0,0,.06);
  z-index: 100;
}

/* Home and Settings stay put; only the middle strip scrolls so more
   buttons can be added later without shrinking every item to fit. */
.mnav-scroll-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.mnav-scroll {
  display: flex;
  align-items: center;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.mnav-scroll::-webkit-scrollbar {
  display: none;
}

.mnav-scroll-wrap::before,
.mnav-scroll-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.15s;
}

.mnav-scroll-wrap::before {
  left: 0;
  background: linear-gradient(to right, #ffffff, rgba(255,255,255,0));
}

.mnav-scroll-wrap::after {
  right: 0;
  background: linear-gradient(to left, #ffffff, rgba(255,255,255,0));
}

.mnav-scroll-wrap.can-scroll-left::before,
.mnav-scroll-wrap.can-scroll-right::after {
  opacity: 1;
}

.mnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  flex: 1;
  padding: 8px 4px;
  border-radius: 10px;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
  /* Some pages render nav items as <a href> rather than <div onclick> —
     reset link defaults so they look identical either way. */
  text-decoration: none;
  color: inherit;
}

.mnav-item:active {
  background: rgba(12,68,124,0.07);
}

.mnav-item-fixed {
  flex: 0 0 auto;
  width: 72px;
}

.mnav-scroll .mnav-item {
  flex: 0 0 auto;
  min-width: 72px;
  scroll-snap-align: center;
}

.mnav-icon {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 20px;
  line-height: 1;
  color: rgba(12,68,124,0.5);
  transition: color 0.15s;
}

.mnav-label {
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(12,68,124,0.5);
  transition: color 0.15s;
}

.mnav-item.active .mnav-icon,
.mnav-item.active .mnav-label {
  color: #0C447C;
}
