/* CurioSpark v8.29.5 — Family Directory search-field repair.
   Scoped to the Family Directory only. This restores a clear stacked label/input
   and neutralizes inherited highlight/autofill bleed without changing data or behavior. */
.v8295-directory-search {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: .42rem !important;
  align-items: stretch !important;
  width: 100%;
  margin: 1rem 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.v8295-directory-search > label {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  color: #4f286f !important;
  font: 800 .86rem/1.35 Inter, system-ui, sans-serif !important;
  letter-spacing: .01em;
}

.v8295-directory-search > label::before,
.v8295-directory-search > label::after {
  content: none !important;
  display: none !important;
  background: transparent !important;
}

.v8295-directory-search > input[type="search"] {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: .72rem .88rem !important;
  border: 1px solid rgba(95, 37, 121, .22) !important;
  border-radius: 12px !important;
  outline: 0;
  background: #fff !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #311046 !important;
  font: 600 .96rem/1.35 Inter, system-ui, sans-serif !important;
}

.v8295-directory-search > input[type="search"]::placeholder {
  color: #8b7e97 !important;
  opacity: 1;
}

.v8295-directory-search > input[type="search"]:focus {
  border-color: #5f2579 !important;
  box-shadow: 0 0 0 3px rgba(95, 37, 121, .14) !important;
}

.v8295-directory-search > input[type="search"]:-webkit-autofill,
.v8295-directory-search > input[type="search"]:-webkit-autofill:hover,
.v8295-directory-search > input[type="search"]:-webkit-autofill:focus {
  -webkit-text-fill-color: #311046 !important;
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
  caret-color: #311046;
}

@media (max-width: 640px) {
  .v8295-directory-search > input[type="search"] {
    min-height: 48px !important;
    font-size: 1rem !important;
  }
}
