/* =========================================================================
   Browsing requests — PW-05, PW-06

   A list screen. The design job is to keep the filters out of the way of
   the results: they sit in one row that wraps, above the count, and they
   never grow taller than the first card.
   ========================================================================= */

.pw-browse__header {
  padding-block: var(--pw-space-6) var(--pw-space-4);
}

.pw-browse__title {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pw-space-3);
  align-items: baseline;
  margin: 0;
  font-size: var(--pw-text-2xl);
  font-weight: var(--pw-weight-bold);
  line-height: var(--pw-leading-tight);
  letter-spacing: var(--pw-tracking-tight);
}

.pw-browse__lead {
  max-inline-size: var(--pw-measure);
  margin: var(--pw-space-3) 0 0;
  color: var(--pw-text-secondary);
  font-size: var(--pw-text-lg);
  line-height: var(--pw-leading-relaxed);
}

/* --- Filters ------------------------------------------------------------- */

.pw-browse__filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pw-space-4);
  align-items: flex-end;
  padding-block: var(--pw-space-5);
  border-block-end: 1px solid var(--pw-border);
}

.pw-filters {
  display: contents;
}

.pw-filters__field {
  display: flex;
  flex: 1 1 12rem;
  flex-direction: column;
  gap: var(--pw-space-1);
  min-inline-size: 0;
}

.pw-filters__label {
  margin: 0;
  font-size: var(--pw-text-xs);
}

.pw-filters__clear {
  flex: 0 0 auto;
}

/* --- Results ------------------------------------------------------------- */

.pw-browse__results {
  padding-block: var(--pw-space-5) var(--pw-space-8);
}

.pw-browse__count {
  margin: 0 0 var(--pw-space-5);
  color: var(--pw-text-secondary);
  font-size: var(--pw-text-sm);
}

.pw-browse__more {
  display: block;
  margin: var(--pw-space-6) auto 0;
}

/* --- The country prompt -------------------------------------------------- */

/* Not an empty state: nothing is missing from the data, we simply have not
   been told where to look. Saying "no results" here would be a lie. */
.pw-browse__prompt {
  display: flex;
  flex-direction: column;
  gap: var(--pw-space-3);
  align-items: center;
  max-inline-size: 34rem;
  margin-inline: auto;
  padding-block: var(--pw-space-8);
  text-align: center;
}

.pw-browse__prompt .pw-select {
  inline-size: 100%;
  max-inline-size: 20rem;
}

.pw-browse__prompt .pw-label {
  margin: var(--pw-space-4) 0 0;
}
