/* The search page (searches/show), for a direct visit: a big field with a
   blue ring, how many it found, then the athletes and the families side by
   side, each a white list of rows, and the help line. On a phone the lists
   stack and the count goes; the field ends in a clear button instead of
   the hint. The top bar's dropdown is styled in layout.css (search-*). */
.search-page { max-width: 1120px; }

.search-page-form { margin: 0; }

/* A <label>, so a row, not base.css's stacked form label. */
.search-page-field {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-3);
  height: 52px;
  margin: 0;
  padding: 0 var(--space-4);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 2px var(--blue);
  font-weight: 400;
}

.search-page-field > svg { flex: none; color: var(--muted); }

.search-page-field input {
  flex: 1;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  font-size: 1.0625rem;
  outline: none;
}

.search-page-field input::placeholder { color: var(--faint); }
/* The field draws its own ring; the browser's own clear cross would double ours. */
.search-page-field input::-webkit-search-cancel-button { appearance: none; }

.search-page-hint { flex: none; color: var(--faint); font-size: var(--text-small); white-space: nowrap; }
.search-page-clear { display: none; flex: none; color: var(--faint); }

.search-page-title { margin: 26px 0 0; font-size: 1.625rem; letter-spacing: -.02em; }

.search-page-groups {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 20px;
}

.search-page .row-item { gap: 14px; padding: 14px 18px; }
.search-page .row-title { font-weight: 700; }
.search-page .avatar { width: 36px; height: 36px; color: var(--muted); }

.search-page-empty { margin-top: 20px; }
/* Full width: blocks.css caps a .helper at 70ch with a (0,2,2) selector. */
.search-page .search-page-help.helper { max-width: none; margin: 16px 0 0; line-height: 1.45; }

@media (max-width: 700px) {
  .search-page-field { gap: 10px; height: 50px; padding: 0 14px; }
  .search-page-hint, .search-page-title { display: none; }
  .search-page-clear { display: flex; }
  .search-page-groups { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .search-page .section-title { margin-left: 8px; }
  .search-page .row-item { flex-wrap: nowrap; padding: 12px 16px; }
  /* Every line opens a page, so it keeps its arrow on a phone too. */
  .search-page .row-item > svg { display: block; }
  /* The board leaves the help line off a phone once there are results. */
  .search-page-help.has-results { display: none; }
}
