/* eboofl — WordPress integration only. site.css is the original site's stylesheet, ported
   byte-for-byte (minus Astro's scoping attributes); keep it that way and put anything that
   exists only because this is WordPress in here. */

/* WordPress's global styles give every direct child of the page wrapper and of a flow
   container a 24px top margin ("block gap"). The original page has no gaps between the
   header, main, footer, or between its sections — they butt together so the background
   colours meet. Zero those two rules for the wrappers and for our own <section> elements
   only; ordinary paragraphs on staff-written pages keep WordPress's normal spacing. */
body .wp-site-blocks > * { margin-block-start: 0; margin-block-end: 0; }
body .entry-content > section { margin-block-start: 0; margin-block-end: 0; }

/* WordPress adds "wp-block-group" to <main>; the original <main> had no box styling. Nothing
   to undo there, noted so nobody goes looking. */

/* The original site wrapped everything in .shell — min-height:100vh, a flex column — so the
   footer sat at the bottom of the window on a short page. WordPress's wrapper is
   .wp-site-blocks and the rebuild never had that rule, which nobody noticed while every page
   was the long homepage. e8 adds short pages (a post, an empty /blog), where the footer
   otherwise floats halfway up with white space under it. Same rule, WordPress's wrapper. */
body .wp-site-blocks { flex-direction: column; min-height: 100vh; display: flex; }
body .wp-site-blocks > main { flex: 1 0 auto; }
