/*
 * Coach profile — core Group block, Style: Coach profile (a post in the Coaches / Edzők category).
 * Four children, in this order: intro (eyebrow, title, one line) · photo (Featured image) · facts (chips) · details
 * (cards). Wide screen: photo on the left, the other three stacked on the right. Phone: one column in DOM order, so it
 * reads intro → photo → facts → details.
 * app: final-cards §1 .fc-card, §5 .ev-chip
 */
.wp-block-group.is-style-coach-profile {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.25rem;
	align-items: start;
}

.wp-block-group.is-style-coach-profile > * {
	max-width: none;
	margin: 0;
}

/* Intro: same left accent as the Page title heading style. */
.wp-block-group.is-style-coach-profile > :nth-child(1) {
	padding-inline-start: 0.75rem;
	border-inline-start: 3px solid var(--sc-primary);
}

.wp-block-group.is-style-coach-profile > :nth-child(1) > * {
	margin-block: 0;
}

.wp-block-group.is-style-coach-profile > :nth-child(1) .wp-block-post-title {
	font-size: var(--wp--preset--font-size--page-title);
	font-weight: 800;
}

.wp-block-group.is-style-coach-profile > :nth-child(1) .is-style-lead {
	margin-block-start: 0.5rem;
}

/* Photo */
.wp-block-group.is-style-coach-profile .wp-block-post-featured-image {
	margin: 0;
}

.wp-block-group.is-style-coach-profile .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	border-radius: var(--sc-radius);
	box-shadow: var(--sc-shadow-card);
}

/* Details: the cards sit one under the other. */
.wp-block-group.is-style-coach-profile > :nth-child(4) {
	display: grid;
	gap: 1.25rem;
}

.wp-block-group.is-style-coach-profile > :nth-child(4) > * {
	margin: 0;
}

.wp-block-group.is-style-coach-profile > :nth-child(4) .wp-block-heading.is-style-eyebrow {
	margin-block: 1.25rem 0.25rem;
}

@media (min-width: 860px) {
	.wp-block-group.is-style-coach-profile {
		grid-template-columns: 380px minmax(0, 1fr);
		grid-template-areas:
			"photo intro"
			"photo facts"
			"photo details";
		grid-template-rows: auto auto 1fr;
		column-gap: 3rem;
	}

	.wp-block-group.is-style-coach-profile > :nth-child(1) { grid-area: intro; }

	/* The photo stays in view while the cards scroll past. */
	.wp-block-group.is-style-coach-profile > :nth-child(2) {
		grid-area: photo;
		position: sticky;
		top: 6rem;
	}

	.wp-block-group.is-style-coach-profile > :nth-child(3) { grid-area: facts; }
	.wp-block-group.is-style-coach-profile > :nth-child(4) { grid-area: details; }
}

/* Astra's "Previous / Next post" would walk from one coach to another in date order; the Coaches page is the way in. */
body.single-post:has(.is-style-coach-profile) .post-navigation {
	display: none;
}
