@charset "utf-8";

/* The search form: on the missing page and when a search finds nothing
   (search.php, 404.php). Not in the mockup, which has no search: built
   from its controls — the field is the reading column's width, with the
   site's own button beside it. Tokens only. */

.sh-search {
  display: flex;
  gap: var(--space-xs);
  max-width: var(--measure);
  margin-block: var(--space-md);
}

.sh-search__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: var(--space-xs) var(--space-sm);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--colour-text);
  background-color: var(--colour-bg-card);
  border: var(--border-hairline);
  border-radius: var(--radius-sm);
}

.sh-search__input::placeholder {
  color: var(--colour-text-meta);
  opacity: 1;
}

.sh-search__input:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
  border-color: var(--colour-focus);
}

/* The button keeps .sh-button's own look; it only must not shrink. */
.sh-search .sh-button {
  flex: none;
}

/* Centred with the rest of the missing page. */
.text-centre > .sh-search {
  margin-inline: auto;
}
