/* A quiet, persistent main-site footer, below menus and modal layers. */
body.has-name-si-site-footer {
  --site-footer-height: calc(44px + env(safe-area-inset-bottom, 0px));
}
body.has-name-si-site-footer::after {
  content: "";
  display: block;
  height: var(--site-footer-height);
}
.name-si-site-footer {
  box-sizing: border-box;
  position: fixed;
  z-index: 20;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--site-footer-height);
  padding: 0 max(24px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(24px, env(safe-area-inset-left, 0px));
  border-top: 1px solid #363220;
  background: #101113;
  color: #d6c68f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}
.name-si-site-footer-copyright { flex: 0 0 auto; }
.name-si-site-footer nav { display: flex; align-items: center; gap: 20px; height: 43px; }
.name-si-site-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  color: #f5d766;
  text-decoration: none;
  border-radius: 4px;
  -webkit-tap-highlight-color: #ffd52e24;
}
.name-si-site-footer a:hover { color: #fff1ac; text-decoration: underline; text-underline-offset: 4px; }
.name-si-site-footer a:focus-visible { outline: 2px solid #ffd52e; outline-offset: -4px; }
.name-si-site-footer-x { min-width: 24px; }
.name-si-site-footer-x svg { display: block; width: 14px; height: 14px; }

/* Desktop dashboards scroll internally; reserve footer space in their viewport. */
body.has-name-si-site-footer:has(.dashboard-page) main {
  height: calc(100dvh - var(--site-footer-height));
}
body.has-name-si-site-footer:has(.dashboard-page)::after { display: none; }
body.has-name-si-site-footer.pricing3-more-view {
  --more-bottom: calc(var(--site-footer-height) + 12px);
}
body.has-name-si-site-footer.pricing3-more-view:not(:has(.pricing-sync-more[open]))::after { display: none; }

@media (max-width: 720px) {
  .name-si-site-footer {
    padding-inline: max(14px, env(safe-area-inset-left, 0px)) max(14px, env(safe-area-inset-right, 0px));
    font-size: 12px;
    gap: 8px;
  }
  .name-si-site-footer nav { gap: 12px; }
  body.has-name-si-site-footer:has(.dashboard-page) main { height: auto; }
  body.has-name-si-site-footer:has(.dashboard-page)::after { display: block; }
}
@media (max-width: 360px) {
  .name-si-site-footer { padding-inline: 10px; font-size: 11px; }
  .name-si-site-footer nav { gap: 10px; }
}
@media print {
  .name-si-site-footer, body.has-name-si-site-footer::after { display: none; }
  body.has-name-si-site-footer:has(.dashboard-page) main { height: auto; }
}

/* Gems uses document scrolling in short tablet landscape windows, too. */
@media (min-width:761px) and (max-width:900px) and (max-height:520px) {
 body.has-name-si-site-footer:has(.gems-page) main { height:auto; }
 body.has-name-si-site-footer:has(.gems-page)::after { display:block; }
}
