/* User Provided Stylesheet */

.footer {
  margin-top: 0;
  padding: 0;
  border-top: none;
}

.site-footer-bar {
  width: 100%;
  box-sizing: border-box;
  background: #202020;
  padding: 26px 22px;
  margin-top: 2.5rem;
  text-align: center;
  color: #dbe7ff;
}

.site-footer-bar p {
  margin: 0;
  line-height: 1.9;
}

.site-footer-bar strong {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.site-footer-bar a {
  color: #9ec5ff;
  text-decoration: none;
  text-underline-offset: 2px;
  font-weight: 500;
  white-space: nowrap;
}

.site-footer-bar a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.site-footer-icons {
  margin-bottom: 0;
}

.site-footer-icons p {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 4px;
}

/* Override the MyST theme's 1.2em limit for images inside paragraph links. */
.site-footer-bar .site-footer-icons img {
  display: block;
  width: 64px;
  height: 64px;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

.site-footer-icons a:hover {
  opacity: 0.75;
}

.site-footer-bar a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .site-footer-bar {
    padding: 22px 16px;
    font-size: 0.95rem;
  }

  .site-footer-bar strong {
    display: block;
    margin-bottom: 0.6rem;
  }

  .site-footer-bar a {
    white-space: normal;
  }
}

/* Hide MyST source-download button globally */
a[aria-label*="Download"],
button[aria-label*="Download"],
a[href$=".md"],
a[href*=".md?"],
a[href*=".md#"],
a[href*="/index-"][href*=".md"] {
  display: none !important;
}
