/* Footer fixed to bottom of the viewport + content padding to avoid overlap */

/* You can tweak this if you want a taller/shorter footer */
:root {
  --footer-h: 64px;
}

/* Make space at the bottom so content isn't hidden behind the fixed footer */
.page-frame {
  padding-bottom: calc(var(--footer-h) + var(--space-3) + env(safe-area-inset-bottom, 0px));
}

/* Lock the footer to the bottom of the screen */
.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;

  /* Keep your existing look */
  background: color-mix(in oklab, var(--surface), transparent 20%);
  border-top: 2px solid var(--border);
  z-index: 40; /* below sticky header (50), above content */
}

/* Ensure footer content is vertically centered and respects the height */
.footer-inner {
  min-height: calc(var(--footer-h) + env(safe-area-inset-bottom, 0px));
  padding: var(--space-4) var(--space-4) env(safe-area-inset-bottom, 0px) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}