/* The Board and the filters it shares with the Calendar: the filter bar, the picks that are on, the filter sheet,
   the grouping buttons, and the groups that open into a second level and then the cards. Colors only from brand.css. */

/* The filter bar: Filters, the quick picks (and the screen's own extra, like Group by), then the picks that are on, each with its own ×. */
.filter-bar { display: grid; gap: 10px; }
.filter-bar .chip { padding: 8px 14px; }
.filter-btn { display: inline-flex; align-items: center; gap: 8px; }
.filter-btn .ic { width: 20px; height: 20px; }
.on-picks { list-style: none; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.on-pick {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 44px; padding: 6px 10px 6px 16px;
  border: 0; border-radius: 999px; background: var(--ice); font-weight: 800; text-align: left; cursor: pointer;
}
.on-pick span { min-width: 0; overflow-wrap: anywhere; }
.on-pick .ic { width: 18px; height: 18px; color: var(--slate); }
.on-pick:hover .ic { color: var(--navy); }
.filter-sheet { display: grid; gap: 22px; }
.filter-sheet .eyebrow { margin-bottom: 10px; }
.filter-sheet .chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; text-align: left; overflow-wrap: anywhere; }
.filter-sheet .chip .ic { width: 18px; height: 18px; }
.sheet-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.sheet-foot .btn { flex: 1 1 220px; }

/* Group by: a native pick, at the end of the filter row. */
.by-pick { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.by-pick span { color: var(--slate); font-size: 13px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.by-pick select {
  min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--hair); border-radius: 999px; background: var(--white);
  font-weight: 800; cursor: pointer;
}

/* The groups: a head that opens and closes, then a second level or the cards. */
.grps { list-style: none; padding: 0; margin: 0; display: grid; }
.grp + .grp { border-top: 1px solid var(--hair); }
.grp-head {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 24px; align-items: center; gap: 12px; width: 100%;
  min-height: 68px; padding: 10px 12px; border: 0; border-radius: 14px; background: none; text-align: left; cursor: pointer;
  transition: background .15s var(--ease);
}
.grp-head:hover:not(:disabled) { background: var(--off); }
.grp-head:disabled { cursor: default; color: var(--slate); }
.grp-head:disabled .grp-go { visibility: hidden; }
.grp-name { display: grid; gap: 2px; min-width: 0; }
.grp-name b { font-size: 19px; font-weight: 900; overflow-wrap: anywhere; }
.grp-name small { color: var(--late); font-size: 17px; font-weight: 800; }
.grp-no, .grp-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: var(--ice);
  color: var(--navy); font-weight: 900; font-variant-numeric: tabular-nums;
}
.grp-icon .ic { width: 22px; height: 22px; }
.grp-head:disabled .grp-no { background: var(--off); }
.grp-tile { width: 44px; height: 44px; border-radius: 12px; }
.grp-tile .ic { width: 24px; height: 24px; }
.grp-n {
  min-width: 40px; padding: 4px 10px; border-radius: 999px; background: var(--navy); color: var(--white);
  font-weight: 900; text-align: center; font-variant-numeric: tabular-nums;
}
.grp-head:disabled .grp-n { background: var(--off); color: var(--slate); }
.grp-go { color: var(--slate); transition: transform .2s var(--ease); }
.grp.open > .grp-head .grp-go { transform: rotate(90deg); }
.grp.open > .grp-head { background: var(--off); }
.grp > .reqs, .grp > .grps { padding: 6px 0 10px; animation: open-down .2s var(--ease); }
.grp > .grps { margin: 6px 0 4px 16px; padding: 0; }
.grp.inner .grp-head { min-height: 60px; }
.grp.inner .grp-name b { font-size: 17px; }
@keyframes open-down { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
  .grp > .reqs, .grp > .grps { animation: none; }
  .grp-go { transition: none; }
}

@media (min-width: 900px) {
  .by-pick { margin-left: auto; }
  .grp-head { min-height: 72px; padding: 12px 16px; }
}
