/* HM Team — filterable grid */

/* Filter pill bar */
.hm-team-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 40px;
}

.hm-team-filter {
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid #6b1b4f;
	background: transparent;
	color: #6b1b4f;
	border-radius: 100px;
	padding: 9px 22px;
	font-size: 14px;
	line-height: 1.4;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.hm-team-filter:hover,
.hm-team-filter:focus-visible {
	background: #f2e9f2;
	outline: none;
}

.hm-team-filter.is-active {
	background: #6b1b4f;
	color: #fff;
}

/* Grid */
.hm-team-grid {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -15px;
}

.hm-team-item {
	box-sizing: border-box;
	padding: 0 15px 30px;
	width: 25%;
	animation: hm-team-in 0.35s ease both;
}

.hm-team-cols-3 > .hm-team-item {
	width: 33.333%;
}

.hm-team-cols-2 > .hm-team-item {
	width: 50%;
}

.hm-team-item.hm-hidden {
	display: none;
}

@keyframes hm-team-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hm-team-item {
		animation: none;
	}
}

@media only screen and (max-width: 999px) {
	.hm-team-grid > .hm-team-item {
		width: 50%;
	}
}

@media only screen and (max-width: 689px) {
	.hm-team-grid > .hm-team-item {
		width: 100%;
	}
}

/* Card meta order: Salient's bio_fullscreen_alt outputs the mini bio ahead
   of the name — reorder to name, job title, short bio (scoped to our grid
   so other team elements on the site keep the theme's default order). */
.hm-team-item .team-member .team-meta {
	display: flex;
	flex-direction: column;
}

.hm-team-item .team-member .team-meta h3 {
	order: 1;
	margin: 0 0 4px;
}

.hm-team-item .team-member .team-meta h5 {
	order: 2;
	margin: 0 0 10px;
}

.hm-team-item .team-member .team-meta p {
	order: 3;
	margin: 0;
}

/* Fallback card (only used if the Salient team element is unavailable) */
.hm-team-card-fallback .hm-team-photo {
	width: 100%;
	height: auto;
	display: block;
	margin-bottom: 14px;
}

.hm-team-card-fallback .hm-team-name {
	margin: 0 0 4px;
}

.hm-team-card-fallback .hm-team-job {
	margin: 0;
	opacity: 0.7;
}
