/**
 * @file
 * Site footer component.
 */

.site-footer {
  margin: 0.75rem 1rem;
  padding: 3.5rem 4rem;
  border-radius: var(--jh-radius-panel);
  background: var(--jh-ink);
  color: var(--jh-footer-text);
  font-size: 0.9375rem;
  line-height: 1.8;
}

.site-footer a {
  color: var(--jh-footer-text);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--jh-white);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-footer :focus-visible {
  outline-color: var(--jh-orange);
}

.site-footer__main > div {
  display: grid;
  grid-template-columns: 2fr 2fr;
  gap: 1.5rem;
}

.site-footer p {
  margin: 0;
  color: var(--jh-footer-text);
  font-size: inherit;
}

.site-footer strong {
  color: var(--jh-white);
}

.site-footer__bottom > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: 1.5rem;
  color: var(--jh-footer-muted);
  font-size: 0.875rem;
}

@media (max-width: 820px) {
  .site-footer {
    margin: 0.5rem;
    padding: 2.25rem 1.375rem;
  }

  .site-footer__main > div {
    grid-template-columns: minmax(0, 1fr);
  }
}
