/* Layout & rendering fixes
   Workarounds for WordPress core / Greenshift quirks. */

/* WordPress and Greenshift output <style> and <script> tags as direct children
   inside layout containers (is-layout-constrained / is-layout-flow). These
   invisible elements become :first-child in the DOM, so the actual first visible
   element is no longer matched by WP's :first-child { margin-block-start: 0 }
   rule and instead gets margin-block-start: 1.6rem. That margin collapses through
   all ancestors up to <body>, producing a gap at the top of the page.
   Fix: reset the margin on the first non-style/script child. */
:where(.is-layout-constrained, .is-layout-flow) > :nth-child(1 of :not(style, script)) {
	margin-block-start: 0;
}
