/**
 * Echelon — Advisor profile styles (Stage 6: full profile).
 * Enqueued only on is_singular( 'advisor' ).
 */

/* Brand tokens live in assets/css/site.css (:root) and must not be redefined here. */

/* Full-bleed profile: no site chrome residuals */
html {
	background: var(--echelon-parchment);
}

body.echelon-advisor-profile {
	margin: 0;
	background: var(--echelon-parchment);
	color: var(--echelon-ink);
	font-family: var(--echelon-font-body);
	font-weight: 400;
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

body.echelon-advisor-profile *,
body.echelon-advisor-profile *::before,
body.echelon-advisor-profile *::after {
	box-sizing: border-box;
}

.echelon-advisor {
	width: 100%;
	min-height: 100vh;
	background: var(--echelon-parchment);
}

/* —— Page shell: one column, one left edge —— */
.echelon-advisor__shell {
	box-sizing: content-box;
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 24px;
}

/* —— Split: prose + sticky rail —— */
.echelon-advisor__split {
	display: grid;
	grid-template-columns: 720px 1fr;
	gap: 0;
	align-items: start;
	width: 100%;
	max-width: 1080px;
	padding: 0 0 64px;
	box-sizing: border-box;
}

.echelon-advisor__main {
	min-width: 0;
	width: 100%;
	padding-right: 30px;
	border-right: 1px solid #e0d9ce;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 48px;
}

.echelon-advisor__split--solo .echelon-advisor__main {
	padding-right: 0;
	border-right: 0;
}

.echelon-advisor__rail {
	min-width: 0;
	width: 100%;
	padding-left: 30px;
	box-sizing: border-box;
	position: sticky;
	top: 40px;
	align-self: start;
}

/* —— Hero —— */
.echelon-advisor__hero {
	padding: 80px 0;
}

.echelon-advisor__hero-inner {
	display: flex;
	align-items: flex-start;
	gap: 48px;
	width: 100%;
	margin: 0;
	max-width: none;
}

.echelon-advisor__hero-media {
	flex: 0 0 auto;
	max-width: none;
	display: flex;
	justify-content: flex-start;
	align-items: flex-start;
}

.echelon-advisor__headshot {
	width: 280px;
	height: 350px;
	aspect-ratio: 4 / 5;
	border-radius: 2px;
	object-fit: cover;
	border: none;
	display: block;
}

.echelon-advisor__hero-content {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.echelon-advisor__eyebrow {
	margin: 0;
	font-family: var(--echelon-font-body);
	font-weight: 500;
	font-size: 11px;
	line-height: 1.4;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--echelon-ink);
}

h2.echelon-advisor__eyebrow {
	font-size: 11px;
	font-weight: 500;
}

.echelon-advisor__name {
	margin: 14px 0 0;
	font-family: var(--echelon-font-display);
	font-weight: 400;
	font-size: 56px;
	line-height: 1.1;
	letter-spacing: -0.01em;
	color: var(--echelon-ink);
}

.echelon-advisor__meta {
	margin: 10px 0 0;
	font-family: var(--echelon-font-body);
	font-weight: 400;
	font-size: 14px;
	line-height: 1.6;
	color: var(--echelon-slate);
}

.echelon-advisor__rule {
	display: block;
	width: 100%;
	height: 0;
	margin: 36px 0 0;
	border: 0;
	border-top: 1px solid var(--echelon-gold);
}

.echelon-advisor__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.echelon-advisor__tags--spec {
	margin-top: 36px;
}

.echelon-advisor__tags--region {
	margin-top: 10px;
}

.echelon-advisor__tag {
	margin: 0;
	padding: 5px 11px;
	border-radius: 2px;
	font-family: var(--echelon-font-body);
	font-weight: 400;
	font-size: 11px;
	line-height: 1.4;
}

.echelon-advisor__tag--spec {
	border: 0.5px solid var(--echelon-gold-border);
	background: transparent;
	color: var(--echelon-gold-text);
}

.echelon-advisor__tag--region {
	border: 0.5px solid var(--echelon-verde);
	background: var(--echelon-verde);
	color: var(--echelon-parchment);
}

.echelon-advisor__contact {
	display: inline-block;
	margin-top: 36px;
	padding: 12px 26px;
	border-radius: 3px;
	background: var(--echelon-verde);
	color: var(--echelon-parchment);
	font-family: var(--echelon-font-body);
	font-weight: 500;
	font-size: 12px;
	line-height: 1.4;
	text-decoration: none;
}

.echelon-advisor__contact:hover,
.echelon-advisor__contact:focus-visible {
	color: var(--echelon-parchment);
	opacity: 0.92;
}

/* —— Section divider —— */
.echelon-advisor__divider {
	display: block;
	width: 100%;
	height: 0;
	margin: 0 0 40px;
	border: 0;
	border-top: 0.5px solid var(--echelon-border);
}

.echelon-advisor__divider--full {
	max-width: none;
	width: 100%;
}

/* —— Narrative —— */
.echelon-advisor__narrative {
	max-width: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 48px;
}

.echelon-advisor__narrative-block .echelon-advisor__eyebrow + .echelon-advisor__prose {
	margin-top: 16px;
}

.echelon-advisor__prose {
	max-width: none;
	margin: 0;
	font-family: var(--echelon-font-body);
	font-weight: 400;
	font-size: 17px;
	line-height: 1.65;
	color: var(--echelon-ink);
}

.echelon-advisor__prose > *:first-child {
	margin-top: 0;
}

.echelon-advisor__prose > *:last-child {
	margin-bottom: 0;
}

.echelon-advisor__prose p {
	margin: 0 0 1em;
}

.echelon-advisor__prose a {
	color: var(--echelon-ink);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.12em;
}

/* —— Awards —— */
.echelon-advisor__awards {
	max-width: none;
	margin: 0;
	padding: 0 0 64px;
}

.echelon-advisor__awards > .echelon-advisor__eyebrow + .echelon-advisor__awards-grid {
	margin-top: 16px;
}

.echelon-advisor__awards-grid {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fill, 200px);
	gap: 24px;
	justify-content: start;
}

.echelon-advisor__award {
	width: 200px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.echelon-advisor__award-icon-slot {
	width: 64px;
	height: 64px;
	flex: 0 0 64px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.echelon-advisor__award-icon {
	width: 64px;
	height: 64px;
	object-fit: contain;
	display: block;
}

.echelon-advisor__award-name {
	margin: 12px 0 0;
	font-family: var(--echelon-font-display);
	font-weight: 400;
	font-size: 22px;
	line-height: 1.3;
	color: var(--echelon-ink);
}

.echelon-advisor__award-year {
	margin: 4px 0 0;
	font-family: var(--echelon-font-body);
	font-weight: 400;
	font-size: 14px;
	line-height: 1.6;
	color: var(--echelon-slate);
}

/* —— Favorite Trips —— */
.echelon-advisor__trips {
	max-width: none;
	margin: 0;
	padding: 0 0 64px;
}

.echelon-advisor__trips > .echelon-advisor__eyebrow + .echelon-advisor__trips-grid {
	margin-top: 16px;
}

.echelon-advisor__trips-grid {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	width: 100%;
	box-sizing: border-box;
}

.echelon-advisor__trip {
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
}

.echelon-advisor__trip.is-expandable {
	cursor: pointer;
}

.echelon-advisor__trip.is-expandable:focus-visible {
	outline: 1px solid var(--echelon-verde);
	outline-offset: 4px;
}

.echelon-advisor__trip-media {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 3px;
	width: 100%;
	max-width: 100%;
}

.echelon-advisor__trip-image {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 100%;
	object-fit: cover;
}

.echelon-advisor__trip-title {
	margin: 14px 0 0;
	font-family: var(--echelon-font-display);
	font-weight: 400;
	font-size: 22px;
	line-height: 1.3;
	color: var(--echelon-ink);
}

.echelon-advisor__trip-description {
	margin-top: 8px;
	font-family: var(--echelon-font-body);
	font-weight: 400;
	font-size: 17px;
	line-height: 1.65;
	color: var(--echelon-ink);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	line-clamp: 4;
	overflow: hidden;
}

.echelon-advisor__trip-description > *:first-child {
	margin-top: 0;
}

.echelon-advisor__trip-description > *:last-child {
	margin-bottom: 0;
}

.echelon-advisor__trip-description p {
	margin: 0;
	display: inline;
}

.echelon-advisor__trip-description p + p::before {
	content: " ";
}

/* —— Trip lightbox —— */
body.echelon-lightbox-open {
	overflow: hidden;
}

.echelon-advisor__lightbox[hidden] {
	display: none !important;
}

.echelon-advisor__lightbox {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.echelon-advisor__lightbox-scrim {
	position: absolute;
	inset: 0;
	background: rgba(26, 26, 26, 0.55);
	cursor: pointer;
}

.echelon-advisor__lightbox-panel {
	position: relative;
	z-index: 1;
	width: min(900px, 100%);
	max-height: min(90vh, 900px);
	overflow: auto;
	background: var(--echelon-parchment);
	color: var(--echelon-ink);
	border-radius: 3px;
	padding: 40px 32px 32px;
}

.echelon-advisor__lightbox-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 3px;
	background: var(--echelon-verde);
	color: var(--echelon-parchment);
	font-family: var(--echelon-font-body);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.echelon-advisor__lightbox-close:hover,
.echelon-advisor__lightbox-close:focus-visible {
	opacity: 0.92;
}

.echelon-advisor__lightbox-image {
	display: block;
	width: 100%;
	height: auto;
	max-height: 50vh;
	object-fit: contain;
	border-radius: 3px;
	margin: 0 0 20px;
}

.echelon-advisor__lightbox-image[hidden] {
	display: none;
}

.echelon-advisor__lightbox-title {
	margin: 0 0 12px;
	padding-right: 40px;
	font-family: var(--echelon-font-display);
	font-weight: 400;
	font-size: 22px;
	line-height: 1.3;
	color: var(--echelon-ink);
}

.echelon-advisor__lightbox-title[hidden] {
	display: none;
}

.echelon-advisor__lightbox-body {
	font-family: var(--echelon-font-body);
	font-weight: 400;
	font-size: 17px;
	line-height: 1.65;
	color: var(--echelon-ink);
}

.echelon-advisor__lightbox-body > *:first-child {
	margin-top: 0;
}

.echelon-advisor__lightbox-body > *:last-child {
	margin-bottom: 0;
}

.echelon-advisor__lightbox-body p {
	margin: 0 0 1em;
}

.echelon-advisor__lightbox-body--list .echelon-advisor__trip-description {
	display: block;
	-webkit-line-clamp: unset;
	line-clamp: unset;
	overflow: visible;
}

.echelon-advisor__lightbox-body--list .echelon-advisor__trip-description p {
	display: block;
	margin: 0 0 0.75em;
}

.echelon-advisor__lightbox-body--list .echelon-advisor__trip-description p + p::before {
	content: none;
}

.echelon-advisor__lightbox-body--list .echelon-advisor__review-meta {
	font-size: 14px;
	line-height: 1.6;
	color: var(--echelon-slate);
}

.echelon-advisor__lightbox-body--list .echelon-advisor__reviews-list {
	gap: 40px;
}

.echelon-advisor__view-all {
	display: inline-block;
	margin-top: 28px;
	font-family: var(--echelon-font-body);
	font-weight: 500;
	font-size: 13px;
	line-height: 1.4;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--echelon-ink);
	text-decoration: none;
	border-bottom: 1px solid var(--echelon-gold);
	padding-bottom: 2px;
}

.echelon-advisor__view-all:hover,
.echelon-advisor__view-all:focus-visible {
	color: var(--echelon-ink);
	opacity: 0.85;
}

/* —— Photo Gallery —— */
.echelon-advisor__gallery {
	max-width: none;
	margin: 0;
	padding: 0 0 64px;
}

.echelon-advisor__gallery > .echelon-advisor__eyebrow + .echelon-advisor__gallery-grid {
	margin-top: 16px;
}

.echelon-advisor__gallery-grid {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 8px;
}

.echelon-advisor__gallery-item {
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 3px;
}

.echelon-advisor__gallery-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* —— Client Reviews (full-bleed Verde band) —— */
.echelon-advisor__reviews {
	background: var(--echelon-verde);
	padding: 96px 0;
	width: 100%;
	margin: 0;
}

.echelon-advisor__reviews-inner {
	box-sizing: content-box;
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 24px;
}

.echelon-advisor__reviews > .echelon-advisor__reviews-inner > .echelon-advisor__eyebrow {
	color: var(--echelon-gold);
}

.echelon-advisor__reviews > .echelon-advisor__reviews-inner > .echelon-advisor__eyebrow + .echelon-advisor__reviews-list {
	margin-top: 16px;
}

.echelon-advisor__reviews-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 48px;
	row-gap: 48px;
}

.echelon-advisor__reviews-list--modal {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.echelon-advisor__reviews .echelon-advisor__review-text {
	color: var(--echelon-parchment);
}

.echelon-advisor__reviews .echelon-advisor__review-meta {
	font-size: 14px;
	line-height: 1.6;
	color: var(--echelon-sage);
}

.echelon-advisor__reviews .echelon-advisor__view-all {
	color: var(--echelon-gold);
	border-bottom-color: var(--echelon-gold);
}

.echelon-advisor__reviews .echelon-advisor__view-all:hover,
.echelon-advisor__reviews .echelon-advisor__view-all:focus-visible {
	color: var(--echelon-gold);
	opacity: 0.85;
}

.echelon-advisor__review-text {
	font-family: var(--echelon-font-display);
	font-weight: 400;
	font-style: italic;
	font-size: 20px;
	line-height: 1.45;
	color: var(--echelon-ink);
}

.echelon-advisor__review-text > *:first-child {
	margin-top: 0;
}

.echelon-advisor__review-text > *:last-child {
	margin-bottom: 0;
}

.echelon-advisor__review-text p {
	margin: 0 0 0.75em;
}

.echelon-advisor__review-meta {
	margin: 12px 0 0;
	font-family: var(--echelon-font-body);
	font-weight: 400;
	font-size: 14px;
	line-height: 1.6;
	color: var(--echelon-ink);
}

.echelon-advisor__review-photos {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.echelon-advisor__review-photo {
	width: 60px;
	height: 60px;
	overflow: hidden;
	border-radius: 2px;
}

.echelon-advisor__review-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* —— Recommended Reading (rail) —— */
.echelon-advisor__reading > .echelon-advisor__eyebrow + .echelon-advisor__reading-list {
	margin-top: 16px;
}

.echelon-advisor__reading-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.echelon-advisor__reading-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.echelon-advisor__reading-thumb {
	flex-shrink: 0;
	width: 64px;
	height: 64px;
	overflow: hidden;
	border-radius: 2px;
	background: transparent;
}

.echelon-advisor__reading-thumb a {
	display: block;
}

.echelon-advisor__reading-thumb img {
	display: block;
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 2px;
}

.echelon-advisor__reading-copy {
	flex: 1 1 auto;
	min-width: 0;
}

.echelon-advisor__reading-category {
	margin: 0 0 8px;
	font-family: var(--echelon-font-body);
	font-weight: 500;
	font-size: 11px;
	line-height: 1.4;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--echelon-slate);
}

.echelon-advisor__reading-category a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.echelon-advisor__reading-category a:hover,
.echelon-advisor__reading-category a:focus-visible {
	color: var(--echelon-ink);
	border-bottom-color: var(--echelon-gold);
}

.echelon-advisor__reading-title {
	margin: 0;
	font-family: var(--echelon-font-display);
	font-weight: 400;
	font-size: 17px;
	line-height: 1.35;
	color: var(--echelon-ink);
}

.echelon-advisor__reading-title a {
	color: inherit;
	text-decoration: none;
}

.echelon-advisor__reading-title a:hover,
.echelon-advisor__reading-title a:focus-visible {
	opacity: 0.85;
}

.echelon-advisor__reading-byline {
	margin: 8px 0 0;
	font-family: var(--echelon-font-body);
	font-weight: 500;
	font-size: 11px;
	line-height: 1.4;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--echelon-slate);
}

/* —— Closing CTA —— */
.echelon-advisor__cta {
	background: var(--echelon-verde);
	padding: 72px 24px;
	text-align: center;
}

.echelon-advisor__cta-inner {
	max-width: 720px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.echelon-advisor__cta-headline {
	margin: 0;
	font-family: var(--echelon-font-display);
	font-weight: 400;
	font-size: 36px;
	line-height: 1.2;
	color: var(--echelon-parchment);
}

.echelon-advisor__cta-button {
	display: inline-block;
	margin-top: 28px;
	padding: 12px 26px;
	border-radius: 3px;
	background: var(--echelon-parchment);
	color: var(--echelon-verde);
	font-family: var(--echelon-font-body);
	font-weight: 500;
	font-size: 12px;
	line-height: 1.4;
	text-decoration: none;
}

.echelon-advisor__cta-button:hover,
.echelon-advisor__cta-button:focus-visible {
	color: var(--echelon-verde);
	opacity: 0.92;
}

/* —— Responsive —— */
@media (max-width: 768px) {
	.echelon-advisor__hero {
		padding: 48px 0;
	}

	.echelon-advisor__split {
		grid-template-columns: 1fr;
		gap: 48px;
	}

	.echelon-advisor__main {
		border-right: 0;
		padding-right: 0;
		width: 100%;
	}

	.echelon-advisor__rail {
		position: static;
		padding-left: 0;
		width: 100%;
	}

	.echelon-advisor__reviews {
		padding: 64px 0;
	}

	.echelon-advisor__reviews-list {
		grid-template-columns: 1fr;
		column-gap: 0;
		row-gap: 40px;
	}

	.echelon-advisor__cta {
		padding: 64px 24px;
	}

	.echelon-advisor__cta-headline {
		font-size: 28px;
	}

	.echelon-advisor__prose,
	.echelon-advisor__trip-description,
	.echelon-advisor__lightbox-body {
		font-size: 16px;
	}

	.echelon-advisor__awards-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.echelon-advisor__award {
		width: auto;
	}

	.echelon-advisor__trips-grid {
		grid-template-columns: 1fr;
	}

	.echelon-advisor__trip-title {
		font-size: 20px;
	}

	.echelon-advisor__gallery-grid {
		grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	}

	.echelon-advisor__lightbox {
		padding: 16px;
	}

	.echelon-advisor__lightbox-panel {
		padding: 36px 20px 24px;
	}

	.echelon-advisor__hero-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 32px;
		text-align: left;
	}

	.echelon-advisor__hero-media {
		flex: none;
		justify-content: flex-start;
	}

	.echelon-advisor__headshot {
		width: 200px;
		height: 250px;
	}

	.echelon-advisor__hero-content {
		flex: none;
		width: 100%;
		align-items: flex-start;
	}

	.echelon-advisor__name {
		font-size: 36px;
	}

	.echelon-advisor__tags {
		justify-content: flex-start;
	}
}
