/* BWS pages: the category page (views/bws/category.twig), whose article takes encyclopedia.css */

/* the right column: Recommended, See more, then the button to the category's search */
.bws-category-results {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.bws-category-products {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* the search page (views/bws/search.twig) */
.bws-search {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bws-search-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem 1rem;
}

/* the two selects side by side, each at most 12rem */
.bws-search-form .dg-component-select-wrapper {
  flex: 1 1 10rem;
  max-width: 12rem;
}

/* the Update button bws-search.js hides */
.bws-search-form [data-bws-search-button][hidden] {
  display: none;
}

/* results: row link boxes, one a row on phones, two from 640px */
.bws-search-results {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .bws-search-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* the category's feature box takes two rows; the first two results stack beside it */
  .bws-search-category--feature {
    grid-row: span 2;
  }
}


.bws-search-pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.bws-search-empty {
  margin: 0;
}
