/* Masonry-style packing on Discounts + Analyzers archives */
body.post-type-archive-discounts .members-grid,
body.post-type-archive-analyzers .members-grid{
  display: block !important;
  grid-template-columns: none !important;
  column-count: 2;
  column-gap: 16px; /* match the gap under the search box */
}

@media (max-width: 980px){
  body.post-type-archive-discounts .members-grid,
  body.post-type-archive-analyzers .members-grid{
    column-count: 1;
  }
}

/* Cards flow inside columns */
body.post-type-archive-discounts .members-card,
body.post-type-archive-analyzers .members-card{
  display: inline-block;
  width: 100%;
  margin: 0 0 16px;   /* same vertical spacing as under the search bar */
  break-inside: avoid;
}
/* --- Uniform card heights (desktop) --- */
.is-members-area .members-grid{
  display:grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:16px !important;
  align-items: stretch; /* make items fill the row height */
}

/* Make each card flex so inner content can clamp nicely */
.is-members-area .members-card{
  display:flex;
  flex-direction:column;
  min-height: 300px;           /* tune this number to taste (e.g., 240–320px) */
  height: 100%;
}

/* Keep the contact pill from pushing layout around */
.is-members-area .members-card .su-contact-pill{ position:absolute; }

/* Clamp long titles to 2 lines to avoid tall spikes */
.is-members-area .members-card .card-title a{
  display:-webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:hidden;
}

/* Discounts “About” + “Coverage” lines: clamp to keep rows even */
.is-members-area .su-lines .su-text{
  display:-webkit-box;
  -webkit-line-clamp: 2;       /* 2 lines per bullet */
  -webkit-box-orient: vertical;
  overflow:hidden;
}

/* Analyzer blurbs: clamp to 3 lines */
.is-members-area .card-excerpt .su-desc{
  display:-webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow:hidden;
}

/* Extra breathing room so clamped text doesn’t crowd badges */
.is-members-area .members-card .card-excerpt{ margin-top: 6px; }

/* Mobile: let cards grow naturally so nothing important is hidden */
@media (max-width: 980px){
  .is-members-area .members-card{
    min-height: unset;
  }
  .is-members-area .card-excerpt .su-desc,
  .is-members-area .su-lines .su-text{
    -webkit-line-clamp: unset;
  }
}
/* 1) Don’t fix the card height — let it stretch to the tallest in the row */
.is-members-area .members-card{
  height: auto;           /* override any fixed height */
  min-height: 300px;      /* your desired baseline */
}

/* 2) Show more text per card (adjust to taste) */
.is-members-area .su-lines .su-text{
  -webkit-line-clamp: 3;  /* was 2 */
}
.is-members-area .card-excerpt .su-desc{
  -webkit-line-clamp: 5;  /* was 3 */
}

/* 3) Keep equal-height rows without hiding content */
.is-members-area .members-grid{
  align-items: stretch;   /* grid items match tallest in the row */
}
/* When opened in the modal (?su_embed=1), hide extra chrome */
.su-embed .members-header,
.su-embed .members-nav,
.su-embed .members-footer,
.su-embed .page-title,
.su-embed .entry-title,
.su-embed .post-meta,
.su-embed .breadcrumbs { display:none !important; }

.su-embed .members-card {
  max-width: 760px;
  margin: 0 auto;
  box-shadow: none;
  border: 0;
  padding: 0;
  background: transparent;
}
/* Updates archive: hide Simple Author Box */
.is-members-area.post-type-archive-updates .saboxplugin-wrap,
.is-members-area.archive.post-type-archive-updates .saboxplugin-wrap {
  display: none !important;
}
