/* 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 #ddd;
  border-radius: 100px;
  background: white;
  color: #444;
  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: royalblue;
  color: royalblue;
}

#content .directory-category[aria-current="true"] {
  border-color: royalblue;
  background: royalblue;
  color: white;
}

.directory-category-count {
  color: #999;
  font-size: 12px;
  font-variation-settings: "wght" 500, "ital" 0;
}

#content .directory-category[aria-current="true"] .directory-category-count {
  color: rgba(255, 255, 255, 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: #eaf6ee;
  color: seagreen;
}

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

#content .directory-category.is-free:hover {
  border-color: seagreen;
  color: #1e6b41;
}

#content .directory-category.is-free[aria-current="true"] {
  border-color: #1e7a4a;
  background: #1e7a4a;
  color: white;
}

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

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