/*
 * African Leadership Journey — shared components.
 * Tokens (colours, fonts, sizes, spacing) live in theme.json; this file adds layout and finish.
 * Page-specific rules live in assets/css/pages/<page>.css.
 *
 * Class vocabulary (use these in patterns):
 *   Sections ....... .alj-section + .is-paper | .is-sand | .is-white | .is-ink | .is-clay | .is-forest
 *   Type ........... .alj-eyebrow  .alj-lead  .alj-title  .alj-muted  .alj-ref  .alj-sup-links
 *   Heroes ......... .alj-hero (home cover)  .alj-page-hero (inner page cover)
 *   Layout ......... .alj-split (columns: text + media)  .alj-grid-2 / .alj-grid-3 / .alj-grid-4
 *   Media .......... .alj-photo  .alj-photo-stack  .alj-frame (offset gold frame)  .alj-video
 *   Cards .......... .alj-card  .alj-card.is-dark  .alj-card__num
 *   Pieces ......... .alj-quote  .alj-accordion (core/details list)  .alj-checklist  .alj-chips
 *                    .alj-pill  .alj-footnotes  .alj-section-head (centred heading block)
 *   Buttons ........ core/button styles: default (clay) | .is-style-outline | .alj-btn-gold | .alj-btn-light
 */

:root {
	--alj-ink: var(--wp--preset--color--ink);
	--alj-clay: var(--wp--preset--color--clay);
	--alj-gold: var(--wp--preset--color--gold);
	--alj-line: var(--wp--preset--color--line);
	--alj-radius-s: var(--wp--custom--radius--small);
	--alj-radius-m: var(--wp--custom--radius--medium);
	--alj-radius-l: var(--wp--custom--radius--large);
	--alj-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--alj-section-y: clamp(2.75rem, 5.5vw, 4.5rem); /* tightened 2026-10-27 (ALJ: "too spaced out") */
	--alj-header-h: 84px;
	scroll-padding-top: calc(var(--alj-header-h) + var(--wp-admin--admin-bar--height, 0px) + 1rem);
}

/* ---------------------------------------------------------------- Base -- */

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	font-optical-sizing: auto;
}

::selection {
	background: var(--alj-gold);
	color: var(--alj-ink);
}

:where(a, button, summary, input, select, textarea):focus-visible {
	/* Ink ring + gold halo: visible on paper, sand, white and the dark bands. */
	outline: 2px solid var(--alj-ink);
	outline-offset: 2px;
	box-shadow: 0 0 0 5px var(--alj-gold);
	border-radius: 4px;
}

a {
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
	transition: color 0.2s var(--alj-ease);
}

h1, h2, h3, h4 {
	text-wrap: balance;
	font-variation-settings: "SOFT" 30, "WONK" 0;
}

p {
	text-wrap: pretty;
}

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

.alj-main {
	margin-block-start: 0;
}

/* Sections stack with no gaps; each section owns its own padding. */
.alj-sections > *,
.alj-main > * {
	margin-block-start: 0;
	margin-block-end: 0;
}

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

.alj-site-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
}

@media (max-width: 600px) {
	/* The admin bar stops being fixed on phones, so don't leave a gap above the header. */
	.admin-bar .alj-site-header {
		top: 0;
	}
}

/* Solid colour, no backdrop-filter: a filter here would trap the full-screen mobile
   menu (position: fixed) inside the header bar. */
.alj-header {
	background: var(--alj-ink);
	color: var(--wp--preset--color--white);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.alj-header__inner {
	min-height: var(--alj-header-h);
	gap: 1.5rem;
}

.alj-logo {
	flex-shrink: 0;
	margin: 0;
}

.alj-logo img {
	display: block;
	height: auto;
}

/* Nav links */
.alj-nav {
	font-size: 0.9375rem;
	gap: 0.25rem;
}

.alj-nav .wp-block-navigation__container {
	gap: 0.25rem;
	align-items: center;
}

.alj-nav .wp-block-navigation-item__content {
	color: rgba(255, 255, 255, 0.82);
	text-decoration: none;
	padding: 0.55rem 0.8rem;
	border-radius: 999px;
	letter-spacing: 0.005em;
	transition: color 0.2s var(--alj-ease), background-color 0.2s var(--alj-ease);
}

.alj-nav .wp-block-navigation-item__content:hover,
.alj-nav .wp-block-navigation-item__content:focus-visible {
	color: var(--wp--preset--color--white);
	background: rgba(255, 255, 255, 0.08);
}

.alj-nav .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--white);
	box-shadow: inset 0 -2px 0 var(--alj-gold);
	border-radius: 0;
}

/* "Partnering" is the one call to action. */
.alj-nav .alj-nav__cta > .wp-block-navigation-item__content {
	margin-inline-start: 0.6rem;
	padding: 0.6rem 1.2rem;
	border-radius: 999px;
	background: var(--alj-gold);
	color: var(--alj-ink);
	font-weight: 700;
	box-shadow: none;
}

.alj-nav .alj-nav__cta > .wp-block-navigation-item__content:hover,
.alj-nav .alj-nav__cta > .wp-block-navigation-item__content:focus-visible {
	background: #f3c766;
	color: var(--alj-ink);
}

/* Drop-down (About Us) */
.alj-nav .wp-block-navigation-submenu__toggle {
	color: rgba(255, 255, 255, 0.82);
}

.alj-nav .has-child > .wp-block-navigation-item__content {
	padding-inline-end: 0.2rem;
}

.alj-nav .wp-block-navigation__submenu-icon {
	margin-inline: 0.1rem 0.6rem;
	width: 0.65em;
	height: 0.65em;
}

.alj-nav .has-child .wp-block-navigation__submenu-container {
	min-width: 220px !important;
	padding: 0.5rem !important;
	border: 1px solid var(--alj-line) !important;
	border-radius: var(--alj-radius-m);
	background: var(--wp--preset--color--white) !important;
	box-shadow: var(--wp--preset--shadow--lifted);
	top: calc(100% + 0.4rem) !important;
}

/* Hover bridge so the menu doesn't close crossing the gap. */
.alj-nav .has-child .wp-block-navigation__submenu-container::before {
	content: "";
	position: absolute;
	inset: -0.6rem 0 auto 0;
	height: 0.6rem;
}

.alj-nav .has-child .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	display: block;
	width: 100%;
	color: var(--wp--preset--color--text);
	border-radius: var(--alj-radius-s);
	padding: 0.65rem 0.9rem;
}

.alj-nav .has-child .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--sand);
	color: var(--alj-clay);
}

.alj-nav .has-child .wp-block-navigation__submenu-container .current-menu-item > .wp-block-navigation-item__content {
	box-shadow: none;
	color: var(--alj-clay);
	border-radius: var(--alj-radius-s);
}

/* Hamburger below 1100px: the six items with long labels don't fit on one row. */
.alj-nav .wp-block-navigation__responsive-container-open {
	width: 46px;
	height: 46px;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.1);
	color: var(--wp--preset--color--white);
}

.alj-nav .wp-block-navigation__responsive-container-open svg {
	width: 26px;
	height: 26px;
}

@media (max-width: 1099px) {
	.alj-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.alj-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

/* Mobile overlay menu */
.alj-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: clamp(1.25rem, 5vw, 2.5rem);
	padding-top: calc(var(--wp-admin--admin-bar--height, 0px) + 1.5rem);
}

.alj-nav .is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 3.5rem !important;
	align-items: flex-start !important;
}

.alj-nav .is-menu-open .wp-block-navigation__submenu-container,
.alj-nav .is-menu-open .wp-block-navigation-item {
	align-items: flex-start !important;
}

.alj-nav .is-menu-open .wp-block-navigation__container {
	gap: 0.15rem !important;
	align-items: flex-start !important;
	width: 100%;
}

.alj-nav .is-menu-open .wp-block-navigation-item {
	width: 100%;
}

.alj-nav .is-menu-open .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.4rem, 6vw, 1.9rem);
	font-weight: 500;
	color: var(--wp--preset--color--white);
	padding: 0.4rem 0;
	border-radius: 0;
	background: none !important;
	box-shadow: none !important;
}

.alj-nav .is-menu-open .current-menu-item > .wp-block-navigation-item__content {
	color: var(--alj-gold);
}

.alj-nav .is-menu-open .has-child .wp-block-navigation__submenu-container {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none;
	padding: 0 0 0.5rem 1rem !important;
	min-width: 0 !important;
}

.alj-nav .is-menu-open .has-child .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.0625rem;
	color: rgba(255, 255, 255, 0.78);
	padding: 0.3rem 0;
}

.alj-nav .is-menu-open .alj-nav__cta > .wp-block-navigation-item__content {
	margin: 1.25rem 0 0;
	padding: 0.8rem 1.6rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.0625rem;
	font-weight: 700;
	background: var(--alj-gold) !important;
	color: var(--alj-ink);
	border-radius: 999px;
}

/* The × sits exactly where the menu button was: centred in the header bar, at the page's
   side margin, same size — so opening and closing doesn't make the button jump. */
.alj-nav .wp-block-navigation__responsive-container-close {
	position: fixed;
	top: calc(var(--wp-admin--admin-bar--height, 0px) + (var(--alj-header-h) - 46px) / 2);
	right: var(--wp--style--root--padding-right, 1.25rem);
	width: 46px;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.1);
	color: var(--wp--preset--color--white);
}

.alj-nav .wp-block-navigation__responsive-container-close svg {
	width: 28px;
	height: 28px;
}

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

.alj-site-footer {
	margin-block-start: 0;
}

.alj-footer {
	background: var(--alj-ink);
	color: rgba(255, 255, 255, 0.72);
	padding-block: clamp(2.75rem, 5vw, 4rem) 1.75rem;
	font-size: 0.9375rem;
}

.alj-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
	gap: clamp(2rem, 4vw, 3.5rem);
	align-items: start;
}

.alj-footer__grid > * {
	margin: 0 !important;
}

.alj-footer__tagline {
	margin: 0;
	max-width: 22ch;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.25rem;
	line-height: 1.35;
	color: var(--wp--preset--color--white);
}

.alj-footer__heading {
	margin: 0 0 1rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--alj-gold);
	line-height: 1.5;
}

.alj-footer__nav .wp-block-navigation__container {
	gap: 0.55rem;
}

.alj-footer a,
.alj-footer__nav .wp-block-navigation-item__content {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
}

.alj-footer a:hover,
.alj-footer__nav .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--white);
	text-decoration: underline;
}

.alj-footer__label {
	margin: 0;
	font-size: 0.9375rem; /* was 0.8125rem at 60% white: too faint to read (owner, 2026-10-29) */
	font-style: italic; /* sets the labels apart from the links below them */
	color: rgba(255, 255, 255, 0.85);
}

.alj-footer__label + .alj-footer__link {
	margin-block-start: 0.1rem;
}

.alj-footer__link {
	margin-block: 0 1rem;
	font-weight: 600;
}

.alj-footer__email {
	overflow-wrap: anywhere; /* only bites on very narrow phones */
}

.alj-footer__bottom {
	margin-block-start: clamp(2rem, 4vw, 3rem) !important;
	padding-block-start: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.6);
}

.alj-footer__bottom p {
	margin: 0;
}

/* The horizontal logo (white wordmark) closes the footer, where the copyright line used to be. */
.alj-footer__logo {
	margin: 0;
	width: min(100%, 238px);
}

.alj-footer__logo a,
.alj-footer__logo img {
	display: block;
	width: 100%;
	height: auto;
}

.alj-footer .alj-footer__logo a:hover {
	text-decoration: none;
	opacity: 0.85;
}

/* Below 1200px the email column gets too narrow for four columns: brand goes on its own row. */
@media (max-width: 1199px) {
	.alj-footer__grid {
		grid-template-columns: 1fr 1fr 1.3fr;
	}

	.alj-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 760px) {
	.alj-footer__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 560px) {
	.alj-footer__grid {
		grid-template-columns: 1fr;
	}
}

/* ------------------------------------------------------------ Sections -- */

.alj-section {
	padding-block: var(--alj-section-y);
	position: relative;
}

.alj-section.is-tight {
	padding-block: clamp(2.25rem, 4.5vw, 3.25rem);
}

.alj-section.is-paper { background: var(--wp--preset--color--paper); }
.alj-section.is-sand { background: var(--wp--preset--color--sand); }
.alj-section.is-white { background: var(--wp--preset--color--white); }

.alj-section.is-ink,
.alj-section.is-clay,
.alj-section.is-forest {
	color: rgba(255, 255, 255, 0.86);
}

.alj-section.is-ink { background: var(--alj-ink); }
.alj-section.is-clay { background: var(--alj-clay); }
.alj-section.is-forest { background: var(--wp--preset--color--forest); }

.alj-section.is-ink :where(h1, h2, h3, h4),
.alj-section.is-clay :where(h1, h2, h3, h4),
.alj-section.is-forest :where(h1, h2, h3, h4),
.alj-card.is-dark :where(h1, h2, h3, h4) {
	color: var(--wp--preset--color--white);
}

.alj-section.is-ink a:not(.wp-element-button),
.alj-section.is-forest a:not(.wp-element-button) {
	color: var(--alj-gold);
}

.alj-section.is-clay a:not(.wp-element-button) {
	color: var(--wp--preset--color--white);
}

/* Centred heading + intro block at the top of a section. */
.alj-section-head {
	text-align: center;
	margin-block-end: clamp(1.75rem, 3.5vw, 2.5rem) !important;
}

.alj-section-head > * {
	margin-inline: auto;
}

.alj-section-head .alj-lead {
	max-width: 46rem;
}

/* ---------------------------------------------------------------- Type -- */

.alj-eyebrow {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	line-height: 1.4;
	color: var(--alj-clay);
	margin-block-end: 0.9rem !important;
}

.alj-eyebrow + * {
	margin-block-start: 0 !important;
}

:where(.is-ink, .is-forest, .alj-hero, .alj-page-hero, .alj-card.is-dark) .alj-eyebrow {
	color: var(--alj-gold);
}

.alj-section.is-clay .alj-eyebrow {
	color: #ffd88a;
}

.alj-title {
	font-size: var(--wp--preset--font-size--xx-large);
}

.alj-lead {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.6;
	color: var(--wp--preset--color--text);
}

:where(.is-ink, .is-clay, .is-forest, .alj-hero, .alj-page-hero) .alj-lead {
	color: rgba(255, 255, 255, 0.9);
}

.alj-muted {
	color: var(--wp--preset--color--stone);
}

/* Scripture references and footnotes. */
.alj-ref {
	font-size: 0.8125rem;
	letter-spacing: 0.01em;
	color: var(--wp--preset--color--stone);
	line-height: 1.55;
}

sup {
	font-size: 0.68em;
	line-height: 0;
	font-weight: 700;
	color: var(--alj-clay);
	margin-inline-start: 0.05em;
}

/* --------------------------------------------------------------- Heroes -- */

.alj-hero.wp-block-cover,
.alj-page-hero.wp-block-cover {
	isolation: isolate;
	color: var(--wp--preset--color--white);
	padding-inline: var(--wp--style--root--padding-left, 1.5rem) var(--wp--style--root--padding-right, 1.5rem);
}

.alj-hero.wp-block-cover {
	min-height: min(72vh, 680px) !important;
	padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2.75rem, 6vw, 4.5rem);
	align-items: flex-end;
}

.alj-page-hero.wp-block-cover {
	min-height: min(48vh, 440px) !important;
	padding-block: clamp(3rem, 7vw, 5rem) clamp(2.25rem, 5vw, 3.5rem);
	align-items: flex-end;
}

/* Legibility wash, strongest bottom-left where the words sit. */
.alj-hero::before,
.alj-page-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(90deg, rgba(28, 24, 21, 0.86) 0%, rgba(28, 24, 21, 0.55) 45%, rgba(28, 24, 21, 0.15) 80%),
		linear-gradient(0deg, rgba(28, 24, 21, 0.78) 0%, rgba(28, 24, 21, 0) 60%);
	pointer-events: none;
}

.alj-hero .wp-block-cover__inner-container,
.alj-page-hero .wp-block-cover__inner-container {
	z-index: 2;
	width: 100%;
}

/* "Bottom left" content position shrinks the inner box to its content; keep it full width so
   the wide text block lines up with the logo. Beats core's doubled has-custom-content-position. */
.wp-block-cover.alj-hero.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container,
.wp-block-cover.alj-page-hero.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container {
	width: 100%;
}

/* Line the hero text up with the logo and the 1200px sections below. */
.alj-hero__content,
.alj-page-hero__content {
	width: 100%;
	max-width: var(--wp--style--global--wide-size, 1200px) !important;
	margin-inline: auto !important;
}

.alj-hero__content > *,
.alj-page-hero__content > * {
	max-width: 56rem;
	margin-inline: 0 !important;
}

.alj-hero h1,
.alj-page-hero h1 {
	color: var(--wp--preset--color--white);
	font-weight: 520;
	text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}

.alj-hero h1 {
	font-size: clamp(2.6rem, 6.2vw, 5rem);
	line-height: 1.04;
	letter-spacing: -0.025em;
	max-width: 15ch;
}

.alj-page-hero h1 {
	font-size: clamp(2.4rem, 5.4vw, 4.25rem);
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.alj-hero .alj-eyebrow,
.alj-page-hero .alj-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.8125rem;
}

.alj-hero .alj-eyebrow::before,
.alj-page-hero .alj-eyebrow::before {
	content: "";
	width: 2.25rem;
	height: 2px;
	background: currentColor;
}

.alj-hero__buttons {
	margin-block-start: clamp(1.75rem, 3vw, 2.5rem) !important;
	gap: 0.85rem;
}

.alj-page-hero .alj-lead {
	margin-block-start: 1.25rem;
	max-width: 38rem;
}

/* --------------------------------------------------------------- Layout -- */

/* !important: core sets .wp-block-columns { align-items: normal !important }. */
.alj-split {
	gap: clamp(2.5rem, 6vw, 5.5rem) !important;
	align-items: center !important;
}

.alj-split.is-top {
	align-items: flex-start !important;
}

.alj-grid-2,
.alj-grid-3,
.alj-grid-4 {
	display: grid !important;
	gap: clamp(1.25rem, 2.5vw, 2rem);
}

.alj-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.alj-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.alj-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.alj-grid-2 > *,
.alj-grid-3 > *,
.alj-grid-4 > * {
	margin: 0 !important;
}

@media (max-width: 1024px) {
	.alj-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.alj-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
	.alj-grid-2,
	.alj-grid-3,
	.alj-grid-4 { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- Media -- */

.alj-photo img,
.alj-photo.wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--alj-radius-l);
	box-shadow: var(--wp--preset--shadow--lifted);
	object-fit: cover;
}

.alj-photo {
	margin: 0;
}

/* Two photos overlapping, with a gold block peeking out behind. */
.alj-photo-stack {
	position: relative;
	display: grid !important;
	grid-template-columns: repeat(12, 1fr);
	grid-template-rows: auto;
	padding-block-end: 2rem;
	gap: 0 !important;
}

.alj-photo-stack::before {
	content: "";
	position: absolute;
	right: -1.25rem;
	top: 12%;
	width: 42%;
	height: 62%;
	border-radius: var(--alj-radius-l);
	background: var(--alj-gold);
	opacity: 0.9;
	z-index: 0;
}

.alj-photo-stack > * {
	margin: 0 !important;
	position: relative;
	z-index: 1;
}

.alj-photo-stack > :first-child {
	grid-column: 1 / span 9;
	grid-row: 1;
}

.alj-photo-stack > :first-child img {
	aspect-ratio: 1 / 1;
}

.alj-photo-stack > :nth-child(2) {
	grid-column: 6 / span 7;
	grid-row: 1;
	align-self: end;
	margin-block-end: -2rem !important;
	z-index: 2;
}

.alj-photo-stack > :nth-child(2) img {
	aspect-ratio: 4 / 3;
	border: 6px solid var(--wp--preset--color--paper);
}

/* Photo with an offset gold outline behind it. */
.alj-frame {
	position: relative;
	margin: 0;
	isolation: isolate;
}

.alj-frame::before {
	content: "";
	position: absolute;
	inset: 1.25rem -1.25rem -1.25rem 1.25rem;
	border: 2px solid var(--alj-gold);
	border-radius: var(--alj-radius-l);
	z-index: -1;
}

.alj-frame img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--alj-radius-l);
	box-shadow: var(--wp--preset--shadow--lifted);
}

.alj-video {
	margin: 0;
}

.alj-video video {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: var(--alj-radius-l);
	background: var(--alj-ink);
	box-shadow: var(--wp--preset--shadow--lifted);
}

/* ---------------------------------------------------------------- Cards -- */

.alj-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--alj-line);
	border-radius: var(--alj-radius-m);
	padding: clamp(1.5rem, 3vw, 2.25rem);
	box-shadow: var(--wp--preset--shadow--soft);
	height: 100%;
	box-sizing: border-box;
}

.alj-card > :first-child { margin-block-start: 0; }
.alj-card > :last-child { margin-block-end: 0; }

.alj-card h3 {
	font-size: clamp(1.3rem, 2vw, 1.5rem);
	line-height: 1.2;
	margin-block-end: 0.6rem;
}

.alj-card p {
	font-size: 1rem;
	line-height: 1.7;
}

.alj-card.is-dark {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.12);
	box-shadow: none;
	color: rgba(255, 255, 255, 0.86);
}

/* Big outlined number in the corner of a card ("01"). */
.alj-card__num {
	font-family: var(--wp--preset--font-family--display);
	font-size: 2.75rem !important;
	line-height: 1 !important;
	font-weight: 400;
	color: #AD7E24 !important; /* 3.6:1 on white; gold on dark cards */
	margin-block-end: 1rem !important;
	font-variant-numeric: lining-nums;
}

.alj-card.is-dark .alj-card__num,
:where(.is-ink, .is-forest, .is-clay) .alj-card__num {
	color: var(--alj-gold) !important;
}

/* --------------------------------------------------------------- Pieces -- */

/* Pull quote */
.alj-quote.wp-block-quote,
.alj-quote {
	border: 0;
	margin: 0;
	padding: 0;
	position: relative;
	text-align: center;
	font-style: normal;
}

.alj-quote::before {
	content: "\201C";
	display: block;
	font-family: var(--wp--preset--font-family--display);
	font-size: 5rem;
	line-height: 0.6;
	height: 2.6rem;
	color: var(--alj-gold);
}

.alj-quote p {
	font-family: var(--wp--preset--font-family--accent);
	font-style: italic;
	font-synthesis: none; /* brand script has no italic: use it upright, never slanted */
	font-weight: 400;
	font-size: clamp(1.6rem, 3.4vw, 2.5rem);
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: var(--alj-ink);
	max-width: 30ch;
	margin-inline: auto;
}

.alj-quote cite {
	display: block;
	margin-block-start: 1.25rem;
	font-family: var(--wp--preset--font-family--body);
	font-style: normal;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--stone);
}

/* Accordion: a stack of core/details blocks inside .alj-accordion */
.alj-accordion {
	display: grid !important;
	gap: 0.75rem;
}

.alj-accordion > * {
	margin: 0 !important;
}

.alj-accordion .wp-block-details {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--alj-line);
	border-radius: var(--alj-radius-m);
	box-shadow: 0 1px 2px rgba(28, 24, 21, 0.04);
	transition: border-color 0.2s var(--alj-ease), box-shadow 0.2s var(--alj-ease);
}

.alj-accordion .wp-block-details:hover {
	border-color: #d8c9b3;
}

.alj-accordion .wp-block-details[open] {
	border-color: #d8c9b3;
	box-shadow: var(--wp--preset--shadow--soft);
}

.alj-accordion summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.15rem 1.4rem;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.25rem;
	font-weight: 520;
	line-height: 1.3;
	color: var(--alj-ink);
}

.alj-accordion summary::-webkit-details-marker {
	display: none;
}

.alj-accordion summary::after {
	content: "";
	flex: 0 0 auto;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background:
		linear-gradient(var(--alj-clay), var(--alj-clay)) center / 12px 2px no-repeat,
		linear-gradient(var(--alj-clay), var(--alj-clay)) center / 2px 12px no-repeat,
		var(--wp--preset--color--sand);
	transition: transform 0.25s var(--alj-ease), background-color 0.2s;
}

.alj-accordion details[open] > summary::after {
	transform: rotate(45deg);
}

.alj-accordion .wp-block-details > :not(summary) {
	margin: 0;
	padding: 0 1.4rem 1.25rem;
	font-size: 1rem;
	line-height: 1.75;
}

.alj-accordion .wp-block-details > :not(summary) + :not(summary) {
	padding-top: 0;
}

.alj-accordion .wp-block-details > .alj-ref {
	font-size: 0.8125rem;
}

/* Checklist (core/list) */
.alj-checklist {
	list-style: none;
	padding: 0 !important;
	margin-block: 1.5rem;
	display: grid;
	gap: 0.85rem;
}

.alj-checklist li {
	position: relative;
	padding-inline-start: 2.25rem;
	line-height: 1.55;
}

.alj-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.1em;
	width: 1.4rem;
	height: 1.4rem;
	border-radius: 50%;
	background: var(--alj-gold)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C1815' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
		center / 0.85rem no-repeat;
}

/* Name chips (core/list) */
.alj-chips {
	list-style: none;
	padding: 0 !important;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.alj-chips li {
	padding: 0.45rem 0.95rem;
	border-radius: 999px;
	background: var(--wp--preset--color--sand);
	border: 1px solid var(--alj-line);
	font-size: 0.9375rem;
	font-weight: 550;
	line-height: 1.3;
	color: var(--alj-ink);
}

/* Status pill ("CLOSED") */
.alj-pill {
	display: inline-block;
	padding: 0.4rem 1rem !important;
	border-radius: 999px;
	font-size: 0.75rem !important;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	line-height: 1.4 !important;
	background: rgba(255, 255, 255, 0.14);
	color: var(--wp--preset--color--white);
	border: 1px solid rgba(255, 255, 255, 0.35);
}

/* Footnote / reference list */
.alj-footnotes {
	margin-block-start: 2rem !important;
	padding-block-start: 1.25rem;
	border-top: 1px solid var(--alj-line);
	font-size: 0.875rem;
	color: var(--wp--preset--color--stone);
	display: grid;
	gap: 0.35rem;
}

.alj-footnotes p {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.6;
}

.alj-footnotes sup {
	margin-inline-end: 0.35em;
}

.is-ink .alj-footnotes,
.is-forest .alj-footnotes {
	border-color: rgba(255, 255, 255, 0.15);
	color: rgba(255, 255, 255, 0.7);
}

/* -------------------------------------------------------------- Buttons -- */

.wp-block-button__link {
	transition: background-color 0.2s var(--alj-ease), color 0.2s var(--alj-ease), border-color 0.2s var(--alj-ease), transform 0.2s var(--alj-ease);
}

.wp-block-button__link:hover {
	transform: translateY(-1px);
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--alj-clay);
	border: 1.5px solid currentColor;
	padding: calc(0.85rem - 1.5px) calc(1.6rem - 1.5px);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--alj-clay);
	border-color: var(--alj-clay);
	color: var(--wp--preset--color--white);
}

:where(.is-ink, .is-clay, .is-forest, .alj-hero, .alj-page-hero) .wp-block-button.is-style-outline > .wp-block-button__link {
	color: var(--wp--preset--color--white);
	border-color: rgba(255, 255, 255, 0.7);
}

:where(.is-ink, .is-clay, .is-forest, .alj-hero, .alj-page-hero) .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--white);
	color: var(--alj-ink);
}

.wp-block-button.alj-btn-gold > .wp-block-button__link {
	background: var(--alj-gold);
	color: var(--alj-ink);
}

.wp-block-button.alj-btn-gold > .wp-block-button__link:hover {
	background: #f3c766;
	color: var(--alj-ink);
}

.wp-block-button.alj-btn-light > .wp-block-button__link {
	background: var(--wp--preset--color--white);
	color: var(--alj-clay);
}

.wp-block-button.alj-btn-light > .wp-block-button__link:hover {
	background: var(--wp--preset--color--sand);
	color: var(--wp--preset--color--clay-deep);
}

/* Arrow on "go somewhere" buttons */
.wp-block-button.alj-btn-arrow > .wp-block-button__link::after {
	content: "\2192";
	display: inline-block;
	margin-inline-start: 0.55em;
	transition: transform 0.2s var(--alj-ease);
}

.wp-block-button.alj-btn-arrow > .wp-block-button__link:hover::after {
	transform: translateX(3px);
}

/* ----------------------------------------------------- Shared sections -- */

/* Partnering in the Journey (alj/partnering) */
.alj-partner {
	overflow: hidden;
}

.alj-partner::before {
	/* Faint outline of Africa from the logo, as a watermark. */
	content: "";
	position: absolute;
	right: -6%;
	top: 50%;
	width: min(52vw, 640px);
	aspect-ratio: 1;
	transform: translateY(-50%);
	background: url("../images/africa-outline-white.png") center / contain no-repeat;
	opacity: 0.09;
	pointer-events: none;
}

.alj-partner > * {
	position: relative;
}

.alj-partner .alj-section-head .alj-lead {
	color: rgba(255, 255, 255, 0.9);
}

.alj-donate {
	max-width: 880px;
	margin-inline: auto !important;
}

.alj-donate .alj-card {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-block: clamp(2rem, 4vw, 2.75rem);
	box-shadow: 0 24px 60px rgba(60, 12, 8, 0.28);
	border: 0;
}

.alj-donate .alj-card h3 {
	color: var(--alj-ink);
	margin-block: 0 1.4rem;
}

.alj-donate .alj-card h3::before {
	content: "";
	display: block;
	width: 3.25rem;
	height: 3.25rem;
	margin: 0 auto 1.1rem;
	border-radius: 50%;
	background-color: var(--wp--preset--color--sand);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 1.6rem;
}

/* Maple leaf / flag icons, drawn in clay. */
.alj-donate .is-canada h3::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23A3312A'%3E%3Cpath d='M12 1.5l1.9 3.7c.2.4.6.4 1 .2l1.5-.8-.6 4.3c-.1.6.4.8.8.4l2-2.1.5 1.2c.1.3.4.4.7.3l2.3-.5-.8 2.4c-.1.4 0 .6.3.7l.7.4-4.2 3.5c-.4.3-.3.7-.1 1.1l.5 1.4-3.8-.7c-.5-.1-.8.2-.8.7l.2 4.3h-1.7l.2-4.3c0-.5-.3-.8-.8-.7l-3.8.7.5-1.4c.2-.4.3-.8-.1-1.1L2.7 11.9l.7-.4c.3-.1.4-.3.3-.7l-.8-2.4 2.3.5c.3.1.6 0 .7-.3l.5-1.2 2 2.1c.4.4.9.2.8-.4L8.6 4.8l1.5.8c.4.2.8.2 1-.2z'/%3E%3C/svg%3E");
}

.alj-donate .is-us h3::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A3312A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21V4'/%3E%3Cpath d='M4 4.5c2.5-1.5 5-1.5 7.5 0s5 1.5 8 0v9c-3 1.5-5.5 1.5-8 0s-5-1.5-7.5 0'/%3E%3Cpath d='M11.5 8.3c2.4 1.3 4.8 1.3 8 0M11.5 11.3c2.4 1.3 4.8 1.3 8 0'/%3E%3C/svg%3E");
}

.alj-donate .wp-block-buttons {
	margin-block-start: auto;
}

/* Contact strip (alj/contact) */
.alj-contact {
	text-align: center;
}

.alj-contact h2 {
	font-size: clamp(1.75rem, 3.6vw, 2.5rem);
	margin-block-end: 1.5rem;
}

.alj-contact .wp-block-buttons {
	justify-content: center;
}

.alj-contact .wp-block-button__link {
	word-break: break-word;
}


/* Plain pages (page.html) */
.alj-title-band {
	background: var(--wp--preset--color--sand);
	padding-block: clamp(2.5rem, 5.5vw, 4rem) clamp(1.75rem, 3.5vw, 2.5rem);
}

.alj-title-band h1 {
	font-size: clamp(2.25rem, 5vw, 3.75rem);
	margin: 0;
}

.alj-prose {
	padding-block: clamp(1.75rem, 4vw, 3rem);
}

/* --------------------------------------------------------------- Motion -- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

/* ------------------------------------------------------------ Responsive -- */

@media (max-width: 480px) {
	.alj-hero .alj-eyebrow,
	.alj-page-hero .alj-eyebrow {
		letter-spacing: 0.14em;
		font-size: 0.75rem;
	}

	.alj-hero .alj-eyebrow::before,
	.alj-page-hero .alj-eyebrow::before {
		width: 1.5rem;
	}
}

@media (max-width: 781px) {
	:root {
		--alj-header-h: 72px;
	}

	.alj-logo img {
		width: 128px !important;
	}

	.alj-photo-stack::before {
		right: -0.5rem;
	}

	.alj-frame::before {
		inset: 0.85rem -0.85rem -0.85rem 0.85rem;
	}
}

/* Full-width covers used as sections need the root side padding themselves. */
.wp-block-cover.alignfull.alj-section {
	padding-inline: var(--wp--style--root--padding-left, 1.5rem) var(--wp--style--root--padding-right, 1.5rem);
	min-height: 0;
}

.wp-block-cover.alj-section .wp-block-cover__inner-container {
	width: 100%;
}

/* Email icon above the contact heading. */
.alj-contact h2::before {
	content: "";
	display: block;
	width: 3.5rem;
	height: 3.5rem;
	margin: 0 auto 1.25rem;
	border-radius: 50%;
	background: var(--wp--preset--color--white)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A3312A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.5'/%3E%3Cpath d='M3.5 7l8.5 6 8.5-6'/%3E%3C/svg%3E")
		center / 1.6rem no-repeat;
	box-shadow: var(--wp--preset--shadow--soft);
}

/* Editor canvas: full-width sections touch, as on the front end. */
.editor-styles-wrapper .is-root-container > .alignfull,
.editor-styles-wrapper .is-root-container > .wp-block-cover.alignfull {
	margin-block: 0 !important;
}
