/* typeahead.css — the dropdown. Theme-agnostic: every colour comes from a CSS
   variable the host page already defines, with a fallback for pages that define
   neither. Intellect's landing page is warm and light, /search is dark; one
   stylesheet has to sit correctly on both without knowing which it is on. */
.ta-box {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 60;
  max-height: 19rem;
  overflow-y: auto;
  background: var(--raise, var(--panel, #fff));
  border: 1px solid var(--line, #d8d8d4);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 12px 32px -12px rgba(0, 0, 0, .28);
  padding: 4px;
}
.ta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink, #003a63);
}
.ta-row svg { width: 16px; height: 16px; flex: none; color: var(--accent, #00a797); }
.ta-l { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* The confidence line. Named rather than hidden: a low-confidence suggestion the
   user can see and judge beats an empty dropdown, which reads as "no such address". */
.ta-s {
  flex: none;
  font-size: 11.5px;
  color: var(--dim, #7d7a72);
  border: 1px solid var(--line, #d8d8d4);
  border-radius: 999px;
  padding: 1px 7px;
  text-transform: lowercase;
}
.ta-row.ta-on, .ta-row:hover { background: var(--bg, var(--line, #f2f1ec)); }
.ta-row.ta-on { box-shadow: inset 0 0 0 1px var(--accent, #00a797); }
@media (prefers-reduced-motion: reduce) { .ta-box { transition: none; } }
