/* core/group, style "team-cta": peach section, triangles watermark bottom right, text left, 2×2 team cards.
   Figma: Event & Commercial Home › CTA 7229:16705; mobile: Mobile Orangery › CTA 7343:32482 (360 wide). Type comes from
   the blocks' own style-guide sizes. The section's padding lives here, not on the block, so it can change on mobile. */

.wp-block-group.is-style-team-cta {
	padding-block: 3.125rem 6.25rem;
}

.wp-block-group.is-style-team-cta > .wp-block-columns {
	gap: 4.6875rem;
	margin: 0;
	position: relative;
	z-index: 1;
}

.wp-block-group.is-style-team-cta .wp-block-column:first-child {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.875rem;
}

.wp-block-group.is-style-team-cta .is-style-eyebrow + .wp-block-heading {
	margin-block-start: -0.625rem;
}

.wp-block-group.is-style-team-cta p a {
	color: inherit;
}

.wp-block-group.is-style-team-cta .is-layout-grid {
	grid-template-columns: repeat(2, minmax(0, 13.125rem));
	gap: 0.625rem;
}

.wp-block-group.is-style-team-cta .is-layout-grid > .wp-block-group {
	gap: 0.625rem;
	padding: 1.25rem;
	/* Figma: orange at 15% over the peach gradient. Mixed onto the gradient's midpoint and kept opaque, so the
	   triangles (::after) never show through a card. */
	background: color-mix(in srgb, var(--wp--preset--color--primary) 15%, color-mix(in srgb, var(--wp--preset--color--peach), var(--wp--preset--color--peach-deep)));
}

.wp-block-group.is-style-team-cta .is-layout-grid .wp-block-image {
	margin: 0;
}

.wp-block-group.is-style-team-cta .is-layout-grid > .wp-block-group > p + p {
	margin-block-start: -0.625rem; /* role right under the name */
}

@media (width < 782px) {
	/* the "Peach" preset at the mobile frame's angle (re-pointing the variable the preset class reads) */
	.wp-block-group.is-style-team-cta {
		--wp--preset--gradient--peach: linear-gradient(93.2deg, var(--wp--preset--color--peach) 0%, var(--wp--preset--color--peach-deep) 100%);
		--wp--preset--font-size--text-2: var(--wp--preset--font-size--text-3); /* heading: Figma 61px desktop, 35px mobile */
		padding-block: 1.875rem;
	}

	.wp-block-group.alignfull.is-style-team-cta {
		padding-inline: 1.5625rem;
	}

	.wp-block-group.is-style-team-cta > .wp-block-columns {
		gap: 1.875rem;
	}

	.wp-block-group.is-style-team-cta .wp-block-column:first-child {
		gap: 1.25rem;
	}

	.wp-block-group.is-style-team-cta .is-style-eyebrow + .wp-block-heading {
		margin-block-start: 0;
	}

	.wp-block-group.is-style-team-cta .wp-block-button__link {
		display: block; /* inline-block left a baseline gap under it */
	}

	.wp-block-group.is-style-team-cta .is-layout-grid > .wp-block-group {
		background: rgb(74 85 101 / 0.1); /* Figma mobile card: greyscale 600 at 10% (no watermark behind it here) */
	}
}

/* tablets and small desktops: text and cards side by side, 50/50. Stacked, the cards left half the row empty; the
   Figma widths (41.93% / 38.61%, set on the columns) squeeze both until 1200px, the header's switch too. !important:
   core's stacking below 782px is !important. */
@media (480px < width < 1200px) {
	.wp-block-group.is-style-team-cta > .wp-block-columns {
		flex-wrap: nowrap !important;
	}

	.wp-block-group.is-style-team-cta > .wp-block-columns > .wp-block-column {
		flex: 1 1 0 !important;
	}
}

/* phones (WP mobile, ≤ 480px): full-width button, cards share the width. Tablets keep the 210px desktop cards (no
   tablet frame in Figma; stretched cards made 280px photos). */
@media (width <= 480px) {
	.wp-block-group.is-style-team-cta :is(.wp-block-buttons, .wp-block-button, .wp-block-button__link) {
		inline-size: 100%;
	}

	.wp-block-group.is-style-team-cta .is-layout-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
