/* Persistent shell stability */
html{scrollbar-gutter:stable}

/* Shared viewport-filling shell: short pages place the footer at the bottom;
   long pages retain normal document scrolling. Direct children only. */
body:has(> main):has(> .site-footer) {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body:has(> main):has(> .site-footer) > :is(.site-header, .site-footer) {
  flex: none;
}
body:has(> main):has(> .site-footer) > main {
  flex: 1 0 auto;
  min-width: 0;
}
