/**
 * Heading Hierarchy Enforcer styles.
 *
 * - Visually hides the injected fallback <h1> while keeping it accessible to
 *   screen readers and search engine crawlers.
 * - Preserves the look of demoted headings so the header/footer/mega-menu
 *   continue to render as the user expects.
 */

.aia-injected-h1.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	-webkit-clip-path: inset(50%);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* Demoted headings keep block-level rhythm and font sizing inherited from
 * Elementor's widget classes. The marker classes below are no-ops for layout
 * but make the rewrite visible in DevTools. */
p.aia-was-h1,
p.aia-was-h2,
p.aia-was-h3,
p.aia-was-h4,
p.aia-was-h5,
p.aia-was-h6 {
	margin: 0;
}
