/* Shared mobile disclosure chrome for /coach, /agent-coach and /roster.
   Only the toggle button + backdrop live here; each page styles its own sliding
   panel (keyed on its bodyClass) and any bottom sheet. Everything is gated to the
   phone breakpoint so desktop is completely unaffected. */

.m-toggle,
.m-backdrop { display: none; }

@media (max-width: 760px) {
  /* Left-edge disclosure button: opens the page's drawer; flips to a close (X)
     while open. Sits above the drawer (60) and backdrop (55). */
  .m-toggle {
    position: fixed; top: 10px; left: 10px; z-index: 70;
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 38px; padding: 0 14px;
    font-family: var(--display, system-ui, sans-serif); font-size: 13px; font-weight: 600;
    letter-spacing: 0.02em; color: var(--text, #eef1f4);
    background: rgba(16, 20, 25, 0.92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  }
  .m-toggle .m-toggle__close { display: none; }
  .m-toggle.is-open .m-toggle__open { display: none; }
  .m-toggle.is-open .m-toggle__close { display: inline; }
  .m-toggle.is-open { color: var(--gold, #e8b64a); border-color: rgba(232, 182, 74, 0.5); }

  /* One shared backdrop, shown while any drawer is open. */
  .m-backdrop {
    position: fixed; inset: 0; z-index: 55; display: block;
    background: rgba(2, 4, 6, 0.55);
    opacity: 0; pointer-events: none; transition: opacity 0.18s ease-out;
  }
  body.m-drawer-open .m-backdrop { opacity: 1; pointer-events: auto; }

  @media (prefers-reduced-motion: reduce) {
    .m-backdrop { transition: none; }
  }
}
