/* The header's Menu, on sunsprout.app and unpink.app (23 November 2026). Where the bar is too narrow for its links,
   they fold into one Menu button at the right end of the bar, so every link stays one tap away on a phone or a tablet
   (before, the bar hid them below 821 px and nothing replaced them). The button is the bar's own outline key; the
   panel is opaque paper (the kit's card colour) with the kit's ink and hairlines, and nothing animates.
   The Menu waits hidden until Web/src/scripts/site-menu.js runs, so a page without script never shows a dead button
   (its footer lists the same pages). scripts/import-boards.py copies this file and the script into both sites. */
.top .acts { display: flex; gap: 8px; align-items: center; }
.top .menu { display: none; position: relative; }
/* The board hides its outline key in the bar below 561 px (Join the beta, .top .acts .btn-cap); the Menu key stays. */
.top .acts .menu > button { display: inline-flex; }
.top .menu > button[aria-expanded="true"] { box-shadow: inset 0 0 0 1px var(--ink3), inset 0 -2px 0 var(--line); }
.top .menu > nav.menu-panel { position: absolute; top: calc(100% + 12px); right: 0; z-index: 30; display: flex; flex-direction: column; gap: 0;
  width: min(300px, calc(100vw - 32px)); padding: 6px; box-sizing: border-box; border-radius: 16px; background: var(--card);
  box-shadow: var(--sh2), inset 0 0 0 1px var(--line); font: 500 16px/1.25 var(--f-text); color: var(--ink); text-align: left; }
.top .menu > nav.menu-panel[hidden] { display: none; }
.top .menu > nav.menu-panel a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.top .menu > nav.menu-panel a:hover { background: var(--paper2); }
.top .menu > nav.menu-panel a:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.top .menu > nav.menu-panel .menu-end { margin-top: 6px; padding-top: 6px; min-height: 50px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; }
@media (max-width: 820px) {
  .top .menu:not([hidden]) { display: block; }
}
@media (max-width: 420px) {
  .top .wrap { gap: 12px; }
}
/* The narrowest phones (320 px) keep the logo, the key and Menu on one line: a smaller logo and slimmer keys. */
@media (max-width: 359px) {
  .top .brand { gap: 8px; font-size: 20px; }
  .top .brand svg, .top .brand img { width: 32px !important; height: 32px !important; }
  .top .acts .btn-sm { padding: 0 11px; }
}
