/* 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% - 16px, 1240px) !important;
  }

  .site-footer .footer-inner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.65rem 0.85rem !important;
    padding-top: 1rem !important;
    padding-bottom: 0.85rem !important;
  }

  .site-footer .footer-brand {
    grid-column: 1 / -1 !important;
    align-items: flex-start !important;
    gap: 0.55rem !important;
    padding-bottom: 0.25rem !important;
    text-align: left !important;
  }

  .site-footer .footer-brand p {
    display: none !important;
    max-width: none !important;
    font-size: 0.76rem !important;
    line-height: 1.45 !important;
    text-align: left !important;
  }

  .site-footer .footer-quick-links {
    display: flex !important;
    width: 100% !important;
    gap: 0.35rem !important;
  }

  .site-footer .footer-quick-links a {
    justify-content: flex-start !important;
    min-height: 30px !important;
    padding: 0.28rem 0.48rem !important;
    font-size: 0.72rem !important;
    text-align: left !important;
  }

  .site-footer .footer-col {
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    text-align: left !important;
  }

  .site-footer .footer-col h4 {
    margin-bottom: 0.32rem !important;
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
    font-size: 0.38rem !important;
    line-height: 1.45 !important;
    text-align: left !important;
  }

  .site-footer .footer-col ul {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: start !important;
    gap: 0.1rem 0.5rem !important;
  }

  .site-footer .footer-col a {
    justify-content: flex-start !important;
    padding: 0.08rem 0 !important;
    font-size: 0.68rem !important;
    line-height: 1.22 !important;
    text-align: left !important;
  }

  .site-footer .footer-bottom-bar {
    padding: 0.55rem 0 !important;
  }

  .site-footer .footer-bottom-inner {
    align-items: center !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 0.4rem !important;
    text-align: center !important;
  }

  .site-footer .footer-bottom-inner small {
    max-width: 34rem !important;
    font-size: 0.66rem !important;
    line-height: 1.35 !important;
    text-align: center !important;
  }

  .site-footer .footer-legal-links {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    width: 100% !important;
    gap: 0.32rem !important;
  }

  .site-footer .footer-legal-links a {
    justify-content: center !important;
    min-height: 28px !important;
    padding: 0.24rem 0.48rem !important;
    font-size: 0.7rem !important;
    text-align: center !important;
  }
}

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

  .site-footer .footer-brand {
    grid-column: 1 / -1 !important;
  }

  .site-footer .footer-quick-links {
    overflow-x: auto !important;
    padding-bottom: 0.1rem !important;
    scrollbar-width: none !important;
  }

  .site-footer .footer-quick-links::-webkit-scrollbar {
    display: none !important;
  }

  .site-footer .footer-quick-links a {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }
}
