/* Mobile navigation. Only the hamburger and its panel — the desktop bar is
   untouched and still driven by the page's own classes. */

.mnav-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  margin-left: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #d1d5db;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.mnav-btn:hover,
.mnav-btn:active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(34, 211, 238, 0.4);
  color: #22d3ee;
}

@media (max-width: 767px) {
  .mnav-btn { display: inline-flex; }
}

.mnav-scrim {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.mnav-scrim.open { opacity: 1; pointer-events: auto; }

.mnav-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 9501;
  width: min(330px, 88vw);
  display: flex;
  flex-direction: column;
  background: #0b0b0e;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -24px 0 64px rgba(0, 0, 0, 0.7);
  transform: translateX(100%);
  transition: transform .26s cubic-bezier(.32, .72, 0, 1);
  overflow: hidden;
}
.mnav-panel.open { transform: translateX(0); }

.mnav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex: 0 0 auto;
}
.mnav-title {
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 700;
  color: #7c8595;
}
.mnav-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  color: #9ca3af;
  cursor: pointer;
}
.mnav-close:hover { background: rgba(255, 255, 255, 0.08); color: #f3f4f6; }

.mnav-list {
  display: flex;
  flex-direction: column;
  padding: 8px;
  gap: 1px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
}

/* Row: icon column, label + note, optional external marker. The icon column is
   fixed width so every label starts at the same x, which is what makes a list
   of twelve scannable. */
.mnav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 10px;
  text-decoration: none;
  transition: background .13s ease;
}
.mnav-link:hover,
.mnav-link:active { background: rgba(255, 255, 255, 0.055); }
.mnav-link.is-here { background: rgba(34, 211, 238, 0.1); }

.mnav-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #8d99ae;
}
.mnav-link:hover .mnav-icon {
  color: #22d3ee;
  border-color: rgba(34, 211, 238, 0.3);
}
.mnav-link.is-here .mnav-icon {
  color: #22d3ee;
  border-color: rgba(34, 211, 238, 0.38);
  background: rgba(34, 211, 238, 0.1);
}

.mnav-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1 1 auto;
}
.mnav-label {
  font-size: 14px;
  font-weight: 600;
  color: #e8eaed;
  line-height: 1.25;
}
.mnav-link.is-here .mnav-label { color: #22d3ee; }
.mnav-note {
  font-size: 11px;
  color: #6b7280;
  line-height: 1.3;
}

.mnav-ext {
  display: grid;
  place-items: center;
  color: #4b5563;
  flex: 0 0 auto;
}
.mnav-link:hover .mnav-ext { color: #22d3ee; }

@supports (padding: env(safe-area-inset-bottom)) {
  .mnav-list { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
}
