/*
 * A coach's page, /coach/<handle>/ (blocks/coach-profile/render.php): the app's profile (frontend
 * coach-profile-view.tsx, the rushd.coach /coach/ design) drawn in HTML on this site. The navy hero
 * edge to edge, then a pale band holding the main column (About, Plans, Case studies, Education,
 * Credentials) beside the sidebar (the navy Chemistry session card, Specialties, Availability).
 *
 * Loaded on the coach page only (includes/coach-page.php). Plain CSS, shipped as it is: deploy.sh
 * ships assets/, not src/. The --rc-* properties are the theme's presets (theme.json), with their
 * hex as the fallback when another theme is active.
 *
 * Mobile first: the phone layout, then from 640px the app's wider hero (its `sm`), and the sidebar
 * beside the main column once both fit. The theme floats its nav over a page that opens with this
 * block (rushd-has-frame, theme.css), so the hero starts under the nav and leaves it its height.
 */
.rushd-coach {
	--rc-navy-1: var(--wp--preset--color--navy-1, #16304E);
	--rc-navy-2: var(--wp--preset--color--navy-2, #0E2138);
	--rc-gold-2: var(--wp--preset--color--gold-2, #D8B463);
	--rc-gold-deep: var(--wp--preset--color--gold-deep, #B0883E);
	--rc-gold-hero: var(--wp--preset--color--gold-hero, #E7C063);
	--rc-cream: var(--wp--preset--color--cream, #EBE6DA);
	--rc-cream-hi: var(--wp--preset--color--cream-hi, #FCFAF4);
	--rc-fg-1: var(--wp--preset--color--fg-1, #11182C);
	--rc-fg-2: var(--wp--preset--color--fg-2, #24262D);
	--rc-fg-3: var(--wp--preset--color--fg-3, #637381);
	--rc-fg-5: var(--wp--preset--color--fg-5, #7D858F);
	--rc-page: var(--wp--preset--color--page, #F7F8FA);
	--rc-white: var(--wp--preset--color--white, #FFFFFF);
	--rc-border-1: var(--wp--preset--color--border-1, #EDEEF1);
	--rc-border-2: var(--wp--preset--color--border-2, #E5E7EB);
	--rc-line: #D8D2C4; /* the app's cream-line: the warm hairline of an outline control */
	--rc-serif: var(--wp--preset--font-family--cormorant, "Cormorant Garamond", Georgia, "Times New Roman", serif);
	--rc-sans: var(--wp--preset--font-family--jakarta, "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
	--rc-hero: var(--wp--preset--gradient--panel, linear-gradient(158deg, #16304E 0%, #0E2138 100%));
	--rc-gold-button: var(--wp--preset--gradient--gold-button, linear-gradient(180deg, #D8B463, #C99A3F));
	--rc-pad: 16px;
	flex: 1 0 auto;
	display: flex;
	flex-direction: column;
	font-family: var(--rc-sans);
	color: var(--rc-fg-1);
	line-height: 1.5;
}
/* The theme's home coach card (sections.css) is .rushd-coach too, with 22px padding, a 10px gap
   and a grey .rushd-coach__meta: reset here, with the block's class for the weight to win, or the
   hero is framed in white. */
.wp-block-rushd-coach-profile.rushd-coach { padding: 0; gap: 0; }
.rushd-coach *, .rushd-coach *::before, .rushd-coach *::after { box-sizing: border-box; }
.rushd-coach :where(h1, h2, h3, p, ul, dl, dd, blockquote) { margin: 0; }
.rushd-coach :where(ul) { padding: 0; list-style: none; }
.rushd-coach img { max-width: 100%; }
.rushd-coach a { text-decoration: none; }
.rushd-coach a:focus-visible { outline: 2px solid var(--rc-navy-1); outline-offset: 2px; }
.rushd-coach__hero a:focus-visible, .rushd-coach__call a:focus-visible { outline-color: var(--rc-gold-2); }
.rushd-coach__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ── Hero ─────────────────────────────────────────────── */
.rushd-coach__hero {
	position: relative;
	overflow: hidden;
	background: var(--rc-hero);
	color: var(--rc-cream);
}
.rushd-coach .rushd-coach__watermark {
	position: absolute;
	right: -80px;
	bottom: -140px;
	width: 520px;
	max-width: none;
	opacity: .05;
	pointer-events: none;
	user-select: none;
}
.rushd-coach__hero-inner {
	position: relative;
	max-width: 1240px;
	margin: 0 auto;
	padding: calc(var(--rushd-nav-h, 88px) + 20px) var(--rc-pad) 56px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.rushd-coach .rushd-coach__back {
	align-self: flex-start;
	border-radius: 2px;
	font-size: 13.5px;
	line-height: normal;
	color: rgba(235, 230, 218, .75);
	transition: color .15s;
}
.rushd-coach .rushd-coach__back:hover { color: var(--rc-gold-hero); }
/* On a phone the photo, the text and the stats share one wrapping row, and the text column draws
   no box (display: contents): the name and the chip sit beside an 88px photo, and the tagline, the
   meta line, the buttons and the stats each take a full line under them, as in the app. */
.rushd-coach__intro {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 12px 14px;
	min-width: 0;
}
.rushd-coach__photo {
	flex: 0 0 88px;
	width: 88px;
	height: 88px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border: 1px solid rgba(235, 230, 218, .18);
	border-radius: 18px;
	background: var(--rc-navy-2);
	font-family: var(--rc-serif);
	font-size: 32px;
	font-weight: 500;
	color: var(--rc-gold-2);
}
.rushd-coach .rushd-coach__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
}
.rushd-coach__text { display: contents; }
.rushd-coach__heading {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}
.rushd-coach .rushd-coach__name {
	font-family: var(--rc-serif);
	font-size: 30px;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: normal;
	color: var(--rc-cream-hi);
	overflow-wrap: anywhere;
}
.rushd-coach .rushd-coach__chip {
	padding: 4px 9px;
	border: 1px solid rgba(216, 180, 99, .5);
	border-radius: 6px;
	background: rgba(216, 180, 99, .16);
	font-size: 11px;
	font-weight: 700;
	line-height: normal;
	letter-spacing: .08em;
	white-space: nowrap;
	color: var(--rc-gold-hero);
}
.rushd-coach .rushd-coach__tagline {
	width: 100%;
	max-width: 640px;
	font-size: 16.5px;
	line-height: 1.55;
	color: rgba(235, 230, 218, .88);
}
.rushd-coach .rushd-coach__meta {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 22px;
	font-size: 14px;
	line-height: normal;
	color: rgba(235, 230, 218, .85);
}
.rushd-coach__actions {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.rushd-coach .rushd-coach__btn {
	flex: 1 1 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	padding: 0 16px;
	border: 1px solid transparent;
	border-radius: 10px;
	font-size: 15px;
	line-height: normal;
	white-space: nowrap;
	transition: filter .15s, background-color .15s, border-color .15s;
}
.rushd-coach .rushd-coach__btn--gold,
.rushd-coach .rushd-coach__btn--gold:hover {
	background: var(--rc-gold-button);
	color: var(--rc-navy-2);
	font-weight: 700;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}
.rushd-coach .rushd-coach__btn--gold:hover { filter: brightness(1.08); }
.rushd-coach .rushd-coach__btn--outline,
.rushd-coach .rushd-coach__btn--outline:hover {
	border-color: rgba(216, 180, 99, .55);
	color: var(--rc-cream-hi);
	font-weight: 600;
}
.rushd-coach .rushd-coach__btn--outline:hover { border-color: var(--rc-gold-2); background: rgba(216, 180, 99, .14); }
/* Coaching hours and the chemistry session: square tiles behind 1px hairlines in one rounded
   block. On a phone it spans the row and the two tiles split it. */
.rushd-coach__stats {
	width: 100%;
	flex-shrink: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1px;
	overflow: hidden;
	border-radius: 14px;
	background: rgba(235, 230, 218, .14);
}
.rushd-coach__stats li {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px;
	background: var(--rc-navy-2);
}
.rushd-coach__stat-value {
	font-family: var(--rc-serif);
	font-size: 30px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	color: var(--rc-cream-hi);
}
.rushd-coach__stat-label {
	font-size: 12px;
	line-height: normal;
	color: rgba(235, 230, 218, .7);
}
@media (min-width: 640px) {
	.rushd-coach { --rc-pad: 32px; }
	.rushd-coach__hero-inner { gap: 24px; }
	.rushd-coach__intro { align-items: center; gap: 32px; }
	.rushd-coach__photo {
		flex: none;
		width: 180px;
		height: 180px;
		border: 0;
		border-radius: 20px;
		font-size: 61px;
		box-shadow: 0 0 0 1px rgba(235, 230, 218, .18), 0 24px 48px -20px rgba(0, 0, 0, .6);
	}
	.rushd-coach .rushd-coach__photo img { object-position: center; }
	/* Capped at the tagline's width, so the stats sit beside the text, not at the far edge. */
	.rushd-coach__text {
		flex: 1 1 420px;
		min-width: 0;
		max-width: 640px;
		display: flex;
		flex-direction: column;
		gap: 12px;
	}
	.rushd-coach__heading { flex: none; gap: 12px; }
	.rushd-coach .rushd-coach__name { font-size: clamp(40px, 4.6vw, 60px); line-height: 1; }
	.rushd-coach .rushd-coach__tagline, .rushd-coach .rushd-coach__meta, .rushd-coach__actions { width: auto; }
	.rushd-coach .rushd-coach__meta { row-gap: 10px; }
	.rushd-coach__actions { margin-top: 6px; }
	.rushd-coach .rushd-coach__btn { flex: none; padding: 0 24px; }
	.rushd-coach__stats { display: flex; width: auto; }
}

/* ── Body: the pale band, the main column and the sidebar ── */
.rushd-coach__body {
	flex: 1 0 auto;
	background: var(--rc-page);
}
/* As the app wraps them: the sidebar 320px beside the main column while both fit (a 972px window),
   else under it, at most 400px wide. */
.rushd-coach__layout {
	max-width: 1240px;
	margin: 0 auto;
	padding: 40px var(--rc-pad) 72px;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 28px;
}
.rushd-coach__main, .rushd-coach__side {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.rushd-coach__main { flex: 999 1 560px; }
.rushd-coach__side {
	flex: 1 1 320px;
	max-width: 400px;
	gap: 16px;
	position: sticky;
	top: 20px;
}
.rushd-coach__card {
	position: relative; /* holds the screen-reader text, which is absolute */
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 28px;
	border: 1px solid var(--rc-border-1);
	border-radius: 15px;
	background: var(--rc-white);
}
.rushd-coach__card--side { gap: 12px; padding: 22px; }
.rushd-coach__about { gap: 14px; }
.rushd-coach__plans-card { scroll-margin-top: 20px; }
.rushd-coach__head { display: flex; flex-direction: column; gap: 4px; }
.rushd-coach .rushd-coach__title {
	font-family: var(--rc-serif);
	font-size: 28px;
	font-weight: 600;
	line-height: normal;
	letter-spacing: normal;
	color: var(--rc-navy-2);
}
.rushd-coach .rushd-coach__note {
	font-size: 13px;
	line-height: normal;
	color: var(--rc-fg-5);
}
.rushd-coach__about p {
	font-size: 15px;
	line-height: 1.65;
	color: var(--rc-fg-2);
	overflow-wrap: anywhere;
}

/* The intro video under About, as in the app: 16:9, rounded, navy until the player draws. */
.rushd-coach__video {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 12px;
	overflow: hidden;
	background: linear-gradient(135deg, var(--rc-navy-2), var(--rc-navy-1));
}
.rushd-coach__video iframe {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}
/* Plans and case studies: cream cards in a grid that fills the column. */
.rushd-coach__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
	gap: 14px;
}
.rushd-coach__grid--studies { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.rushd-coach__plan, .rushd-coach__study {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 20px;
	border: 1px solid var(--rc-border-1);
	border-radius: 13px;
	background: var(--rc-cream-hi);
	overflow-wrap: anywhere;
}
.rushd-coach__plan.is-recommended { border-color: var(--rc-gold-2); }
.rushd-coach__plan-head { display: flex; flex-direction: column; gap: 4px; }
.rushd-coach .rushd-coach__eyebrow {
	font-size: 10.5px;
	font-weight: 700;
	line-height: normal;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--rc-gold-deep);
}
.rushd-coach .rushd-coach__card-title {
	font-family: var(--rc-serif);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: normal;
	color: var(--rc-navy-2);
}
.rushd-coach .rushd-coach__line {
	font-size: 12px;
	font-weight: 600;
	line-height: normal;
	letter-spacing: .04em;
	color: var(--rc-gold-deep);
}
.rushd-coach .rushd-coach__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 8px;
}
.rushd-coach__amount {
	font-size: 20px;
	font-weight: 700;
	line-height: normal;
	color: var(--rc-fg-1);
}
.rushd-coach__per {
	font-size: 12px;
	line-height: normal;
	color: var(--rc-fg-5);
}
.rushd-coach .rushd-coach__desc {
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--rc-fg-3);
}
.rushd-coach .rushd-coach__choose,
.rushd-coach .rushd-coach__choose:hover {
	margin-top: auto;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 12px;
	border: 1px solid var(--rc-line);
	border-radius: 6px;
	background: var(--rc-white);
	font-size: 13.5px;
	font-weight: 600;
	line-height: normal;
	color: var(--rc-navy-2);
	transition: border-color .15s;
}
.rushd-coach .rushd-coach__choose:hover { border-color: var(--rc-navy-1); }
.rushd-coach .rushd-coach__client {
	font-size: 13px;
	line-height: normal;
	color: var(--rc-fg-5);
}
.rushd-coach .rushd-coach__para {
	font-size: 14px;
	line-height: 1.6;
	color: var(--rc-fg-2);
}
.rushd-coach__para strong { font-weight: 600; color: var(--rc-fg-1); }
/* Held to the bottom, so a row of case studies lines its outcomes up. */
.rushd-coach__outcome {
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid var(--rc-line);
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* Education and Credentials & Certifications: rows split by hairlines, as LinkedIn lists them. */
.rushd-coach__rows { display: flex; flex-direction: column; margin-top: -4px; }
.rushd-coach__row {
	min-width: 0;
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 16px 0;
	border-top: 1px solid var(--rc-border-1);
}
.rushd-coach__row:last-child { padding-bottom: 0; }
.rushd-coach__tile {
	flex: none;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border: 1px solid var(--rc-border-1);
	border-radius: 10px;
	background: var(--rc-white);
	color: var(--rc-gold-deep);
}
.rushd-coach .rushd-coach__tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rushd-coach__tile svg { width: 20px; height: 20px; }
.rushd-coach__row-body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
}
.rushd-coach .rushd-coach__row-title {
	font-family: var(--rc-sans);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: normal;
	color: var(--rc-fg-1);
	overflow-wrap: anywhere;
}
.rushd-coach .rushd-coach__row-line {
	font-size: 14px;
	line-height: 1.4;
	color: var(--rc-fg-3);
	overflow-wrap: anywhere;
}
.rushd-coach .rushd-coach__row-line--muted { font-size: 13px; color: var(--rc-fg-5); }
.rushd-coach__rows--education .rushd-coach__row-title { font-size: 16px; line-height: 1.4; }
.rushd-coach__rows--education .rushd-coach__row-line { color: var(--rc-fg-1); }
.rushd-coach__rows--education .rushd-coach__row-line--muted { font-size: 14px; color: var(--rc-fg-5); }
.rushd-coach .rushd-coach__show,
.rushd-coach .rushd-coach__show:hover {
	margin-top: 8px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border: 1px solid var(--rc-border-2);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	line-height: normal;
	color: var(--rc-fg-1);
	transition: border-color .15s, background-color .15s;
}
.rushd-coach .rushd-coach__show:hover { border-color: var(--rc-navy-1); background: var(--rc-page); }
.rushd-coach__show svg { width: 14px; height: 14px; }

/* Reviews: the average, then the published comments. */
.rushd-coach .rushd-coach__rating {
	font-size: 14px;
	line-height: normal;
	color: var(--rc-fg-3);
}
.rushd-coach .rushd-coach__stars { color: var(--rc-gold-deep); letter-spacing: .08em; }
.rushd-coach__reviews { display: flex; flex-direction: column; margin-top: -4px; }
.rushd-coach__review {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 16px 0;
	border-top: 1px solid var(--rc-border-1);
}
.rushd-coach__review:last-child { padding-bottom: 0; }
.rushd-coach .rushd-coach__quote {
	padding: 0;
	border: 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--rc-fg-2);
	overflow-wrap: anywhere;
}
.rushd-coach .rushd-coach__quote p { margin: 0; }
.rushd-coach .rushd-coach__by { font-size: 13px; color: var(--rc-fg-5); }

/* ── Sidebar ──────────────────────────────────────────── */
.rushd-coach__call {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 22px;
	border-radius: 15px;
	background: var(--rc-navy-2);
	color: var(--rc-cream);
	box-shadow: 0 24px 48px -28px rgba(16, 24, 44, .6);
}
.rushd-coach__call-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
}
.rushd-coach .rushd-coach__side-title {
	font-family: var(--rc-serif);
	font-size: 24px;
	font-weight: 600;
	line-height: normal;
	letter-spacing: normal;
	color: var(--rc-navy-2);
}
.rushd-coach .rushd-coach__call .rushd-coach__side-title { color: var(--rc-cream-hi); }
.rushd-coach__free {
	flex: none;
	font-size: 13px;
	font-weight: 700;
	line-height: normal;
	color: var(--rc-gold-hero);
}
.rushd-coach__call p {
	font-size: 13.5px;
	line-height: 1.55;
	color: rgba(235, 230, 218, .82);
}
.rushd-coach .rushd-coach__call .rushd-coach__btn { flex: none; width: 100%; padding: 0 16px; }
.rushd-coach .rushd-coach__label {
	font-family: var(--rc-sans);
	font-size: 11px;
	font-weight: 700;
	line-height: normal;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--rc-fg-5);
}
.rushd-coach__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rushd-coach__chips li {
	max-width: 100%;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--rc-navy-1);
	font-size: 13px;
	font-weight: 500;
	line-height: normal;
	color: var(--rc-cream-hi);
	overflow-wrap: anywhere;
}
.rushd-coach__facts {
	display: flex;
	flex-direction: column;
	font-size: 13.5px;
	line-height: normal;
}
.rushd-coach__facts > div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 9px 0;
	border-top: 1px solid var(--rc-border-1);
}
.rushd-coach__facts dt { flex: none; color: var(--rc-fg-5); }
.rushd-coach__facts dd {
	min-width: 0;
	text-align: right;
	font-weight: 500;
	color: var(--rc-fg-1);
	overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: reduce) {
	.rushd-coach *, .rushd-coach *::before, .rushd-coach *::after { transition: none !important; }
}
