/* Compact shared footer. Each control owns its hit area; no negative margins. */
.site-footer.site-foot { display: block; order: 4; margin-top: 48px; padding: 12px 0 max(20px, env(safe-area-inset-bottom)); border-top: 1px solid var(--ink); color: var(--ink2); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 2px 18px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink); font-weight: 700; }
.footer-settings { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 4px; }
.site-footer .theme-pick { display: flex; align-items: center; gap: 10px; margin: 0; }
.site-footer .theme-pick > span { min-width: 34px; margin-right: 2px; }
.site-footer .theme-pick button { min-height: 32px; min-width: 44px; padding: 5px 6px; margin: 0; line-height: 1.4; border: 0; background: none; text-decoration: none; touch-action: manipulation; }
.site-footer .theme-pick button[aria-pressed="true"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.site-footer :is(a,button):focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.site-footer .footer-note { margin: 8px 0 0; font-size: 12px; line-height: 1.6; }
@media (max-width: 600px) {
  .site-footer.site-foot { margin-top: 28px; padding: 8px 0 max(16px, env(safe-area-inset-bottom)); font-size: 13px; }
  .footer-links { gap: 2px 14px; }
  .footer-settings { display: grid; gap: 6px; }
  .site-footer .theme-pick { gap: 10px; }
}
