/* MSB */

.vsc-main > .vsc-icon-card {
  max-width: min(300px, calc(100% - 2 * var(--vsc-content-pad, 16px)));
  margin: 24px auto;
  width: 100%;
  box-sizing: border-box;
}

.vsc-row__col > .vsc-icon-card {
  max-width: 300px;
  width: 100%;
  margin: 0;
  height: 100%;
}

.vsc-icon-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  width: 100%;
  max-width: 300px;
  min-height: 298px;
  border: 1px solid var(--color-border-muted, #ececec);
  border-radius: var(--radius-md, 8px);
  background: var(--color-bg-surface, #ffffff);
}

.vsc-icon-card__media {
  display: flex;
  justify-content: center;
  padding: 24px 16px 8px;
}

.vsc-icon-card__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: var(--color-brand-secondary, #202a44);
  color: var(--color-brand-primary, #d42c31);
  flex-shrink: 0;
}

.vsc-icon-card__icon {
  display: inline-flex;
  width: 64px;
  height: 64px;
}

.vsc-icon-card__icon svg {
  display: block;
  width: 64px;
  height: 64px;
  stroke-width: 1.5;
}

.vsc-icon-card__body {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 16px 12px 12px;
}

.vsc-icon-card__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  flex: 1 1 auto;
}

.vsc-icon-card__title {
  margin: 0;
  font-family: var(--font-display, var(--font-body));
  font-weight: 500;
  font-size: 18px;
  line-height: 24px;
  color: var(--color-brand-primary, #d42c31);
}

.vsc-icon-card__text {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-text-secondary, #6f6f6f);
}

.vsc-icon-card__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 24px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  line-height: normal;
  color: var(--color-brand-primary, #d42c31);
  text-decoration: none;
}

.vsc-icon-card__link::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms var(--cubic-bezier, cubic-bezier(0.4, 0, 0.2, 1));
}

.vsc-icon-card__link:hover::before,
.vsc-icon-card__link:focus-visible::before {
  opacity: 1;
}

.vsc-icon-card__link-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  color: currentColor;
}

.vsc-icon-card__link-icon svg {
  display: block;
  width: 16px;
  height: 16px;
}

/* Mobile only: whole card is the hit target when a link is set */
@media (max-width: 768px) {
  .vsc-main > .vsc-icon-card {
    max-width: calc(100% - 2 * var(--vsc-content-pad, 16px));
  }

  .vsc-row__col > .vsc-icon-card,
  .vsc-icon-card {
    max-width: 100%;
  }

  .vsc-icon-card--linked {
    position: relative;
    cursor: pointer;
  }

  .vsc-icon-card--linked .vsc-icon-card__link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
  }
}
