/* custom.css - site overrides */

:root {
  --site-footer-height: 44px;
}

/* Fix Stellar footer at the bottom */
.page-footer.footnote {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;

  /* nicer look */
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  padding: 10px 14px;
  margin: 0;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.page-footer.footnote hr {
  display: none;
}

/* compact text */
.page-footer.footnote .text {
  max-width: 1100px;
  margin: 0 auto;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(0,0,0,0.75);
}

.page-footer.footnote .text p {
  margin: 0;
}

/* Prevent footer from covering page content */
body {
  padding-bottom: calc(var(--site-footer-height) + env(safe-area-inset-bottom));
}

@media (prefers-color-scheme: dark) {
  .page-footer.footnote {
    background: rgba(20, 20, 20, 0.78);
    border-top: 1px solid rgba(255,255,255,0.10);
  }
  .page-footer.footnote .text {
    color: rgba(255,255,255,0.78);
  }
}

@media (max-width: 768px) {
  :root { --site-footer-height: 70px; }
  .page-footer.footnote {
    padding: 10px 12px;
  }
  .page-footer.footnote .text {
    font-size: 12px;
  }
}

/* Slim footer layout */
.page-footer.footnote .text { padding: 0; }
.site-footer-slim {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.site-footer-slim .left,
.site-footer-slim .right {
  white-space: nowrap;
}
.site-footer-slim a { text-decoration: none; }

@media (max-width: 768px) {
  .site-footer-slim .left,
  .site-footer-slim .right { white-space: normal; }
}
