/*
 * Search results: the box, then a row per competition (swatch, name, sport,
 * View) and per team (crest, name, league, Subscribe).
 */

.search-page {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 28px var(--gutter) 64px;
}

.page-search {
  max-width: 640px;
  margin-top: 20px;
}

.page-search .search-input {
  min-height: 52px;
  font-size: 18px;
}

.page-search .button {
  min-height: 52px;
}

.search-none {
  margin-top: 28px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 18px;
}

.results {
  margin-top: 40px;
}

.results .section-title {
  margin-bottom: 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}

.result-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.result {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}

.result-mark {
  width: 40px;
  height: 40px;
}

.result-mark.crest {
  object-fit: contain;
}

/* A competition's colour, as a square the size of a crest's middle. */
.result-mark.swatch {
  width: 28px;
  height: 28px;
  margin: 6px;
  border-radius: 6px;
  background: var(--c);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 20%, transparent);
}

.result-text {
  display: grid;
  gap: 2px;
  overflow-wrap: anywhere;
}

.result-name {
  font-size: 17px;
  font-weight: 700;
}

.result-meta {
  color: var(--muted);
}

.result .button {
  min-height: 44px;
  padding: 0 16px;
}

@media (width <= 380px) {
  .result {
    gap: 12px;
  }

  .result .button {
    padding: 0 12px;
    font-size: 15px;
  }
}
