/*
 * WordPress compatibility shims.
 *
 * site.css is the design. These few rules only cancel differences introduced by
 * WordPress block markup, so the block-built page renders byte-for-byte like the
 * original hand-coded HTML. Keep this file tiny — if a rule here is about how the
 * site LOOKS rather than about a WordPress artefact, it belongs in site.css.
 */

/* .kicker was a <span>; as a block it becomes a <p>, which carries UA margins. */
p.kicker { margin: 0; }

/* Group blocks that stand in for the original layout containers must not pick up
   block-editor spacing. Layout styles are already off via disable-layout-styles;
   this guards against a stray margin on the first/last child. */
.wp-block-group.wrap,
.wp-block-group.hero-inner,
.wp-block-group.about-grid,
.wp-block-group.about-copy,
.wp-block-group.caps,
.wp-block-group.cap,
.wp-block-group.split,
.wp-block-group.panel,
.wp-block-group.trust-grid,
.wp-block-group.trust-item { margin-block: 0; }

/* core/list rendered with the .plist class keeps the original check markers. */
ul.wp-block-list.plist { list-style: none; margin: 0; padding: 0; }

/* The editor canvas has no .co-header/.co-footer around the content; give the
   edited sections room so they are not flush against the editor chrome. */
.editor-styles-wrapper .hero-inner { max-width: 100%; }

/* WordPress admin bar overlaps a fixed header for logged-in users only. */
body.admin-bar .co-header { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .co-header { top: 46px; }
}
