
@media (min-width: 992px) {
	.search-facet-sticky-shell {
		position: sticky;
		top: 120px;
		max-height: calc(100vh - 140px);
		overflow-y: auto;
	}
}

.facet-title {
	font-size: 16px;
	font-weight: 600;
}

.search-result:last-child {
    border-bottom: 0 !important;
}

.search-loading-overlay {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.55);
	backdrop-filter: blur(2px);
}

.search-loading-card {
	min-width: 180px;
	padding: 1.5rem;
	text-align: center;
	background: #fff;
	border-radius: 1rem;
	box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.18);
}

.search-suggestions {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 1050;

	background: #fff;
	border: 1px solid #dee2e6;
	border-radius: .5rem;

	box-shadow:
		0 .5rem 1rem rgba(0,0,0,.15);

	max-height: 400px;
	overflow-y: auto;
}

.search-suggestion {
	display: block;
	padding: .75rem 1rem;
	font-size: 15px;
	text-decoration: none;
	color: inherit;
	border-bottom: 1px solid #f1f1f1;
	border-left: 4px solid transparent;
}

.search-suggestion:last-child {
	border-bottom: 0;
}

.search-suggestion:hover,
.search-suggestion.active {
	background-color: #e9ecef;
	border-left-color: var(--color-text);
}

.search-suggestion strong {
	font-weight: 700;
	color: var(--color-text);
}

.search-suggestion-type {
	flex: 0 0 auto;
	font-size: .75rem;
	color: #6c757d;
	background: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 999px;
	padding: .15rem .5rem;
}


.search-result .search-result-title,
.search-result .search-result-title a {
    display: inline-block;
    max-width: 80ch;
    line-height: 1.3;
    overflow-wrap: break-word;
}

.search-result-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;

	.badge {
		font-size: 1em;
	}
}

.search-result-meta .meta-token + .meta-token::before {
    content: "\b7"; /* Unicode escape for middle dot */
    margin: 0 .5rem;
    color: var(--bs-secondary-color);
}

.search-result .small {
	font-size: var(--fs-xsmall);
}

.search-result p.excerpt {
    max-width: 75ch;
}

.search-result mark {
    padding: 0 .15em;
    border-radius: .2rem;
    background-color: #FDE1D3;
    color: inherit;
}

.external-link::after {
    content: "\2197";
    margin-left: 0.25rem;
    font-size: 0.85em;
}

@media (max-width: 991.98px) {
    .search-result .search-result-title,
    .search-result .search-result-title a,
    .search-result p {
        max-width: 100%;
    }

    .search-result-meta {
        row-gap: .35rem;
    }
}