/**
 * Shared site footer — used with templates/partials/site_footer.html
 * Scoped to footer.site-footer (avoids article footers, Bootstrap, and page .container).
 * More + Resources: two columns; headings and links are left-aligned within each column.
 * Copyright stays centered below. Stacks to one column on narrow viewports.
 */

footer.site-footer {
  background-color: var(--light-gray, #020202);
  padding: 3rem 0;
  margin-top: 4rem;
  flex-shrink: 0;
}

footer.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

footer.site-footer .footer-content {
  display: grid;
  /* !important: some pages load large CSS bundles after this file; keeps two columns only. */
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  justify-items: stretch;
  column-gap: clamp(2rem, 5vw, 3.5rem);
  row-gap: 2.75rem;
  width: 100%;
  max-width: min(42rem, 100%);
  margin-inline: auto;
  box-sizing: border-box;
}

@media (max-width: 639px) {
  footer.site-footer .footer-content {
    grid-template-columns: 1fr !important;
  }
}

footer.site-footer .footer-column {
  margin: 0;
  text-align: left;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* Resources (second column): extra inset when side-by-side for better balance vs More */
@media (min-width: 640px) {
  footer.site-footer .footer-column:last-child {
    padding-left: clamp(1rem, 3vw, 2rem);
  }
}

footer.site-footer .footer-column h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-light, #f8f9fa);
  letter-spacing: 0.5px;
}

footer.site-footer .footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

footer.site-footer .footer-column li {
  margin-bottom: 0.75rem;
}

footer.site-footer .footer-column a {
  color: var(--text-gray, #b8b8b8);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 300;
}

footer.site-footer .footer-column a:hover {
  color: var(--light-purple, #9d4edd);
}

footer.site-footer .copyright {
  margin-top: 2.75rem;
  width: 100%;
  max-width: 42rem;
  text-align: center;
  color: var(--text-light, #f8f9fa);
  font-size: 1rem;
  font-weight: 300;
  padding: 0 0.5rem;
  box-sizing: border-box;
}
