/* Homepage variants of the shared section patterns. */
.polcrm-hero.polcrm-hero--split.is-style-home-featured {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: transparent;
	padding-block: 43px;
}

.is-style-home-featured::before,
.is-style-home-featured::after {
	content: "";
	position: absolute;
	z-index: -1;
	pointer-events: none;
	background: center / contain no-repeat;
}

.is-style-home-featured::before {
	inline-size: 560px;
	block-size: 560px;
	left: calc(50% - 710px);
	top: 20px;
	background-image: url("../images/home-hero/glow-primary.svg");
}

.is-style-home-featured::after {
	inline-size: 360px;
	block-size: 360px;
	left: calc(50% - 260px);
	top: 300px;
	background-image: url("../images/home-hero/glow-raised.svg");
}

.polcrm-hero.is-style-home-featured .wp-block-image.polcrm-hero__visual {
	min-block-size: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.polcrm-hero.is-style-home-featured .polcrm-hero__title {
	font-size: 44px;
	line-height: 61px;
}

.is-style-home-featured .polcrm-hero__proof {
	display: none;
}

.polcrm-showcase.is-style-home-inbox,
.polcrm-cta.is-style-home-closing {
	background: var(--wp--preset--color--inverse);
	color: var(--wp--preset--color--inverse-text);
}

.is-style-home-inbox .polcrm-showcase__copy > .polcrm-showcase__title {
	color: inherit;
}

.is-style-home-inbox .polcrm-showcase__lead {
	color: var(--wp--custom--color--dark-text-muted);
}

.is-style-home-inbox .polcrm-showcase__context,
.is-style-home-inbox .polcrm-showcase__fact {
	background: var(--wp--custom--color--dark-surface-raised);
	border-color: var(--wp--custom--color--dark-border-subtle);
	color: inherit;
}

.is-style-home-inbox :is(.polcrm-showcase__context-title, .polcrm-showcase__fact-value) {
	color: inherit;
}

.is-style-home-inbox :is(.polcrm-showcase__context-text, .polcrm-showcase__fact-label) {
	color: var(--wp--custom--color--dark-text-muted);
}

.polcrm-cta.is-style-home-closing .polcrm-cta__content {
	position: relative;
	isolation: isolate;
	min-block-size: 312px;
	border: 1px solid var(--wp--custom--color--dark-border-subtle);
	border-radius: 28px;
}

.is-style-home-closing .polcrm-cta__content::before {
	content: "";
	position: absolute;
	z-index: -1;
	pointer-events: none;
	inset-block-start: 35px;
	inset-inline-end: 27px;
	inline-size: min(240px, 40%);
	aspect-ratio: 1;
	background: center / contain no-repeat url("../images/home-cta/glow.svg");
}

@media (max-width: 767px) {
	.polcrm-hero.polcrm-hero--split.is-style-home-featured {
		padding-block: 20px 28px;
	}

	.is-style-home-featured::before,
	.is-style-home-featured::after,
	.polcrm-hero.is-style-home-featured .polcrm-hero__media {
		display: none;
	}

	.polcrm-hero.is-style-home-featured .polcrm-hero__title {
		font-size: 32px;
		line-height: 49px;
	}

	.is-style-home-featured .polcrm-hero__proof {
		display: grid;
		gap: 8px;
		margin-block-start: 12px;
		padding: 12px;
		border: 1px solid var(--wp--preset--color--border);
		border-radius: 15px;
		background: var(--wp--preset--color--primary-contrast);
	}

	.is-style-home-featured .polcrm-hero__proof-card {
		padding: 8px;
		border-radius: 8px;
		background: var(--wp--preset--color--surface-raised);
	}

	.is-style-home-featured .polcrm-hero__proof-card > * {
		margin: 0;
	}

	.is-style-home-featured .polcrm-hero__proof-kicker {
		color: var(--wp--preset--color--primary);
		font-size: 12px;
	}

	.is-style-home-featured .polcrm-hero__proof-value {
		font-size: 14px;
		font-weight: 600;
	}

	.polcrm-cta.is-style-home-closing .polcrm-cta__content {
		min-block-size: 0;
	}
}

@media (max-width: 767px) {
	.wp-block-post-content:has(> .is-style-home-featured) > :is(.polcrm-rail:not(:has(.polcrm-rail__title)), .polcrm-contrast, .polcrm-steps--track) {
		display: none;
	}

	.wp-block-post-content:has(> .is-style-home-featured) > .polcrm-showcase {
		padding-block: 28px;
	}

	.wp-block-post-content:has(> .is-style-home-featured) > .polcrm-showcase .polcrm-showcase__media {
		display: none;
	}

	.wp-block-post-content:has(> .is-style-home-featured) > .is-style-home-closing {
		order: 1;
	}

	.wp-block-post-content:has(> .is-style-home-featured) > .polcrm-resources {
		order: 2;
	}
}
