/**
 * Facilitator profile.
 *
 * Tokens are re-declared here because a profile page never loads the directory
 * stylesheet. The pale wash runs full bleed on the article while the content
 * inside stays measured. Text is dark on light here, so anything that sets a
 * colour takes it from the tokens below rather than assuming white.
 */

article.cfd-profile,
.cfd-profile {
	--cfd-border: #E2E8E6;
	--cfd-ink: #1b2422;
	--cfd-muted: #444;
	--cfd-accent: #DC530A;
	--cfd-surface: #fff;
	--cfd-placeholder: #eef3f1;
	--cfd-radius: 14px;
	--cfd-heading-font: 'Philosopher', sans-serif;

	--cfd-profile-bg: #04abb6;
	--cfd-profile-heading: #00BECA;
	--cfd-profile-text: #2b2b2b;
	--cfd-course-title: #DD5308;
	/* Buttons follow the site's square-ish corners, not a pill. */
	--cfd-btn-radius: 8px;
}

article.cfd-profile {
	background-color: #eaf5f6;
}

.cfd-profile__inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 2.5rem 1.25rem 4rem;
}

/* ---------- header ---------- */

.cfd-profile__header {
	display: grid;
	grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
	gap: 2.5rem;
	align-items: center;
	padding-bottom: 2rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.cfd-profile__portrait img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 50%;
	display: block;
}

.cfd-profile .cfd-profile__name {
	margin: 0 0 0.35rem;
	font-family: var(--cfd-heading-font, 'Philosopher'), sans-serif;
	font-weight: 400;
	line-height: 1.1;
	font-size: 2.5rem;
	color: var(--cfd-profile-heading);
}

.cfd-profile .cfd-profile__place,
.cfd-profile .cfd-profile__years {
	margin: 0 0 0.2rem;
	color: var(--cfd-profile-text);
	opacity: 0.75;
}

.cfd-profile .cfd-profile__offering {
	margin: 0.4rem 0;
	font-weight: 500;
	color: var(--cfd-profile-text);
}

.cfd-profile__languages {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
}

.cfd-profile .cfd-profile__language {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	margin: 0;
	font-size: 0.8rem;
	color: var(--cfd-ink);
	background: #fff;
	border: 1px solid var(--cfd-border);
	border-radius: 999px;
	padding: 0.25rem 0.75rem;
}

/* ---------- body ---------- */

.cfd-profile__body {
	margin-top: 2.5rem;
}

.cfd-profile__section + .cfd-profile__section {
	margin-top: 3rem;
}

.cfd-profile .cfd-profile__heading {
	margin: 0 0 1.25rem;
	font-family: var(--cfd-heading-font, 'Philosopher'), sans-serif;
	font-weight: 400;
	font-size: 1.9rem;
	line-height: 1.2;
	color: var(--cfd-profile-heading);
}

.cfd-profile .cfd-profile__bio p {
	margin: 0 0 1rem;
	max-width: 100%;
	color: var(--cfd-profile-text);
}

/* ---------- testimonial ---------- */

.cfd-profile .cfd-quote {
	margin: 0;
	padding: 1.5rem 1.75rem;
	border-left: 3px solid var(--cfd-profile-heading);
	background: #fff;
	border-radius: 0 var(--cfd-radius) var(--cfd-radius) 0;
}

.cfd-profile .cfd-quote p {
	margin: 0;
	font-size: 1.05rem;
	font-style: italic;
	line-height: 1.6;
	color: var(--cfd-profile-text);
}

/* ---------- courses ---------- */

.cfd-profile .cfd-course-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1.25rem;
}

.cfd-profile .cfd-course {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: space-between;
	align-items: center;
	margin: 0;
	padding: 1.4rem 1.6rem;
	border: 0;
	border-radius: var(--cfd-radius);
	background: var(--cfd-surface);
	border: 1px solid var(--cfd-border);
}

.cfd-profile .cfd-course__title {
	margin: 0 0 0.5rem;
	font-family: var(--cfd-heading-font, 'Philosopher'), sans-serif;
	font-weight: 400;
	font-size: 1.4rem;
	line-height: 1.3;
	color: var(--cfd-course-title);
}

.cfd-course__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem;
	margin: 0 0 0.4rem;
	font-size: 0.85rem;
	color: var(--cfd-muted);
}

.cfd-profile .cfd-tag {
	display: inline-block;
	padding: 0.15rem 0.6rem;
	border-radius: 999px;
	background: var(--cfd-placeholder);
	color: var(--cfd-ink);
	font-size: 0.75rem;
	font-weight: 600;
}

.cfd-profile .cfd-tag--ongoing {
	background: var(--cfd-accent);
	color: #fff;
}

/* A series already under way but still open to enrolment. Outlined rather
   than filled, so it reads as a status and not as a second category. */
.cfd-profile .cfd-tag--progress {
	background: transparent;
	box-shadow: inset 0 0 0 1px var(--cfd-accent);
	color: var(--cfd-accent);
}

/* The facilitator's own name for the place leads; the address locates it.
   Both lines sit at body weight; the labels alone do the distinguishing. */
.cfd-profile .cfd-course__venue-name,
.cfd-profile .cfd-course__venue-address {
	display: block;
	font-weight: 400;
	color: var(--cfd-ink);
}

/* What they offer by arrangement, with no course row to stand for it. Set
   apart from the list so it reads as a note rather than a listing. */
.cfd-profile .cfd-course-note {
	margin: 0.9rem 0 0;
	padding-left: 0.85rem;
	border-left: 3px solid var(--cfd-accent);
	font-size: 0.9rem;
	line-height: 1.6;
	color: var(--cfd-ink);
}

/* Opens Google Maps with the typed address, which resolves the street numbers
   our own map data does not hold. */
.cfd-profile .cfd-course__directions {
	display: inline-block;
	margin-top: 0.25rem;
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--cfd-accent);
	text-decoration: underline;
}

.cfd-profile .cfd-course__directions:hover,
.cfd-profile .cfd-course__directions:focus-visible {
	text-decoration: none;
}

.cfd-course__date,
.cfd-course__venue {
	margin: 0 0 0.2rem;
	font-size: 0.9rem;
	color: var(--cfd-ink);
}

.cfd-course__date--ongoing {
	color: var(--cfd-muted);
}

.cfd-course__aside {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	align-items: stretch;
	text-align: center;
}

/* Secondary to "Book this course": outlined, so the booking action still leads. */
.cfd-profile .cfd-btn--ghost {
	justify-content: center;
	background: transparent;
	color: var(--cfd-accent);
	border-color: var(--cfd-accent);
}

.cfd-course__price {
	margin: 0;
	font-weight: 700;
	color: var(--cfd-ink);
}

/* ---------- contact ---------- */

/*
 * Sits inline on the page ground rather than in a white panel: it follows the
 * bio as part of the page's flow, not as a boxed-off sidebar.
 */
.cfd-contact__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.85rem;
}

.cfd-profile .cfd-btn--secondary {
	background: transparent;
	color: var(--cfd-ink);
	border-color: var(--cfd-border);
}

.cfd-contact__form {
	margin-top: 1.25rem;
	background: var(--cfd-surface);
	border-radius: var(--cfd-radius);
	padding: 1.5rem;
	max-width: 620px;
}

.cfd-profile .cfd-profile__back {
	margin: 2.5rem 0 0;
	font-size: 0.9rem;
}

.cfd-profile .cfd-profile__back a {
	color: var(--cfd-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- buttons ---------- */

.cfd-profile .cfd-btn,
.cfd-profile a.cfd-btn,
.cfd-profile button.cfd-btn {
	display: inline-flex;
	align-items: center;
	padding: 0.65rem 1.3rem;
	border-radius: var(--cfd-btn-radius, 8px);
	border: 1px solid #DD5308;
	font-size: 0.95rem;
	font-weight: 500;
	/*
	 * Set explicitly: the message toggle is a <button>, so it picks up the
	 * theme's button line-height and stands taller than the <a> beside it
	 * unless both are pinned to the same value.
	 */
	line-height: 1.5;
	text-decoration: none;
	/* Flatsome uppercases its buttons; these keep their sentence case. */
	text-transform: none;
	cursor: pointer;
	margin: 0;
}

.cfd-profile .cfd-btn--primary,
.cfd-profile a.cfd-btn--primary,
.cfd-profile button.cfd-btn--primary {
	background: var(--cfd-accent);
	color: #fff;
	margin: 0;
}

.cfd-profile a:focus-visible,
.cfd-profile .cfd-btn:focus-visible {
	outline: 2px solid var(--cfd-accent);
	outline-offset: 2px;
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
	.cfd-profile__header {
		grid-template-columns: minmax(0, 1fr);
		text-align: center;
		justify-items: center;
		gap: 1.5rem;
	}

	.cfd-profile__portrait {
		max-width: 180px;
	}

	.cfd-profile__languages {
		justify-content: center;
	}

	.cfd-profile__body {
		margin-top: 2rem;
	}

	.cfd-profile .cfd-course {
		align-items: flex-start;
	}
}
