/* Native DLE suggestions: presentation only; query, result links and ACL stay native. */
body.st-site .st-search:focus-within {
  border-color: var(--st-accent);
  box-shadow: 0 0 0 3px var(--st-soft);
}
body.st-site .st-search input:focus-visible { outline: none; }
body.st-site #searchsuggestions {
  box-sizing: border-box;
  width: 380px;
  max-width: calc(100vw - 24px);
  max-height: min(420px, calc(100dvh - 144px));
  padding: 5px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--st-line) transparent;
  border: 1px solid var(--st-line);
  border-radius: 14px;
  background: var(--st-surface);
  color: var(--st-ink);
  box-shadow: 0 14px 38px #10271c26, 0 3px 8px #10271c0a;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
  z-index: 80;
}

body.st-site #searchsuggestions a {
  box-sizing: border-box;
  clear: none;
  height: auto;
  padding: 11px 12px;
  border-radius: 8px;
  background: transparent;
  color: var(--st-ink);
  font: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color .15s ease;
}

body.st-site #searchsuggestions > a { display: block; }
body.st-site #searchsuggestions > a + a { border-top: 1px solid var(--st-line); }
body.st-site #searchsuggestions a:hover,
body.st-site #searchsuggestions a:focus-visible {
  background: var(--st-soft);
  color: var(--st-ink);
}
body.st-site #searchsuggestions a:focus-visible {
  outline: 2px solid var(--st-accent);
  outline-offset: -2px;
}

body.st-site #searchsuggestions a span.searchheading {
  display: block;
  margin: 0;
  color: var(--st-ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}
body.st-site #searchsuggestions a > span:not(.searchheading) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-top: 4px;
  color: var(--st-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}
body.st-site #searchsuggestions a:hover span.searchheading,
body.st-site #searchsuggestions a:focus-visible span.searchheading { color: var(--st-accent); }
body.st-site #searchsuggestions a:hover > span:not(.searchheading),
body.st-site #searchsuggestions a:focus-visible > span:not(.searchheading) { color: var(--st-muted); }
body.st-site #searchsuggestions mark,
body.st-site #searchsuggestions strong,
body.st-site #searchsuggestions b { color: inherit; }

body.st-site #searchsuggestions span.seperator {
  display: block;
  float: none;
  margin: 4px -5px -5px;
  padding: 5px;
  border-top: 1px solid var(--st-line);
  background: var(--st-soft);
}
body.st-site #searchsuggestions span.seperator a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  color: var(--st-accent);
  font-size: 12px;
  font-weight: 650;
}
body.st-site #searchsuggestions span.seperator a::after {
  content: "\2192";
  flex: 0 0 auto;
  font-size: 16px;
  font-weight: 400;
}
body.st-site #searchsuggestions span.seperator a:hover,
body.st-site #searchsuggestions span.seperator a:focus-visible {
  background: var(--st-surface);
  color: var(--st-accent);
}
body.st-site #searchsuggestions span.notfound {
  display: block;
  height: auto;
  padding: 16px 12px;
  background: transparent;
  color: var(--st-muted);
}
body.st-site #searchsuggestions[data-st-search-dismissed],
body.st-site #searchsuggestions[data-st-search-offscreen] { display: none !important; }

html[data-theme="dark"] body.st-site #searchsuggestions { box-shadow: 0 16px 40px #0006; }
@media (max-width: 480px) {
  body.st-site #searchsuggestions { border-radius: 12px; }
  body.st-site #searchsuggestions a { padding: 10px 11px; }
}
@media (prefers-reduced-motion: reduce) {
  body.st-site #searchsuggestions a { transition: none; }
}
