/* Instant search dropdown. All selectors are scoped under .snapfind-instant so that the
   theme is not affected. Colors are custom properties: a theme can change them without
   rewriting the rules. */
.snapfind-instant {
	--snapfind-surface: #fff;
	--snapfind-ink: #1d2327;
	--snapfind-muted: #646970;
	--snapfind-line: #dcdcde;
	--snapfind-active: #f0f6f7;
	position: fixed;
	z-index: 100000;
	box-sizing: border-box;
	max-height: min(70vh, 460px);
	overflow-y: auto;
	margin: 0;
	padding: 4px;
	background: var(--snapfind-surface);
	color: var(--snapfind-ink);
	border: 1px solid var(--snapfind-line);
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
	font-size: 15px;
	line-height: 1.35;
	text-align: start;
}
.snapfind-instant[hidden],
.snapfind-instant-brand[hidden] { display: none !important; }

.snapfind-instant-list { list-style: none; margin: 0; padding: 0; }
.snapfind-instant-list li { margin: 0; padding: 0; list-style: none; }
.snapfind-instant-list a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 4px;
	color: inherit;
	text-decoration: none;
	box-shadow: none;
}
.snapfind-instant-list a:hover,
.snapfind-instant-list [aria-selected="true"] a { background: var(--snapfind-active); color: inherit; }

.snapfind-instant-thumb { flex: none; width: 44px; height: 44px; border-radius: 4px; object-fit: cover; }
.snapfind-instant-text { display: block; min-width: 0; }
.snapfind-instant-title { display: block; overflow-wrap: anywhere; }
.snapfind-instant-excerpt {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	margin-top: 2px;
	color: var(--snapfind-muted);
	font-size: 13px;
}
.snapfind-instant mark { background: none; color: inherit; font-weight: 700; padding: 0; }

.snapfind-instant-all { margin-top: 4px; border-top: 1px solid var(--snapfind-line); }
.snapfind-instant-list .snapfind-instant-all a { margin-top: 4px; font-weight: 600; }

.snapfind-instant-brand { padding: 6px 10px 4px; color: var(--snapfind-muted); font-size: 11px; text-align: end; }

/* Typo correction: at the top of the list, more subtle than a result. */
.snapfind-instant-list .snapfind-instant-correction a { color: var(--snapfind-muted); font-size: 13px; padding-block: 6px; }
.snapfind-instant-correction strong { color: var(--snapfind-ink); }
.snapfind-instant-kicker { font-weight: 600; }
/* Footer with how many results are shown and how long the service took. */
.snapfind-instant-list .snapfind-instant-meta {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 6px 10px 2px;
	color: var(--snapfind-muted);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
}
