/* ============================================================================
   Site search (search.php). Reuses the Noticias listing shell — .noticias-page
   band, .noticias two-column grid, intro and pill field — and adds the result
   list. Query/ranking: inc/search.php.
   ========================================================================== */

/* The shared pill input drops its outline; keep focus visible on the pill. */
.search-page .noticias__field:focus-within {
	outline: 3px solid var(--bida-green);
	outline-offset: 2px;
}
.search-page .noticias__lead { overflow-wrap: anywhere; }

.search-page__hint {
	margin: 0;
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	color: var(--neutral-700);
	overflow-wrap: anywhere;
}

.search-results {
	list-style: none;
	margin: 0;
	padding: 0;
}
.search-result {
	padding-block: var(--space-6);
	border-bottom: 1px solid var(--neutral-100);
}
.search-result:first-child { padding-top: 0; }

.search-result__context {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-1) var(--space-3);
	margin: 0 0 var(--space-2);
	font-size: var(--fs-body-s);
	line-height: var(--lh-body-s);
	color: var(--neutral-700);
}
.search-result__type {
	padding: 0 var(--space-3);
	border-radius: var(--radius-pill);
	background: var(--bida-grey);
	color: var(--bida-blue);
	font-weight: var(--fw-medium);
}

.search-result__title {
	margin: 0;
	font-size: var(--fs-sub1);
	line-height: var(--lh-sub1);
	font-weight: var(--fw-medium);
}
.search-result__title a {
	color: var(--bida-blue);
	text-decoration: none;
	overflow-wrap: anywhere;
}
.search-result__title a:hover { text-decoration: underline; text-underline-offset: 3px; }

.search-result__snippet {
	margin: var(--space-2) 0 0;
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	color: var(--neutral-700);
}

/* Keyword hits with no page in the current language (e.g. EDIT on /eu/). */
.search-results__other-title {
	margin: 0 0 var(--space-4);
	font-size: var(--fs-sub2);
	line-height: var(--lh-sub2);
	font-weight: var(--fw-medium);
	color: var(--bida-blue);
}
