/*
Theme Name: Mertens Counseling
Theme URI: https://www.mertenscounseling.com
Author: SEOteric
Author URI: https://www.seoteric.com
Description: A calm, welcoming block theme for Mertens Counseling. Built entirely with native WordPress Global Styles (theme.json) and Gutenberg blocks, with no page builders and no custom HTML.
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.5.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mertens-counseling
Tags: block-theme, full-site-editing, accessibility-ready
*/

/* ------------------------------------------------------------------
   Site header
   The template-part wrapper (<header class="wp-block-template-part">)
   is the sticky element: the inner header group is only as tall as the
   bar itself, so it has no room to travel. The wrapper spans the page.
   ------------------------------------------------------------------ */
header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 99;
	box-shadow: 0 1px 3px rgba(12, 40, 66, 0.06);
}

/* Keep the sticky bar clear of the WordPress admin bar. */
body.admin-bar header.wp-block-template-part {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar header.wp-block-template-part {
		top: 46px;
	}
}

/* In-page anchors must not land underneath the sticky bar. */
html {
	scroll-padding-top: 96px;
}

/* The wordmark must never be squeezed or cropped inside the flex row. */
.is-sticky-header .wp-block-image img {
	max-height: none;
	object-fit: contain;
}

/* ------------------------------------------------------------------
   Gravity Forms — one form design used everywhere
   Card chrome (panel, soft-blue top edge, eyebrow, serif heading)
   lives in the page content. Field, label, input and button styling
   lives here so every instance matches. The !important flags are
   required to win over the plugin's own Orbital theme rules.
   ------------------------------------------------------------------ */

/* A form card sitting on an ivory band needs a soft lift to separate. */
.wp-block-group.has-white-background-color:has(.gform_wrapper) {
	box-shadow: 0 18px 44px rgba(30, 61, 75, 0.07);
}

/* A form card on an ivory band that was filled with the band colour
   instead of white reads as one slab; give it the white panel the
   design system uses. */
.single-service .entry-content > .wp-block-group:has(.gform_wrapper) > .wp-block-columns > .wp-block-column > .wp-block-group:has(.gform_wrapper) {
	background-color: #ffffff !important;
	box-shadow: 0 18px 44px rgba(30, 61, 75, 0.07);
}

/* Tight, even vertical rhythm between fields. */
.gform-theme--framework .gform_fields {
	row-gap: 16px !important;
	column-gap: 16px !important;
}

.gform-theme--framework .gfield,
.gform-theme--framework .gfield.gfield--type-post_content {
	margin-bottom: 0 !important;
}

/* Field labels: small, bold, deep navy, tight to the input. */
.gform-theme--framework .gform-field-label,
.gform-theme--framework .gfield_label,
.gform-theme--framework legend.gfield_label,
.gform-theme--framework .gform-field-label--type-sub {
	color: #1E3D4B !important;
	font-size: 0.875rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.01em;
	line-height: 1.35 !important;
	margin-bottom: 6px !important;
}

/* Text inputs, selects and the message box: white, square-ish, hairline. */
.gform-theme--framework input[type="text"],
.gform-theme--framework input[type="email"],
.gform-theme--framework input[type="tel"],
.gform-theme--framework input[type="number"],
.gform-theme--framework input[type="url"],
.gform-theme--framework select,
.gform-theme--framework textarea {
	background-color: #ffffff !important;
	border: 1px solid #D9CDBC !important;
	border-radius: 3px !important;
	box-shadow: none !important;
	color: #526C79 !important;
	font-size: 1rem !important;
	line-height: 1.5 !important;
	padding: 12px 14px !important;
	width: 100%;
}

.gform-theme--framework input:focus,
.gform-theme--framework select:focus,
.gform-theme--framework textarea:focus {
	border-color: #2A7092 !important;
	box-shadow: 0 0 0 1px #2A7092 !important;
	outline: none;
}

/* Submit: deep navy pill with a trailing arrow. */
.gform-theme--framework .gform_button,
.gform-theme--framework input[type="submit"] {
	align-items: center;
	background-color: #1E3D4B !important;
	border: 0 !important;
	border-radius: 999px !important;
	color: #ffffff !important;
	cursor: pointer;
	display: inline-flex;
	font-size: 0.9375rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.01em;
	padding: 15px 34px !important;
	transition: background-color 0.15s ease;
	width: auto;
}

.gform-theme--framework .gform_button::after {
	content: "\2192" !important;
	display: inline-block !important;
	font-size: 1.05em;
	line-height: 1;
	margin-left: 10px;
	position: static;
}

.gform-theme--framework .gform_button:hover,
.gform-theme--framework input[type="submit"]:hover {
	background-color: #173F52 !important;
}

/* ------------------------------------------------------------------
   Gravity Forms message box height
   Gravity Forms prints a hard-coded rows="10" on the post-content field
   input and exposes no rows setting in the form definition, so the
   visible height is set here instead. 129px = 5 lines at the form
   theme's 21px line-height plus 12px top and bottom padding
   (border-box). Specificity beats the plugin's own textarea rules.
   ------------------------------------------------------------------ */
.gform-theme--framework .gfield--type-post_content textarea.textarea,
.gform-theme--framework .gfield--input-type-post_content textarea.textarea {
	height: 129px !important;
	min-height: 129px !important;
	max-height: 129px !important;
}

/* ------------------------------------------------------------------
   FAQ rows — native Details block styled as a hairline accordion with
   a circled +/− control on the right. Applies to every FAQ list on the
   site so the pattern stays consistent.
   ------------------------------------------------------------------ */
.wp-block-details {
	border-top: 1px solid #D9CDBC;
	padding: 22px 0;
}

.wp-block-details > summary {
	align-items: center;
	color: #1E3D4B;
	cursor: pointer;
	display: flex;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.0625rem;
	gap: 24px;
	justify-content: space-between;
	line-height: 1.45;
	list-style: none;
}

.wp-block-details > summary::-webkit-details-marker {
	display: none;
}

.wp-block-details > summary::marker {
	content: "";
}

.wp-block-details > summary::after {
	align-items: center;
	border: 1px solid #7E97A3;
	border-radius: 999px;
	color: #1E3D4B;
	content: "+";
	display: inline-flex;
	flex: 0 0 auto;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 1.125rem;
	height: 30px;
	justify-content: center;
	line-height: 1;
	width: 30px;
}

.wp-block-details[open] > summary::after {
	content: "\2212";
}

/* ------------------------------------------------------------------
   FAQ rows — remove card chrome
   The block theme's global styles render Details as a bordered, rounded
   card with its own background and spacing, which turns a FAQ list into
   a stack of pills. The design calls for one continuous list, so the
   card chrome is stripped and a single hairline rule carries the
   rhythm. The !important flags are required to beat global styles.
   ------------------------------------------------------------------ */
.wp-block-details {
	background-color: transparent !important;
	border: 0 !important;
	border-top: 1px solid #D9CDBC !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	margin: 0 !important;
	padding: 14px 0 !important;
}

.wp-block-details:last-child {
	border-bottom: 1px solid #D9CDBC !important;
}

.wp-block-details > summary {
	color: #1E3D4B !important;
	font-family: Georgia, "Times New Roman", serif !important;
	font-size: 1.0625rem !important;
	font-weight: 400 !important;
	line-height: 1.45 !important;
	padding: 0 !important;
}

.wp-block-details > summary ~ * {
	color: #526C79 !important;
	font-size: 0.9375rem !important;
	line-height: 1.7 !important;
	margin-top: 14px !important;
}

.wp-block-details > summary::after {
	height: 30px !important;
	width: 30px !important;
}

/* ------------------------------------------------------------------
   Service pages — kicker + display heading
   Band headings carry a small terracotta kicker above a display-size
   serif line. Both live inside the existing heading element as spans
   (the kicker is aria-hidden) so no extra block is needed and the
   heading keeps its own text for search engines.
   ------------------------------------------------------------------ */
.mtc-eyebrow {
	color: var(--wp--preset--color--terracotta);
	display: block;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	line-height: 1.4;
	margin-bottom: 16px;
	text-transform: uppercase;
}

.mtc-h2 {
	display: block;
	font-size: clamp(2.25rem, 3.4vw, 3rem);
	line-height: 1.05;
	text-wrap: balance;
}

/* ------------------------------------------------------------------
   Service pages — concern lists as a numbered hairline grid
   Symptom, sign and type lists read as numbered cells with a rule
   above each one, matching the service page design system. The counter
   resets per band, so two lists side by side in one band number 01-05
   and 06-10 instead of both starting at 01. Lists that sit directly in
   a band spread across columns; lists inside a half-width column stay
   in a single column of rows.
   ------------------------------------------------------------------ */
.single-service .entry-content > .wp-block-group {
	counter-reset: mtc-list;
}

.single-service .entry-content .wp-block-column > ul.wp-block-list,
.single-service .entry-content > .wp-block-group > ul.wp-block-list {
	column-gap: 48px;
	display: grid;
	grid-template-columns: 1fr;
	list-style: none;
	margin-left: 0;
	padding-left: 0;
}

.single-service .entry-content > .wp-block-group > ul.wp-block-list {
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.single-service .entry-content .wp-block-column > ul.wp-block-list > li,
.single-service .entry-content > .wp-block-group > ul.wp-block-list > li {
	border-top: 1px solid #D9CDBC;
	counter-increment: mtc-list;
	margin: 0;
	padding: 16px 0 18px;
}

.single-service .entry-content .wp-block-column > ul.wp-block-list > li::before,
.single-service .entry-content > .wp-block-group > ul.wp-block-list > li::before {
	color: var(--wp--preset--color--terracotta);
	content: counter(mtc-list, decimal-leading-zero);
	display: block;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	margin-bottom: 8px;
}

/* ------------------------------------------------------------------
   Service pages — centre band children that carry their own width
   Some bands are full width without a constrained layout, so a heading
   or FAQ stack with its own max-width sits against the left edge. Auto
   margins put them back on the content column. The !important flag is
   needed to beat the margin reset in the FAQ block above.
   ------------------------------------------------------------------ */
.single-service .entry-content > .wp-block-group > .wp-block-heading,
.single-service .entry-content > .wp-block-group > .wp-block-details {
	margin-left: auto !important;
	margin-right: auto !important;
}

/* ------------------------------------------------------------------
   Service pages — intro band heading rule
   The reference page sets a short soft-blue rule between the intro
   headline and the body copy. Drawn here so every intro band matches
   without adding another block.
   ------------------------------------------------------------------ */
.single-service .entry-content > .wp-block-group:has(.gform_wrapper) h2 .mtc-h2::after {
	background-color: #E0ECF0;
	content: "";
	display: block;
	height: 4px;
	margin-top: 26px;
	width: 96px;
}

/* ------------------------------------------------------------------
   Service pages — FAQ band as heading column + accordion column
   The reference page puts the FAQ heading in a narrow left column and
   the accordion beside it. Grid does the same on any band whose only
   children are a heading and Details blocks.
   The heading spans every row so the accordion rows size themselves
   and sit flush: without the span the first row is as tall as the
   heading and leaves a gap under the first question.
   A full-bleed band carries 36px of global padding and a percentage in
   padding resolves against that 1368px content box, so the inline
   padding adds the 36px back before centring the 1180px column:
   36 + (1368 - 1180) / 2 = 130px, which matches every constrained
   band on the page.
   ------------------------------------------------------------------ */
.single-service .entry-content > .wp-block-group:has(> .wp-block-details) {
	align-items: start;
	column-gap: 80px;
	display: grid;
	grid-template-columns: 38% 1fr;
	padding-left: max(36px, calc(36px + (100% - 1180px) / 2)) !important;
	padding-right: max(36px, calc(36px + (100% - 1180px) / 2)) !important;
}

.single-service .entry-content > .wp-block-group:has(> .wp-block-details) > .wp-block-heading {
	align-self: start;
	grid-column: 1;
	grid-row: 1 / span 30;
	margin-bottom: 0 !important;
	margin-left: 0 !important;
	max-width: none !important;
	width: 100%;
}

.single-service .entry-content > .wp-block-group:has(> .wp-block-details) > .wp-block-details {
	grid-column: 2;
	justify-self: stretch;
	margin-left: 0 !important;
	max-width: none !important;
	width: 100% !important;
}

/* ------------------------------------------------------------------
   Service pages — concern bands as a rounded panel
   On coloured grounds the heading and its numbered cells sit inside a
   warm ivory panel with a large radius, the same card the reference
   page uses for "Therapy can help your child".
   ------------------------------------------------------------------ */
.single-service .entry-content > .wp-block-group.has-soft-blue-background-color:has(ul.wp-block-list) > .wp-block-columns,
.single-service .entry-content > .wp-block-group.has-soft-peach-background-color:has(ul.wp-block-list) > .wp-block-columns {
	background-color: #F8F4ED;
	border-radius: 28px;
	padding: 56px;
}

@media (max-width: 781px) {
	.mtc-h2 {
		font-size: 2.125rem;
	}

	.single-service .entry-content .wp-block-column > ul.wp-block-list,
	.single-service .entry-content > .wp-block-group > ul.wp-block-list {
		column-gap: 0;
		grid-template-columns: 1fr;
	}

	.single-service .entry-content > .wp-block-group:has(> .wp-block-details) {
		column-gap: 0;
		display: block;
		padding-left: 24px !important;
		padding-right: 24px !important;
	}

	.single-service .entry-content > .wp-block-group:has(> .wp-block-details) > .wp-block-heading {
		margin-bottom: 28px !important;
	}

	.single-service .entry-content > .wp-block-group.has-soft-blue-background-color:has(ul.wp-block-list) > .wp-block-columns,
	.single-service .entry-content > .wp-block-group.has-soft-peach-background-color:has(ul.wp-block-list) > .wp-block-columns {
		padding: 28px;
	}
}


/* ------------------------------------------------------------------
   Service-category landing pages — editorial layout
   Opt-in per page through block classes (.mtc-cat-hero, .mtc-statement,
   .mtc-help, .mtc-split, .mtc-cat-cta). Nothing here touches a page
   that does not carry these classes.
   ------------------------------------------------------------------ */

/* 1. Compact photographic hero with the title and a single CTA. */
.wp-block-cover.mtc-cat-hero {
	min-height: 520px;
	display: flex;
	align-items: center;
	padding-top: 96px;
	padding-bottom: 96px;
}

.mtc-cat-hero .wp-block-cover__inner-container {
	max-width: 1180px;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
}

.mtc-cat-hero-title {
	max-width: 620px;
	margin: 0 0 30px;
	font-size: clamp(2.4rem, 3.9vw, 3.4rem);
	line-height: 1.08;
	letter-spacing: -0.012em;
	color: #1E3D4B;
}

/* Shared pill button (hero + closing call to action). */
.mtc-pill-navy .wp-block-button__link {
	background-color: #1E3D4B;
	color: #F8F4ED;
	border: 0;
	border-radius: 999px;
	padding: 15px 32px;
	font-size: 0.95rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	transition: background-color 160ms ease, color 160ms ease;
}

.mtc-pill-navy .wp-block-button__link:hover,
.mtc-pill-navy .wp-block-button__link:focus {
	background-color: #2A7092;
	color: #FFFFFF;
}

/* 2. Centred statement band. */
.mtc-statement {
	padding-top: 96px;
	padding-bottom: 104px;
}

.mtc-statement-lead {
	max-width: 800px;
	margin: 0 auto;
	text-align: center;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.5rem, 2.4vw, 2.05rem);
	line-height: 1.44;
	letter-spacing: -0.005em;
	color: #1E3D4B;
}

.mtc-statement .mtc-statement-rule {
	width: 64px;
	height: 1px;
	margin: 36px auto;
	border: 0;
	border-top: 1px solid #C9A794;
	background: none;
}

.mtc-statement-sub {
	max-width: 680px;
	margin: 0 auto;
	text-align: center;
	font-size: 0.9rem;
	line-height: 1.75;
	color: #526C79;
}

/* 3. "What we help with" — arch collage beside a hairline list. */
.mtc-help {
	padding-top: 88px;
	padding-bottom: 96px;
}

.mtc-help-inner {
	display: grid;
	grid-template-columns: 40% 1fr;
	gap: 72px;
	align-items: start;
}

.mtc-help-heading {
	max-width: 280px;
	margin: 0 0 48px;
	font-size: clamp(1.9rem, 2.6vw, 2.4rem);
	line-height: 1.12;
	letter-spacing: -0.01em;
	color: #1E3D4B;
}

.mtc-collage {
	position: relative;
	aspect-ratio: 1 / 1.04;
}

.mtc-collage .wp-block-image {
	margin: 0;
}

.mtc-collage .wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mtc-collage-main {
	position: absolute;
	left: 0;
	top: 0;
	width: 64%;
	height: 88%;
}

.mtc-collage-main img {
	border-radius: 50% 50% 14px 14px / 36% 36% 14px 14px;
}

.mtc-collage-a {
	position: absolute;
	right: 0;
	top: 7%;
	width: 41%;
	height: 43%;
}

.mtc-collage-b {
	position: absolute;
	right: 9%;
	bottom: 0;
	width: 35%;
	height: 35%;
}

.mtc-collage-a img,
.mtc-collage-b img {
	border-radius: 16px;
	box-shadow: 0 14px 34px rgba(30, 61, 75, 0.16);
}

.mtc-row {
	display: grid;
	grid-template-columns: minmax(0, 30%) minmax(0, 1fr) 46px;
	align-items: center;
	column-gap: 26px;
	padding: 22px 0;
	margin: 0;
	border-top: 1px solid rgba(30, 61, 75, 0.16);
}

.mtc-svclist > .mtc-row:last-child {
	border-bottom: 1px solid rgba(30, 61, 75, 0.16);
}

.mtc-row h3 {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.05rem, 1.35vw, 1.3rem);
	font-weight: 400;
	line-height: 1.24;
	color: #1E3D4B;
}

.mtc-row h3 a {
	color: inherit;
	text-decoration: none;
}

.mtc-row h3 a:hover,
.mtc-row h3 a:focus {
	color: #2A7092;
}

.mtc-row p {
	margin: 0;
	font-size: 0.8rem;
	line-height: 1.6;
	color: #526C79;
}

.mtc-row .wp-block-buttons {
	margin: 0;
	justify-content: flex-end;
}

.mtc-row .wp-block-button__link {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(30, 61, 75, 0.35);
	border-radius: 50%;
	background: transparent;
	color: #1E3D4B;
	font-size: 1rem;
	line-height: 1;
	transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.mtc-row .wp-block-button__link:hover,
.mtc-row .wp-block-button__link:focus {
	background: #1E3D4B;
	border-color: #1E3D4B;
	color: #F8F4ED;
}

/* 4. Split band — photograph bleeding to the left edge, copy on white. */
.wp-block-columns.mtc-split {
	gap: 0;
	margin-top: 0;
	margin-bottom: 0;
}

.mtc-split > .wp-block-column {
	padding: 0;
	margin: 0;
}

.mtc-split-media {
	margin: 0;
	height: 100%;
}

.mtc-split-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
}

.mtc-split-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 100%;
	padding: 88px 96px;
	background-color: #FFFFFF;
}

.mtc-split-copy h2 {
	margin: 0 0 22px;
	font-size: clamp(1.9rem, 2.6vw, 2.4rem);
	line-height: 1.14;
	letter-spacing: -0.01em;
	color: #1E3D4B;
}

.mtc-split-copy > p {
	max-width: 460px;
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.75;
	color: #526C79;
}

.wp-block-columns.mtc-stats {
	margin: 48px 0 0;
	padding-top: 30px;
	border-top: 1px solid rgba(30, 61, 75, 0.16);
	gap: 28px;
}

.mtc-stats .wp-block-column {
	margin: 0;
}

.mtc-stats h3 {
	margin: 0 0 8px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.7rem;
	font-weight: 400;
	line-height: 1.1;
	color: #1E3D4B;
}

.mtc-stats p {
	margin: 0;
	font-size: 0.75rem;
	line-height: 1.5;
	color: #7A8E99;
}

/* 5. Closing call to action. */
.mtc-cat-cta {
	padding-top: 96px;
	padding-bottom: 104px;
	text-align: center;
}

.mtc-cat-cta-title {
	margin: 0 0 18px;
	font-size: clamp(1.9rem, 2.7vw, 2.4rem);
	line-height: 1.14;
	letter-spacing: -0.01em;
	color: #1E3D4B;
}

.mtc-cat-cta > p {
	max-width: 560px;
	margin: 0 auto 32px;
	font-size: 0.95rem;
	line-height: 1.7;
	color: #526C79;
}

@media (max-width: 781px) {
	.wp-block-cover.mtc-cat-hero {
		min-height: 420px;
		padding-top: 64px;
		padding-bottom: 64px;
	}

	.mtc-cat-hero-title {
		font-size: clamp(2.1rem, 8vw, 2.6rem);
		margin-bottom: 24px;
	}

	.mtc-statement {
		padding-top: 64px;
		padding-bottom: 72px;
	}

	.mtc-help {
		padding-top: 64px;
		padding-bottom: 72px;
	}

	.mtc-help-inner {
		display: block;
	}

	.mtc-help-heading {
		margin-bottom: 32px;
	}

	.mtc-collage {
		position: static;
		aspect-ratio: auto;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 14px;
		margin-bottom: 44px;
	}

	.mtc-collage-main,
	.mtc-collage-a,
	.mtc-collage-b {
		position: static;
		width: auto;
		height: auto;
	}

	.mtc-collage-main {
		grid-column: 1 / -1;
	}

	.mtc-collage-main img {
		aspect-ratio: 4 / 3;
		border-radius: 160px 160px 14px 14px / 84px 84px 14px 14px;
	}

	.mtc-collage-a img,
	.mtc-collage-b img {
		aspect-ratio: 1 / 1;
	}

	.mtc-row {
		grid-template-columns: minmax(0, 1fr) 44px;
		column-gap: 16px;
		row-gap: 6px;
		padding: 20px 0;
	}

	.mtc-row p {
		grid-column: 1 / 2;
	}

	.mtc-row .wp-block-buttons {
		grid-column: 2;
		grid-row: 1 / span 2;
		align-self: center;
	}

	.mtc-split-copy {
		padding: 56px 24px 64px;
	}

	.mtc-split-media img {
		aspect-ratio: 4 / 3;
		height: auto;
	}

	.wp-block-columns.mtc-stats {
		margin-top: 36px;
		gap: 18px;
	}

	.mtc-cat-cta {
		padding-top: 64px;
		padding-bottom: 72px;
	}
}

/* === J5 helpers: step rows + quote chip === */
.mtc-step-num{flex:0 0 28px}
.mtc-step-text{flex:1 1 auto;min-width:0}
.mtc-quote-chip{width:fit-content;margin:var(--wp--preset--spacing--20) auto 0;padding:var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);background-color:#FBF7F0;text-align:center;font-size:0.8125rem;font-style:italic}

/* === J5 helpers: mobile step order === */
/* Flatten the two nested step columns on small screens so a numbered process reads 01, 02, 03, 04, 05
   instead of column-by-column (01, 03, 05, 02, 04). Degrades to the current order without :has() support. */
@media (max-width:781px){
.wp-block-columns:has(> .wp-block-column > .wp-block-group .mtc-step-num){display:flex;flex-direction:column}
.wp-block-columns:has(> .wp-block-column > .wp-block-group .mtc-step-num) > .wp-block-column{display:contents}
.wp-block-columns:has(> .wp-block-column > .wp-block-group .mtc-step-num) > .wp-block-column:nth-child(1) > .wp-block-group:nth-child(1){order:1}
.wp-block-columns:has(> .wp-block-column > .wp-block-group .mtc-step-num) > .wp-block-column:nth-child(1) > .wp-block-group:nth-child(2){order:3}
.wp-block-columns:has(> .wp-block-column > .wp-block-group .mtc-step-num) > .wp-block-column:nth-child(1) > .wp-block-group:nth-child(3){order:5}
.wp-block-columns:has(> .wp-block-column > .wp-block-group .mtc-step-num) > .wp-block-column:nth-child(2) > .wp-block-group:nth-child(1){order:2}
.wp-block-columns:has(> .wp-block-column > .wp-block-group .mtc-step-num) > .wp-block-column:nth-child(2) > .wp-block-group:nth-child(2){order:4}
}
