/*
 * WP core/cover adjustments for hk-hero and hk-page-header-cover.
 *
 * core/cover ships two rules the prototype doesn't want on our hero
 * covers:
 *
 *   .wp-block-cover { padding: 1em; }
 *   .wp-block-cover:not(.has-custom-content-position)
 *       .wp-block-cover__inner-container { width: calc(100% - 2em); }
 *
 * Combined, these push the inner container 1em to the right and
 * shrink it by 2em, so the heading, lede, and buttons sit about
 * 17px further right than the prototype at a 1280px viewport (1em
 * resolves to the body font-size, ~17.28px here).
 *
 * The prototype owns inline padding on the __inner element itself
 * (padding-inline: clamp(var(--space-l), 4vw, var(--space-2xl))) and
 * centres via margin-inline: auto up to max-width: var(--measure-wide).
 * These overrides let that math win:
 *
 *   - padding-inline on the cover → 0
 *   - width on the inner-container → auto (fills the cover edge-to-edge
 *     up to its own max-width)
 *
 * Scoped to .hk-hero and .hk-page-header-cover so other core/cover
 * blocks keep WP's default padding + content-width behaviour.
 *
 * Not a prototype file — this is WP wrapper plumbing, so it lives
 * outside assets/css/patterns/ and is enqueued separately.
 */

.wp-block-cover.hk-hero,
.wp-block-cover.hk-page-header-cover {
	padding-inline: 0;
}

/* WP's cover is display: flex. The inner container is therefore a
 * flex item, and its default width shrinks to content rather than
 * filling the parent. The prototype's heroes have the inner fill
 * the parent so .hk-hero__inner / .hk-page-header-cover__inner can
 * centre their max-width-constrained content with margin-inline:
 * auto. Width 100% + max-width (from __inner's own CSS) + auto
 * margins give the right result on both the home hero and the
 * service-page page-header-covers. */
.wp-block-cover.hk-hero > .wp-block-cover__inner-container,
.wp-block-cover.hk-page-header-cover > .wp-block-cover__inner-container {
	width: 100%;
}
