/**
 * WordPress / a11y bridges for the v2 layout.
 * Keeps skip-link, screen-reader-text, admin bar and main wrapper sane
 * without fighting the marketing CSS.
 */

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

.screen-reader-text:focus {
	background-color: #fff;
	clip: auto !important;
	clip-path: none;
	color: #16181d;
	display: block;
	font-size: 1rem;
	height: auto;
	left: 0.5rem;
	line-height: normal;
	padding: 0.75rem 1rem;
	text-decoration: none;
	top: 0.5rem;
	width: auto;
	z-index: 100000;
}

.skip-link:focus {
	z-index: 100001;
}

/* Front page: breadcrumbs sit above the full-bleed hero — hide them. */
body.home .breadcrumbs,
body.home .site-main > .breadcrumbs {
	display: none;
}

/* Let v2 sections own horizontal padding; don’t force a classic container. */
.site-main {
	display: block;
	margin: 0;
	padding: 0;
	max-width: none;
}

/* Admin bar clearance for sticky/absolute nav */
body.admin-bar .nav--standalone {
	top: calc(32px + env(safe-area-inset-top, 0px));
}

@media screen and (max-width: 782px) {
	body.admin-bar .nav--standalone {
		top: calc(46px + env(safe-area-inset-top, 0px));
	}
}

/* Prefer reduced motion: kill long stage animations if CSS missed any */
@media (prefers-reduced-motion: reduce) {
	.orb,
	.stage__photo {
		animation: none !important;
	}
}

/*
 * Global mobile RWD safety net — card grids stack; no horizontal overflow.
 * Breakpoints aligned with wordpress-rwd.mdc (48rem ≈ 768px).
 */
@media (max-width: 48rem) {
	.perks,
	.steps,
	.bento,
	.seo-pillars,
	.seo-cards,
	.seo-cards--compact,
	.seo-flow,
	.feats,
	.feats--2,
	.feats--3,
	.guide,
	.hub,
	.hub--2,
	.posts,
	.contact-cards,
	.proc,
	.checks,
	.form__grid,
	.footer__grid {
		grid-template-columns: 1fr !important;
	}

	.perk,
	.step,
	.feat,
	.guide__item,
	.proc__item,
	.seo-card,
	.seo-pillar,
	.seo-flow__item {
		margin-top: 0 !important;
		min-height: 0;
		min-width: 0;
	}

	.hub .tile:nth-child(n),
	.hub--2 .tile:nth-child(n),
	.posts .post:nth-child(n) {
		margin-top: 0 !important;
	}

	html,
	body {
		overflow-x: clip;
		max-width: 100%;
	}

	.flow,
	.page-flow,
	.s2,
	.s3,
	.s4,
	.s5,
	.s6,
	.s7,
	.s8,
	.sec,
	.seo-more {
		max-width: 100%;
		overflow-x: clip;
	}

	/* Typography: smaller on phone than desktop */
	body {
		font-size: 15px;
	}

	.s2__title,
	.sec__title,
	.sub__title,
	.s2__title--long,
	.sec__title--long {
		font-size: clamp(1.65rem, 7.2vw, 2.5rem) !important;
		line-height: 1.05 !important;
	}

	.perk h3,
	.feat h3,
	.step h3,
	.seo-card h3 {
		font-size: 1rem !important;
		line-height: 1.25;
		overflow-wrap: anywhere;
		hyphens: auto;
	}

	.perk p,
	.feat p,
	.step p,
	.seo-card p,
	.s2__lead,
	.sec__intro,
	.sub__lead {
		font-size: 0.9375rem !important;
		line-height: 1.55;
	}

	.tile__info b {
		overflow-wrap: anywhere;
	}
}
