/* Fixed customer-app footer. Body reserves matching space so page content never scrolls under it. */
.app-footer {
  position: fixed;
  inset-block-end: 0;
  inset-inline: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--size-3);
  padding: var(--size-2) var(--size-4);
  /* Clear the phone's rounded corners / home indicator so the footer text isn't clipped. */
  padding-block-end: calc(var(--size-2) + env(safe-area-inset-bottom, 0px));
  font-size: var(--font-size-0);
  color: var(--text-muted);
  background: var(--surface-raised);
  border-block-start: 1px solid var(--border);
}

/* Desktop: the quick-links nav sits after the tagline on one centred row. At narrow widths it sits
   above the tagline as its own full-width centred row. */
.app-footer__links { order: 1; }
.app-footer__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--size-1) var(--size-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* A target of at least 24x24 CSS px (WCAG 2.5.8) at --font-size-0, with a visible focus ring. */
.app-footer__links a {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--size-5);
  padding-inline: var(--size-1);
  border-radius: var(--radius-1);
}
.app-footer__links a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

@media (max-width: 40rem) {
  .app-footer { flex-direction: column; gap: var(--size-1); }
  .app-footer__links { order: 0; inline-size: 100%; }
}

/* Reserve the footer's height plus the safe-area inset so page content never hides behind it. */
body.app { padding-block-end: calc(var(--size-8) + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 40rem) {
  body.app { padding-block-end: calc(var(--size-9) + var(--size-8) + env(safe-area-inset-bottom, 0px)); }
}
