/* SPDX-License-Identifier: MIT
 *
 * filter-pill.css - SL_05D Part B, the filter pills (templates/components/filter_pills.html) and
 * the sub-line (templates/components/sub_line.html).
 *
 * The pill is the filter chip's shape (filter-chip.css). Active, it is filled with its OWN
 * series' token, the one its line is drawn from, and `all` with the neutral ink; the words are
 * reversed out of it in the surface token. Every colour here is a token: the tint names which
 * series, never which direction.
 */
.filter-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0; }
.filter-pill {
  display: inline-flex; align-items: center; min-height: 32px;
  padding: 0.3rem 0.95rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-2);
  color: var(--ink); font-size: 0.88rem; text-decoration: none;
}
.filter-pill:hover { border-color: var(--ink-2); }
.filter-pill[aria-current="true"] { color: var(--surface-2); font-weight: 600; }
.filter-pill[data-pill="lca"][aria-current="true"] { background: var(--series-lca); border-color: var(--series-lca); }
.filter-pill[data-pill="perm"][aria-current="true"] { background: var(--series-perm); border-color: var(--series-perm); }
.filter-pill[data-pill="warn"][aria-current="true"] { background: var(--series-warn); border-color: var(--series-warn); }
.filter-pill[data-pill="all"][aria-current="true"] { background: var(--ink); border-color: var(--ink); }

/* A table column the active pill does not show; a series column is two cells, the figure and
 * its change beside it, so the change goes with it. */
[data-pill-hidden="true"] { display: none !important; }
.data-table td[data-pill-hidden="true"] + td.trend { display: none !important; }

.sub-line { margin: 0.5rem 0 0; color: var(--ink-2); font-size: 0.95rem; line-height: 1.6; }
.sub-line__item { white-space: nowrap; }
.sub-line__figure { color: var(--ink); font-variant-numeric: tabular-nums; }
