/* Predictive search dropdown
 * Anchored to the parent <form> via JS (which sets position:relative).
 * Pulled out of the theme's Tailwind layer so it works anywhere the
 * search input lives — hero, search.php refine bar, future header. */

.sv-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 60;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  max-height: 64vh;
  overflow-y: auto;
  text-align: left;
  padding: 6px;
}

.sv-suggest__empty {
  padding: 18px 16px;
  color: rgba(0, 0, 0, 0.55);
  font-size: 14px;
  text-align: center;
}

.sv-suggest__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s ease;
}

.sv-suggest__row:hover,
.sv-suggest__row.is-active {
  background: rgba(0, 0, 0, 0.05);
}

.sv-suggest__thumb {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.06);
}

.sv-suggest__thumb--placeholder {
  background-image: linear-gradient(135deg, rgba(0,0,0,0.06), rgba(0,0,0,0.12));
}

.sv-suggest__text {
  min-width: 0;
  flex: 1;
}

.sv-suggest__name {
  font-weight: 600;
  font-size: 15px;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.sv-suggest__name mark {
  background: rgba(255, 209, 102, 0.55);
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
}

.sv-suggest__meta {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.55);
  letter-spacing: 0.02em;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hide the native browser autocomplete reveal */
.sv-suggest + input::-webkit-search-cancel-button { display: none; }
