/**
 * Callout card (Figma: Component 148, "What's next?").
 *
 * The link's ::after stretches over the card so the whole card is clickable.
 * The link may be a <button>, so it also resets button styles.
 */

.callout-card {
	position: relative;
	display: flex;
	gap: 24px;
	align-items: center;
	padding: 24px;
	font-family: var(--emc-font-family);
	color: var(--emc-color-purple-100);
	background-color: var(--emc-color-purple-light);
	border-radius: 16px;
	box-shadow: 4px 8px 32px rgb(0 0 0 / 25%);
}

.callout-card:has(.callout-card__link:focus-visible) {
	outline: 2px solid var(--emc-color-purple-80);
	outline-offset: 4px;
}

.callout-card__media {
	flex: none;
	width: 165px;
	height: 160px;
	overflow: hidden;
	border-top-right-radius: 100px;
}

.callout-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.callout-card__content {
	display: flex;
	flex: 0 1 278px;
	flex-direction: column;
	gap: 8px;
	align-items: flex-start;
	min-width: 0;
}

.callout-card__kicker {
	margin: 0;
	font-size: 10px;
	font-weight: var(--emc-font-weight-regular);
	line-height: 16px;
	color: var(--emc-color-purple-80);
	text-transform: uppercase;
	letter-spacing: 5px;
}

.callout-card__title {
	margin: 0;
	font-size: 22px;
	font-weight: var(--emc-font-weight-light);
	line-height: 32px;
	color: var(--emc-color-purple-100);
	overflow-wrap: break-word;
}

.callout-card:hover .callout-card__title {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.callout-card__link,
.callout-card__link:hover,
.callout-card__link:focus,
.callout-card__link:visited {
	appearance: none;
	display: inline-flex;
	flex-direction: column;
	gap: 8px;
	padding: 0;
	font-family: inherit;
	font-size: 12px;
	font-weight: var(--emc-font-weight-regular);
	line-height: 24px;
	color: var(--emc-color-purple-100);
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	background: none;
	border: 0;
	border-radius: 0;
}

.callout-card__link::after {
	position: absolute;
	inset: 0;
	content: "";
	border-radius: inherit;
}

.callout-card__link:focus-visible {
	outline: none;
}

.callout-card__link-underline {
	display: block;
}

@media (max-width: 599px) {

	.callout-card {
		gap: 16px;
		padding: 16px;
	}

	.callout-card__media {
		width: 96px;
		height: 93px;
		border-top-right-radius: 58px;
	}

	.callout-card__title {
		font-size: 18px;
		line-height: 26px;
	}
}
