/* Instant search dialog (Assets/js/site-search.js). Everything is scoped under .ss so the
   Editorial theme's global input, button, link and list styles cannot leak in. */

/* Last in the row, set apart from the other icons by a hairline divider. The space is reserved from first paint
   (visibility, not display) so the other icons do not shift when the script reveals it. */
ul.icons li.site-search-item { margin-left: 0.3em; padding-left: 1.5em; position: relative; }
ul.icons li.site-search-item::before {
	background: rgba(159, 163, 166, .45);
	content: "";
	height: 0.95em;
	left: 0;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 1px;
}
.site-search-item:not(.is-ready) { visibility: hidden; }

/* Phones: the header row is too narrow for the logo plus five icons (they overlapped the logo), so only search
   stays. The social links move to the sidebar menu (_Root.cshtml), which the menu button opens. */
@media screen and (max-width: 736px) {
	#header ul.icons li:not(.site-search-item) { display: none; }
	ul.icons li.site-search-item { margin-left: 0; padding-left: 0; }
	ul.icons li.site-search-item::before { display: none; }
}

ul.icons li button.site-search-trigger {
	-webkit-appearance: none;
	appearance: none;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: inherit !important; /* the theme sets "button { color: #fff !important }" */
	cursor: pointer;
	font: inherit;
	height: auto;
	line-height: inherit;
	margin: 0;
	padding: 0;
	text-transform: none;
	letter-spacing: 0;
	vertical-align: baseline;
	transition: color .2s ease, transform .2s ease;
}

ul.icons li button.site-search-trigger:hover { box-shadow: none; color: #f56a6a !important; transform: none; }
ul.icons li button.site-search-trigger:active { transform: scale(.92); }
ul.icons li button.site-search-trigger:focus-visible { outline: 2px solid #f56a6a; outline-offset: 4px; border-radius: 4px; }

html.ss-open { overflow: hidden; }

.ss {
	--ss-ink: #3d4449;
	--ss-muted: #7f888f;
	--ss-faint: #9fa3a6;
	--ss-line: rgba(210, 215, 217, .7);
	--ss-soft: #f5f6f7;
	--ss-accent: #f56a6a;
	--ss-accent-soft: rgba(245, 106, 106, .12);

	background: #fff;
	border: 0;
	border-radius: 20px;
	box-shadow: 0 0 0 1px rgba(61, 68, 73, .06), 0 24px 70px -12px rgba(61, 68, 73, .38), 0 8px 24px -8px rgba(61, 68, 73, .18);
	color: var(--ss-ink);
	font-family: "Nunito Sans", "Open Sans", sans-serif;
	font-size: 16px;
	line-height: 1.5;
	margin: 11vh auto auto;
	max-height: min(640px, 78vh);
	max-width: calc(100vw - 32px);
	overflow: hidden;
	padding: 0;
	width: 680px;
}

.ss[open] { display: flex; flex-direction: column; animation: ss-pop .22s cubic-bezier(.2, .9, .3, 1.15); }
.ss[open]::backdrop { animation: ss-fade .22s ease both; }
.ss.ss-closing { animation: ss-out .15s ease forwards; }
.ss.ss-closing::backdrop { animation: ss-fade-out .15s ease forwards; }

.ss::backdrop {
	background: rgba(61, 68, 73, .42);
	-webkit-backdrop-filter: blur(6px) saturate(1.1);
	backdrop-filter: blur(6px) saturate(1.1);
}

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

/* Input row */

.ss .ss-bar {
	align-items: center;
	border-bottom: 1px solid var(--ss-line);
	display: flex;
	flex: none;
	gap: 14px;
	padding: 0 22px;
}

.ss .ss-glass { color: var(--ss-accent); flex: none; height: 22px; width: 22px; }

.ss input.ss-input {
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: var(--ss-ink);
	flex: 1;
	font: 500 1.25rem/1.2 "Sora", "Nunito Sans", sans-serif;
	height: 68px;
	letter-spacing: -.01em;
	margin: 0;
	min-width: 0;
	outline: 0;
	padding: 0;
}

.ss input.ss-input::placeholder { color: var(--ss-faint); font-weight: 400; opacity: 1; }
.ss input.ss-input::-webkit-search-cancel-button,
.ss input.ss-input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.ss input.ss-input:focus { background: transparent; border: 0; box-shadow: none; }

.ss .ss-spinner {
	animation: ss-spin .7s linear infinite;
	border: 2px solid var(--ss-line);
	border-radius: 50%;
	border-top-color: var(--ss-accent);
	flex: none;
	height: 18px;
	opacity: 0;
	transition: opacity .15s ease;
	width: 18px;
}
.ss.ss-busy .ss-spinner { opacity: 1; }

.ss button.ss-clear,
.ss button.ss-esc {
	-webkit-appearance: none;
	appearance: none;
	background: var(--ss-soft);
	border: 0;
	border-radius: 8px;
	box-shadow: none;
	color: var(--ss-muted) !important;
	cursor: pointer;
	flex: none;
	font: 600 .72rem/1 "Nunito Sans", sans-serif;
	height: auto;
	letter-spacing: .04em;
	margin: 0;
	padding: 7px 9px;
	text-transform: uppercase;
	transition: background .15s ease, color .15s ease;
}
.ss button.ss-clear:hover,
.ss button.ss-esc:hover { background: #eaecee; box-shadow: none; color: var(--ss-ink) !important; transform: none; }
.ss button.ss-clear[hidden] { display: none; }
.ss button.ss-clear:focus-visible,
.ss button.ss-esc:focus-visible { outline: 2px solid var(--ss-accent); outline-offset: 2px; }

/* Body */

.ss .ss-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px; scroll-padding: 8px; }
.ss .ss-body:empty { display: none; }

.ss ul.ss-list { list-style: none; margin: 0; padding: 0; }
.ss ul.ss-list li { margin: 0; padding: 0; }

.ss a.ss-item {
	align-items: flex-start;
	border: 0;
	border-radius: 14px;
	color: inherit;
	display: flex;
	gap: 14px;
	padding: 14px 16px;
	position: relative;
	text-decoration: none;
	transition: background .12s ease;
}

.ss a.ss-item:hover { color: inherit; }
.ss li[aria-selected="true"] > a.ss-item { background: var(--ss-soft); }

.ss a.ss-item::before {
	background: var(--ss-accent);
	border-radius: 3px;
	bottom: 14px;
	content: "";
	left: 0;
	opacity: 0;
	position: absolute;
	top: 14px;
	transform: scaleY(.4);
	transition: opacity .15s ease, transform .15s ease;
	width: 3px;
}
.ss li[aria-selected="true"] > a.ss-item::before { opacity: 1; transform: none; }

.ss .ss-main { flex: 1; min-width: 0; }

.ss .ss-title {
	color: var(--ss-ink);
	display: block;
	font: 600 1.02rem/1.35 "Sora", "Nunito Sans", sans-serif;
	letter-spacing: -.005em;
}

.ss .ss-meta {
	color: var(--ss-faint);
	display: block;
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .06em;
	margin-top: 3px;
	text-transform: uppercase;
}

.ss .ss-excerpt {
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	color: var(--ss-muted);
	display: -webkit-box;
	font-size: .92rem;
	line-height: 1.55;
	margin-top: 6px;
	overflow: hidden;
}

.ss mark {
	background: var(--ss-accent-soft);
	border-radius: 4px;
	box-shadow: 0 0 0 2px var(--ss-accent-soft);
	color: inherit;
	font-weight: 700;
}

.ss .ss-enter {
	align-self: center;
	color: var(--ss-faint);
	flex: none;
	height: 18px;
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity .15s ease, transform .15s ease;
	width: 18px;
}
.ss li[aria-selected="true"] > a.ss-item .ss-enter { opacity: 1; transform: none; }

.ss .ss-in { animation: ss-rise .28s cubic-bezier(.2, .8, .3, 1) both; }

/* Empty, none and error states */

.ss .ss-state { align-items: center; display: flex; flex-direction: column; padding: 38px 28px 42px; text-align: center; }
.ss .ss-state svg { color: var(--ss-line); height: 64px; margin-bottom: 14px; width: 64px; }
.ss .ss-state strong { color: var(--ss-ink); display: block; font: 600 1.05rem/1.3 "Sora", sans-serif; }
.ss .ss-state p { color: var(--ss-muted); font-size: .92rem; margin: 6px 0 0; max-width: 34ch; }
.ss .ss-state p b { color: var(--ss-ink); font-weight: 700; overflow-wrap: anywhere; }

.ss .ss-state button {
	-webkit-appearance: none;
	appearance: none;
	background: var(--ss-ink);
	border: 0;
	border-radius: 999px;
	box-shadow: none;
	color: #fff !important;
	cursor: pointer;
	font: 600 .85rem/1 "Nunito Sans", sans-serif;
	height: auto;
	letter-spacing: 0;
	margin: 18px 0 0;
	padding: 11px 20px;
	text-transform: none;
	transition: background .15s ease;
}
.ss .ss-state button:hover { background: var(--ss-accent); box-shadow: none; transform: none; }

/* Loading skeleton */

.ss .ss-skel { padding: 4px 8px 8px; }
.ss .ss-skel div { padding: 14px 16px; }
.ss .ss-skel i {
	animation: ss-shimmer 1.3s ease-in-out infinite;
	background: linear-gradient(90deg, #eef0f1 25%, #f7f8f8 50%, #eef0f1 75%);
	background-size: 200% 100%;
	border-radius: 6px;
	display: block;
	height: 12px;
	margin-top: 9px;
}
.ss .ss-skel i:first-child { height: 16px; margin-top: 0; width: 62%; }
.ss .ss-skel i:nth-child(2) { width: 24%; }
.ss .ss-skel i:nth-child(3) { width: 92%; }

/* Footer */

.ss .ss-foot {
	align-items: center;
	background: #fafbfb;
	border-top: 1px solid var(--ss-line);
	color: var(--ss-faint);
	display: flex;
	flex: none;
	font-size: .78rem;
	gap: 18px;
	justify-content: space-between;
	padding: 11px 22px;
}

.ss .ss-count { font-weight: 600; }
.ss .ss-keys { align-items: center; display: flex; gap: 14px; }
.ss .ss-keys span { align-items: center; display: inline-flex; gap: 6px; }

.ss kbd {
	background: #fff;
	border: 1px solid var(--ss-line);
	border-bottom-width: 2px;
	border-radius: 5px;
	color: var(--ss-muted);
	font: 700 .68rem/1 "Nunito Sans", sans-serif;
	min-width: 20px;
	padding: 3px 5px;
	text-align: center;
}

.ss .ss-sr {
	border: 0;
	clip: rect(0 0 0 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

@media (hover: none) { .ss .ss-keys { display: none; } }

/* Small screens: a full-height sheet */

@media screen and (max-width: 736px) {
	.ss {
		border-radius: 0;
		height: 100dvh;
		margin: 0;
		max-height: none;
		max-width: none;
		width: 100%;
	}
	.ss .ss-bar { gap: 12px; padding: 0 16px; }
	.ss input.ss-input { font-size: 1.1rem; height: 60px; }
	.ss .ss-body { padding: 6px; }
	.ss a.ss-item { padding: 12px 12px; }
	.ss .ss-foot { padding: 10px 16px; }
}

@keyframes ss-pop { from { opacity: 0; transform: translateY(-14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes ss-out { to { opacity: 0; transform: translateY(-8px) scale(.98); } }
@keyframes ss-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ss-fade-out { to { opacity: 0; } }
@keyframes ss-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes ss-spin { to { transform: rotate(360deg); } }
@keyframes ss-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
	.ss, .ss *, .ss::backdrop { animation: none !important; transition: none !important; }
}
