/**
 * News filter bar.
 *
 * Sits directly above the news Query Loop inside .aa-news-grid, so it reuses
 * the same card vocabulary as the article grid: white surface, hairline border,
 * blue accent on focus.
 */

.aa-news-filters {
	margin-bottom: 2.25rem;
}

.aa-news-filters__form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
}

.aa-news-filters__field {
	display: flex;
	min-width: 0;
}

.aa-news-filters__field--keyword {
	flex: 1 1 min(340px, 100%);
}

.aa-news-filters__input,
.aa-news-filters__select {
	width: 100%;
	padding: 0.7rem 0.95rem;
	font-family: inherit;
	font-size: 0.95rem;
	color: #06142e;
	background: #fff;
	border: 1px solid #d9e2f0;
	border-radius: 6px;
	transition: border-color 160ms ease, box-shadow 160ms ease;
	appearance: none;
}

.aa-news-filters__select {
	min-width: 9.5rem;
	padding-right: 2.4rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%2360708b' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4Z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.9rem center;
	background-size: 10px 7px;
	cursor: pointer;
}

.aa-news-filters__input::placeholder {
	color: #8a99b0;
}

.aa-news-filters__input:focus,
.aa-news-filters__select:focus {
	border-color: #278cff;
	outline: none;
	box-shadow: 0 0 0 3px rgba(39, 140, 255, 0.18);
}

.aa-news-filters__input:focus-visible,
.aa-news-filters__select:focus-visible {
	outline: 2px solid transparent;
}

.aa-news-filters__submit {
	padding: 0.72rem 1.5rem;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	color: #fff;
	background: #1878e9;
	border: 1px solid #1878e9;
	border-radius: 6px;
	cursor: pointer;
	transition: background-color 160ms ease, border-color 160ms ease;
}

.aa-news-filters__submit:hover,
.aa-news-filters__submit:focus-visible {
	background: #0f65cc;
	border-color: #0f65cc;
}

.aa-news-filters__submit:focus-visible {
	outline: 2px solid #278cff;
	outline-offset: 2px;
}

.aa-news-filters__clear {
	font-size: 0.9rem;
	color: #60708b;
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.aa-news-filters__clear:hover,
.aa-news-filters__clear:focus-visible {
	color: #1878e9;
}

.aa-news-filters__summary {
	margin: 1rem 0 0;
	font-size: 0.92rem;
	color: #60708b;
}

.aa-news-filters__summary strong {
	color: #06142e;
}

@media (max-width: 600px) {
	.aa-news-filters__form {
		gap: 0.6rem;
	}

	.aa-news-filters__field--keyword,
	.aa-news-filters__field--year {
		flex: 1 1 100%;
	}

	.aa-news-filters__submit {
		flex: 1 1 auto;
	}
}
