/* ==========================================================================
   Bandhab — band system and modules
   Every value references a token. No literal colours, sizes or radii here.
   ========================================================================== */

/* --- The band: the spine of every page ---------------------------------- */

.bh-band {
	padding-block: var(--band-padding-y);
	padding-inline: var(--band-padding-x);
	background: var(--surface-page);
	color: var(--text-body);
}

.bh-band__inner {
	max-width: var(--container);
	margin-inline: auto;
}

.bh-band--prose .bh-band__inner {
	max-width: var(--container-text);
}

/* A snug band keeps a quarter of the usual breathing room (Latest stories). */
.bh-band--snug { padding-block: calc(var(--band-padding-y) * 0.25); }

.bh-band--page  { background: var(--surface-page); }
.bh-band--sand  { background: var(--surface-sand); }
.bh-band--deep  { background: var(--surface-deep); color: var(--text-invert); }
.bh-band--clay  { background: var(--surface-clay); color: var(--text-invert); }
.bh-band--sage  { background: var(--surface-sage); }
.bh-band--lagoon{ background: var(--surface-lagoon); }

/* Type inverts wholesale on the dark bands. */
.bh-band--deep :where(h1,h2,h3,h4),
.bh-band--clay :where(h1,h2,h3,h4) { color: var(--text-invert); }
.bh-band--deep p, .bh-band--clay p { color: var(--text-invert-muted); }
.bh-band--deep a:not(.bh-btn), .bh-band--clay a:not(.bh-btn) { color: var(--link-invert); }

/* --- Eyebrow: the one deliberate lowercase element ----------------------- */

.bh-eyebrow {
	display: block;
	font-family: var(--font-mono);
	font-size: var(--type-eyebrow);
	letter-spacing: var(--tracking-eyebrow);
	line-height: var(--leading-mono);
	text-transform: none;
	color: var(--text-muted);
	margin-block-end: var(--space-4);
}

/* The first letter is always a capital, however the label was typed. */
.bh-eyebrow::first-letter { text-transform: uppercase; }

.bh-band--deep .bh-eyebrow,
.bh-band--clay .bh-eyebrow { color: var(--text-invert-muted); }

.bh-eyebrow--rule::after {
	content: "";
	display: block;
	width: var(--space-8);
	height: 1px;
	background: var(--border-hairline);
	margin-block-start: var(--space-3);
}

.bh-band--deep .bh-eyebrow--rule::after { background: var(--border-invert); }

/* --- Section heading ----------------------------------------------------- */

.bh-section-heading { margin-block-end: var(--space-7); }
.bh-section-heading__lede {
	font-size: var(--type-lede);
	line-height: var(--leading-body);
	max-width: 58ch;
	margin-block-start: var(--space-5);
}

/* --- Hero: display headline + the signature mono intro ------------------- */

.bh-hero__headline { margin-block-end: var(--space-6); }

.bh-hero__intro {
	font-family: var(--font-mono);
	font-size: var(--type-mono);
	line-height: var(--leading-mono);
	max-width: 44ch;
	color: var(--text-muted);
	margin-block-end: var(--space-7);
}

.bh-band--deep .bh-hero__intro { color: var(--text-invert-muted); }

/* --- Buttons: pill, mono caps ------------------------------------------- */

.bh-btn {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: var(--type-mono);
	letter-spacing: var(--tracking-button);
	text-transform: uppercase;
	text-decoration: none;
	border-radius: var(--radius-pill);
	padding: var(--space-3) var(--space-6);
	border: var(--border-width-strong) solid transparent;
	cursor: pointer;
	transition:
		background-color var(--motion-fast) var(--ease-out),
		color var(--motion-fast) var(--ease-out),
		border-color var(--motion-fast) var(--ease-out),
		transform var(--motion-base) var(--ease-out);
}

.bh-btn--primary {
	background: var(--accent-primary);
	color: var(--text-invert);
	border-color: var(--accent-primary);
}
.bh-btn--primary:hover { background: var(--accent-primary-hover); border-color: var(--accent-primary-hover); color: var(--text-invert); }
.bh-btn--primary:active { background: var(--accent-primary-press); border-color: var(--accent-primary-press); }

.bh-btn--secondary {
	background: transparent;
	color: var(--text-strong);
	border-color: var(--border-strong);
}
.bh-btn--secondary:hover { background: var(--surface-sand); color: var(--text-strong); }

.bh-btn--invert {
	background: transparent;
	color: var(--text-invert);
	border-color: var(--border-invert);
}
.bh-btn--invert:hover { background: var(--surface-deep-soft); color: var(--text-invert); }

.bh-btn--solid-invert {
	background: var(--warm-50);
	color: var(--warm-900);
	border-color: var(--warm-50);
}
.bh-btn--solid-invert:hover { background: var(--warm-200); color: var(--warm-900); }

.bh-btn--ghost {
	background: transparent;
	border-color: transparent;
	color: var(--text-accent);
	padding-inline: 0;
}
.bh-btn--ghost::after { content: " \2192"; }
.bh-btn--ghost:hover { color: var(--accent-primary-press); }

.bh-btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-4);
	align-items: center;
}

/* --- PhotoFrame: type never sits on top of photography ------------------- */

.bh-photo { margin: 0; }

.bh-photo__media {
	display: block;
	width: 100%;
	border-radius: var(--radius-photo);
	box-shadow: var(--shadow-md);
	overflow: hidden;
	background:
		linear-gradient(135deg,
			var(--warm-300) 0%,
			var(--clay-200) 45%,
			var(--apricot-200) 100%);
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform var(--motion-base) var(--ease-out), box-shadow var(--motion-base) var(--ease-out);
}

.bh-photo--portrait .bh-photo__media { aspect-ratio: 3 / 4; }
.bh-photo--wide .bh-photo__media { aspect-ratio: 16 / 9; }

.bh-photo__caption {
	display: block;
	font-family: var(--font-mono);
	font-size: var(--type-caption);
	color: var(--text-faint);
	margin-block-start: var(--space-3);
}

.bh-photo--tilt-left  { transform: rotate(-1.5deg); }
.bh-photo--tilt-right { transform: rotate(1.5deg); }

/* --- Split: prose beside a photo ---------------------------------------- */

.bh-split {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
	gap: clamp(var(--space-6), 5vw, var(--space-9));
	align-items: center;
}

.bh-split__prose > :last-child { margin-block-end: 0; }
.bh-split--media-first .bh-split__media { order: -1; }

/* --- Stat tiles ---------------------------------------------------------- */

.bh-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
	gap: var(--space-5);
}

.bh-stat {
	padding: var(--space-6);
	border-radius: var(--radius-lg);
	background: var(--surface-sand);
}

.bh-stat--sage   { background: var(--surface-sage); }
.bh-stat--lagoon { background: var(--surface-lagoon); }
.bh-stat--clay   { background: var(--clay-100); }

.bh-stat__value {
	display: block;
	font-family: var(--font-display);
	font-weight: var(--weight-display);
	font-size: var(--type-display-3);
	line-height: var(--leading-display);
	letter-spacing: var(--tracking-display);
	text-transform: uppercase;
	color: var(--text-strong);
}

.bh-stat__label {
	display: block;
	font-family: var(--font-mono);
	font-size: var(--type-caption);
	line-height: var(--leading-mono);
	color: var(--text-muted);
	margin-block-start: var(--space-3);
}

/* --- Story cards: the image is the card, no panel ------------------------ */

.bh-stories {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
	gap: clamp(var(--space-6), 4vw, var(--space-8));
}

.bh-story { display: flex; flex-direction: column; }
.bh-story__media-wrap { position: relative; display: block; }

.bh-story:hover .bh-photo__media {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lift);
}

.bh-story__badge {
	position: absolute;
	inset-block-end: var(--space-4);
	inset-inline-start: var(--space-4);
	font-family: var(--font-mono);
	font-size: var(--type-caption);
	color: var(--text-invert);
	background: var(--overlay-scrim);
	border-radius: var(--radius-pill);
	padding: var(--space-1) var(--space-3);
}

.bh-story__meta {
	font-family: var(--font-mono);
	font-size: var(--type-caption);
	color: var(--text-faint);
	margin-block-start: var(--space-4);
}

.bh-band--deep .bh-story__meta { color: var(--text-invert-muted); }

/* Story titles are the one place titles stay sentence-case serif. */
.bh-story__title {
	font-family: var(--font-body) !important;
	font-size: var(--type-lede) !important;
	font-weight: 600 !important;
	line-height: var(--leading-tight) !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	margin-block-start: var(--space-2) !important;
}

.bh-story__title a { color: inherit; text-decoration: none; }
.bh-story__title a:hover { color: var(--text-accent); }
.bh-band--deep .bh-story__title { color: var(--text-invert) !important; }

/* --- Story carousel: one row that scrolls, snapping card by card ---------- */

.bh-carousel {
	--carousel-gap: var(--space-6);
	--carousel-slide: calc((100% - 2 * var(--carousel-gap)) / 3);
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	column-gap: var(--space-4);
}

.bh-carousel > .wp-block-post-template.bh-stories--carousel {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: nowrap;
	gap: var(--carousel-gap);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	/* Vertical room for the hover lift and its shadow, which overflow would
	   otherwise clip. No horizontal padding or scroll-padding: Safari parks the
	   track at a negative offset when the first snap point is not at 0. */
	padding-block: var(--space-2);
	margin-block: calc(-1 * var(--space-2));
	scrollbar-width: none;
}

.bh-carousel > .wp-block-post-template.bh-stories--carousel::-webkit-scrollbar { display: none; }

.bh-carousel > .wp-block-post-template.bh-stories--carousel > * {
	flex: 0 0 var(--carousel-slide);
	min-inline-size: 0;
	scroll-snap-align: start;
	margin: 0;
}

.bh-carousel > .wp-block-buttons { margin-block-start: var(--space-6); }

.bh-carousel__nav {
	display: none;
	grid-column: 2;
	gap: var(--space-2);
	margin-block-start: var(--space-6);
}

.bh-carousel.is-scrollable .bh-carousel__nav { display: flex; }

.bh-carousel__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 44px;
	block-size: 44px;
	padding: 0;
	border: 1px solid currentColor;
	border-radius: var(--radius-pill);
	background: transparent;
	color: var(--text-strong);
	cursor: pointer;
	transition: background var(--motion-fast) var(--ease-out), opacity var(--motion-fast) var(--ease-out);
}

.bh-band--deep .bh-carousel__btn { color: var(--text-invert); }

@media (hover: hover) {
	.bh-carousel__btn:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
}
.bh-carousel__btn:active { background: color-mix(in srgb, currentColor 20%, transparent); }
.bh-carousel__btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.bh-carousel__btn[aria-disabled="true"] { opacity: 0.35; cursor: default; background: transparent; }
.bh-carousel__btn svg { inline-size: 20px; block-size: 20px; }

@media (max-width: 999px) {
	.bh-carousel { --carousel-slide: calc((100% - var(--carousel-gap)) / 2); }
}

@media (max-width: 639px) {
	/* Everything stacks: cards (or the "nothing here yet" text) take the full
	   row with the button below. The arrows stand beside the button when they
	   fit and drop to their own row when they do not. */
	.bh-carousel { --carousel-slide: 82%; display: flex; flex-wrap: wrap; justify-content: space-between; }
	.bh-carousel > :not(.wp-block-buttons):not(.bh-carousel__nav) { flex: 0 0 100%; min-inline-size: 0; max-inline-size: 100%; }
	.bh-carousel > .wp-block-buttons { max-inline-size: 100%; }
	.bh-carousel:not(:has(> .bh-stories--carousel)) > .wp-block-buttons { margin-block-start: var(--space-4); }
	.bh-carousel__nav { margin-inline-start: auto; }
}

@media (prefers-reduced-motion: reduce) {
	.bh-carousel > .wp-block-post-template.bh-stories--carousel { scroll-behavior: auto; }
}

/* --- Quote: the type does the work, no quote marks ----------------------- */

/* The measure sits on the text itself: a ch on the wrapper is a body-size
   character (~9px), which squeezed the display quote to one word per line. */
.bh-quote { margin: 0; }

.bh-quote__text {
	max-width: 20ch;
	font-family: var(--font-display);
	font-weight: var(--weight-display);
	font-size: var(--type-display-3);
	line-height: var(--leading-display);
	letter-spacing: var(--tracking-display);
	text-transform: uppercase;
	color: var(--text-strong);
	margin: 0;
}

.bh-band--deep .bh-quote__text { color: var(--text-invert); }

.bh-quote__attribution {
	display: block;
	font-family: var(--font-mono);
	font-size: var(--type-caption);
	color: var(--text-muted);
	margin-block-start: var(--space-5);
}

.bh-band--deep .bh-quote__attribution { color: var(--text-invert-muted); }

/* --- Callout ------------------------------------------------------------- */

.bh-callout {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
	gap: clamp(var(--space-6), 5vw, var(--space-9));
	align-items: center;
}

.bh-callout__body { max-width: 52ch; }

/* --- Tags ---------------------------------------------------------------- */

.bh-tag {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: var(--type-caption);
	letter-spacing: var(--tracking-button);
	text-transform: uppercase;
	border-radius: var(--radius-pill);
	padding: var(--space-1) var(--space-4);
	background: var(--clay-100);
	color: var(--clay-700);
}

.bh-tag--sage   { background: var(--sage-100);   color: var(--sage-700); }
.bh-tag--lagoon { background: var(--lagoon-100); color: var(--lagoon-700); }
.bh-tag--invert { background: var(--surface-deep-soft); color: var(--text-invert); }

/* --- Team ---------------------------------------------------------------- */

.bh-team {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
	gap: clamp(var(--space-5), 3vw, var(--space-7));
}

.bh-team__name {
	font-family: var(--font-display);
	font-weight: var(--weight-display);
	font-size: var(--type-display-4);
	text-transform: uppercase;
	line-height: var(--leading-display);
	margin-block-start: var(--space-4);
	color: var(--text-strong);
}

.bh-team__role,
.bh-team__email {
	display: block;
	font-family: var(--font-mono);
	font-size: var(--type-caption);
	color: var(--text-muted);
	margin-block-start: var(--space-2);
}

.bh-band--deep .bh-team__name { color: var(--text-invert); }
.bh-band--deep .bh-team__role { color: var(--text-invert-muted); }

/* --- Resource / report cards -------------------------------------------- */

.bh-resources {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
	gap: clamp(var(--space-5), 3vw, var(--space-7));
}

.bh-resource__title {
	font-family: var(--font-display);
	font-weight: var(--weight-display);
	font-size: var(--type-display-4);
	text-transform: uppercase;
	line-height: var(--leading-display);
	margin-block: var(--space-4) var(--space-5);
	color: var(--text-strong);
}

/* --- Accordion: hairlines, never boxes ---------------------------------- */

.bh-accordion { border-block-start: 1px solid var(--border-hairline); }

.bh-accordion__item { border-block-end: 1px solid var(--border-hairline); }

.bh-accordion__item summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--space-5);
	cursor: pointer;
	padding-block: var(--space-5);
	font-family: var(--font-display);
	font-weight: var(--weight-display);
	font-size: var(--type-display-4);
	text-transform: uppercase;
	line-height: var(--leading-display);
	color: var(--text-strong);
	list-style: none;
}

.bh-accordion__item summary::-webkit-details-marker { display: none; }

.bh-accordion__item summary::after {
	content: "+";
	font-family: var(--font-mono);
	font-size: var(--type-display-4);
	color: var(--text-muted);
	transition: transform var(--motion-base) var(--ease-out);
	flex: none;
}

.bh-accordion__item[open] summary::after { transform: rotate(45deg); }

.bh-accordion__body { padding-block-end: var(--space-5); max-width: 58ch; }

.bh-band--deep .bh-accordion { border-color: var(--border-invert); }
.bh-band--deep .bh-accordion__item { border-color: var(--border-invert); }
.bh-band--deep .bh-accordion__item summary { color: var(--text-invert); }

/* --- Filter bar: mono pills, active inverts ----------------------------- */

.bh-filters {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
	margin-block-end: var(--space-7);
	padding: 0;
	list-style: none;
}

.bh-filters a {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: var(--type-caption);
	letter-spacing: var(--tracking-button);
	text-transform: uppercase;
	text-decoration: none;
	border-radius: var(--radius-pill);
	padding: var(--space-2) var(--space-5);
	border: var(--border-width) solid var(--border-soft);
	color: var(--text-body);
	transition: background-color var(--motion-fast) var(--ease-out), color var(--motion-fast) var(--ease-out);
}

.bh-filters a:hover { background: var(--surface-sand); color: var(--text-strong); }

.bh-filters .is-active a,
.bh-filters a[aria-current="page"] {
	background: var(--surface-deep);
	border-color: var(--surface-deep);
	color: var(--text-invert);
}

/* --- Donation tiers ------------------------------------------------------ */

.bh-tiers {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
	gap: clamp(var(--space-5), 3vw, var(--space-7));
}

.bh-tier {
	padding: var(--space-7);
	border-radius: var(--radius-xl);
	background: var(--surface-raised);
	box-shadow: var(--shadow-inset-hairline);
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
}

.bh-tier__frequency {
	font-family: var(--font-mono);
	font-size: var(--type-eyebrow);
	letter-spacing: var(--tracking-eyebrow);
	text-transform: lowercase;
	color: var(--text-muted);
}

.bh-tier__amounts {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
	padding: 0;
	margin: 0;
	list-style: none;
}

.bh-tier__amount {
	font-family: var(--font-display);
	font-weight: var(--weight-display);
	font-size: var(--type-display-4);
	text-transform: uppercase;
	border-radius: var(--radius-pill);
	border: var(--border-width-strong) solid var(--border-strong);
	padding: var(--space-2) var(--space-5);
	color: var(--text-strong);
}

.bh-tier__outcome {
	font-size: var(--type-body-sm);
	color: var(--text-muted);
	margin: 0;
}

/* --- Forms --------------------------------------------------------------- */

.bh-form-card {
	padding: clamp(var(--space-6), 4vw, var(--space-8));
	border-radius: var(--radius-xl);
	background: var(--surface-raised);
	box-shadow: var(--shadow-inset-hairline);
}

.bh-band--deep .bh-form-card { color: var(--text-body); }
.bh-band--deep .bh-form-card :where(h1,h2,h3,h4) { color: var(--text-strong); }
.bh-band--deep .bh-form-card p { color: var(--text-body); }

/* --- Utilities ----------------------------------------------------------- */

.bh-prose { max-width: 58ch; }
.bh-stack > * + * { margin-block-start: var(--space-5); }
.bh-divider { border: 0; border-block-start: 1px solid var(--border-hairline); margin-block: var(--space-7); }
.bh-band--deep .bh-divider { border-color: var(--border-invert); }

.bh-placeholder-note {
	font-family: var(--font-mono);
	font-size: var(--type-caption);
	color: var(--text-faint);
}

/* --- Motion: restrained, and off entirely when asked -------------------- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
	.bh-story:hover .bh-photo__media { transform: none; }
	.bh-photo--tilt-left, .bh-photo--tilt-right { transform: none; }
}

/* --- Header: sticky, hairline edge, type wordmark ----------------------- */

.bh-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--surface-page);
	border-block-end: 1px solid var(--border-hairline);
	padding-block: var(--space-4);
	padding-inline: var(--band-padding-x);
}

.bh-header__inner {
	max-width: var(--container);
	margin-inline: auto;
}

/* There is no logo file in this system — the wordmark is type in a box. */
.bh-wordmark a,
.bh-wordmark {
	font-family: var(--font-display) !important;
	font-weight: var(--weight-display) !important;
	font-size: var(--type-display-4) !important;
	letter-spacing: var(--tracking-display);
	text-transform: uppercase !important;
	text-decoration: none;
	line-height: 1 !important;
}

.bh-wordmark a {
	display: inline-block;
	background: var(--surface-deep);
	color: var(--text-invert) !important;
	border-radius: var(--radius-sm);
	padding: var(--space-2) var(--space-4);
}

.bh-wordmark a:hover { background: var(--warm-800); }

.bh-wordmark--invert a {
	background: transparent;
	color: var(--text-invert) !important;
	padding-inline: 0;
}

/* Navigation: two words max, uppercase, pure type — no icons. */
.bh-nav a {
	font-family: var(--font-mono);
	font-size: var(--type-caption);
	letter-spacing: var(--tracking-button);
	text-transform: uppercase;
	text-decoration: none;
	color: var(--text-body);
	transition: color var(--motion-fast) var(--ease-out);
}

.bh-nav a:hover,
.bh-nav .current-menu-item > a {
	color: var(--text-accent);
}

/* --- Footer -------------------------------------------------------------- */

.bh-footer__tagline {
	font-family: var(--font-mono);
	font-size: var(--type-caption);
	color: var(--text-invert-muted);
	margin-block-start: var(--space-3);
	max-width: 30ch;
}

/* Social logos (Facebook, LinkedIn): mono logos in the muted invert colour,
   brightening on hover. Specificity (0,4,0) beats core's per-service brand
   colour in the logos-only style. */
.bh-footer__social {
	margin-block-start: var(--space-4);
	gap: var(--space-4) !important;
}

.bh-footer .bh-footer__social.is-style-logos-only .wp-social-link {
	color: var(--text-invert-muted);
	transition: color var(--motion-fast) var(--ease-out);
}

.bh-footer .bh-footer__social.is-style-logos-only .wp-social-link:hover,
.bh-footer .bh-footer__social.is-style-logos-only .wp-social-link:focus-within {
	color: var(--text-invert);
}

.bh-footer__social .wp-block-social-link-anchor svg {
	width: 1.5rem;
	height: 1.5rem;
}

/* One-row footer (client markup, 2026-10-13): the link columns are gone; the
   legal line sits bottom-left and the brand block (wordmark, tagline, social
   logos) bottom-right, flush with the container edge. On phones the row
   wraps and the brand block comes first. */
/* Merged footer (2026-10-13, third round): the "Support the work" ask that
   used to be a separate deep band at the end of every page now lives at the
   top of the footer part — one dark band, three quiet rows: ask + button,
   hairline, legal + brand. The heading steps down from display-3 to a size
   between display-4 and display-3 so the footer no longer shouts, and the
   band padding stays a few tokens rather than --band-padding-y. The ask is
   hidden on the membership page itself (body.page-id-14), where it would
   only point at the page the reader is already on. */
.bh-footer.bh-band {
	padding-block: var(--space-7) var(--space-5);
}

/* Fourth round: the hairline between the ask and the legal/brand row is gone;
   the two rows sit as one block with a single token of air between them. */
.bh-footer__support {
	gap: var(--space-5) var(--space-7);
	margin-block-end: var(--space-6);
}

.bh-footer__ask {
	flex: 1 1 32rem;
	max-width: 60ch;
}

.bh-footer__support-title {
	font-family: var(--font-display);
	font-weight: var(--weight-display);
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	line-height: var(--leading-display);
	letter-spacing: var(--tracking-display);
	text-transform: uppercase;
	color: var(--text-invert);
	margin: 0;
}

.bh-footer__support-body {
	font-size: var(--type-body);
	color: var(--text-invert-muted);
	max-width: 46ch;
	margin: var(--space-3) 0 0;
}

.bh-footer__cta {
	flex: none;
	margin: 0;
}

body.page-id-14 .bh-footer__support {
	display: none;
}

body.page-id-14 .bh-footer.bh-band {
	padding-block-start: var(--space-5);
}

.bh-footer__bottom {
	gap: var(--space-5) var(--space-7);
}

.bh-footer__brand {
	text-align: end;
	margin-inline-start: auto;
}

.bh-footer__brand .bh-footer__tagline {
	margin-inline-start: auto;
}

/* (0,2,0) so it beats core's generated .wp-container-* align-items rule. */
@media (max-width: 800px) {
	.bh-footer .bh-footer__support,
	.bh-footer .bh-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
	}

	/* In a column the 32rem flex-basis would become a height. */
	.bh-footer__ask {
		flex: none;
		max-width: none;
	}

	.bh-footer__brand {
		order: -1;
		text-align: start;
		margin-inline-start: 0;
	}

	.bh-footer__brand .bh-footer__tagline {
		margin-inline-start: 0;
	}

	.bh-footer__brand .bh-footer__social {
		justify-content: flex-start !important;
	}
}

.bh-footer__legal {
	font-family: var(--font-mono);
	font-size: var(--type-caption);
	color: var(--text-invert-muted);
	margin: 0;
}

/* --- Focus: 2px ochre ring at 2px offset, per the design system ---------- */

:where(a, button, summary, input, select, textarea, .bh-btn):focus-visible {
	outline: 2px solid var(--focus-ring);
	outline-offset: 2px;
	border-radius: var(--radius-xs);
}

:where(input, select, textarea):focus-visible {
	box-shadow: 0 0 0 3px var(--clay-100);
}

/* Skip link for keyboard users. */
.bh-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	background: var(--surface-deep);
	color: var(--text-invert);
	font-family: var(--font-mono);
	font-size: var(--type-caption);
	padding: var(--space-3) var(--space-5);
	border-radius: var(--radius-sm);
}

.bh-skip-link:focus {
	left: var(--space-4);
	top: var(--space-4);
}

/* --- Core button block variants ------------------------------------------ */

.wp-block-button.bh-btn-secondary .wp-block-button__link {
	background: transparent;
	color: var(--text-strong);
	border: var(--border-width-strong) solid var(--border-strong);
}
.wp-block-button.bh-btn-secondary .wp-block-button__link:hover { background: var(--surface-sand); }

.wp-block-button.bh-btn-invert .wp-block-button__link {
	background: transparent;
	color: var(--text-invert);
	border: var(--border-width-strong) solid var(--border-invert);
}
.wp-block-button.bh-btn-invert .wp-block-button__link:hover { background: var(--surface-deep-soft); }

.wp-block-button.bh-btn-solid-invert .wp-block-button__link {
	background: var(--warm-50);
	color: var(--warm-900);
}
.wp-block-button.bh-btn-solid-invert .wp-block-button__link:hover { background: var(--warm-200); }

/* Images inside a photo frame carry the frame's radius and shadow. */
.bh-photo .wp-block-image img,
.bh-photo img {
	border-radius: var(--radius-photo);
	box-shadow: var(--shadow-md);
	display: block;
	width: 100%;
	object-fit: cover;
	transition: transform var(--motion-base) var(--ease-out), box-shadow var(--motion-base) var(--ease-out);
}

.bh-photo--portrait img { aspect-ratio: 3 / 4; }
.bh-photo--wide img { aspect-ratio: 16 / 9; }
.bh-photo img { aspect-ratio: 4 / 3; }

/* --- Fluent Forms, dressed as Bandhab ------------------------------------ */

.fluentform .ff-el-input--label label {
	font-family: var(--font-body);
	font-size: var(--type-body-sm);
	font-weight: 600;
	color: var(--text-strong);
	margin-block-end: var(--space-2);
}

/* "(required)" in muted small type — never an asterisk. */
.fluentform .ff-el-is-required.asterisk-right label:after,
.fluentform .ff-el-is-required.asterisk-left label:before {
	content: " (required)";
	color: var(--text-faint);
	font-size: var(--type-caption);
	font-weight: 400;
}

.fluentform input[type="text"],
.fluentform input[type="email"],
.fluentform input[type="tel"],
.fluentform select,
.fluentform textarea {
	font-family: var(--font-body);
	font-size: var(--type-body);
	color: var(--text-body);
	background: var(--surface-raised);
	border: var(--border-width) solid var(--border-soft);
	border-radius: var(--radius-md);
	padding: var(--space-3) var(--space-4);
	width: 100%;
	transition: border-color var(--motion-fast) var(--ease-out), box-shadow var(--motion-fast) var(--ease-out);
}

.fluentform input:focus,
.fluentform select:focus,
.fluentform textarea:focus {
	border-color: var(--accent-primary);
	outline: 2px solid var(--focus-ring);
	outline-offset: 2px;
	box-shadow: 0 0 0 3px var(--clay-100);
}

.fluentform .ff-el-form-check label {
	font-family: var(--font-body);
	font-size: var(--type-body-sm);
	color: var(--text-body);
}

.fluentform input[type="checkbox"] {
	accent-color: var(--accent-primary);
	width: 1.05em;
	height: 1.05em;
	border-radius: var(--radius-sm);
}

.fluentform .ff-btn-submit {
	font-family: var(--font-mono) !important;
	font-size: var(--type-mono) !important;
	letter-spacing: var(--tracking-button);
	text-transform: uppercase;
	background: var(--accent-primary) !important;
	color: var(--text-invert) !important;
	border: var(--border-width-strong) solid var(--accent-primary) !important;
	border-radius: var(--radius-pill) !important;
	padding: var(--space-3) var(--space-6) !important;
	transition: background-color var(--motion-fast) var(--ease-out);
}

.fluentform .ff-btn-submit:hover {
	background: var(--accent-primary-hover) !important;
	border-color: var(--accent-primary-hover) !important;
}

.fluentform .error-text,
.fluentform .text-danger {
	font-family: var(--font-mono);
	font-size: var(--type-caption);
	color: var(--clay-600);
}

.ff-message-success {
	font-family: var(--font-body);
	background: var(--sage-100);
	border: var(--border-width) solid var(--sage-300);
	border-radius: var(--radius-md);
	padding: var(--space-5);
	color: var(--text-body);
}

/* ==========================================================================
   Block-native module markup
   The modules are core blocks now, not raw HTML, so these selectors follow
   what WordPress actually renders: post-template lists, bound paragraphs,
   heading elements and the core details block.
   ========================================================================== */

/* --- Team grid: a Query Loop over People --------------------------------- */

.bh-team {
	list-style: none;
	padding: 0;
	margin: 0;
}

.bh-team > li { margin: 0; }

.bh-team .bh-photo,
.bh-team .wp-block-post-featured-image {
	margin: 0 0 var(--space-4);
}

.bh-team .bh-team__name {
	font-size: var(--type-display-4);
	line-height: var(--leading-display);
	margin: 0;
}

.bh-team .bh-team__role,
.bh-team .bh-team__email {
	font-family: var(--font-mono);
	font-size: var(--type-caption);
	line-height: var(--leading-mono);
	color: var(--text-muted);
	margin: var(--space-2) 0 0;
}

/* A person with no role or email should not leave a gap. */
.bh-team__role:empty,
.bh-team__email:empty { display: none; }

/* --- Stat tiles: heading + paragraph inside a grid group ----------------- */

.bh-stats > .bh-stat { margin: 0; }

.bh-stat .bh-stat__value {
	font-size: var(--type-display-3);
	margin: 0;
}

.bh-stat .bh-stat__label { margin: var(--space-3) 0 0; }

/* --- Donation tiers ------------------------------------------------------ */

.bh-tiers > .bh-tier { margin: 0; }
.bh-tier > * { margin-block: 0; }

.bh-tier__amounts {
	gap: var(--space-3);
	margin-block: 0;
}

.bh-tier .bh-tier__amount { margin: 0; }
.bh-tier .bh-tier__frequency { margin: 0; }
.bh-tier .bh-tier__outcome { margin: 0; }

/* --- Resource cards ------------------------------------------------------ */

.bh-resources > .bh-resource { margin: 0; }
.bh-resource .bh-photo { margin: 0; }
.bh-resource .bh-resource__title { font-size: var(--type-display-4); }

/* --- Accordion: the core details block ----------------------------------- */

.bh-accordion .wp-block-details {
	border-block-end: 1px solid var(--border-hairline);
	margin: 0;
}

.bh-accordion .wp-block-details > summary { padding-block: var(--space-5); }
.bh-accordion .wp-block-details[open] > summary::after { transform: rotate(45deg); }
.bh-accordion .wp-block-details > :not(summary) {
	padding-block-end: var(--space-5);
	max-width: 58ch;
	margin-block: 0;
}

.bh-band--deep .bh-accordion .wp-block-details { border-color: var(--border-invert); }

/* --- Quote --------------------------------------------------------------- */

.bh-quote > * { margin-block: 0; }
.bh-quote .bh-quote__text { margin: 0; }

/* --- Byline: who wrote this ---------------------------------------------- */

.bh-byline {
	font-family: var(--font-mono);
	font-size: var(--type-caption);
	color: var(--text-muted);
	margin-block: var(--space-3) 0;
}

.bh-byline a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.bh-byline a:hover { color: var(--text-accent); }

/* ==========================================================================
   Corrections
   ========================================================================== */

/* WordPress escapes "--" inside block ATTRIBUTES, so a dynamic block such as
   post-featured-image renders class="bh-photou002du002dportrait". Modifier
   classes passed to dynamic blocks therefore use a single hyphen. Both spellings
   are matched here so older content keeps working.
   Declared after the base .bh-photo rule on purpose: same specificity, so source
   order decides, and the modifier has to win. */
.bh-photo-portrait img,
.bh-photo--portrait img,
.bh-photou002du002dportrait img {
	aspect-ratio: 3 / 4;
}

.bh-photo-wide img,
.bh-photo--wide img,
.bh-photou002du002dwide img {
	aspect-ratio: 16 / 9;
}

/* --- Team cards: tighter, and aligned across a row ----------------------- */

.bh-team {
	gap: clamp(var(--space-5), 3vw, var(--space-7));
}

/* The card is a column so the pieces sit close together, not on the page's
   default block rhythm. */
.bh-team > li {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.bh-team .bh-photo,
.bh-team .wp-block-post-featured-image {
	margin: 0 0 var(--space-5);
}

/* Two lines reserved, so a name that wraps does not push its role and email
   out of line with the cards beside it. */
.bh-team .bh-team__name {
	font-size: var(--type-display-4);
	line-height: var(--leading-display);
	min-height: calc(2em * var(--leading-display));
	margin: 0;
	text-wrap: balance;
}

.bh-team .bh-team__role {
	margin: var(--space-3) 0 0;
}

.bh-team .bh-team__email {
	margin: var(--space-1) 0 0;
	word-break: break-word;
}

/* --- Grid gaps, per the design system's spacing scale -------------------- */

.bh-stats,
.bh-tiers,
.bh-resources,
.bh-stories {
	gap: clamp(var(--space-5), 3vw, var(--space-7));
}

/* Footer legal row: separate blocks so each can bind to its own field. */
.bh-footer__legal-row { gap: var(--space-2) var(--space-5); }
.bh-footer__legal-row .bh-footer__legal { margin: 0; }
.bh-footer__legal:empty { display: none; }

/* ==========================================================================
   Grid rhythm, taken from the design system rather than invented
   --------------------------------------------------------------------------
   Measured from ui_kits/website/*.jsx and templates/ngo-landing:
     team        minmax(180px)  gap space-6  (ConnectScreen)
     stats       minmax(190px)  gap space-5  (HomeScreen)
     story cards minmax(240px)  gap space-6  (HomeScreen)
     story arch. minmax(260px)  gap space-7 / space-6  (StoriesScreen)
     resources   minmax(260px)  gap space-7  (CountryScreen)
     text+photo  minmax(300px)  gap clamp(28px,5vw,72px)  (NgoLanding)
     callout     minmax(280px)  gap clamp(24px,5vw,64px)  (NgoLanding)
   Declared last so these win over the earlier approximations.
   ========================================================================== */

.bh-team      { gap: var(--space-6); }
.bh-stats     { gap: var(--space-5); }
.bh-stories   { gap: var(--space-7) var(--space-6); }
.bh-resources { gap: var(--space-7); }
.bh-tiers     { gap: var(--space-7); }
.bh-split     { gap: clamp(28px, 5vw, 72px); }
.bh-callout   { gap: clamp(24px, 5vw, 64px); }

/* --- Team card, matching components/blocks/TeamCard.jsx ------------------ */

.bh-team > li {
	display: grid;
	align-content: start;
	gap: 0;
}

/* Photo to text block: 12px. Within the text block: 4px. */
.bh-team .bh-photo,
.bh-team .wp-block-post-featured-image {
	margin: 0 0 var(--space-3);
}

/* The design system sets the name in body-sm sentence case, not display caps.
   An uppercase 24px heading made every card top-heavy and wrapped short names
   onto two lines. Overriding the theme.json heading element styles. */
.bh-team .bh-team__name,
.bh-team h3.bh-team__name {
	font-family: var(--font-body);
	font-size: var(--type-body-sm);
	font-weight: 600;
	line-height: var(--leading-tight);
	letter-spacing: 0;
	text-transform: none;
	color: var(--text-strong);
	margin: 0;
	min-height: 0;
}

.bh-team .bh-team__role  { margin: var(--space-1) 0 0; line-height: 1.5; }
.bh-team .bh-team__email { margin: var(--space-1) 0 0; line-height: 1.5; }

/* --- Stat tile, matching components/blocks/StatTile.jsx ------------------ */

.bh-stat { padding: var(--space-6); }

.bh-stat .bh-stat__value {
	font-size: clamp(2.2rem, 4vw, 3.2rem);
	white-space: nowrap;
	line-height: 0.95;
	margin: 0;
}

.bh-stat .bh-stat__label {
	letter-spacing: 0.04em;
	line-height: 1.45;
	margin: var(--space-2) 0 0;
}

/* ==========================================================================
   Module rhythm and empty photo frames
   --------------------------------------------------------------------------
   Two things were wrong and they compounded each other.

   1. The parent theme sets core/post-template's block gap to
      var(--wp--preset--spacing--medium). That preset only exists inside the
      theme's button scope, never at :root, so on a query loop the variable
      resolved to nothing, gap fell back to its initial value and the team and
      story cards sat flush against one another — portraits touching, shadows
      bleeding into the next card. The child theme.json now names a real token,
      and these rules restate the design system's own gaps on top of it.

   2. WordPress's grid layout emits auto-fill, so four people on a wide row
      left two empty tracks and every card stayed at its minimum width. The
      design system uses auto-fit (ui_kits/website/ConnectScreen.jsx), where the
      cards share the row out between them. Both rules below carry two classes
      on purpose: the generated .wp-container-* layout rule prints after this
      stylesheet, so a single class would lose the tie.
   ========================================================================== */

.wp-block-post-template.bh-team {
	grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
	column-gap: var(--space-6);
	row-gap: var(--space-8);
}

.wp-block-post-template.bh-stories {
	grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
	column-gap: var(--space-6);
	row-gap: var(--space-8);
}

/* Everything else laid out as a grid of cards gets the same breathing room
   between rows — a row gap that matches the column gap reads as a mesh, not as
   a set of separate modules. */
.bh-stats,
.bh-tiers,
.bh-resources {
	row-gap: var(--space-8);
}

/* --- The empty photo frame ----------------------------------------------
   A picture that has not been chosen yet. Same shape, shadow and radius as a
   real one, so the layout does not jump when the photograph arrives, but
   unmistakably unfinished. Mirrors PhotoFrame's empty state in the design
   system (components/core/PhotoFrame.jsx). */

.bh-photo--empty {
	margin: 0;
}

.bh-photo__empty {
	display: grid;
	place-items: center;
	inline-size: 100%;
	aspect-ratio: 4 / 3;
	border-radius: var(--radius-photo);
	overflow: hidden;
	background: linear-gradient(160deg, var(--warm-300), var(--warm-400));
	box-shadow: var(--shadow-md);
}

.bh-photo-portrait .bh-photo__empty,
.bh-photo--portrait .bh-photo__empty,
.bh-photou002du002dportrait .bh-photo__empty { aspect-ratio: 3 / 4; }

.bh-photo-wide .bh-photo__empty,
.bh-photo--wide .bh-photo__empty,
.bh-photou002du002dwide .bh-photo__empty { aspect-ratio: 16 / 9; }

.bh-photo__empty-label {
	font-family: var(--font-mono);
	font-size: var(--type-eyebrow);
	letter-spacing: var(--tracking-eyebrow);
	text-transform: uppercase;
	color: var(--warm-700);
}

/* For an editor, the frame is the way in: the whole thing is one target that
   opens the record where the picture belongs. Everyone else sees the frame
   above and no invitation they cannot act on. */
.bh-photo__add {
	/* Stretch, not centre: the anchor has to fill the frame so the whole
	   picture-shaped hole is the target, not just the words inside it. */
	place-self: stretch;
	display: grid;
	place-items: center;
	align-content: center;
	gap: var(--space-3);
	padding: var(--space-4);
	text-align: center;
	text-decoration: none;
	color: var(--warm-700);
	background: transparent;
	transition: background var(--motion-base) var(--ease-out);
}

.bh-photo__add:hover,
.bh-photo__add:focus-visible {
	background: color-mix(in oklab, var(--warm-50) 45%, transparent);
}

.bh-photo__add-cta {
	font-family: var(--font-mono);
	font-size: var(--type-eyebrow);
	letter-spacing: var(--tracking-button);
	text-transform: uppercase;
	color: var(--warm-900);
	border: var(--border-width-strong) solid var(--warm-900);
	border-radius: var(--radius-pill);
	padding: var(--space-2) var(--space-4);
	background: var(--warm-50);
	max-inline-size: 100%;
	text-wrap: balance;
}

/* On the dark bands the frame keeps its warm fill, so only the call to action
   needs re-stating — it must not read as a hole punched in the band. */
.bh-band--deep .bh-photo__add-cta,
.bh-band--clay .bh-photo__add-cta {
	color: var(--warm-900);
	border-color: var(--warm-900);
}

@media (prefers-reduced-motion: reduce) {
	.bh-photo__add { transition: none; }
}

/* --- Article lede --------------------------------------------------------
   The opening paragraph of a story, set a step up from the body so the eye has
   somewhere to land. Serif, not mono: .bh-hero__intro is the mono voice and it
   belongs to page tops, not to prose. Used by the Story post pattern. */

.bh-lede {
	font-size: var(--type-lede);
	line-height: var(--leading-body);
	color: var(--text-strong);
	max-width: 58ch;
	margin-block-end: var(--space-6);
}

.bh-band--deep .bh-lede,
.bh-band--clay .bh-lede { color: var(--text-invert); }

/* --- Narrow-screen safety net --------------------------------------------
   The display face is condensed and the headline floor is 48px, so a single
   long compound word — the kind Danish produces routinely — can be wider than
   a 320px phone and push the whole page sideways. overflow-wrap only acts when
   a word genuinely will not fit, so nothing changes at any width where the
   text already fits. Applied to the places that take user-entered strings. */

.bh-hero__headline,
.bh-band :where(h1, h2, h3, h4),
.bh-team__name,
.bh-story__title,
.bh-stat__value,
.bh-wordmark,
.bh-wordmark a {
	overflow-wrap: break-word;
}

/* Email addresses and URLs have no break opportunities at all. */
.bh-team__email,
.bh-footer__legal,
.bh-prose a {
	overflow-wrap: anywhere;
}

/* ==========================================================================
   Mobile pass
   ========================================================================== */

/* --- The divider was never a divider -------------------------------------
   theme.json emits `:root :where(.wp-block-separator:not(.is-style-wide)…)
   { width: 100px }`, and .bh-divider only ever restyled the border — so the
   rule that was meant to run across a footer or a section rendered as a 100px
   dash centred in a 1178px container, at every screen width. Measured, not
   guessed: 100px in a 1178px parent. Claiming the width back here. */

.bh-divider,
.wp-block-separator.bh-divider {
	width: 100%;
	max-width: none;
	margin-inline: 0;
}

/* --- Tap targets ---------------------------------------------------------
   WCAG 2.5.8 wants 24px. These links render at 15px (footer) and 21px (the
   inline nav at tablet width and up). Both scrape by on the spacing exception
   today, which is not the same as being comfortable under a thumb. Padding the
   link box rather than growing the type, so nothing about the layout moves. */

.bh-footer__legal a {
	display: inline-block;
	padding-block: var(--space-2);
}

.bh-nav .wp-block-navigation-item__content {
	display: block;
	padding-block: var(--space-2);
}

/* --- Phones: two people to a row ----------------------------------------
   At 390px the 200px minimum column allowed exactly one card, so four people
   became an 8,700px scroll of full-width portraits. 150px fits two with the
   32px gap intact on a 350px content width. Scoped to small screens so the
   tablet and desktop grids keep the design system's proportions. */

@media (max-width: 600px) {
	/* 140px, not 150px: a 360px phone leaves 320px of content width, and
	   2 x 140 + 32 is 312. At 150 the second column did not fit and the
	   smallest phones stayed on a single-column scroll. */
	.wp-block-post-template.bh-team {
		grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
		row-gap: var(--space-6);
	}

	/* A name and role in a 150px column need to break rather than push. */
	.bh-team__name,
	.bh-team__role,
	.bh-team__email { overflow-wrap: anywhere; }
}

/* --- Post meta links -----------------------------------------------------
   The category eyebrow and the "Written by" byline are links too, and they
   render at 14-15px. Same treatment as the footer: pad the box, leave the
   type alone. */

.bh-eyebrow a,
.bh-byline a,
.bh-story__meta a {
	display: inline-block;
	padding-block: var(--space-1);
}


/* --- Ways to pay ---------------------------------------------------------
   MobilePay, bank transfer and international transfer. Same panel as a
   donation tier; the numbers are bound to Organisation details and set in
   mono so a digit is never mistaken for another. See tickets/BH-023.md. */

.bh-pay {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
	gap: var(--space-7);
	row-gap: var(--space-6);
	margin-block-start: var(--space-7);
}

.bh-pay > .bh-pay__method { margin: 0; }

.bh-pay__method {
	padding: var(--space-7);
	border-radius: var(--radius-xl);
	background: var(--surface-raised);
	box-shadow: var(--shadow-inset-hairline);
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.bh-pay__method > * { margin-block: 0; }

.bh-pay__kicker {
	font-family: var(--font-mono);
	font-size: var(--type-eyebrow);
	letter-spacing: var(--tracking-eyebrow);
	text-transform: lowercase;
	color: var(--text-muted);
}

.bh-pay__method .bh-pay__title {
	font-size: var(--type-display-4);
	margin-block-end: var(--space-3);
}

.bh-pay__label {
	font-family: var(--font-mono);
	font-size: var(--type-caption);
	color: var(--text-muted);
	margin-block-start: var(--space-3);
}

.bh-pay__value {
	font-family: var(--font-mono);
	font-size: var(--type-display-4);
	line-height: 1.2;
	color: var(--text-strong);
	overflow-wrap: anywhere;
	-webkit-user-select: all;
	user-select: all;
}

/* An IBAN is 18 characters; at display size it would break mid-number. */
.bh-pay__value--long { font-size: 1.0625rem; }

.bh-pay__note {
	font-size: var(--type-body-sm);
	color: var(--text-muted);
	margin-block-start: var(--space-4);
}

.bh-pay__method .bh-btn-row { margin-block-start: var(--space-4); }

.bh-pay__more,
.bh-pay__after {
	max-width: 58ch;
	margin-block-start: var(--space-7);
}

/* The gift line and the closing line read as one paragraph pair. */
.bh-pay__more + .bh-pay__after { margin-block-start: var(--space-4); }

/* A button that jumps to a band should land below the sticky header. */
.bh-band[id] { scroll-margin-top: var(--space-9); }

/* --- Header tools ------------------------------------------------------- */

.bh-header__tools {
	gap: var(--space-5);
}

/* --- Navigation: dropdowns ----------------------------------------------
   Three of the five top items open a list on hover (openSubmenusOnClick off on
   the navigation block). The toggle is a button, so it is typed like the links;
   the panel is a raised card in the band system's voice. Inside the phone
   overlay WordPress lays the same lists out inline, which the rules below
   leave alone. */

.bh-nav .wp-block-navigation-submenu__toggle,
.bh-nav .wp-block-navigation-item__content {
	font-family: var(--font-mono);
	font-size: var(--type-caption);
	letter-spacing: var(--tracking-button);
	text-transform: uppercase;
	color: var(--text-body);
	background: none;
	border: 0;
	padding-block: var(--space-2);
	cursor: pointer;
	transition: color var(--motion-fast) var(--ease-out);
}

.bh-nav .wp-block-navigation-submenu__toggle:hover,
.bh-nav .wp-block-navigation-item.open > .wp-block-navigation-submenu__toggle,
.bh-nav .wp-block-navigation-item__content:hover {
	color: var(--text-accent);
}

/* No chevrons beside the parent items. The dropdown opens on hover and on
   keyboard focus inside the list; the rules are spelled out here rather than
   left to core's defaults, and closing waits a beat so a diagonal move from
   the label down into the panel does not drop it. Any chevron core renders
   (older cached markup) is hidden. */
.bh-nav .wp-block-navigation__submenu-icon { display: none; }

.bh-nav .wp-block-navigation-item.has-child > .wp-block-navigation__submenu-container {
	transition: opacity var(--motion-fast) var(--ease-out), visibility 0s linear 220ms;
}

.bh-nav .wp-block-navigation-item.has-child:hover > .wp-block-navigation__submenu-container,
.bh-nav .wp-block-navigation-item.has-child:focus-within > .wp-block-navigation__submenu-container,
.bh-nav .wp-block-navigation-item.has-child.is-open > .wp-block-navigation__submenu-container {
	visibility: visible;
	opacity: 1;
	overflow: visible;
	width: auto;
	height: auto;
	transition-delay: 0s;
}

/* Hover bridge: the panel starts a few pixels below the item, so pad the gap
   with the panel itself (padding, not margin, keeps it hoverable). */
.bh-nav .wp-block-navigation-item.has-child > .wp-block-navigation__submenu-container::before {
	content: "";
	position: absolute;
	inset-block-start: -10px;
	inset-inline: 0;
	height: 10px;
}

.bh-nav .wp-block-navigation__submenu-container {
	background: var(--surface-raised) !important;
	color: var(--text-body) !important;
	border: 1px solid var(--border-hairline) !important;
	border-radius: var(--radius-md);
	padding: var(--space-3) !important;
	min-width: 16rem;
	box-shadow: 0 18px 40px -24px rgb(0 0 0 / 0.35);
}

.bh-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	display: block;
	text-transform: none;
	letter-spacing: 0;
	font-family: var(--font-body);
	font-size: var(--type-caption);
	padding: var(--space-2) var(--space-3);
	border-radius: var(--radius-sm);
	white-space: nowrap;
}

.bh-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: var(--surface-sand);
	color: var(--text-strong);
}

/* SUPPORT: the one coloured box in the bar. Same pill as every primary
   button, so the eye reads it as the action it is. */
.bh-nav .bh-nav__cta > .wp-block-navigation-item__content {
	background: var(--accent-primary);
	color: var(--text-invert);
	border-radius: var(--radius-pill);
	padding: var(--space-2) var(--space-5);
	margin-inline-start: var(--space-3);
}

.bh-nav .bh-nav__cta > .wp-block-navigation-item__content:hover {
	background: var(--accent-primary-hover);
	color: var(--text-invert);
}

/* The overlay (phones) paints the same menu on the page surface. */
.bh-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--surface-page);
	padding: var(--space-7) var(--band-padding-x);
}

.bh-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	border: 0 !important;
	box-shadow: none;
	padding-inline-start: var(--space-4) !important;
	background: transparent !important;
}

.bh-nav .wp-block-navigation__responsive-container.is-menu-open .bh-nav__cta > .wp-block-navigation-item__content {
	display: inline-block;
	padding: var(--space-2) var(--space-5);
	margin-inline-start: 0;
	margin-block-start: var(--space-4);
}

/* --- Hero collage ---------------------------------------------------------
   Headline top-left, three photographs overlapping down the band, the mono
   intro bottom-right. The collage is a fixed 12 x 10 grid whose height follows
   its width, so every piece lands where the design puts it regardless of the
   photos' own proportions: the frames crop the pictures, not the other way
   round. The two smaller photos sit over the tall one. On phones the grid
   gives way to a diagonal cascade (see below). */

/* The collage band sits tighter to the header and to the band below it
   than a text hero does: the photographs carry the air themselves. */
.bh-band.bh-hero--collage {
	padding-block: var(--space-4) calc(var(--space-7) / 2);
}

.bh-hero--collage + .bh-band {
	padding-block-start: var(--space-8);
}

.bh-collage {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	grid-template-rows: repeat(10, minmax(0, 1fr));
	gap: var(--space-5);
	aspect-ratio: 1.25;
	max-width: 100%;
}

.bh-collage__headline {
	grid-column: 1 / 6;
	grid-row: 1 / 4;
	align-self: start;
	min-width: 0;
	z-index: 5;
}

.bh-collage__headline .bh-hero__headline {
	margin: 0;
	font-size: clamp(2.5rem, 5.2vw, 4.75rem) !important;
	line-height: 0.95;
}

.bh-collage__photo {
	margin: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	border-radius: var(--radius-photo);
	overflow: hidden;
	background: var(--surface-photo);
	/* A light lift, so the overlaps read as layered prints rather than a
	   flat cut-out. The tokens are warm-tinted, never neutral grey. */
	box-shadow: var(--shadow-md), var(--shadow-sm);
}

/* Core's image block sets height:auto on the img with the same specificity,
   so the frame needs the !important to win. */
.bh-collage__photo img,
.wp-block-image.bh-collage__photo img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
}

/* The wide photo is nudged right of its grid cell (+7% of its own width,
   settled over three review rounds). The two smaller photos sit over the
   tall one, not under it. */
.bh-collage__photo--wide   { grid-column: 8 / 13; grid-row: 1 / 5;  z-index: 4; transform: translateX(7%); }
.bh-collage__photo--tall   { grid-column: 4 / 9;  grid-row: 4 / 11; z-index: 3; }
.bh-collage__photo--square { grid-column: 1 / 5;  grid-row: 5 / 9;  z-index: 4; transform: translate(-5%, 35%); }

/* Frames crop from the upper middle: subjects sit there in most photographs. */
.bh-collage__photo--square img,
.bh-collage__photo--wide img { object-position: 50% 30%; }

.bh-collage__intro {
	grid-column: 10 / 13;
	grid-row: 5 / 10;
	align-self: center;
	min-width: 0;
}

.bh-collage__intro .bh-hero__intro { margin-block-end: var(--space-5); }

/* Tablets: same collage, the intro gets a wider column and the headline a
   smaller step so four lines still clear the shifted photo. */
@media (max-width: 1100px) and (min-width: 801px) {
	.bh-collage__intro { grid-column: 9 / 13; }
	.bh-collage__headline .bh-hero__headline { font-size: clamp(2.25rem, 4.6vw, 3.5rem) !important; }
}

/* Phones: the fixed grid gives way to a diagonal cascade of three overlapping
   photos: the wide one top-left, the tall one in the middle, the third at the
   bottom-right. Widths, offsets and overlaps are all shares of the column, so
   the composition keeps its shape at every phone size. */
@media (max-width: 800px) {
	.bh-collage {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: none;
		aspect-ratio: auto;
		row-gap: 0;
	}
	.bh-collage > * { grid-column: 1; grid-row: auto; }
	.bh-collage__headline      { order: 1; margin-block-end: var(--space-5); }
	.bh-collage__photo--wide   { order: 2; width: 61%; height: auto; aspect-ratio: 4 / 3; transform: none; }
	.bh-collage__photo--tall   { order: 3; width: 74%; height: auto; aspect-ratio: 7 / 9; margin-block-start: -7%;  margin-inline-start: 13%; }
	.bh-collage__photo--square { order: 4; width: 61%; height: auto; aspect-ratio: 4 / 3; margin-block-start: -16%; margin-inline-start: 39%; transform: none; }
	.bh-collage__intro         { order: 5; margin-block-start: var(--space-6); }
}

/* --- Header: hamburger up to 900px ---------------------------------------
   Core switches to the full menu at 600px, where five items plus the SUPPORT
   pill no longer fit beside the wordmark and wrap into three rows. Keep the
   overlay menu until there is room. */
@media (min-width: 600px) and (max-width: 899px) {
	.bh-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.bh-nav .wp-block-navigation__responsive-container:not(.is-menu-open):not(.hidden-by-default) { display: none; }
}

/* --- Hero photo band ------------------------------------------------------
   A full-width photograph behind the page top (core Cover block carrying the
   band classes). The deep overlay plus a gradient from the bottom keep the
   headline legible on any picture; the content sits bottom-left like a
   caption on a print. Used on the project pages. */

.bh-band.bh-hero--photo.wp-block-cover {
	padding-block: var(--space-9) var(--space-8);
	padding-inline: var(--band-padding-x);
	min-height: clamp(420px, 60vh, 720px);
	display: flex;
	align-items: flex-end;
}

/* Core's custom-content-position rule (specificity 0,3,0) zeroes the inner
   container's margin and width; this outranks it so the text lines up with
   every other band's content column. */
.wp-block-cover.bh-hero--photo.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container,
.bh-hero--photo .wp-block-cover__inner-container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
}

.bh-hero--photo .wp-block-cover__image-background { object-position: 50% 35%; }

.bh-hero--photo .wp-block-cover__background {
	background: linear-gradient(to top, rgb(26 24 23 / 0.82) 0%, rgb(26 24 23 / 0.45) 45%, rgb(26 24 23 / 0.15) 100%) !important;
	opacity: 1 !important;
}

.bh-hero--photo .bh-hero__headline { color: var(--text-invert); max-width: 16ch; }
.bh-hero--photo .bh-hero__intro { color: var(--text-invert); margin-block-end: var(--space-6); }
.bh-hero--photo .bh-eyebrow { color: var(--text-invert-muted); }

@media (max-width: 800px) {
	.bh-band.bh-hero--photo.wp-block-cover { min-height: clamp(360px, 70vh, 560px); padding-block: var(--space-8) var(--space-7); }
}

/* Full-screen variant (Partnerships): the photograph fills the viewport below
   the sticky header. The header has no fixed height, so it is derived from the
   tokens it is built from: block padding, wordmark padding, wordmark size and
   the hairline. !important outranks the Cover block's inline min-height. */
.bh-band.bh-hero--photo.bh-hero--full.wp-block-cover {
	--bh-header-h: calc(var(--space-4) * 2 + var(--space-2) * 2 + var(--type-display-4) + 1px);
	min-height: calc(100svh - var(--bh-header-h)) !important;
}

/* <main> carries the theme block gap under the header; a full-screen hero
   sits flush against it instead. */
.bh-main:has(> .wp-block-post-content > .bh-hero--full:first-child) { margin-block-start: 0; }

/* The membership hero carries a lede and a short list instead of the mono
   intro. Both keep to a prose measure so the copy reads as one column against
   the photograph rather than running the width of the band. */
.bh-hero--photo .bh-lede {
	max-width: 48ch;
	margin-block-end: var(--space-5);
}

.bh-hero--photo .wp-block-list {
	max-width: 48ch;
	color: var(--text-invert);
	margin-block-end: 0;
	padding-inline-start: 1.25em;
}

.bh-hero--photo .wp-block-list li { margin-block-end: var(--space-2); }
.bh-hero--photo .wp-block-list li:last-child { margin-block-end: 0; }

/* The membership photograph is composed around its centre, so on wide screens
   it is enlarged and anchored left to move the family out from under the
   headline; the copy then sits over the corrugated wall. Phones keep the full
   frame, where the copy runs the whole width anyway. */
@media (min-width: 1100px) {
	body.page-id-14 .bh-hero--photo .wp-block-cover__image-background {
		width: 135%;
		max-width: none;
		object-position: 0 35%;
	}
}

/* --- Filter row: search box + category dropdown above the stories -------- */

.bh-filter-row {
	gap: var(--space-3) var(--space-4) !important;
	margin-block-end: var(--space-7);
}

.bh-filter-row .wp-block-search {
	margin: 0;
	flex: 1 1 280px;
	max-width: 420px;
}

.bh-filter-row .wp-block-search__inside-wrapper {
	border: var(--border-width) solid var(--border-soft);
	border-radius: var(--radius-pill);
	overflow: hidden;
}

.bh-filter-row .wp-block-search__input {
	border: 0;
	background: transparent;
	font-family: var(--font-mono);
	font-size: var(--type-caption);
	letter-spacing: var(--tracking-button);
	padding: var(--space-2) var(--space-5);
	color: var(--text-body);
	min-width: 0;
}

.bh-filter-row .wp-block-search__input:focus-visible {
	outline-offset: -2px;
	border-radius: var(--radius-pill);
}

.bh-filter-row .wp-block-search__button {
	margin: 0;
	border: 0;
	border-radius: 0;
	background: var(--surface-deep);
	color: var(--text-invert);
	padding-inline: var(--space-4);
	cursor: pointer;
}

.bh-filter-row .wp-block-search__button svg { fill: currentColor; }

.bh-filter-row .wp-block-categories-dropdown { margin: 0; }

.bh-filter-row .wp-block-categories-dropdown select {
	font-family: var(--font-mono);
	font-size: var(--type-caption);
	letter-spacing: var(--tracking-button);
	text-transform: uppercase;
	color: var(--text-body);
	background: transparent;
	border: var(--border-width) solid var(--border-soft);
	border-radius: var(--radius-pill);
	padding: var(--space-2) var(--space-6) var(--space-2) var(--space-5);
	cursor: pointer;
}

.bh-filter-row__all {
	margin: 0;
	font-family: var(--font-mono);
	font-size: var(--type-caption);
	letter-spacing: var(--tracking-button);
	text-transform: uppercase;
}

.bh-filter-row__all a { color: var(--text-body); }
.bh-filter-row__all a:hover { color: var(--text-accent); }

/* Phones: one box to a row, so no words are cut. 16px text, the size from
   which iPhones do not zoom in on a field; placeholder at full strength. */
@media (max-width: 639px) {
	.bh-filter-row.bh-filter-row { flex-wrap: wrap !important; }
	.bh-filter-row > .wp-block-search,
	.bh-filter-row > .wp-block-categories-dropdown { flex: 1 1 100%; width: 100%; max-width: none; }
	.bh-filter-row .wp-block-search__input,
	.bh-filter-row .wp-block-categories-dropdown select {
		font-size: 1rem;
		letter-spacing: 0.02em;
		color: var(--text-strong);
		min-block-size: 48px;
	}
	.bh-filter-row .wp-block-search__input::placeholder { color: var(--text-muted); opacity: 1; }
	.bh-filter-row .wp-block-categories-dropdown select {
		width: 100%;
		text-transform: none;
		-webkit-appearance: none;
		appearance: none;
		background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23272423' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 20px center / 20px;
		padding-inline-end: 52px;
	}
	.bh-filter-row__all { font-size: 0.875rem; }
	.bh-filter-row__all a { display: inline-block; padding-block: var(--space-2); }
}

/* --- Footer, compact (2026-10-13, round five): about 40% shorter -----------
   The two flex rows dissolve (display: contents) into one 2x2 grid on the
   band inner — ask | pill over legal | brand — so the band is as tall as one
   column of content, not two stacked rows. Type steps down a notch (body-sm,
   a smaller wordmark and logos) and the padding drops to two tokens. */

.bh-footer.bh-band {
	padding-block: var(--space-4) var(--space-4);
}

.bh-footer .bh-band__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	column-gap: var(--space-7);
	row-gap: var(--space-4);
	align-items: start;
}

.bh-footer .bh-footer__support,
.bh-footer .bh-footer__bottom {
	display: contents;
}

.bh-footer__support {
	margin-block-end: 0;
}

.bh-footer__support-body {
	font-size: var(--type-body-sm);
	max-width: 58ch;
	margin-block-start: var(--space-2);
}

.bh-footer__cta {
	justify-self: end;
}

.bh-footer .bh-footer__legal-row {
	align-self: end;
}

.bh-footer__brand {
	justify-self: end;
	align-self: end;
	margin-inline-start: 0;
}

.bh-footer .bh-footer__brand .bh-wordmark,
.bh-footer .bh-footer__brand .bh-wordmark a {
	font-size: 1.25rem !important;
}

.bh-footer .bh-footer__brand .bh-wordmark--invert a {
	padding-block: 0;
}

.bh-footer__brand .bh-footer__tagline {
	margin-block-start: var(--space-1);
	max-width: none;
}

.bh-footer__brand .bh-footer__social {
	margin-block-start: var(--space-2);
}

.bh-footer__social .wp-block-social-link-anchor svg {
	width: 1.25rem;
	height: 1.25rem;
}

body.page-id-14 .bh-footer.bh-band {
	padding-block-start: var(--space-4);
}

@media (max-width: 800px) {
	.bh-footer .bh-band__inner {
		grid-template-columns: minmax(0, 1fr);
		row-gap: var(--space-3);
	}

	.bh-footer__support-title { font-size: 1.25rem; }

	.bh-footer__ask { order: 1; }
	.bh-footer__cta { order: 2; justify-self: start; }
	.bh-footer__brand { order: 3; justify-self: start; }
	.bh-footer .bh-footer__legal-row { order: 4; }
}

/* --- Membership: the form becomes the payment step --------------------- */
/* After a successful sign-up, inc/membership.php returns the three ways to
   pay as the form's confirmation and assets/js/membership.js marks the band
   `bh-band--paying` (a `:has()` fallback covers the script failing). The band
   then reads as the Ways to pay band: sand surface, container width, its own
   eyebrow and heading gone (the step brings its own), and the form card shed
   so the three method cards sit directly on the band. */

.bh-band--paying,
.bh-band:has(.bh-form-card .ff-message-success) {
	background: var(--surface-sand);
}

.bh-band--paying .bh-band__inner,
.bh-band:has(.bh-form-card .ff-message-success) .bh-band__inner {
	max-width: var(--container);
}

.bh-band--paying .bh-band__inner > :not(.bh-form-card),
.bh-band:has(.bh-form-card .ff-message-success) .bh-band__inner > :not(.bh-form-card) {
	display: none;
}

.bh-band--paying .bh-form-card,
.bh-band:has(.bh-form-card .ff-message-success) .bh-form-card {
	padding: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
}

/* Fluent Forms draws its own box around the message; the band is the box. */
.bh-band--paying .ff-message-success,
.bh-band:has(.bh-form-card .ff-message-success) .ff-message-success {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
}

.bh-pay-step__title { margin-block: 0; }
.bh-pay-step__title:focus { outline: none; } /* focus is moved here by script, the band change is the cue */

/* ==========================================================================
   Round two (client feedback, 2026-11-17)
   Spacing, number tiles, grids, the logo, the phone menu and the motion
   layer. Everything here is CSS: no script runs any of it. The band padding
   itself is the --band-padding-y token (a third of the old value).
   ========================================================================== */

/* --- Rhythm -------------------------------------------------------------- */

/* The snug band was a quarter of the old padding; the new padding is already
   that tight. */
.bh-band--snug { padding-block: var(--band-padding-y); }

/* The collage carried its own air above the next band. */
.bh-band.bh-hero--collage { padding-block: var(--space-4) var(--band-padding-y); }
.bh-hero--collage + .bh-band { padding-block-start: var(--band-padding-y); }

/* Two bands of the same colour read as one band: no second helping of air
   where they meet. A band's colour is its modifier class unless an editor
   picked a background colour on it. */
:is(.bh-band--page:not(.has-background), .bh-band.has-page-background-color)
	+ :is(.bh-band--page:not(.has-background), .bh-band.has-page-background-color),
:is(.bh-band--sand:not(.has-background), .bh-band.has-sand-background-color)
	+ :is(.bh-band--sand:not(.has-background), .bh-band.has-sand-background-color),
:is(.bh-band--sage:not(.has-background), .bh-band.has-sage-background-color)
	+ :is(.bh-band--sage:not(.has-background), .bh-band.has-sage-background-color),
:is(.bh-band--lagoon:not(.has-background), .bh-band.has-lagoon-background-color)
	+ :is(.bh-band--lagoon:not(.has-background), .bh-band.has-lagoon-background-color) {
	padding-block-start: 0;
}

/* A split given a background colour by an editor got core's 2.375em inner
   padding on top of the band's: on phones the text column lost a fifth of
   the screen. The band already paints the colour. */
.bh-split.has-background { padding: 0; }

/* --- Footer: more air above the ask -------------------------------------- */

.bh-footer.bh-band { padding-block: var(--space-8) var(--space-5); }

/* --- Number tiles: four different tints from the design system ----------
   Stat tiles take warm-50, clay-100, sage-100 or lagoon-100 (DESIGN.md), and
   on a sand or sage band two of them vanished into the background. The band
   behind tiles is the page surface, the tiles cycle through the four tints in
   order, and a hairline (the design system's preferred separator) outlines
   each one. The cycle wins over a colour picked per tile on purpose: the four
   tiles always differ. */
.bh-band:not(.has-background):has(.bh-stats) { background: var(--surface-page); }

.bh-stats > .bh-stat { border: 1px solid var(--border-hairline); }
.bh-stats > .bh-stat:nth-child(4n + 1) { background: var(--warm-50) !important; }
.bh-stats > .bh-stat:nth-child(4n + 2) { background: var(--clay-100) !important; }
.bh-stats > .bh-stat:nth-child(4n + 3) { background: var(--sage-100) !important; }
.bh-stats > .bh-stat:nth-child(4n + 4) { background: var(--lagoon-100) !important; }

/* Phones: two tiles to a row, as on the team page. */
@media (max-width: 639px) {
	.bh-stats.bh-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
	.bh-stats .bh-stat { padding: var(--space-4); }
	.bh-stats .bh-stat .bh-stat__value { font-size: clamp(1.6rem, 8vw, 2.2rem); }
}

/* Tiles with words for a title instead of a number (Volunteer areas): still
   two to a row on phones, with the title sized to the tile so a word of up to
   13 letters ("Communication") fits on one line. */
@media (max-width: 599px) {
	.bh-stats:not(:has(.bh-stat__value)) > .bh-stat { container-type: inline-size; }
	.bh-stats:not(:has(.bh-stat__value)) > .bh-stat > h3 { font-size: 1.1rem; font-size: min(13.9cqi, 1.9rem); line-height: 1.05; }
}

/* --- Story grids: three to a row, so the pictures can grow --------------- */

@media (min-width: 900px) {
	.bh-stories.wp-block-post-template:not(.bh-stories--carousel) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 600px) and (max-width: 899px) {
	.bh-stories.wp-block-post-template:not(.bh-stories--carousel) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --- Team: wider cards so every email fits ------------------------------- */

.bh-team.wp-block-post-template { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bh-team.wp-block-post-template > li { min-width: 0; grid-template-columns: minmax(0, 1fr); }

@media (max-width: 639px) {
	.bh-team.wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	/* inc/people.php puts a break opportunity after the @, so an address that
	   does not fit splits there and nowhere else. */
	.bh-team .bh-team__email { font-size: 0.8125rem; overflow-wrap: break-word; word-break: normal; }
}

/* --- Story page: photo hero + one wide reading column ----------------------
   The featured image fills a full-width Cover at the top of single.html with
   the category, title, date and byline written across it (the shared
   bh-hero--photo gradient keeps them legible on any picture). The title and
   the story body share one column so their left edges line up. */

.single-post { --bh-story-col: 46rem; }

.wp-block-cover.bh-hero--story.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container,
.bh-hero--story .wp-block-cover__inner-container { max-width: var(--bh-story-col); }

/* Long story titles: smaller than a page hero, wider measure. */
.bh-hero--story .bh-hero__headline {
	font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4.5rem);
	max-width: 22ch;
	margin-block: var(--space-3) var(--space-4);
	text-shadow: 0 1px 2px rgb(26 24 23 / 0.35), 0 2px 24px rgb(26 24 23 / 0.35);
}

.bh-hero--story .bh-eyebrow,
.bh-hero--story .bh-eyebrow a,
.bh-hero--story .bh-story__meta,
.bh-hero--story .bh-byline,
.bh-hero--story .bh-byline a { color: var(--text-invert); text-shadow: 0 1px 2px rgb(26 24 23 / 0.5); }

/* No featured image: the Cover shows the deep brown on its own. */
.bh-hero--story:not(:has(.wp-block-cover__image-background)) { background-color: var(--warm-900); }

/* The hero sits flush under the sticky header. */
.bh-main:has(> .bh-hero--story:first-child) { margin-block-start: 0; }

.single-post .bh-band__inner.bh-band--prose {
	max-width: var(--bh-story-col);
	margin-inline: auto;
}

/* The story body runs the full column width (no 58ch cap). */
.single-post .bh-band--prose > .bh-prose { max-width: none; padding-inline: 0; }

.single-post .bh-band--prose > .bh-prose.is-layout-constrained > * {
	max-width: none;
	margin-inline: 0 !important;
}

.single-post .bh-prose .bh-lede { max-width: none; }

/* --- Story templates: Portrait, Long read, Project update -----------------
   Chosen per story in the editor (Post > Template). single.html is the News
   default above; these only change the page frame and style blocks the story
   content already uses (bh-lede, bh-quote, bh-photo-wide, bh-stats). */

/* Portrait: the person's photo beside the name, both in the content grid. */
.bh-story-portrait .bh-story-portrait__split { align-items: end; }
.bh-story-portrait .bh-hero__headline {
	font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4.5rem);
	max-width: 14ch;
	margin-block: var(--space-3) var(--space-4);
}
.bh-story-portrait .bh-split__media img { max-height: 640px; }
@media (min-width: 800px) {
	.bh-story-portrait .bh-story-portrait__split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
@media (max-width: 799px) {
	.bh-story-portrait .bh-split__media img { aspect-ratio: 4 / 3 !important; }
}
/* The opening sits on the deep band (like the photo heroes of the other story
   templates) and runs flush under the header; the story starts on the page colour. */
.bh-main:has(> .bh-story-portrait:first-child) { margin-block-start: 0; }
.bh-band--deep.bh-story-portrait .bh-byline,
.bh-band--deep.bh-story-portrait .bh-byline a { color: var(--text-invert-muted); }

/* Long read: quotes and wide photos step out of the reading column. */
.bh-story-longread .bh-prose > .bh-lede + p::first-letter {
	float: left;
	font-family: var(--font-display);
	font-weight: var(--weight-display);
	font-size: 4.6em;
	line-height: 0.82;
	margin: 0.06em var(--space-3) 0 0;
	color: var(--text-accent);
}
@media (min-width: 900px) {
	.single-post .bh-story-longread .bh-band--prose > .bh-prose.is-layout-constrained > .bh-quote,
	.single-post .bh-story-longread .bh-band--prose > .bh-prose.is-layout-constrained > .bh-photo-wide {
		margin-inline: calc(-1 * min(9rem, (100vw - var(--bh-story-col)) / 2 - var(--band-padding-x))) !important;
	}
}
.bh-story-longread .bh-prose > .bh-quote {
	margin-block: var(--space-8);
	padding-block: var(--space-6);
	border-block: 1px solid var(--border-hairline);
}
.bh-story-longread .bh-prose > .bh-quote .bh-quote__text { max-width: 24ch; color: var(--text-accent); }
.bh-story-longread .bh-prose > .bh-quote .bh-quote__attribution { margin-block-start: var(--space-5); }

/* Photos inside any story get air above and below. */
.single-post .bh-band--prose > .bh-prose > figure.wp-block-image { margin-block: var(--space-7) var(--space-6); }

/* Project update: key-figure tiles sit inside the reading column. */
.bh-story-project .bh-prose > .bh-stats { margin-block: var(--space-7); }
.bh-prose > .bh-stats.bh-stats--story { grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: var(--space-4); }
.bh-prose > .bh-stats--story .bh-stat { padding: var(--space-5); }
.bh-prose > .bh-stats--story .bh-stat__value { font-size: var(--type-display-4); margin: 0; }

/* Photo rail (pattern "Story photo rail"). On the Project update template at
   1000px and wider, the story text keeps a reading column on the left and the
   rail takes the column beside it, starting level with the lede. It is not
   sticky on purpose: a rail taller than the screen would hide its last photos.
   Everywhere else the photos appear where the rail sits in the text. */
.bh-photo-rail { display: grid; gap: var(--space-4); margin-block: var(--space-7) !important; }
.bh-photo-rail > figure.wp-block-image { margin: 0; }
.bh-photo-rail > figure.wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.bh-photo-rail > figure.wp-block-image figcaption {
	font-family: var(--font-mono);
	font-size: var(--type-caption);
	color: var(--text-muted);
	margin-block-start: var(--space-2);
}
@media (max-width: 999px) {
	.bh-photo-rail { grid-template-columns: 1fr 1fr; }
	.bh-photo-rail > figure.wp-block-image:first-child { grid-column: span 2; }
}
@media (min-width: 1000px) {
	.bh-story-project .bh-band__inner.bh-band--prose:has(> .bh-prose > .bh-photo-rail) { max-width: var(--container); }
	.single-post .bh-story-project .bh-band--prose > .bh-prose.is-layout-constrained:has(> .bh-photo-rail) {
		display: grid;
		grid-template-columns: minmax(0, 42rem) minmax(0, 1fr);
		/* The last row is flexible so the tall rail's height lands there instead
		   of being spread over the text rows as extra gaps. */
		grid-template-rows: repeat(98, auto) 1fr;
		column-gap: clamp(32px, 4vw, 72px);
		row-gap: 0;
		align-items: start;
	}
	/* Margins do not collapse in a grid: keep only the space above each block. */
	.single-post .bh-story-project .bh-band--prose > .bh-prose.is-layout-constrained:has(> .bh-photo-rail) > * { grid-column: 1; margin-block-end: 0; }
	.single-post .bh-story-project .bh-band--prose > .bh-prose.is-layout-constrained:has(> .bh-photo-rail) > .bh-stats + * { margin-block-start: var(--space-7); }
	.single-post .bh-story-project .bh-band--prose > .bh-prose.is-layout-constrained > .bh-photo-rail {
		grid-column: 2;
		grid-row: 1 / -1;
		margin-block: 0 !important;
	}
	/* Wide, not tall: a tall rail ran far past a short text. */
	.bh-story-project .bh-photo-rail > figure.wp-block-image img { aspect-ratio: 16 / 10; }
	.bh-story-project .bh-photo-rail > figure.wp-block-image:first-child img { aspect-ratio: 4 / 3; object-position: 50% 60%; }
	/* With a rail the text uses the full container, so the headline does too
	   and both start at the same left edge. */
	.bh-main:has(> .bh-story-project .bh-photo-rail) > .wp-block-cover.bh-hero--story.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container { max-width: var(--container); }
}

/* The "what to do next" band under Portrait and Project stories. */
.bh-story-next h2 { margin-block: var(--space-3) var(--space-4); }
/* The "keep reading" band that follows is the same sand: join them seamlessly. */
.bh-story-next + .bh-band--sand { margin-block-start: 0 !important; padding-block-start: var(--space-6) !important; }

/* --- Rows of photographs only (About): centred and smaller ---------------- */

.wp-block-group.is-layout-flex:not(.bh-footer-logo):has(> figure.wp-block-image):not(:has(> :not(figure.wp-block-image))) {
	box-sizing: border-box;
	max-width: calc(900px + 2 * var(--band-padding-x));
	margin-inline: auto;
	padding-inline: var(--band-padding-x);
	justify-content: center;
}

/* Directly on the page (outside a band) the row brings its own air. */
.wp-block-post-content > .wp-block-group.is-layout-flex:not(.bh-footer-logo):has(> figure.wp-block-image):not(:has(> :not(figure.wp-block-image))) {
	margin-block: var(--band-padding-y);
}

.wp-block-group.is-layout-flex:not(.bh-footer-logo):has(> figure.wp-block-image):not(:has(> :not(figure.wp-block-image))) > figure {
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
}

@media (max-width: 639px) {
	.wp-block-group.is-layout-flex:not(.bh-footer-logo):has(> figure.wp-block-image):not(:has(> :not(figure.wp-block-image))) { flex-wrap: wrap; }
	.wp-block-group.is-layout-flex:not(.bh-footer-logo):has(> figure.wp-block-image):not(:has(> :not(figure.wp-block-image))) > figure { flex-basis: 100%; }
}

/* --- Partner logos: one height, one row, aligned with the text ------------ */

.bh-logos {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-5) var(--space-6);
	align-items: flex-start;
	margin-block-start: var(--space-6);
}

.bh-logos > .wp-block-image { margin: 0; flex: 0 1 200px; }

.bh-logos > .wp-block-image img {
	display: block;
	width: 100%;
	height: 88px;
	object-fit: contain;
	padding: var(--space-3) var(--space-4);
	background: var(--warm-0);
	border: 1px solid var(--border-hairline);
	border-radius: var(--radius-md);
}

.bh-logos > .wp-block-image figcaption {
	font-family: var(--font-mono);
	font-size: var(--type-caption);
	color: var(--text-muted);
	text-transform: none;
	margin-block-start: var(--space-2);
}

/* --- The logo: the original Bandhab mark ---------------------------------
   The type wordmark is retired. The header and footer carry the Site Logo
   block (transparent PNG made from the 2017 logo); the footer sits it on a
   warm-50 plate because the mark's orange and green need a light ground. */

.bh-logo { margin: 0; line-height: 0; }
.bh-logo img { height: 44px; width: auto; display: block; }
.bh-header .bh-logo img { height: clamp(36px, 4vw, 44px); }

.bh-footer .bh-logo {
	display: inline-block;
	background: var(--warm-50);
	border-radius: var(--radius-sm);
	padding: var(--space-2) var(--space-3);
}
.bh-footer .bh-logo img { height: 36px; }

/* --- Phone menu: a dark full screen, centred, sub-pages listed ----------- */

/* Repeated classes: core paints the overlay white with (0,5,0) when the
   navigation block has no background of its own. */
.bh-nav.bh-nav.bh-nav .wp-block-navigation__responsive-container.is-menu-open.is-menu-open {
	background: var(--warm-900);
	color: var(--text-invert);
	padding: var(--space-6) var(--band-padding-x);
}

.bh-nav .is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: center !important;
	justify-content: center;
	min-height: calc(100svh - 2 * var(--space-9));
	padding-block-start: var(--space-7) !important;
}

.bh-nav .is-menu-open .wp-block-navigation__container {
	align-items: center !important;
	gap: var(--space-5) !important;
}

.bh-nav .is-menu-open .wp-block-navigation-item {
	align-items: center !important;
	text-align: center;
}

/* Main items: the display face, large, uppercase. */
.bh-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	font-family: var(--font-display);
	font-weight: var(--weight-display);
	font-size: var(--type-display-4);
	letter-spacing: var(--tracking-display);
	color: var(--text-invert);
}

/* A section's pages sit under it in the serif, smaller and muted. */
.bh-nav .is-menu-open .wp-block-navigation__submenu-container {
	align-items: center !important;
	padding: var(--space-2) 0 0 !important;
	gap: var(--space-1);
}

.bh-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-family: var(--font-body);
	font-size: var(--type-body-sm);
	letter-spacing: 0;
	text-transform: none;
	color: var(--text-invert-muted);
	padding: var(--space-1) 0 !important;
}

.bh-nav .is-menu-open .wp-block-navigation-item__content:hover,
.bh-nav .is-menu-open .wp-block-navigation-item__content:focus-visible { color: var(--text-invert); }

.bh-nav .is-menu-open .wp-block-navigation__container > .bh-nav__cta.bh-nav__cta > .wp-block-navigation-item__content {
	font-family: var(--font-mono);
	font-weight: 400;
	font-size: var(--type-mono);
	letter-spacing: var(--tracking-button);
	margin-block-start: var(--space-3);
}

.bh-nav .is-menu-open .wp-block-navigation__responsive-container-close { color: var(--text-invert); }

/* --- Buttons: a press, nothing on hover -----------------------------------
   Buttons keep their colour change on hover but never move. Pressing one
   sinks it slightly and darkens a primary to the press colour. */

.wp-block-button__link,
.bh-btn,
.bh-nav .bh-nav__cta > .wp-block-navigation-item__content {
	transition:
		background-color var(--motion-fast) var(--ease-out),
		color var(--motion-fast) var(--ease-out),
		border-color var(--motion-fast) var(--ease-out),
		transform var(--motion-fast) var(--ease-out);
}

.wp-block-button__link:active,
.bh-btn:active,
.bh-nav .bh-nav__cta > .wp-block-navigation-item__content:active {
	transform: scale(0.97);
}

.wp-block-button:not([class*="bh-btn-"]) .wp-block-button__link:active,
.bh-nav .bh-nav__cta > .wp-block-navigation-item__content:active {
	background: var(--accent-primary-press);
}

/* --- Cards: lift and zoom on hover ----------------------------------------
   Story cards, team cards, and anything an editor gives the "Lift on hover"
   or "Zoom on hover" block style. The frame clips the zoom, so its radius
   and shadow move from the picture to the frame. On any device with a mouse
   or trackpad (any-hover: an iPad with a keyboard trackpad counts, although
   its main input is the touch screen). */

.bh-stories > li .wp-block-post-featured-image,
.bh-team > li .wp-block-post-featured-image,
.is-style-bh-zoom,
.is-style-bh-lift .wp-block-image {
	border-radius: var(--radius-photo);
	overflow: hidden;
	box-shadow: var(--shadow-md);
}

.bh-stories > li .wp-block-post-featured-image img,
.bh-team > li .wp-block-post-featured-image img,
.is-style-bh-zoom img,
.is-style-bh-lift .wp-block-image img {
	box-shadow: none;
	border-radius: 0;
}

@media (any-hover: hover) and (prefers-reduced-motion: no-preference) {
	.bh-stories > li .wp-block-post-featured-image,
	.bh-team > li .wp-block-post-featured-image,
	.is-style-bh-lift,
	.is-style-bh-zoom {
		transition: transform var(--motion-base) var(--ease-out), box-shadow var(--motion-base) var(--ease-out);
	}

	.bh-stories > li .wp-block-post-featured-image img,
	.bh-team > li .wp-block-post-featured-image img,
	.is-style-bh-zoom img,
	.is-style-bh-lift img,
	.bh-collage__photo img {
		transition: transform var(--motion-slow) var(--ease-out);
	}

	.bh-stories > li:hover .wp-block-post-featured-image,
	.bh-team > li:hover .wp-block-post-featured-image,
	.is-style-bh-lift:hover {
		transform: translateY(-4px);
		box-shadow: var(--shadow-lg);
	}

	.bh-stories > li:hover .wp-block-post-featured-image img,
	.bh-team > li:hover .wp-block-post-featured-image img,
	.is-style-bh-zoom:hover img,
	.is-style-bh-lift:hover img {
		transform: scale(1.04);
	}

	/* Home hero: the photographs zoom inside their frames (the frames are
	   already transformed to sit in the collage, so the frame stays put). */
	.bh-collage__photo { transition: box-shadow var(--motion-base) var(--ease-out); }
	.bh-collage__photo:hover { box-shadow: var(--shadow-lg), var(--shadow-sm); }
	.bh-collage__photo:hover img { transform: scale(1.05); }
}

/* --- Fade in on scroll ----------------------------------------------------
   Every band after the first fades and rises into place as it scrolls into
   view. Scroll-driven animation: no script, and browsers without it (or
   visitors who asked for less motion) simply see the page as it is. The
   band's background stays put; only its content moves. */

@keyframes bh-rise-in {
	from { opacity: 0; transform: translateY(var(--space-5)); }
	to   { opacity: 1; transform: none; }
}

@supports (animation-timeline: view()) {
	@media screen and (prefers-reduced-motion: no-preference) {
		.bh-main .wp-block-post-content > .bh-band:not(:first-child) > .bh-band__inner,
		.bh-main > .bh-band:not(:first-child) > .bh-band__inner {
			animation: bh-rise-in linear both;
			animation-timeline: view();
			animation-range: entry 0 entry 240px;
		}
	}
}

/* --- Story rows: they scroll by themselves and can be dragged -------------
   assets/js/stories-row.js scrolls an on-screen row slowly from 640px up and
   hands it over the moment someone hovers, drags, swipes or scrolls it. The
   row stays a native scroll area, so a trackpad or a finger can always move
   it. Card snapping is off while the script moves the row or a mouse drags
   it, otherwise each step would snap back. */
.bh-carousel > .wp-block-post-template.bh-stories--carousel.is-auto,
.bh-carousel > .wp-block-post-template.bh-stories--carousel.is-dragging {
	scroll-snap-type: none;
	scroll-behavior: auto;
}

@media (pointer: fine) {
	.bh-carousel > .wp-block-post-template.bh-stories--carousel { cursor: grab; }
}

.bh-carousel > .wp-block-post-template.bh-stories--carousel.is-dragging {
	cursor: grabbing;
	user-select: none;
}

.bh-carousel > .bh-stories--carousel.is-dragging a { pointer-events: none; }



/* --- Project cards (pattern: Project cards) ------------------------------ */

.bh-cards { gap: var(--space-7) var(--space-6); }
.bh-card { display: flex; flex-direction: column; gap: var(--space-2); }
.bh-card > * { margin: 0; }
.bh-card .bh-card__media { margin-block-end: var(--space-3); }
.bh-card .bh-card__media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.bh-card .bh-card__title { font-size: var(--type-display-4); }
.bh-card .bh-card__title a { color: inherit; text-decoration: none; }
.bh-card .bh-card__link a { font-family: var(--font-mono); font-size: var(--type-mono); letter-spacing: var(--tracking-button); text-transform: uppercase; }
.bh-card .bh-card__link a::after { content: " \2192"; }

/* A paragraph that should keep a reading measure inside a full band. */
.bh-measure { max-width: 65ch; }

/* Project sub-pages (Gono Kendra): the same swipe row as the stories, with
   page cards; the card title is the page title. */
.bh-subpages .bh-story__title { text-transform: none; }

/* A band of number tiles is painted as the page surface above, whatever its
   class says, so the band after it keeps its full top padding. */
.bh-band.bh-band:has(.bh-stats) + .bh-band.bh-band { padding-block-start: var(--band-padding-y); }

/* --- Touch screens: a press on tap, photos that settle as they scroll in ---
   Phones and tablets have no hover. Tapping a card or a hero photo presses
   it in slightly, and framed photos start a touch zoomed in and settle to
   their size as they scroll into view. The settle uses the `scale` property,
   not `transform`, so it adds to the hover zoom when an iPad also has a
   trackpad instead of cancelling it. */

@media (hover: none) and (prefers-reduced-motion: no-preference) {
	.bh-stories > li .wp-block-post-featured-image,
	.bh-team > li .wp-block-post-featured-image,
	.is-style-bh-lift,
	.bh-collage__photo {
		transition: transform var(--motion-fast) var(--ease-out);
		-webkit-tap-highlight-color: transparent;
	}

	.bh-stories > li:active .wp-block-post-featured-image,
	.bh-team > li:active .wp-block-post-featured-image,
	.is-style-bh-lift:active,
	.bh-collage__photo:active {
		transform: scale(0.98);
	}
}

@keyframes bh-settle {
	from { scale: 1.08; }
	to   { scale: 1; }
}

/* The frames clip (overflow: hidden), which makes each frame its own scroll
   container, so view() on the picture would never move. The band's content
   publishes a named timeline instead and the pictures follow that. */
@supports (animation-timeline: view()) {
	@media screen and (hover: none) and (prefers-reduced-motion: no-preference) {
		.bh-band__inner { view-timeline-name: --bh-band; }

		.bh-stories > li .wp-block-post-featured-image img,
		.bh-team > li .wp-block-post-featured-image img,
		.is-style-bh-zoom img,
		.is-style-bh-lift .wp-block-image img,
		.bh-collage__photo img {
			animation: bh-settle linear both;
			animation-timeline: --bh-band;
			animation-range: entry 0 cover 40%;
		}
	}
}

/* --- Round two, QA fixes (2026-11-17) ------------------------------------ */

/* Picture frames: the link around a picture was inline, which left a strip of
   empty frame under the photo. Link and picture are blocks now, the frame has
   no line box, and the frame is its own layer so Safari keeps a zoomed
   picture clipped to the rounded corners. */
.bh-stories > li .wp-block-post-featured-image,
.bh-team > li .wp-block-post-featured-image,
.is-style-bh-zoom,
.is-style-bh-lift .wp-block-image,
.bh-collage__photo {
	line-height: 0;
	isolation: isolate;
}

.bh-stories > li .wp-block-post-featured-image,
.bh-team > li .wp-block-post-featured-image,
.is-style-bh-zoom,
.is-style-bh-lift .wp-block-image {
	will-change: transform;
}

.bh-stories > li .wp-block-post-featured-image a,
.bh-team > li .wp-block-post-featured-image a,
.is-style-bh-zoom a,
.is-style-bh-lift .wp-block-image a,
.bh-collage__photo a {
	display: block;
}

.bh-stories > li .wp-block-post-featured-image img,
.bh-team > li .wp-block-post-featured-image img,
.is-style-bh-zoom img,
.is-style-bh-lift .wp-block-image img {
	display: block;
	width: 100%;
}

/* A button an editor painted clay stays clay on hover and press, whatever
   button style it carries (the outline style's sand hover hid its white
   text). Core's colour classes use !important, so these do too. */
.wp-block-button .wp-block-button__link.has-clay-background-color:hover {
	background-color: var(--accent-primary-hover) !important;
	border-color: var(--accent-primary-hover) !important;
	color: var(--text-invert) !important;
}
.wp-block-button .wp-block-button__link.has-clay-background-color:active {
	background-color: var(--accent-primary-press) !important;
	border-color: var(--accent-primary-press) !important;
}

/* Footer logo: the transparent PNG straight on the dark footer, no plate. */
.bh-footer .bh-logo {
	background: none;
	padding: 0;
	border-radius: 0;
}


/* --- Sticky header ---------------------------------------------------------
   The header part is wrapped in a <header> exactly as tall as the header, so
   the sticky bar inside it had nowhere to stick. The wrapper sticks instead. */
header.wp-block-template-part:has(> .bh-header) {
	position: sticky;
	top: 0;
	z-index: 100;
}
.admin-bar header.wp-block-template-part:has(> .bh-header) { top: var(--wp-admin--admin-bar--height, 0px); }
/* On phones the WordPress admin bar scrolls away with the page, so keeping
   room for it left a gap above the header for logged-in editors. */
@media (max-width: 600px) {
	.admin-bar header.wp-block-template-part:has(> .bh-header) { top: 0; }
}

/* --- Phone menu: sections that fold --------------------------------------
   With assets/js/menu.js running (html.bh-menu-js), each section's pages are
   folded away until its name is tapped; the chevron turns to show which
   sections are open. Without the script nothing here applies and the menu
   lists every section with its pages. */
.bh-menu-js .bh-nav .is-menu-open .wp-block-navigation__container > .has-child:not(.bh-open) > .wp-block-navigation__submenu-container { display: none !important; }

.bh-menu-js .bh-nav .is-menu-open .wp-block-navigation__container > .has-child > .wp-block-navigation-item__content::after {
	content: "\203A";
	display: inline-block;
	margin-inline-start: var(--space-2);
	font-family: var(--font-body);
	font-weight: 400;
	opacity: 0.6;
	transition: transform var(--motion-base) var(--ease-out);
}

.bh-menu-js .bh-nav .is-menu-open .wp-block-navigation__container > .has-child.bh-open > .wp-block-navigation-item__content::after { transform: rotate(90deg); }

.bh-menu-js .bh-nav .is-menu-open .bh-open > .wp-block-navigation__submenu-container {
	padding-block: var(--space-3) var(--space-2) !important;
	animation: bh-unfold var(--motion-base) var(--ease-out);
}

@keyframes bh-unfold {
	from { opacity: 0; transform: translateY(calc(-1 * var(--space-2))); }
	to   { opacity: 1; transform: none; }
}

/* --- Footer logo: the symbol on a light disc, the word on the brown ------
   The tick and ring read at about 2.2:1 on the dark footer, the orange word
   at about 7:1. So the symbol sits in an off-white circle and the word stands
   beside it on the brown: two image blocks in a group (Bandhab logo, symbol /
   word), cut from the same 2017 logo file. The word links to the home page. */
.bh-footer .bh-footer-logo {
	gap: var(--space-3);
	align-items: center;
	justify-content: flex-end;
	margin: 0;
}

.bh-footer .bh-footer-logo figure { margin: 0; line-height: 0; }

.bh-footer .bh-footer-logo__mark {
	flex: none;
	display: grid;
	place-items: center;
	inline-size: 52px;
	block-size: 52px;
	border-radius: 50%;
	background: var(--warm-50);
}

.bh-footer .bh-footer-logo__mark img { inline-size: 34px; block-size: auto; }
.bh-footer .bh-footer-logo__word img { block-size: 24px; inline-size: auto; }
.bh-footer .bh-footer-logo__word a { display: block; }

@media (max-width: 800px) {
	.bh-footer .bh-footer-logo { justify-content: flex-start; }
}

/* Phones: no logo in the footer; the header already shows it. */
@media (max-width: 600px) {
	.bh-footer .bh-footer-logo { display: none; }
	.bh-footer__brand .bh-footer__tagline { margin-block-start: var(--space-3); }
}
