/* Searching lists (docs/design/DESIGN_SYSTEM.md, "Search and paging"): the board's filter box, the
   Done page's search form and its "Show more" link. Its own layer so tasks.css stays small. */

@layer search {
  /* The Done page: a search box and its button above the list. */
  .list-search {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2) var(--space-3);
    margin: 0 0 var(--space-4);
  }

  .list-search input[type="search"] {
    flex: 1 1 14rem;
    min-width: 0;
    max-width: 28rem;
    font-size: var(--text-sm);
  }

  /* How many match and how many are shown, under the box (also read out by a live region). */
  .list-status,
  .filter-status {
    margin: 0 0 var(--space-3);
  }

  .list-more {
    display: flex;
    justify-content: center;
    margin: var(--space-4) 0 0;
  }

  /* The board: the box sits in the filter bar, next to sort and project. */
  .filter-search input[type="search"] {
    min-width: 14rem;
    font-size: var(--text-sm);
    letter-spacing: 0;
    text-transform: none;
  }

  /* While a search narrows the cards the order cannot be changed: no handle (board.js also
     refuses the keyboard move). */
  /* "2 / 5" must not break in the middle of a narrow column heading. */
  .task-column h2 .count {
    white-space: nowrap;
  }

  #task-board[data-filtered="true"] .grip {
    display: none;
  }
}
