/* ClearVision — the full "Our Team" page ([cvp_team]).
   ONE team: agents and staff share the same card so the page reads as a single
   team, not "them and those". Brand: orange #f29b44, brown #5f504b, cream
   #efe3d0, heading #3a312e. */

.cvp-team__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	margin: 8px 0 10px;
}

/* One person card — centred photo, name, title, short about. */
.cvp-tm {
	text-align: center;
	background: #ffffff;
	border: 1px solid #efe3d0;
	border-radius: 12px;
	padding: 30px 24px 26px;
	box-shadow: 0 2px 12px rgba(58, 49, 46, .05);
	transition: transform .15s ease, box-shadow .15s ease;
}
.cvp-tm:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 22px rgba(58, 49, 46, .10);
}

/* Round portrait (same size for a real photo or the placeholder). */
.cvp-tm__photo {
	width: 150px;
	height: 150px;
	margin: 0 auto 18px;
}
.cvp-tm__photo a {
	display: block;
	width: 100%;
	height: 100%;
}
.cvp-tm__img {
	width: 150px;
	height: 150px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}
.cvp-tm__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 150px;
	height: 150px;
	border-radius: 50%;
	background: #efe3d0;
	color: #c8b6a6;
	font-size: 54px;
}
.cvp-tm__placeholder a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: inherit;
}

.cvp-tm__name {
	margin: 0;
	font-size: 19px;
	font-weight: 700;
	color: #3a312e;
	line-height: 1.25;
}
.cvp-tm__name a {
	color: inherit;
	text-decoration: none;
}
.cvp-tm__name a:hover {
	color: #f29b44;
}

.cvp-tm__role {
	margin: 5px 0 0;
	color: #f29b44;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: .02em;
}

.cvp-tm__bio {
	margin: 12px 0 0;
	color: #5f504b;
	font-size: 14.5px;
	line-height: 1.6;
	/* Show the FULL bio — the team card has no profile link / "read more", so the
	   whole description must be visible (no line clamp). Cards in a row stretch to
	   the tallest; shorter bios just get a little extra whitespace. */
}
/* The bio is a wrapper holding the editor's paragraphs — keep their breaks but use
   a tidy, even gap between paragraphs (browsers default to a big 1em margin). */
.cvp-tm__bio p {
	margin: 0 0 0.85em;
}
.cvp-tm__bio p:last-child {
	margin-bottom: 0;
}

/* ── Featured member: a wide banner card spanning the FULL row (3 cards wide on
   desktop, 2 on tablet, 1 on mobile). `1 / -1` spans every column at any count, so
   one rule covers all breakpoints. Laid out horizontally: photo left, text right. */
.cvp-tm--featured {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	gap: 36px;
	text-align: left;
	padding: 34px 40px;
	/* a soft cream wash + orange edge so the leader card reads as the hero of the page */
	background: linear-gradient(180deg, #fffdfa 0%, #fcf6ee 100%);
	border-color: #f0d8bd;
}
.cvp-tm--featured .cvp-tm__photo {
	flex: 0 0 auto;
	width: 190px;
	height: 190px;
	margin: 0;
}
.cvp-tm--featured .cvp-tm__img,
.cvp-tm--featured .cvp-tm__placeholder {
	width: 190px;
	height: 190px;
}
.cvp-tm--featured .cvp-tm__body {
	flex: 1 1 auto;
}
.cvp-tm--featured .cvp-tm__name {
	font-size: 26px;
}
.cvp-tm--featured .cvp-tm__role {
	font-size: 16px;
	margin-top: 6px;
}
.cvp-tm--featured .cvp-tm__bio {
	font-size: 15.5px;
	/* fill the card width — the body already flexes, so the text runs to the right
	   padding instead of stopping short. */
}

@media (max-width: 1024px) {
	.cvp-team__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 22px;
	}
}
@media (max-width: 600px) {
	.cvp-team__grid {
		grid-template-columns: 1fr;
	}
	/* On mobile the banner stacks and centres like a normal card. */
	.cvp-tm--featured {
		flex-direction: column;
		text-align: center;
		gap: 18px;
		padding: 30px 24px 26px;
	}
	.cvp-tm--featured .cvp-tm__photo {
		margin: 0 auto;
	}
	.cvp-tm--featured .cvp-tm__bio {
		margin-left: auto;
		margin-right: auto;
	}
}
