/* Site search: the results page (/search) and the header search panel.
   Every rule is scoped to .site-search… classes so the rest of the site is untouched.
   Colours follow the site: blue #0B4388 for headings and links, red #B51339 for accents. */

/* ------------------------------------------------------------------ Results page */
.site-search-page {
	padding-top: 10px;
}

.site-search-form {
	display: flex;
	gap: 10px;
	max-width: 760px;
	margin: 0 auto 18px;
}

	.site-search-form input {
		flex: 1;
		min-width: 0;
		height: 54px;
		padding: 0 18px;
		border: 1px solid #d9dde5;
		border-radius: 8px;
		background: #fff;
		color: #1d1d1d;
		font-size: 17px;
		box-shadow: 0 8px 16px rgba(0, 0, 0, .06);
		transition: border-color .15s ease, box-shadow .15s ease;
	}

		.site-search-form input:focus {
			outline: none;
			border-color: #0B4388;
			box-shadow: 0 0 0 3px rgba(11, 67, 136, .18);
		}

	.site-search-form button {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		height: 54px;
		padding: 0 24px;
		border: 0;
		border-radius: 8px;
		background: #B51339;
		color: #fff;
		font-size: 16px;
		font-weight: 600;
		transition: background-color .15s ease;
	}

		.site-search-form button:hover,
		.site-search-form button:focus-visible {
			background: #930f2e;
		}

.site-search-lead,
.site-search-count {
	margin: 6px 0 18px;
	color: #555;
	font-size: 15px;
	text-align: center;
}

	.site-search-count strong {
		color: #0B4388;
	}

.site-search-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0 0 30px;
}

.site-search-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 16px;
	border: 1px solid #d9dde5;
	border-radius: 999px;
	background: #fff;
	color: #0B4388;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

	.site-search-chip span {
		color: #858585;
		font-weight: 500;
	}

	.site-search-chip:hover {
		border-color: #0B4388;
		color: #0B4388;
		text-decoration: none;
	}

	.site-search-chip[aria-current="page"] {
		border-color: #0B4388;
		background: #0B4388;
		color: #fff;
	}

		.site-search-chip[aria-current="page"] span {
			color: rgba(255, 255, 255, .8);
		}

.site-search-results {
	display: grid;
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* The press-style cards lift slightly instead of growing, because result cards are wide. */
.site-search-result.single-blog:hover {
	transform: translateY(-2px);
}

.site-search-result .post-meta {
	padding: 20px 24px;
}

.site-search-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	margin-bottom: 8px;
	color: #858585;
	font-size: 13px;
}

.site-search-badge {
	padding: 2px 10px;
	border-radius: 4px;
	background: #B51339;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .02em;
}

/* The theme spaces cards with a bottom margin; the list's gap does that here. */
.site-search-results .single-blog {
	margin-bottom: 0;
}

.site-search-result .post-meta .title {
	margin-bottom: 8px;
}

	/* More specific than the press card rule (.post-meta .title a), which greys titles. */
	.site-search-result .post-meta .title a {
		color: #0B4388;
		font-size: 20px;
	}

		.site-search-result .post-meta .title a .fa {
			font-size: 14px;
			color: #858585;
		}

.site-search-result p {
	margin: 0;
	color: #555;
	line-height: 1.7;
}

.site-search-page mark,
.site-search mark {
	padding: 0 2px;
	border-radius: 3px;
	background: rgba(181, 19, 57, .12);
	color: inherit;
}

.site-search-empty {
	padding: 30px 10px 10px;
	text-align: center;
}

	.site-search-empty h5 {
		margin-bottom: 8px;
		color: #0B4388;
		font-weight: 700;
	}

.site-search-popular {
	margin-top: 22px;
	text-align: center;
}

	.site-search-popular h6 {
		margin-bottom: 12px;
		color: #0B4388;
		font-weight: 700;
	}

	.site-search-popular ul {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 10px;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.site-search-popular a {
		display: inline-block;
		padding: 8px 16px;
		font-size: 14px;
		border-radius: 999px;
		background: #f4f6fb;
		color: #0B4388;
		font-weight: 600;
		transition: background-color .15s ease, color .15s ease;
	}

		.site-search-popular a:hover {
			background: #0B4388;
			color: #fff;
			text-decoration: none;
		}

.site-search-page .theme-pagination {
	margin-top: 30px;
}

@media (max-width: 575px) {
	.site-search-form button {
		padding: 0 18px;
	}

		.site-search-form button span {
			display: none;
		}

	.site-search-result .post-meta {
		padding: 16px;
	}

	.site-search-result .post-meta .title a {
		font-size: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.site-search-result.single-blog,
	.site-search-chip,
	.site-search-form input,
	.site-search-form button {
		transition: none;
	}

		.site-search-result.single-blog:hover {
			transform: none;
		}
}

/* ------------------------------------------------------------------ Header search panel */
.site-search {
	position: fixed;
	inset: 0;
	z-index: 10000;
	padding: 90px 16px 16px;
}

.site-search-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .7);
	animation: site-search-fade .15s ease-out;
}

.site-search-dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	max-width: 720px;
	max-height: 100%;
	margin: 0 auto;
	overflow: hidden;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	animation: site-search-drop .18s ease-out;
}

.site-search-bar {
	display: flex;
	flex: none;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 0 8px 0 20px;
	border-bottom: 1px solid #eceef3;
}

	.site-search-bar > .fa {
		color: #0B4388;
		font-size: 18px;
	}

	.site-search-bar input {
		flex: 1;
		min-width: 0;
		height: 62px;
		padding: 0;
		border: 0;
		background: transparent;
		color: #1d1d1d;
		font-size: 18px;
	}

		.site-search-bar input:focus {
			outline: none;
		}

		.site-search-bar input::-webkit-search-cancel-button {
			display: none;
		}

.site-search-close {
	display: grid;
	flex: none;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #858585;
	font-size: 30px;
	line-height: 1;
}

	.site-search-close:hover,
	.site-search-close:focus-visible {
		background: #f4f6fb;
		color: #B51339;
	}

.site-search-dialog:focus-within .site-search-bar {
	border-bottom-color: #0B4388;
}

.site-search-suggestions {
	overflow-y: auto;
	padding: 6px 0;
}

.site-search-group + .site-search-group {
	border-top: 1px solid #f0f1f5;
}

.site-search-group-heading {
	padding: 10px 20px 4px;
	color: #B51339;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.site-search-option-link {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 10px;
	padding: 9px 20px;
	color: #1d1d1d;
	text-decoration: none;
}

	.site-search-option-link:hover,
	.site-search-option-link:focus {
		color: #1d1d1d;
		text-decoration: none;
	}

.site-search-option[aria-selected="true"] .site-search-option-link {
	background: #f4f6fb;
	box-shadow: inset 3px 0 0 #0B4388;
}

.site-search-option-title {
	flex: 1 1 60%;
	min-width: 0;
	color: #0B4388;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
}

.site-search-option-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0 8px;
	color: #858585;
	font-size: 13px;
}

.site-search-option-label {
	font-weight: 600;
}

.site-search-option-link > .fa {
	color: #858585;
	font-size: 13px;
}

.site-search-all {
	border-top: 1px solid #eceef3;
	color: #B51339;
	font-size: 15px;
	font-weight: 600;
}

	.site-search-all:hover,
	.site-search-all:focus {
		color: #B51339;
	}

	.site-search-all .fa {
		margin-left: 4px;
		font-size: 13px;
	}

.site-search-group ~ .site-search-option .site-search-all {
	margin-top: 6px;
}

.site-search-none {
	margin: 0;
	padding: 14px 20px 4px;
	color: #555;
	font-size: 15px;
}

@keyframes site-search-fade {
	from { opacity: 0; }
}

@keyframes site-search-drop {
	from { opacity: 0; transform: translateY(-8px); }
}

/* The chat widget sits above everything; hide it while the panel is open so it cannot cover suggestions. */
.site-search-open .zsiq_theme1 {
	visibility: hidden;
}

/* Phones: the theme hides the header magnifier below 576px; show it beside the menu button instead. */
@media (max-width: 575px) {
	.header-two #search_icon {
		display: grid;
		position: absolute;
		top: 12px;
		left: 56px;
		z-index: 1000;
		place-items: center;
		width: 40px;
		height: 40px;
		padding: 0;
		border: 0;
	}

	.site-search {
		padding: 12px;
	}

	.site-search-bar {
		padding-left: 16px;
	}

		.site-search-bar input {
			height: 56px;
			font-size: 16px;
		}

	.site-search-option-link {
		padding: 10px 16px;
	}

	.site-search-group-heading {
		padding-left: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.site-search-backdrop,
	.site-search-dialog {
		animation: none;
	}
}

/* ------------------------------------------------------------------ Blog sidebar link to the whole-site search */
.site-search-sidebar-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 12px;
	color: #B51339;
	font-size: 14px;
	font-weight: 600;
}

	.site-search-sidebar-link:hover,
	.site-search-sidebar-link:focus {
		color: #0B4388;
		text-decoration: none;
	}
