/* Themed site-search component (.bpt-search) and its template placements. */

.bpt-search {
	display: flex;
	flex-wrap: nowrap;
	gap: var(--bpt-space-sm);
	align-items: stretch;
	width: 100%;
}

.bpt-search__input {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 2.75rem;
	padding: var(--bpt-space-sm) var(--bpt-space-md);
	color: var(--section-fg);
	background: var(--section-card-bg, var(--section-bg));
	border: var(--bpt-border-thin) solid var(--section-border);
	border-radius: var(--bpt-btn-radius, var(--bpt-radius-sm));
	transition: border-color var(--bpt-duration-fast) var(--bpt-ease-standard);
}

.bpt-search__input::placeholder {
	color: var(--section-fg-muted);
	opacity: 1;
}

.bpt-search__input:focus-visible {
	border-color: var(--section-accent);
}

.bpt-search__submit {
	flex: 0 0 auto;
}

/* Placement: box centred under an archive/search header. */
.bpt-archive-header__search {
	max-width: 32rem;
	margin-top: var(--bpt-space-lg);
	margin-inline: auto;
	text-align: left;
}

/* Result-count line under the search H1. */
.bpt-search-count {
	margin-top: var(--bpt-space-xs);
	color: var(--section-fg-muted);
	font-size: var(--bpt-text-sm);
}
