/* Mehmood for Whitby — front-end styles */
:root {
	--m4w-navy: #071e57;
	--m4w-blue: #0b2d75;
	--m4w-blue-bright: #164496;
	--m4w-yellow: #f3d20b;
	--m4w-yellow-deep: #dfbd00;
	--m4w-sky: #e7edf8;
	--m4w-light: #f6f8fc;
	--m4w-white: #ffffff;
	--m4w-ink: #121a31;
	--m4w-muted: #5d6576;
	--m4w-border: #dce2ee;
	--m4w-red: #9d2f2a;
	--m4w-shadow: 0 24px 70px rgba(7, 30, 87, 0.14);
	--m4w-shadow-soft: 0 12px 34px rgba(7, 30, 87, 0.09);
	--m4w-radius: 16px;
	--m4w-container: 1180px;
	--m4w-display: "Arial Narrow", "DejaVu Sans Condensed", "Liberation Sans Narrow", Impact, sans-serif;
	--m4w-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--m4w-white);
	color: var(--m4w-ink);
	font-family: var(--m4w-body);
	font-size: 17px;
	line-height: 1.65;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

body.menu-open {
	overflow: hidden;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: var(--m4w-blue);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--m4w-blue-bright);
}

button,
input,
select,
textarea {
	font: inherit;
}

button,
a {
	-webkit-tap-highlight-color: transparent;
}

:focus-visible {
	outline: 3px solid var(--m4w-yellow);
	outline-offset: 4px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin-top: 0;
	color: var(--m4w-navy);
	font-family: var(--m4w-display);
	font-weight: 900;
	line-height: 0.98;
	letter-spacing: -0.025em;
	text-transform: uppercase;
}

h1 {
	font-size: clamp(3.2rem, 7vw, 6.25rem);
}

h2 {
	font-size: clamp(2.2rem, 4.5vw, 4.15rem);
}

h3 {
	font-size: clamp(1.35rem, 2.4vw, 2rem);
}

p,
ul,
ol {
	margin-top: 0;
	margin-bottom: 1.25rem;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.m4w-skip-link {
	position: fixed;
	z-index: 9999;
	top: 12px;
	left: 12px;
	padding: 12px 18px;
	transform: translateY(-150%);
	background: var(--m4w-yellow);
	color: var(--m4w-navy);
	font-weight: 800;
	text-decoration: none;
}

.m4w-skip-link:focus {
	transform: translateY(0);
}

.m4w-container,
body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	width: min(calc(100% - 40px), var(--m4w-container));
	margin-right: auto;
	margin-left: auto;
}

body .is-layout-constrained > .alignwide {
	width: min(calc(100% - 40px), 1320px);
	max-width: 1320px;
}

body .is-layout-constrained > .alignfull {
	width: 100%;
	max-width: none;
	margin-right: 0;
	margin-left: 0;
}

.m4w-announcement {
	background: var(--m4w-navy);
	color: var(--m4w-white);
	font-size: 0.8rem;
	font-weight: 750;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.m4w-announcement__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 38px;
	gap: 24px;
}

.m4w-announcement p {
	margin: 0;
}

.m4w-announcement a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--m4w-yellow);
	text-decoration: none;
}

.m4w-site-header {
	position: sticky;
	z-index: 1000;
	top: 0;
	background: rgba(255, 255, 255, 0.98);
	border-bottom: 1px solid rgba(7, 30, 87, 0.08);
	backdrop-filter: blur(14px);
	transition: box-shadow 180ms ease;
}

.m4w-site-header.is-scrolled {
	box-shadow: 0 10px 35px rgba(7, 30, 87, 0.12);
}

.admin-bar .m4w-site-header {
	top: 32px;
}

.m4w-site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 82px;
	gap: 28px;
}

.m4w-brand {
	flex: 0 0 auto;
}

.custom-logo-link {
	display: block;
}

.custom-logo {
	max-height: 60px;
	width: auto;
}

.m4w-wordmark {
	display: inline-flex;
	flex-direction: column;
	color: var(--m4w-navy);
	text-decoration: none;
	text-transform: uppercase;
}

.m4w-wordmark__name {
	max-width: 195px;
	font-family: var(--m4w-display);
	font-size: 1.65rem;
	font-weight: 950;
	line-height: 0.78;
	letter-spacing: -0.04em;
}

.m4w-wordmark__ward {
	margin-top: 7px;
	color: var(--m4w-blue);
	font-size: 0.62rem;
	font-weight: 900;
	letter-spacing: 0.14em;
}

.m4w-primary-nav {
	display: flex;
	align-items: center;
	gap: 28px;
}

.m4w-nav-list {
	display: flex;
	align-items: center;
	gap: 28px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.m4w-nav-list a {
	position: relative;
	display: block;
	padding: 10px 0;
	color: var(--m4w-navy);
	font-size: 0.86rem;
	font-weight: 800;
	text-decoration: none;
}

.m4w-nav-list a::after {
	position: absolute;
	right: 0;
	bottom: 4px;
	left: 0;
	height: 2px;
	content: "";
	transform: scaleX(0);
	transform-origin: center;
	background: var(--m4w-yellow);
	transition: transform 160ms ease;
}

.m4w-nav-list a:hover::after,
.m4w-nav-list .current-menu-item > a::after,
.m4w-nav-list .current_page_item > a::after {
	transform: scaleX(1);
}

.m4w-menu-toggle {
	display: none;
	width: 46px;
	height: 46px;
	padding: 10px;
	background: transparent;
	border: 0;
	cursor: pointer;
}

.m4w-menu-toggle span:not(.screen-reader-text) {
	display: block;
	width: 26px;
	height: 3px;
	margin: 5px auto;
	background: var(--m4w-navy);
	border-radius: 5px;
	transition: transform 180ms ease, opacity 180ms ease;
}

.m4w-menu-toggle[aria-expanded="true"] span:nth-of-type(2) {
	transform: translateY(8px) rotate(45deg);
}

.m4w-menu-toggle[aria-expanded="true"] span:nth-of-type(3) {
	opacity: 0;
}

.m4w-menu-toggle[aria-expanded="true"] span:nth-of-type(4) {
	transform: translateY(-8px) rotate(-45deg);
}

.m4w-button,
.wp-block-button__link,
button.m4w-button,
input[type="submit"].m4w-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 13px 24px;
	background: var(--m4w-yellow);
	border: 2px solid var(--m4w-yellow);
	border-radius: 4px;
	color: var(--m4w-navy);
	font-size: 0.83rem;
	font-weight: 900;
	letter-spacing: 0.04em;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	box-shadow: none;
	cursor: pointer;
	transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.m4w-button:hover,
.wp-block-button__link:hover,
button.m4w-button:hover,
input[type="submit"].m4w-button:hover {
	transform: translateY(-2px);
	background: var(--m4w-yellow-deep);
	border-color: var(--m4w-yellow-deep);
	color: var(--m4w-navy);
}

.m4w-button--small {
	min-height: 42px;
	padding: 10px 18px;
	font-size: 0.74rem;
}

.m4w-button--outline-light {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.9);
	color: var(--m4w-white);
}

.m4w-button--outline-light:hover {
	background: var(--m4w-white);
	border-color: var(--m4w-white);
	color: var(--m4w-navy);
}

.m4w-button--outline-dark,
.is-style-outline > .wp-block-button__link {
	background: transparent;
	border-color: var(--m4w-navy);
	color: var(--m4w-navy);
}

.m4w-button--outline-dark:hover,
.is-style-outline > .wp-block-button__link:hover {
	background: var(--m4w-navy);
	border-color: var(--m4w-navy);
	color: var(--m4w-white);
}

.m4w-button-row,
.wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
}

/* Root-level page actions should align with the full content section. */
.m4w-page-content > .wp-block-buttons {
	justify-content: center;
}

/* Keep the Get Involved introduction as a strong right-aligned desktop line. */
body.page-id-19 .m4w-page-content > .m4w-lead {
	width: min(calc(100% - 40px), 1180px);
	max-width: 1180px;
	text-align: right;
	white-space: nowrap;
}

.m4w-hero {
	position: relative;
	overflow: hidden;
	background:
		linear-gradient(105deg, rgba(7, 30, 87, 0.98) 0%, rgba(11, 45, 117, 0.96) 58%, rgba(9, 38, 98, 0.92) 100%),
		linear-gradient(135deg, var(--m4w-navy), var(--m4w-blue-bright));
	color: var(--m4w-white);
}

.m4w-hero::before {
	position: absolute;
	right: -12vw;
	bottom: -34%;
	width: 50vw;
	height: 120%;
	content: "";
	transform: rotate(-12deg);
	background: var(--m4w-yellow);
	clip-path: polygon(58% 0, 100% 0, 100% 100%, 0 100%);
}

.m4w-hero::after {
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 26%;
	height: 48px;
	content: "";
	background: var(--m4w-yellow);
	clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.m4w-hero__texture {
	position: absolute;
	inset: 0;
	opacity: 0.18;
	background-image:
		linear-gradient(30deg, rgba(255,255,255,0.09) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.09) 87.5%),
		linear-gradient(150deg, rgba(255,255,255,0.07) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.07) 87.5%);
	background-size: 72px 126px;
	pointer-events: none;
}

.m4w-hero__grid {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
	align-items: end;
	min-height: 625px;
	gap: 70px;
}

.m4w-hero__content {
	align-self: center;
	max-width: 760px;
	padding: 76px 0 88px;
}

.m4w-hero__office {
	margin-bottom: 22px;
	color: var(--m4w-yellow);
	font-size: 0.82rem;
	font-weight: 900;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.m4w-hero h1 {
	max-width: 780px;
	margin-bottom: 12px;
	color: var(--m4w-white);
	font-size: clamp(4.2rem, 8vw, 7.25rem);
	line-height: 0.78;
}

.m4w-hero__title {
	margin-bottom: 24px;
	color: var(--m4w-yellow);
	font-family: var(--m4w-display);
	font-size: clamp(1.7rem, 3vw, 2.8rem);
	font-weight: 900;
	letter-spacing: 0.01em;
	line-height: 1;
	text-transform: uppercase;
}

.m4w-hero__copy {
	max-width: 690px;
	margin-bottom: 24px;
	color: rgba(255, 255, 255, 0.9);
	font-size: clamp(1rem, 1.6vw, 1.16rem);
	line-height: 1.65;
}

.m4w-hero__priorities {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 26px;
	padding: 0;
	margin: 0 0 32px;
	list-style: none;
}

.m4w-hero__priorities li {
	position: relative;
	padding-left: 27px;
	font-size: 0.89rem;
	font-weight: 850;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.m4w-hero__priorities li::before {
	position: absolute;
	top: 0.05em;
	left: 0;
	display: grid;
	width: 19px;
	height: 19px;
	content: "✓";
	place-items: center;
	background: var(--m4w-yellow);
	border-radius: 50%;
	color: var(--m4w-navy);
	font-size: 0.72rem;
	font-weight: 950;
}

.m4w-hero__media {
	position: relative;
	align-self: stretch;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding-top: 42px;
}

.m4w-hero__image-frame {
	position: relative;
	overflow: hidden;
	width: min(100%, 460px);
	margin-bottom: -1px;
	background: var(--m4w-navy);
	border: 7px solid rgba(255, 255, 255, 0.95);
	border-bottom: 0;
	box-shadow: var(--m4w-shadow);
}

.m4w-hero__image-frame::before {
	display: none;
}

.m4w-hero__image-frame img {
	display: block;
	width: 100%;
	aspect-ratio: 0.72;
	object-fit: cover;
	object-position: center bottom;
	filter: none;
}

.m4w-front-content {
	overflow: hidden;
}

.m4w-section {
	padding-top: 96px;
	padding-bottom: 96px;
}

.m4w-section-heading {
	max-width: 780px;
	margin-bottom: 42px;
	text-align: center;
}

.m4w-section-heading h2 {
	margin-bottom: 12px;
}

.m4w-section-heading p {
	margin-bottom: 0;
	color: var(--m4w-muted);
	font-size: 1.08rem;
}

.m4w-section-heading--row {
	display: flex;
	align-items: end;
	justify-content: space-between;
	max-width: none;
	text-align: left;
}

.m4w-section-heading--row p {
	margin: 0 0 8px;
	font-weight: 800;
}

.m4w-quick-priorities {
	position: relative;
	z-index: 4;
	padding-top: 76px;
	padding-bottom: 86px;
	background: var(--m4w-white);
}

.m4w-card-columns {
	gap: 24px;
}

.m4w-priority-card,
.m4w-info-card {
	position: relative;
	height: 100%;
	padding: 38px 30px 32px;
	background: var(--m4w-white);
	border: 1px solid var(--m4w-border);
	box-shadow: var(--m4w-shadow-soft);
}

.m4w-priority-card {
	padding-top: 56px;
	text-align: center;
}

.m4w-priority-card::before {
	position: absolute;
	top: -24px;
	left: 50%;
	display: grid;
	width: 50px;
	height: 50px;
	content: "✓";
	transform: translateX(-50%);
	place-items: center;
	background: var(--m4w-yellow);
	border: 5px solid var(--m4w-white);
	border-radius: 50%;
	color: var(--m4w-navy);
	font-size: 1.05rem;
	font-weight: 950;
	box-shadow: 0 8px 20px rgba(7, 30, 87, 0.18);
}

.m4w-priority-card h3,
.m4w-info-card h3 {
	margin-bottom: 14px;
	font-size: 1.48rem;
}

.m4w-priority-card p,
.m4w-info-card p {
	margin-bottom: 0;
	color: var(--m4w-muted);
	font-size: 0.96rem;
}

.m4w-about-home {
	background: var(--m4w-light);
}

.m4w-split,
.m4w-content-split {
	gap: clamp(40px, 7vw, 90px);
}

.m4w-flyer-image {
	position: relative;
	max-width: 420px;
	margin: 0 auto;
}

.m4w-flyer-image::before {
	position: absolute;
	z-index: 0;
	top: 18px;
	right: -18px;
	bottom: -18px;
	left: 18px;
	content: "";
	background: var(--m4w-yellow);
}

.m4w-flyer-image img {
	position: relative;
	z-index: 1;
	width: 100%;
	box-shadow: var(--m4w-shadow);
}

.m4w-story-image {
	position: relative;
	max-width: 520px;
	margin: 0 auto;
}

.m4w-story-image::before {
	position: absolute;
	top: 20px;
	right: -20px;
	bottom: -20px;
	left: 20px;
	content: "";
	background: var(--m4w-yellow);
}

.m4w-story-image img {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	aspect-ratio: 1.35;
	object-fit: cover;
	object-position: center;
	box-shadow: var(--m4w-shadow);
}

.m4w-about-home h2 {
	margin-bottom: 16px;
}

.m4w-lead {
	color: var(--m4w-blue);
	font-size: clamp(1.2rem, 2vw, 1.55rem);
	font-weight: 750;
	line-height: 1.4;
}

.m4w-statement-band {
	position: relative;
	overflow: hidden;
	padding-top: 72px;
	padding-bottom: 72px;
	background: var(--m4w-navy);
	color: var(--m4w-white);
}

.m4w-statement-band::after {
	position: absolute;
	right: -80px;
	bottom: -110px;
	width: 320px;
	height: 240px;
	content: "";
	transform: rotate(-12deg);
	background: var(--m4w-yellow);
}

.m4w-statement-band h2 {
	margin-bottom: 16px;
	color: var(--m4w-white);
}

.m4w-statement-band p {
	max-width: 790px;
	margin-bottom: 0;
	color: rgba(255, 255, 255, 0.82);
	font-size: 1.05rem;
}

.m4w-statement-band .wp-block-columns {
	position: relative;
	z-index: 2;
	margin-bottom: 0;
}

.m4w-priority-section {
	background: var(--m4w-white);
}

.m4w-priority-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
	margin-bottom: 38px;
}

.m4w-priority-item {
	position: relative;
	padding: 32px 28px;
	background: var(--m4w-light);
	border-top: 5px solid var(--m4w-yellow);
	box-shadow: inset 0 0 0 1px rgba(7, 30, 87, 0.06);
}

.m4w-priority-item__number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-bottom: 20px;
	background: var(--m4w-navy);
	border-radius: 50%;
	color: var(--m4w-yellow);
	font-family: var(--m4w-display);
	font-size: 1.25rem;
	font-weight: 900;
}

.m4w-priority-item h3 {
	margin-bottom: 12px;
	font-size: 1.45rem;
}

.m4w-priority-item p {
	margin-bottom: 0;
	color: var(--m4w-muted);
	font-size: 0.95rem;
}

.m4w-join-band {
	position: relative;
	overflow: hidden;
	padding-top: 78px;
	padding-bottom: 78px;
	background: var(--m4w-sky);
}

.m4w-join-band::before {
	position: absolute;
	top: -80px;
	left: -140px;
	width: 380px;
	height: 220px;
	content: "";
	transform: rotate(-14deg);
	background: var(--m4w-yellow);
}

.m4w-join-band .wp-block-columns {
	position: relative;
	z-index: 2;
	margin-bottom: 0;
}

.m4w-join-band h2 {
	margin-bottom: 12px;
}

.m4w-join-band p {
	margin-bottom: 0;
	color: var(--m4w-muted);
	font-size: 1.06rem;
}

.m4w-updates-section {
	background: var(--m4w-white);
}

.m4w-updates-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.m4w-update-card {
	overflow: hidden;
	background: var(--m4w-white);
	border: 1px solid var(--m4w-border);
	box-shadow: var(--m4w-shadow-soft);
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.m4w-update-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--m4w-shadow);
}

.m4w-update-card__media {
	display: block;
	overflow: hidden;
	aspect-ratio: 1.5;
	background: var(--m4w-navy);
}

.m4w-update-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 300ms ease;
}

.m4w-update-card:hover .m4w-update-card__media img {
	transform: scale(1.035);
}

.m4w-update-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background:
		linear-gradient(140deg, transparent 0 64%, var(--m4w-yellow) 64% 78%, transparent 78%),
		linear-gradient(135deg, var(--m4w-navy), var(--m4w-blue-bright));
}

.m4w-update-card__body {
	padding: 26px;
}

.m4w-update-card__date {
	margin-bottom: 9px;
	color: var(--m4w-muted);
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.m4w-update-card__title {
	margin-bottom: 13px;
	font-size: 1.55rem;
	line-height: 1.02;
}

.m4w-update-card__title a {
	color: var(--m4w-navy);
	text-decoration: none;
}

.m4w-update-card__body > p:not(.m4w-update-card__date) {
	color: var(--m4w-muted);
	font-size: 0.94rem;
}

.m4w-text-link {
	font-size: 0.82rem;
	font-weight: 900;
	letter-spacing: 0.03em;
	text-decoration: none;
	text-transform: uppercase;
}

.m4w-empty-state {
	grid-column: 1 / -1;
	padding: 52px;
	background: var(--m4w-light);
	border: 1px dashed #b8c4da;
	text-align: center;
}

.m4w-empty-state h2,
.m4w-empty-state h3 {
	margin-bottom: 12px;
}

.m4w-empty-state p {
	max-width: 640px;
	margin-right: auto;
	margin-bottom: 0;
	margin-left: auto;
	color: var(--m4w-muted);
}

.m4w-page-hero {
	position: relative;
	overflow: hidden;
	background:
		linear-gradient(100deg, rgba(7, 30, 87, 0.98) 0%, rgba(11, 45, 117, 0.94) 72%, rgba(11, 45, 117, 0.7) 100%);
	color: var(--m4w-white);
}

.m4w-page-hero::after {
	position: absolute;
	right: -7%;
	bottom: -58%;
	width: 34%;
	height: 150%;
	content: "";
	transform: rotate(-14deg);
	background: var(--m4w-yellow);
}

.m4w-page-hero__inner {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 1fr 320px;
	align-items: end;
	min-height: 300px;
	gap: 40px;
}

.m4w-page-hero__inner > div {
	align-self: center;
	padding: 62px 0;
}

.m4w-page-hero h1 {
	max-width: 800px;
	margin-bottom: 14px;
	color: var(--m4w-white);
	font-size: clamp(3.2rem, 6vw, 5.4rem);
}

.m4w-page-hero p {
	max-width: 720px;
	margin-bottom: 0;
	color: rgba(255, 255, 255, 0.84);
	font-size: 1.12rem;
}

.m4w-page-hero img {
	position: relative;
	z-index: 2;
	align-self: end;
	justify-self: center;
	width: 360px;
	height: 230px;
	max-width: none;
	max-height: none;
	object-fit: cover;
	object-position: center;
	background: var(--m4w-white);
	border: 6px solid rgba(255, 255, 255, 0.96);
	border-bottom: 0;
	box-shadow: var(--m4w-shadow);
	filter: none;
}

.m4w-page-hero__photo--who-is-mehmood {
	object-position: center 43%;
}

.m4w-page-hero__photo--get-involved {
	object-position: 58% center;
}

.m4w-page-hero__photo--contact {
	object-position: 62% center;
}

.m4w-page-content {
	padding-top: 82px;
	padding-bottom: 104px;
}

.m4w-page-content > * {
	max-width: 980px;
	margin-right: auto;
	margin-left: auto;
}

.m4w-page-content > .alignwide,
.m4w-page-content > .wp-block-columns,
.m4w-page-content > .m4w-priority-grid,
.m4w-page-content > .m4w-form {
	max-width: 1180px;
}

.m4w-page-content h2 {
	margin-top: 64px;
	margin-bottom: 20px;
	font-size: clamp(2.1rem, 4vw, 3.4rem);
}

.m4w-page-content h2:first-child {
	margin-top: 0;
}

.m4w-page-content h3 {
	margin-top: 36px;
	margin-bottom: 12px;
}

.m4w-page-content ul,
.m4w-page-content ol {
	padding-left: 1.25em;
}

.m4w-page-content li {
	margin-bottom: 12px;
}

.m4w-page-content .wp-block-separator {
	margin-top: 68px;
	margin-bottom: 68px;
	border-color: var(--m4w-border);
}

.m4w-page-content .wp-block-image img {
	background: transparent;
	box-shadow: none;
}

.m4w-page-content .m4w-campaign-photo img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: center 40%;
	border: 8px solid var(--m4w-white);
	box-shadow: var(--m4w-shadow);
}

.m4w-page-content .m4w-info-card h3,
.m4w-page-content .m4w-priority-card h3 {
	margin-top: 0;
}

.m4w-archive {
	padding-top: 84px;
	padding-bottom: 104px;
}

.m4w-article-hero {
	background: var(--m4w-navy);
	color: var(--m4w-white);
}

.m4w-article-hero__inner {
	max-width: 940px;
	padding-top: 84px;
	padding-bottom: 84px;
}

.m4w-article-hero h1 {
	margin-bottom: 0;
	color: var(--m4w-white);
	font-size: clamp(3rem, 6vw, 5.5rem);
}

.m4w-article-meta {
	margin-bottom: 16px;
	color: var(--m4w-yellow);
	font-size: 0.82rem;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.m4w-article {
	max-width: 960px;
	padding-top: 64px;
	padding-bottom: 96px;
}

.m4w-article__featured {
	margin: 0 0 46px;
}

.m4w-article__featured img {
	width: 100%;
	box-shadow: var(--m4w-shadow);
}

.m4w-article__content {
	font-size: 1.06rem;
}

.m4w-article__content h2 {
	margin-top: 58px;
}

.m4w-post-navigation {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	padding-top: 32px;
	margin-top: 64px;
	border-top: 1px solid var(--m4w-border);
	font-weight: 800;
}

.m4w-post-navigation div:last-child {
	text-align: right;
}

.m4w-not-found {
	min-height: 62vh;
	padding: 100px 0;
	text-align: center;
}

.m4w-not-found__code {
	margin-bottom: 12px;
	color: var(--m4w-yellow-deep);
	font-family: var(--m4w-display);
	font-size: 7rem;
	font-weight: 950;
	line-height: 1;
}

.m4w-not-found h1 {
	margin-bottom: 20px;
}

.m4w-not-found p:not(.m4w-not-found__code) {
	margin-bottom: 30px;
	color: var(--m4w-muted);
}

.m4w-footer-cta {
	position: relative;
	overflow: hidden;
	background: var(--m4w-sky);
}

.m4w-footer-cta::after {
	position: absolute;
	top: 50%;
	right: -72px;
	width: 250px;
	height: 250px;
	content: "";
	transform: translateY(-50%);
	background: transparent;
	border: 38px solid rgba(11, 45, 117, 0.13);
	border-radius: 50%;
	box-shadow: 0 0 0 22px rgba(11, 45, 117, 0.055);
}

.m4w-footer-cta__inner {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 190px;
	gap: 48px;
	padding-top: 42px;
	padding-bottom: 42px;
}

.m4w-footer-cta h2 {
	margin-bottom: 10px;
	font-size: clamp(2.1rem, 4vw, 3.6rem);
}

.m4w-footer-cta p {
	margin-bottom: 0;
	color: var(--m4w-muted);
}

.m4w-site-footer {
	position: relative;
	overflow: hidden;
	background: var(--m4w-navy);
	color: rgba(255, 255, 255, 0.76);
}

.m4w-site-footer::after {
	position: absolute;
	right: -130px;
	bottom: -160px;
	width: 360px;
	height: 270px;
	content: "";
	transform: rotate(-12deg);
	background: var(--m4w-yellow);
}

.m4w-site-footer__grid {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 1.4fr 0.8fr 0.8fr;
	gap: 80px;
	padding-top: 72px;
	padding-bottom: 56px;
}

.m4w-wordmark--footer {
	color: var(--m4w-white);
}

.m4w-wordmark--footer .m4w-wordmark__ward {
	color: var(--m4w-yellow);
}

.m4w-site-footer__authorization {
	max-width: 440px;
	margin-top: 24px;
	margin-bottom: 0;
	font-size: 0.78rem;
}

.m4w-footer-heading {
	margin-bottom: 20px;
	color: var(--m4w-white);
	font-family: var(--m4w-body);
	font-size: 0.78rem;
	font-weight: 900;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.m4w-footer-menu,
.m4w-contact-list,
.m4w-site-footer .m4w-nav-list {
	display: block;
	padding: 0;
	margin: 0;
	list-style: none;
}

.m4w-footer-menu li,
.m4w-contact-list li,
.m4w-site-footer .m4w-nav-list li {
	margin-bottom: 10px;
}

.m4w-footer-menu a,
.m4w-contact-list a,
.m4w-site-footer .m4w-nav-list a {
	display: inline;
	padding: 0;
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.9rem;
	font-weight: 650;
	text-decoration: none;
}

.m4w-footer-menu a:hover,
.m4w-contact-list a:hover,
.m4w-site-footer .m4w-nav-list a:hover {
	color: var(--m4w-yellow);
}

.m4w-site-footer .m4w-nav-list a::after {
	display: none;
}

.m4w-site-footer__bottom {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 20px;
	padding-bottom: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.76rem;
}

.m4w-site-footer__bottom p {
	margin: 0;
}

.m4w-site-footer__bottom a {
	color: rgba(255, 255, 255, 0.82);
}

/* Campaign plugin form */
.m4w-form {
	padding: clamp(26px, 4vw, 44px);
	background: var(--m4w-light);
	border: 1px solid var(--m4w-border);
	box-shadow: var(--m4w-shadow-soft);
}

/* Keep legacy starter content with invalid percentage values usable. */
@media (min-width: 782px) {
	.m4w-content-split > .wp-block-column:first-child {
		flex-basis: 38% !important;
	}

	.m4w-content-split > .wp-block-column:last-child {
		flex-basis: 62% !important;
		min-width: 0;
	}
}

.m4w-form__notice {
	padding: 16px 18px;
	margin-bottom: 24px;
	border-left: 5px solid var(--m4w-blue);
	background: #edf4ff;
	color: var(--m4w-navy);
	font-weight: 700;
}

.m4w-form__notice--success {
	border-color: #16734a;
	background: #edf9f3;
	color: #105738;
}

.m4w-form__notice--error {
	border-color: var(--m4w-red);
	background: #fff2f1;
	color: #7e241f;
}

.m4w-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 22px;
}

.m4w-form__field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.m4w-form__field--full {
	grid-column: 1 / -1;
}

.m4w-form label,
.m4w-form legend {
	color: var(--m4w-navy);
	font-size: 0.82rem;
	font-weight: 850;
	letter-spacing: 0.02em;
}

.m4w-form input[type="text"],
.m4w-form input[type="email"],
.m4w-form input[type="tel"],
.m4w-form input[type="url"],
.m4w-form textarea,
.m4w-form select {
	width: 100%;
	min-height: 50px;
	padding: 12px 14px;
	background: var(--m4w-white);
	border: 1px solid #b8c3d7;
	border-radius: 3px;
	color: var(--m4w-ink);
}

.m4w-form textarea {
	min-height: 150px;
	resize: vertical;
}

.m4w-form input:focus,
.m4w-form textarea:focus,
.m4w-form select:focus {
	border-color: var(--m4w-blue);
	outline: 3px solid rgba(22, 68, 150, 0.14);
}

.m4w-form fieldset {
	padding: 0;
	margin: 0;
	border: 0;
}

.m4w-form__checks {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 18px;
	margin-top: 10px;
}

.m4w-form__check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--m4w-ink);
	font-size: 0.92rem;
}

.m4w-form__check input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-top: 3px;
	accent-color: var(--m4w-blue);
}

.m4w-form__consent {
	margin-top: 4px;
	color: var(--m4w-muted);
	font-size: 0.83rem;
}

.m4w-form__actions {
	margin-top: 24px;
}

.m4w-form__honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

/* WordPress defaults */
.wp-block-image {
	margin-top: 0;
	margin-bottom: 1.5rem;
}

.wp-block-columns {
	margin-bottom: 1.5rem;
}

.wp-block-quote {
	padding-left: 24px;
	border-left: 5px solid var(--m4w-yellow);
}

.wp-block-table table {
	width: 100%;
	border-collapse: collapse;
}

.wp-block-table th,
.wp-block-table td {
	padding: 12px;
	border: 1px solid var(--m4w-border);
}

.navigation.pagination {
	margin-top: 50px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.page-numbers {
	display: grid;
	min-width: 42px;
	height: 42px;
	padding: 0 10px;
	place-items: center;
	background: var(--m4w-light);
	color: var(--m4w-navy);
	font-weight: 800;
	text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover {
	background: var(--m4w-navy);
	color: var(--m4w-white);
}

@media (max-width: 1080px) {
	.m4w-nav-list {
		gap: 18px;
	}

	.m4w-primary-nav {
		gap: 18px;
	}

	.m4w-hero__grid {
		grid-template-columns: minmax(0, 1fr) 360px;
		gap: 30px;
	}

	.m4w-priority-grid,
	.m4w-updates-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	body {
		font-size: 16px;
	}

	.m4w-site-header__inner {
		min-height: 72px;
	}

	.m4w-menu-toggle {
		display: block;
	}

	.m4w-primary-nav {
		position: absolute;
		z-index: 999;
		top: 100%;
		right: 0;
		bottom: auto;
		left: 0;
		display: none;
		align-items: stretch;
		flex-direction: column;
		height: calc(100dvh - 72px);
		gap: 26px;
		padding: 30px 28px 42px;
		overflow-y: auto;
		background: var(--m4w-white);
		box-shadow: 0 24px 45px rgba(7, 30, 87, 0.18);
	}

	.m4w-primary-nav.is-open {
		display: flex;
	}

	.m4w-nav-list {
		display: block;
	}

	.m4w-nav-list li {
		border-bottom: 1px solid var(--m4w-border);
	}

	.m4w-nav-list a {
		padding: 15px 0;
		font-size: 1.05rem;
	}

	.m4w-primary-nav .m4w-button {
		align-self: stretch;
	}

	.m4w-hero__grid {
		grid-template-columns: 1fr;
		align-items: center;
		min-height: auto;
		gap: 0;
	}

	.m4w-hero__content {
		padding: 70px 0 30px;
	}

	.m4w-hero h1 {
		font-size: clamp(4rem, 13vw, 6rem);
	}

	.m4w-hero__media {
		width: min(100%, 460px);
		margin: 0 auto;
		padding-top: 10px;
	}

	.m4w-hero::before {
		right: -48%;
		bottom: -5%;
		width: 130%;
		height: 47%;
		transform: rotate(-8deg);
		clip-path: polygon(45% 0, 100% 0, 100% 100%, 0 100%);
	}

	.m4w-card-columns,
	.m4w-split,
	.m4w-content-split,
	.m4w-statement-band .wp-block-columns,
	.m4w-join-band .wp-block-columns {
		flex-wrap: wrap !important;
	}

	.m4w-card-columns > .wp-block-column,
	.m4w-split > .wp-block-column,
	.m4w-content-split > .wp-block-column,
	.m4w-statement-band .wp-block-column,
	.m4w-join-band .wp-block-column {
		flex-basis: 100% !important;
	}

	.m4w-statement-band .wp-block-buttons,
	.m4w-join-band .wp-block-buttons {
		justify-content: flex-start !important;
	}

	.m4w-page-hero__inner {
		grid-template-columns: 1fr 210px;
		min-height: 260px;
	}

	.m4w-page-hero__inner > div {
		padding: 48px 0;
	}

	.m4w-footer-cta__inner {
		align-items: flex-start;
		flex-direction: column;
		gap: 26px;
	}

	body.page-id-19 .m4w-page-content > .m4w-lead {
		text-align: right;
		white-space: normal;
	}

	.m4w-site-footer__grid {
		grid-template-columns: 1fr 1fr;
		gap: 50px;
	}

	.m4w-site-footer__grid > div:first-child {
		grid-column: 1 / -1;
	}
}

@media (max-width: 640px) {
	.m4w-container,
	body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
		width: min(calc(100% - 28px), var(--m4w-container));
	}

	.m4w-announcement__inner {
		min-height: 40px;
	}

	.m4w-announcement p {
		max-width: 68%;
		font-size: 0.68rem;
		line-height: 1.25;
	}

	.m4w-announcement a {
		font-size: 0.67rem;
		white-space: nowrap;
	}

	.m4w-wordmark__name {
		max-width: 160px;
		font-size: 1.35rem;
	}

	.m4w-wordmark__ward {
		font-size: 0.55rem;
	}

	.m4w-primary-nav {
		top: calc(40px + 72px);
	}

	.admin-bar .m4w-site-header {
		top: 46px;
	}

	.m4w-hero__content {
		padding-top: 56px;
	}

	.m4w-hero h1 {
		font-size: clamp(3.45rem, 16vw, 5.1rem);
	}

	.m4w-hero__title {
		font-size: 1.6rem;
	}

	.m4w-hero__priorities {
		display: grid;
		gap: 10px;
	}

	.m4w-hero__image-frame {
		width: min(86%, 360px);
	}

	.m4w-section {
		padding-top: 72px;
		padding-bottom: 72px;
	}

	.m4w-section-heading {
		margin-bottom: 34px;
		text-align: left;
	}

	.m4w-section-heading--row {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}

	.m4w-priority-grid,
	.m4w-updates-grid {
		grid-template-columns: 1fr;
	}

	.m4w-priority-card,
	.m4w-info-card {
		padding-right: 22px;
		padding-left: 22px;
	}

	.m4w-page-hero__inner {
		grid-template-columns: 1fr;
		min-height: 245px;
	}

	.m4w-page-hero::after {
		right: -8%;
		bottom: -12%;
		width: 115%;
		height: 30%;
		transform: rotate(-3deg);
	}

	.m4w-page-hero__inner > div {
		padding: 50px 0 24px;
	}

	.m4w-page-hero img {
		display: block;
		width: min(82vw, 290px);
		height: 230px;
		margin: 0 auto;
		object-fit: cover;
		border-width: 5px;
	}

	.m4w-page-content {
		padding-top: 60px;
		padding-bottom: 78px;
	}

	.m4w-page-content h2 {
		margin-top: 48px;
	}

	.m4w-form__grid,
	.m4w-form__checks {
		grid-template-columns: 1fr;
	}

	.m4w-form {
		padding: 24px 18px;
	}

	.m4w-footer-cta__inner {
		min-height: auto;
		padding-top: 56px;
		padding-bottom: 56px;
	}

	.m4w-site-footer__grid {
		grid-template-columns: 1fr;
		gap: 38px;
		padding-top: 58px;
	}

	.m4w-site-footer__grid > div:first-child {
		grid-column: auto;
	}

	.m4w-site-footer__bottom {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}

	.m4w-post-navigation {
		grid-template-columns: 1fr;
	}

	.m4w-post-navigation div:last-child {
		text-align: left;
	}
}

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

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

/* M4W donation CTA layout */
.m4w-announcement__links {
	display: inline-flex;
	align-items: center;
	gap: 20px;
	flex: 0 0 auto;
}

.m4w-footer-cta__actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: stretch;
	width: min(100%, 430px);
}

.m4w-footer-cta__actions .m4w-button {
	justify-content: center;
	width: 100%;
}

@media (max-width: 640px) {
	.m4w-announcement__inner {
		gap: 10px;
	}

	.m4w-announcement p {
		max-width: 50%;
	}

	.m4w-announcement__links {
		gap: 10px;
	}

	.m4w-announcement__links a {
		gap: 4px;
		font-size: 0.62rem;
	}

	.m4w-footer-cta__actions {
		grid-template-columns: 1fr;
		width: 100%;
	}
}
