/* Coach profile (cwp/coach-profile): "Meet your coach" on the Rawk the Year pages.
   Words left, photo and stats right; stacked under 768px with the photo first. */
.block-coach-profile {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 72px;
	align-items: center;
	color: var(--wp--preset--color--primary);
}


.block-coach-profile__eyebrow {
	margin: 0 0 10px;
	font-family: var(--wp--preset--font-family--secondary);
	font-size: var(--wp--custom--caps--label);
	font-weight: 700;
	letter-spacing: var(--wp--custom--caps--tracking-label);
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--wp--preset--color--brass-dark);
}

.block-coach-profile .block-coach-profile__heading {
	margin: 0 0 20px;
	color: var(--wp--preset--color--primary);
}

.block-coach-profile__text p {
	margin: 0 0 16px;
	line-height: 1.6;
}

.block-coach-profile__photo {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--wp--preset--color--primary);
}

.block-coach-profile__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Shade along the foot of the photo, under the caption */
.block-coach-profile__photo::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 42%;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0));
}

.block-coach-profile__caption {
	position: absolute;
	left: 24px;
	right: 24px;
	bottom: 22px;
	z-index: 2;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	color: var(--wp--preset--color--white);
}

.block-coach-profile__name {
	display: block;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.875rem;
	line-height: 1.1;
}

.block-coach-profile__role {
	display: block;
	margin-top: 6px;
	font-size: 0.9375rem;
	opacity: 0.9;
}

.block-coach-profile__badge {
	padding: 7px 14px;
	border: 1px solid rgba(255, 255, 255, 0.7);
	background: rgba(255, 255, 255, 0.18);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	white-space: nowrap;
}

.block-coach-profile__stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-top: 14px;
}

.block-coach-profile__stat {
	padding: 20px 22px;
	background: var(--wp--preset--color--secondary);
}

.block-coach-profile__stat b {
	display: block;
	margin-bottom: 8px;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 2.125rem;
	font-weight: 500;
	line-height: 1.1;
}

.block-coach-profile__stat span {
	display: block;
	font-size: 0.9375rem;
	line-height: 1.45;
	color: var(--wp--preset--color--black);
}

@media only screen and (max-width: 767px) {
	.block-coach-profile {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	/* Photo first once stacked: the site-wide rule for picture-right rows. A grid can't emit a
	   different source order per breakpoint, so this is the one place order is used. */
	.block-coach-profile__side {
		order: -1;
	}

	.block-coach-profile__name {
		font-size: 1.625rem;
	}
}

@media only screen and (max-width: 480px) {
	.block-coach-profile__stats {
		grid-template-columns: 1fr;
	}
}
