/*--------------------------------------------------------------
 Multi WordPress Search – public stylesheet
--------------------------------------------------------------*/

/* Search form wrapper */
.mws-search-form {
	position: relative;
	width: 100%;
	max-width: 640px;
	margin: 0 auto;
}

/* Inner flex container */
.mws-search-form__inner {
	display: flex;
	align-items: stretch;
	border: 1px solid #d1d1d1;
	border-radius: 4px;
	overflow: hidden;
	background: #fff;
}

/* Text input */
.mws-search-form__input {
	flex: 1 1 auto;
	padding: 0.6em 0.8em;
	font-size: 1em;
	border: none;
	outline: none;
	min-width: 0;
}

/* Submit icon (inline SVG) */
.mws-search-form__submit-icon {
	display: inline-block;
	vertical-align: middle;
	width: 1.1em;
	height: 1.1em;
}

/* Submit button */
.mws-search-form__submit {
	flex: 0 0 auto;
	padding: 0.6em 1em;
	background: #0073aa;
	color: #fff;
	border: none;
	cursor: pointer;
	font-size: 1em;
	transition: background 0.2s;
}

.mws-search-form__submit:hover,
.mws-search-form__submit:focus {
	background: #005a87;
}

/* Live-results dropdown */
.mws-live-results {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #d1d1d1;
	border-top: none;
	border-radius: 0 0 4px 4px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	z-index: 9999;
	max-height: 400px;
	overflow-y: auto;
}

.mws-live-results[hidden] {
	display: none;
}

/* Individual live result */
.mws-result-item {
	padding: 0.7em 1em;
	border-bottom: 1px solid #f0f0f0;
}

.mws-result-item:last-child {
	border-bottom: none;
}

.mws-result-item a {
	display: inline;
	text-decoration: none;
	color: #0073aa;
	font-weight: 600;
}

.mws-result-item a:hover {
	text-decoration: underline;
}

.mws-result-item__excerpt {
	margin: 0.25em 0 0;
	font-size: 0.875em;
	color: #555;
}

.mws-result-item__meta {
	margin: 0.2em 0 0;
	font-size: 0.75em;
	color: #888;
}

/* Loading indicator */
.mws-live-results--loading {
	padding: 0.8em 1em;
	color: #555;
	font-style: italic;
}

/* No-results message */
.mws-live-results--empty {
	padding: 0.8em 1em;
	color: #888;
}

/* Full-page results */
.mws-results-page {
	max-width: 760px;
	margin: 2em auto;
	padding: 0 1em;
}

.mws-results-page h2 {
	font-size: 1.4em;
	margin-bottom: 1em;
}

.mws-results-page .mws-result-item {
	padding: 1em 0;
	border-bottom: 1px solid #e8e8e8;
}

/* Screen-reader-only utility (mirrors WordPress's sr-only pattern) */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
