
/* ===== Mobile Menu Overlay (site-wide, v5) ===== */
:root {
  --gpt-menu-z: 2147483000;
  --gpt-menu-width: 250px;
  --gpt-header-height: 0px; /* set to your header height if needed */
}

#gptMenuOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
  display: none;
  z-index: var(--gpt-menu-z);
  font-family: inherit;
  font-size: inherit;
}
#gptMenuOverlay.is-open { display: block; }

/* Panel: left drawer with square corners */
#gptMenuContent {
  will-change: transform;
  position: absolute;
  top: var(--gpt-header-height);
  left: 0;
  height: calc(100vh - var(--gpt-header-height));
  width: var(--gpt-menu-width);
  background: #fff;
  border-radius: 0;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
  padding: 55px 6px 6px;
  color: #111;
  transform: translateX(calc(-1 * var(--gpt-menu-width) - 16px));
  transition: transform 1s ease;;
  overflow-y: auto;
}
#gptMenuOverlay.is-open #gptMenuContent.gpt-slide-in { transform: translateX(0); }

#gptMenuList { list-style: none; margin: 0; padding: 0; }
#gptMenuList > li.primary { padding: 4px 0; }
#gptMenuList > li.primary > a.primary-link {
  display: block;
  padding: 8px 6px;
  color: #111 !important;
  text-decoration: none;
  font-weight: inherit;
}
#gptMenuList ul.secondary {
  list-style: none;
  margin: 0 0 6px 10px;
  padding: 0 0 0 10px;
  border-left: 2px solid rgba(0,0,0,.08);
}
#gptMenuList ul.secondary li a {
  display: block;
  padding: 6px 6px;
  text-decoration: none;
  color: #222 !important;
}

/* Active/Current page highlight */
#gptMenuList a.gpt-active { font-weight: 700 !important; }

/* Close button (X) */
#gptMenuClose {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #333;
  font: inherit;
  font-size: 24px !important;
  line-height: 1;
  cursor: pointer;
}
#gptMenuClose:focus { outline: 2px solid rgba(0,0,0,.25); outline-offset: 2px; }
#gptMenuClose:hover { background: rgba(0,0,0,.06); }

/* Mobile only */
@media (min-width: 1025px) {
  #gptMenuOverlay { display: none !important; }
}
