/*
 * Consultant profile page: a "shop window" (Esther, 13 Nov 2026), modelled on the Something
 * Different listing page and the Delta Consulting profile. A hero with the photo, a strip of
 * key facts, the superpower, "Hire X for" cards with "Ask about this", short "Bring X in when"
 * cards, the trust section, About with "Read more", and the message card beside the sections
 * (sticky on wide screens; after About when the columns stack).
 *
 * Markup: profile-sections.php (classes emex-cpx-*). Scoped to body.emex-cp-profile
 * (profile-page.php). emex-directory.css prints inline in the page head after this file, so
 * rules that change one of its classes start with body.emex-cp-profile to win.
 *
 * EmEx palette: navy #202551, orange #C65A1E, purple #7A3556, blush #F6E9DF, lilac #E7E7F0,
 * paper #ECE8E3. Fonts: Fraunces (headings), Barlow (text), from the site's tokens.
 */

body.emex-cp-profile {
	--cpx-navy: #202551;
	--cpx-orange: #C65A1E;
	--cpx-orange-dark: #9E4417;
	--cpx-purple: #7A3556;
	--cpx-blush: #F6E9DF;
	--cpx-lilac: #E7E7F0;
	--cpx-ink: #2B2B36;
	--cpx-muted: #625D68;
	--cpx-line: #E8E2DA;
	--cpx-shadow: 0 6px 16px rgba(32, 37, 81, 0.06);
	--cpx-serif: var(--emex-serif, 'Fraunces', Georgia, serif);
	--cpx-sans: var(--emex-sans, 'Barlow', 'Segoe UI', system-ui, sans-serif);
}

/* Less space above the profile: Directorist's wrapper has a 50px top margin. */
.emex-cp-profile .directorist-single-contents-area {
	margin-top: 16px;
}

.emex-cp-profile .emex-single__crumb {
	margin-bottom: 12px;
}

/* ---------- Shared bits ---------- */
.emex-cp-profile .emex-cpx-label {
	display: block;
	font-family: var(--cpx-sans);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--cpx-muted);
}

.emex-cp-profile .emex-cpx-chip {
	display: inline-block;
	margin: 0 4px 6px 0;
	padding: 4px 11px;
	border: 1px solid #E3D9CF;
	border-radius: 999px;
	background: #fff;
	font-family: var(--cpx-sans);
	font-size: 13.5px;
	line-height: 1.35;
	color: var(--cpx-navy);
	text-decoration: none;
}

.emex-cp-profile a.emex-cpx-chip--link:hover,
.emex-cp-profile a.emex-cpx-chip--link:focus-visible {
	border-color: var(--cpx-orange);
	color: var(--cpx-orange-dark);
}

.emex-cp-profile .emex-cpx-btn {
	display: inline-block;
	margin: 0;
	padding: 12px 22px;
	border: 0;
	border-radius: 6px;
	box-shadow: none;
	font: 600 15px/1.2 var(--cpx-sans);
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
	cursor: pointer;
}

.emex-cp-profile .emex-cpx-btn--orange {
	background: var(--cpx-orange);
	color: #fff;
}

.emex-cp-profile .emex-cpx-btn--navy {
	background: var(--cpx-navy);
	color: #fff;
}

.emex-cp-profile .emex-cpx-btn--orange:hover,
.emex-cp-profile .emex-cpx-btn--orange:focus-visible {
	background: var(--cpx-orange-dark);
	color: #fff;
}

.emex-cp-profile .emex-cpx-btn--navy:hover,
.emex-cp-profile .emex-cpx-btn--navy:focus-visible {
	background: #141838;
	color: #fff;
}

.emex-cp-profile .emex-cpx-btn[hidden] {
	display: none;
}

/* ---------- Hero ---------- */
.emex-cp-profile .emex-cpx-hero {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	overflow: hidden;
	border-top: 5px solid var(--cpx-purple);
	border-radius: 16px;
	background: var(--cpx-blush);
}

.emex-cp-profile .emex-cpx-hero__photo {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100%;
	background: var(--cpx-navy);
}

.emex-cp-profile .emex-cpx-hero__photo::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 6px;
	background: var(--cpx-orange);
}

.emex-cp-profile .emex-cpx-hero__photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 25%;
}

.emex-cp-profile .emex-cpx-hero__initials {
	font-family: var(--cpx-serif);
	font-size: 64px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--cpx-blush);
}

.emex-cp-profile .emex-cpx-hero__main {
	padding: 26px 32px;
}

.emex-cp-profile .emex-cpx-hero__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}

.emex-cp-profile .emex-cpx-tag {
	padding: 5px 10px;
	border-radius: 4px;
	background: var(--cpx-purple);
	font-family: var(--cpx-sans);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #fff;
}

.emex-cp-profile .emex-cpx-tag--outline {
	background: #fff;
	box-shadow: inset 0 0 0 1px rgba(122, 53, 86, 0.35);
	color: var(--cpx-purple);
}

body.emex-cp-profile .emex-cpx-hero__name {
	margin: 0 0 8px;
	font-family: var(--cpx-serif);
	font-size: 44px;
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.01em;
	text-transform: none;
	color: var(--cpx-navy);
}

.emex-cp-profile .emex-cpx-hero__role {
	margin: 0 0 8px;
	font-family: var(--cpx-sans);
	font-size: 17px;
	font-weight: 600;
	color: var(--cpx-navy);
}

.emex-cp-profile .emex-cpx-hero__role span {
	font-weight: 500;
	color: var(--cpx-muted);
}

.emex-cp-profile .emex-cpx-hero__summary {
	max-width: 58ch;
	margin: 0 0 14px;
	font-family: var(--cpx-sans);
	font-size: 16.5px;
	line-height: 1.5;
	color: var(--cpx-ink);
}

.emex-cp-profile .emex-cpx-hero__types {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-bottom: 18px;
}

.emex-cp-profile .emex-cpx-hero__types .emex-cpx-label {
	margin-right: 4px;
}

.emex-cp-profile .emex-cpx-chip--strong {
	margin: 0;
	font-weight: 600;
}

.emex-cp-profile .emex-cpx-hero__status {
	display: inline-block;
	margin: 0 0 16px;
	padding: 4px 10px;
	border-radius: 4px;
	background: var(--cpx-navy);
	font-family: var(--cpx-sans);
	font-size: 13px;
	font-weight: 600;
	color: #fff;
}

.emex-cp-profile .emex-cpx-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 12px;
}

.emex-cp-profile .emex-cpx-hero__links {
	display: inline-flex;
	gap: 14px;
	margin-left: 6px;
	font-family: var(--cpx-sans);
	font-size: 14px;
	font-weight: 600;
}

.emex-cp-profile .emex-cpx-hero__links a {
	color: var(--cpx-orange-dark);
}

/* ---------- Facts strip ---------- */
.emex-cp-profile .emex-cpx-strip {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	margin: 14px 0 34px;
	border-radius: 12px;
	background: #fff;
	box-shadow: var(--cpx-shadow);
}

.emex-cp-profile .emex-cpx-strip__cell {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 14px 16px;
}

.emex-cp-profile .emex-cpx-strip__cell + .emex-cpx-strip__cell {
	border-left: 1px solid var(--cpx-line);
}

.emex-cp-profile .emex-cpx-strip__icon {
	flex: none;
	margin-top: 2px;
	color: var(--cpx-orange);
}

.emex-cp-profile .emex-cpx-strip__cell .emex-cpx-label {
	margin-bottom: 2px;
}

.emex-cp-profile .emex-cpx-strip__value {
	display: block;
	font-family: var(--cpx-sans);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--cpx-navy);
}

/* ---------- Columns: sections, and the message card beside them ---------- */
body.emex-cp-profile .emex-single__grid {
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 40px;
	align-items: start;
}

body.emex-cp-profile .emex-single__side {
	position: sticky;
	top: calc(var(--wp-admin--admin-bar--height, 0px) + 20px);
}

.emex-cp-profile .emex-cpx-sec {
	margin-bottom: 40px;
}

body.emex-cp-profile .emex-cpx-h2 {
	margin: 0 0 14px;
	font-family: var(--cpx-serif);
	font-size: 28px;
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.005em;
	text-transform: none;
	color: var(--cpx-navy);
}

.emex-cp-profile .emex-cpx-sub {
	margin: -8px 0 16px;
	font-family: var(--cpx-sans);
	font-size: 15px;
	color: var(--cpx-muted);
}

body.emex-cp-profile .emex-cpx-h3 {
	margin: 0 0 10px;
	font-family: var(--cpx-serif);
	font-size: 20px;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
	color: var(--cpx-navy);
}

/* ---------- Superpower (emex_module_superpower() markup) ---------- */
body.emex-cp-profile .emex-superpower {
	position: relative;
	overflow: hidden;
	margin: 0 0 40px;
	padding: 22px 26px 24px;
	border: 0;
	border-radius: 14px;
	background: var(--cpx-purple);
	box-shadow: none;
}

body.emex-cp-profile .emex-superpower::after {
	content: "\2605";
	position: absolute;
	top: -18px;
	right: 18px;
	font-size: 130px;
	line-height: 1;
	color: rgba(255, 255, 255, 0.08);
	pointer-events: none;
}

body.emex-cp-profile .emex-superpower__tag {
	background: var(--cpx-blush);
	color: var(--cpx-purple);
}

body.emex-cp-profile .emex-superpower__line {
	position: relative;
	max-width: 24ch;
	margin-top: 12px;
	font-family: var(--cpx-serif);
	font-size: 27px;
	font-weight: 600;
	line-height: 1.2;
	color: #fff;
}

/* ---------- Hire X for ---------- */
.emex-cp-profile .emex-cpx-offers {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.emex-cp-profile .emex-cpx-offer {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 12px;
	background: #FBF8F5;
	box-shadow: var(--cpx-shadow);
}

body.emex-cp-profile .emex-cpx-offer__title {
	margin: 0;
	padding: 16px 18px;
	font-family: var(--cpx-serif);
	font-size: 19px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	color: #fff;
}

.emex-cp-profile .emex-cpx-offer--purple .emex-cpx-offer__title { background: var(--cpx-purple); }
.emex-cp-profile .emex-cpx-offer--navy .emex-cpx-offer__title { background: var(--cpx-navy); }
.emex-cp-profile .emex-cpx-offer--rust .emex-cpx-offer__title { background: var(--cpx-orange-dark); }

.emex-cp-profile .emex-cpx-offer__text {
	flex: 1;
	margin: 0;
	padding: 14px 18px 0;
	font-family: var(--cpx-sans);
	font-size: 15px;
	line-height: 1.5;
	color: var(--cpx-ink);
}

.emex-cp-profile .emex-cpx-offer__ask {
	margin: 16px 18px 18px;
	padding: 10px 14px;
	border: 1.5px solid var(--cpx-orange);
	border-radius: 6px;
	font-family: var(--cpx-sans);
	font-size: 14.5px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	color: var(--cpx-orange-dark);
}

.emex-cp-profile .emex-cpx-offer__ask:hover,
.emex-cp-profile .emex-cpx-offer__ask:focus-visible {
	background: var(--cpx-orange);
	color: #fff;
}

/* ---------- Bring X in when ---------- */
.emex-cp-profile .emex-cpx-whens {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.emex-cp-profile .emex-cpx-when {
	margin: 0;
	padding: 16px 18px 18px;
	border-radius: 12px;
	background: var(--cpx-lilac);
	font-family: var(--cpx-sans);
	font-size: 15.5px;
	font-weight: 500;
	line-height: 1.45;
	color: var(--cpx-navy);
}

.emex-cp-profile .emex-cpx-when__dots {
	display: block;
	margin-bottom: 8px;
	font-family: var(--cpx-serif);
	font-size: 30px;
	line-height: 0.6;
	color: var(--cpx-purple);
}

/* ---------- Why clients trust X ---------- */
.emex-cp-profile .emex-cpx-quote {
	position: relative;
	margin: 0 0 18px;
	padding: 26px 30px 24px 78px;
	border-radius: 14px;
	background: var(--cpx-navy);
}

.emex-cp-profile .emex-cpx-quote::before {
	content: "\201C";
	position: absolute;
	top: 12px;
	left: 22px;
	font-family: var(--cpx-serif);
	font-size: 84px;
	line-height: 1;
	color: var(--cpx-orange);
}

body.emex-cp-profile .emex-cpx-quote blockquote {
	max-width: 40ch;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font-family: var(--cpx-serif);
	font-size: 21px;
	font-style: italic;
	line-height: 1.4;
	color: #fff;
}

.emex-cp-profile .emex-cpx-quote figcaption {
	margin-top: 12px;
	font-family: var(--cpx-sans);
	font-size: 13.5px;
	font-weight: 600;
	color: #F2B48E;
}

.emex-cp-profile .emex-cpx-creds {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 10px;
	margin-bottom: 18px;
}

.emex-cp-profile .emex-cpx-cred {
	padding: 14px;
	border-top: 4px solid var(--cpx-orange);
	border-radius: 10px;
	background: #fff;
	box-shadow: var(--cpx-shadow);
	font-family: var(--cpx-sans);
}

.emex-cp-profile .emex-cpx-cred__logo {
	display: block;
	max-width: 100%;
	height: 44px;
	margin-bottom: 8px;
	object-fit: contain;
	object-position: left center;
}

.emex-cp-profile .emex-cpx-cred__name {
	display: block;
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--cpx-navy);
}

.emex-cp-profile .emex-cpx-cred__by {
	display: block;
	margin-top: 4px;
	font-size: 12.5px;
	color: var(--cpx-muted);
}

.emex-cp-profile .emex-cpx-rows {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	gap: 8px 14px;
	margin: 0;
}

.emex-cp-profile .emex-cpx-rows dt {
	padding-top: 7px;
	font-family: var(--cpx-sans);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--cpx-muted);
}

.emex-cp-profile .emex-cpx-rows dd {
	margin: 0;
}

/* ---------- On EmEx, Other experts ---------- */
.emex-cp-profile .emex-cpx-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.emex-cp-profile .emex-cpx-list li {
	padding: 12px 16px;
	border-radius: 10px;
	background: #fff;
	box-shadow: var(--cpx-shadow);
	font-family: var(--cpx-sans);
	font-size: 15.5px;
}

.emex-cp-profile .emex-cpx-list li + li {
	margin-top: 8px;
}

.emex-cp-profile .emex-cpx-list a {
	font-weight: 600;
	color: var(--cpx-navy);
}

.emex-cp-profile .emex-cpx-list__meta {
	display: block;
	margin-top: 2px;
	font-size: 13.5px;
	color: var(--cpx-muted);
}

/* ---------- About: short lines, then "Read more" ---------- */
.emex-cp-profile .emex-cpx-about p {
	max-width: 62ch;
	margin: 0 0 12px;
	font-family: var(--cpx-sans);
	font-size: 16px;
	line-height: 1.65;
	color: var(--cpx-ink);
}

.emex-cp-profile .emex-cpx-more summary {
	display: inline-block;
	list-style: none;
	font-family: var(--cpx-sans);
	font-weight: 600;
	color: var(--cpx-orange-dark);
	cursor: pointer;
}

.emex-cp-profile .emex-cpx-more summary::-webkit-details-marker {
	display: none;
}

.emex-cp-profile .emex-cpx-more summary::after {
	content: " \2193";
}

.emex-cp-profile .emex-cpx-more[open] summary {
	display: none;
}

/* ---------- Message card ---------- */
.emex-cp-profile .emex-cpx-card {
	/* 20px at the sides: the card is 340px wide beside the sections, and the Turnstile
	   check in the form is 300px wide. */
	padding: 20px 20px 18px;
	border-top: 5px solid var(--cpx-orange);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 10px 24px rgba(32, 37, 81, 0.08);
	font-family: var(--cpx-sans);
}

.emex-cp-profile .emex-cpx-deal {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--cpx-line);
}

.emex-cp-profile .emex-cpx-deal__av {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--cpx-purple);
	object-fit: cover;
	font-size: 14px;
	font-weight: 700;
	color: #fff;
}

.emex-cp-profile .emex-cpx-deal strong {
	color: var(--cpx-navy);
}

body.emex-cp-profile .emex-cpx-card__title {
	margin: 0 0 4px;
	font-family: var(--cpx-serif);
	font-size: 24px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	color: var(--cpx-navy);
}

.emex-cp-profile .emex-cpx-card__intro {
	margin: 0 0 12px;
	font-size: 14px;
	color: var(--cpx-muted);
}

.emex-cp-profile .emex-cpx-card__note {
	margin: 10px 0 0;
	font-size: 12.5px;
	color: var(--cpx-muted);
}

/* The enquiry form in the card: one column, full-width fields. */
.emex-cp-profile .emex-cpx-card .directorist-enquiry-form__grid {
	display: block;
}

.emex-cp-profile .emex-cpx-card .directorist-enquiry-form__field {
	margin-bottom: 10px;
}

.emex-cp-profile .emex-cpx-card input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.emex-cp-profile .emex-cpx-card select,
.emex-cp-profile .emex-cpx-card textarea {
	width: 100%;
	max-width: none;
	box-sizing: border-box;
}

/*
 * Short laptop screens (two columns, 890px high or less): the card stays beside the sections,
 * so all of it, with the Send button, must fit in the height of the screen. The spacing gets
 * tighter and the message box takes the height that is left (60px to 111px). If the card is
 * still too tall (a very short window, or the admin bar), the card scrolls on its own.
 *
 * --cpx-card-rest is the height of everything that is not the message box: the rest of the
 * card + 20px above + 20px below + 3px spare. The card is 85px taller when the enquiry form
 * has the Turnstile check (emex-enquiry-turnstile.php), so that case has its own value.
 */
@media (min-width: 1001px) and (max-height: 890px) {
	.emex-cp-profile .emex-cpx-card {
		--cpx-card-rest: 566px;
		max-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px) - 40px);
		box-sizing: border-box;
		padding: 14px 20px 12px;
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	.emex-cp-profile .emex-cpx-deal {
		margin-bottom: 8px;
		padding-bottom: 8px;
	}

	.emex-cp-profile .emex-cpx-card__intro {
		margin-bottom: 8px;
		line-height: 1.4;
	}

	.emex-cp-profile .emex-cpx-card .directorist-enquiry-form__field {
		margin-bottom: 6px;
	}

	.emex-cp-profile .emex-cpx-card label {
		margin-bottom: 3px;
		line-height: 1.3;
	}

	.emex-cp-profile .emex-cpx-card:has(.emex-turnstile) {
		--cpx-card-rest: 651px;
	}

	/* The field class is in the selector so this min-height wins over the form's own 74px. */
	.emex-cp-profile .emex-cpx-card .directorist-enquiry-form__field textarea {
		height: clamp(60px, calc(100vh - var(--wp-admin--admin-bar--height, 0px) - var(--cpx-card-rest)), 111px);
		min-height: 60px;
	}

	.emex-cp-profile .emex-cpx-card button[type="submit"] {
		margin-top: 8px;
	}

	.emex-cp-profile .emex-cpx-card__note {
		margin-top: 6px;
		line-height: 1.4;
	}
}

/* Very short laptop screens (710px high or less): the tightest spacing, so the card with the
   Turnstile check still fits at 1366x657. */
@media (min-width: 1001px) and (max-height: 710px) {
	.emex-cp-profile .emex-cpx-card {
		--cpx-card-rest: 520px;
		padding: 10px 20px;
	}

	.emex-cp-profile .emex-cpx-card:has(.emex-turnstile) {
		--cpx-card-rest: 597px;
	}

	.emex-cp-profile .emex-cpx-deal {
		margin-bottom: 6px;
		padding-bottom: 6px;
	}

	.emex-cp-profile .emex-cpx-deal__av {
		width: 34px;
		height: 34px;
		font-size: 12px;
	}

	body.emex-cp-profile .emex-cpx-card__title {
		margin-bottom: 2px;
		font-size: 21px;
	}

	.emex-cp-profile .emex-cpx-card__intro {
		margin-bottom: 4px;
	}

	.emex-cp-profile .emex-cpx-card .directorist-enquiry-form__field {
		margin-bottom: 4px;
	}

	.emex-cp-profile .emex-cpx-card input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
	.emex-cp-profile .emex-cpx-card select {
		height: 34px;
		padding-top: 6px;
		padding-bottom: 6px;
	}

	.emex-cp-profile .emex-cpx-card .emex-turnstile {
		margin: 2px 0 6px;
	}

	.emex-cp-profile .emex-cpx-card button[type="submit"] {
		margin-top: 6px;
	}

	.emex-cp-profile .emex-cpx-card__note {
		margin-top: 4px;
	}
}

/* Phone: the "Message" button fixed at the bottom of the screen (hidden while the hero's own
   "Message" button or the form shows; profile.js). */
.emex-cp-profile .emex-cpx-sticky {
	display: none;
}

/* ---------- The box above the preview after the form is sent (profile-preview.php),
   and the "your profile is with us" message after Finish (profile-submitted.php). ---------- */
.emex-cp-submitted p {
	font-size: 15px;
	line-height: 1.5;
	margin: 0 0 8px;
}

.emex-cp-submitted__sign {
	font-weight: 600;
}

.emex-cp-submitted .emex-cp-submitted__title {
	font-family: var(--emex-sans);
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 8px;
	color: var(--emex-navy);
}

.emex-cp-preview,
.emex-cp-submitted {
	border: 1.5px solid var(--emex-orange);
	border-radius: 8px;
	background: #fff;
	padding: 18px 22px;
	/* Same width as the profile below it (.emex-single-wrap in emex-directory.css). */
	max-width: 1120px;
	box-sizing: border-box;
	margin: 0 auto 16px;
	font-family: var(--emex-sans);
	color: var(--emex-ink);
}

.emex-cp-preview__title {
	font-family: var(--emex-sans);
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 6px;
	color: var(--emex-navy);
}

.emex-cp-preview__text {
	font-size: 15px;
	line-height: 1.5;
	margin: 0 0 14px;
}

.emex-cp-preview__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.emex-cp-profile .emex-cp-preview__actions .emex-cp-preview__btn {
	display: inline-block;
	min-width: 160px;
	margin: 0;
	padding: 11px 18px;
}

/*
 * Stacked columns (1000px and narrower): one column. The message card goes after About and
 * before "Other experts" and "Related EmEx topics". The two columns stop being boxes, so
 * their sections become items of the one grid and "order" can place the card. The HTML
 * order does not change.
 */
@media (max-width: 1000px) {
	body.emex-cp-profile .emex-single__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	body.emex-cp-profile .emex-single__main,
	body.emex-cp-profile .emex-single__side {
		display: contents;
	}

	.emex-cp-profile .emex-single__grid .emex-cpx-card {
		order: 1;
		margin-bottom: 40px;
	}

	.emex-cp-profile .emex-single__grid .emex-cpx-sec--others,
	.emex-cp-profile .emex-single__grid .emex-cpx-sec--topics {
		order: 2;
	}

	.emex-cp-profile .emex-cpx-strip__cell {
		border-top: 1px solid var(--cpx-line);
	}

	.emex-cp-profile .emex-cpx-strip__cell + .emex-cpx-strip__cell {
		border-left: 0;
	}

	/* Touch screens: every link, button and field is 44px high or more. */
	.emex-cp-profile .emex-cpx-btn {
		min-height: 44px;
		box-sizing: border-box;
		padding-top: 13px;
		padding-bottom: 13px;
	}

	.emex-cp-profile .emex-cpx-hero__links a,
	.emex-cp-profile a.emex-cpx-chip--link,
	.emex-cp-profile .emex-cpx-more summary {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		box-sizing: border-box;
	}

	.emex-cp-profile .emex-cpx-card input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
	.emex-cp-profile .emex-cpx-card select,
	.emex-cp-profile .emex-cpx-card button[type="submit"] {
		min-height: 44px;
	}
}

@media (max-width: 700px) {
	.emex-cp-profile .emex-cpx-hero {
		grid-template-columns: minmax(0, 1fr);
	}

	.emex-cp-profile .emex-cpx-hero__photo {
		justify-content: flex-start;
		min-height: 0;
		padding: 18px 20px 0;
		background: transparent;
	}

	.emex-cp-profile .emex-cpx-hero__photo::after {
		display: none;
	}

	.emex-cp-profile .emex-cpx-hero__photo img,
	.emex-cp-profile .emex-cpx-hero__initials {
		position: static;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 96px;
		height: 96px;
		border-radius: 50%;
		background: var(--cpx-navy);
		box-shadow: 0 0 0 4px var(--cpx-blush), 0 0 0 7px var(--cpx-orange);
		font-size: 34px;
	}

	.emex-cp-profile .emex-cpx-hero__main {
		padding: 16px 20px 22px;
	}

	body.emex-cp-profile .emex-cpx-hero__name {
		font-size: 34px;
	}

	.emex-cp-profile .emex-cpx-hero__summary {
		font-size: 16px;
	}

	.emex-cp-profile .emex-cpx-hero__actions .emex-cpx-btn {
		flex: 1 1 auto;
		text-align: center;
	}

	.emex-cp-profile .emex-cpx-hero__links {
		width: 100%;
		margin: 4px 0 0;
	}

	.emex-cp-profile .emex-cpx-strip {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin-bottom: 28px;
	}

	.emex-cp-profile .emex-cpx-strip__cell {
		gap: 8px;
		padding: 12px;
	}

	.emex-cp-profile .emex-cpx-strip__cell:nth-child(-n+2) {
		border-top: 0;
	}

	.emex-cp-profile .emex-cpx-strip__cell:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}

	.emex-cp-profile .emex-cpx-offers,
	.emex-cp-profile .emex-cpx-whens,
	.emex-cp-profile .emex-cpx-creds {
		grid-template-columns: minmax(0, 1fr);
	}

	body.emex-cp-profile .emex-cpx-h2 {
		font-size: 25px;
	}

	body.emex-cp-profile .emex-superpower__line {
		font-size: 24px;
	}

	.emex-cp-profile .emex-cpx-quote {
		padding: 54px 20px 20px;
	}

	.emex-cp-profile .emex-cpx-quote::before {
		top: 6px;
		left: 18px;
		font-size: 70px;
	}

	body.emex-cp-profile .emex-cpx-quote blockquote {
		font-size: 19px;
	}

	.emex-cp-profile .emex-cpx-rows {
		grid-template-columns: minmax(0, 1fr);
		gap: 2px;
	}

	.emex-cp-profile .emex-cpx-rows dd {
		margin-bottom: 10px;
	}

	.emex-cp-profile .emex-cpx-sticky {
		position: fixed;
		right: 16px;
		bottom: 12px;
		left: 16px;
		z-index: 50;
		display: block;
		padding: 13px;
		border-radius: 6px;
		background: var(--cpx-orange);
		box-shadow: 0 10px 22px rgba(32, 37, 81, 0.2);
		font: 600 15px/1.2 var(--cpx-sans);
		text-align: center;
		text-decoration: none;
		color: #fff;
	}

	.emex-cp-profile .emex-cpx-sticky.is-hidden {
		display: none;
	}

	body.emex-cp-profile {
		padding-bottom: 72px;
	}
}
