/* Site search modal + blue-bar trigger */

.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;
}

.ats-search-trigger {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0;
	padding: 0.2rem 0.15rem;
	border: 0;
	background: transparent;
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	text-decoration: none;
	transition: color 0.15s ease, opacity 0.15s ease;
}

.ats-search-trigger:hover,
.ats-search-trigger:focus-visible {
	color: #fff;
	opacity: 0.85;
	outline: none;
}

.ats-search-trigger:focus-visible {
	outline: 2px solid #987e2e;
	outline-offset: 3px;
	border-radius: 2px;
}

.ats-search-trigger__icon {
	display: block;
	flex-shrink: 0;
}

.ats-search[hidden] {
	display: none !important;
}

.ats-search {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 12vh 1.25rem 2rem;
	box-sizing: border-box;
}

.ats-search__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 64, 92, 0.72);
	backdrop-filter: blur(2px);
}

.ats-search__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 40rem;
	padding: 1.75rem 1.5rem 1.5rem;
	border-radius: 0.75rem;
	background: #fff;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
	animation: ats-search-in 0.18s ease-out;
}

@keyframes ats-search-in {
	from {
		opacity: 0;
		transform: translateY(-10px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.ats-search__close {
	position: absolute;
	top: 0.65rem;
	right: 0.75rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #0a405c;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

.ats-search__close:hover,
.ats-search__close:focus-visible {
	background: rgba(10, 64, 92, 0.08);
	outline: none;
}

.ats-search__title {
	margin: 0 2rem 1rem 0;
	font-family: ssonder, Georgia, serif;
	font-size: 1.5rem;
	font-weight: 900;
	line-height: 1.15;
	color: #987e2e;
}

.ats-search__form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.65rem;
	align-items: stretch;
}

.ats-search__input {
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 0.85rem 1rem;
	border: 2px solid rgba(10, 64, 92, 0.2);
	border-radius: 0.5rem;
	background: #fff;
	color: #0a405c;
	font-family: inherit;
	font-size: 1.05rem;
	line-height: 1.3;
	outline: none;
	transition: border-color 0.15s ease;
}

.ats-search__input:focus {
	border-color: #987e2e;
}

.ats-search__submit {
	margin: 0;
	padding: 0.85rem 1.25rem;
	border: 0;
	border-radius: 0.5rem;
	background: #987e2e;
	color: #fff;
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.ats-search__submit:hover,
.ats-search__submit:focus-visible {
	background: #0a405c;
	outline: none;
}

body.ats-search-open {
	overflow: hidden;
}

@media (max-width: 520px) {
	.ats-search {
		padding-top: 18vh;
	}

	.ats-search__form {
		grid-template-columns: 1fr;
	}

	.ats-search__submit {
		width: 100%;
	}
}

/* Legacy subnav mobile toggle (kept here historically) */
button.subnav-btn {
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background-color: #fff;
	padding: 12px 16px;
	border: none;
	border-bottom: 3px solid #987e2e;
	border-radius: 0;
	color: #132632;
	width: 100%;
	height: auto;
	min-height: 0;
	outline: none;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-align: left;
	line-height: 1.2;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
button.subnav-btn:hover,
button.subnav-btn:focus-visible {
	background-color: #f7f7f7;
}
button.subnav-btn:focus-visible {
	outline: 2px solid #987e2e;
	outline-offset: 2px;
}
button.subnav-btn,
button.subnav-btn .subnav-btn__label {
	color: #132632 !important;
}
.subnav-btn__label {
	flex: 1;
	display: inline !important;
	padding: 0 !important;
	border: 0 !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	text-transform: inherit !important;
	line-height: 1.2;
}
.subnav-btn__chevron {
	display: block !important;
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	padding: 0 !important;
	border: 0 !important;
	margin: 0 !important;
	color: #132632;
	transition: transform 0.2s ease;
}
button.subnav-btn.is-open .subnav-btn__chevron {
	transform: rotate(180deg);
}

.page-mobile-header-title {
	display: none;
}
