/* The site menu (the hamburger) in the top bar of every public page outside the dashboards. Standalone: it reads the page's own colours (--ink, --card, --line; the payment-result pages use --fg) and
   falls back to the purple of the logo band, so it looks right on a page that does not load lp.css. Targets are 44 px; the panel never reaches past the right edge of a 320 px phone. */
.menu { position:relative; display:inline-block; }
.menubtn { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; padding:0; border-radius:12px; border:1px solid #4b2a7b66; background:transparent; color:#4b2a7b; cursor:pointer; font:inherit; vertical-align:top; }
.menubtn:active { transform:translateY(1px); }
.menubtn:focus-visible, .menuitem:focus-visible { outline:2px solid #6d28d9; outline-offset:2px; }
.menubtn .bars { display:flex; flex-direction:column; justify-content:space-between; width:20px; height:14px; }
.menubtn .bars i { display:block; height:2px; width:100%; border-radius:2px; background:currentColor; }
.menupanel { position:absolute; right:0; top:calc(100% + 8px); z-index:50; width:min(280px, calc(100vw - 32px)); background:var(--card, #fff); color:var(--ink, var(--fg, #1a1033)); border:1px solid var(--line, #ded5f0); border-radius:14px; box-shadow:0 12px 32px #0b1b3a33; padding:6px; text-align:left; }
.menupanel[hidden], .menusub[hidden] { display:none; }
.menuitem { display:flex; align-items:center; justify-content:space-between; width:100%; min-height:44px; padding:0 12px; border:0; border-radius:10px; background:transparent; color:inherit; font:inherit; font-weight:700; font-size:1rem; text-align:left; text-decoration:none; cursor:pointer; }
.menuitem:hover, .menuitem:active { background:var(--tint1, #f1eaff); }
.menuitem .chev { width:8px; height:8px; margin-left:10px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg) translateY(-2px); transition:transform .15s; }
.menuitem[aria-expanded="true"] .chev { transform:rotate(-135deg); }
.menusub { list-style:none; margin:0 0 4px 12px; padding:0 0 0 8px; border-left:2px solid var(--line, #ded5f0); }
.menusub .menuitem { font-weight:600; }
.menupanel .menuitem + .menuitem, .menupanel .menusub + .menuitem { margin-top:2px; }
#lp-theme.menuitem { border-top:1px solid var(--line, #ded5f0); border-radius:0 0 10px 10px; margin-top:4px; }
@media (max-width:340px) { .menupanel { width:calc(100vw - 24px); } }
