/* Rollsiders training dashboard — tablet/PC responsive upgrade (v10).
   Loaded on every page after its own <style>, so these rules win on ties.
   Phones: unchanged single-column. Tablet/PC: wider, and card lists flow into columns. */

html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }

/* ---- Tablet (≥ 760px) ---- */
@media (min-width: 760px) {
  body { max-width: 940px !important; }

  /* Attendance / waitlist card lists → auto-fill grid; headers span the full width */
  .section:has(> .mcard) {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 14px;
    align-items: start;
  }
  .section:has(> .mcard) > h2,
  .section:has(> .mcard) > .alertbar,
  .section:has(> .mcard) > .setlvl { grid-column: 1 / -1; }
  .section:has(> .mcard) > .mcard { margin-bottom: 0 !important; }
}

/* ---- Desktop (≥ 1120px) ---- */
@media (min-width: 1120px) {
  body { max-width: 1200px !important; }
  .section:has(> .mcard) { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
}
