/* ==========================================================
   Footer tags – stacked text index (2026-11-19)
   Every group shown; small caps heading, inline links
   separated by "·", thin divider between groups.
   Loaded after site5.css; #footerTags scope wins specificity.
   ========================================================== */

#footerTags > div {
  display: block;
  margin-top: 8px;
  border-bottom: 1px solid rgba(157, 173, 255, 0.16);
}

/* ---- group row ---- */
#footerTags .footer__category {
  grid-column: auto;
  background: none;
  border: 0;
  border-top: 1px solid rgba(157, 173, 255, 0.16);
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  padding: 22px 0;
  transition: none;
}

#footerTags .footer__category:hover {
  box-shadow: none;
}

/* heading: small uppercase, letter-spaced */
#footerTags .footer__category > h5 {
  display: block;
  padding: 0;
  margin: 0 0 12px;
  cursor: default;
}

#footerTags .footer__category > h5 > a {
  color: #8fa0c8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.15s ease;
}

#footerTags .footer__category > h5 > a:hover {
  color: var(--gold, #dfb148);
}

#footerTags .footer__category > h5 > .count {
  display: inline;
  width: auto;
  height: auto;
  margin-left: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: rgba(157, 173, 255, 0.55);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
#footerTags .footer__category > h5 > .count::before { content: "("; }
#footerTags .footer__category > h5 > .count::after { content: ")"; }

/* ---- inline list of links ---- */
#footerTags .footer__category > div {
  padding: 0;
}

#footerTags .footer__category > div > div {
  display: block;
  line-height: 1.75;
  font-size: 0; /* removes whitespace gaps between inline items */
}

/* inline-block: lines break between tags, so a "·" never starts a line */
#footerTags .footer__category > div > div > div {
  display: inline-block;
  max-width: 100%;
  font-size: 14px;
  margin-right: 0.45em;
}

#footerTags .footer__category > div > div > div:not(:last-child)::after {
  content: "·";
  padding-left: 0.45em;
  color: rgba(157, 173, 255, 0.4);
}

#footerTags .footer__category > div > div > div > a {
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #b9c6df;
  font-size: 14px;
  letter-spacing: 0;
  text-decoration: none;
  transition: color 0.15s ease;
}

#footerTags .footer__category > div > div > div > a:hover,
#footerTags .footer__category > div > div > div > a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--gold, #dfb148);
  text-underline-offset: 3px;
  outline: none;
}

/* game count after each tag: "Name (12)" */
#footerTags .tag-count {
  color: rgba(157, 173, 255, 0.55);
  font-size: 0.9em;
}
#footerTags .tag-count::before { content: "("; }
#footerTags .tag-count::after { content: ")"; }
#footerTags a:hover .tag-count {
  color: var(--gold, #dfb148);
}

/* tags with no games yet: dimmed */
#footerTags .is-empty > a {
  opacity: 0.45;
}

@media screen and (max-width: 640px) {
  #footerTags .footer__category {
    padding: 18px 0;
  }
  #footerTags .footer__category > div > div > div,
  #footerTags .footer__category > div > div > div > a {
    font-size: 13px;
  }
}
