/* Self-contained mobile off-canvas nav toggle. The original theme's off-canvas
   opener lives in chunk.popups.js, which was never captured when the pages
   were saved (it's lazy-loaded on demand on the live WordPress site). This
   replaces just the open/close behavior without depending on that file. */

#custom-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  display: none;
}
#custom-nav-backdrop.is-active {
  display: block;
}

body.custom-nav-locked {
  overflow: hidden;
}

#main-menu {
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
#main-menu.custom-nav-open {
  display: block !important;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  z-index: 9999;
  background: #fff;
  overflow-y: auto;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.25);
  transform: translateX(0);
}

#custom-nav-close {
  display: block;
  width: 100%;
  text-align: right;
  padding: 14px 18px;
  font-size: 26px;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  color: #075396;
}
