/* Scope everything under .mnav */
.mnav { position: relative; }

/* Show burger only on mobile; hide on ≥900px */
.mnav__burger{
  position: fixed; top: 14px; right: 16px; z-index: 1100;
  display: inline-flex; flex-direction: column; gap: 4px;
  width: 36px; height: 36px; align-items: center; justify-content: center;
  background: #000; color:#fff; border:0; border-radius: 10px; cursor:pointer;
}
.mnav__bar{ width: 18px; height: 2px; background:#292727; display:block; }
@media (min-width: 900px){ .mnav__burger{ display: none; } }

/* Scrim */
.mnav__scrim{
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1090;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.mnav--open .mnav__scrim{ opacity: 1; pointer-events: auto; }

/* Panel */
.mnav__panel{
  position: fixed; top: 0; right: 0; bottom: 0; width: min(86vw, 360px);
  background: #fff; color:#000; z-index: 1110; box-shadow: -24px 0 60px rgba(0,0,0,.25);
  transform: translateX(100%); transition: transform .28s cubic-bezier(.2,.6,.2,1);
  display: flex; flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.mnav--open .mnav__panel{ transform: translateX(0); }
@media (prefers-reduced-motion: reduce){
  .mnav__panel{ transition: none; }
  .mnav__scrim{ transition: none; }
}

/* Header inside panel */
.mnav__header{
  display:flex; align-items:center; justify-content: space-between;
  padding: 14px 14px; border-bottom: 1px solid #eee;
}
.mnav__logo img{ display:block; height:28px; width:auto; }
.mnav__close{
  background:#000; color:#fff; border:0; width:34px; height:34px; border-radius:10px; cursor:pointer;
  font-size: 20px; line-height: 1;
}

/* Nav */
.mnav__nav{ padding: 8px 8px 16px; overflow:auto; }
.mnav__group{ border-bottom: 1px solid #f0f0f0; padding: 8px 6px; }
.mnav__group--solo{ border-bottom: 0; }

.mnav__toggle{
  width:100%; text-align:left; border:0; background:#fff; color:#000; cursor:pointer;
  font-size: 16px; padding: 12px 10px; display:flex; align-items:center; justify-content:space-between;
}
.mnav__chev{
  width: 10px; height: 10px; border-right: 2px solid #000; border-bottom: 2px solid #000;
  transform: rotate(-45deg); transition: transform .2s ease;
}
.mnav__toggle[aria-expanded="true"] .mnav__chev{ transform: rotate(45deg); }

/* collapsed by default */
.mnav__list{
  display:none;
  padding: 6px 8px 10px 10px;   /* keep your spacing */
  gap: 8px;
}

/* open state */
.mnav__toggle[aria-expanded="true"] + .mnav__list{
  display:grid;
}

.mnav__list a{
  color:#000; text-decoration:none; padding: 8px 8px; border-radius: 8px; background:#f7f7f7;
}
.mnav__list a:active{ background:#eee; }

/* Standalone links group */
.mnav__group--solo a{
  display:block; color:#000; text-decoration:none; padding: 10px 10px; border-radius:8px;
}
.mnav__group--solo a:hover{ background:#f7f7f7; }

/* Hide panel & scrim by default on desktop */
@media (min-width: 900px){
  .mnav__panel, .mnav__scrim { display: none !important; }
}



/* Base button styling */
/* Base button styling */
.mnav__burger.v--icon {
  width: 40px;
  height: 23px;
  background: #f2f2f200; /* black circle */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  padding: 0;
  /*! box-shadow: 0 2px 8px rgba(0,0,0,0.2); */
  transition: background 0.2s ease, transform 0.15s ease;
}


/* On press */
.mnav__burger.v--icon:active {
  transform: scale(0.96);
}

/* The three bars */
.mnav__burger.v--icon .mnav__bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Spacing between bars */
.mnav__burger.v--icon .mnav__bar + .mnav__bar {
  margin-top: 4px;
}

/* Morph into X when menu open */
.mnav--open .mnav__burger.v--icon .mnav__bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.mnav--open .mnav__burger.v--icon .mnav__bar:nth-child(2) {
  opacity: 0;
}
.mnav--open .mnav__burger.v--icon .mnav__bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
/* Hide hamburger, panel, scrim on ≥1024px (instead of 900px) */
@media (min-width: 1024px){
  .mnav__burger{ display: none !important; }
  .mnav__panel, .mnav__scrim{ display: none !important; }
}
