/* Legacy-parity text rendering: the old Creditas site sets
 * -webkit-font-smoothing: antialiased globally, which renders type
 * lighter/thinner on macOS. Webflow Code Components live in isolated
 * shadow roots, so this must be declared per-component on :host to
 * inherit into the shadow tree (the property does not cross the
 * shadow boundary). Without it, Blink defaults to subpixel smoothing
 * and identical 400-weight text looks heavier than the old site. */
:host {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Class naming: single-class, no BEM `__`; elements nested under
   `.related-link-card`. The CTA wrapper is `.cta-link` (not `.cta`) to avoid
   the global `.cta` block (the Cta component). */
.related-link-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background-color: #ffffff; /* neutral.0 */
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  cursor: pointer;

  .title {
    font-family: 'Helvetica Now Display', 'Helveticanowdisplay', Helvetica,
      Arial, sans-serif;
    font-size: 16px; /* md */
    font-weight: 700; /* Bold */
    line-height: 24px; /* md */
    color: #292929; /* neutral.100 */
  }

  .cta-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
  }

  .cta-label,
  .cta-arrow {
    font-family: 'Helvetica Now Display', 'Helveticanowdisplay', Helvetica,
      Arial, sans-serif;
    font-size: 14px; /* sm */
    font-weight: 700; /* Bold */
    line-height: 20px; /* sm */
    color: #4f9e00; /* primary.60 */
  }
}

