/* EMPRENDE v5.1 — Mobile card readability.
   Approved imagery, widths, titles and CTA sizing preserved.
   All 8 cards share equal height; descriptions are larger and easier to read. */
@media (max-width: 760px) {
  .reference-primary .path-grid > .path-card:nth-child(-n+8) {
    height: clamp(282px, calc((100svh - 136px) / 2), 332px) !important;
    min-height: 282px !important;
  }

  .reference-primary .path-grid > .path-card:nth-child(-n+8) > .featured-bottom {
    padding: 8px 8px 9px !important;
  }

  .reference-primary .path-grid > .path-card:nth-child(-n+8) .featured-bottom p {
    font-size: 12.2px !important;
    line-height: 1.34 !important;
    margin: 0 0 9px !important;
    min-height: calc(12.2px * 1.34 * 3) !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 4 !important;
    overflow: hidden !important;
  }
}

@media (max-width: 390px) {
  .reference-primary .path-grid > .path-card:nth-child(-n+8) {
    height: clamp(276px, calc((100svh - 132px) / 2), 324px) !important;
    min-height: 276px !important;
  }
  .reference-primary .path-grid > .path-card:nth-child(-n+8) .featured-bottom p {
    font-size: 11.8px !important;
    line-height: 1.34 !important;
    min-height: calc(11.8px * 1.34 * 3) !important;
  }
}

@media (max-width: 340px) {
  .reference-primary .path-grid > .path-card:nth-child(-n+8) {
    height: clamp(270px, calc((100svh - 126px) / 2), 316px) !important;
    min-height: 270px !important;
  }
  .reference-primary .path-grid > .path-card:nth-child(-n+8) .featured-bottom p {
    font-size: 11.4px !important;
    line-height: 1.33 !important;
  }
}
