/*
Theme Name: BaAlawi
Theme URI: https://baalawi.com
Author: BaAlawi.com
Description: A calm, editorial Gutenberg theme for preserving Muslim heritage and family history.
Version: 0.1.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: baalawi
*/

:root {
	--ba-shadow: 0 24px 70px rgba(30, 41, 51, 0.12);
	--ba-shadow-soft: 0 14px 40px rgba(30, 41, 51, 0.07);
}

html {
	scroll-behavior: smooth;
}

body {
	text-wrap: pretty;
}

a {
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.wp-block-navigation-item__content:focus-visible {
	outline: 3px solid var(--wp--preset--color--clay);
	outline-offset: 4px;
	border-radius: 3px;
}

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

.screen-reader-text:focus {
	clip: auto !important;
	clip-path: none;
	display: block;
	height: auto;
	width: auto;
	top: 1rem;
	left: 1rem;
	z-index: 100000;
	padding: 0.75rem 1rem;
	background: var(--wp--preset--color--ivory);
	color: var(--wp--preset--color--forest-dark);
	box-shadow: var(--ba-shadow-soft);
}

.ba-site-header {
	position: relative;
	z-index: 20;
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--forest-dark) 12%, transparent);
	background: color-mix(in srgb, var(--wp--preset--color--ivory) 96%, transparent);
	backdrop-filter: blur(16px);
}

.ba-header-inner {
	min-height: 5.6rem;
}

.ba-brand-lockup,
.ba-footer-logo {
	display: inline-flex;
	align-items: center;
	line-height: 1;
	text-decoration: none;
}

.ba-brand-lockup img {
	display: block;
	width: clamp(7.25rem, 9.25vw, 8.75rem);
	height: auto;
}

.ba-nav {
	font-size: 0.96rem;
	font-weight: 650;
	letter-spacing: 0.01em;
}

.ba-nav .wp-block-navigation__container {
	gap: clamp(0.8rem, 1.35vw, 1.4rem);
}

.ba-nav .wp-block-navigation-item__content {
	text-decoration: none;
}

.ba-nav .current-menu-item > .wp-block-navigation-item__content,
.ba-nav .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--clay);
}

.ba-header-search {
	min-width: 2.75rem;
}

.ba-header-search .wp-block-search__inside-wrapper {
	border: 1px solid var(--wp--preset--color--mist);
	border-radius: 999px;
	padding: 0.25rem;
	background: var(--wp--preset--color--white);
}

.ba-header-search .wp-block-search__input {
	min-width: 8rem;
	border: 0;
	background: transparent;
	font-size: 0.92rem;
}

.ba-header-search .wp-block-search__button {
	margin: 0;
	padding: 0.65rem;
	border-radius: 999px;
}

.ba-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	min-height: min(720px, calc(100svh - 5.6rem));
	background: var(--wp--preset--color--ivory);
}

.ba-hero-layout {
	display: grid;
	grid-template-columns: minmax(32rem, 46%) minmax(21rem, 32%) minmax(17rem, 22%);
	min-height: inherit;
	padding: 0 !important;
}

.ba-hero-content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	box-sizing: border-box;
	max-width: none !important;
	margin: 0 !important;
	padding: clamp(3.25rem, 6vw, 6rem) clamp(2rem, 3.6vw, 4rem) clamp(3.25rem, 6vw, 6rem) max(clamp(2rem, 5vw, 5rem), calc((100vw - 1200px) / 2));
	background: linear-gradient(90deg, var(--wp--preset--color--ivory) 0%, var(--wp--preset--color--ivory) 87%, rgba(247, 243, 238, 0.9) 94%, rgba(247, 243, 238, 0.12) 100%);
}

.ba-hero-visual {
	position: relative;
	z-index: 0;
	grid-column: 2 / 4;
	grid-row: 1;
	overflow: hidden;
	min-height: inherit;
}

.ba-hero-visual::before {
	content: "";
	position: absolute;
	z-index: 1;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(247, 243, 238, 0.68), transparent 20%),
		linear-gradient(180deg, rgba(30, 41, 51, 0.04), rgba(30, 41, 51, 0.22));
	pointer-events: none;
}

.ba-hero-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 48% center;
	filter: saturate(0.86) contrast(0.96);
}

.ba-hero-editorial {
	position: relative;
	z-index: 3;
	grid-column: 3;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	box-sizing: border-box;
	min-width: 0;
	padding: clamp(2rem, 3vw, 3.25rem);
	background:
		radial-gradient(circle at 100% 0, rgba(74, 122, 127, 0.42), transparent 18rem),
		linear-gradient(rgba(30, 41, 51, 0.96), rgba(30, 41, 51, 0.98));
	color: var(--wp--preset--color--ivory);
}

.ba-hero-editorial::after {
	content: "";
	position: absolute;
	right: -5rem;
	bottom: -6rem;
	width: 16rem;
	height: 16rem;
	border: 1px solid rgba(200, 170, 100, 0.18);
	border-radius: 50%;
	box-shadow: 0 0 0 2.5rem rgba(200, 170, 100, 0.04), 0 0 0 5rem rgba(200, 170, 100, 0.025);
}

.ba-hero-editorial-mark {
	font-family: var(--wp--preset--font-family--editorial);
	font-size: clamp(3.5rem, 5vw, 5rem);
	line-height: 0.7;
	color: var(--wp--preset--color--antique-gold);
}

.ba-hero-editorial p {
	position: relative;
	z-index: 1;
	max-width: 15ch;
	margin: 1.5rem 0 2rem;
	font-family: var(--wp--preset--font-family--editorial);
	font-size: clamp(1.4rem, 1.7vw, 1.85rem);
	line-height: 1.28;
}

.ba-hero-editorial-rule {
	display: block;
	width: 3rem;
	height: 2px;
	background: var(--wp--preset--color--antique-gold);
}

.ba-kicker,
.ba-section-kicker {
	font-family: var(--wp--preset--font-family--sans);
	font-size: clamp(0.76rem, 0.72rem + 0.15vw, 0.83rem);
	font-weight: 750;
	letter-spacing: 0.15em;
	line-height: 1.4;
	text-transform: uppercase;
}

.ba-hero h1 {
	max-width: 13.5ch;
	font-size: clamp(3.65rem, 4.7vw, 4.85rem) !important;
	line-height: 1.02;
	letter-spacing: -0.045em;
}

.ba-hero-accent {
	color: var(--wp--preset--color--clay);
}

.ba-hero-copy {
	max-width: 33rem;
	font-size: clamp(1.08rem, 1.28vw, 1.24rem) !important;
	line-height: 1.62;
}

.wp-block-button__link {
	min-height: 3.1rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.wp-block-button__link:hover {
	transform: translateY(-2px);
	background-color: var(--wp--preset--color--apricot);
	box-shadow: 0 10px 24px rgba(30, 41, 51, 0.13);
}

.ba-section {
	position: relative;
}

.ba-section-heading {
	max-width: 48rem;
}

.ba-pathway-card,
.ba-archive-card,
.ba-region-card,
.ba-contribution-card {
	height: 100%;
	box-sizing: border-box;
	border: 0;
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--forest-dark) 18%, transparent);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.ba-pathway-number {
	display: grid;
	place-items: center;
	width: 2.4rem;
	height: 2.4rem;
	border: 1px solid var(--wp--preset--color--antique-gold);
	border-radius: 50%;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.72rem;
	font-weight: 800;
	line-height: 1;
	color: var(--wp--preset--color--clay);
}

.ba-pathway-card:hover,
.ba-archive-card:hover,
.ba-region-card:hover,
.ba-contribution-card:hover,
.ba-query-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 20px 46px rgba(30, 41, 51, 0.1);
}

.ba-pathway-card,
.ba-archive-card,
.ba-region-card,
.ba-contribution-card,
.ba-query-card {
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.ba-text-link {
	font-size: 0.96rem;
	font-weight: 700;
	text-decoration: none;
}

.ba-text-link::after {
	content: " →";
}

.ba-search-panel {
	position: relative;
	overflow: hidden;
	border-radius: 1.5rem;
	box-shadow: var(--ba-shadow);
	background-image:
		linear-gradient(rgba(30, 41, 51, 0.94), rgba(30, 41, 51, 0.98)),
		url("assets/brand/pattern_teal.png");
	background-size: auto, 9rem auto;
}

.ba-search-panel::after {
	content: "";
	position: absolute;
	right: -6rem;
	bottom: -7rem;
	width: 18rem;
	height: 18rem;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	box-shadow: 0 0 0 42px rgba(255, 255, 255, 0.025);
	pointer-events: none;
}

.ba-search-panel .wp-block-search__inside-wrapper {
	padding: 0.35rem;
	border: 0;
	border-radius: 0.65rem;
	background: var(--wp--preset--color--white);
}

.ba-search-panel .wp-block-search__input {
	min-height: 3.25rem;
	padding-inline: 1.25rem;
	border: 0;
	background: transparent;
}

.ba-search-panel .wp-block-search__button {
	margin: 0;
	border-radius: 0.55rem;
}

.ba-filter-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.ba-filter-list a {
	display: inline-flex;
	padding: 0.45rem 0.75rem;
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 999px;
	color: var(--wp--preset--color--ivory);
	font-size: 0.84rem;
	text-decoration: none;
}

.ba-filter-list a:hover {
	background: rgba(255, 255, 255, 0.1);
}

.ba-query-grid .wp-block-post-template {
	display: grid !important;
	gap: clamp(1rem, 2vw, 1.75rem);
}

.ba-query-grid .wp-block-post {
	width: auto !important;
	max-width: none !important;
}

.ba-query-card {
	height: 100%;
	box-sizing: border-box;
	border-top: 2px solid var(--wp--preset--color--clay);
	border-radius: 0;
	background: linear-gradient(145deg, var(--wp--preset--color--white), rgba(247, 243, 238, 0.72));
	box-shadow: none;
}

.ba-query-card .wp-block-post-excerpt {
	font-size: 0.98rem;
	line-height: 1.68;
}

.ba-query-card .wp-block-post-title a {
	text-decoration: none;
}

.ba-query-card .wp-block-post-date {
	font-size: 0.82rem;
	font-weight: 650;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--clay);
}

.ba-query-card .wp-block-post-excerpt__more-link {
	font-size: 0.94rem;
	font-weight: 700;
	text-decoration: none;
}

.ba-biography-grid .wp-block-post-template {
	grid-template-columns: minmax(0, 1.45fr) repeat(2, minmax(0, 1fr)) !important;
}

.ba-biography-grid .wp-block-post:first-child .ba-query-card {
	min-height: 100%;
	padding: clamp(2rem, 4vw, 3.75rem) !important;
	border-top-color: var(--wp--preset--color--antique-gold);
	background:
		radial-gradient(circle at 100% 0, rgba(74, 122, 127, 0.36), transparent 15rem),
		var(--wp--preset--color--forest-dark);
	color: var(--wp--preset--color--ivory);
}

.ba-biography-grid .wp-block-post:first-child .wp-block-post-title {
	font-size: clamp(1.9rem, 3.2vw, 3rem) !important;
}

.ba-biography-grid .wp-block-post:first-child .wp-block-post-title a,
.ba-biography-grid .wp-block-post:first-child .wp-block-post-excerpt__more-link {
	color: var(--wp--preset--color--ivory);
}

.ba-biography-grid .wp-block-post:first-child .wp-block-post-date {
	color: var(--wp--preset--color--sand);
}

.ba-family-grid .wp-block-post-template {
	grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) !important;
}

.ba-family-grid .wp-block-post:first-child .ba-query-card {
	padding: clamp(2rem, 3vw, 3rem) !important;
	border-top: 0;
	border-left: 3px solid var(--wp--preset--color--clay);
	background: linear-gradient(135deg, rgba(74, 122, 127, 0.15), rgba(247, 243, 238, 0.46));
}

.ba-family-grid .wp-block-post:first-child .wp-block-post-title {
	font-size: clamp(1.65rem, 2.6vw, 2.35rem) !important;
}

.ba-query-card .wp-block-post-excerpt__more-link::after {
	content: " →";
}

.ba-region-card[data-status="limited"] {
	background: transparent;
	border-style: dashed;
	box-shadow: none;
}

#regional-journeys .wp-block-columns {
	position: relative;
	display: grid;
	grid-template-columns: 1.5fr repeat(3, 1fr);
	gap: 0;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--forest-dark) 15%, transparent);
	border-radius: 1.5rem;
	background: color-mix(in srgb, var(--wp--preset--color--white) 70%, transparent);
	overflow: hidden;
}

#regional-journeys .wp-block-columns::before {
	content: "";
	position: absolute;
	left: 2.5rem;
	right: 2.5rem;
	top: 2.65rem;
	height: 1px;
	background: linear-gradient(90deg, var(--wp--preset--color--clay), var(--wp--preset--color--antique-gold), rgba(200, 170, 100, 0.16));
}

#regional-journeys .wp-block-column {
	position: relative;
	padding: clamp(3.5rem, 5vw, 5rem) clamp(1.25rem, 2.4vw, 2.5rem) clamp(1.5rem, 2.8vw, 3rem);
}

#regional-journeys .wp-block-column::before {
	content: "";
	position: absolute;
	top: 2.25rem;
	left: clamp(1.25rem, 2.4vw, 2.5rem);
	width: 0.82rem;
	height: 0.82rem;
	border: 3px solid var(--wp--preset--color--ivory);
	border-radius: 50%;
	background: var(--wp--preset--color--antique-gold);
	box-shadow: 0 0 0 1px var(--wp--preset--color--antique-gold);
}

#regional-journeys .wp-block-column:first-child {
	background: var(--wp--preset--color--forest-dark);
	color: var(--wp--preset--color--ivory);
}

#regional-journeys .wp-block-column:first-child h3,
#regional-journeys .wp-block-column:first-child a {
	color: var(--wp--preset--color--ivory);
}

#regional-journeys .wp-block-column:first-child::before {
	background: var(--wp--preset--color--clay);
	box-shadow: 0 0 0 1px var(--wp--preset--color--clay), 0 0 0 0.55rem rgba(223, 111, 87, 0.16);
}

#regional-journeys .wp-block-column + .wp-block-column {
	border-left: 1px solid color-mix(in srgb, var(--wp--preset--color--forest-dark) 15%, transparent);
}

#regional-journeys .ba-region-card {
	border-top: 0;
}

#regional-journeys h3 {
	overflow-wrap: normal;
	word-break: keep-all;
}

.ba-status {
	display: inline-flex;
	width: fit-content;
	padding: 0.38rem 0.65rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--wp--preset--color--apricot) 30%, var(--wp--preset--color--ivory));
	color: var(--wp--preset--color--forest-dark);
	font-size: 0.76rem;
	font-weight: 750;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ba-principle {
	border-left: 3px solid var(--wp--preset--color--antique-gold);
	font-family: var(--wp--preset--font-family--editorial);
	font-size: clamp(1.5rem, 3vw, 2.35rem);
	line-height: 1.3;
}

.ba-trust-list {
	list-style: none;
	padding: 0;
}

.ba-trust-list li {
	position: relative;
	padding-left: 1.5rem;
	font-size: 1rem;
	line-height: 1.55;
}

.ba-trust-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.68em;
	width: 0.42rem;
	height: 0.42rem;
	border-radius: 50%;
	background: var(--wp--preset--color--antique-gold);
}

.ba-lineage-preview {
	position: relative;
	overflow: hidden;
	border-radius: 1.5rem;
	box-shadow: var(--ba-shadow);
	background: linear-gradient(120deg, rgba(243, 163, 106, 0.16), transparent 42%);
}

.ba-lineage-diagram {
	position: relative;
	min-height: 18rem;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--antique-gold) 30%, transparent);
	border-radius: 1rem;
	background:
		radial-gradient(circle at 50% 50%, rgba(74, 122, 127, 0.11), transparent 9rem),
		linear-gradient(90deg, transparent 49.7%, rgba(200, 170, 100, 0.5) 50%, transparent 50.3%) center / 100% 100%,
		linear-gradient(0deg, transparent 49.7%, rgba(200, 170, 100, 0.32) 50%, transparent 50.3%) center / 72% 34%;
}

.ba-lineage-diagram::before,
.ba-lineage-diagram::after {
	content: "";
	position: absolute;
	left: 50%;
	width: 0.72rem;
	height: 0.72rem;
	transform: translate(-50%, -50%);
	border: 3px solid var(--wp--preset--color--white);
	border-radius: 50%;
	background: var(--wp--preset--color--forest);
	box-shadow: 0 0 0 1px var(--wp--preset--color--forest);
}

.ba-lineage-diagram::before { top: 34%; }
.ba-lineage-diagram::after { top: 66%; background: var(--wp--preset--color--clay); box-shadow: 0 0 0 1px var(--wp--preset--color--clay); }

.ba-lineage-node {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	padding: 0.55rem 0.8rem;
	border: 1px solid rgba(200, 170, 100, 0.48);
	border-radius: 999px;
	background: var(--wp--preset--color--ivory);
	font-size: 0.82rem;
	font-weight: 700;
	white-space: nowrap;
}

.ba-lineage-node:nth-child(1) { top: 12%; }
.ba-lineage-node:nth-child(2) { top: 42%; }
.ba-lineage-node:nth-child(3) { top: 72%; }

.ba-newsletter {
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--forest) 15%, transparent);
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--forest) 15%, transparent);
}

.ba-newsletter-form {
	display: grid;
	gap: 1rem;
	max-width: 34rem;
}

.ba-newsletter-field,
.ba-newsletter-consent,
.ba-newsletter-policy {
	margin: 0;
}

.ba-newsletter-field label {
	display: block;
	margin-bottom: 0.4rem;
	font-weight: 700;
}

.ba-newsletter-field input {
	box-sizing: border-box;
	width: 100%;
	min-height: 3rem;
	padding: 0.7rem 0.85rem;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--forest-dark) 48%, transparent);
	border-radius: 0.3rem;
	background: var(--wp--preset--color--ivory);
	color: var(--wp--preset--color--forest-dark);
	font: inherit;
}

.ba-newsletter-consent {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.7rem;
	align-items: start;
	font-size: 0.9rem;
	line-height: 1.5;
}

.ba-newsletter-consent input {
	width: 1rem;
	height: 1rem;
	margin-top: 0.2rem;
}

.ba-newsletter-policy,
.ba-newsletter-message {
	font-size: 0.82rem;
	line-height: 1.5;
}

.ba-newsletter-message {
	margin: 0 0 1rem;
	padding: 0.8rem 1rem;
	border-left: 3px solid var(--wp--preset--color--forest);
	background: color-mix(in srgb, var(--wp--preset--color--ivory) 72%, transparent);
}

.ba-newsletter-submit {
	justify-self: start;
	min-height: 3rem;
	padding: 0.7rem 1.05rem;
	border: 0;
	border-radius: 0.35rem;
	background: var(--wp--preset--color--clay);
	color: var(--wp--preset--color--white);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.ba-newsletter-submit:hover {
	background: var(--wp--preset--color--apricot);
}

.ba-newsletter-honeypot {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.ba-site-footer a {
	color: inherit;
}

.ba-footer-logo {
	margin-bottom: 1rem;
}

.ba-footer-logo img {
	display: block;
	width: clamp(9rem, 13vw, 11.5rem);
	height: auto;
}

.ba-site-footer {
	background-image:
		radial-gradient(circle at 92% 8%, rgba(74, 122, 127, 0.42), transparent 17rem),
		linear-gradient(rgba(30, 41, 51, 0.99), rgba(30, 41, 51, 0.99));
}

.ba-site-footer .wp-block-columns {
	align-items: flex-start;
}

.ba-footer-primary {
	padding-right: clamp(1rem, 4vw, 4rem);
}

.ba-footer-nav ul {
	display: grid;
	gap: 0.55rem;
	margin: 0;
}

.ba-footer-nav a {
	font-size: 1rem;
}

.ba-footer-placeholder {
	color: color-mix(in srgb, var(--wp--preset--color--ivory) 62%, transparent);
	font-size: 0.9rem;
	line-height: 1.65;
}

#contribute .wp-block-columns {
	gap: clamp(1rem, 2vw, 1.75rem);
}

#contribute .ba-contribution-card {
	position: relative;
	min-height: 100%;
	padding-top: clamp(4.5rem, 6vw, 5.5rem) !important;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--forest-dark) 12%, transparent);
	border-radius: 1.15rem;
	background: linear-gradient(145deg, var(--wp--preset--color--white), rgba(247, 243, 238, 0.6));
}

#contribute .ba-contribution-card::before {
	content: "";
	position: absolute;
	top: 1.5rem;
	left: 1.5rem;
	width: 2.15rem;
	height: 2.15rem;
	border: 1px solid var(--wp--preset--color--antique-gold);
	border-radius: 50%;
	background:
		radial-gradient(circle, var(--wp--preset--color--clay) 0 0.23rem, transparent 0.25rem),
		var(--wp--preset--color--ivory);
}

#contribute .wp-block-buttons {
	justify-content: flex-end;
}

.ba-content-shell {
	min-height: 55vh;
}

.ba-page-intro,
.ba-archive-intro,
.ba-search-intro,
.ba-article-header {
	max-width: 52rem;
	margin-bottom: clamp(2.5rem, 6vw, 5.5rem);
}

.ba-archive-intro {
	margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
}

.ba-page-intro::after,
.ba-archive-intro::after,
.ba-search-intro::after,
.ba-article-header::after {
	content: "";
	display: block;
	width: 3.5rem;
	height: 2px;
	margin-top: 1.5rem;
	background: var(--wp--preset--color--antique-gold);
}

.ba-about-shell .ba-page-intro,
.ba-contact-shell .ba-page-intro,
.ba-contribute-shell .ba-page-intro,
.ba-archive-intro,
.ba-search-intro,
.ba-article-header {
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
	padding: clamp(2rem, 4vw, 4rem);
	border-left: 3px solid var(--wp--preset--color--clay);
	background: radial-gradient(circle at 92% 18%, rgba(243,163,106,.2), transparent 13rem), linear-gradient(130deg, rgba(255,252,248,.9), rgba(74,122,127,.1));
}

.ba-about-shell .ba-page-intro::before,
.ba-contact-shell .ba-page-intro::before,
.ba-contribute-shell .ba-page-intro::before,
.ba-archive-intro::before,
.ba-search-intro::before,
.ba-article-header::before {
	content: "";
	position: absolute;
	right: clamp(1.25rem, 4vw, 3rem);
	top: 50%;
	width: clamp(4rem, 8vw, 6.5rem);
	aspect-ratio: 1;
	transform: translateY(-50%);
	background: url("assets/brand/baalawi-seal.png") center / contain no-repeat;
	opacity: .16;
	pointer-events: none;
}

.ba-about-grid > .wp-block-column:first-child,
.ba-contact-grid > .wp-block-column:first-child,
.ba-contribution-options > .wp-block-column:first-child { border-top: 3px solid var(--wp--preset--color--clay); }
.ba-about-grid > .wp-block-column:last-child,
.ba-contact-grid > .wp-block-column:last-child,
.ba-contribution-options > .wp-block-column:last-child { border-top: 3px solid var(--wp--preset--color--antique-gold); }
.ba-contribution-options > .wp-block-column { padding: clamp(1.5rem,3vw,2.5rem); border-radius:.8rem; background:var(--wp--preset--color--white); box-shadow:var(--ba-shadow-soft); }
.ba-contribution-form { display:grid; gap:.7rem; }
.ba-contribution-form label { font-weight:750; }
.ba-contribution-form select,
.ba-contribution-form textarea { box-sizing:border-box; width:100%; padding:.75rem; border:1px solid var(--wp--preset--color--mist); border-radius:.35rem; background:var(--wp--preset--color--ivory); font:inherit; }
.ba-contribution-form button { justify-self:start; min-height:3rem; padding:.75rem 1.1rem; border:0; border-radius:.4rem; background:var(--wp--preset--color--clay); color:white; font:inherit; font-weight:750; }
.ba-form-caution { font-size:.84rem; color:var(--wp--preset--color--forest); }

.ba-about-grid,
.ba-contact-grid {
	margin-bottom: clamp(2.5rem, 6vw, 5.5rem);
}

.ba-about-grid > .wp-block-column,
.ba-contact-grid > .wp-block-column,
.ba-contact-pending,
.ba-policy-copy,
.ba-source-note,
.ba-empty-state,
.ba-404-card {
	box-sizing: border-box;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--forest-dark) 13%, transparent);
	border-radius: 1rem;
	background: color-mix(in srgb, var(--wp--preset--color--white) 76%, transparent);
	box-shadow: var(--ba-shadow-soft);
}

.ba-about-grid > .wp-block-column,
.ba-contact-grid > .wp-block-column {
	padding: clamp(1.5rem, 3vw, 2.5rem);
}

.ba-contact-pending,
.ba-policy-copy,
.ba-source-note,
.ba-empty-state {
	max-width: 48rem;
	padding: clamp(1.5rem, 3vw, 2.5rem);
}

.ba-contact-pending {
	border-left: 3px solid var(--wp--preset--color--antique-gold);
}

.ba-policy-copy {
	border-top: 3px solid var(--wp--preset--color--clay);
}

.ba-archive-query .wp-block-post-template,
.ba-search-query .wp-block-post-template {
	display: grid;
	gap: 1.15rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ba-archive-entry {
	position: relative;
	display: grid;
	grid-template-columns: 4.35rem minmax(0, 1fr);
	column-gap: clamp(1rem, 1.65vw, 1.4rem);
	align-items: start;
	overflow: hidden;
	padding: clamp(1rem, 1.7vw, 1.35rem);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--forest-dark) 13%, transparent);
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--clay) 62%, transparent);
	border-radius: 0.45rem;
	background: var(--wp--preset--color--ivory);
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.ba-archive-entry::before {
	content: "";
	display: flex;
	grid-column: 1;
	grid-row: 1 / span 8;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 4.35rem;
	border: 1px solid rgba(200, 170, 100, 0.55);
	border-radius: 0.25rem;
	background: url("assets/brand/baalawi-seal.png") center / 2.15rem auto no-repeat, linear-gradient(145deg, rgba(74, 122, 127, 0.12), rgba(243, 163, 106, 0.14));
	opacity: 0.9;
}

.ba-archive-entry > * {
	grid-column: 2;
}

.ba-archive-entry:hover {
	transform: translateY(-2px);
	box-shadow: var(--ba-shadow-soft);
}

.ba-archive-entry .wp-block-post-title {
	margin: -0.1rem 0 0.3rem;
}

.ba-archive-entry .wp-block-post-title a {
	text-decoration: none;
}

.ba-archive-entry .wp-block-post-date,
.ba-article-header .wp-block-post-date {
	color: var(--wp--preset--color--forest);
	font-size: 0.84rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* Archive cards describe historical records; publication dates remain in source data but are not primary metadata. */
.ba-archive-entry .wp-block-post-date,
.ba-family-grid .wp-block-post-date {
	display: none;
}

.ba-archive-entry .wp-block-post-title::before,
.ba-family-grid .wp-block-post-title::before {
	content: "Archive entry";
	display: block;
	width: fit-content;
	margin-bottom: 0.6rem;
	padding: 0.23rem 0.5rem;
	border: 1px solid rgba(200, 170, 100, 0.55);
	border-radius: 999px;
	background: rgba(255, 252, 248, 0.7);
	color: var(--wp--preset--color--forest);
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.78rem;
	font-weight: 750;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.ba-archive-entry .wp-block-post-excerpt {
	max-width: 62ch;
	margin-bottom: 0;
	font-size: 0.96rem;
	line-height: 1.62;
}

@media (max-width: 600px) {
	.ba-archive-entry {
		grid-template-columns: 1fr;
		row-gap: 1rem;
	}

	.ba-archive-entry::before,
	.ba-archive-entry > * {
		grid-column: 1;
	}

	.ba-archive-entry::before {
		grid-row: auto;
		width: 3.5rem;
		min-height: 3.5rem;
	}
}

.ba-archive-query .wp-block-query-pagination,
.ba-search-query .wp-block-query-pagination {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--wp--preset--color--mist);
}

.ba-search-intro .wp-block-search__inside-wrapper,
.ba-404-card .wp-block-search__inside-wrapper {
	padding: 0.35rem;
	border: 1px solid var(--wp--preset--color--mist);
	border-radius: 0.65rem;
	background: var(--wp--preset--color--white);
}

.ba-search-intro .wp-block-search__input,
.ba-404-card .wp-block-search__input {
	min-height: 3rem;
	border: 0;
	background: transparent;
}

.ba-article-shell > .wp-block-post-content {
	max-width: 46rem;
	margin-inline: auto;
	font-size: clamp(1.05rem, 1.3vw, 1.18rem);
}

.ba-article-shell > .wp-block-post-content > * {
	max-width: 100%;
}

.ba-article-shell .wp-block-post-content a {
	font-weight: 650;
}

.ba-article-shell .wp-block-post-content blockquote {
	margin-inline: 0;
	padding: 0.5rem 0 0.5rem 1.5rem;
	border-left: 3px solid var(--wp--preset--color--antique-gold);
	font-family: var(--wp--preset--font-family--editorial);
	font-size: 1.35em;
}

.ba-article-navigation {
	gap: 1rem;
	margin-top: 1.5rem;
}

.ba-article-navigation .wp-block-post-navigation-link {
	max-width: 48%;
	font-weight: 700;
}

.ba-404-card {
	max-width: 48rem;
	padding: clamp(2rem, 5vw, 4rem);
	border-top: 4px solid var(--wp--preset--color--clay);
}

.ba-404-links {
	gap: 1rem 1.5rem;
	margin-top: 1.75rem;
}

.ba-404-links p {
	margin: 0;
}

.ba-404-links a {
	font-weight: 700;
}

@media (max-width: 1100px) {
	.ba-header-search {
		display: none;
	}

	.ba-nav {
		font-size: 0.88rem;
	}

	.ba-nav .wp-block-navigation__container {
		gap: 0.75rem;
	}

	.ba-hero {
		min-height: auto;
	}

	.ba-hero-layout {
		grid-template-columns: 48% 52%;
		grid-template-rows: auto auto;
		min-height: 0;
	}

	.ba-hero-content {
		grid-column: 1;
		grid-row: 1;
		padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3.5rem);
	}

	.ba-hero-visual {
		grid-column: 2;
		grid-row: 1;
		min-height: 40rem;
	}

	.ba-hero-editorial {
		grid-column: 1 / 3;
		grid-row: 2;
		min-height: 0;
		padding: 2.25rem clamp(2rem, 5vw, 4rem);
	}

	.ba-hero-editorial p {
		max-width: 30ch;
		margin: 1rem 0 1.5rem;
		font-size: clamp(1.45rem, 2.5vw, 1.9rem);
	}

	.ba-family-grid .wp-block-post-template {
		grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr)) !important;
	}

	#regional-journeys .wp-block-columns {
		grid-template-columns: 1.35fr repeat(3, 1fr);
	}
}

@media (max-width: 782px) {
	.ba-header-inner {
		min-height: 4.75rem;
	}

	.ba-nav .wp-block-navigation__responsive-container.is-menu-open {
		position: fixed !important;
		top: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		left: 0 !important;
		z-index: 100000 !important;
		display: flex;
		box-sizing: border-box;
		width: 100vw !important;
		height: 100vh !important;
		max-height: none !important;
		padding: 5rem 1.5rem 2rem;
		overflow: auto;
		background: var(--wp--preset--color--forest-dark) !important;
		color: var(--wp--preset--color--ivory) !important;
	}

	.ba-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
		align-items: flex-start;
		justify-content: flex-start;
		width: 100%;
	}

	.ba-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		align-items: flex-start;
		flex-direction: column;
		gap: 1rem;
		font-family: var(--wp--preset--font-family--editorial);
		font-size: clamp(1.65rem, 8vw, 2.4rem);
		line-height: 1.15;
	}

	.ba-brand-lockup img {
		width: 7.1rem;
	}

	.ba-hero {
		min-height: auto;
	}

	.ba-hero-layout {
		grid-template-columns: 1fr;
		grid-template-rows: auto 20rem auto;
	}

	.ba-hero-content {
		grid-column: 1;
		grid-row: 1;
		padding: 4.25rem 1.25rem 3.5rem;
		background: var(--wp--preset--color--ivory);
	}

	.ba-hero-visual {
		grid-column: 1;
		grid-row: 2;
		min-height: 20rem;
	}

	.ba-hero-image {
		object-position: 52% center;
	}

	.ba-hero-visual::before {
		background: linear-gradient(180deg, rgba(247, 243, 238, 0.35), transparent 25%, rgba(30, 41, 51, 0.18));
	}

	.ba-hero-editorial {
		grid-column: 1;
		grid-row: 3;
		padding: 2.75rem 1.5rem 3rem;
	}

	.ba-hero-editorial p {
		max-width: 22ch;
		font-size: 1.55rem;
	}

	.ba-hero-copy {
		max-width: 32rem;
	}

	.ba-hero .wp-block-buttons,
	.ba-hero .wp-block-button,
	.ba-hero .wp-block-button__link {
		width: 100%;
	}

	.ba-section {
		padding-block: 4.25rem !important;
	}

	.ba-query-grid .wp-block-post-template {
		grid-template-columns: 1fr !important;
	}

	.ba-biography-grid .wp-block-post:first-child .ba-query-card,
	.ba-family-grid .wp-block-post:first-child .ba-query-card {
		padding: 2rem !important;
	}

	.ba-search-panel {
		padding: 2rem !important;
	}

	#regional-journeys .wp-block-columns {
		grid-template-columns: 1fr;
		border-radius: 1.1rem;
	}

	#regional-journeys .wp-block-columns::before {
		top: 1.5rem;
		bottom: 1.5rem;
		left: 1.55rem;
		right: auto;
		width: 1px;
		height: auto;
		background: linear-gradient(180deg, var(--wp--preset--color--clay), var(--wp--preset--color--antique-gold), rgba(200, 170, 100, 0.16));
	}

	#regional-journeys .wp-block-column {
		padding: 2rem 1.5rem 2rem 3.25rem;
	}

	#regional-journeys .wp-block-column::before {
		top: 2.25rem;
		left: 1.2rem;
	}

	#regional-journeys .wp-block-column + .wp-block-column {
		border-left: 0;
		border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--forest-dark) 15%, transparent);
	}

	#contribute .wp-block-buttons {
		justify-content: flex-start;
	}

	.ba-lineage-preview {
		padding: 2rem !important;
	}

	.ba-about-grid,
	.ba-contact-grid {
		gap: 1rem;
	}

	.ba-article-navigation .wp-block-post-navigation-link {
		max-width: 100%;
	}

	.ba-lineage-diagram {
		min-height: 16rem;
	}

	.ba-site-footer .wp-block-column {
		padding-block: 0.5rem;
	}

	.ba-footer-primary {
		padding-right: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.wp-block-button__link {
		transition: none;
	}
}

/* Focused archive, Learn and contribution refinement. */
.ba-archive-shell,
.ba-learn-shell {
	padding-top: clamp(2.5rem, 4.5vw, 4.75rem) !important;
}

.ba-archive-intro {
	margin-bottom: clamp(1.35rem, 2.25vw, 2.1rem);
}

.ba-archive-entry {
	grid-template-columns: 4.65rem minmax(0, 1fr);
	column-gap: clamp(1.3rem, 2vw, 1.75rem);
	padding: clamp(1.3rem, 2.15vw, 1.7rem);
	border-color: color-mix(in srgb, var(--wp--preset--color--forest-dark) 11%, transparent);
	border-top-color: color-mix(in srgb, var(--wp--preset--color--clay) 38%, transparent);
	border-radius: 0.7rem;
	background: linear-gradient(120deg, var(--wp--preset--color--ivory), color-mix(in srgb, var(--wp--preset--color--white) 86%, var(--wp--preset--color--antique-gold)));
}

.ba-archive-entry::before {
	width: 4.65rem;
	min-height: 4.65rem;
	margin-top: 0.15rem;
	border-color: rgba(200, 170, 100, 0.42);
	border-radius: 0.5rem;
	background-size: 2.25rem auto, auto;
	opacity: 0.82;
}

.ba-archive-entry .wp-block-post-title {
	margin-top: 0;
}

.ba-archive-entry .wp-block-post-title::before,
.ba-family-grid .wp-block-post-title::before {
	margin-bottom: 0.5rem;
	border-color: rgba(200, 170, 100, 0.42);
	background: color-mix(in srgb, var(--wp--preset--color--white) 72%, transparent);
}

.ba-learn-discovery {
	margin-bottom: clamp(3rem, 6vw, 5.5rem);
}

.ba-learn-pathways {
	gap: clamp(1rem, 2.2vw, 1.6rem);
	margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.ba-learn-pathway {
	position: relative;
	box-sizing: border-box;
	padding: clamp(1.4rem, 2.5vw, 2rem);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--forest-dark) 11%, transparent);
	border-top: 3px solid color-mix(in srgb, var(--wp--preset--color--forest) 74%, transparent);
	border-radius: 0.75rem;
	background: color-mix(in srgb, var(--wp--preset--color--white) 78%, transparent);
	box-shadow: var(--ba-shadow-soft);
}

.ba-learn-pathway:nth-child(2) {
	border-top-color: color-mix(in srgb, var(--wp--preset--color--clay) 72%, transparent);
}

.ba-learn-pathway:nth-child(3) {
	border-top-color: color-mix(in srgb, var(--wp--preset--color--antique-gold) 82%, transparent);
}

.ba-learn-pathway-index {
	margin: 0 0 1.15rem;
	color: var(--wp--preset--color--clay);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.12em;
}

.ba-learn-pathway h3 {
	margin-top: 0;
}

.ba-learn-pathway p:last-child {
	margin-bottom: 0;
}

.ba-learn-recent-heading {
	max-width: 52rem;
	margin-bottom: clamp(1.4rem, 2.8vw, 2.4rem);
}

.ba-contribution-options {
	gap: clamp(1.25rem, 2.5vw, 2rem);
}

.ba-contribution-options > .wp-block-column {
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--forest-dark) 11%, transparent);
}

.ba-contribution-form {
	gap: 0.85rem;
}

.ba-contribution-form input[type="email"],
.ba-contribution-form input[type="url"],
.ba-contribution-form select,
.ba-contribution-form textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 2.9rem;
	padding: 0.75rem 0.85rem;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--forest-dark) 20%, transparent);
	border-radius: 0.5rem;
	background: var(--wp--preset--color--ivory);
	font: inherit;
}

.ba-contribution-form textarea {
	min-height: 10rem;
	resize: vertical;
}

.ba-contribution-form input:focus-visible,
.ba-contribution-form select:focus-visible,
.ba-contribution-form textarea:focus-visible,
.ba-contribution-form button:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--wp--preset--color--forest) 55%, transparent);
	outline-offset: 2px;
}

.ba-form-privacy,
.ba-form-caution {
	margin-top: -0.35rem;
	color: var(--wp--preset--color--forest);
	font-size: 0.86rem;
	line-height: 1.55;
}

.ba-form-consent {
	display: grid;
	grid-template-columns: 1.15rem minmax(0, 1fr);
	gap: 0.7rem;
	align-items: start;
	margin: 0.35rem 0;
	font-weight: 500 !important;
	line-height: 1.5;
}

.ba-form-consent input {
	width: 1.05rem;
	height: 1.05rem;
	margin-top: 0.2rem;
}

.ba-form-status {
	margin: 0 0 1rem;
	padding: 0.9rem 1rem;
	border-radius: 0.55rem;
	font-weight: 700;
}

.ba-form-status--success {
	border-left: 3px solid var(--wp--preset--color--forest);
	background: color-mix(in srgb, var(--wp--preset--color--forest) 10%, var(--wp--preset--color--white));
}

.ba-form-status--error {
	border-left: 3px solid var(--wp--preset--color--clay);
	background: color-mix(in srgb, var(--wp--preset--color--clay) 9%, var(--wp--preset--color--white));
}

.ba-form-honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

@media (max-width: 600px) {
	.ba-archive-entry {
		grid-template-columns: 3.6rem minmax(0, 1fr);
		column-gap: 1rem;
		row-gap: 0.55rem;
		padding: 1.05rem;
	}

	.ba-archive-entry::before {
		grid-column: 1;
		grid-row: 1 / span 2;
		width: 3.6rem;
		min-height: 3.6rem;
		margin-top: 0;
		background-size: 1.75rem auto, auto;
	}

	.ba-archive-entry > * {
		grid-column: 2;
	}

	.ba-archive-entry .wp-block-post-excerpt {
		grid-column: 1 / -1;
		margin-top: 0.35rem;
	}

	.ba-learn-pathways {
		gap: 1rem;
	}
}

.ba-archive-entry > * {
	justify-self: stretch;
	max-width: none;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.ba-archive-entry .wp-block-post-excerpt {
	max-width: 68ch;
}


/* Editorial discovery and long-form reading layer. */
.ba-article-sections,
.ba-article-topics {
	margin: 0;
	font-size: .82rem;
	line-height: 1.55;
}

.ba-article-topics {
	margin-top: .85rem;
	color: var(--wp--preset--color--forest);
}

.ba-article-sections a,
.ba-article-topics a {
	text-decoration-thickness: 1px;
	text-underline-offset: .2em;
}

.ba-reading-note {
	box-sizing: border-box;
	max-width: 48rem;
	margin: 0 auto clamp(2.5rem, 5vw, 4rem);
	padding: clamp(1.2rem, 2.5vw, 1.7rem) clamp(1.3rem, 3vw, 2rem);
	border-left: 3px solid var(--wp--preset--color--antique-gold);
	background: linear-gradient(110deg, color-mix(in srgb, var(--wp--preset--color--white) 82%, transparent), color-mix(in srgb, var(--wp--preset--color--sand) 24%, transparent));
}

.ba-reading-note p:last-child {
	margin-bottom: 0;
	color: var(--wp--preset--color--forest-dark);
	font-size: .93rem;
	line-height: 1.7;
}

.ba-article-shell > .wp-block-post-content {
	max-width: 48rem;
	font-size: clamp(1rem, .985rem + .12vw, 1.075rem);
	line-height: 1.78;
}

.ba-article-shell > .wp-block-post-content p,
.ba-article-shell > .wp-block-post-content li {
	line-height: 1.78;
}

.ba-article-shell > .wp-block-post-content h2 {
	margin-top: 2.2em;
	margin-bottom: .65em;
}

.ba-article-shell > .wp-block-post-content h3 {
	margin-top: 1.8em;
	margin-bottom: .55em;
}

.ba-article-shell > .wp-block-post-content blockquote {
	margin: 2rem 0;
	padding: 1rem 1.5rem;
	border-left: 3px solid var(--wp--preset--color--clay);
	background: color-mix(in srgb, var(--wp--preset--color--sand) 22%, transparent);
}

.ba-learn-pathways {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ba-learn-pathway:nth-child(4) {
	border-top-color: color-mix(in srgb, var(--wp--preset--color--forest) 62%, transparent);
}

@media (max-width: 700px) {
	.ba-learn-pathways {
		grid-template-columns: 1fr;
	}

	.ba-reading-note {
		margin-bottom: 2.5rem;
	}
}


.ba-editorial-review-note {
	box-sizing: border-box;
	max-width: 48rem;
	margin: calc(-1 * clamp(1.2rem, 2.5vw, 2rem)) auto clamp(2.5rem, 5vw, 4rem);
	padding: clamp(1.15rem, 2.5vw, 1.6rem) clamp(1.3rem, 3vw, 2rem);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--clay) 34%, transparent);
	border-left: 3px solid var(--wp--preset--color--clay);
	background: color-mix(in srgb, var(--wp--preset--color--apricot) 10%, var(--wp--preset--color--ivory));
}

.ba-editorial-review-note p:last-child {
	margin-bottom: 0;
	font-size: .93rem;
	line-height: 1.7;
}


.ba-reading-meta {
	margin: .8rem 0 0;
	color: var(--wp--preset--color--forest);
	font-size: .78rem;
	font-weight: 750;
	letter-spacing: .06em;
	text-transform: uppercase;
}

/* Legacy entries sometimes carry inline justified alignment; favour readable editorial text. */
.ba-article-shell > .wp-block-post-content p,
.ba-article-shell > .wp-block-post-content li {
	text-align: start !important;
}


.ba-publication-context {
	margin: .6rem 0 0;
	color: var(--wp--preset--color--forest);
	font-size: .78rem;
	font-weight: 750;
	letter-spacing: .06em;
	text-transform: uppercase;
}


/* Source-led structure for long-form legacy records. */
.ba-legacy-source-context {
	box-sizing: border-box;
	max-width: 48rem;
	margin: 0 auto 1.6rem;
	padding: 1.15rem 1.35rem;
	border-left: 3px solid var(--wp--preset--color--antique-gold);
	background: color-mix(in srgb, var(--wp--preset--color--sand) 20%, transparent);
}

.ba-legacy-source-context p:last-child {
	margin-bottom: 0;
	color: var(--wp--preset--color--forest-dark);
	font-size: .92rem;
	line-height: 1.72;
}

.ba-article-toc {
	box-sizing: border-box;
	max-width: 48rem;
	margin: 0 auto clamp(2.5rem, 5vw, 3.8rem);
	padding: 0 0 1.5rem;
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--forest) 18%, transparent);
}

.ba-article-toc ol {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .48rem 1.6rem;
	margin: .75rem 0 0;
	padding-left: 1.2rem;
}

.ba-article-toc li {
	padding-left: .2rem;
	font-size: .9rem;
	line-height: 1.55 !important;
}

.ba-article-toc a {
	color: var(--wp--preset--color--forest-dark);
	text-decoration-color: color-mix(in srgb, var(--wp--preset--color--clay) 45%, transparent);
	text-decoration-thickness: 1px;
	text-underline-offset: .22em;
}

.ba-article-shell > .wp-block-post-content .ba-legacy-section-heading {
	scroll-margin-top: 6rem;
	margin-top: clamp(2.6rem, 6vw, 4.4rem);
	padding-top: .9rem;
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--forest) 14%, transparent);
	font-size: clamp(1.55rem, 1.35rem + .65vw, 2rem);
	line-height: 1.18;
}

@media (max-width: 700px) {
	.ba-legacy-source-context {
		padding: 1.05rem 1.1rem;
	}

	.ba-article-toc ol {
		grid-template-columns: 1fr;
		gap: .42rem;
	}

	.ba-article-shell > .wp-block-post-content .ba-legacy-section-heading {
		margin-top: 2.5rem;
	}
}

/* P6.3 — citation-by-citation reconciliation for reviewed legacy records. */
.ba-source-reconciliation {
	box-sizing: border-box;
	max-width: 48rem;
	margin: 0 auto 1.8rem;
	padding: clamp(1.2rem, 2.5vw, 1.6rem) clamp(1.25rem, 3vw, 1.75rem);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--forest) 18%, transparent);
	border-left: 3px solid var(--wp--preset--color--clay);
	background: color-mix(in srgb, var(--wp--preset--color--ivory) 88%, var(--wp--preset--color--apricot));
}

.ba-reconciliation-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: .7rem;
}

.ba-reconciliation-heading .ba-section-kicker,
.ba-reconciliation-status {
	margin: 0;
}

.ba-reconciliation-status {
	color: var(--wp--preset--color--forest);
	font-size: .74rem;
	font-weight: 750;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.ba-reconciliation-summary {
	margin: 0 0 1rem;
	color: var(--wp--preset--color--forest-dark);
	font-size: .94rem;
	line-height: 1.7;
}

.ba-reconciliation-findings {
	display: grid;
	gap: .7rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ba-article-shell > .wp-block-post-content .ba-reconciliation-finding {
	display: grid;
	grid-template-columns: 6.5rem minmax(0, 1fr);
	gap: .8rem;
	align-items: start;
	margin: 0;
	padding: .78rem 0;
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--forest) 12%, transparent);
	font-size: .9rem;
	line-height: 1.65 !important;
}

.ba-reconciliation-label {
	display: inline-flex;
	width: fit-content;
	padding: .22rem .48rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--wp--preset--color--sand) 58%, transparent);
	font-size: .68rem;
	font-weight: 800;
	letter-spacing: .055em;
	line-height: 1.35;
	text-transform: uppercase;
}

.ba-reconciliation-correction .ba-reconciliation-label {
	background: color-mix(in srgb, var(--wp--preset--color--clay) 16%, var(--wp--preset--color--ivory));
}

.ba-reconciliation-confirmed .ba-reconciliation-label {
	background: color-mix(in srgb, var(--wp--preset--color--antique-gold) 22%, var(--wp--preset--color--ivory));
}

.ba-reconciliation-needs-source .ba-reconciliation-label {
	border: 1px dashed color-mix(in srgb, var(--wp--preset--color--forest) 28%, transparent);
	background: transparent;
}

.ba-reconciliation-sources {
	margin-top: 1rem;
	padding-top: .9rem;
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--forest) 12%, transparent);
}

.ba-reconciliation-sources summary {
	cursor: pointer;
	color: var(--wp--preset--color--forest-dark);
	font-size: .82rem;
	font-weight: 750;
}

.ba-reconciliation-sources ul {
	margin: .7rem 0 0;
	padding-left: 1.1rem;
}

.ba-article-shell > .wp-block-post-content .ba-reconciliation-sources li {
	margin: .3rem 0;
	font-size: .82rem;
	line-height: 1.5 !important;
}

@media (max-width: 700px) {
	.ba-reconciliation-heading {
		display: block;
	}

	.ba-reconciliation-status {
		margin-top: .35rem;
	}

	.ba-article-shell > .wp-block-post-content .ba-reconciliation-finding {
		grid-template-columns: 1fr;
		gap: .45rem;
	}
}

/* P6.4 — cognitive-accessibility and visitor-flow simplification. */
.ba-reading-note--details {
	box-sizing: border-box;
	max-width: 48rem;
	margin: 0 auto 1.4rem;
	padding: 1rem 1.2rem;
	border-left: 3px solid var(--wp--preset--color--antique-gold);
	background: color-mix(in srgb, var(--wp--preset--color--sand) 18%, transparent);
}
.ba-reading-note--details summary {
	cursor: pointer;
	font-weight: 750;
	color: var(--wp--preset--color--forest-dark);
}
.ba-reading-note--details p { margin: .8rem 0 0; line-height: 1.7; }

.ba-source-reconciliation > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	cursor: pointer;
	list-style-position: outside;
}
.ba-source-reconciliation > summary > span:first-child { display:grid; gap:.15rem; }
.ba-source-reconciliation > summary > span:first-child > span { font-size:.82rem; font-weight:500; color:var(--wp--preset--color--forest); }
.ba-reconciliation-body { margin-top: 1rem; }

.ba-required,
.ba-optional {
	margin-left: .3rem;
	font-size: .68rem;
	font-weight: 750;
	letter-spacing: .045em;
	text-transform: uppercase;
}
.ba-required { color: var(--wp--preset--color--clay); }
.ba-optional { color: var(--wp--preset--color--forest); }
.ba-form-status { display:grid; gap:.2rem; }
.ba-contribution-subject {
	margin: 0 0 1.2rem;
	padding: 1rem 1.15rem;
	border-left: 3px solid var(--wp--preset--color--antique-gold);
	background: color-mix(in srgb, var(--wp--preset--color--sand) 20%, transparent);
}
.ba-contribution-subject p { margin:.25rem 0; }
.ba-contribution-subject .ba-section-kicker { margin-bottom:.45rem; }
.ba-form-honeypot[hidden] { display:none !important; }

.ba-newsletter-coming-soon {
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--forest) 14%, transparent);
	background: color-mix(in srgb, var(--wp--preset--color--ivory) 72%, transparent);
}

.ba-place-journey {
	box-sizing:border-box;
	margin-top: clamp(1.5rem, 4vw, 2.5rem);
	padding: clamp(1.5rem, 4vw, 2.5rem);
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--forest) 16%, transparent);
	background: color-mix(in srgb, var(--wp--preset--color--ivory) 88%, transparent);
}
.ba-place-journey--limited { border-left:3px solid var(--wp--preset--color--antique-gold); }

@media (max-width:700px) {
	.ba-source-reconciliation > summary { align-items:flex-start; flex-direction:column; gap:.5rem; }
}
.ba-form-success-actions { display:flex; flex-wrap:wrap; align-items:center; gap:1rem; margin:1rem 0 0; }
.ba-form-success-actions a:not(.wp-element-button) { font-weight:700; }
