/* Mobile menu (below 900px) and keyboard-friendly dropdown. Pairs with nav-menu.js. */
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid #3F3F3F; border-radius: 999px; background: transparent; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px; padding: 0; color: #fff; }
.menu-btn:hover { border-color: #fff; }
.menu-btn .mb-bar { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.menu-btn[aria-expanded="true"] .mb-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .mb-bar:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .mb-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 900px) { .menu-btn { display: inline-flex; } }

.menu-panel { position: fixed; inset: 0; z-index: 2000; background: #000; color: #fff; overflow-y: auto; padding: 24px 24px 48px;
  font-family: "Geist", -apple-system, BlinkMacSystemFont, system-ui, sans-serif; }
.menu-panel[hidden] { display: none; }
.menu-panel .mm-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.menu-panel .mm-brand { font-family: "Instrument Serif", serif; font-style: italic; font-size: 32px; color: #fff; text-decoration: none; }
.menu-panel .mm-close { width: 44px; height: 44px; border: 1px solid #3F3F3F; border-radius: 999px; background: transparent; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.menu-panel .mm-close:hover { border-color: #fff; }
.menu-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.menu-panel a.mm-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 12px 20px; border: 1px solid #3F3F3F;
  border-radius: 999px; color: #fff; text-decoration: none; font-size: 17px; }
.menu-panel a.mm-link:hover, .menu-panel a.mm-link:focus-visible { background: #fff; color: #000; border-color: #fff; }
.menu-panel a.mm-link[aria-current="page"] { border-color: #fff; }
.menu-panel .mm-group { margin: 22px 0 8px; font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #8A8A8A; }
.menu-panel .mm-cta { background: #fff; color: #000; border-color: #fff; justify-content: center; font-weight: 500; }
.menu-panel .mm-tag { font-family: "Geist Mono", ui-monospace, monospace; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #8A8A8A; }
.menu-panel a.mm-link:hover .mm-tag { color: #333; }
@media (prefers-reduced-motion: no-preference) {
  .menu-panel:not([hidden]) { animation: mmIn .28s ease both; }
  @keyframes mmIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
}

/* Dropdown: reachable by keyboard (focus opens it), hidden from tab order when closed */
.nav-drop-menu, .sn-menu { visibility: hidden; }
.nav-dropdown:hover .nav-drop-menu, .nav-dropdown.open .nav-drop-menu, .nav-dropdown:focus-within .nav-drop-menu,
.sn-dd:hover .sn-menu, .sn-dd.open .sn-menu, .sn-dd:focus-within .sn-menu { visibility: visible; opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav-dropdown[data-closed] .nav-drop-menu, .sn-dd[data-closed] .sn-menu { visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; }
