/**
 * Estilos de los resultados del buscador.
 *
 * Deliberadamente sobrios: heredan tipografía y color del tema para
 * no pelearse con los estilos globales de Bricks. Todo se puede
 * sobrescribir desde el CSS del tema o desde Bricks.
 */

.abm-results {
	--abm-gap: 1.75rem;
	--abm-muted: color-mix(in srgb, currentColor 60%, transparent);
	--abm-rule: color-mix(in srgb, currentColor 15%, transparent);
	margin-block-start: var(--abm-gap);
}

.abm-summary {
	margin: 0 0 var(--abm-gap);
	color: var(--abm-muted);
}

.abm-hint {
	margin: 0;
	color: var(--abm-muted);
}

.abm-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--abm-gap);
}

.abm-item {
	padding-block-end: var(--abm-gap);
	border-block-end: 1px solid var(--abm-rule);
}

.abm-item:last-child {
	border-block-end: 0;
	padding-block-end: 0;
}

.abm-badge {
	display: inline-block;
	margin-block-end: 0.4em;
	padding: 0.15em 0.6em;
	border: 1px solid var(--abm-rule);
	border-radius: 999px;
	font-size: 0.75em;
	line-height: 1.6;
	letter-spacing: 0.02em;
	color: var(--abm-muted);
}

.abm-item__title {
	margin: 0 0 0.3em;
	font-size: 1.25em;
	line-height: 1.25;
}

.abm-item__title a {
	color: inherit;
	text-decoration: none;
	text-underline-offset: 0.18em;
}

.abm-item__title a:hover,
.abm-item__title a:focus-visible {
	text-decoration: underline;
}

.abm-item__excerpt {
	margin: 0 0 0.4em;
}

.abm-item__url {
	margin: 0;
	font-size: 0.85em;
	color: var(--abm-muted);
	word-break: break-word;
}

.abm-mark {
	background: color-mix(in srgb, currentColor 12%, transparent);
	color: inherit;
	padding: 0 0.12em;
	border-radius: 2px;
}

.abm-note {
	margin-block-start: var(--abm-gap);
	font-size: 0.9em;
	color: var(--abm-muted);
}

.abm-pagination {
	margin-block-start: var(--abm-gap);
}

.abm-pagination ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4em;
	margin: 0;
	padding: 0;
}

.abm-page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.4em;
	padding: 0.35em 0.6em;
	border: 1px solid var(--abm-rule);
	border-radius: 4px;
	color: inherit;
	text-decoration: none;
	line-height: 1;
}

.abm-page:hover,
.abm-page:focus-visible {
	border-color: currentColor;
}

.abm-page--current {
	border-color: currentColor;
	font-weight: 600;
}
