/* The person filter row. Self contained, so any page can drop one in. */

:root {
  /* One hue per person. These two knobs are what keep a dot readable in
     either theme, so a caller only ever has to pick a hue. */
  --pc-s: 60%;
  --pc-l0: 44%;
  --pc-l1: 66%;
}

@media (prefers-color-scheme: dark) {
  :root {
    --pc-s: 54%;
    --pc-l0: 54%;
    --pc-l1: 74%;
  }
}

.pc-row {
  display: flex;
  gap: var(--s2);
  overflow-x: auto;
  padding-bottom: var(--s1);
  scrollbar-width: none;
}
.pc-row::-webkit-scrollbar { display: none; }

@media (min-width: 60rem) {
  .pc-row { flex-wrap: wrap; overflow-x: visible; }
}

.pc-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0 0.7rem 0 0.45rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: var(--t-sm);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.pc-chip[aria-current="true"] {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.pc-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: var(--r-pill);
  flex: none;
}

.pc-face {
  width: 1.375rem;
  height: 1.375rem;
  border-radius: var(--r-pill);
  background: var(--sunk);
  object-fit: cover;
  flex: none;
  aspect-ratio: 1;
}

.pc-name { max-width: 6rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-chip b { font-weight: 800; }
.pc-share { font-size: var(--t-2xs); opacity: 0.65; }
