/* Smart search dropdown (2026-10-04): "understood as …" line, type icon, subtitle and trust badges.
   Rows keep the class search-suggest-item, so search-box.js keyboard / mouse handling is unchanged. Site tokens → dark theme. */
.search-suggest.sx {
  min-width: min(560px, calc(100vw - 32px));
  max-width: min(640px, calc(100vw - 32px));
  padding: 6px;
  background: var(--surface, #fff);
  border: 1px solid var(--line, #e0ddf5);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(26, 24, 48, .14);
  color: var(--text, #1a1830);
  text-align: start;          /* the home hero centres its text: the list must not inherit it */
}
/* header field sits at the inline end of the bar: the wide list opens towards the page, not off-screen */
.header-search-wrap .search-suggest.sx { inset-inline-start: auto; inset-inline-end: 0; }
/* fields outside the header (home hero …): an absolute list under the field (its parent is made relative by the renderer) */
.search-suggest.sx.sx-float { position: absolute; top: calc(100% + 6px); inset-inline-start: 0; z-index: 2350; }
.sx-head { padding: 8px 10px 6px; font-size: 12px; color: var(--muted, #6b6880); display: flex; gap: 6px; flex-wrap: wrap; align-items: baseline; }
.sx-head b { color: var(--text, #1a1830); font-weight: 700; }
.sx-head .sx-val { font-variant-numeric: tabular-nums; }
.search-suggest.sx .search-suggest-item.sx-item {
  display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 8px;
  color: var(--text, #1a1830); text-decoration: none; background: transparent;
}
.search-suggest.sx .search-suggest-item.sx-item:hover,
.search-suggest.sx .search-suggest-item.sx-item.is-active { background: var(--surface2, #f2efff); }
.sx-ico {
  flex: none; width: 34px; height: 34px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-soft, #eeecfa); color: var(--brand-strong, #5a4dd0);
}
.sx-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sx-title { font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.sx-sub { font-size: 12.5px; color: var(--muted, #6b6880); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 46%; }
.sx-b { font-size: 11.5px; font-weight: 700; line-height: 1; padding: 5px 9px; border-radius: 999px; white-space: nowrap; border: 1px solid transparent; }
.sx-b--ok   { color: #166534; background: color-mix(in srgb, #16a34a 12%, var(--surface, #fff)); border-color: color-mix(in srgb, #16a34a 30%, transparent); }
.sx-b--warn { color: #92400e; background: color-mix(in srgb, #d97706 13%, var(--surface, #fff)); border-color: color-mix(in srgb, #d97706 32%, transparent); }
.sx-b--risk { color: #b42318; background: color-mix(in srgb, #d63031 12%, var(--surface, #fff)); border-color: color-mix(in srgb, #d63031 32%, transparent); }
.sx-b--info { color: var(--muted, #6b6880); background: var(--surface-soft, #eeecfa); }
.sx-mod { flex: none; font-size: 11px; color: var(--muted, #6b6880); min-width: 58px; text-align: end; }
.sx-foot { padding: 8px 10px 4px; font-size: 11.5px; color: var(--muted, #6b6880); border-top: 1px solid var(--line, #e0ddf5); margin-top: 4px; }
[data-theme="dark"] .sx-b--ok { color: #86efac; }
[data-theme="dark"] .sx-b--warn { color: #fcd34d; }
[data-theme="dark"] .sx-b--risk { color: #fca5a5; }
[data-theme="dark"] .search-suggest.sx { box-shadow: 0 18px 48px rgba(0, 0, 0, .5); }
@media (max-width: 640px) {
  .search-suggest.sx { min-width: 0; width: 100%; max-width: none; border-radius: 10px; }
  .search-suggest.sx.sx-float, .header-search-wrap .search-suggest.sx { width: calc(100vw - 32px); inset-inline-start: 0; inset-inline-end: auto; }
  .search-suggest.sx .search-suggest-item.sx-item { align-items: flex-start; flex-wrap: wrap; min-height: 44px; }
  .sx-main { flex-basis: calc(100% - 46px); }
  .sx-badges { max-width: none; justify-content: flex-start; margin-inline-start: 46px; }
  .sx-mod { display: none; }
}
