:root {
  --mho-nav-forest: #254c43;
  --mho-nav-forest-active: #37665b;
  --mho-nav-forest-pressed: #315b52;
  --mho-nav-ivory: #f8f7f3;
  --mho-nav-text: #ffffff;
  --mho-nav-muted: #d7e4de;
  --mho-nav-gold: #d8ba8a;
  --mho-nav-border: rgba(255, 255, 255, 0.16);
  --mho-nav-shadow: -18px 0 48px rgba(16, 39, 34, 0.3);
}

.mho-mobile-drawer,
.mho-mobile-drawer *,
.mho-mobile-drawer *::before,
.mho-mobile-drawer *::after,
.mho-mobile-toggle {
  box-sizing: border-box !important;
}

body.mho-mobile-nav-open {
  overflow: hidden !important;
  overscroll-behavior: none;
  touch-action: none;
}

.mho-mobile-toggle {
  position: fixed !important;
  z-index: 1202 !important;
  top: max(14px, env(safe-area-inset-top)) !important;
  right: max(14px, env(safe-area-inset-right)) !important;
  width: 48px !important;
  height: 48px !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px !important;
  padding: 10px !important;
  border: 1px solid rgba(37, 76, 67, 0.16) !important;
  border-radius: 12px !important;
  background: var(--mho-nav-ivory) !important;
  box-shadow: 0 8px 24px rgba(16, 39, 34, 0.14) !important;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mho-mobile-toggle .line,
.mho-mobile-toggle > span:not(.sr-only) {
  width: 24px !important;
  height: 2px !important;
  display: block;
  border-radius: 2px;
  background: var(--mho-nav-forest) !important;
  transition: transform 180ms ease, opacity 180ms ease !important;
}

.mho-mobile-toggle[aria-expanded="true"] .line:nth-child(1),
.mho-mobile-toggle[aria-expanded="true"] > span:nth-of-type(2) {
  transform: translateY(7px) rotate(45deg) !important;
}

.mho-mobile-toggle[aria-expanded="true"] .line:nth-child(2),
.mho-mobile-toggle[aria-expanded="true"] > span:nth-of-type(3) {
  opacity: 0 !important;
}

.mho-mobile-toggle[aria-expanded="true"] .line:nth-child(3),
.mho-mobile-toggle[aria-expanded="true"] > span:nth-of-type(4) {
  transform: translateY(-7px) rotate(-45deg) !important;
}

.mho-mobile-overlay {
  position: fixed !important;
  z-index: 1200 !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  background: rgba(15, 27, 24, 0.58) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.mho-mobile-overlay.visible,
body.landing-menu-open .mho-mobile-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mho-mobile-drawer {
  position: fixed !important;
  z-index: 1201 !important;
  inset: 0 0 0 auto !important;
  width: min(88vw, 360px) !important;
  max-width: calc(100vw - 32px) !important;
  height: 100dvh !important;
  min-height: 100svh;
  display: flex !important;
  flex-direction: column;
  overflow: hidden !important;
  border: 0 !important;
  border-left: 1px solid var(--mho-nav-border) !important;
  border-radius: 22px 0 0 22px !important;
  background: var(--mho-nav-forest) !important;
  color: var(--mho-nav-text) !important;
  font-family: Inter, system-ui, sans-serif !important;
  box-shadow: var(--mho-nav-shadow) !important;
  transform: translateX(102%) !important;
  visibility: hidden;
  opacity: 1 !important;
  transition: transform 240ms cubic-bezier(.2, .8, .2, 1), visibility 240ms ease !important;
}

.mho-mobile-drawer.global-menu-drawer {
  padding: 0 18px max(20px, env(safe-area-inset-bottom)) !important;
}

.mho-mobile-drawer.global-menu-drawer .mho-mobile-header {
  flex: 0 0 auto;
}

.mho-mobile-drawer.global-menu-drawer .mho-mobile-links {
  width: 100%;
}

.mho-mobile-toggle[aria-expanded="true"] {
  display: none !important;
}

.mho-mobile-drawer[hidden],
.mho-mobile-overlay[hidden] {
  display: none !important;
}

.mho-mobile-drawer.open,
.mho-mobile-drawer.is-open,
body.landing-menu-open .mho-mobile-drawer:not([hidden]) {
  transform: translateX(0) !important;
  visibility: visible;
}

.mho-mobile-panel {
  width: 100% !important;
  min-height: 100%;
  display: flex !important;
  flex-direction: column;
  margin: 0 !important;
  padding: 0 18px max(20px, env(safe-area-inset-bottom)) !important;
}

.mho-mobile-header {
  position: sticky;
  z-index: 2;
  top: 0;
  min-height: calc(76px + env(safe-area-inset-top));
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(12px, env(safe-area-inset-top)) 2px 12px !important;
  border-bottom: 1px solid var(--mho-nav-border) !important;
  background: var(--mho-nav-forest) !important;
}

.mho-mobile-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--mho-nav-text) !important;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  min-width: 0;
  white-space: nowrap;
}

.mho-mobile-brand img {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  background: var(--mho-nav-ivory);
  object-fit: cover;
}

.mho-mobile-brand em {
  color: var(--mho-nav-gold);
  font-style: normal;
}

.mho-mobile-close {
  position: relative;
  width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  box-sizing: border-box !important;
  flex: 0 0 44px !important;
  padding: 0;
  border: 1px solid rgba(37, 76, 67, .14) !important;
  border-radius: 12px !important;
  background: var(--mho-nav-ivory) !important;
  cursor: pointer;
  transform: none !important;
  box-shadow: none !important;
}

.mho-mobile-close:hover,
.mho-mobile-close:focus-visible {
  background: var(--mho-nav-ivory) !important;
}

.mho-mobile-close::before,
.mho-mobile-close::after {
  content: "";
  position: absolute;
  top: 21px;
  left: 10px;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--mho-nav-forest);
}

.mho-mobile-close::before { transform: rotate(45deg); }
.mho-mobile-close::after { transform: rotate(-45deg); }
.mho-mobile-close > span { display: none !important; }

.mho-mobile-language {
  display: grid !important;
  grid-template-columns: repeat(2, 44px);
  gap: 8px !important;
  width: max-content !important;
  margin: 14px 2px 10px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.mho-mobile-language button {
  width: 44px !important;
  height: 40px !important;
  min-width: 44px !important;
  min-height: 40px !important;
  padding: 0 !important;
  border: 1px solid var(--mho-nav-border) !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,.08) !important;
  color: var(--mho-nav-text) !important;
  font-size: .8rem !important;
  font-weight: 800 !important;
  cursor: pointer;
}

.mho-mobile-language button.active,
.mho-mobile-language button[aria-pressed="true"] {
  border-color: var(--mho-nav-gold) !important;
  background: var(--mho-nav-gold) !important;
  color: var(--mho-nav-forest) !important;
}

.mho-mobile-links {
  flex: 1;
  min-height: 0;
  display: flex !important;
  flex-direction: column;
  gap: 2px !important;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 0 max(18px, env(safe-area-inset-bottom)) !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.25) transparent;
  align-items: stretch;
}

.mho-mobile-link {
  width: 100% !important;
  min-height: 51px !important;
  display: flex !important;
  align-items: center;
  justify-content: flex-start !important;
  gap: 0 !important;
  padding: 10px 15px !important;
  margin: 0 !important;
  border: 1px solid transparent !important;
  border-radius: 11px !important;
  background: transparent !important;
  color: var(--mho-nav-text) !important;
  font-size: 1rem !important;
  font-family: Inter, system-ui, sans-serif !important;
  font-weight: 650 !important;
  line-height: 1.25 !important;
  text-align: left;
  text-decoration: none !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease;
}

.mho-mobile-link:hover,
.mho-mobile-link:focus-visible {
  border-color: rgba(255,255,255,.13) !important;
  background: rgba(255,255,255,.08) !important;
  color: var(--mho-nav-text) !important;
  transform: none !important;
}

.mho-mobile-link:active {
  background: var(--mho-nav-forest-pressed) !important;
}

.mho-mobile-link.active,
.mho-mobile-link[aria-current="page"] {
  border-color: rgba(216,186,138,.45) !important;
  background: var(--mho-nav-gold) !important;
  color: var(--mho-nav-forest) !important;
  font-weight: 750 !important;
}

.mho-mobile-link > span:last-child {
  color: inherit !important;
}

.mho-mobile-mark {
  display: none !important;
}

.mho-mobile-link.hidden,
.mho-mobile-link[hidden],
.landing-mobile-auth[hidden] { display: none !important; }

@media (min-width: 1024px) {
  .mho-mobile-toggle,
  .mho-mobile-drawer,
  .mho-mobile-overlay {
    display: none !important;
  }
}

@media (min-width: 861px) and (max-width: 1023px) {
  .landing-page .global-menu-toggle { display: none !important; }
}

@media (max-width: 1023px) {
  .login-ivory-page.mho-shared-mobile-only .login-nav-links,
  .login-ivory-page.mho-shared-mobile-only .login-nav-actions,
  .mho-shared-mobile-only .apply-language,
  .mho-shared-mobile-only .invite-language,
  .mho-shared-mobile-only .public-nav-link[href="index.html"] {
    display: none !important;
  }
}

@media (max-height: 620px) {
  .mho-mobile-header { min-height: calc(64px + env(safe-area-inset-top)); }
  .mho-mobile-language { margin-block: 8px 6px !important; }
  .mho-mobile-link { min-height: 46px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .mho-mobile-drawer,
  .mho-mobile-overlay,
  .mho-mobile-toggle .line {
    transition-duration: .01ms !important;
  }
}
