/* ==========================================================================
   Members dashboard - phone layout (2026-09-23)
   Two-up card grid, compact committee queue, two-up events and rail.
   Scoped to the dashboard only (the column that holds .px-hero), phone widths.
   ========================================================================== */
@media (max-width: 720px) {

  /* ---------- hero ---------- */
  .m-col:has(> .px-hero) .px-hero { padding: 22px 20px 18px; border-radius: 22px; }
  .m-col:has(> .px-hero) .px-hero h1,
  .m-col:has(> .px-hero) .px-hero h2 { font-size: 1.55rem; letter-spacing: -.02em; line-height: 1.15; }
  .m-col:has(> .px-hero) .px-hero p { font-size: .9rem; }
  .m-col:has(> .px-hero) .px-hero .chip,
  .m-col:has(> .px-hero) .px-hero [class*="pill"],
  .m-col:has(> .px-hero) .px-hero-l a,
  .m-col:has(> .px-hero) .px-hero-l span[class] { font-size: .72rem; }

  /* share card */
  .m-col:has(> .px-hero) > .m-card { padding: 16px 18px; border-radius: 20px; }
  .m-col:has(> .px-hero) > .m-card p { margin: 0 0 6px; font-size: .92rem; }

  /* ---------- the card deck: two up ---------- */
  .m-col:has(> .px-hero) .px-deck {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0;
  }
  .m-col:has(> .px-hero) .px-card {
    padding: 14px 13px 12px;
    border-radius: 20px;
    min-width: 0;
    box-shadow: 0 1px 2px rgba(13,35,80,.05), 0 8px 22px -14px rgba(13,35,80,.22);
    transition: transform .2s cubic-bezier(.22,1,.36,1), box-shadow .2s cubic-bezier(.22,1,.36,1);
  }
  .m-col:has(> .px-hero) .px-card:active { transform: scale(.985); }
  .m-col:has(> .px-hero) .px-card .px-i { width: 32px; height: 32px; border-radius: 10px; margin-bottom: 10px; }
  .m-col:has(> .px-hero) .px-card .px-i svg { width: 17px; height: 17px; }
  .m-col:has(> .px-hero) .px-card .px-e {
    font-size: .64rem; letter-spacing: .07em; margin: 0 0 3px; box-shadow: none;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .m-col:has(> .px-hero) .px-card .px-v { font-size: 1.32rem; line-height: 1.15; margin: 0 0 4px; letter-spacing: -.02em; }
  .m-col:has(> .px-hero) .px-card .px-s {
    font-size: .76rem; line-height: 1.4; margin: 0 0 10px; color: var(--muted, #5b6b86);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }
  .m-col:has(> .px-hero) .px-card .px-a { gap: 6px; flex-direction: column; align-items: stretch; }
  .m-col:has(> .px-hero) .px-card .px-a a {
    font-size: .75rem; padding: 8px 10px; text-align: center; min-height: 34px;
    display: flex; align-items: center; justify-content: center;
  }
  .m-col:has(> .px-hero) .px-card .px-a a.alt {
    padding: 2px 4px; min-height: 0; background: none; box-shadow: none; font-weight: 600;
    color: var(--muted, #5b6b86);
  }

  /* ---------- committee queue ---------- */
  .m-col:has(> .px-hero) .px-ops { padding: 18px 14px 14px; border-radius: 22px; margin: 16px 0; }
  .m-col:has(> .px-hero) .px-ops-h { gap: 12px; }
  .m-col:has(> .px-hero) .px-ops-h h2 { font-size: 1.2rem; letter-spacing: -.01em; }
  .m-col:has(> .px-hero) .px-ops-cta { min-height: 44px; border-radius: 999px; }
  .m-col:has(> .px-hero) .px-ops .todo { display: grid; gap: 8px; margin-top: 14px; }
  .m-col:has(> .px-hero) .px-ops .todo-row {
    display: grid; grid-template-columns: 30px minmax(0, 1fr) 18px; align-items: center;
    column-gap: 11px; padding: 12px 12px; border-radius: 16px; flex-wrap: nowrap;
    background: var(--soft, #f6f8fc); border: 0;
  }
  .m-col:has(> .px-hero) .px-ops .todo-row:active { transform: scale(.99); }
  .m-col:has(> .px-hero) .px-ops .todo-n { width: 30px; height: 30px; min-width: 0; border-radius: 10px; font-size: .82rem; margin: 0; }
  .m-col:has(> .px-hero) .px-ops .todo-t { min-width: 0; }
  .m-col:has(> .px-hero) .px-ops .todo-t b { display: block; font-size: .88rem; line-height: 1.3; }
  .m-col:has(> .px-hero) .px-ops .todo-t small {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    font-size: .74rem; line-height: 1.35; margin-top: 2px; overflow-wrap: anywhere;
  }
  /* the button word becomes a chevron at the end of the row */
  .m-col:has(> .px-hero) .px-ops .todo-go {
    margin: 0; width: auto; font-size: 0; justify-content: flex-end; color: var(--muted, #5b6b86);
  }
  .m-col:has(> .px-hero) .px-ops .todo-go::after { content: "\203A"; font-size: 1.5rem; line-height: 1; font-weight: 400; }
  .m-col:has(> .px-hero) .px-ops-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
  .m-col:has(> .px-hero) .px-ops-links a {
    display: flex; align-items: center; justify-content: center; text-align: center;
    min-height: 44px; margin: 0; padding: 8px 10px; font-size: .74rem; line-height: 1.3; border-radius: 14px;
  }

  /* ---------- recently at the club: two up ---------- */
  .m-col:has(> .px-hero) .dash-h h2 { font-size: 1.15rem; }
  .m-col:has(> .px-hero) .ev-past { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
  .m-col:has(> .px-hero) .ev-past li {
    padding: 12px 12px 12px 14px; border-radius: 18px; min-width: 0;
    box-shadow: 0 1px 2px rgba(13,35,80,.05), 0 8px 22px -16px rgba(13,35,80,.22);
  }
  .m-col:has(> .px-hero) .ev-past li .w { font-size: .62rem; line-height: 1.35; letter-spacing: .05em; margin: 0 0 5px; }
  .m-col:has(> .px-hero) .ev-past li h3 {
    font-size: .86rem; line-height: 1.28; margin: 0 0 5px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }
  .m-col:has(> .px-hero) .ev-past li .s {
    font-size: .74rem; line-height: 1.4; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }

  /* ---------- rail (offers, volunteering, links): two up ---------- */
  .m-col:has(> .px-hero) .m-rail { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .m-col:has(> .px-hero) .m-rail > .rail-card { margin: 0; padding: 14px 13px; border-radius: 20px; min-width: 0; }
  .m-col:has(> .px-hero) .m-rail > .rail-card:first-child,
  .m-col:has(> .px-hero) .m-rail > .rail-card:last-child:nth-child(even) { grid-column: 1 / -1; }
  .m-col:has(> .px-hero) .rail-card .rail-h h2 { font-size: .95rem; }
  .m-col:has(> .px-hero) .rail-card p { font-size: .76rem; line-height: 1.4; }
  .m-col:has(> .px-hero) .rail-links a { font-size: .78rem; min-height: 40px; }
}

/* very narrow phones: keep two up but tighten */
@media (max-width: 360px) {
  .m-col:has(> .px-hero) .px-deck,
  .m-col:has(> .px-hero) .ev-past,
  .m-col:has(> .px-hero) .m-rail { gap: 8px; }
  .m-col:has(> .px-hero) .px-card { padding: 12px 11px 10px; }
  .m-col:has(> .px-hero) .px-card .px-v { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  .m-col:has(> .px-hero) .px-card,
  .m-col:has(> .px-hero) .px-ops .todo-row { transition: none; }
  .m-col:has(> .px-hero) .px-card:active,
  .m-col:has(> .px-hero) .px-ops .todo-row:active { transform: none; }
}
