/* Directory head: the big search box under the title.
   The cream band, breadcrumb and title come from news.css (.page-head, .breadcrumb) and tokens from styles.css. */

.dir-search {
  max-width: 46rem;
  margin-top: 1.5rem;
}

.dir-search__box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.35rem 0.35rem 1rem;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 0.55rem;
  color: var(--field);
  box-shadow: var(--shadow-soft);
  transition: border-color 180ms var(--ease);
}

.dir-search__box:hover {
  border-color: color-mix(in srgb, var(--yolk) 45%, var(--hairline));
}

.dir-search__box:focus-within {
  border-color: var(--yolk);
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.dir-search__box svg {
  flex: none;
}

.dir-search__box input {
  flex: 1;
  min-width: 0;
  min-height: 2.8rem;
  padding: 0;
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  background: none;
  border: 0;
}

.dir-search__box input:focus-visible {
  outline: none;
}

.dir-search__box input::placeholder {
  color: #7d7f6f;
}

@media (max-width: 34rem) {
  .dir-search__box .btn {
    display: none;
  }
}
