/* templates/pages/search.html — site search: one French blue-gray panel holding the
   field and the labeled filter groups, then status, results, and pager below it.
   Field and pills: partials/search-controls.css. Result rows match the verb rows in
   pages/conjugation-index.css. */

.search-page {
  padding-bottom: 3rem;
}

.search-panel {
  display: grid;
  gap: 1.15rem;
  margin-top: 2.75rem;
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  background: var(--color-search-panel);
}

.search-panel__filter {
  display: grid;
  gap: 0.5rem;
}

.search-panel__label {
  color: var(--color-text);
  font-size: var(--type-support-size);
  font-weight: 600;
  line-height: 1.3;
}

.search-panel__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* The visible message lives in each panel; the live status only shows the result count */
.search-page__status {
  margin: 2.25rem 0 0;
  color: var(--color-text-muted);
  font-size: var(--type-support-size);
}

.search-page:not([data-search-state="results"]) .search-page__status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.search-page [data-search-panel] > p {
  margin: 2.25rem 0 0;
  color: var(--color-text-muted);
  font-size: var(--type-support-size);
}

.search-page [data-search-panel][hidden] {
  display: none;
}

/* One list, filled row by row like .verb-columns */
.search-page__results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 3rem;
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
}

.search-page__row {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--color-hairline);
  color: inherit;
}

.search-page__title {
  font-weight: 700;
}

.search-page__meta {
  color: var(--color-text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.search-page__arrow {
  flex: none;
  align-self: center;
  width: 0.95rem;
  height: 0.95rem;
  margin-left: auto;
}

.search-page__row:hover .search-page__title {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.search-page__pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.5rem;
}

.search-page__pager .filter-pill {
  padding: 0.42rem 0.9rem;
}

@media (max-width: 640px) {
  .search-page__results {
    grid-template-columns: 1fr;
  }
}
