/*
 * Mertens Counseling — category landing page corrections.
 *
 * Loaded after style.css. Holds small fixes to the editorial
 * service-category layout that need to win over WordPress core's
 * layout rules. Keep this file short and specific.
 *
 * 1. Hero title alignment. Core's constrained layout centres every
 *    direct child of a constrained container with `margin: auto
 *    !important`, which centres the 620px hero headline inside the
 *    cover instead of aligning it to the content column with the
 *    call to action below it. The !important here matches core and
 *    the higher specificity wins.
 */
.mtc-cat-hero .wp-block-cover__inner-container > .mtc-cat-hero-title {
	margin-left: 0 !important;
	margin-right: auto !important;
}

/* The hero button must sit on the same left edge as the headline. */
.mtc-cat-hero .wp-block-cover__inner-container > .wp-block-buttons {
	margin-left: 0 !important;
	margin-right: auto !important;
}

/* 2. Mobile gutter. The cover picks up the theme's smaller root padding
 *    (about 16px), while every other band on the landing page uses a 24px
 *    gutter. Match them so the headline, statement and service list all
 *    share one left edge on a phone.
 */
@media (max-width: 781px) {
	.wp-block-cover.mtc-cat-hero {
		padding-left: 24px !important;
		padding-right: 24px !important;
	}
}
