:root { background: var(--ui-background); }
:root > body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--ui-background);
}
:root > body > .site-header { flex-shrink: 0; }
:root > body > main { flex: 1 0 auto; }
body footer.site-footer {
  display: block;
  width: 100%;
  min-height: 0;
  flex-shrink: 0;
  box-sizing: border-box;
  margin: auto 0 0;
  padding: 24px clamp(16px, 4vw, 48px);
  border: 0;
  border-top: 1px solid var(--ui-border-subtle);
  border-radius: 0;
  background: var(--ui-background);
  color: var(--ui-text-muted);
  box-shadow: none;
}
.site-footer .site-footer-inner {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: center;
  gap: 24px 40px;
  width: 100%;
  max-width: 1224px;
  margin: 0 auto;
}
.site-footer .site-footer-identity { display: grid; gap: 8px; min-width: 0; }
.site-footer .footer-brand { display: inline-flex; width: fit-content; padding: 0; }
body footer.site-footer .footer-brand img { width: 132px; height: auto; }
.site-footer .site-footer-identity small { font-size: .7rem; color: var(--ui-text-muted); }
.site-footer .footer-info { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 20px; margin: 0; }
.site-footer .footer-info a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--ui-text-secondary);
  font-size: .75rem;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
  box-shadow: none;
}
.site-footer .footer-info a:hover { color: var(--ui-accent-hover); text-decoration: underline; text-underline-offset: 4px; }
.site-footer a:focus-visible { outline: 3px solid var(--ui-focus); outline-offset: 4px; }
@media(max-width:760px) {
  .site-footer .site-footer-inner { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .site-footer .site-footer-identity { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
  .site-footer .footer-info { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); justify-content: start; gap: 2px 16px; }
  .site-footer .footer-info a { min-height: 44px; }
}
