/* CW Full-Text Search front-end styles. */

.cwfts-search-form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	align-items: center;
	margin-bottom: 1.5em;
}

.cwfts-search-form input[type='search'] {
	flex: 1 1 12em;
	min-width: 8em;
}

/* Keep the scope limiter and the Search button the same height and metrics
   so they line up as a matched pair. */
.cwfts-search-form input[type='search'],
.cwfts-search-form select,
.cwfts-search-form .cwfts-search-submit {
	box-sizing: border-box;
	height: 2.75em;
	padding: 0 0.75em;
	font-size: 1em;
	line-height: normal;
	border: 1px solid rgba(0, 0, 0, 0.25);
	border-radius: 4px;
}

.cwfts-search-form .cwfts-search-submit {
	cursor: pointer;
}

.cwfts-results .cwfts-summary {
	font-style: italic;
	margin-bottom: 1em;
}

.cwfts-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cwfts-item {
	margin: 0 0 1.75em;
	padding-bottom: 1.25em;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cwfts-item-title {
	margin: 0 0 0.25em;
	font-size: 1.15em;
}

.cwfts-item-meta {
	margin: 0 0 0.4em;
	font-size: 0.8em;
	display: flex;
	gap: 0.75em;
	align-items: center;
}

.cwfts-type {
	text-transform: uppercase;
	letter-spacing: 0.05em;
	background: rgba(0, 0, 0, 0.06);
	border-radius: 3px;
	padding: 0.15em 0.5em;
}

.cwfts-score {
	opacity: 0.7;
}

.cwfts-item-excerpt {
	margin: 0;
}

.cwfts-results mark {
	background: #fff3a3;
	padding: 0 0.1em;
	border-radius: 2px;
}

/* Pagination mirrors core's posts-pagination markup (nav.pagination >
   .nav-links with inline .page-numbers links). */
.cwfts-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4em;
	align-items: center;
	margin-top: 1.5em;
}

/* Every control — the numbers and the Previous/Next arrows — shares the
   surrounding text's color and a transparent background, matching the "…"
   gap indicator. Marked important so a theme's own pagination styling can't
   box or embolden some controls and not others. */
.cwfts-pagination .nav-links .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 2.4em;
	min-height: 2.4em;
	padding: 0.35em 0.6em;
	background: none !important;
	color: inherit !important;
	font-weight: 400 !important;
	line-height: 1;
	text-decoration: none;
}

.cwfts-pagination .nav-links a.page-numbers:hover,
.cwfts-pagination .nav-links a.page-numbers:focus {
	text-decoration: none !important;
}

/* The gap ellipsis is narrower than the controls. */
.cwfts-pagination .nav-links .page-numbers.dots {
	min-width: 0;
	min-height: 0;
	padding: 0 0.2em;
}

/* Make the current page stand out with weight alone (no underline). */
.cwfts-pagination .nav-links .page-numbers.current {
	font-weight: 700 !important;
}
