/* Suggestion list under the search box (start page and results page). Uses the page's colour tokens. */
.suggest {
  position: absolute; inset-inline: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: 0 12px 32px rgba(16, 24, 40, .14); padding: 6px; z-index: 60; display: none; text-align: start;
  max-height: min(70vh, 520px); overflow-y: auto; overscroll-behavior: contain;
}
.suggest.open { display: block; }
.sg-row {
  display: flex; gap: 12px; align-items: center; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--ink);
  cursor: pointer; min-height: 44px;
}
.sg-row:hover, .sg-row.active { background: var(--surface-2); text-decoration: none; }
.sg-ic { color: var(--ink-3); display: flex; flex: none; width: 24px; justify-content: center; }
.sg-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-t b { font-weight: 700; }
.sg-page .sg-t, .sp-row .sg-t { display: flex; flex-direction: column; white-space: normal; }
.sg-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-host { color: var(--ink-3); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-x {
  border: 0; background: none; color: var(--ink-3); width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; flex: none;
  visibility: hidden;
}
.sg-row:hover .sg-x, .sg-row.active .sg-x { visibility: visible; }
.sg-x:hover { background: var(--line); color: var(--ink); }
@media (hover: none) { .sg-x { visibility: visible; } }
.sg-ad img { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; }
.sp-tag { margin-inline-start: auto; font-size: .68rem; color: var(--ink-3); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; flex: none; }

/* Site icon with a letter fallback (the image is removed when it fails to load). */
.fav {
  position: relative; display: inline-grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; color: var(--ink-2); font-size: .72rem; font-weight: 700;
}
.fav::before { content: attr(data-letter); }
.fav img { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); object-fit: contain; background: var(--surface-2); }
