/**
 * Arquivo Projetos: botão «Mais filtros» só no mobile.
 * Desktop (≥768px) inalterado. Não reverte o contraste C1 dos labels.
 */

body.post-type-archive-projeto .projetos-mais-filtros {
	display: none;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	margin: 0;
	padding: 8px 16px;
	border: 1px solid var(--projeto-cyan, #00a5cf);
	border-radius: var(--projeto-radius, 6px);
	background: var(--projeto-white, #ffffff);
	color: var(--projeto-teal, #003b4a);
	font-family: Inter, sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	box-shadow: none;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

body.post-type-archive-projeto .projetos-mais-filtros::after {
	content: "";
	display: inline-block;
	width: 0.42em;
	height: 0.42em;
	margin-inline-start: 8px;
	margin-block-start: -3px;
	border-inline-end: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
}

body.post-type-archive-projeto .projetos-mais-filtros:hover,
body.post-type-archive-projeto .projetos-mais-filtros:focus-visible {
	border-color: #00a5cf;
	background: var(--projeto-white, #ffffff);
	color: var(--projeto-teal, #003b4a);
	outline: none;
}

body.post-type-archive-projeto .projetos-mais-filtros:focus-visible {
	box-shadow: 0 0 0 2px var(--projeto-ice, #d5e7ec);
}

body.post-type-archive-projeto .projetos-mais-filtros[aria-expanded="true"],
body.post-type-archive-projeto .projetos-mais-filtros.is-open {
	background: #236373;
	border-color: #236373;
	color: #ffffff;
}

body.post-type-archive-projeto .projetos-mais-filtros[aria-expanded="true"]::after,
body.post-type-archive-projeto .projetos-mais-filtros.is-open::after {
	transform: rotate(225deg);
	margin-block-start: 3px;
}

/* C3: Região só em PT, mesmo se o markup ainda a tiver noutra língua. */
html:not([lang^="pt"]) .projetos-filters__secondary .projetos-select:has([name="regiao"]) {
	display: none;
}

@media (max-width: 767px) {
	body.post-type-archive-projeto .projetos-mais-filtros {
		display: inline-flex;
	}

	body.post-type-archive-projeto .projetos-filters__secondary {
		display: none;
	}

	body.post-type-archive-projeto .projetos-filters__secondary.is-open {
		display: flex;
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: stretch;
	}
}

@media (min-width: 768px) {
	body.post-type-archive-projeto .projetos-mais-filtros {
		display: none !important;
	}

	body.post-type-archive-projeto .projetos-filters__secondary,
	body.post-type-archive-projeto .projetos-filters__secondary.is-open {
		display: flex;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.post-type-archive-projeto .projetos-mais-filtros::after {
		transition: none;
	}
}
