/*
 * Team filter
 * ==================================================
 * Centered row of team buttons above the team grid on the Team page.
 */

.gw-team-heading {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
}

.gw-team-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

.gw-team-filter__button {
	margin: 0;
	padding: 12px 24px;
	border: 1px solid var(--primary, #BD8565);
	border-radius: 999px;
	background: transparent;
	color: var(--white, #ffffff);
	font: inherit;
	font-family: var(--primary-font, sans-serif);
	font-size: 1.125rem;
	font-weight: 300;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.gw-team-filter__button:hover {
	border-color: var(--white, #ffffff);
	background: var(--white, #ffffff);
	color: var(--dark, #000000);
}

.gw-team-filter__button[aria-pressed="true"] {
	border-color: var(--primary, #BD8565);
	background: var(--primary, #BD8565);
	color: var(--dark, #000000);
	cursor: default;
}

.gw-team-filter__button:focus-visible {
	outline: 2px solid var(--secondary, #8CD1CB);
	outline-offset: 3px;
}

.gw-team-filter__empty {
	margin: 0;
	color: rgba(255, 255, 255, 0.7);
}

/* Visually hidden, still read by screen readers. */
.gw-team-filter__status {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

@media (prefers-reduced-motion: no-preference) {
	@keyframes gw-team-filter-reveal {
		from {
			opacity: 0;
			translate: 0 10px;
		}
	}

	.gw-team-filter__reveal {
		animation: gw-team-filter-reveal 0.4s cubic-bezier(0.16, 1, 0.3, 1) backwards;
	}
}

@media only screen and (max-width: 639px) {
	.gw-team-filter {
		gap: 8px;
	}

	.gw-team-filter__button {
		padding: 10px 18px;
		font-size: 1rem;
	}
}
