/* Printmasters page header (any page) + optional content styling to match About / Contact. */

/* Header: a compact version of the About hero. */
.pma-page-header { margin-bottom: clamp(28px, 4vw, 48px); }
.pma-hero--page { padding-block: clamp(40px, 6vw, 80px) clamp(32px, 4.5vw, 56px); background: var(--pma-soft); position: relative; }
.pma-hero--page::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: linear-gradient(90deg, var(--pma-accent) 0 25%, var(--pma-accent2) 25% 50%, var(--pma-accent3) 50% 75%, var(--pma-ink) 75%); }
.pma-page-head { max-width: 820px; }
.pma-page-head .pma-h1 { font-size: clamp(32px, 4.6vw, 54px); }
.pma-page-head .pma-hero-lead { margin-top: 16px; }
.pma-page-head .pma-buttons { margin-top: 24px; }

/* Content styling (when "Also style the page content" is ticked). */
body.pma-styled :is(.wp-block-post-content, .entry-content, .woocommerce) :is(h1, h2, h3, h4) {
	font-family: var(--pma-font-head, inherit);
	color: var(--pma-ink);
	letter-spacing: -0.01em;
	text-wrap: balance;
}
body.pma-styled :is(.wp-block-post-content, .entry-content) > :is(h2, h3) { margin-top: 1.6em; }
body.pma-styled :is(.wp-block-post-content, .entry-content) a:not(.wp-block-button__link):not(.button):not(.pma-btn) {
	color: var(--pma-ink);
	text-decoration-color: var(--pma-accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

/* Buttons: block buttons and WooCommerce buttons become the rounded dark buttons. */
body.pma-styled :is(.wp-block-button__link, .woocommerce .button, .woocommerce button.button, .woocommerce a.button, .woocommerce input.button, .wc-block-components-button:not(.is-link), .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button) {
	background: var(--pma-ink) !important;
	color: var(--pma-bg, #fff) !important;
	border: 2px solid var(--pma-ink) !important;
	border-radius: 999px !important;
	font-weight: 700 !important;
	text-decoration: none !important;
	padding: 12px 24px;
	transition: background-color .15s ease;
}
body.pma-styled :is(.wp-block-button__link, .woocommerce .button, .wc-block-components-button:not(.is-link)):hover {
	background: color-mix(in srgb, var(--pma-ink) 85%, var(--pma-accent)) !important;
}
body.pma-styled .wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent !important;
	color: var(--pma-ink) !important;
}

/* Tables and inputs. */
body.pma-styled :is(.wp-block-post-content, .entry-content) table:not(.shop_table):not(.wc-block-cart-items) { border-collapse: collapse; width: 100%; }
body.pma-styled :is(.wp-block-post-content, .entry-content) table:not(.shop_table):not(.wc-block-cart-items) :is(th, td) { border-bottom: 1px solid var(--pma-line, #e5e5e5); padding: 10px 12px; text-align: start; }
body.pma-styled :is(.wp-block-post-content, .entry-content) table:not(.shop_table):not(.wc-block-cart-items) th { background: var(--pma-soft); }
body.pma-styled :is(.wp-block-post-content, .entry-content, .woocommerce) :is(input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], select, textarea):focus {
	outline: none;
	border-color: var(--pma-ink);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--pma-accent) 35%, transparent);
}

/* Small details. */
body.pma-styled :is(.wp-block-post-content, .entry-content) blockquote { border-inline-start: 4px solid var(--pma-accent2); padding-inline-start: 18px; }
body.pma-styled :is(.wp-block-post-content, .entry-content) hr { border: 0; height: 3px; width: 64px; background: linear-gradient(90deg, var(--pma-accent) 0 25%, var(--pma-accent2) 25% 50%, var(--pma-accent3) 50% 75%, var(--pma-ink) 75%); }
body.pma-styled .woocommerce-MyAccount-navigation a { text-decoration: none; }
body.pma-styled .woocommerce-MyAccount-navigation .is-active a { font-weight: 700; color: var(--pma-ink); }

/* The Business Account form already has its own heading – hide it under the page header. */
body.pma-has-header .pmba-head .pmba-eyebrow,
body.pma-has-header .pmba-head h2,
body.pma-has-header .pmba-head .pmba-lead { display: none; }

/* Business Account form: use the brand colours and rounded buttons. */
body.pma-styled .pmba { --pmba-accent: var(--pma-ink); }
body.pma-styled .pmba .pmba-button { border-radius: 999px !important; background: var(--pma-ink) !important; border-color: var(--pma-ink) !important; font-weight: 700; }
body.pma-styled .pmba .pmba-req { color: var(--pma-accent2); }
body.pma-styled .pmba .pmba-step { background: var(--pma-ink); }
