.team-page-hero {
	padding-block: 56px 58px;
	border-bottom: 1px solid var(--rm-tone-e0e6dc,#e0e6dc);
	background: linear-gradient(135deg, var(--rm-cream,#f5f5ef) 0 68%, var(--rm-tone-e9efe6,#e9efe6) 68% 100%);
}

.team-page-hero > .site-width {
	max-width: 790px;
}

.team-page-hero .eyebrow {
	margin: 0 0 21px;
}

.team-page-hero h1 {
	max-width: none;
	margin: 0 0 20px;
	color: var(--rm-ink,#293b34);
	font-size: 44px;
	font-weight: 600;
	line-height: 1.12;
}

.team-page-hero__intro {
	max-width: 610px;
	color: var(--rm-tone-5a665e,#5a665e);
}

.team-page-hero .team-page-hero__intro p {
	margin: 0 0 25px;
	font-size: 16px;
	line-height: 1.75;
}

.team-directory {
	padding-block: 58px 70px;
}

.team-directory__group + .team-directory__group {
	margin-top: 42px;
	padding-top: 42px;
	border-top: 1px solid var(--rm-tone-e0e6dc,#e0e6dc);
}

.team-directory__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin: 0;
}

.team-card {
	overflow: hidden;
	padding: 0;
	border: 1px solid var(--rm-tone-e0e6dc,#e0e6dc);
	border-radius: 10px;
	background: var(--rm-tone-f8f8f4,#f8f8f4);
	transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.team-card__link {
	display: block;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.team-card .team-card__media {
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: 285px;
	margin: 0;
	object-fit: cover;
	object-position: center;
	background: var(--rm-tone-eef1ee,#eef1ee);
}

/* Portrait uploads need a higher crop to keep the whole head in the card. */
.team-card img.team-card__media--portrait {
	object-position: center 30%;
}

.team-card .team-card__media--placeholder {
	position: relative;
	display: grid;
	place-items: end center;
	overflow: hidden;
	background: linear-gradient(145deg, var(--rm-tone-e9ecea,#e9ecea), var(--rm-tone-cbd2ce,#cbd2ce));
}

.team-card__placeholder-person::before,
.team-card__placeholder-person::after {
	position: absolute;
	left: 50%;
	content: "";
	transform: translateX(-50%);
}

.team-card__placeholder-person::before {
	top: 17%;
	width: 82px;
	height: 82px;
	border-radius: 50%;
	background: var(--rm-tone-9ba59f,#9ba59f);
}

.team-card__placeholder-person::after {
	bottom: -14px;
	width: 190px;
	height: 142px;
	border-radius: 96px 96px 0 0;
	background: var(--rm-tone-89948d,#89948d);
}

.team-card__media--female .team-card__placeholder-person::before {
	box-shadow: 0 0 0 13px var(--rm-tone-78837c,#78837c);
}

.team-card__placeholder-label {
	position: relative;
	z-index: 1;
	margin-bottom: 22px;
	padding: 7px 10px;
	border-radius: 999px;
	background: #ffffffb8;
	color: var(--rm-tone-65716a,#65716a);
	font-size: 12px;
	font-weight: 700;
	line-height: 18px;
}

.team-card__content {
	padding: 22px;
}

.team-card h2 {
	margin: 0 0 7px;
	color: var(--rm-ink,#293b34);
	font-size: 21px;
	font-weight: 800;
	line-height: 1.25;
}

.team-card .team-card__job-title,
.team-card .team-card__specialties {
	margin: 0 0 14px;
	color: var(--rm-tone-5e6b63,#5e6b63);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
}

.team-card:hover,
.team-card:focus-within {
	border-color: var(--rm-tone-b9c8b8,#b9c8b8);
	box-shadow: 0 14px 35px var(--rm-tone-293b3418,#293b3418);
	transform: translateY(-3px);
}

.team-card__link:focus-visible {
	outline: 3px solid var(--rm-tone-7f9b7d,#7f9b7d);
	outline-offset: -3px;
}

@media (max-width: 1199px) {
	.team-directory__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.team-page-hero {
		padding-block: 38px 40px;
		background: var(--rm-cream,#f5f5ef);
	}

	.team-page-hero .eyebrow {
		margin-bottom: 18px;
		font-size: 8px;
		line-height: 1.5;
		letter-spacing: .12em;
	}

	.team-page-hero h1 {
		font-size: 34px;
		line-height: 1.13;
	}

	.team-page-hero .team-page-hero__intro p {
		font-size: 14px;
	}

	.team-directory {
		padding-block: 42px 48px;
	}

	.team-directory__grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.team-directory__group + .team-directory__group {
		margin-top: 30px;
		padding-top: 30px;
	}

	.team-card img.team-card__media {
		height: 250px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.team-card {
		transition: none;
	}
}
