/* Chips and chip lists (.chip, .chips). */

.chip {
  display:inline-flex;
  align-items:center;
  min-height:2.4rem;
  padding:0 1rem;
  border:1px solid var(--line-2);
  border-radius:999px;
  background:var(--card);
  font:500 .9rem var(--font-body);
  white-space:nowrap;
  cursor:pointer;
  color:var(--slate-800);
  transition:background-color .2s,border-color .2s,color .2s;
}
.chip:hover {
  border-color:var(--primary);
  color:var(--primary);
}
.chip[aria-current],
.chip[aria-pressed=true] {
  background:var(--slate-900);
  border-color:var(--slate-900);
  color:#fff;
}
.chips {
  display:flex;
  gap:.5rem;
  overflow-x:auto;
  padding:.2rem 0 .4rem;
  margin:0;
  list-style:none;
  scrollbar-width:thin;
}

.chip-sm {
  min-height:2rem;
  padding:0 .8rem;
  font-size:.85rem;
}

/* Phones: 44px is the size a thumb actually hits. The chips are the main way around the site on a phone, so they get
   it, and the row scrolls rather than wrapping into four lines. */
@media (max-width:45rem) {
  .chip {
    min-height:2.75rem;
    padding-inline:1rem;
  }
}
