/* ============================================================
   ASK THE BARISTA — nav search field
   Coffee & Trades

   Loaded after the inline <style> blocks, so selectors are
   pitched slightly higher to win over the existing nav rules.
   ============================================================ */

/* Drop the magnifying glass — the cup replaces it */
.nav-search-wrap input.nav-search {
  background-image: none;
  padding: 8px 12px 8px 38px;
  border-radius: 7px;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

/* ---------- the cup ---------- */

.nav-search-wrap .barista-cup {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  width: 17px; height: 17px;
  pointer-events: none;
  z-index: 2;
}

.nav-search-wrap .barista-cup .cup-body { stroke: var(--gold); }
.nav-search-wrap .barista-cup .cup-steam { stroke: var(--gold); }

/* steam only drifts while the field is idle */
.nav-search-wrap.is-typing .barista-cup .cup-steam { opacity: 0; }

/* ---------- rotating prompt ---------- */

.nav-search-wrap .barista-ghost {
  position: absolute;
  left: 38px; right: 12px; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  color: #8f8a82;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 1;
  transition: opacity .32s ease;
  z-index: 1;
}

.nav-search-wrap .barista-ghost.fading { opacity: 0; }
.nav-search-wrap.is-typing .barista-ghost { display: none; }

/* focus: warm the field rather than flashing it white */
.nav-search-wrap input.nav-search:focus {
  background-color: #2e2925;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 160, 0, .13);
}

.nav-search-wrap input.nav-search::placeholder { color: #8f8a82; }

@media (prefers-reduced-motion: reduce) {
  .nav-search-wrap .barista-ghost { transition-duration: .01ms !important; }
  .nav-search-wrap .barista-cup .cup-steam { animation: none !important; }
}
