/* Tactivela · modules/menu — scope: .mn  (hero, mode cards: design system components)
   Phone first. The hero rows and each block of the body carry .tk-column (no wrapper divs, so
   the rules below are the phone's own), and from 700px the footer pads its contents to the same
   column; the hero and footer bars still run edge to edge. Larger screens: see the end. */
.mn .mn-top { display: flex; align-items: center; gap: 8px; }
.mn .mn-word { flex: 1; font-size: 21px; }
.mn .mn-tools { display: flex; gap: 8px; }
.mn .mn-club { display: flex; align-items: center; gap: 14px; }
.mn .mn-club-txt { min-width: 0; }
.mn .mn-club .tk-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mn .mn-sub { font-size: var(--tk-fs-body-s); }
.mn .mn-cards { display: flex; flex-direction: column; gap: 12px; }
.mn .tk-mode-card { width: 100%; text-align: left; cursor: pointer; font: inherit; }
.mn .mn-quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
/* Quick access (design system 0.6, 7.2): the icon above the name, 36px, no tile */
.mn .mn-quick { min-height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px 8px; cursor: pointer; text-align: center;
  background: var(--tk-surface); color: var(--tk-text); border: var(--tk-border) solid var(--tk-line); border-radius: var(--tk-radius);
  font-family: var(--tk-font-display); font-size: 17px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  transition: border-color var(--tk-dur) var(--tk-ease); }
.mn .mn-quick:hover { border-color: var(--tk-violet); }
.mn .mn-quick .tk-icon { width: var(--tk-icon-quick); height: var(--tk-icon-quick); color: var(--tk-violet-soft); }
.mn .mn-foot { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 14px 20px calc(18px + var(--tk-safe-bottom)); border-top: var(--tk-hairline) solid var(--tk-line); }
.mn .mn-signout { min-height: var(--tk-touch); border: 0; background: none; cursor: pointer; color: var(--tk-text-muted); text-decoration: underline;
  font-family: var(--tk-font-display); font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

/* ── Tablets (700px and up): the hero rows and body blocks sit in the 720px column (.tk-column
   does the centring), with a little more air above the cards. The footer bar stays edge to edge
   and its side padding grows so its contents line up with the column. Cards stay stacked. ── */
@media (min-width: 700px) {
  .mn .tk-body { padding-top: var(--tk-space-6); }
  .mn .mn-foot { padding-inline: max(var(--tk-space-5), calc((100% - var(--tk-column)) / 2)); }
}
/* ── PCs (1100px and up): the column widens to --tk-column-wide (the width does what
   .tk-column--wide would, because a class cannot change with the breakpoint). Mode cards and
   quick access go side by side (cards keep their icon, wrapping text, chevron). Each track is at least
   a third of the row less one gap, so three always fit and four never do (6.6: at most three),
   and auto-fit drops empty tracks: with Tactics or Session plans removed, one card fills the row
   and two cards take half each instead of leaving an empty column. ── */
@media (min-width: 1100px) {
  .mn .tk-column { max-width: var(--tk-column-wide); }
  .mn .tk-body { padding-top: var(--tk-space-8); }
  .mn .mn-foot { padding-inline: max(var(--tk-space-5), calc((100% - var(--tk-column-wide)) / 2)); }
  .mn .mn-cards, .mn .mn-quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(calc(100% / 3 - var(--tk-space-4)), 1fr)); gap: var(--tk-space-4); }
  .mn .tk-mode-card { padding: var(--tk-space-5) var(--tk-space-4); }
  .mn .tk-mode-card__title { flex-wrap: wrap; row-gap: var(--tk-space-1); }
}
/* ── A phone on its side (700px and up but 500px high or less): the hero and footer would leave
   the cards less than one card of room, so the whole menu scrolls as one page instead, as the auth
   screen does. base.css clips every screen with "#app > .screen"; the screen's own id outranks that
   whatever the load order. The hero must not shrink (it clips its streak, so flex would squash
   it) and the body grows to push the footer to the bottom. ── */
@media (min-width: 700px) and (max-height: 500px) {
  .mn#s-menu.active { overflow-y: auto; }
  .mn .tk-hero { flex-shrink: 0; }
  .mn .tk-body { flex: 1 0 auto; overflow: visible; }
}
