/* The list under the search boxes (assets/js/suggest.js). Only the LBS Foundation theme's design tokens (--lbs-*),
   no colour of its own. The list is placed by the script under the field (left, width, top); it never animates.
   Groups with a small heading, rows of at least 44px with the matched letters in bold and a site name on the right,
   the highlighted row on the panel grey with a red edge. The places: a check mark before the chosen one, room for
   it before the others; while words are typed, one line on the panel grey saying where, with "Breyta" underlined as
   a link would be. The last row, the search itself, in red on grey (an arrow out of the site where it leaves). */
.has-lbs-suggest { position: relative; }
.has-lbs-suggest .lbs-suggest {
	position: absolute;
	z-index: 160; /* above the header (140) and its language list (150): the list may hang below the header */
	box-sizing: border-box;
	min-width: min(16rem, 100%);
	max-height: min(34rem, 75vh);
	margin: var(--lbs-space-1) 0 0;
	padding: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	border: 1px solid var(--lbs-border-strong);
	border-radius: var(--lbs-radius-control);
	background: var(--lbs-white);
	color: var(--lbs-text);
	font-size: var(--lbs-fs-sm);
	line-height: var(--lbs-lh-tight);
	text-align: left;
}
.has-lbs-suggest .lbs-suggest[hidden] { display: none; }
.lbs-suggest .lbs-suggest__group { padding: 0 0 var(--lbs-space-1); }
.lbs-suggest .lbs-suggest__group + .lbs-suggest__group { border-top: 1px solid var(--lbs-border); }
.lbs-suggest .lbs-suggest__heading {
	padding: var(--lbs-space-3) var(--lbs-space-4) var(--lbs-space-1);
	color: var(--lbs-muted);
	font-size: var(--lbs-fs-xs);
	font-weight: 700;
}
.lbs-suggest .lbs-suggest__option {
	display: flex;
	align-items: baseline;
	gap: var(--lbs-space-3);
	min-height: var(--lbs-target);
	margin: 0;
	padding: var(--lbs-space-2) var(--lbs-space-4);
	box-sizing: border-box;
	cursor: pointer;
	overflow-wrap: anywhere;
}
.lbs-suggest .lbs-suggest__text { flex: 1 1 auto; min-width: 0; }
.lbs-suggest .lbs-suggest__aside { flex: none; max-width: 45%; margin-left: auto; color: var(--lbs-muted); font-size: var(--lbs-fs-xs); text-align: right; }
.lbs-suggest mark { background: none; color: inherit; font-weight: 700; }
/* Highlighted (keys) and under the pointer: the panel grey, with a red edge so it does not rest on colour alone. */
.lbs-suggest .lbs-suggest__option:hover,
.lbs-suggest .lbs-suggest__option[aria-selected="true"] {
	background: var(--lbs-panel);
	box-shadow: inset 4px 0 0 var(--lbs-red);
}
.lbs-suggest .lbs-suggest__option--all {
	align-items: center;
	border-top: 1px solid var(--lbs-border);
	background: var(--lbs-panel);
	color: var(--lbs-red);
	font-weight: 700;
}
.lbs-suggest .lbs-suggest__option--all::after { content: '\2192'; content: '\2192' / ''; margin-left: auto; }
/* A word the service was found by, after its name when the name does not hold it. */
.lbs-suggest .lbs-suggest__note { color: var(--lbs-muted); }
.lbs-suggest .lbs-suggest__note::before { content: '('; }
.lbs-suggest .lbs-suggest__note::after { content: ')'; }
/* The places: the chosen one checked (a drawn mark, not a font character), the text in line with the others. */
.lbs-suggest .lbs-suggest__option--place { align-items: center; padding-left: calc(var(--lbs-space-4) + 1.5rem); position: relative; }
.lbs-suggest .lbs-suggest__option--place { flex-wrap: wrap; row-gap: 0; }
.lbs-suggest .lbs-suggest__option--place .lbs-suggest__aside { flex-basis: 100%; max-width: none; margin-left: 0; text-align: left; font-weight: 400; }
.lbs-suggest .lbs-suggest__option--place[aria-checked="true"] { font-weight: 700; }
.lbs-suggest .lbs-suggest__option--place[aria-checked="true"]::before {
	content: '';
	position: absolute;
	left: var(--lbs-space-4);
	top: 50%;
	width: 0.45rem;
	height: 0.8rem;
	margin-top: -0.5rem;
	border: solid var(--lbs-red);
	border-width: 0 3px 3px 0;
	transform: rotate(45deg);
}
@media (forced-colors: active) {
	.lbs-suggest .lbs-suggest__option--place[aria-checked="true"]::before { border-color: CanvasText; }
}
/* While words are typed: where the box searches, and "Breyta". */
.lbs-suggest .lbs-suggest__group--line { padding: 0; background: var(--lbs-panel); }
.lbs-suggest .lbs-suggest__option--line { align-items: center; color: var(--lbs-muted); font-size: var(--lbs-fs-xs); }
.lbs-suggest .lbs-suggest__change {
	flex: none;
	margin-left: auto;
	color: var(--lbs-text);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}
.lbs-suggest .lbs-suggest__option--out::after { content: '\2197'; content: '\2197' / ''; }
