/* ════════════════════════════════════════════════════════════════════════
   Partner portal — the MENU family (MAR-2785, RFC-023 T5).

   The row "⋯" menu from pages/partner/_components.html: a 24px-minimum
   toggle and an anchored popover that js/partner/ui.js flips upward near
   the bottom of the viewport and turns into a bottom sheet on a phone.

   Its OWN sheet, in the shared layer (the convention portal.css states). A
   distinct class family from the list sheet's native-disclosure menu and the
   team screen's own menu — the three never share a selector. Tokens only.
   ══════════════════════════════════════════════════════════════════════ */

.pp-menu__wrap { position:relative; display:inline-block; }

.pp-menu__toggle { min-width:24px; min-height:24px; padding:2px 8px; cursor:pointer;
  font:inherit; line-height:1; color:inherit; background:var(--bg-surface);
  border:1px solid var(--rule); border-radius:var(--r-sm); }
.pp-menu__toggle:hover { background:var(--tint-hover); }
.pp-menu__toggle:focus-visible { outline:2px solid var(--mp-navy); outline-offset:2px; }

/* the popover: below the toggle, right-aligned to it */
.pp-menu { position:absolute; top:calc(100% + 4px); right:0; z-index:30;
  min-width:200px; padding:6px; display:flex; flex-direction:column; gap:2px;
  text-align:left; background:var(--bg-surface); border:1px solid var(--rule);
  border-radius:var(--r-sm); box-shadow:var(--pp-float-shadow); }
/* the author display above would otherwise beat the UA's [hidden] */
.pp-menu[hidden] { display:none; }
/* near the bottom of the viewport: open upward (ui.js measures) */
.pp-menu--up { top:auto; bottom:calc(100% + 4px); }
/* a toggle near the left edge: align to its start instead (ui.js measures) */
.pp-menu--start { right:auto; left:0; }
/* clipped by a scrolling ancestor (a short .pp-tw table, MAR-3143): float it
   free of every clip; ui.js sets top and left/right from the toggle's rect */
.pp-menu--float { position:fixed; right:auto; bottom:auto; }
/* a phone: a bottom sheet with 16px gutters (ui.js, at max-width 700px) */
.pp-menu--sheet { position:fixed; top:auto; left:16px; right:16px; bottom:16px;
  min-width:0; border-radius:var(--r-lg); }

.pp-menu__form { margin:0; }
.pp-menu__item { display:block; width:100%; min-height:24px; padding:8px 10px;
  box-sizing:border-box; text-align:left; font:inherit; color:inherit;
  text-decoration:none; cursor:pointer; background:none; border:0;
  border-radius:var(--r-sm); }
.pp-menu__item:hover, .pp-menu__item:focus-visible { background:var(--tint-hover); }
.pp-menu__item:focus-visible { outline:2px solid var(--mp-navy); outline-offset:-2px; }
.pp-menu__item--danger { color:var(--status-danger-fg); }

/* MAR-3081: the divider between a row menu's ordinary and danger groups */
.pp-menu__sep { height:1px; margin:4px 0; padding:0; border:0; background:var(--rule); }
