/* BaAlawi POLISH Q1: internal hero placement and alignment. */
header.wp-block-template-part + .ba-content-shell {
	margin-block-start: 0 !important;
}

.ba-page-shell,
.ba-learn-shell,
.ba-places-shell,
.ba-contribute-shell,
.ba-contact-shell,
.ba-policy-shell,
.ba-archive-shell,
.ba-search-shell,
.ba-article-shell {
	padding-top: 0 !important;
}

.ba-page-shell > .ba-page-intro,
.ba-learn-shell > .ba-archive-intro,
.ba-places-shell > .ba-page-intro,
.ba-contribute-shell > .ba-page-intro,
.ba-contact-shell > .ba-page-intro,
.ba-policy-shell > .ba-page-intro,
.ba-archive-shell > .ba-archive-intro,
.ba-search-shell > .ba-search-intro,
.ba-article-shell > .ba-article-header {
	display: flex;
	box-sizing: border-box;
	width: 100%;
	max-width: 64rem !important;
	min-height: clamp(19rem, 27vw, 24rem);
	flex-direction: column;
	justify-content: center;
	margin-block-start: 0 !important;
	margin-block-end: clamp(3rem, 6vw, 5.25rem) !important;
	padding: clamp(2.75rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 3.75rem) !important;
}

.ba-page-shell > .ba-page-intro > *,
.ba-learn-shell > .ba-archive-intro > *,
.ba-places-shell > .ba-page-intro > *,
.ba-contribute-shell > .ba-page-intro > *,
.ba-contact-shell > .ba-page-intro > *,
.ba-policy-shell > .ba-page-intro > *,
.ba-archive-shell > .ba-archive-intro > *,
.ba-search-shell > .ba-search-intro > *,
.ba-article-shell > .ba-article-header > * {
	width: min(100%, 52rem);
}

.ba-learn-shell > .ba-archive-intro .wp-block-search,
.ba-search-shell > .ba-search-intro .wp-block-search {
	width: min(100%, 52rem);
}

@media (max-width: 782px) {
	.ba-page-shell > .ba-page-intro,
	.ba-learn-shell > .ba-archive-intro,
	.ba-places-shell > .ba-page-intro,
	.ba-contribute-shell > .ba-page-intro,
	.ba-contact-shell > .ba-page-intro,
	.ba-policy-shell > .ba-page-intro,
	.ba-archive-shell > .ba-archive-intro,
	.ba-search-shell > .ba-search-intro,
	.ba-article-shell > .ba-article-header {
		min-height: 0;
		margin-block-end: 3rem !important;
		padding: 2.75rem 1.25rem !important;
	}
}

/* Mobile navigation targets are bundled because Qur'an discoverability must remain operable on touch screens. */
@media (max-width: 782px) {
	.ba-nav .wp-block-navigation__responsive-container-open,
	.ba-nav .wp-block-navigation__responsive-container-close {
		display: inline-flex;
		box-sizing: border-box;
		align-items: center;
		justify-content: center;
		width: 2.75rem;
		height: 2.75rem;
		min-width: 2.75rem;
		min-height: 2.75rem;
		padding: 0.625rem;
		border-radius: 999px;
	}

	.ba-nav .wp-block-navigation__responsive-container-open:focus-visible,
	.ba-nav .wp-block-navigation__responsive-container-close:focus-visible {
		outline: 3px solid color-mix(in srgb, var(--wp--preset--color--clay) 35%, transparent);
		outline-offset: 2px;
	}
}
