/* Header — Search component
 *
 * In the desktop row, this is the central element that grows to fill the
 * available space between the logo and the actions cluster.
 */

.bollaert-search {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: stretch;
	position: relative;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	box-shadow: var(--wp--preset--shadow--subtle);
	padding: 4px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bollaert-search:hover {
	border-color: var(--wp--preset--color--brand);
}

.bollaert-search:focus-within {
	border-color: var(--wp--preset--color--brand);
	box-shadow: 0 0 0 3px rgba(51, 153, 204, 0.15);
}

.bollaert-search input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 44px;
	border: 0;
	background: transparent;
	padding: 0 0.5em 0 1.2em;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--md);
	color: var(--wp--preset--color--text);
	border-radius: 999px;
}

.bollaert-search input[type="search"]:focus {
	outline: none;
}

.bollaert-search input[type="search"]::placeholder {
	color: var(--wp--preset--color--muted);
}

/* Solid brand submit pill, inset on the right */
.bollaert-search__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45em;
	flex-shrink: 0;
	background: var(--wp--preset--color--brand);
	border: 0;
	color: var(--wp--preset--color--white);
	cursor: pointer;
	padding: 0 1.3em;
	border-radius: 999px;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 600;
	line-height: 1;
	transition: background-color 0.15s ease;
}

.bollaert-search__submit:hover,
.bollaert-search__submit:focus-visible {
	background: var(--wp--preset--color--brand-dark);
	outline: none;
}

.bollaert-search__icon {
	display: block;
	flex-shrink: 0;
}

.bollaert-search__submit-label {
	white-space: nowrap;
}

/* Compact submit (icon only) when the bar gets narrow */
@media (max-width: 600px) {
	.bollaert-search__submit {
		padding: 0 0.9em;
	}
	.bollaert-search__submit-label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
}
