/* V154 — Clubhouse member/captain cards: mobile text must remain fully readable.
   Scoped to Clubhouse; owner and trip-crew cards retain their approved layout. */
@media (max-width:640px) {
  .clubhouse-shell .member-board .member-slab {
    height:auto;
    align-items:stretch;
  }
  .clubhouse-shell .member-board .member-slab-body {
    height:auto;
    min-height:162px;
    min-width:0;
  }
  /* Reserve the profession row even for members who did not enter a job.
     City and tagline then start at the same vertical position on each card. */
  .clubhouse-shell .member-board .member-slab-meta {
    display:grid;
    grid-template-rows:minmax(28px,auto) minmax(19px,auto);
    align-content:start;
    min-height:47px;
    margin:0 0 4px;
  }
  .clubhouse-shell .member-board .member-slab-job,
  .clubhouse-shell .member-board .member-slab-job:empty {
    display:block;
    min-height:28px;
    margin:0;
    line-height:1.35;
    overflow-wrap:anywhere;
  }
  .clubhouse-shell .member-board .member-slab-city {
    min-height:19px;
    line-height:1.35;
  }
  /* Older Clubhouse CSS imposed a 1-line clamp and 28px max-height. */
  .clubhouse-shell .member-board .member-slab-quote-zone {
    flex:0 0 auto;
    min-height:0;
    max-height:none;
    height:auto;
    overflow:visible;
  }
  .clubhouse-shell .member-board .member-slab-quote {
    display:block;
    max-height:none;
    margin:5px 0 8px;
    white-space:normal;
    overflow:visible;
    overflow-wrap:anywhere;
    word-break:normal;
    text-overflow:clip;
    -webkit-line-clamp:unset;
    line-clamp:unset;
    -webkit-box-orient:initial;
  }
}
