footer {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: rgb(from var(--color) r g b / 0.4);
  background: var(--footer-background);
  border-top: var(--footer-border);
  padding: 0.5rem var(--padding-x);
}
footer a:link,
footer a:visited,
footer a:focus,
footer a:hover,
footer a:active {
  color: var(--secondary-focus-color);
}
footer h2 {
  font-size: 1em;
  line-height: 1.05;
}
footer .source-details {
  max-width: 600px;
}
footer p.list-title {
  margin-bottom: 0;
}
footer ul {
  list-style: none;
  padding: 0;
  margin: 1em 0;
}
footer p.list-title + ul {
  margin-top: 0;
}
footer li {
  padding: 0;
  margin: 0.15em 0;
}
footer .ref-container {
  display: flex;
  flex-direction: column;
  flex: auto;
  text-align: right;
}
footer .ref {
  flex: auto;
}
footer .ref li {
  margin: 0 0 0.35em 0;
}
footer .cat span {
  display: inline-block;
  color: var(--base-color-contrast);
  background: rgb(from var(--base-color) r g b / 0.5);
  border-radius: 0.2em;
  padding: 0.1em 0.3em 0;
}
@media (width <= 600px) {
  footer {
    flex-direction: column;
    gap: 0.75em;
  }
  footer .ref-container {
    text-align: start;
  }
}
