/* The footer follows the page's original content area without taking its height. */
body:has(> .site-footer) > header { flex: none; }
body:has(> .site-footer) > main,
body:has(> .site-footer) > .dashboard-placeholder-layout { flex-shrink: 0; }
body.error-page:has(> .site-footer) > main,
body.freeze-page:has(> .site-footer) > main { min-height: calc(100svh - var(--topbar-height)); }
body.blacklist-page:has(> .site-footer) { display: block; padding: 0; }
body.blacklist-page:has(> .site-footer) > main { display: grid; place-items: center; box-sizing: border-box; width: 100%; min-height: 100svh; padding: 24px; text-align: center; }

body > .site-footer {
  position: relative;
  flex: none;
  box-sizing: border-box;
  width: 100%;
  margin-top: 0;
  padding: 40px clamp(20px, 3vw, 56px) 28px;
  border-top: 1px solid #534b9533;
  background: #0a0b13e6;
  color: #898594;
  font: 400 12px/1.6 Inter, 'Segoe UI', sans-serif;
  text-align: left;
}
.site-footer .home-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 240px) repeat(3, minmax(0, 150px));
  justify-content: center;
  gap: clamp(24px, 3vw, 40px);
  width: min(100%, calc(690px + clamp(72px, 9vw, 120px)));
  margin: 0 auto;
}
.site-footer .home-footer-brand { display: inline-flex; align-items: center; gap: 9px; color: #e6e5ed; font-size: 18px; font-weight: 650; letter-spacing: -.025em; }
.site-footer .home-footer-brand img { display: block; flex: none; width: 28px; height: 28px; }
.site-footer .home-footer-tagline { margin: 12px 0 0; color: #898594; font-size: 12px; line-height: 1.6; }
.site-footer .home-footer-resources h2 { margin: 5px 0 16px; color: #e6e5ed; font-size: 13px; font-weight: 600; line-height: 1.6; letter-spacing: normal; }
.site-footer .home-footer-resources nav { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.site-footer .home-footer-resources a { color: #898594; text-decoration: none; font-size: 12px; transition: color 180ms; }
.site-footer .home-footer-resources a:hover { color: #889eff; }
.site-footer a:focus-visible { outline: 2px solid #889eff; outline-offset: 5px; border-radius: 3px; }
.site-footer .home-footer-bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(100%, calc(690px + clamp(72px, 9vw, 120px)));
  margin: 36px auto 0;
  padding-top: 24px;
  color: #898594;
  font-size: 11px;
  line-height: 1.6;
}
.site-footer .home-footer-bottom::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, #77718b55 6%, #77718b55 85%, transparent 100%); }
.site-footer .home-footer-bottom p { margin: 0; }
.site-footer .home-footer-copyright { flex: none; }
@media (max-width: 900px) {
  .site-footer .home-footer-inner, .site-footer .home-footer-bottom { width: 100%; }
  .site-footer .home-footer-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 16px; }
  .site-footer .home-footer-inner > div { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .site-footer .home-footer-bottom { align-items: flex-start; flex-direction: column; gap: 10px; }
}
@media (max-width: 480px) {
  body > .site-footer { padding: 36px 20px 28px; }
  .site-footer .home-footer-resources a { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-footer .home-footer-resources a { transition: none; }
}
