/* ==========================================================================
   MPMA Manifesto template
   Colours and type follow the MPMA theme: Montserrat, MPMA blue #579ed2,
   navy #025070, green #8cb395 and the orange button style #e47d54 / #c56239.
   ========================================================================== */

.mpma-manifesto {
	--mpma-navy: #025070;
	--mpma-blue: #579ed2;
	--mpma-green: #8cb395;
	--mpma-orange: #e47d54;
	--mpma-orange-dark: #c56239;
	--mpma-grey: #666666;
	--mpma-ease: cubic-bezier(.4, 0, .2, 1);

	display: flow-root;
	clear: both;
	width: 100%;
	font-family: 'Montserrat', sans-serif;
	-webkit-font-smoothing: antialiased;
}

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

.mpma-wrap {
	width: min(1130px, calc(100% - 40px));
	margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Section tones.
   Without the scroll blend, each section uses its own colour. With the blend
   switched on (and JavaScript running), the colour set lives on .mpma-body and
   changes as each section reaches the middle of the screen.
   -------------------------------------------------------------------------- */

.mpma-manifesto:not(.is-fading) .mpma-bg--white,
.mpma-manifesto.is-fading .mpma-body[data-tone="white"] {
	--mpma-bg: #ffffff;
	--mpma-ink: #666666;
	--mpma-head: #025070;
	--mpma-accent: #8cb395;
	--mpma-num: #d06a40;
	--mpma-rule: rgba(2, 80, 112, .14);
	--mpma-link: #074793;
}

.mpma-manifesto:not(.is-fading) .mpma-bg--sky,
.mpma-manifesto.is-fading .mpma-body[data-tone="sky"] {
	--mpma-bg: #eaf4fb;
	--mpma-ink: #5b6870;
	--mpma-head: #025070;
	--mpma-accent: #579ed2;
	--mpma-num: #d06a40;
	--mpma-rule: rgba(2, 80, 112, .16);
	--mpma-link: #074793;
}

.mpma-manifesto:not(.is-fading) .mpma-bg--mint,
.mpma-manifesto.is-fading .mpma-body[data-tone="mint"] {
	--mpma-bg: #edf4ee;
	--mpma-ink: #5d6a62;
	--mpma-head: #025070;
	--mpma-accent: #8cb395;
	--mpma-num: #d06a40;
	--mpma-rule: rgba(2, 80, 112, .14);
	--mpma-link: #074793;
}

.mpma-manifesto:not(.is-fading) .mpma-bg--blue,
.mpma-manifesto.is-fading .mpma-body[data-tone="blue"] {
	--mpma-bg: #45a0d9;
	--mpma-ink: #ffffff;
	--mpma-head: #ffffff;
	--mpma-accent: #025070;
	--mpma-num: #025070;
	--mpma-rule: rgba(255, 255, 255, .4);
	--mpma-link: #ffffff;
}

.mpma-manifesto:not(.is-fading) .mpma-bg--orange,
.mpma-manifesto.is-fading .mpma-body[data-tone="orange"] {
	--mpma-bg: #e47d54;
	--mpma-ink: #ffffff;
	--mpma-head: #ffffff;
	--mpma-accent: #025070;
	--mpma-num: #025070;
	--mpma-rule: rgba(255, 255, 255, .4);
	--mpma-link: #ffffff;
}

/* White text on the brighter brand colours: set it a little larger and
   heavier so body copy stays comfortable to read. */
.mpma-manifesto:not(.is-fading) .mpma-bg--blue .mpma-copy,
.mpma-manifesto:not(.is-fading) .mpma-bg--orange .mpma-copy,
.mpma-manifesto.is-fading .mpma-body[data-tone="blue"] .mpma-copy,
.mpma-manifesto.is-fading .mpma-body[data-tone="orange"] .mpma-copy {
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.7;
}

/* The download panel is always white, so its text keeps the normal style. */
.mpma-manifesto .mpma-body .mpma-sec .mpma-download__panel .mpma-copy {
	font-size: 1.0625rem;
	font-weight: 400;
	line-height: 1.75;
}

.mpma-manifesto:not(.is-fading) .mpma-bg--navy,
.mpma-manifesto.is-fading .mpma-body[data-tone="navy"] {
	--mpma-bg: #025070;
	--mpma-ink: rgba(255, 255, 255, .86);
	--mpma-head: #ffffff;
	--mpma-accent: #8cb395;
	--mpma-num: #e47d54;
	--mpma-rule: rgba(255, 255, 255, .18);
	--mpma-link: #ffffff;
}

.mpma-sec {
	position: relative;
	padding: clamp(56px, 8vw, 112px) 0;
	background-color: var(--mpma-bg);
	color: var(--mpma-ink);
}

.mpma-manifesto.is-fading .mpma-body {
	background-color: var(--mpma-bg);
	color: var(--mpma-ink);
	transition: background-color .7s var(--mpma-ease), color .7s var(--mpma-ease);
}

.mpma-manifesto.is-fading .mpma-sec {
	background-color: transparent;
	color: inherit;
}

/* Elements that take a tone colour directly fade with the background. */
.mpma-heading,
.mpma-heading::after,
.mpma-ask,
.mpma-ask__num,
.mpma-ask__text,
.mpma-figure,
.mpma-figure__value,
.mpma-statement__quote p,
.mpma-copy a {
	transition-property: color, background-color, border-color, opacity, transform;
	transition-duration: .7s;
	transition-timing-function: var(--mpma-ease);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.mpma-hero {
	--mpma-tint: rgba(2, 80, 112, .82);
	--mpma-tint-2: rgba(2, 80, 112, .92);

	display: grid;
	place-items: center;
	min-height: clamp(340px, 44vw, 520px);
	margin-top: -20px;
	padding: clamp(64px, 9vw, 120px) 0;
	background-color: #025070;
	color: #fff;
	text-align: center;
}

.mpma-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.mpma-hero.has-image::before,
.mpma-hero.has-image::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
}

.mpma-hero.has-image::before {
	background: var(--mpma-hero-img) center / cover no-repeat;
}

.mpma-hero.has-image.is-soft::before {
	inset: -24px;
	filter: blur(10px);
}

.mpma-hero.has-image::after {
	background: linear-gradient(180deg, var(--mpma-tint), var(--mpma-tint-2));
}

.mpma-hero--blue {
	--mpma-tint: rgba(69, 160, 217, .78);
	--mpma-tint-2: rgba(2, 80, 112, .85);
	background-color: #579ed2;
}

.mpma-hero--dark {
	--mpma-tint: rgba(31, 31, 31, .45);
	--mpma-tint-2: rgba(31, 31, 31, .65);
	background-color: #2a2a2a;
}

.mpma-hero__title {
	margin: 0;
	color: #fff;
	font-size: clamp(2rem, 4.6vw, 3.4rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: 4px;
	text-transform: uppercase;
}

.mpma-hero__title::after {
	content: '';
	display: block;
	width: 72px;
	height: 6px;
	margin: .5em auto 0;
	background: #8cb395;
}

.mpma-hero__sub {
	max-width: none;
	text-wrap: balance;
	margin: 1.1em auto 0;
	color: #fff;
	font-size: clamp(1.25rem, 2.6vw, 2rem);
	font-weight: 600;
	line-height: 1.3;
}

/* Breadcrumbs */
.mpma-crumbs {
	padding: 10px 0 0;
	background: #fff;
	font-size: .85rem;
}

/* --------------------------------------------------------------------------
   Shared type
   -------------------------------------------------------------------------- */

.mpma-heading {
	margin: 0 0 1.2em;
	color: var(--mpma-head);
	font-size: clamp(1.6rem, 2.7vw, 2.25rem);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: 0;
	text-transform: none;
}

.mpma-heading::after {
	content: '';
	display: block;
	width: 56px;
	height: 5px;
	margin-top: .55em;
	background: var(--mpma-accent);
}

.mpma-copy {
	max-width: 68ch;
	font-size: 1.0625rem;
	line-height: 1.75;
}

.mpma-copy p,
.mpma-copy ul,
.mpma-copy ol {
	margin: 0 0 1.25em;
}

.mpma-copy > :last-child {
	margin-bottom: 0;
}

.mpma-copy h3,
.mpma-copy h4 {
	margin: 1.6em 0 .6em;
	color: var(--mpma-head);
	font-weight: 600;
	line-height: 1.35;
}

.mpma-copy a {
	color: var(--mpma-link);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.mpma-copy strong {
	color: var(--mpma-head);
	font-weight: 600;
}

.mpma-manifesto a:focus-visible,
.mpma-manifesto button:focus-visible {
	outline: 3px solid var(--mpma-orange);
	outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Text section
   -------------------------------------------------------------------------- */

.mpma-text--split .mpma-text__inner {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	gap: 32px clamp(32px, 6vw, 88px);
	align-items: start;
}

.mpma-text--split .mpma-heading {
	margin-bottom: 0;
}

.mpma-text.has-lead .mpma-copy > p:first-child {
	max-width: 36em;
	color: var(--mpma-head);
	font-size: clamp(1.25rem, 2.1vw, 1.55rem);
	font-weight: 400;
	line-height: 1.55;
	transition: color .7s var(--mpma-ease);
}

.mpma-text--stacked .mpma-copy {
	max-width: 52rem;
}

/* --------------------------------------------------------------------------
   Numbered asks
   -------------------------------------------------------------------------- */

.mpma-asks__inner {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	gap: 32px clamp(32px, 6vw, 88px);
	align-items: start;
}

.mpma-asks__head {
	position: sticky;
	top: calc(32px + var(--wp-admin--admin-bar--height, 0px));
}

.mpma-asks__head .mpma-heading {
	margin-bottom: 0;
}

.mpma-asks__intro {
	margin: 1.4em 0 0;
	font-size: 1.0625rem;
	line-height: 1.7;
}

.mpma-asks__list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid var(--mpma-rule);
}

.mpma-ask {
	display: grid;
	grid-template-columns: 4.6rem minmax(0, 1fr);
	gap: 1.25rem;
	align-items: start;
	margin: 0;
	padding: 1.4rem 0;
	border-top: 1px solid var(--mpma-rule);
	list-style: none;
}

.mpma-ask__num {
	color: var(--mpma-num);
	font-size: 2.75rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.02em;
	font-variant-numeric: tabular-nums;
}

.mpma-ask__text {
	max-width: 54ch;
	padding-top: .45rem;
	color: var(--mpma-head);
	font-size: clamp(1.05rem, 1.5vw, 1.2rem);
	font-weight: 600;
	line-height: 1.45;
}

.mpma-ask__text a {
	color: inherit;
}

/* Reveal: added by manifesto.js once the list scrolls into view. */
.mpma-asks__list.will-reveal .mpma-ask {
	opacity: 0;
	transform: translateY(14px);
}

.mpma-asks__list.will-reveal.is-revealed .mpma-ask {
	opacity: 1;
	transform: none;
	transition-delay: 0s, 0s, 0s, calc(var(--i, 0) * 70ms), calc(var(--i, 0) * 70ms);
	transition-duration: .7s, .7s, .7s, .55s, .55s;
}

/* --------------------------------------------------------------------------
   Image and text
   -------------------------------------------------------------------------- */

.mpma-media__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 40px clamp(32px, 6vw, 80px);
	align-items: center;
}

.mpma-media--left .mpma-media__figure {
	order: -1;
}

.mpma-media__figure {
	margin: 0;
}

.mpma-media__figure img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
}

/* --------------------------------------------------------------------------
   Key figures
   -------------------------------------------------------------------------- */

.mpma-figures__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 32px;
	margin: 0;
}

.mpma-figure {
	padding-top: 1.1rem;
	border-top: 5px solid var(--mpma-accent);
}

.mpma-figure__value {
	color: var(--mpma-head);
	font-size: clamp(2.2rem, 4vw, 3rem);
	font-weight: 800;
	line-height: 1.1;
}

.mpma-figure__label {
	margin: .5rem 0 0;
	font-size: 1rem;
	line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Statement
   -------------------------------------------------------------------------- */

.mpma-statement__quote {
	max-width: 920px;
	margin: 0 auto;
	padding: 0;
	border: 0;
	background: none;
	text-align: center;
	quotes: none;
}

.mpma-statement__quote::before,
.mpma-statement__quote::after {
	content: none;
}

.mpma-statement__quote p {
	margin: 0;
	color: var(--mpma-head);
	font-family: 'Montserrat', sans-serif;
	font-size: clamp(1.4rem, 2.8vw, 2.1rem);
	font-style: normal;
	font-weight: 600;
	line-height: 1.4;
}

.mpma-statement__quote footer {
	margin-top: 1.2rem;
	font-size: 1rem;
}

/* --------------------------------------------------------------------------
   Download
   -------------------------------------------------------------------------- */

.mpma-download__panel {
	--mpma-head: #025070;
	--mpma-ink: #666666;
	--mpma-link: #074793;
	--mpma-accent: #8cb395;

	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 32px clamp(32px, 5vw, 64px);
	align-items: center;
	padding: clamp(28px, 4.5vw, 56px);
	border-radius: 10px;
	background: #fff;
	color: var(--mpma-ink);
	box-shadow: 0 1px 0 rgba(2, 80, 112, .06), 0 18px 40px -28px rgba(2, 80, 112, .45);
}

.mpma-download.has-cover .mpma-download__panel {
	grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
}

.mpma-download__cover {
	margin: 0;
}

.mpma-download__cover img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px;
	box-shadow: 2px 3px 5px 0 rgba(0, 0, 0, .06), 0 22px 40px -18px rgba(2, 80, 112, .5);
}

.mpma-download .mpma-heading {
	margin-bottom: .9em;
}

.mpma-download__file {
	margin-top: 1.75rem;
}

/* WordPress Download Manager output.
   Scoped to this section so the theme’s general .w3eden rules are untouched. */
.mpma-download__file .w3eden {
	font-family: 'Montserrat', sans-serif;
}

.mpma-download__file .w3eden .card,
.mpma-download__file .link-template-default,
.mpma-download__file .wpdm-link-template {
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid rgba(2, 80, 112, .14) !important;
	border-radius: 8px !important;
	background: #f4f9fc !important;
	box-shadow: none !important;
}

.mpma-download__file .w3eden .card-body {
	padding: 16px 18px !important;
}

.mpma-download__file .w3eden .media {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 16px;
	align-items: center;
}

.mpma-download__file .w3eden .media > * {
	margin: 0 !important;
}

.mpma-download__file .w3eden .media-body {
	flex: 1 1 180px;
	min-width: 0;
}

.mpma-download__file .wpdm_icon,
.mpma-download__file .img-48 img {
	display: block;
	width: 42px !important;
	max-width: 42px !important;
	height: auto !important;
}

.mpma-download__file .package-title {
	margin: 0 0 2px !important;
	color: #025070 !important;
	font-size: 1rem !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
}

.mpma-download__file .package-title a {
	color: inherit !important;
	text-decoration: none !important;
}

.mpma-download__file .text-muted,
.mpma-download__file .text-small {
	color: #767676 !important;
	font-size: .8rem !important;
}

.mpma-download__file .wpdm-download-link,
.mpma-download__file .w3eden .btn,
.mpma-download__file .w3eden .btn-primary {
	display: inline-block;
	float: none !important;
	margin: 0 !important;
	padding: 12px 28px 10px !important;
	border: 0 !important;
	border-bottom: 4px solid #c56239 !important;
	border-radius: 5px !important;
	background: #e47d54 !important;
	box-shadow: none !important;
	color: #fff !important;
	font-family: 'Montserrat', sans-serif !important;
	font-size: 1rem !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	text-decoration: none !important;
	text-transform: none !important;
	cursor: pointer;
	transition: background-color .2s ease, transform .2s ease;
}

.mpma-download__file .wpdm-download-link:hover,
.mpma-download__file .w3eden .btn:hover {
	background: #d96d43 !important;
	transform: translateY(-1px);
}

.mpma-download__file .wpdm-download-link:active,
.mpma-download__file .w3eden .btn:active {
	transform: translateY(1px);
}

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

@media (min-width: 901px) {
	/* Let the cover rise slightly above the panel. */
	.mpma-download.has-cover {
		padding-top: clamp(96px, 11vw, 150px);
	}

	.mpma-download.has-cover .mpma-download__panel {
		align-items: end;
	}

	.mpma-download.has-cover .mpma-download__cover {
		margin-top: -96px;
		align-self: start;
	}
}

@media (max-width: 900px) {
	.mpma-text--split .mpma-text__inner,
	.mpma-asks__inner,
	.mpma-media__inner,
	.mpma-download.has-cover .mpma-download__panel {
		grid-template-columns: minmax(0, 1fr);
	}

	.mpma-asks__head {
		position: static;
	}

	.mpma-media--left .mpma-media__figure {
		order: 0;
	}

	.mpma-download__cover {
		max-width: 220px;
	}
}

@media (max-width: 600px) {
	.mpma-hero__title {
		letter-spacing: 2px;
	}

	.mpma-ask {
		grid-template-columns: 3.2rem minmax(0, 1fr);
		gap: .9rem;
		padding: 1.15rem 0;
	}

	.mpma-ask__num {
		font-size: 2rem;
	}

	.mpma-ask__text {
		padding-top: .2rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mpma-manifesto *,
	.mpma-manifesto.is-fading .mpma-body {
		transition: none !important;
	}

	.mpma-asks__list.will-reveal .mpma-ask {
		opacity: 1;
		transform: none;
	}
}

/* Keep keyboard focus visible on the orange background. */
.mpma-bg--orange a:focus-visible,
.mpma-body[data-tone="orange"] a:focus-visible {
	outline-color: #025070;
}
