/* Academy library only: match the approved first three text cards.
   Remaining media in the inspected library is decorative (aria-hidden),
   so hide its box instead of letting the placeholder stretch an entire row.
   Existing card typography, spacing, buttons and responsive columns remain.
*/
body.hy-academy-index .ac-shell #academy-library > .ac-grid > .ac-card > .ac-card-media[aria-hidden="true"] {
  display: none !important;
}

/* Apply the existing .hlr4-text-card layout to every library card. */
body.hy-academy-index .ac-shell #academy-library > .ac-grid > .ac-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
