/**
 * Coach profile and coach list. Loaded only on coach pages (see inc/coach-layout.php).
 */

.tr-coach-page {
	--tr-ink: #1d1d1f;
	--tr-muted: #6e6e73;
	--tr-surface: #f5f5f7;
	--tr-line: #e5e5ea;
	--tr-brand: #1d123a;
	--tr-brand-hover: #5b238b;
	--tr-accent: #ff915c;
}

/* Coach pages are always light so the text stays readable,
   even if an older dark coach style is still active somewhere on the site. */
body.tr-coach-page,
.tr-coach-page #page,
.tr-coach-page #content,
.tr-coach-page .site-content,
.tr-coach-page .site-content-container,
.tr-coach-page .tr-coach,
.tr-coach-page .tr-coach-more {
	background-color: #fff !important;
	background-image: none !important;
	color: var(--tr-ink);
}

/* ---------- Profile hero ---------- */

.tr-coach__hero {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
	align-items: center;
	margin: 24px 0 56px;
}

@media (min-width: 900px) {
	.tr-coach__hero {
		grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
		gap: 72px;
		margin: 48px 0 88px;
	}
}

.tr-coach__portrait {
	position: relative;
	aspect-ratio: 4 / 5;
	border-radius: 24px;
	overflow: hidden;
	background: var(--tr-surface);
}

.tr-coach__portrait img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.tr-coach__back {
	display: inline-block;
	margin-bottom: 28px;
	color: var(--tr-muted);
	font-size: 14px;
	text-decoration: none;
}

.tr-coach__back:hover {
	color: var(--tr-ink);
}

.tr-coach__role {
	margin: 0 0 10px;
	color: var(--tr-brand-hover);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.tr-coach-page .tr-coach__name {
	margin: 0 0 20px;
	color: var(--tr-ink);
	font-size: 40px;
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -.025em;
	text-transform: none;
}

@media (min-width: 900px) {
	.tr-coach-page .tr-coach__name {
		font-size: 56px;
	}
}

.tr-coach__lead,
.tr-coach__lead p {
	color: var(--tr-ink);
	font-size: 19px;
	line-height: 1.55;
}

.tr-coach__lead p {
	margin: 0 0 12px;
}

.tr-coach__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

.tr-coach__tags li {
	margin: 0;
	padding: 6px 14px;
	border-radius: 980px;
	background: var(--tr-surface);
	color: var(--tr-ink);
	font-size: 13px;
	font-weight: 500;
}

.tr-coach__cta {
	display: inline-flex;
	align-items: center;
	min-height: 50px;
	margin-top: 32px;
	padding: 0 30px;
	border-radius: 980px;
	background: var(--tr-brand);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color .2s ease;
}

.tr-coach__cta:hover {
	background: var(--tr-brand-hover);
	color: #fff;
}

/* ---------- Profile text ---------- */

.tr-coach__content {
	max-width: 720px;
	margin: 0 auto 96px;
	color: var(--tr-ink);
	font-size: 17px;
	line-height: 1.7;
}

.tr-coach__content > *:first-child {
	margin-top: 0;
}

.tr-coach__content h2,
.tr-coach__content h3 {
	margin: 48px 0 16px;
	color: var(--tr-ink);
	font-weight: 600;
	letter-spacing: -.015em;
	text-transform: none;
}

.tr-coach__content h2 {
	font-size: 28px;
}

.tr-coach__content h3 {
	font-size: 21px;
}

.tr-coach__content img {
	border-radius: 18px;
}

.tr-coach__content blockquote {
	margin: 40px 0;
	padding: 0 0 0 24px;
	text-align: left;
	border-left: 3px solid var(--tr-accent);
	font-size: 22px;
	font-style: normal;
	line-height: 1.45;
}

.tr-coach__content blockquote::before,
.tr-coach__content blockquote::after {
	display: none;
}

.tr-coach__content ul {
	padding-left: 1.2em;
}

/* ---------- Cards (more coaches + list) ---------- */

.tr-coach-more {
	padding: 64px 0 96px;
	border-top: 1px solid var(--tr-line);
}

.tr-coach-page .tr-coach-more__title {
	margin: 0 0 32px;
	color: var(--tr-ink);
	font-size: 28px;
	font-weight: 600;
	letter-spacing: -.02em;
	text-align: center;
	text-transform: none;
}

.tr-coach-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 24px;
}

@media (min-width: 900px) {
	.tr-coach-more .tr-coach-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 32px;
	}
}

.tr-coach-grid--archive {
	margin: 24px 0 80px;
}

.tr-coach-card__link {
	display: block;
	color: var(--tr-ink);
	text-decoration: none;
}

.tr-coach-card__image {
	position: relative;
	aspect-ratio: 4 / 5;
	border-radius: 18px;
	overflow: hidden;
	background: var(--tr-surface);
	transition: box-shadow .3s ease;
}

.tr-coach-card__image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	transition: transform .5s ease;
}

.tr-coach-card__link:hover .tr-coach-card__image {
	box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
}

.tr-coach-card__link:hover .tr-coach-card__image img {
	transform: scale(1.03);
}

.tr-coach-card__body {
	padding: 16px 4px 0;
}

.tr-coach-card__role {
	margin: 0 0 4px;
	color: var(--tr-brand-hover);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.tr-coach-page .tr-coach-card__name {
	margin: 0 0 8px;
	color: var(--tr-ink);
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -.01em;
	text-transform: none;
}

.tr-coach-card__more {
	color: var(--tr-muted);
	font-size: 14px;
	transition: color .2s ease;
}

.tr-coach-card__link:hover .tr-coach-card__more {
	color: var(--tr-brand-hover);
}

@media (max-width: 599px) {
	.tr-coach-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}

	.tr-coach-page .tr-coach-card__name {
		font-size: 16px;
	}

	.tr-coach-card__more {
		display: none;
	}
}
