/* Activity engines still write legacy top offsets; keep the footer in page flow. */
footer#footer.activity-footer {
  position: relative;
  inset: auto !important;
  margin: var(--activity-footer-gap, 0px) 0 0 !important;
  padding: 24px 12px 12px;
  width: 100%;
  box-sizing: border-box;
  clear: both;
  text-align: center;
}

/* The number activities wrap the shared footer in a second #footer element. */
section#footer:has(> footer.activity-footer) {
  position: static;
  inset: auto !important;
  margin: 0;
  padding: 0;
  display: flow-root;
}
