/* The plugin categories, as pills. Worn by /plugins, where they narrow the
   page down, and by the front page, where they lead here. */

/* the categories, as a row of pills that wraps as it needs to */
.directory-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 760px;
  margin: 0 auto 16px;
}

#content .directory-category {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--lv6);
  border-radius: 100px;
  background: var(--lv0);
  color: var(--lv15);
  font-size: 15px;
  font-variation-settings: "wght" 600, "ital" 0;
  text-decoration: none;
  transition: border-color 0.12s, background-color 0.12s, color 0.12s;
}

#content .directory-category:hover {
  border-color: var(--link);
  color: var(--link);
}

#content .directory-category[aria-current="true"] {
  border-color: var(--link);
  background: var(--link-solid);
  color: var(--slab-ink);
}

.directory-category-count {
  color: var(--lv10);
  font-size: 12px;
  font-variation-settings: "wght" 500, "ital" 0;
}

#content .directory-category[aria-current="true"] .directory-category-count {
  color: rgba(var(--untint-rgb), 0.75);
}

/* Free wears the site's green (the cart, the "Free" tags) so it reads as
   the odd one out: pale until chosen, deep once it is */
#content .directory-category.is-free {
  border-color: #b9dfc6;
  background: var(--lv3);
  color: light-dark(seagreen, #7dca9f);
}

#content .directory-category.is-free .directory-category-count {
  color: #6fae88;
}

#content .directory-category.is-free:hover {
  border-color: light-dark(seagreen, #7dca9f);
  color: light-dark(#1e6b41, #97dab5);
}

#content .directory-category.is-free[aria-current="true"] {
  border-color: light-dark(#1e7a4a, #8bd9b0);
  background: #1e7a4a;
  color: var(--slab-ink);
}

#content .directory-category.is-free[aria-current="true"] .directory-category-count {
  color: rgba(var(--untint-rgb), 0.75);
}

/* what the chosen category is about, when the admin says */
