/* Card: Deep Green (white text, yellow icon circle) or outlined (Deep Green
   text, Deep Green icon circle with a Lime glyph). Same geometry as
   the route tile. The row layout is the parent Flexbox's or Grid's job. */
.rsd-card {
	--rsd-card-bg: var(--rsd-deep-green, #09373b);
	--rsd-card-fg: var(--rsd-white, #ffffff);
	--rsd-card-icon-bg: var(--rsd-yellow, #ffcc00);
	--rsd-card-icon-fg: var(--rsd-deep-green, #09373b);
	--rsd-card-cta: var(--rsd-yellow, #ffcc00);
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1 1 260px;
	min-width: 0;
	min-height: 250px;
	box-sizing: border-box;
	padding: 36px 32px 32px;
	border-radius: 32px;
	background: var(--rsd-card-bg);
	color: var(--rsd-card-fg);
	font-family: inherit;
	text-decoration: none;
}
/* `.elementor a` (Elementor's box-shadow: none) outranks a single class, so
   the outline is also set at that specificity for linked cards. */
.rsd-card--outline,
.elementor a.rsd-card--outline {
	--rsd-card-bg: transparent;
	--rsd-card-fg: var(--rsd-deep-green, #09373b);
	--rsd-card-icon-bg: var(--rsd-deep-green, #09373b);
	--rsd-card-icon-fg: var(--rsd-lime, #c7d540); /* never Devon Green on Deep Green (README §3) */
	--rsd-card-cta: var(--rsd-devon-green, #007963);
	box-shadow: inset 0 0 0 2px var(--rsd-deep-green, #09373b);
}

.rsd-card__icon {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--rsd-card-icon-bg);
	color: var(--rsd-card-icon-fg);
}
.rsd-card__icon svg {
	width: 28px;
	height: 28px;
}

/* Body fills the card so the CTA can sit at the bottom. */
.rsd-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}
.rsd-card__title {
	margin: 0;
	font-weight: 700;
	font-size: 2rem;
	line-height: 1.1;
	color: inherit;
}
.rsd-card__text {
	margin: 0;
	font-size: 1.25rem; /* body size, as feature rows and stats */
	line-height: 1.5;
	color: inherit;
}
.rsd-card__cta {
	margin-top: auto;
	padding-top: 16px;
	font-weight: 700;
	font-size: 1.125rem;
	color: var(--rsd-card-cta);
}

a.rsd-card:hover .rsd-card__title {
	text-decoration: underline;
	text-underline-offset: 0.12em;
}
a.rsd-card:focus-visible {
	outline: 3px solid var(--rsd-deep-green, #09373b);
	outline-offset: 3px;
}
.band-dark a.rsd-card:focus-visible,
.band-devon a.rsd-card:focus-visible {
	outline-color: var(--rsd-yellow, #ffcc00);
}

@media (max-width: 599px) {
	.rsd-card {
		flex-direction: row;
		align-items: flex-start;
		gap: 16px;
		min-height: 0;
		padding: 22px 20px;
		border-radius: 24px;
	}
	.rsd-card__icon {
		width: 48px;
		height: 48px;
	}
	.rsd-card__icon svg {
		width: 24px;
		height: 24px;
	}
	.rsd-card__body {
		gap: 4px;
	}
	.rsd-card__title {
		font-size: 25px;
	}
	.rsd-card__text {
		font-size: 17px;
		line-height: 1.45;
	}
	.rsd-card__cta {
		margin-top: 8px;
		padding-top: 0;
		font-size: 17px;
	}
}

/* Same reason as the route tile: beat the kit's link colour on the <a> root. */
.elementor a.rsd-card,
.elementor a.rsd-card:hover,
.elementor a.rsd-card:focus {
	color: var(--rsd-card-fg);
}
