/* Live search dropdown. Uses only the colour variables both themes define
   (--bg, --bg-soft, --fg, --muted, --border, --accent, --accent-soft), so it follows
   light/dark and the GitBook/Minecraft themes without a theme-specific copy. */
.search-form.has-suggest { position: relative; }
.suggest { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; right: 0; min-width: min(380px, calc(100vw - 32px)); max-height: min(70vh, 460px); overflow-y: auto; overscroll-behavior: contain; background: var(--bg); color: var(--fg); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px rgb(16 24 40 / .16); padding: 6px; text-align: left; }
.site-header .suggest { left: auto; right: 0; width: min(420px, calc(100vw - 32px)); }
.suggest[hidden], .suggest-note[hidden] { display: none; }
.suggest-list { list-style: none; margin: 0; padding: 0; }
.suggest-item { margin: 0; border-radius: 8px; }
.suggest-link { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 8px; color: inherit; text-decoration: none; }
.suggest-item.active, .suggest-item.active .suggest-link { background: var(--accent-soft); }
.suggest-item.active { outline: 2px solid var(--accent); outline-offset: -2px; }
.suggest-title { font-weight: 600; font-size: 14px; line-height: 1.3; }
.suggest-category { font-size: 12px; color: var(--muted); }
.suggest-excerpt { font-size: 13px; line-height: 1.4; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.suggest mark { background: transparent; color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.suggest-all .suggest-link { flex-direction: row; font-size: 13px; font-weight: 600; color: var(--accent); border-top: 1px solid var(--border); border-radius: 0 0 8px 8px; margin-top: 4px; }
.suggest-note { padding: 12px; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) {
  /* Phone: use the full width under the header instead of the narrow search box. */
  .site-header .suggest { position: fixed; left: 8px; right: 8px; width: auto; min-width: 0; max-height: 70vh; }   /* top is set by search-suggest.js */
}
@media (prefers-reduced-motion: no-preference) { .suggest-link { transition: background-color .08s; } }
