/* Overlay menu. Hidden ONLY via .hidden — never display:none on the base rule. */

#mobile-menu.hidden {
  display: none !important;
}

#mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 4.5rem 1.25rem 2rem;
  background: #f3f3f4;
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
}

#mobile-menu #close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 999px;
  background: #fff;
  color: #111;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

#mobile-menu .mobile-menu-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  max-width: 42rem;
}

@media (min-width: 720px) {
  #mobile-menu .mobile-menu-cols {
    grid-template-columns: 17.5rem 17.5rem;
  }
}

#mobile-menu .mobile-menu-col {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  max-width: 17.5rem;
}

#mobile-menu .mobile-menu-col a,
#mobile-menu .menu-pill {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  color: #111;
  background: transparent;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.2;
}

#mobile-menu .mobile-menu-col a i,
#mobile-menu .menu-pill i {
  width: 1.1rem;
  font-size: 0.9rem;
  text-align: center;
  color: inherit;
}

#mobile-menu .mobile-menu-col a:hover {
  background: #fff;
}

#mobile-menu #close-btn:hover {
  background: linear-gradient(135deg, #7c5cfc 0%, #5b7cfa 100%);
  color: #fff;
}

#mobile-menu .mobile-menu-col a.is-active,
#mobile-menu .menu-pill.is-active {
  background: linear-gradient(135deg, #7c5cfc 0%, #5b7cfa 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(124, 92, 252, 0.28);
}

#mobile-menu .menu-pill.is-active .menu-pill-minus {
  margin-left: auto;
}

#mobile-menu .menu-sub {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0.15rem 0 0.35rem 1.15rem;
  padding-left: 0.85rem;
  border-left: 1px solid #d4d4d8;
}

#mobile-menu .menu-sub a.is-selected {
  background: #fff;
  color: #111;
}

#mobile-menu .menu-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.95rem 0.35rem;
  color: #71717a;
  font-size: 0.8rem;
  font-weight: 600;
}
