.tf-wrap {
	--tf-text: #2A292D;
	--tf-purple: #715B95;
	--tf-purple-dark: #2C166E;
	--tf-purple-light: #E1E3FC;
	--tf-purple-tint: rgba(113, 91, 149, 0.08);
	--tf-teal: #3B7674;
	--tf-tag-bg: #F4F4FA;
	--tf-card-bg: #FFFFFF;

	color: var(--tf-text);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	margin: 3rem 0;
	max-width: 1297px;
}

.tf-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1.5rem;
	margin-bottom: 1.5rem;
	flex-wrap: wrap;
}

.tf-heading {
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 35px;
	line-height: 1.3;
	letter-spacing: -0.25px;
	color: var(--tf-text);
	margin: 0;
	max-width: 800px;
}

/* !important throughout — Hello Biz parent theme applies aggressive button
   styles to <button> and <a> elements that we need to override. */
.tf-wrap .tf-team-btn {
	display: inline-flex !important;
	justify-content: center;
	align-items: center;
	padding: 17px 11px 17px 20px !important;
	gap: 22px;
	height: 44px;
	background: var(--tf-purple-dark) !important;
	color: var(--tf-purple-light) !important;
	border: 0 !important;
	border-radius: 100px !important;
	text-decoration: none !important;
	font-family: 'Inter Tight', 'Inter', sans-serif;
	font-weight: 700;
	font-size: 15px;
	line-height: 1;
	transition: background 0.2s ease, transform 0.15s ease;
	white-space: nowrap;
	box-sizing: border-box;
}

.tf-wrap .tf-team-btn:hover,
.tf-wrap .tf-team-btn:focus-visible {
	background: #1a0d4a !important;
	transform: translateY(-1px);
}

.tf-team-btn__icon {
	display: block;
	width: 29px;
	height: 29px;
	flex-shrink: 0;
	border-radius: 50%;
}

.tf-note {
	background: #f0e9ff;
	border-left: 4px solid var(--tf-purple);
	padding: 0.75rem 1rem;
	margin: 0 0 1.5rem;
	font-size: 14px;
	border-radius: 4px;
	line-height: 1.5;
}

.tf-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-bottom: 2rem;
}

.tf-filter {
	margin: 0;
	position: relative;
	display: inline-block;
}

.tf-wrap .tf-select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;

	display: inline-flex;
	align-items: center;
	height: 44px;
	padding: 0 42px 0 20px;
	border: 2px solid var(--tf-purple);
	border-radius: 100px;
	background-color: #fff;
	color: var(--tf-purple);
	font-family: 'Inter Tight', 'Inter', sans-serif;
	font-weight: 700;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
	min-width: 145px;
	max-width: 260px;

	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;

	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%23715B95' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 12px 8px;

	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.tf-wrap .tf-select:hover {
	background-color: var(--tf-purple-tint);
}

.tf-wrap .tf-select:focus,
.tf-wrap .tf-select:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(113, 91, 149, 0.22);
}

/* Filled-purple "active" state — toggled by JS when a value is selected. */
.tf-wrap .tf-select.is-selected {
	background-color: var(--tf-purple);
	color: #fff;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

.tf-wrap .tf-select.is-selected:hover {
	background-color: #5b4880;
}

.tf-wrap .tf-select option {
	background-color: #fff;
	color: var(--tf-text);
	font-family: 'Inter', sans-serif;
	font-weight: 400;
	font-size: 14px;
	padding: 8px 14px;
}

.tf-wrap .tf-select option:checked {
	background-color: var(--tf-purple-light);
	color: var(--tf-purple-dark);
}

.tf-wrap .tf-select option[value=""] {
	color: #6b6b6b;
	font-style: italic;
}

.tf-wrap .tf-submit {
	height: 44px;
	padding: 0 24px !important;
	background: var(--tf-purple) !important;
	color: var(--tf-purple-light) !important;
	border: 2px solid var(--tf-purple) !important;
	border-radius: 100px !important;
	font-family: 'Inter Tight', 'Inter', sans-serif !important;
	font-weight: 700 !important;
	font-size: 15px !important;
	line-height: 1 !important;
	min-width: 120px;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease;
	text-transform: none !important;
	box-shadow: none !important;
}

.tf-wrap .tf-submit:hover,
.tf-wrap .tf-submit:focus-visible {
	background: #5b4880 !important;
	border-color: #5b4880 !important;
	transform: translateY(-1px);
}

/* Aggressive reset on every state — parent theme applies pink button
   backgrounds on hover/focus that bleed through without these. */
.tf-wrap .tf-clear,
.tf-wrap .tf-clear:hover,
.tf-wrap .tf-clear:focus,
.tf-wrap .tf-clear:focus-visible,
.tf-wrap .tf-clear:active {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 13px 8px !important;
	font-family: 'Inter Tight', 'Inter', sans-serif !important;
	font-weight: 400 !important;
	font-size: 15px !important;
	color: #000 !important;
	text-decoration: underline !important;
	cursor: pointer;
	transform: none !important;
	min-width: 0 !important;
	width: auto !important;
	border-radius: 0 !important;
}

.tf-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.tf-card {
	background: var(--tf-card-bg);
	border-radius: 30px;
	padding: 17px 16px 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	min-height: 401px;
}

.tf-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.tf-card[hidden] {
	display: none;
}

.tf-card__photo {
	width: 128px;
	height: 128px;
	border-radius: 50%;
	background-size: cover;
	background-position: center;
	background-color: #f0f0f0;
	margin-bottom: 12px;
	flex-shrink: 0;
}

.tf-card__name {
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 20px;
	line-height: 1.3;
	letter-spacing: -0.25px;
	margin: 0 0 7px;
}

.tf-card__location {
	font-style: italic;
	font-size: 14px;
	line-height: 1.4;
	margin: 0 0 16px;
}

.tf-card__tags {
	width: 100%;
	background: var(--tf-tag-bg);
	border-radius: 20px;
	padding: 11px 14px;
	font-size: 13px;
	line-height: 1.4;
	margin-bottom: 11px;
	min-height: 82px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}

.tf-wrap .tf-card__btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	padding: 11px 20px !important;
	border: 2px solid var(--tf-teal) !important;
	color: var(--tf-teal) !important;
	background: transparent !important;
	border-radius: 100px !important;
	font-family: 'Inter Tight', 'Inter', sans-serif !important;
	font-weight: 700 !important;
	font-size: 15px !important;
	text-decoration: none !important;
	min-width: 147px;
	margin-top: auto;
	transition: background 0.2s ease, color 0.2s ease;
}

.tf-wrap .tf-card__btn:hover,
.tf-wrap .tf-card__btn:focus-visible {
	background: var(--tf-teal) !important;
	color: #fff !important;
}

.tf-empty {
	padding: 3rem 1rem;
	text-align: center;
}

.tf-empty[hidden] {
	display: none;
}

.tf-no-staff {
	background: var(--tf-card-bg);
	border-radius: 30px;
	padding: 3rem 2rem;
	text-align: center;
	font-size: 16px;
	line-height: 1.5;
}

.tf-no-staff p {
	margin: 0 0 0.5rem;
}

.tf-no-staff__hint {
	font-size: 14px;
	color: #6b6b6b;
}

.tf-no-staff__hint a {
	color: var(--tf-purple);
	font-weight: 600;
	text-decoration: underline;
}

@media (max-width: 1100px) {
	.tf-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
	.tf-grid { grid-template-columns: repeat(2, 1fr); }
	.tf-heading { font-size: 28px; }
	.tf-wrap .tf-team-btn { font-size: 14px; }
	.tf-filters { gap: 8px; }
	.tf-wrap .tf-select { min-width: 140px; max-width: 100%; }
}

@media (max-width: 520px) {
	.tf-grid { grid-template-columns: 1fr; }
	.tf-heading { font-size: 24px; }
	.tf-header { flex-direction: column; align-items: stretch; }
	.tf-wrap .tf-team-btn { justify-content: center; }
	.tf-filters { flex-direction: column; align-items: stretch; gap: 8px; }
	.tf-filter { width: 100%; }
	.tf-wrap .tf-select { width: 100%; max-width: none; min-width: 0; }
	.tf-wrap .tf-submit { width: 100%; }
}

.tf-wrap .screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}