.nova-live-search-container {
	position: relative;
}

.nova-live-search-results {
	background: Canvas;
	border: 1px solid currentcolor;
	border: 1px solid color-mix(in srgb, currentcolor 20%, transparent);
	box-sizing: border-box;
	color: CanvasText;
	max-block-size: min(24rem, 60vh);
	max-inline-size: 100vw;
	overflow-y: auto;
	position: absolute;
	z-index: 1000;
}

.nova-live-search-results[hidden] {
	display: none;
}

.nova-live-search-spinner {
	animation: nova-live-search-spin 0.7s linear infinite;
	block-size: 1rem;
	border: 0.125rem solid currentcolor;
	border: 0.125rem solid color-mix(in srgb, currentcolor 25%, transparent);
	border-block-start-color: currentcolor;
	/* Important: a Bootstrap input group squares the corners of its children. */
	border-radius: 50% !important;
	box-sizing: border-box;
	color: inherit;
	inline-size: 1rem;
	pointer-events: none;
	/* Not a margin: an input group sets its own margin on its children. The script
	   puts the spinner at the right edge of the field, this moves it inside. */
	translate: calc(-100% - var(--nova-live-search-spinner-offset, 2rem)) -50%;
	z-index: 1001;
}

.nova-live-search-spinner[hidden] {
	display: none;
}

@keyframes nova-live-search-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.nova-live-search-spinner {
		animation: none;
	}
}

.nova-live-search-suggestions {
	background: Canvas;
	border: 1px solid currentcolor;
	border: 1px solid color-mix(in srgb, currentcolor 20%, transparent);
	box-sizing: border-box;
	color: CanvasText;
	list-style: none;
	margin: 0;
	max-block-size: min(20rem, 60vh);
	max-inline-size: 100vw;
	overflow-y: auto;
	padding: 0;
	position: absolute;
	z-index: 1000;
}

.nova-live-search-suggestions[hidden] {
	display: none;
}

.nova-live-search-suggestion {
	cursor: pointer;
	font-size: 1.125rem;
	letter-spacing: 0.006em;
	line-height: 1.4;
	padding: 0.625rem 1.25rem;
	text-align: left;
}

.nova-live-search-suggestion .nova-live-search-suggestion-typed {
	font-weight: 400;
}

.nova-live-search-suggestion .nova-live-search-suggestion-rest {
	font-weight: 700;
}

.nova-live-search-suggestion:hover {
	background: color-mix(in srgb, currentcolor 6%, transparent);
}

.nova-live-search-suggestion[aria-selected='true'] {
	background: color-mix(in srgb, currentcolor 12%, transparent);
	outline: 0.125rem solid currentcolor;
	outline-offset: -0.125rem;
}

.nova-live-search-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nova-live-search-result + .nova-live-search-result {
	border-block-start: 1px solid currentcolor;
	border-block-start: 1px solid color-mix(in srgb, currentcolor 20%, transparent);
}

.nova-live-search-result-link {
	align-items: center;
	color: inherit;
	column-gap: 1.25rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	padding: 0.625rem 1.25rem;
	row-gap: 0.125rem;
	text-decoration: none;
}

.nova-live-search-result-link:hover,
.nova-live-search-result-link:focus-visible {
	background: color-mix(in srgb, currentcolor 6%, transparent);
}

.nova-live-search-result-link:hover .nova-live-search-result-title,
.nova-live-search-result-link:focus-visible .nova-live-search-result-title {
	text-decoration: underline;
}

.nova-live-search-result-link:focus-visible {
	outline: 0.125rem solid currentcolor;
	outline-offset: -0.125rem;
}

.nova-live-search-result-title {
	flex: 1 1 55%;
	font-size: 1.125rem;
	letter-spacing: 0.006em;
	line-height: 1.4;
	text-align: left;
}

.nova-live-search-result-type {
	flex: 0 0 auto;
	font-size: 0.875rem;
	letter-spacing: 0.036em;
	line-height: 1.36;
	margin-inline-start: auto;
	text-transform: uppercase;
}

.nova-live-search-message {
	font-size: 1.125rem;
	line-height: 1.4;
	margin: 0;
	padding: 0.625rem 1.25rem;
}

.nova-live-search-visually-hidden {
	border: 0;
	block-size: 1px;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	inline-size: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	word-wrap: normal;
}
