/* ==================================================
   Executive Medicine — Meet the Team
   Page-specific styles; loaded after secondary-pages.css
   ================================================== */

.em-team-page-body,
.em-team-page-body * {
	box-sizing: border-box;
}

.em-team-page-body {
	margin: 0;
	color: #4f626b;
	background: #ffffff;
}

.em-team-page-body .page-background {
	padding: 0;
	background: #ffffff;
}

.em-team-page-body .page-card.em-team-page {
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	overflow: hidden;
	background: #ffffff;
	border-radius: 0;
	box-shadow: none;
}

.em-team-page {
	--em-team-navy: #243642;
	--em-team-navy-deep: #1b2d37;
	--em-team-green: #49765a;
	--em-team-green-light: #86bf96;
	--em-team-pale: #edf4ef;
	--em-team-cream: #f7f4ee;
	--em-team-gold: #a98145;
	--em-team-text: #4f626b;
	--em-team-border: rgba(36, 54, 66, 0.15);
	--em-team-shadow: 0 14px 34px rgba(36, 54, 66, 0.08);
}

.em-team-page h1,
.em-team-page h2,
.em-team-page h3 {
	font-family: Didot, "Bodoni 72", "Bodoni MT", Georgia, serif;
	font-weight: 500;
}

.em-team-page .page-hero {
	position: relative;
	padding: 90px 30px 76px;
	color: #ffffff;
	background: var(--em-team-navy);
	text-align: center;
}

.em-team-page .page-hero::after {
	width: 72px;
	height: 3px;
	margin: 30px auto 0;
	background: var(--em-team-green-light);
}

.em-team-page .page-hero-inner {
	max-width: 980px;
}

.em-team-page .hero-logo-overlay {
	position: static;
	transform: none;
	opacity: 1;
}

.em-team-page .hero-logo-overlay img {
	display: block;
	width: auto;
	height: 96px;
	max-width: 100%;
	margin: 0 auto 30px;
	object-fit: contain;
	filter: none;
}

.em-team-page .page-hero h1 {
	display: block;
	margin: 0 0 20px;
	color: #fffdf7;
	font-size: clamp(2.8rem, 5.5vw, 4.9rem);
	font-weight: 500;
	line-height: 1.04;
	letter-spacing: -0.035em;
}

.em-team-page .page-hero .h1-location {
	display: block;
	margin-top: 16px;
	color: #c9dfcd;
	font-family: "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.17em;
	line-height: 1.4;
	text-transform: uppercase;
}

.em-team-page .page-hero-subtitle {
	max-width: 720px;
	margin: 0 auto 10px;
	color: rgba(255, 255, 255, 0.92);
	font-size: 1.05rem;
	line-height: 1.65;
}

.em-team-page .page-hero-meta {
	margin: 0;
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.78rem;
	letter-spacing: 0.06em;
}

.em-team-page .secondary-page.em-team-main {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.em-team-page .page-updated,
.em-team-page .team-intro,
.em-team-page .content-wrapper,
.em-team-page .welcome-container,
.em-team-page .doctors {
	width: min(100% - 60px, 1180px);
	margin-right: auto;
	margin-left: auto;
}

.em-team-page .page-updated {
	margin-top: 30px;
	margin-bottom: 0;
	color: #718087;
	font-size: 0.78rem;
	text-align: right;
}

.em-team-page .team-intro {
	max-width: 850px;
	margin-top: 54px;
	margin-bottom: 38px;
	color: #344a55;
	font-family: Didot, "Bodoni 72", "Bodoni MT", Georgia, serif;
	font-size: clamp(1.3rem, 2vw, 1.72rem);
	line-height: 1.55;
	text-align: center;
}

.em-team-page .themed-section,
.em-team-page .content-card,
.em-team-page .content-wrapper {
	padding: 0;
	background: transparent;
	box-shadow: none;
}

.em-team-page .doctors-intro-image {
	overflow: hidden;
	background: #e8ece8;
	border: 1px solid var(--em-team-border);
	box-shadow: var(--em-team-shadow);
}

.em-team-page .doctors-intro-image img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	object-fit: contain;
	filter: none;
}

.em-team-page .welcome-note {
	margin-top: 86px;
	padding: 86px 0;
	background: var(--em-team-cream);
}

.em-team-page .welcome-container {
	display: grid;
	grid-template-columns: minmax(280px, 0.76fr) minmax(0, 1.24fr);
	align-items: center;
	gap: clamp(44px, 7vw, 90px);
}

.em-team-page .welcome-image {
	position: relative;
	overflow: hidden;
	background: #e6ebe7;
	border: 1px solid var(--em-team-border);
	box-shadow: var(--em-team-shadow);
}

.em-team-page .welcome-image img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	object-fit: contain;
	filter: none;
}

.em-team-page .doctor-name {
	position: static;
	padding: 18px 21px 19px;
	color: var(--em-team-navy);
	background: #ffffff;
	font-family: Didot, "Bodoni 72", "Bodoni MT", Georgia, serif;
	font-size: 1.35rem;
	font-weight: 600;
	line-height: 1.2;
}

.em-team-page .doctor-name span {
	display: block;
	margin-top: 6px;
	color: var(--em-team-green);
	font-family: "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
	font-size: 0.76rem;
	font-weight: 650;
	line-height: 1.45;
}

.em-team-page .em-team-eyebrow,
.em-team-page .doctors-header::before {
	color: var(--em-team-green);
	font-family: "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	line-height: 1.4;
	text-transform: uppercase;
}

.em-team-page .em-team-eyebrow {
	margin: 0 0 13px;
}

.em-team-page .welcome-text h2 {
	margin: 0 0 25px;
	color: var(--em-team-navy);
	font-size: clamp(2.25rem, 4vw, 3.65rem);
	line-height: 1.08;
	letter-spacing: -0.03em;
}

.em-team-page .welcome-text p:not(.em-team-eyebrow) {
	margin: 0 0 18px;
	color: var(--em-team-text);
	font-size: 1rem;
	line-height: 1.75;
}

.em-team-page .welcome-text p:last-child {
	margin-bottom: 0;
}

.em-team-page .section-divider {
	display: none !important;
}

.em-team-page .doctors {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: stretch;
	gap: 22px;
	padding-top: 92px;
	padding-bottom: 92px;
}

.em-team-page .em-team-roster {
	background: var(--em-team-pale);
}

.em-team-page .doctors-header,
.em-team-page .doctors > h4,
.em-team-page .return-to-services {
	grid-column: 1 / -1;
}

.em-team-page .doctors-header {
	width: auto;
	margin: 0 0 24px;
	padding: 0;
	text-align: center;
}

.em-team-page .doctors-header::before {
	content: "Our clinical team";
	display: block;
	margin-bottom: 12px;
}

.em-team-page .doctors-header h2 {
	margin: 0;
	color: var(--em-team-navy);
	font-size: clamp(2.4rem, 4.3vw, 4rem);
	line-height: 1.08;
	letter-spacing: -0.035em;
}

.em-team-page .doctors > h4 {
	max-width: 780px;
	margin: 28px auto 0;
	padding-top: 20px;
	color: var(--em-team-green);
	border-top: 1px solid #cad8cd;
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.15em;
	line-height: 1.4;
	text-align: center;
	text-transform: uppercase;
}

.em-team-page .doctor-card {
	display: grid;
	grid-template-columns: 160px minmax(0, 1fr);
	align-items: start;
	gap: 24px;
	min-width: 0;
	margin: 0;
	padding: 24px;
	color: var(--em-team-text);
	background: #ffffff;
	border: 1px solid var(--em-team-border);
	border-radius: 0;
	box-shadow: var(--em-team-shadow);
	text-align: left;
}

.em-team-page .doctor-card > img {
	position: static;
	display: block;
	width: 160px;
	height: 240px;
	max-width: none;
	margin: 0;
	object-fit: cover;
	object-position: 50% 16%;
	border-radius: 0;
	filter: none;
	transform: none;
}

.em-team-page .doctor-info {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
	height: 100%;
	padding-top: 1px;
}

.em-team-page .doctor-info h3 {
	margin: 0 0 7px;
	color: var(--em-team-navy);
	font-size: 1.48rem;
	font-weight: 600;
	line-height: 1.2;
}

.em-team-page .doctor-info > p {
	margin: 0 0 10px;
	color: #68767c;
	font-size: 0.86rem;
	line-height: 1.48;
}

.em-team-page .doctor-info > .subtitle {
	color: var(--em-team-green);
	font-weight: 650;
}

.em-team-page .doctor-description {
	position: relative;
	display: block;
	visibility: visible;
	overflow: hidden;
	max-height: 8em;
	margin: 8px 0 16px;
	opacity: 1;
	transition: max-height 0.35s ease, margin 0.25s ease;
}

.em-team-page .doctor-description::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 2.2em;
	pointer-events: none;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff);
	transition: opacity 0.2s ease;
}

.em-team-page .doctor-card.active .doctor-description {
	max-height: 3600px;
}

.em-team-page .doctor-card.active .doctor-description::after {
	opacity: 0;
}

.em-team-page .doctor-description p,
.em-team-page .doctor-description li {
	color: var(--em-team-text);
	font-size: 0.9rem;
	line-height: 1.6;
}

.em-team-page .doctor-description p {
	margin: 0 0 13px;
}

.em-team-page .doctor-description ul {
	margin: 0 0 16px;
	padding-left: 20px;
}

.em-team-page .doctor-description li + li {
	margin-top: 6px;
}

.em-team-page .toggle-bio {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 43px;
	margin: auto 0 0;
	padding: 10px 18px;
	color: var(--em-team-navy);
	background: transparent;
	border: 1px solid rgba(36, 54, 66, 0.42);
	border-radius: 0;
	font: inherit;
	font-size: 0.84rem;
	font-weight: 650;
	line-height: 1.2;
	cursor: pointer;
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.em-team-page .toggle-bio:hover,
.em-team-page .toggle-bio:focus-visible {
	color: #ffffff;
	background: var(--em-team-green);
	border-color: var(--em-team-green);
	transform: translateY(-1px);
}

.em-team-page .toggle-bio:focus-visible,
.em-team-page .return-link:focus-visible {
	outline: 3px solid rgba(134, 191, 150, 0.55);
	outline-offset: 3px;
}

.em-team-page .return-to-services {
	margin-top: 36px;
	text-align: center;
}

.em-team-page .return-link {
	color: var(--em-team-green);
	font-weight: 700;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

@media (max-width: 960px) {
	.em-team-page .welcome-container {
		grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
		gap: 38px;
	}

	.em-team-page .doctor-card {
		grid-template-columns: 132px minmax(0, 1fr);
		gap: 19px;
		padding: 20px;
	}

	.em-team-page .doctor-card > img {
		width: 132px;
		height: 204px;
	}
}

@media (max-width: 760px) {
	.em-team-page .page-hero {
		padding: 72px 22px 62px;
	}

	.em-team-page .page-updated,
	.em-team-page .team-intro,
	.em-team-page .content-wrapper,
	.em-team-page .welcome-container,
	.em-team-page .doctors {
		width: min(100% - 36px, 1180px);
	}

	.em-team-page .page-updated {
		text-align: left;
	}

	.em-team-page .team-intro {
		margin-top: 38px;
		margin-bottom: 30px;
		text-align: left;
	}

	.em-team-page .welcome-note {
		margin-top: 58px;
		padding: 62px 0;
	}

	.em-team-page .welcome-container,
	.em-team-page .doctors {
		grid-template-columns: 1fr;
	}

	.em-team-page .welcome-image {
		max-width: 480px;
		margin: 0 auto;
	}

	.em-team-page .doctors {
		padding-top: 66px;
		padding-bottom: 72px;
	}

	.em-team-page .doctors-header,
	.em-team-page .doctors > h4,
	.em-team-page .return-to-services {
		grid-column: auto;
	}
}

@media (max-width: 520px) {
	.em-team-page .hero-logo-overlay img {
		margin-bottom: 25px;
	}

	.em-team-page .doctor-card {
		grid-template-columns: 112px minmax(0, 1fr);
		gap: 16px;
		padding: 17px;
	}

	.em-team-page .doctor-card > img {
		width: 112px;
		height: 170px;
	}

	.em-team-page .doctor-info h3 {
		font-size: 1.28rem;
	}

	.em-team-page .doctor-description {
		grid-column: 1 / -1;
	}

	.em-team-page .toggle-bio {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.em-team-page .doctor-description,
	.em-team-page .doctor-description::after,
	.em-team-page .toggle-bio {
		transition: none;
	}
}
