/*
 * .resources__card on inner pages — the homepage card (index.css) measured
 * like the inner page designs (template-parts/cards/resource-card.php).
 * Figma: D 454 × 640 (/resources/articles-insights 1574:12314, webinars 1574:11327),
 * M 295 × 480 (1574:12178, 1574:11235).
 *
 * Loaded only with the inner page components (inc/components.php), never on
 * the homepage. Figma trims text boxes to the cap height and the baseline, so
 * the badge, date and title lose the extra leading of their CSS line boxes
 * (numbers: _tokens.css); fluid sizes are re-anchored from 320 to the 375 px
 * phone frame.
 */

/* .resources__media — photo 220 → 300 px */
.resources__media {
  height: clamp(13.75rem, 11.9727rem + 7.5829vw, 18.75rem);
}

/* .resources__badge — 20 → 30 px from the photo's corner */
.resources__badge {
  left: clamp(1.25rem, 1.0278rem + 0.9479vw, 1.875rem);
  bottom: clamp(1.25rem, 1.0278rem + 0.9479vw, 1.875rem);
}

/* .resources__badge-text — 12 → 14 px, cap height inside the 15 px padding: badge 39 → 40 px */
.resources__badge-text {
  margin: -0.14em 0 -0.16em;
  font-size: clamp(0.75rem, 0.7056rem + 0.1896vw, 0.875rem);
}

/* .resources__body — padding 20 → 30 px, content → link 30 → 45 px */
.resources__body {
  gap: clamp(1.875rem, 1.5418rem + 1.4218vw, 2.8125rem);
  padding: clamp(1.25rem, 1.0278rem + 0.9479vw, 1.875rem);
}

/* .resources__content — pills → date → title: 20 → 30 px */
.resources__content {
  gap: clamp(1.25rem, 1.0278rem + 0.9479vw, 1.875rem);
}

/* .resources__meta — 12 → 16 px; phones: a 22 px row (Figma 1574:12178), from 768 px the trimmed text line */
.resources__meta {
  min-height: 1.375rem;
  font-size: clamp(0.75rem, 0.6611rem + 0.3791vw, 1rem);

  /* @media (width >= 48em) .resources__meta */
  @media (width >= 48em) {
    min-height: 0;
    margin: -0.14em 0 -0.16em;
  }
}

/* .resources__title-card — 23 → 32 px, trimmed: lh 110 % on phones, 120 % from 768 px (index.css) */
.resources__title-card {
  margin: -0.19em 0 -0.21em;
  font-size: clamp(1.4375rem, 1.2376rem + 0.8531vw, 2rem);

  /* @media (width >= 48em) .resources__title-card */
  @media (width >= 48em) {
    margin: -0.24em 0 -0.26em;
  }
}

/* .resources__link — label 15 → 20 px, arrow 20 → 24 px */
.resources__link {
  & span {
    font-size: clamp(0.9375rem, 0.8264rem + 0.4739vw, 1.25rem);
  }

  /* .resources__link .resources__link-icon */
  & .resources__link-icon {
    width: clamp(1.25rem, 1.1611rem + 0.3791vw, 1.5rem);
    height: clamp(1.25rem, 1.1611rem + 0.3791vw, 1.5rem);
  }
}
