/* Header search: fixed slide-down drawer */

.header-search[hidden] {
	display: none;
}

.header-search {
	position: fixed;
	/* overlap by 1px to avoid a visible seam under the header border */
	top: calc(var(--morelo-header-h) - 1px);
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9990;
	border-top: 0;
	background: transparent;
	pointer-events: none;
	opacity: 0;
	transition: opacity 220ms ease;
}

body.is-search-open .header-search {
	pointer-events: auto;
	opacity: 1;
}

.header-search-inner {
	/* container row under the header; box is aligned to the right inside it */
	position: relative;
	padding-top: 14px;
	display: flex;
	justify-content: flex-end;
}

.header-search-box {
	width: min(560px, calc(100vw - 40px));
	background: rgba(0, 0, 0, 0.92);
	border: 1px solid rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(10px);
	transform: translateY(-18px);
	transition: transform 260ms ease;
	padding: 16px 18px;
	border-radius: 18px;
	box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
	display: flex;
	align-items: center;
	gap: 12px;
}

body.is-search-open .header-search-box {
	transform: translateY(0);
}

/* Slightly larger input for the drawer */
.header-search-form {
	flex: 1;
}

.header-search-form form {
	display: flex;
	align-items: center;
	gap: 14px;
}

.header-search-form input[type="search"],
.header-search-form .search-field {
	flex: 1;
	min-height: 52px;
	padding: 10px 4px 10px 0;
	border: 0;
	border-bottom: 2px solid rgba(255, 255, 255, 0.85);
	border-radius: 0;
	background: transparent;
	color: #fff;
	outline: none;
}

.header-search-form input[type="search"]::placeholder,
.header-search-form .search-field::placeholder {
	color: rgba(255, 255, 255, 0.68);
}

/* Submit button styled like header utilities */
.header-search-form .search-submit {
	width: 44px;
	height: 44px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.04);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.header-search-form .search-submit:hover {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.22);
}

/* Intentionally no header/logo changes when search opens */

