/* RCI V61 — consistent card heights and bottom-aligned actions across directories */
.rci-member-grid-v51,
.rci-product-grid-v51,
.rci-member-grid-v52,
.rci-product-grid-v52,
.rci-member-grid-v52.grid,
.rci-directory-grid,
.supplier-directory-grid{
  align-items:stretch!important;
}
.rci-member-card-v51,
.rci-member-card-v52,
.rci-product-card-v51,
.rci-product-card-v52,
.supplier-directory-card,
.rci-directory-card{
  display:flex!important;
  flex-direction:column!important;
  height:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
.rci-home-members-v51 .rci-member-card-v51{
  display:flex!important;
  flex-direction:column!important;
  height:100%!important;
  min-height:100%!important;
}
.rci-home-members-v51 .rci-member-card-v51 h3{
  min-height:2.6em!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.rci-home-members-v51 .rci-member-card-v51 .rci-member-type-v51{
  min-height:26px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.rci-home-members-v51 .rci-member-card-v51 p{
  min-height:1.5em!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.rci-home-members-v51 .rci-member-card-v51 small{
  min-height:3.9em!important;
  display:flex!important;
  align-items:flex-start!important;
  justify-content:center!important;
}
.rci-home-members-v51 .rci-member-profile-v51{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  margin-top:auto!important;
  flex-shrink:0!important;
}
.rci-member-card-v52>.btn,
.rci-product-card-v52>.btn,
.supplier-directory-card .actions,
.supplier-directory-card .btn:last-child,
.rci-directory-card .btn:last-child{
  margin-top:auto!important;
}
.rci-product-card-v51 .rci-product-info-v51{
  display:flex!important;
  flex-direction:column!important;
  flex:1 1 auto!important;
  min-height:0!important;
}
.rci-product-card-v51 .rci-product-info-v51>a{
  margin-top:auto!important;
}
.rci-product-card-v52 .rci-product-info-v52,
.rci-product-card-v52 .product-info{
  display:flex!important;
  flex-direction:column!important;
  flex:1 1 auto!important;
}
.rci-product-card-v52 .rci-product-info-v52>.btn,
.rci-product-card-v52 .product-info>.btn{
  margin-top:auto!important;
}
@media(max-width:760px){
  .rci-home-members-v51 .rci-member-card-v51 h3{min-height:2.6em!important}
  .rci-home-members-v51 .rci-member-card-v51 small{min-height:3.9em!important}
  .rci-home-members-v51 .rci-member-profile-v51{margin-top:auto!important}
}
