/* Editorial illustrations for public hero cards. The SVGs are decorative;
   the card's existing text carries the same meaning for assistive tech. */
.hero-badge-card.hero-illustrated,
.wl-hero-card.hero-illustrated,
.nextgen-hero-card.hero-illustrated {
  width: 100%;
  min-width: 0;
  max-width: 420px;
  padding: 36px;
}

.hero-frame > .hero-visual {
  min-width: 0;
}

.hero-frame > .hero-content {
  min-width: 0;
}

.hero-illustrated .hero-card-art {
  display: block;
  width: 100%;
  max-width: 320px;
  height: 148px;
  margin: 10px 0 18px;
  object-fit: contain;
  object-position: left center;
}

.hero-illustrated--cpd .badge-header {
  position: relative;
  min-height: 82px;
  padding-right: 112px;
}

.hero-illustrated--cpd .badge-header .hero-card-art {
  position: absolute;
  top: -6px;
  right: -4px;
  width: 106px;
  height: 72px;
  margin: 0;
}

@media (max-width: 1024px) {
  .hero-badge-card.hero-illustrated,
  .wl-hero-card.hero-illustrated,
  .nextgen-hero-card.hero-illustrated {
    max-width: 520px;
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .hero-frame .hero-actions > a {
    max-width: 100%;
    white-space: normal;
  }

  .hero-badge-card.hero-illustrated,
  .wl-hero-card.hero-illustrated,
  .nextgen-hero-card.hero-illustrated {
    padding: 28px 24px;
  }

  .hero-illustrated .hero-card-art {
    height: 122px;
    margin: 8px 0 14px;
  }

  .hero-illustrated--cpd .badge-header {
    padding-right: 82px;
  }

  .hero-illustrated--cpd .badge-header .hero-card-art {
    width: 76px;
    height: 62px;
    margin: 0;
  }
}
