/**
 * AG Biz Blocks — plugin-wide spacing rules.
 *
 * Loaded into both the front-end and the block editor canvas via
 * enqueue_block_assets in ag-biz-blocks-plugin.php. The attribute
 * selector [class*="wp-block-ag-biz-blocks-"] matches every block in
 * this plugin — that class is auto-generated by WordPress from each
 * block's block.json name, so a single rule covers all seven blocks.
 */

/* 1.75rem (28px) breathing room around every AG Biz block. */
[class*="wp-block-ag-biz-blocks-"] {
	margin-top: 1.75rem;
	margin-bottom: 1.75rem;
}

/* When two AG Biz blocks stack directly, zero the second one's top
   margin so the visible gap stays 1.75rem (the first block's bottom
   margin) instead of doubling. Replicates margin-collapse, which the
   theme's flex post-content wrapper otherwise disables. */
[class*="wp-block-ag-biz-blocks-"] + [class*="wp-block-ag-biz-blocks-"] {
	margin-top: 0;
}

/* Hero-carousel and page-header sitting as direct children of the
   theme's .biz-grid wrapper — flush them to the top of the grid by
   removing the global 1.75rem top margin so they abut the navbar
   cleanly. Bottom margin is preserved so the next block still gets
   breathing room. */
.biz-grid > .wp-block-ag-biz-blocks-hero-carousel,
.biz-grid > .wp-block-ag-biz-blocks-page-header {
	margin-top: 0;
}
