/* McBeth Kings mobile menu v2 (12 Oct 2026): three-line icon.
   Replaces the two-hairline burger and the small floating sheet of Base.C3Kt2buC-v3.css.
   Loaded after Base on every page. Needs brand/mk-menu-v2.js for the backdrop, Escape and tap-outside.
   Without the script the menu still opens and closes (it is a native <details>). */

.hdr { position: relative; z-index: 30; }
html.mk-menu-open .hdr { background: var(--mk-ivory); }

.hdr .menu { position: static; }

/* the button: a 48px target, three lines that fold into an X when the menu is open */
.hdr .menu summary {
  position: relative; z-index: 32;
  width: 48px; height: 48px; margin-right: -12px;
  display: grid; place-content: center; gap: 7px;
  -webkit-tap-highlight-color: transparent;
}
.hdr .menu summary span,
.hdr .menu summary::after {
  content: ""; display: block;
  width: 26px; height: 2px; background: var(--mk-black);
  transition: transform .35s var(--mk-ease), opacity .2s ease;
}
.hdr .menu[open] summary span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hdr .menu[open] summary span:nth-child(2) { opacity: 0; }
.hdr .menu[open] summary::after { transform: translateY(-9px) rotate(-45deg); }

/* the panel: full width under the header, large rows, readable on a small phone */
.hdr .menu-sheet {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 31;
  width: auto; gap: 0;
  padding: 6px var(--pad) 26px;
  max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px);
  overflow-y: auto; overscroll-behavior: contain;
  border-top: 1px solid var(--mk-hairline);
  box-shadow: 0 28px 44px -26px rgba(20, 14, 8, .6);
  animation: mkMenuIn .34s var(--mk-ease);
}
.hdr .menu-sheet a:not(.btn) {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 56px; padding: 18px 2px;
  font: 500 15px/1 var(--mk-sans); letter-spacing: 1.3px;
}
.hdr .menu-sheet a:not(.btn)::after { content: "\2192"; color: var(--mk-bronze); transition: transform .3s var(--mk-ease); }
.hdr .menu-sheet a:not(.btn):active::after { transform: translateX(4px); }
.hdr .menu-sheet .btn { min-height: 56px; margin-top: 20px; font-size: 13px; }

/* the backdrop (added by the script) */
.mk-scrim {
  position: fixed; inset: 0; z-index: 25;
  background: rgba(20, 16, 12, .52);
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
html.mk-menu-open .mk-scrim { opacity: 1; pointer-events: auto; }
html.mk-menu-open { overflow: hidden; }

@keyframes mkMenuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .hdr .menu summary span, .hdr .menu summary::after, .mk-scrim { transition: none; }
  .hdr .menu-sheet { animation: none; }
}
