/* The Find page: tabs, filter groups with counts, chips, cards with their reasons and the next steps (logical properties only). */
.find-tabs {
  flex-wrap: wrap;
  margin-block-end: var(--s-4);
}

.find-checks label,
.find-check label {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  min-block-size: 44px;
}

.find-checks input[type="checkbox"],
.find-check input[type="checkbox"] {
  flex: none;
  inline-size: 20px;
  block-size: 20px;
  margin: 0;
}

.find-group {
  margin: 0 0 var(--s-4);
  padding: 0;
  border: 0;
}

.find-group legend {
  padding: 0;
  font-weight: 700;
}

.find-checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: var(--s-2) var(--s-4);
  margin: var(--s-2) 0 0;
  padding: 0;
  list-style: none;
}

.find-n {
  color: var(--text-muted);
}

.find-check {
  margin: var(--s-2) 0;
}

.find-fold > summary,
.find-more > summary {
  cursor: pointer;
  font-weight: 700;
  margin-block-end: var(--s-3);
}

.find-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: center;
  margin: var(--s-3) 0;
  padding: 0;
  list-style: none;
}

.find-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: baseline;
  justify-content: space-between;
}

.find-list {
  display: grid;
  gap: var(--s-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Cards below the first screen are laid out and painted only when they come near it (a page lists up to 20; the first three stay ordinary so nothing above the fold waits). */
.find-card:nth-child(n + 4) {
  content-visibility: auto;
  contain-intrinsic-size: auto 11rem;
}

.find-card[hidden],
.find-card .near-away[hidden] {
  display: none;
}

.find-why {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: var(--s-2) 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: 0.9em;
}

.find-why li + li::before {
  content: "· ";
}

.find-next {
  display: grid;
  gap: var(--s-2);
  margin: var(--s-3) 0;
  padding: 0;
  list-style: none;
}

.find-pager {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  justify-content: center;
  margin-block: var(--s-4);
}

.find-saved {
  display: grid;
  gap: var(--s-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.find-save {
  margin-block-start: var(--s-5);
}
