/*
 * EP Member Directory — public team pages ([ep_team])
 * Brand: blue-green #1db9d6, light blue-green #abdfe8, charcoal #222b2d.
 */
.epteam {
	--epteam-accent: #1db9d6;
	--epteam-accent-light: #abdfe8;
	--epteam-accent-ink: #137c90;
	--epteam-charcoal: #222b2d;
	--epteam-muted: #5b676a;
	--epteam-photo: 168px;
	margin: 0 0 2.5rem;
	color: var(--epteam-charcoal);
}

.epteam__heading {
	margin: 0 0 1.5rem;
	text-align: center;
	color: var(--epteam-charcoal);
}

/* Flex (not grid) so a partial last row is centered under the others. */
.epteam__grid {
	--epteam-gap: 1.75rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2.5rem var(--epteam-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.epteam__person {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 0 1 230px;
	min-width: 0;
	margin: 0;
	text-align: center;
}

/* columns="3" etc.: exact column width. */
.epteam--fixed .epteam__person {
	flex: 0 0 calc((100% - (var(--epteam-cols) - 1) * var(--epteam-gap)) / var(--epteam-cols));
}

/* Circular photo. Cropped from the top-center so faces aren't cut off in tall photos. */
.epteam__photo {
	width: min(var(--epteam-photo), calc(100% - 12px)); /* shrinks in narrow columns; 12px leaves room for the ring */
	aspect-ratio: 1 / 1;
	height: auto;
	margin-bottom: 1rem;
	border-radius: 50%;
	overflow: hidden;
	background: var(--epteam-accent-light);
	box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--epteam-accent-light);
	flex: 0 0 auto;
}

.epteam__photo {
	position: relative;
}

/* Pinned to the circle's edges so theme image rules (height: auto, etc.) can't shift it. */
.epteam .epteam__photo img {
	position: absolute !important;
	inset: 0 !important;
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	box-shadow: none !important;
	object-fit: cover !important;
	object-position: 50% 22% !important;
}

.epteam__initials {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: var(--epteam-charcoal);
	font-size: clamp(1.5rem, 5vw, 3rem);
	font-weight: 700;
	letter-spacing: 0.02em;
}

.epteam__title {
	margin: 0 0 0.25rem;
	color: var(--epteam-accent-ink);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.35;
	text-transform: uppercase;
}

.epteam__name {
	margin: 0;
	color: var(--epteam-charcoal);
	font-size: 1.25rem;
	line-height: 1.3;
}

.epteam__bio {
	max-width: 34ch;
	margin-top: 0.625rem;
	color: var(--epteam-muted);
	font-size: 0.9375rem;
	line-height: 1.6;
}

.epteam__bio p {
	margin: 0 0 0.6em;
}

.epteam__bio p:last-child {
	margin-bottom: 0;
}

.epteam__notice {
	padding: 0.75rem 1rem;
	border: 1px dashed #c3cdcf;
	border-radius: 8px;
	color: #5b676a;
	font-size: 0.875rem;
}

@media (max-width: 900px) {
	.epteam--fixed .epteam__person {
		flex-basis: calc((100% - 2 * var(--epteam-gap)) / 3);
	}
}

@media (max-width: 600px) {
	.epteam {
		--epteam-photo: 132px;
	}
	.epteam__grid {
		--epteam-gap: 1rem;
		row-gap: 2rem;
	}
	.epteam__person,
	.epteam--fixed .epteam__person {
		flex: 0 0 calc((100% - var(--epteam-gap)) / 2);
	}
	.epteam__name {
		font-size: 1.0625rem;
	}
}

@media (max-width: 360px) {
	.epteam__person,
	.epteam--fixed .epteam__person {
		flex-basis: 100%;
	}
}

/* Theme shield: keep theme list bullets and heading styles out of team grids. */
.epteam .epteam__grid {
	margin-left: 0 !important;
	padding-left: 0 !important;
	list-style: none !important;
}

.epteam .epteam__person {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	background-image: none !important;
}

.epteam .epteam__person::before,
.epteam .epteam__person::marker {
	content: none !important;
	display: none !important;
}

.epteam .epteam__name {
	font-size: 1.25rem !important;
	font-weight: 600;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1.3 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
}

.epteam .epteam__title {
	padding: 0 !important;
}

@media (max-width: 600px) {
	.epteam .epteam__name {
		font-size: 1.0625rem !important;
	}
}

.epteam .epteam__heading {
	letter-spacing: normal !important;
	text-transform: none !important;
}
