/**
 * Onsite Search
 */

body.search {
	--shm-bg:            #101921;
	--shm-panel:         #17242F;
	--shm-field:         #17242F;
	--shm-brand:         #2D4D5A;
	--shm-brand-hover:   #3A6273;

	--shm-text:          #FFFFFF;
	--shm-text-muted:    #818A94;
	--shm-text-dim:      #818A94;

	--shm-border:        rgba(185, 196, 200, 0.2);
	--shm-border-soft:   rgba(255, 255, 255, 0.25);
	--shm-badge-bg:      #17242F;

	--shm-font:          'Brandon Text', 'Helvetica Neue', Arial, sans-serif;
	--shm-title-size:    48px;

	--shm-gap:           80px;
	--shm-aside:         305px;
	--shm-radius:        8px;
	--shm-radius-badge:  4px;

	--shm-pad-top:       208px;
	--shm-pad-bottom:    80px;

	--shm-contact-min:   502px;

	--shm-page-size:       36px;
	--shm-page-arrow:      36px;
	--shm-page-icon:       16px;
	--shm-page-current:    #EDEDEA;
	--shm-page-current-fg: #2D4D5A;
	--shm-page-arrow-bg:   #2D4D5A;

	--shm-contact-media:  557px;
	--shm-contact-ratio:  557 / 371.33;
	--shm-contact-radius: 8px;

	background-color: var(--shm-bg);
}

.shm-search {
	background-color: var(--shm-bg);
	color: var(--shm-text);
	font-family: var(--shm-font);
	padding: var(--shm-pad-top) 0 var(--shm-pad-bottom);
	position: relative;
}

body.search .space-after {
	background-color: var(--shm-bg);
}

.shm-search--contact .shm-search__contact {
	margin: 0;
}

.shm-search--contact .shm-search__contact-layout {
	min-height: var(--shm-contact-min);
}

.shm-search *,
.shm-search *::before,
.shm-search *::after {
	box-sizing: border-box;
}

/* ---------------------------------------------------------------------------
   Layout
   --------------------------------------------------------------------------- */

.shm-search__layout {
	align-items: start;
	display: grid;
	gap: 0 var(--shm-gap);
	grid-template-columns: var(--shm-aside) minmax(0, 1fr);
}

.shm-search__aside {
	position: sticky;
	top: 120px;
}

.shm-search__main {
	min-width: 0;
}

.shm-search h1.shm-search__title {
	color: var(--shm-text);
	font-size: var(--shm-title-size);
	font-weight: 300;
	letter-spacing: -1px;
	line-height: 1.21;
	margin: 0 0 56px;
	min-height: 164px;
}

/* ---------------------------------------------------------------------------
   Search panel
   --------------------------------------------------------------------------- */

.shm-search__panel {
	background-color: var(--shm-panel);
	border-radius: var(--shm-radius);
	padding: 40px;
}

.shm-search__form {
	align-items: stretch;
	display: flex;
	gap: 12px;
}

.shm-search__field {
	flex: 1 1 auto;
	min-width: 0;
	position: relative;
}

.shm-search__field::before {
	background-color: currentColor;
	color: #fff;
	content: '';
	height: 16px;
	left: 16px;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M13.0667 14L8.86667 9.8C8.53333 10.0667 8.15 10.2778 7.71667 10.4333C7.28333 10.5889 6.82222 10.6667 6.33333 10.6667C5.12222 10.6667 4.09722 10.2472 3.25833 9.40833C2.41944 8.56944 2 7.54444 2 6.33333C2 5.12222 2.41944 4.09722 3.25833 3.25833C4.09722 2.41944 5.12222 2 6.33333 2C7.54444 2 8.56944 2.41944 9.40833 3.25833C10.2472 4.09722 10.6667 5.12222 10.6667 6.33333C10.6667 6.82222 10.5889 7.28333 10.4333 7.71667C10.2778 8.15 10.0667 8.53333 9.8 8.86667L14 13.0667L13.0667 14ZM6.33333 9.33333C7.16667 9.33333 7.875 9.04167 8.45833 8.45833C9.04167 7.875 9.33333 7.16667 9.33333 6.33333C9.33333 5.5 9.04167 4.79167 8.45833 4.20833C7.875 3.625 7.16667 3.33333 6.33333 3.33333C5.5 3.33333 4.79167 3.625 4.20833 4.20833C3.625 4.79167 3.33333 5.5 3.33333 6.33333C3.33333 7.16667 3.625 7.875 4.20833 8.45833C4.79167 9.04167 5.5 9.33333 6.33333 9.33333Z'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M13.0667 14L8.86667 9.8C8.53333 10.0667 8.15 10.2778 7.71667 10.4333C7.28333 10.5889 6.82222 10.6667 6.33333 10.6667C5.12222 10.6667 4.09722 10.2472 3.25833 9.40833C2.41944 8.56944 2 7.54444 2 6.33333C2 5.12222 2.41944 4.09722 3.25833 3.25833C4.09722 2.41944 5.12222 2 6.33333 2C7.54444 2 8.56944 2.41944 9.40833 3.25833C10.2472 4.09722 10.6667 5.12222 10.6667 6.33333C10.6667 6.82222 10.5889 7.28333 10.4333 7.71667C10.2778 8.15 10.0667 8.53333 9.8 8.86667L14 13.0667L13.0667 14ZM6.33333 9.33333C7.16667 9.33333 7.875 9.04167 8.45833 8.45833C9.04167 7.875 9.33333 7.16667 9.33333 6.33333C9.33333 5.5 9.04167 4.79167 8.45833 4.20833C7.875 3.625 7.16667 3.33333 6.33333 3.33333C5.5 3.33333 4.79167 3.625 4.20833 4.20833C3.625 4.79167 3.33333 5.5 3.33333 6.33333C3.33333 7.16667 3.625 7.875 4.20833 8.45833C4.79167 9.04167 5.5 9.33333 6.33333 9.33333Z'/%3E%3C/svg%3E") no-repeat center / contain;
	pointer-events: none;
	position: absolute;
	top: 51%;
	transform: translateY(-50%);
	width: 16px;
}



.shm-search .shm-search__input {
	background-color: var(--shm-field);
	border: 2px solid var(--shm-border);
	border-radius: var(--shm-radius);
	color: var(--shm-text);
	font-family: var(--shm-font);
	font-size: 16px;
	height: 48px;
	line-height: 1.2;
	margin: 0;
	padding: 0 44px 0 42px;
	width: 100%;
}

.shm-search .shm-search__input::placeholder {
	color: var(--shm-text-dim);
	opacity: 1;
}

.shm-search .shm-search__input:focus {
	border-color: var(--shm-text-muted);
	outline: none;
}

.shm-search .shm-search__input::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
}

.shm-search .shm-search__form .shm-search__clear {
	background: none;
	border: 0;
	border-radius: 0;
	color: #fff;
	cursor: pointer;
	display: flex;
	height: 24px;
	padding: 5px;
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
}

.shm-search .shm-search__form .shm-search__clear:hover {
	background: none;
	color: var(--shm-text);
}

.shm-search__clear svg {
	height: 100%;
	width: 100%;
}

.shm-search .shm-search__form .shm-search__submit {
	background-color: var(--shm-brand);
	border: 1px solid var(--shm-brand);
	border-radius: var(--shm-radius);
	color: var(--shm-text);
	cursor: pointer;
	flex: 0 0 auto;
	font-family: var(--shm-font);
	font-size: 11px;
	font-weight: 900;
	height: 48px;
	letter-spacing: 0.55px;
	line-height: 1;
	margin: 0;
	padding: 0 34px;
	text-transform: uppercase;
	transition: background-color 0.2s ease;
	width: auto;
}

.shm-search .shm-search__form .shm-search__submit:hover,
.shm-search .shm-search__form .shm-search__submit:focus {
	background-color: var(--shm-brand-hover);
	border-color: var(--shm-brand-hover);
	color: var(--shm-text);
}

.shm-search__quick {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin: 24px 0 0;
}

.shm-search__quick-label {
	color: var(--shm-text-dim);
	font-size: 16px;
	line-height: 1.5;
}

.shm-search__quick-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.shm-search__quick-list li {
	margin: 0;
	padding: 0;
}

.shm-search__quick-list li::before {
	content: none;
}

.shm-search__quick-list a {
	color: var(--shm-text);
	font-size: 16px;
	line-height: 1.5;
	text-decoration: none;
	transition: color 0.2s ease;
}

.shm-search__quick-list a:hover {
	color: var(--shm-text);
	text-decoration: underline;
}

/* ---------------------------------------------------------------------------
   Filter rail
   --------------------------------------------------------------------------- */

.shm-search__filters-label {
	color: var(--shm-text-muted);
	display: block;
	font-size: 16px;
	line-height: 1.5;
	margin: 0 0 24px;
	padding-bottom:24px;
	border-bottom:solid 1px rgba(255, 255, 255, 0.25);
}

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

.shm-search__filters-list li {
	margin: 0 0 4px;
	padding: 0;
}

.shm-search__filters-list li::before {
	content: none;
}

.shm-search__filter {
	border-radius: var(--shm-radius);
	color: var(--shm-text);
	display: flex;
	font-size: 16px;
	gap: 8px;
	line-height: 30px;
	padding: 16px 24px;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.shm-search__filter:hover {
	color: var(--shm-text);
}

.shm-search__filter.is-active {
	background-color: var(--shm-panel);
	color: var(--shm-text);
}

.shm-search__filter-count {
	color: var(--shm-text-dim);
}

.shm-search__filter.is-active .shm-search__filter-count {
	color: var(--shm-text-muted);
}

.shm-search__filters-select {
	display: none;
}

/* ---------------------------------------------------------------------------
   Results
   --------------------------------------------------------------------------- */

.shm-search__count {
	/* Clears the overlaid header when AJAX scrolls back up to the results. */
	scroll-margin-top: 120px;
	border-bottom: 1px solid var(--shm-border-soft);
	color: var(--shm-text-muted);
	font-size: 16px;
	line-height: 1.5;
	margin: 48px 0 0;
	padding: 0 0 18px;
}

.shm-search__results {
	position: relative;
}

.shm-search__result {
	border-bottom: 1px solid var(--shm-border-soft);
	padding: 24px 0;
	transition: opacity 0.15s ease;
}

.shm-search__spinner {
	display: none;
}

.shm-search.is-loading .shm-search__results {
	min-height: 180px;
	pointer-events: none;
}

.shm-search.is-loading .shm-search__result {
	opacity: 0.2;
}

.shm-search.is-loading .shm-search__spinner {
	animation: shm-search-spin 0.7s linear infinite;
	border: 2px solid var(--shm-border);
	border-radius: 50%;
	border-top-color: var(--shm-text);
	display: block;
	height: 34px;
	left: 50%;
	position: absolute;
	top: 56px;
	transform: translateX(-50%) rotate(0deg);
	width: 34px;
	z-index: 2;
}

@keyframes shm-search-spin {
	to {
		transform: translateX(-50%) rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {

	.shm-search.is-loading .shm-search__spinner {
		animation-duration: 2s;
	}
}

.shm-search h2.shm-search__result-head {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	font-size: 1rem;
	gap: 8px 16px;
	letter-spacing: 0;
	line-height: 1.3;
	margin: 0 0 0px;
	align-items: center;
}

.shm-search__badge {
	background-color: var(--shm-badge-bg);
	border-radius: var(--shm-radius-badge);
	color: var(--shm-text);
	flex: 0 0 auto;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1;
	padding: 8px 16px;
	white-space: nowrap;
}

.shm-search .shm-search__result-title {
	color: var(--shm-text);
	font-size: 24px;
	font-weight: 400;
	line-height: 1.3;
	text-decoration: none;
	text-transform: none;
	transition: color 0.2s ease;
}

.shm-search .shm-search__result-title:hover {
	color: var(--shm-text-muted);
	text-decoration: underline;
}

.shm-search__result-excerpt {
	color: var(--shm-text-muted);
	display: -webkit-box;
	font-size: 16px;
	line-height: 1.5;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	margin: 0;
	overflow: hidden;
	-webkit-box-orient: vertical;
	margin-top:10px;
}

/* ---------------------------------------------------------------------------
   Pagination
   --------------------------------------------------------------------------- */

.shm-search__pagination {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	padding: 48px 0 0;
}

.shm-search .shm-search__pagination .page-numbers {
	align-items: center;
	background: none;
	border: 1px solid transparent;
	border-radius: var(--shm-radius);
	color: var(--shm-text-muted);
	display: inline-flex;
	font-size: 14px;
	height: var(--shm-page-size);
	justify-content: center;
	line-height: 1;
	margin: 0;
	min-width: var(--shm-page-size);
	padding: 0 8px;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
	width: auto;
}

.shm-search .shm-search__pagination a.page-numbers:hover {
	color: var(--shm-text);
}

.shm-search .shm-search__pagination .page-numbers.current {
	background-color: var(--shm-page-current);
	color: var(--shm-page-current-fg);
	font-weight: 700;
}

.shm-search .shm-search__pagination .page-numbers.dots {
	min-width: 0;
	padding: 0 2px;
}

.shm-search .shm-search__pagination .prev { order: 2; margin-left: 16px; }
.shm-search .shm-search__pagination .next { order: 3; }

.shm-search .shm-search__pagination .prev,
.shm-search .shm-search__pagination .next {
	background-color: var(--shm-page-arrow-bg);
	border-color: transparent;
	border-radius: var(--shm-radius);
	border-width: 1px;
	color: var(--shm-text);
	height: var(--shm-page-arrow);
	min-width: var(--shm-page-arrow);
	padding: 0;
	width: var(--shm-page-arrow);
}

.shm-search .shm-search__pagination a.prev:hover,
.shm-search .shm-search__pagination a.next:hover {
	background-color: var(--shm-brand);
	border-color: transparent;
	color: var(--shm-text);
}

.shm-search .shm-search__pagination .is-disabled {
	cursor: default;
	opacity: 0.25;
	pointer-events: none;
}

.shm-search .shm-search__pagination svg {
	display: block;
	fill: none;
	height: var(--shm-page-icon);
	width: var(--shm-page-icon);
}

/* ---------------------------------------------------------------------------
   Contact block — the Contact Us page template
   --------------------------------------------------------------------------- */

.shm-search__contact {
	margin: 72px 0 0;
}

.shm-search__contact-layout {
	align-items: center;
	display: grid;
	gap: var(--shm-gap);
	grid-template-columns: minmax(0, 1fr) minmax(0, var(--shm-contact-media));
}

.shm-search__contact-media img {
	aspect-ratio: var(--shm-contact-ratio);
	border-radius: var(--shm-contact-radius);
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.shm-search h1.shm-search__contact-title,
.shm-search h2.shm-search__contact-title {
	color: var(--shm-text);
	font-size: var(--shm-title-size);
	font-weight: 300;
	letter-spacing: -1px;
	line-height: 1.21;
	margin: 0 0 24px;
}

.shm-search__contact-text {
	color: #fff;
	font-size: 16px;
	line-height: 1.5;
	margin: 0 0 24px;
	max-width: 495px;
}

.shm-search__contact-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.shm-search .shm-search__btn {
	align-items: center;
	border: 2px solid transparent;
	border-radius: var(--shm-radius);
	display: inline-flex;
	font-size: 11px;
	font-weight: 900;
	justify-content: center;
	letter-spacing: 0.55px;
	line-height: 1;
	min-height: 48px;
	padding: 0 40px;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.shm-search .shm-search__btn--primary {
	background-color: var(--shm-brand);
	border-color: var(--shm-brand);
	color: var(--shm-text);
}

.shm-search .shm-search__btn--primary:hover {
	background-color: var(--shm-brand-hover);
	border-color: var(--shm-brand-hover);
}

.shm-search .shm-search__btn--ghost {
	background-color: transparent;
	border-color: var(--shm-border);
	color: var(--shm-text);
}

.shm-search .shm-search__btn--ghost:hover {
	border-color: var(--shm-text);
}

.shm-search__empty {
	color: var(--shm-text-muted);
	font-size: 16px;
	line-height: 1.5;
	margin: 0;
	padding: 24px 0;
}

/* ---------------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------------- */

@media (max-width: 1100px) {

	body.search {
		--shm-gap: 48px;
		--shm-aside: 200px;
	}
}

@media (max-width: 900px) {

	body.search {
		--shm-pad-top: 123px;
		--shm-pad-bottom: 48px;
		--shm-title-size: 32px;
	}

	.shm-search h1.shm-search__title {
		min-height:auto;
	}

	.shm-search__contact-text{
		margin-left:auto;
		margin-right:auto;
	}

	.shm-search__layout {
		align-items: stretch;
		display: flex;
		flex-direction: column;
	}

	.shm-search__aside,
	.shm-search__main,
	.shm-search__output {
		display: contents;
	}

	.shm-search h1.shm-search__title  { order: 0; }
	.shm-search__panel                { order: 1; }
	.shm-search__count                { order: 2; }
	.shm-search__filters              { order: 3; }
	.shm-search__results              { order: 4; }
	.shm-search__pagination           { order: 5; }

	.shm-search h1.shm-search__title {
		margin: 0 0 24px;
		text-align: center;
	}

	.shm-search__panel {
		padding: 24px;
	}

	.shm-search__form {
		display: block;
	}

	.shm-search .shm-search__form .shm-search__submit {
		margin: 16px 0 0;
		width: 100%;
	}

	.shm-search__quick {
		display: block;
		margin: 24px 0 0;
	}

	.shm-search__quick-label {
		display: block;
		font-size:14px;
		margin: 0 0 6px;
	}

	.shm-search__quick-list {
		gap: 8px 20px;
	}

	.shm-search__quick-list a{
		font-size:14px;
	}

	.shm-search__badge{
		padding:8px 16px;
	}

	.shm-search__count {
		border-bottom: 0;
		margin: 28px 0 0;
		padding: 0;
		scroll-margin-top: 90px;
		border-bottom: 1px solid var(--shm-border-soft);
        padding-bottom: 20px;
	}

	.shm-search__filters {
		margin: 24px 0 0;
	}

	.shm-search__filters-label,
	.shm-search__filters-list {
		display: none;
	}

	.shm-search__filters-select {
		display: block;
	}

	.shm-search .shm-search__filters-select select {
		appearance: none;
		-webkit-appearance: none;
		background-color: var(--shm-panel);
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23B9C4C8' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
		background-position: right 16px center;
		background-repeat: no-repeat;
		background-size: 12px 8px;
		border: 1px solid var(--shm-border);
		border-radius: var(--shm-radius);
		color: var(--shm-text);
		font-family: var(--shm-font);
		font-size: 16px;
		height: 62px;
		margin: 0;
		padding: 0 42px 0 16px;
		width: 100%;
	}

	.shm-search .shm-search__filters-select select option {
		color: initial;
	}

	.shm-search .shm-search__filters-select .jcf-select {
		background: var(--shm-panel);
		border: none;
		border-radius: var(--shm-radius);
		display: block;
		height: 62px;
		margin: 0;
		min-width: 0;
		width: 100%;
	}

	.shm-search .shm-search__filters-select .jcf-select .jcf-select-text {
		color: var(--shm-text);
		font-size: 16px;
		line-height: 58px;
		margin: 0 48px 0 16px;
	}

	.shm-search .shm-search__filters-select .jcf-select .jcf-select-opener {
		background: none;
		bottom: 0;
		right: 0;
		top: 0;
		width: 48px;
	}

	.shm-search .shm-search__filters-select .jcf-select .jcf-select-opener::after {
		background-color: #fff;
		content: '';
		height: 8px;
		left: 50%;
		-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23000' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat center / contain;
		mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23000' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat center / contain;
		position: absolute;
		top: 50%;
		transform: translate(-50%, -50%);
		transition: transform 0.2s ease;
		width: 12px;
	}

	.shm-search .shm-search__filters-select .jcf-drop-active .jcf-select-opener::after {
		transform: translate(-50%, -50%) rotate(180deg);
	}

	.shm-search .shm-search__filters-select .jcf-select-drop {
		left: -1px;
		margin-top: 4px;
		right: -1px;
	}

	.shm-search .shm-search__filters-select .jcf-select-drop .jcf-select-drop-content {
		border: none;
		border-radius: var(--shm-radius);
		overflow: hidden;
	}

	.shm-search .shm-search__filters-select .jcf-list {
		background: var(--shm-panel);
		font-size: 14px;
		line-height: 1.4;
	}

	.shm-search .shm-search__filters-select .jcf-list .jcf-option {
		color: var(--shm-text-muted);
		padding: 12px 16px;
		transition: background-color 0.2s ease, color 0.2s ease;
	}

	.shm-search .shm-search__filters-select .jcf-list .jcf-hover {
		background: var(--shm-badge-bg);
		color: var(--shm-text);
	}

	.shm-search .shm-search__filters-select .jcf-list .jcf-selected {
		background: var(--shm-brand);
		color: var(--shm-text);
	}

	.shm-search__results {
		margin: 24px 0 0;
		flex-direction: column;
		gap:8px;
	}

	.shm-search__result {
		padding: 20px 0;
	}

	.shm-search h2.shm-search__result-head {
		gap: 10px;
		flex-direction: column;
		align-items: flex-start;
	}

	.shm-search .shm-search__result-title {
		font-size: 20px;
	}

	.shm-search__pagination {
		padding: 32px 0 0;
	}

	.shm-search__contact {
		margin: 48px 0 0;
	}

	.shm-search__contact-layout {
		display: block;
	}

	.shm-search__contact-inner {
		text-align: center;
	}

	.shm-search__contact-media {
		margin: 40px 0 0;
	}

	.shm-search h1.shm-search__contact-title,
	.shm-search h2.shm-search__contact-title {
		font-size: 32px;
		margin-bottom: 16px;
	}

	.shm-search__contact-actions {
		display: block;
	}

	.shm-search .shm-search__btn {
		display: flex;
		margin: 0 0 16px;
		width: 100%;
	}

	.shm-search .shm-search__input{
		padding-left:40px;
	}

}