/* Oak Tree Team Filter — styled to sit like Salient's own post-grid filter row. */
.otp-tf {
	--otp-tf-ink: #36302c;
	--otp-tf-brand: #236053;
	--otp-tf-accent: #b1cd6e;
}

.otp-tf__filters {
	padding: 30px 0;
	margin-bottom: 20px;
	text-align: center;
}

.otp-tf__controls {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: center;
	gap: 16px 40px;
}

.otp-tf__field {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
	min-width: 220px;
}

.otp-tf__label {
	font-size: 14px;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--otp-tf-brand);
	margin-bottom: 6px;
}

.otp-tf__select-wrap {
	position: relative;
	width: 100%;
}

.otp-tf__select-wrap:after {
	content: "";
	position: absolute;
	right: 4px;
	top: 50%;
	width: 8px;
	height: 8px;
	margin-top: -6px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	pointer-events: none;
	color: var(--otp-tf-ink);
}

.otp-tf select.otp-tf__select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	width: 100%;
	margin: 0;
	padding: 6px 28px 8px 0;
	font: inherit;
	line-height: 1.3;
	color: var(--otp-tf-ink);
	background: transparent;
	border: 0;
	border-bottom: 2px solid var(--otp-tf-ink);
	border-radius: 0;
	box-shadow: none;
	cursor: pointer;
	transition: border-color 0.2s ease;
}

.otp-tf select.otp-tf__select:hover,
.otp-tf select.otp-tf__select:focus {
	border-bottom-color: var(--otp-tf-accent);
	outline: none;
}

.otp-tf select.otp-tf__select:focus-visible {
	outline: 2px solid var(--otp-tf-brand);
	outline-offset: 4px;
}

/* "Clear filters" — same animated underline as Salient's filter links. */
.otp-tf .otp-tf__reset {
	position: relative;
	padding: 4px 0;
	margin: 0 0 6px;
	font: inherit;
	line-height: 1.1;
	color: var(--otp-tf-ink);
	background: none;
	border: 0;
	box-shadow: none;
	cursor: pointer;
}

.otp-tf .otp-tf__reset:after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 2px;
	background-color: var(--otp-tf-accent);
	transform: scaleX(0);
	transition: transform 0.37s cubic-bezier(0.23, 0.46, 0.4, 1);
}

.otp-tf .otp-tf__reset:not(:disabled):hover:after,
.otp-tf .otp-tf__reset:not(:disabled):focus-visible:after {
	transform: scaleX(1);
}

.otp-tf .otp-tf__reset:disabled {
	opacity: 0.35;
	cursor: default;
}

.otp-tf__count {
	margin: 0 0 20px;
	font-size: 15px;
	text-align: center;
	color: var(--otp-tf-ink);
	opacity: 0.75;
}

.otp-tf .nectar-post-grid-wrap {
	transition: opacity 0.25s ease;
}

.otp-tf .nectar-post-grid-wrap.loading {
	opacity: 0.4;
	pointer-events: none;
}

.otp-tf__empty {
	padding: 40px 0;
	text-align: center;
}

.otp-tf__empty[hidden],
.otp-tf__results[hidden],
.otp-tf__group[hidden],
.otp-tf .nectar-post-grid-item[hidden] {
	display: none !important;
}

/* Subheadings above each group of cards. */
.otp-tf__group {
	margin-bottom: 40px;
}

.otp-tf .otp-tf__heading {
	margin: 0 0 20px;
	color: var(--otp-tf-ink);
}

/* Salient's own category filter bar is replaced by the Location dropdown. */
.otp-tf .nectar-post-grid-filters {
	display: none !important;
}

@media only screen and (max-width: 690px) {
	.otp-tf__controls {
		flex-direction: column;
		align-items: stretch;
	}

	.otp-tf__field {
		min-width: 0;
	}

	.otp-tf .otp-tf__reset {
		align-self: center;
	}
}
