/**
 * Feature card: .mk-feature-card (templates/components/feature-card.php).
 *
 * Bordered card, centred column: 48px circle with a 22px-wide icon, accent
 * title, description. Padding and title spacing per breakpoint from theme.json
 * `custom.featureCard.{mobile,tablet,desktop}` (48rem / 64rem).
 */

.mk-feature-card {
	--mk-feature-padding-block: var(
		--wp--custom--feature-card--mobile--padding-block
	);
	--mk-feature-padding-inline: var(
		--wp--custom--feature-card--mobile--padding-inline
	);
	--mk-feature-title-top: var(
		--wp--custom--feature-card--mobile--title-margin-top
	);
	--mk-feature-title-bottom: var(
		--wp--custom--feature-card--mobile--title-margin-bottom
	);

	display: flex;
	flex-direction: column;
	align-items: center;
	box-sizing: border-box;
	padding-block: var(--mk-feature-padding-block);
	padding-inline: var(--mk-feature-padding-inline);
	border-width: var(--wp--custom--feature-card--border-width);
	border-style: solid;
	border-color: var(--wp--custom--color--divider);
	border-radius: var(--wp--custom--feature-card--radius);
	text-align: center;
}

@media (min-width: 48rem) {
	.mk-feature-card {
		--mk-feature-padding-block: var(
			--wp--custom--feature-card--tablet--padding-block
		);
		--mk-feature-padding-inline: var(
			--wp--custom--feature-card--tablet--padding-inline
		);
		--mk-feature-title-top: var(
			--wp--custom--feature-card--tablet--title-margin-top
		);
		--mk-feature-title-bottom: var(
			--wp--custom--feature-card--tablet--title-margin-bottom
		);
	}
}

@media (min-width: 64rem) {
	.mk-feature-card {
		--mk-feature-padding-block: var(
			--wp--custom--feature-card--desktop--padding-block
		);
		--mk-feature-padding-inline: var(
			--wp--custom--feature-card--desktop--padding-inline
		);
		--mk-feature-title-top: var(
			--wp--custom--feature-card--desktop--title-margin-top
		);
		--mk-feature-title-bottom: var(
			--wp--custom--feature-card--desktop--title-margin-bottom
		);
	}
}

.mk-feature-card__icon {
	display: grid;
	flex: none;
	place-items: center;
	inline-size: var(--wp--custom--feature-card--icon-box-size);
	block-size: var(--wp--custom--feature-card--icon-box-size);
	border-radius: var(--wp--custom--feature-card--icon-radius);
	background-color: var(--wp--custom--color--surface--subtle);
}

.mk-feature-card__image {
	display: block;
	inline-size: var(--wp--custom--feature-card--icon-width);
	block-size: auto;
}

.mk-feature-card__title {
	margin-block: var(--mk-feature-title-top) var(--mk-feature-title-bottom);
	color: var(--wp--custom--color--text--accent);
	font-family: var(--wp--custom--text--label-large--font-family);
	font-size: var(--wp--custom--text--label-large--font-size);
	font-weight: var(--wp--custom--text--label-large--font-weight);
	line-height: var(--wp--custom--text--label-large--line-height);
	letter-spacing: var(--wp--custom--text--label-large--letter-spacing);
}

.mk-feature-card__description {
	margin: 0;
	font-family: var(--wp--custom--text--body-medium--font-family);
	font-size: var(--wp--custom--text--body-medium--font-size);
	font-weight: var(--wp--custom--text--body-medium--font-weight);
	line-height: var(--wp--custom--text--body-medium--line-height);
	letter-spacing: var(--wp--custom--text--body-medium--letter-spacing);
}
