/* The members' area menu (TW #4399, Steve's pick C): big buttons with what's new. A column on
   the left on a laptop (kept narrow so the chat has room); on a phone a Menu button in the top
   band (comeback_band.css) slides the same buttons in, full screen (TW #4890). */
.member-page.has-menu { --menu-w: 232px; padding-left: var(--menu-w); }
.mm { position: fixed; top: calc(var(--mm-top, 0px) + var(--cbm-h)); bottom: 0; left: 0; width: var(--menu-w); box-sizing: border-box; padding: 24px 14px; overflow-y: auto;
  background: var(--m-bg); border-right: 2px solid var(--m-line); z-index: 30; }
.mm ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.member-page .mm-who { display: flex; align-items: center; gap: 10px; min-height: 40px; margin: 0 0 .75rem; font-weight: 800; font-size: 1rem; }
.mm-item, .mm-admin, .mm-gear { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 12px; box-sizing: border-box;
  border: 2px solid var(--m-line); border-radius: 14px; background: var(--m-card); color: var(--m-fg); text-decoration: none; }
.member-page .mm a { color: var(--m-fg); text-decoration: none; }
/* Chat and, beside it on the same row, a square gear for Chat notifications (TW #4578, Steve's pick A). */
.mm-pair { display: flex; gap: 8px; }
.mm-pair > .mm-item { flex: 1 1 auto; min-width: 0; }
.mm-gear { flex: none; justify-content: center; width: 56px; padding: 0; }
.mm-item.is-current, .mm-gear.is-current { border-color: var(--m-accent); box-shadow: inset 0 0 0 1px var(--m-accent); }
.mm-item:focus-visible, .mm-admin:focus-visible, .mm-gear:focus-visible { outline: 3px solid var(--m-accent); outline-offset: 2px; }
.mm-admin { background: transparent; }
.mm-icon { font-size: 1.4rem; line-height: 1; }
.mm-text { display: flex; flex-direction: column; min-width: 0; }
.mm-label { font-size: 1.02rem; font-weight: 700; line-height: 1.2; }
.mm-count { color: #c62828; font-weight: 800; font-size: .85rem; }
.member-page form:has(> .mm-out) { margin: 1rem 0 0; }
.mm-out { font: inherit; font-size: .95rem; padding: 8px 14px; border-radius: 10px; border: 2px solid var(--m-line); background: transparent; color: var(--m-muted); cursor: pointer; }
@media (prefers-color-scheme: dark) { .mm-count { color: #ff8a80; } }

@media (max-width: 760px) {
  .member-page.has-menu { --menu-w: 0px; padding-left: 0; }
  /* It slides in from the left, the Menu button's side, and back out (TW #4890, Steve: "add a sliding animation to
     the menu."): by transform, so nothing on the page moves; hidden once out, so its buttons leave the tab order. */
  .mm { width: 100vw; border-right: 0; padding: 20px 16px; transform: translateX(-100%); visibility: hidden;
    box-shadow: 4px 0 16px rgb(0 0 0 / .18); /* its edge, while it moves; off screen once it's in */
    transition: transform .22s ease-out, visibility 0s linear .22s; }
  .mm-open .mm { transform: none; visibility: visible; transition: transform .22s ease-out; }
  .mm-item, .mm-admin, .mm-gear { min-height: 64px; }
  .mm-gear { width: 64px; }
  .mm-label { font-size: 1.1rem; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .mm, .mm-open .mm { transition: none; }
}
