/* Instant project search (used with assets/search.js) */
/* The hero clips overflow; let the results list spill out while it is open. */
.hero.pim-search-open { overflow-x: clip; overflow-y: visible; }
.hero-search { position: relative; z-index: 20; }
.hero-search-find { flex: 2 1 320px; position: relative; }
.hero-search-find input {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  border-bottom: 1px solid var(--paper-line);
  background: transparent;
  padding: 8px 2px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink);
  width: 100%;
  border-radius: 0;
}
.hero-search-find input::placeholder { color: rgba(20,18,15,0.42); }
.hero-search-find input:focus { outline: none; border-color: var(--brass); }
.hero-search-find input::-webkit-search-cancel-button { cursor: pointer; }

.pim-search-results {
  position: absolute;
  left: -14px;
  right: -14px;
  top: 100%;
  margin-top: 8px;
  background: var(--white);
  border: 1px solid var(--paper-line);
  box-shadow: 0 22px 48px rgba(20,18,15,0.28);
  max-height: min(320px, 48vh);
  overflow-y: auto;
  z-index: 50;
  text-align: left;
}
.pim-search-results[hidden] { display: none; }

.pim-result {
  display: block;
  padding: 11px 16px 12px;
  border-top: 1px solid var(--paper-line);
  color: var(--ink);
  text-decoration: none;
}
.pim-result:first-child { border-top: none; }
.pim-result:hover, .pim-result.is-active { background: var(--paper-deep); }
.pim-result-top { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.pim-result-title {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.3;
  color: var(--ink);
}
.pim-result-badge {
  flex: 0 0 auto;
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brass-deep);
  border: 1px solid var(--brass);
  padding: 2px 7px;
}
.pim-result-meta {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(20,18,15,0.6);
}
.pim-foot {
  padding: 9px 16px;
  font-size: 11.5px;
  color: rgba(20,18,15,0.55);
  background: var(--paper);
  border-top: 1px solid var(--paper-line);
}
.pim-suggest { padding: 14px 16px 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pim-suggest-label {
  flex-basis: 100%;
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brass-deep);
}
.pim-chip {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--paper-line);
  padding: 7px 12px;
  cursor: pointer;
}
.pim-chip:hover { border-color: var(--brass); background: var(--paper-deep); }
.pim-none { padding: 16px; }
.pim-none-title { margin: 0 0 4px; font-family: var(--font-display); font-size: 16px; color: var(--ink); }
.pim-none-text { margin: 0 0 10px; font-size: 13px; color: rgba(20,18,15,0.6); }
.pim-none-link { font-size: 13px; color: var(--brass-deep); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 720px) {
  .hero-search-find { flex-basis: 100%; }
  .pim-search-results { left: -8px; right: -8px; }
}
