/* Minesite shared footer. Edit shared/site-footer.partial for markup. */
.site-footer {
  --footer-bg: var(--ms-bg-2, var(--bg-2, #071107));
  --footer-border: var(--ms-border, var(--border, rgba(130, 170, 130, 0.22)));
  --footer-border-strong: var(--ms-border-2, var(--border-2, rgba(130, 190, 130, 0.34)));
  --footer-text: var(--ms-text-3, var(--text-3, #9bb49b));
  --footer-text-strong: var(--ms-text, var(--text, #e4f2e4));
  --footer-muted: var(--ms-text-2, var(--text-2, #b7cfb7));
  --footer-accent: var(--ms-green, var(--green, #4ade80));
  margin-top: auto !important;
  background:
    linear-gradient(180deg, rgba(74, 222, 128, 0.055), transparent 34%),
    var(--footer-bg) !important;
  border-top: 1px solid var(--footer-border) !important;
  color: var(--footer-text) !important;
  font-family: var(--ms-sans, var(--sans, "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif)) !important;
}

.site-footer > .container,
.site-footer .container.footer-inner-grid,
.site-footer .container.footer-bottom-inner {
  width: min(1240px, calc(100% - 32px)) !important;
  max-width: 1240px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.site-footer .footer-inner-grid {
  display: grid !important;
  grid-template-columns: minmax(240px, 1.45fr) repeat(4, minmax(145px, 1fr)) !important;
  gap: 1.8rem 2rem !important;
  padding-top: 3.25rem !important;
  padding-bottom: 2.75rem !important;
  align-items: start !important;
  text-align: left !important;
}

.site-footer .footer-brand,
.site-footer .footer-col {
  min-width: 0 !important;
  text-align: left !important;
}

.site-footer .footer-brand {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0.9rem !important;
}

.site-footer .footer-logo {
  color: var(--footer-accent) !important;
  font-family: var(--ms-pixel, var(--pixel, "Press Start 2P", cursive)) !important;
  font-size: 0.66rem !important;
  line-height: 1.6 !important;
  letter-spacing: 0.1em !important;
  text-decoration: none !important;
  text-shadow: 0 0 18px rgba(74, 222, 128, 0.32) !important;
}

.site-footer .footer-brand p {
  max-width: 340px !important;
  margin: 0 !important;
  color: var(--footer-muted) !important;
  font-size: 0.88rem !important;
  line-height: 1.75 !important;
}

.site-footer .footer-quick-links,
.site-footer .footer-legal-links {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 0.45rem !important;
}

.site-footer .footer-quick-links a,
.site-footer .footer-legal-links a {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 34px !important;
  padding: 0.34rem 0.7rem !important;
  border: 1px solid var(--footer-border) !important;
  border-radius: 6px !important;
  background: rgba(74, 222, 128, 0.055) !important;
  color: var(--footer-muted) !important;
  font-size: 0.78rem !important;
  line-height: 1.2 !important;
  text-align: left !important;
  text-decoration: none !important;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease !important;
}

.site-footer .footer-col h4 {
  margin: 0 0 0.95rem !important;
  color: var(--footer-text-strong) !important;
  font-family: var(--ms-pixel, var(--pixel, "Press Start 2P", cursive)) !important;
  font-size: 0.45rem !important;
  line-height: 1.7 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

.site-footer .footer-col ul {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0.42rem !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.site-footer .footer-col li {
  margin: 0 !important;
  padding: 0 !important;
}

.site-footer .footer-col a {
  display: inline-flex !important;
  max-width: 100% !important;
  padding: 0.16rem 0 !important;
  color: var(--footer-text) !important;
  font-size: 0.86rem !important;
  line-height: 1.45 !important;
  overflow-wrap: anywhere !important;
  text-align: left !important;
  text-decoration: none !important;
  transition: color 0.18s ease !important;
}

.site-footer .footer-logo:hover,
.site-footer .footer-col a:hover,
.site-footer .footer-quick-links a:hover,
.site-footer .footer-legal-links a:hover {
  color: var(--footer-accent) !important;
}

.site-footer .footer-quick-links a:hover,
.site-footer .footer-legal-links a:hover {
  border-color: var(--footer-border-strong) !important;
  background: rgba(74, 222, 128, 0.1) !important;
}

.site-footer .footer-bottom-bar {
  border-top: 1px solid var(--footer-border) !important;
  background: rgba(0, 0, 0, 0.16) !important;
  padding: 1rem 0 !important;
}

.site-footer .footer-bottom-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.9rem !important;
  flex-wrap: wrap !important;
}

.site-footer .footer-bottom-inner small {
  color: var(--footer-text) !important;
  font-size: 0.76rem !important;
  line-height: 1.55 !important;
}

.site-footer .back-to-top {
  white-space: nowrap !important;
}

@media (max-width: 1120px) {
  .site-footer .footer-inner-grid {
    grid-template-columns: minmax(240px, 1.3fr) repeat(2, minmax(180px, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .site-footer > .container,
  .site-footer .container.footer-inner-grid,
  .site-footer .container.footer-bottom-inner {
    width: min(100% - 24px, 1240px) !important;
  }

  .site-footer .footer-inner-grid {
    grid-template-columns: 1fr !important;
    gap: 1.45rem !important;
    padding-top: 2.25rem !important;
    padding-bottom: 2rem !important;
  }

  .site-footer .footer-brand p {
    max-width: none !important;
  }

  .site-footer .footer-bottom-inner {
    align-items: flex-start !important;
    flex-direction: column !important;
  }
}
