/* Let editable search captions and the native sort select fit narrow screens. */
@media (max-width: 767px) {
  body.search-page .sr-results-bar__sort { flex-wrap: wrap; }
  body.search-page .sr-results-bar__sort > label {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  body.search-page .sr-results-bar__sort .form-select {
    min-width: 0;
    max-width: 100%;
  }
}

/* Prevent the form's intrinsic width from widening the single-column grid. */
@media (max-width: 991px) {
  .request-form-section .request-form__grid { grid-template-columns: minmax(0, 1fr); }
  .request-form-section .request-form__grid > * { min-width: 0; }
}
