/* text_search (templates/components/text_search.html): find photos by what they show.
 * The search screen's box, and the one over a guest's results. */

.text-search { display: block; margin: 0; }
/* On the search screen it's folded under the options ("Or describe a moment"): it finds
   scenes, not people, so it's the least likely first choice. A <details>: no script. */
.text-search-fold { margin-top: 4px; }
.text-search-fold__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font: 600 15px/1.3 var(--sans);
  color: var(--brand-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  list-style: none;
}
.text-search-fold__toggle::-webkit-details-marker { display: none; }
.text-search-fold__toggle::after {
  content: "";
  width: 7px; height: 7px;
  margin-left: 2px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.text-search-fold[open] > .text-search-fold__toggle::after { transform: translateY(2px) rotate(-135deg); }
.text-search-fold__toggle:hover { color: var(--ink); }
.text-search--capture { margin-top: 8px; }
.text-search--results { padding: 0 var(--gutter) 14px; }
/* At the top of the gallery, without face search: the page's way to search, in its column. */
.text-search--home { padding: 4px 0 14px; }
@media (min-width: 900px) { .text-search--home .text-search__row { max-width: 640px; } }
.text-search__label { display: block; margin-bottom: 8px; font: 600 15px/1.3 var(--sans); color: var(--ink); }
.text-search__row { display: flex; gap: 8px; min-width: 0; }
.text-search__input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-control);
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1 var(--sans);
}
.text-search__input::placeholder { color: var(--faint); }
.text-search__input:focus-visible { outline: 3px solid var(--brand); outline-offset: 1px; }
/* Search is quiet (outlined): the search screen's one filled button is the selfie card. */
.text-search__submit {
  flex: none;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-control);
  background: var(--card);
  color: var(--ink);
  font: 600 14px/1 var(--sans);
  cursor: pointer;
}
.text-search__submit:hover { border-color: var(--ink); }
.text-search__submit:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.text-search__hint { margin: 8px 0 0; font-size: 13px; line-height: 1.4; color: var(--muted); }
