/* Low-specificity defaults: block colour, spacing and typography controls take priority. */
@layer errorx-base {
	.errorx-block-header { padding-block: 1rem; border-bottom: 1px solid var(--errorx-line); background: #fff; }
	.errorx-block-header .wp-block-site-logo img { max-width: 180px; height: auto; }
	.errorx-block-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
	.errorx-stat { background: rgb(255 255 255 / 6%); border: 1px solid rgb(255 255 255 / 14%); border-radius: 12px; padding: 1.25rem; }
	.errorx-stat-value { font-size: clamp(2rem,4vw,2.75rem); font-weight: 900; line-height: 1.1; color: #fff; }
	.errorx-case .errorx-stat p { color: inherit; }
	.errorx-section .wp-block-columns { margin-bottom: 0; }
	.errorx-section .wp-block-column { min-width: 0; }
	.errorx-section .wp-block-buttons { margin-block: 1.5rem 0; }
	.errorx-card { height: 100%; }
	.errorx-footer { padding-bottom: 2rem; }
	.errorx-footer .wp-block-navigation { justify-content: flex-start; }
	.errorx-footer .wp-block-site-logo { background: white; padding: .5rem; border-radius: 8px; width: fit-content; }
	.errorx-footer h3 { color: inherit; }
	.errorx-mission p:last-child { color: var(--errorx-ink); }
	.errorx-cta .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: #fff; color: var(--errorx-red); }
	.errorx-cta .is-style-outline .wp-block-button__link { color: white; }
	.wp-block-post-template .errorx-post-card { height: 100%; }
	.errorx-contact-block { max-width: 44rem; }
	.errorx-contact-block .errorx-form { max-width: none; }
	.errorx-contact-block .errorx-field { margin-bottom: 1.5rem; }
	.wp-block-post-content > .errorx-section { margin-block: 0; }
	@media (max-width: 600px) {
		.errorx-block-stats { grid-template-columns: 1fr; }
		.errorx-compare { grid-template-columns: 1fr; }
	}
}
/* Keep the site shell flush while sections own their editable spacing. */
:where(.wp-site-blocks) > * { margin-block-start: 0; margin-block-end: 0; }

/* A chosen solid colour must replace the legacy hero gradient as well.
 * Zero specificity lets WordPress gradient presets and inline gradients win. */
:where(.wp-block-group.has-background) { background-image: none; }
