/* Package section nav — Manaslu Guides green, layout after kanchenjungaguides.com. */
.mg-pnav-spacer {
  margin: 1.5rem 0;
}

.mg-pnav {
  --mg-pnav-brand: #3f8f3f;
  --mg-pnav-panel: #e4f0e4;
  --mg-pnav-line: #cfe0cf;
  --mg-pnav-ink: #2f3d33;
  position: relative;
  z-index: 90;
  border-top: 1px solid var(--mg-pnav-line);
  border-bottom: 1px solid var(--mg-pnav-line);
  background: var(--mg-pnav-panel);
}
/* Do not transition `top` — it changes as the WP admin bar comes and goes. */
.mg-pnav.is-pinned {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 999;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.mg-pnav .mg-pnav-inner {
  padding-top: 0;
  padding-bottom: 0;
}
.mg-pnav-list {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.mg-pnav-list::-webkit-scrollbar { display: none; }
.mg-pnav-list > li {
  flex: 1 0 auto;
  min-width: 6.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mg-pnav-list > li::before { content: none; }

.mg-pnav .mg-pnav-link {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--mg-pnav-ink);
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}
.mg-pnav .mg-pnav-link:hover,
.mg-pnav .mg-pnav-link:focus-visible {
  background: #fff;
  color: var(--mg-pnav-brand);
  text-decoration: none;
}
.mg-pnav .mg-pnav-link:focus { outline: none; }
.mg-pnav .mg-pnav-link:focus-visible { outline: 2px solid var(--mg-pnav-brand); outline-offset: -2px; }
.mg-pnav .mg-pnav-link.is-active {
  background: var(--mg-pnav-brand);
  font-weight: 600;
  color: #fff;
}
.mg-pnav-ico {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .mg-pnav-list > li { min-width: 0; }
  .mg-pnav .mg-pnav-link { padding: 0.7rem 0.85rem; font-size: 0.8rem; }
}

/* The theme's own section nav never becomes visible; ours replaces it. */
#tth-package-nav.mg-pnav-replaced { display: none !important; }
