/* =========================================================================
   HYA — Momentum
   Base, header, footer, buttons and motion from the Theme B prototype.
   Logical properties only, so Arabic (RTL) and English (LTR) share this file.
   Section layouts (home hero, programmes, stories) are intentionally absent.
   ========================================================================= */

:root {
	--hya-green: var(--wp--preset--color--hya-green, #0a9149);
	--hya-green-ink: var(--wp--preset--color--hya-green-ink, #077238);
	--hya-green-deep: var(--wp--preset--color--hya-green-deep, #055e2e);
	--hya-gold: var(--wp--preset--color--hya-gold, #b49759);
	--hya-red: var(--wp--preset--color--hya-red, #86191b);
	--hya-bronze: var(--wp--preset--color--hya-bronze, #a0612b);
	--hya-silver: var(--wp--preset--color--hya-silver, #8c9196);
	--hya-black: var(--wp--preset--color--hya-black, #221f1f);
	--night: var(--wp--preset--color--night, #0a3d02);
	--night-2: var(--wp--preset--color--night-2, #0e4a06);
	--mist: var(--wp--preset--color--mist, #f2f5f3);
	--white: var(--wp--preset--color--white, #fff);
	--ink: var(--hya-black);
	--ink-soft: var(--wp--preset--color--ink-soft, #4b514d);
	--line: var(--wp--preset--color--line, #d9e1dc);
	--focus: var(--hya-green-ink);
	--gold-bright: #e8c66a;
	/* Gold for text (WCAG AA): lighter on --night, darker on white. */
	--gold-on-night: #bc9f62;
	--gold-ink: #8a6f35;

	--font-display: var(--wp--preset--font-family--alexandria, "Alexandria", "Readex Pro", system-ui, sans-serif);
	--font-body: var(--wp--preset--font-family--readex-pro, "Readex Pro", "Alexandria", system-ui, sans-serif);
	--fs-h1: var(--wp--preset--font-size--h1, clamp(2.25rem, 4.5vw, 3.825rem));
	--fs-h2: var(--wp--preset--font-size--h2, clamp(1.6rem, 2.52vw, 2.16rem));
	--fs-h3: var(--wp--preset--font-size--h3, clamp(1.1rem, 1.44vw, 1.2375rem));
	--fs-h4: var(--wp--preset--font-size--h4, 0.95625rem);
	--fs-body: var(--wp--preset--font-size--body, 0.9rem);
	--fs-sm: var(--wp--preset--font-size--sm, 0.84375rem);
	--fs-xs: var(--wp--preset--font-size--xs, 0.73125rem);

	--gutter: var(--wp--custom--gutter, clamp(1rem, 3.6vw, 1.8rem));
	--max: var(--wp--style--global--content-size, 1200px);
	--max-wide: var(--wp--style--global--wide-size, 1360px);
	--hdr-solid: 64px;

	--r-sm: var(--wp--custom--radius--sm, 12px);
	--r-md: var(--wp--custom--radius--md, 16px);
	--r-lg: var(--wp--custom--radius--lg, 24px);
	--r-pill: var(--wp--custom--radius--pill, 999px);
	--shadow-sm: var(--wp--custom--shadow--sm, 0 6px 18px -8px rgba(10, 61, 2, 0.28));
	--shadow-md: var(--wp--custom--shadow--md, 0 22px 44px -20px rgba(10, 61, 2, 0.5));
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/*
 * Presets above are the desktop scale, about 10% under the previous type
 * and gutter. Phones keep the previous sizes. h2, h3 and the inner heading
 * already sit on their minimum below 768px, so they need no restore.
 */
@media (max-width: 767px) {
	:root {
		--wp--preset--font-size--xs: 0.8125rem;
		--wp--preset--font-size--sm: 0.9375rem;
		--wp--preset--font-size--body: 1rem;
		--wp--preset--font-size--h4: 1.0625rem;
		--wp--preset--font-size--h1: clamp(2.25rem, 5vw, 4.25rem);
		--wp--custom--gutter: clamp(1rem, 4vw, 2rem);
	}
}

@media (min-width: 768px) {
	:root {
		--hdr-solid: 58px;
	}

	html {
		scroll-padding-block-start: 7.65rem;
	}

	.btn {
		font-size: 0.9rem;
	}
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-block-start: 8.5rem;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font: 400 var(--fs-body) / 1.8 var(--font-body);
	letter-spacing: 0;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
	overflow-wrap: break-word;
}

.wp-site-blocks {
	padding: 0;
}

.wp-site-blocks > * {
	margin-block: 0;
}

main {
	display: block;
	outline: none;
}

img,
svg {
	max-width: 100%;
	display: block;
}

img {
	height: auto;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
	margin-block-start: 0;
}

/* As in the static design: headings carry no margin of their own. Components
   and article prose set the space they need. */
h1,
h2,
h3,
h4 {
	margin-block-end: 0;
}

p {
	margin-block-end: 1em;
}

p:last-child {
	margin-block-end: 0;
}

h1,
h2,
h3,
h4 {
	font-family: var(--font-display);
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.25;
	/* No single word alone on the last line on phones. */
	text-wrap: pretty;
}

a {
	color: var(--hya-green-ink);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

a:hover {
	color: var(--hya-green-deep);
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
	letter-spacing: 0;
}

button {
	cursor: pointer;
}

address {
	font-style: normal;
}

:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 3px;
	border-radius: 4px;
}

.site-header,
.site-footer,
.masthead {
	--focus: #fff;
}

.skip-link {
	position: fixed;
	inset-inline-start: 1rem;
	inset-block-start: -5rem;
	z-index: 300;
	background: var(--white);
	color: var(--ink);
	padding: 0.8rem 1.2rem;
	border-radius: var(--r-pill);
	font-weight: 600;
	letter-spacing: 0;
	box-shadow: var(--shadow-md);
	transition: inset-block-start 0.2s;
}

.skip-link:focus {
	inset-block-start: 1rem;
}

.container {
	width: 100%;
	max-width: var(--max);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.container--wide {
	max-width: var(--max-wide);
}

.icon {
	width: 1.25em;
	height: 1.25em;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.icon--fill {
	fill: currentColor;
	stroke: none;
}

.entry ul,
.entry ol {
	padding-inline-start: 1.25rem;
	margin-block-end: 1em;
}

.entry ul {
	list-style: disc;
}

.entry ol {
	list-style: decimal;
}

/* ---------- Buttons ---------- */
.btn,
.wp-element-button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	border-radius: var(--r-pill);
	font-family: var(--font-body);
	font-weight: 600;
	letter-spacing: 0;
	text-decoration: none;
	line-height: 1.2;
}

.btn {
	min-height: 48px;
	padding: 0.7rem 1.6rem;
	border: 2px solid transparent;
	font-size: 1rem;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}

.btn:hover {
	transform: translateY(-2px);
}

/* .btn on a core/button wrapper: the inner link draws the pill, the wrapper only lays it out. */
.wp-block-button.btn,
.wp-block-button.btn:hover {
	min-height: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
}

.btn--green,
.wp-element-button,
.wp-block-button__link {
	background: var(--hya-green-ink);
	color: var(--white);
}

.btn--green:hover,
.wp-element-button:hover,
.wp-block-button__link:hover {
	background: var(--hya-green-deep);
	color: var(--white);
}

.wp-block-search__input,
.wp-block-search__button {
	border-radius: var(--r-pill);
	letter-spacing: 0;
}

.wp-block-search__input {
	border: 1.5px solid var(--line);
	padding: 0.6rem 1rem;
	background: var(--white);
	color: var(--ink);
}

/* ---------- Header ---------- */
.site-header {
	position: fixed;
	inset-block-start: 0;
	inset-inline: 0;
	z-index: 100;
	width: 100%;
	margin: 0;
	color: var(--white);
	transition: background-color 0.3s, box-shadow 0.3s, color 0.3s;
}

.admin-bar .site-header {
	inset-block-start: 32px;
}

.site-header::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	inset-block: 0 -2rem;
	background: linear-gradient(180deg, rgba(10, 61, 2, 0.72), rgba(10, 61, 2, 0));
	pointer-events: none;
	transition: opacity 0.3s;
}

.site-header.is-solid {
	background: var(--white);
	color: var(--ink);
	box-shadow: 0 10px 28px -16px rgba(10, 61, 2, 0.5);
}

.site-header.is-solid::before {
	opacity: 0;
}

/*
 * The nav lives in a flex item (.header-bar). A fixed flex item can be sized
 * to that bar instead of the viewport, so the list then paints over the page
 * with no backing and the lockup collides with the last item. This layer is
 * the opaque night panel: fixed to the viewport, under the items (z-index 3),
 * the logo (4) and the toggle (5), and inside the header's stacking context
 * so page content cannot paint through it.
 */
@media (max-width: 1199px) {
	.site-header.is-open {
		z-index: 200;
	}

	.site-header.is-open::before {
		opacity: 0;
	}

	.site-header.is-open::after {
		content: "";
		position: fixed;
		inset: 0;
		z-index: 2;
		background-color: #0A3D02;
	}

	/*
	 * The drawer and its night panel cover the header bar. The language pill
	 * sits in that bar, so it needs to paint above the panel. The pill stays
	 * white, as in the proposal.
	 */
	.site-header.is-open .lang-bar {
		position: relative;
		z-index: 6;
	}

	.site-header.is-open .lang-bar .lang {
		color: #fff;
		border-color: #fff;
	}
}

.site-header__grid {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: clamp(0.75rem, 2.5vw, 2rem);
	align-items: start;
}

.site-header__grid > * {
	margin-block: 0;
}

.brand-tab {
	grid-row: 1 / span 2;
	grid-column: 1;
	position: relative;
	z-index: 4;
	display: block;
	background: none;
	box-shadow: none;
	border-radius: 0;
	padding: 10px 0 0;
	margin-block-end: -3rem;
	text-decoration: none;
}

.brand-tab img {
	height: 88px;
	width: auto;
	filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
}

.brand-tab .logo-on-light {
	display: none;
}

.is-solid .brand-tab {
	padding: 4px 0;
	margin-block-end: 0;
}

.is-solid .brand-tab img {
	height: 56px;
	filter: none;
}

.is-solid .brand-tab .logo-on-dark {
	display: none;
}

.is-solid .brand-tab .logo-on-light {
	display: block;
}

.is-open .brand-tab .logo-on-dark {
	display: block;
}

.is-open .brand-tab .logo-on-light {
	display: none;
}

.utility {
	display: none;
	grid-column: 2;
	align-items: center;
	justify-content: flex-end;
	gap: 1rem;
	max-height: 3.375rem;
	overflow: hidden;
	font-size: var(--fs-xs);
	transition: max-height 0.3s, opacity 0.3s;
}

.is-solid .utility {
	max-height: 0;
	opacity: 0;
}

.utility__list {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	padding: 0;
	margin: 0;
	list-style: none;
}

.utility__list > * {
	margin: 0;
}

.utility__list--end {
	margin-inline-start: auto;
	justify-content: flex-end;
}

.utility a,
.utility__link {
	color: inherit;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
}

.utility a:hover {
	color: inherit;
	text-decoration: underline;
}

.utility .icon,
.utility__search .icon {
	width: 1.1em;
	height: 1.1em;
}

.utility__search {
	background: none;
	border: 0;
	color: inherit;
	padding: 0.25rem;
	display: grid;
	place-items: center;
	text-decoration: none;
}

.lang {
	font-weight: 700;
	letter-spacing: 0;
	padding: 0.2rem 0.7rem;
	border: 1px solid currentColor;
	border-radius: var(--r-pill);
	text-decoration: none;
}

.lang-bar {
	display: inline-flex;
}

.lang-bar .lang {
	color: inherit;
	text-decoration: none;
	font-size: var(--fs-xs);
	padding: 0.3rem 0.7rem;
}

.header-bar {
	grid-column: 2;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.6rem;
	min-height: var(--hdr-solid);
}

.header-bar > * {
	margin-block: 0;
}

/*
 * End-side lockup, where the Online Record Book button was. White art on the
 * transparent bar (it sits on the dark hero scrim); the colour file on the
 * solid bar, which is white. 50px matches the solid HYA logo. Hidden below
 * 1200px, where the same white file stays in .drawer-extra.
 */
.header-dofe {
	display: none;
	align-items: center;
	margin: 0;
	flex: none;
}

.header-dofe img {
	display: block;
	height: 50px;
	width: auto;
	max-width: none;
}

.header-dofe .logo-on-light {
	display: none;
}

.is-solid .header-dofe .logo-on-dark {
	display: none;
}

.is-solid .header-dofe .logo-on-light {
	display: block;
}

.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.nav__label {
	display: inline-flex;
	align-items: center;
	gap: 0.3em;
	white-space: nowrap;
}

.icon--external {
	width: 0.85em;
	height: 0.85em;
}

.nav-toggle {
	position: relative;
	z-index: 5;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 1.5px solid currentColor;
	background: transparent;
	color: inherit;
	padding: 0;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 20px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform 0.25s var(--ease), background-color 0.2s;
}

.nav-toggle__bars {
	position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
	content: "";
	position: absolute;
	inset-inline-start: 0;
}

.nav-toggle__bars::before {
	inset-block-start: -7px;
}

.nav-toggle__bars::after {
	inset-block-start: 7px;
}

.is-open .nav-toggle,
.is-open .lang-bar .lang {
	color: var(--white);
}

.is-open .nav-toggle__bars {
	background: transparent;
}

.is-open .nav-toggle__bars::before {
	transform: translateY(7px) rotate(45deg);
}

.is-open .nav-toggle__bars::after {
	transform: translateY(-7px) rotate(-45deg);
}

.primary-nav {
	position: fixed;
	inset: 0;
	z-index: 3;
	flex: none;
	align-self: flex-start;
	inline-size: auto;
	block-size: 100dvh;
	margin: 0;
	background-color: #0A3D02;
	color: var(--white);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 8.5rem var(--gutter) 2.5rem;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-12px);
	transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0s 0.3s;
}

.is-open .primary-nav {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}

.nav__list,
.submenu,
.footer-links,
.footer-complaints__list {
	padding: 0;
	margin: 0;
	list-style: none;
}

.nav__list {
	max-width: 560px;
	margin-inline: auto;
}

.nav__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	width: 100%;
	padding: 1rem 0;
	border: 0;
	border-block-end: 1px solid rgba(255, 255, 255, 0.14);
	background: none;
	color: var(--white);
	font: 800 1.35rem / 1.3 var(--font-display);
	letter-spacing: 0;
	text-decoration: none;
	text-align: start;
}

/* Keep the menu colour on hover: the global a:hover green would vanish on the
   green header. The gold underline marks the hovered item, as in the static design. */
.nav__link:hover,
.nav__link:focus-visible {
	color: inherit;
}

.nav__chev {
	width: 1.1em;
	height: 1.1em;
	transition: transform 0.25s;
}

.nav__toggle[aria-expanded="true"] .nav__chev {
	transform: rotate(180deg);
}

.submenu {
	display: none;
	padding: 0.25rem 0 0.75rem;
}

.nav__item.is-open > .submenu {
	display: block;
}

.submenu a {
	display: block;
	padding: 0.6rem 1rem;
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	font-size: 1.0625rem;
	border-radius: var(--r-sm);
}

.submenu a:hover {
	background: rgba(255, 255, 255, 0.08);
	color: var(--white);
}

.drawer-extra {
	position: static;
	display: grid;
	gap: 0.5rem;
	max-width: 560px;
	margin: 1.5rem auto 0;
}

.drawer-extra img {
	position: static;
	height: 48px;
	width: auto;
	max-width: 11rem;
	margin-block-start: 1rem;
}

body.nav-lock {
	overflow: hidden;
}

@media (min-width: 400px) {
	.brand-tab img {
		height: 84px;
	}
}

/* Eight items plus the 50px lockup fit from here. Below this the drawer is the menu. */
@media (min-width: 1200px) {
	.brand-tab img {
		height: 90px;
	}

	.is-solid .brand-tab img {
		height: 50px;
	}

	.utility {
		display: flex;
	}

	.nav-toggle,
	.lang-bar,
	.drawer-extra {
		display: none;
	}

	.header-dofe {
		display: flex;
	}

	.header-bar {
		justify-content: space-between;
		gap: 1rem;
		min-width: 0;
	}

	.primary-nav {
		position: static;
		inset: auto;
		z-index: auto;
		flex: 1 1 auto;
		align-self: auto;
		inline-size: auto;
		block-size: auto;
		background: none;
		color: inherit;
		overflow: visible;
		padding: 0;
		opacity: 1;
		visibility: visible;
		transform: none;
		min-width: 0;
		transition: none;
	}

	.nav__list {
		display: flex;
		align-items: center;
		gap: 0.1rem;
		max-width: none;
		margin: 0;
	}

	.nav__item {
		position: relative;
	}

	.nav__link {
		width: auto;
		padding: 0.55rem 0.45rem;
		border: 0;
		font: 500 0.84rem / 1.3 var(--font-body);
		color: inherit;
		border-radius: var(--r-pill);
		position: relative;
		justify-content: flex-start;
		gap: 0.35rem;
		white-space: nowrap;
	}

	.nav__link::after {
		content: "";
		position: absolute;
		inset-inline: 0.45rem;
		inset-block-end: 0.3rem;
		height: 2px;
		background: var(--hya-gold);
		transform: scaleX(0);
		transition: transform 0.25s var(--ease);
	}

	.nav__link:hover::after,
	.nav__link[aria-current="page"]::after,
	.nav__link.is-current::after,
	.nav__toggle[aria-expanded="true"]::after {
		transform: scaleX(1);
	}

	.nav__chev {
		width: 0.9em;
		height: 0.9em;
	}

	.submenu {
		position: absolute;
		inset-block-start: calc(100% + 0.35rem);
		inset-inline-start: 0;
		min-width: 16.5rem;
		padding: 0.5rem;
		background: var(--white);
		color: var(--ink);
		border-radius: var(--r-md);
		box-shadow: var(--shadow-md);
		display: block;
		opacity: 0;
		visibility: hidden;
		transform: translateY(8px);
		transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0s 0.2s;
	}

	.submenu a {
		color: var(--ink);
		font-size: 0.9375rem;
		padding: 0.6rem 0.9rem;
	}

	.submenu a:hover {
		background: var(--mist);
		color: var(--hya-green-ink);
	}

	.nav__item.is-open > .submenu {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition-delay: 0s;
	}

	.nav__item--has-sub::before {
		content: "";
		position: absolute;
		inset-inline: 0;
		inset-block-start: 100%;
		height: 0.5rem;
	}
}

@media (min-width: 1280px) {
	.nav__link {
		padding: 0.63rem 0.63rem;
		font-size: 0.85rem;
	}

	.nav__link::after {
		inset-inline: 0.63rem;
	}
}

/*
 * One header row (client edits v5). Search and the language pill leave the
 * row above the DofE lockup and sit after it, at the outer corner (column 3).
 * The row is as tall as the photo heroes' green band (--hero-top in
 * inner.css), so the nav, lockup and tools are centred in it, and it stays
 * visible on the solid bar.
 */
@media (min-width: 1200px) {
	.site-header__grid {
		grid-template-columns: auto minmax(0, 1fr) auto;
		align-items: center;
		min-height: 6.5rem;
	}

	.is-solid .site-header__grid {
		min-height: var(--hdr-solid);
	}

	.brand-tab {
		grid-row: 1;
		align-self: start;
	}

	.header-bar {
		grid-row: 1;
	}

	.utility,
	.is-solid .utility {
		grid-row: 1;
		grid-column: 3;
		max-height: none;
		overflow: visible;
		opacity: 1;
	}

	.utility__list {
		gap: 0.9rem;
	}
}

/* Below 1366px the eight items, lockup and tools only fit with tighter spacing. */
@media (min-width: 1200px) and (max-width: 1365px) {
	.site-header__grid {
		column-gap: 1rem;
	}

	.header-bar {
		gap: 0.6rem;
	}

	.utility__list {
		gap: 0.6rem;
	}

	.header-dofe img {
		height: 44px;
	}

	.nav__link {
		padding-inline: 0.3rem;
	}

	.nav__link::after {
		inset-inline: 0.3rem;
	}
}

@media (min-width: 1280px) and (max-width: 1365px) {
	.nav__link {
		padding-inline: 0.5rem;
	}

	.nav__link::after {
		inset-inline: 0.5rem;
	}
}

/* The photo heroes' green band already backs the header, so its shade would only darken the top of the photo. */
body:has(.page-hero--photo) .site-header::before {
	opacity: 0;
}

@media (min-width: 1200px) and (hover: hover) {
	.nav__item--has-sub:hover > .submenu {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition-delay: 0s;
	}
}

/* ---------- Footer ---------- */
.site-footer {
	position: relative;
	width: 100%;
	margin: 0;
	background: var(--night);
	color: var(--white);
	padding-block: clamp(4rem, 7.2vw, 5.85rem) 1.5rem;
	overflow: hidden;
}

.site-footer__wordmark {
	position: absolute;
	inset-inline: 0;
	inset-block-start: 1.5rem;
	margin-inline: auto;
	width: min(60%, 820px);
	height: auto;
	opacity: 0.12;
	pointer-events: none;
}

.site-footer .container {
	position: relative;
}

.footer-grid {
	display: grid;
	gap: 2.5rem;
	grid-template-columns: minmax(0, 1fr);
	padding-block-end: 2.5rem;
}

.footer-grid > * {
	margin-block: 0;
}

.brand-mark {
	display: inline-block;
	text-decoration: none;
}

.brand-mark img {
	height: 120px;
	width: auto;
}

@media (min-width: 768px) {
	.brand-mark img {
		height: 108px;
	}
}

.footer-tagline {
	margin-block: 1.25rem;
	font: 800 1.2rem / 1.5 var(--font-display);
	letter-spacing: 0;
	max-width: 14em;
}

.footer-h {
	font: 800 1.15rem / 1.4 var(--font-display);
	letter-spacing: 0;
	margin-block: 0 1rem;
	color: var(--white);
}

.footer-links {
	display: grid;
	gap: 0.55rem;
}

.footer-links a,
.footer-address a,
.site-footer a {
	color: rgba(255, 255, 255, 0.88);
	text-decoration: none;
}

.footer-links a {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
}

.footer-links a:hover,
.footer-address a:hover,
.footer-complaints__list a:hover {
	color: var(--white);
	text-decoration: underline;
}

.footer-address p {
	margin-block-end: 1.1rem;
	color: rgba(255, 255, 255, 0.82);
	font-size: var(--fs-sm);
	line-height: 1.9;
}

.footer-address strong {
	color: var(--white);
	font-weight: 600;
}

.social {
	display: inline-flex;
	align-items: center;
	gap: 0.85rem;
	margin: 0;
}

.social--round {
	gap: 0.6rem;
}

.social--round a {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, 0.45);
	color: var(--white);
	transition: background-color 0.2s, color 0.2s;
}

.social--round a:hover {
	background: var(--white);
	color: var(--night);
}

.footer-complaints__txt {
	color: rgba(255, 255, 255, 0.82);
	font-size: var(--fs-sm);
	line-height: 1.9;
	text-align: justify;
}

.footer-complaints__list {
	display: grid;
	gap: 0.65rem;
	margin-block-start: 1rem;
}

.footer-complaints__list a {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	color: var(--white);
	font-weight: 600;
	text-decoration: none;
}

.footer-complaints__list .icon {
	width: 2.25rem;
	height: 2.25rem;
	padding: 0.5rem;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: var(--gold-bright);
}

.footer-bottom {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding-block-start: 1.5rem;
	border-block-start: 1px solid rgba(255, 255, 255, 0.14);
	font-size: var(--fs-sm);
	color: rgba(255, 255, 255, 0.8);
}

.footer-bottom p {
	margin: 0;
}

.footer-proud {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
}

.footer-proud img {
	height: 48px;
	width: auto;
}

.hashtag {
	color: var(--gold-on-night);
	font-weight: 800;
	font-family: var(--font-display);
	letter-spacing: 0;
}

@media (min-width: 700px) {
	.footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.footer-bottom {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}
}

@media (min-width: 1100px) {
	.footer-grid {
		grid-template-columns: 1.15fr 0.75fr 1.25fr 1.15fr;
		gap: 3rem;
	}
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		inset-block-start: 46px;
	}
}

/* ---------- Inner templates ---------- */
.masthead {
	background: var(--night);
	color: var(--white);
	padding-block: 8.5rem 2.5rem;
}

.masthead h1,
.masthead .wp-block-post-title,
.masthead .wp-block-query-title {
	color: var(--white);
	margin: 0;
	font-family: var(--font-display);
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.2;
	font-size: clamp(1.9rem, 3.42vw, 2.925rem);
}

.masthead .wp-block-search {
	margin-block-start: 1.25rem;
	max-width: 36rem;
}

.entry {
	padding-block: clamp(2.5rem, 4.5vw, 4.05rem);
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation: none !important;
		transition-duration: 0.01ms !important;
		transition-delay: 0s !important;
		scroll-behavior: auto !important;
	}

	.btn:hover {
		transform: none;
	}
}

@media print {
	.site-header,
	.site-footer,
	.skip-link {
		display: none;
	}
}

/* Justified copy suits the Arabic text; English set justified in these
   narrow columns opens wide gaps, so left-to-right pages align to the start. */
[dir="ltr"] .hero__lead,
[dir="ltr"] .sabela__desc,
[dir="ltr"] .story__quote p,
[dir="ltr"] .story__quote .wp-block-post-excerpt__excerpt,
[dir="ltr"] .ncard__ex p,
[dir="ltr"] .wp-block-post-excerpt__excerpt,
[dir="ltr"] .prose--article p,
[dir="ltr"] .prose p,
[dir="ltr"] .section-head__lead,
[dir="ltr"] .tl-card p,
[dir="ltr"] .value__text,
[dir="ltr"] .vision__text,
[dir="ltr"] .objectives__list span,
[dir="ltr"] .objectives__close,
[dir="ltr"] .int-block p,
[dir="ltr"] .meaning__card p,
[dir="ltr"] .bcard__note,
[dir="ltr"] p.prose,
[dir="ltr"] .acc__inner p,
[dir="ltr"] .aud-card p,
[dir="ltr"] .step p,
[dir="ltr"] .orb p,
[dir="ltr"] .note-band p,
[dir="ltr"] .supporter__text,
[dir="ltr"] .note,
[dir="ltr"] .goal__text,
[dir="ltr"] .type-card p,
[dir="ltr"] .lv-lines li,
[dir="ltr"] .sabela-copy p,
[dir="ltr"] .story-feature__quote p,
[dir="ltr"] .sstory__quote p,
[dir="ltr"] .story-profile__quote p,
[dir="ltr"] .story-profile__text p,
[dir="ltr"] .footer-complaints__txt {
	text-align: start;
}
