/* 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. The text takes the theme's font; only the footer uses a monospaced one. */
.snapfind-instant {
	--snapfind-surface: #fff;
	--snapfind-ink: #12222a;
	--snapfind-muted: #566972;
	--snapfind-line: #d9e3e6;
	--snapfind-accent: #08545c;
	--snapfind-active: #f1f7f8;
	--snapfind-mark: #fdeebf;
	position: fixed;
	z-index: 100000;
	box-sizing: border-box;
	max-height: min(70vh, 520px);
	overflow-y: auto;
	margin: 0;
	padding: 6px 14px 12px;
	background: var(--snapfind-surface);
	color: var(--snapfind-ink);
	border: 1px solid var(--snapfind-line);
	border-radius: 14px;
	box-shadow: 0 24px 50px -30px rgba(15, 42, 49, 0.45), 0 2px 8px rgba(15, 42, 49, 0.06);
	font-size: 15px;
	line-height: 1.4;
	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: 12px;
	padding: 11px 6px;
	border-radius: 8px;
	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; }

/* Each result is separated from the previous line by a rule, as in a list; the first line has none. */
.snapfind-instant-list .snapfind-instant-item,
.snapfind-instant-list .snapfind-instant-all { border-top: 1px solid var(--snapfind-line); }
.snapfind-instant-list li:first-child { border-top: 0; }

.snapfind-instant-thumb { flex: none; width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--snapfind-active); }
.snapfind-instant-text { display: block; min-width: 0; }
.snapfind-instant-title { display: block; font-weight: 600; 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: 0.9em;
}
.snapfind-instant-kicker { font-weight: inherit; }
.snapfind-instant mark { background: var(--snapfind-mark); color: inherit; font-weight: inherit; padding: 0 2px; border-radius: 2px; }

.snapfind-instant-list .snapfind-instant-all a { color: var(--snapfind-accent); font-size: 0.93em; font-weight: 600; }

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

/* Typo correction: a line above the results, like a hint. */
.snapfind-instant-list .snapfind-instant-correction a { display: block; padding: 10px 6px 8px; color: var(--snapfind-muted); font-size: 0.93em; }
.snapfind-instant-correction strong { color: var(--snapfind-accent); 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: 10px 6px 0;
	color: var(--snapfind-muted);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
}
