/* Hamburger menu in the shared header (every page). Shared file — AGENTS.md §4.6.
   Styled in rallysite.ai's design language (2026-11-19): hairlines, square controls,
   small uppercase mono labels, electric-blue accent #00A8FF.
   Built on <details>/<summary> so it opens and closes with JavaScript off;
   /assets/js/menu.js adds Escape / outside-click closing and aria-current. */
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu__btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; padding: 0 14px;
  color: #dfeeea; cursor: pointer; user-select: none; background: transparent;
  border: 1px solid #2b3f39; border-radius: 0;
  font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .14em; text-transform: uppercase;
}
.menu__btn:hover, .menu[open] > .menu__btn { border-color: #00A8FF; color: #fff; }
.menu__btn:focus-visible { outline: none; box-shadow: 0 0 0 1px #00A8FF, 0 0 0 4px rgba(0, 168, 255, .38); }
.menu__icon { position: relative; width: 16px; height: 11px; display: inline-block; }
.menu__icon::before, .menu__icon::after, .menu__icon > span {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .2s, opacity .2s;
}
.menu__icon::before { top: 0; }
.menu__icon > span { top: 4.75px; }
.menu__icon::after { top: 9.5px; }
.menu[open] .menu__icon::before { transform: translateY(4.75px) rotate(45deg); }
.menu[open] .menu__icon > span { opacity: 0; }
.menu[open] .menu__icon::after { transform: translateY(-4.75px) rotate(-45deg); }
.menu__panel {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 60;
  width: min(320px, calc(100vw - 32px)); max-height: calc(100vh - 96px); overflow-y: auto;
  display: flex; flex-direction: column; padding: 8px 0 14px;
  background: #08110e; border: 1px solid #16302a; border-radius: 0;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
}
.menu__group {
  margin: 14px 18px 4px; color: #6f8a83;
  font: 600 12px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .16em; text-transform: uppercase;
}
.menu__panel a {
  display: flex; align-items: center; min-height: 44px; padding: 0 18px;
  color: #dfeeea; text-decoration: none; font: 400 14.5px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.menu__panel a:hover, .menu__panel a:focus-visible { background: #0e1b17; color: #8fd8ff; }
.menu__panel a:focus-visible { outline: 1px solid #00A8FF; outline-offset: -1px; }
.menu__panel a[aria-current="page"] { color: #fff; box-shadow: inset 2px 0 0 #00A8FF; }
.menu__panel a.menu__sub { padding-left: 32px; font-size: 14px; min-height: 44px; color: rgba(223, 238, 234, .78); }
.menu__panel a.menu__cta {
  margin: 14px 18px 0; padding: 0 14px; justify-content: center; min-height: 44px;
  border: 1px solid rgba(0, 168, 255, .7); background: rgba(0, 168, 255, .14); color: #8fd8ff;
  font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .1em; text-transform: uppercase;
}
.menu__panel a.menu__cta:hover { background: rgba(0, 168, 255, .24); color: #d6f1ff; }
@media (max-width: 520px) { .menu__label { display: none; } .menu__btn { padding: 0 12px; min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { .menu__icon::before, .menu__icon::after, .menu__icon > span { transition: none; } }
