/* Shared footer, loaded after page-specific styles. Same tokens and layout on every page. */
body { min-height: 100vh; display: flex; flex-direction: column; }
#main-content { flex: 1; width: 100%; }
.page { align-content: start; }
.site-footer { border-top: 1px solid var(--color-border); background: var(--color-card); color: var(--color-foreground); font-family: var(--font-sans); line-height: 1.5; }
.site-footer-inner { max-width: 76rem; margin: 0 auto; padding: 2.5rem 1.5rem 1.25rem; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2rem; }
.site-footer .site-footer-brand p { margin: .85rem 0 .5rem; color: var(--color-muted-foreground); font-size: .85rem; }
.site-footer-status { color: var(--color-primary); font-size: .75rem; }
.site-footer h2 { margin: 0 0 .65rem; color: var(--color-foreground); font-size: .85rem; font-weight: 600; line-height: 1.5; letter-spacing: 0; text-wrap: initial; }
.site-footer nav a { display: block; padding: .35rem 0; color: var(--color-muted-foreground); font-size: .82rem; text-decoration: none; overflow-wrap: anywhere; }
.site-footer nav a:hover { color: var(--color-primary); text-decoration: underline; }
.site-footer :focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }
.site-footer-bottom { grid-column: 1 / -1; border-top: 1px solid var(--color-border); padding-top: 1rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; color: var(--color-muted-foreground); font-size: .75rem; }
@media (max-width: 55rem) {
  .site-footer-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
  .site-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 35rem) {
  .site-footer-inner { padding: 1.5rem 1rem 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .site-footer nav a { min-height: 2.5rem; display: flex; align-items: center; }
  .site-footer-bottom { flex-direction: column; }
}
@media print { .site-footer nav { display: none; } }
