/* v17: package price presentation only. */
.package-grid .package-price {
  margin: 18px 0;
  color: var(--navy);
  font-size: clamp(32px, 3vw, 40px);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}
.package-grid .featured-package .package-price { color: #fff; }

/* Keep every card on the same visual baseline, including the featured one. */
.package-grid .featured-package { transform: none; }

/* Fallback for browsers without subgrid. */
.package-grid article > span { min-height: 2.4em; }
.package-grid article > h3 { min-height: 3.45em; }
.package-grid article > em { min-height: 2.4em; }

/* Seven shared rows: label, name, team size, price, description, list, link.
   Each visual row of cards sizes itself to its longest content. */
@supports (grid-template-rows: subgrid) {
  .package-grid { row-gap: 0; }
  .package-grid article {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 7;
    row-gap: 0;
    align-items: start;
    margin-bottom: 14px;
  }
  .package-grid article > span,
  .package-grid article > h3,
  .package-grid article > em { min-height: 0; }
  .package-grid article > a { align-self: end; margin-top: 18px; }
}

/* Single-card rows need no reserved heading space. */
@media (max-width: 540px) {
  .package-grid { grid-template-columns: minmax(0, 1fr); }
  .package-grid article > span,
  .package-grid article > h3,
  .package-grid article > em { min-height: 0; }
}

/* v22: monthly membership prices; preserve aligned price rows. */
.package-grid .package-price .price-period {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  color: inherit;
}
