/* ==========================================================================
   MultiASM theme — custom styles layered on top of theme.json presets
   ========================================================================== */

:root {
	--ma-header-h: 72px;
}

html {
	scroll-behavior: smooth;
}

body {
	scroll-padding-top: var(--ma-header-h);
}

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

* {
	box-sizing: border-box;
}

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

.ma-site-header {
	position: sticky;
	top: var(--ma-admin-bar-offset, 0px);
	z-index: 100;
	min-height: var(--ma-header-h);
	transition: box-shadow 0.25s ease, background-color 0.25s ease;
	border-bottom: 1px solid transparent;
}

.ma-site-header.is-scrolled {
	box-shadow: 0 1px 0 var(--wp--preset--color--border), 0 8px 24px -16px rgba(19, 20, 26, 0.25);
}

.ma-header-eu {
	align-items: center;
	gap: 0.9rem !important;
}

.ma-brand-logo {
	margin: 0 !important;
	display: flex;
	align-items: center;
	line-height: 0;
}

.ma-brand-logo img {
	display: block;
	height: 69px;
	width: auto;
}

.ma-brand-eu {
	margin: 0 !important;
	display: block;
	opacity: 0.9;
}

.ma-brand-eu img {
	display: block;
	height: 54px;
	width: auto;
}

.ma-pill {
	margin: 0;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-deep);
	background: var(--wp--preset--color--accent-tint);
	padding: 0.25rem 0.6rem;
	border-radius: 999px;
	white-space: nowrap;
}

.ma-nav {
	font-size: 0.92rem;
}

.ma-nav .wp-block-navigation-item a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	font-weight: 600;
	padding: 0.5rem 0.2rem;
	position: relative;
}

.ma-nav .wp-block-navigation-item a::after {
	content: "";
	position: absolute;
	left: 0.2rem;
	right: 0.2rem;
	bottom: 0.15rem;
	height: 2px;
	background: var(--wp--preset--color--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.2s ease;
}

.ma-nav .wp-block-navigation-item a:hover::after,
.ma-nav .wp-block-navigation-item.is-active a::after {
	transform: scaleX(1);
}

/* -------------------------------------------------------------------- */
/* Persistent section rail (large screens only)                          */
/* -------------------------------------------------------------------- */

.ma-rail {
	display: none;
	position: fixed;
	top: 50%;
	right: 1.75rem;
	transform: translateY(-50%);
	z-index: 90;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.6rem;
}

.ma-rail-item {
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--wp--preset--color--muted);
	text-decoration: none;
	position: relative;
	padding-right: 1.1rem;
	transition: color 0.2s ease;
}

.ma-rail-item::after {
	content: "";
	position: absolute;
	right: 0;
	top: 50%;
	width: 5px;
	height: 5px;
	border-radius: 999px;
	background: var(--wp--preset--color--border);
	transform: translateY(-50%);
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.ma-rail-item:hover {
	color: var(--wp--preset--color--contrast);
}

.ma-rail-item.is-active {
	color: var(--wp--preset--color--contrast);
	font-weight: 700;
}

.ma-rail-item.is-active::after {
	background: var(--wp--preset--color--accent);
	transform: translateY(-50%) scale(1.5);
}

@media (min-width: 1440px) {
	.ma-rail {
		display: flex;
	}
}

/* -------------------------------------------------------------------- */
/* Section scaffolding                                                   */
/* -------------------------------------------------------------------- */

.ma-section {
	padding-left: var(--wp--preset--spacing--40);
	padding-right: var(--wp--preset--spacing--40);
}

.ma-section-head {
	max-width: 46rem;
	margin-bottom: var(--wp--preset--spacing--40) !important;
}

.ma-kicker-row {
	align-items: baseline !important;
	margin-bottom: 0.9rem !important;
	padding-bottom: 0.9rem;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.ma-section-kicker {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
	margin: 0 !important;
}

.ma-section-meta {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	margin: 0 !important;
	white-space: nowrap;
}

.ma-section-lead {
	color: var(--wp--preset--color--muted);
	margin-top: 0.75rem !important;
}

.ma-accent-text {
	color: var(--wp--preset--color--accent);
}

/* -------------------------------------------------------------------- */
/* Scroll-reveal                                                         */
/* -------------------------------------------------------------------- */

/*
 * Hidden-until-revealed state only applies on real front-end loads
 * (see multiasm_reveal_ready() in functions.php). Inside the block/site
 * editor preview, which never runs site.js/GSAP, .ma-reveal content simply
 * stays visible. No CSS transition here on purpose: GSAP/ScrollTrigger in
 * site.js owns the actual animating (opacity, y, scale) via inline styles -
 * a CSS transition on the same properties would fight it.
 */
.js-reveal-ready .ma-reveal {
	opacity: 0;
	transform: translateY(22px);
}

@media (prefers-reduced-motion: reduce) {
	.js-reveal-ready .ma-reveal {
		opacity: 1;
		transform: none;
	}
}

/* -------------------------------------------------------------------- */
/* Scroll progress bar                                                   */
/* -------------------------------------------------------------------- */

.ma-progress-bar {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: var(--wp--preset--color--accent);
	transform: scaleX(0);
	transform-origin: left center;
	z-index: 200;
}

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

.ma-hero {
	padding-top: var(--wp--preset--spacing--60);
	position: relative;
	overflow: hidden;
}

/*
 * Scrolling assembly listing, now confined to the two "monitor" icons
 * flanking the hero copy (see .ma-hero-monitor below) instead of washing
 * across the whole hero. Two identical copies of the same code sit
 * back-to-back in each .ma-code-track; the keyframe animation moves the
 * track up by exactly one copy's height (translateY -50%) on an infinite
 * loop, so the wrap is seamless. Scroll-linked speed/fade is layered on
 * top via initCodeBackground() in site.js.
 */
.ma-code-bg {
	overflow: hidden;
}

.ma-code-track {
	margin: 0;
	padding: 0;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.68rem;
	line-height: 1.55;
	white-space: pre;
	color: rgba(250, 249, 245, 0.7);
	animation: ma-code-scroll 38s linear infinite;
	will-change: transform;
}

.ma-code-op {
	color: #a4d54a;
	font-weight: 700;
}

.ma-code-label {
	color: rgba(250, 249, 245, 0.92);
	font-weight: 700;
}

.ma-code-comment {
	color: rgba(250, 249, 245, 0.45);
	font-style: italic;
}

@keyframes ma-code-scroll {
	from {
		transform: translateY(0);
	}
	to {
		transform: translateY(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ma-code-track {
		animation: none;
	}
}

.ma-hero-grid {
	position: relative;
	z-index: 1;
	min-height: calc(70vh - var(--ma-header-h));
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--40);
}

.ma-hero-copy {
	flex: 0 0 66%;
	max-width: 66%;
	flex-direction: column;
	align-items: flex-start !important;
}

/*
 * Decorative "monitor" icons flanking the hero copy, each with the
 * scrolling assembly listing clipped inside the screen area - a
 * contained, deliberate accent instead of the old full-bleed wash.
 */
.ma-hero-monitor {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.ma-hero-monitor-screen {
	position: relative;
	width: 100%;
	max-width: 320px;
	aspect-ratio: 3 / 4;
	border: 3px solid var(--wp--preset--color--border);
	border-radius: 14px;
	background: var(--wp--preset--color--contrast);
	padding: 0.85rem;
}

.ma-hero-monitor-screen .ma-code-track {
	position: absolute;
	inset: 0.85rem;
}

.ma-hero-monitor-neck {
	width: 30px;
	height: 22px;
	border-left: 3px solid var(--wp--preset--color--border);
	border-right: 3px solid var(--wp--preset--color--border);
	border-bottom: 3px solid var(--wp--preset--color--border);
	border-radius: 0 0 6px 6px;
	margin-top: -1px;
}

.ma-hero-monitor-base {
	width: 100px;
	height: 8px;
	background: var(--wp--preset--color--border);
	border-radius: 4px;
	margin-top: 0.4rem;
}

@media (max-width: 1100px) {
	.ma-hero-grid {
		min-height: 0;
	}

	.ma-hero-monitor {
		display: none;
	}

	.ma-hero-copy {
		flex: 1 1 100%;
		max-width: 100%;
	}
}

.ma-eyebrow {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.85rem;
	color: var(--wp--preset--color--muted);
	margin-bottom: 1.25rem !important;
}

.ma-hero-title {
	margin-bottom: 1.25rem !important;
}

.ma-hero-lead {
	color: var(--wp--preset--color--muted);
	max-width: 46rem;
	margin-bottom: 2rem !important;
}

.ma-hero-actions {
	margin-bottom: var(--wp--preset--spacing--50) !important;
	gap: 0.85rem !important;
}

.ma-btn-accent .wp-block-button__link {
	box-shadow: 0 10px 24px -10px rgba(86, 114, 29, 0.55);
}

.ma-hero-stats {
	display: grid !important;
	grid-template-columns: repeat(4, auto);
	gap: var(--wp--preset--spacing--40) !important;
	padding-top: var(--wp--preset--spacing--40);
	margin-top: var(--wp--preset--spacing--40) !important;
	border-top: 1px solid var(--wp--preset--color--border);
	width: 100%;
}

.ma-stat {
	display: flex !important;
	flex-direction: column !important;
	margin: 0 !important;
	gap: 0.15rem !important;
}

.ma-stat > * {
	margin: 0 !important;
}

@media (max-width: 1100px) {
	.ma-hero-stats {
		grid-template-columns: repeat(4, auto);
	}
}

@media (max-width: 560px) {
	.ma-hero-stats {
		grid-template-columns: repeat(2, 1fr);
	}
}

.ma-stat-num {
	font-size: 2rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0 !important;
}

.ma-stat-label {
	font-size: 0.82rem;
	color: var(--wp--preset--color--muted);
	margin: 0 !important;
}

/* -------------------------------------------------------------------- */
/* About / objectives tile grid                                          */
/* -------------------------------------------------------------------- */

.ma-tile-grid {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: var(--wp--preset--color--border);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 20px;
	overflow: hidden;
}

.ma-tile {
	display: flex !important;
	flex-direction: column !important;
	margin: 0 !important;
	background: var(--wp--preset--color--surface);
	padding: var(--wp--preset--spacing--40);
	align-items: flex-start !important;
	gap: 0.5rem !important;
	transition: background-color 0.25s ease;
}

.ma-tile > * {
	margin: 0 !important;
}

.ma-tile:hover {
	background: var(--wp--preset--color--accent-tint);
}

.ma-tile-num {
	font-family: var(--wp--preset--font-family--mono);
	font-weight: 700;
	font-size: 0.85rem;
	color: var(--wp--preset--color--accent);
	margin: 0 !important;
}

.ma-tile-title {
	margin: 0 !important;
	font-size: 1.15rem;
}

.ma-tile-desc {
	margin: 0 !important;
	color: var(--wp--preset--color--muted);
	font-size: 0.95rem;
}

/* -------------------------------------------------------------------- */
/* Results / cards grid                                                   */
/* -------------------------------------------------------------------- */

.ma-grid {
	display: grid !important;
	gap: var(--wp--preset--spacing--30);
}

.ma-grid-results {
	grid-template-columns: repeat(3, 1fr);
}

.ma-card {
	display: flex !important;
	flex-direction: column !important;
	margin: 0 !important;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 18px;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Let the audience-icon tooltip escape the card's rounded-corner clipping
   while it's actually showing, instead of being cut off mid-word. */
.ma-card:has(.ma-audience-item:hover),
.ma-card:has(.ma-audience-item:focus-visible) {
	overflow: visible;
}

.ma-card > * {
	margin: 0 !important;
}

.ma-card:hover {
	transform: translateY(-4px);
	border-color: var(--wp--preset--color--accent);
	box-shadow: 0 20px 40px -24px rgba(19, 20, 26, 0.35);
}

.ma-card-visual {
	display: flex !important;
	flex-direction: column !important;
	flex: 0 0 auto;
	justify-content: space-between;
	min-height: 128px;
	margin: 0 !important;
	padding: 1.1rem 1.25rem;
	background: linear-gradient(135deg, var(--wp--preset--color--accent-tint) 0%, var(--wp--preset--color--surface) 100%);
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.ma-card-visual > * {
	margin: 0 !important;
}

.ma-card-visual-top {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	margin: 0 !important;
}

.ma-card-visual-top > * {
	margin: 0 !important;
}

.ma-card-audience {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--wp--preset--color--accent-deep);
	opacity: 0.65;
}

.ma-audience-item {
	position: relative;
	display: inline-flex;
}

.ma-audience-item:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
	border-radius: 3px;
}

.ma-audience-icon {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ma-audience-item::after {
	content: attr(data-tip);
	position: absolute;
	bottom: 100%;
	left: 50%;
	z-index: 20;
	margin-bottom: 0.5rem;
	padding: 0.3rem 0.55rem;
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	font-family: inherit;
	font-size: 0.68rem;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
	border-radius: 6px;
	box-shadow: 0 6px 16px -6px rgba(19, 20, 26, 0.45);
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, -2px);
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.ma-audience-item:hover::after,
.ma-audience-item:focus-visible::after {
	opacity: 1;
	transform: translate(-50%, 0);
}

.ma-card-visual-bottom {
	display: flex !important;
	flex-direction: column !important;
	margin: 0 !important;
	gap: 0.1rem !important;
}

.ma-card-visual-bottom > * {
	margin: 0 !important;
}

.ma-card-visual-num {
	margin: 0 !important;
	font-size: 2.5rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--accent-deep);
}

.ma-card-tag {
	align-self: flex-end;
	margin: 0 !important;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
}

.ma-tag-available {
	color: #146c43;
	background: #e3f5ea;
}

.ma-tag-progress {
	color: #9a5b00;
	background: #fdf0db;
}

.ma-card-io {
	margin: 0 !important;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--wp--preset--color--muted);
}

.ma-card-body {
	display: flex !important;
	flex-direction: column !important;
	flex-grow: 1;
	align-items: stretch !important;
	gap: 0.65rem !important;
	padding: var(--wp--preset--spacing--30);
}

.ma-card-title {
	margin: 0 !important;
	font-size: 1.15rem;
}

.ma-card-desc {
	margin: 0 !important;
	color: var(--wp--preset--color--muted);
	font-size: 0.95rem;
	flex-grow: 1;
}

.ma-card-meta {
	margin: 0 !important;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.78rem;
	color: var(--wp--preset--color--muted);
}

.ma-card-actions {
	margin-top: 0.25rem !important;
}

.ma-btn-small .wp-block-button__link {
	font-size: 0.8rem;
	padding: 0.55rem 1.1rem;
}

.ma-card-links {
	margin-top: 0.25rem !important;
}

.ma-card-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	background: none;
	border: 2px solid var(--wp--preset--color--contrast);
	border-radius: 999px;
	margin: 0;
	padding: 0.55rem 1.1rem;
	font-family: inherit;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--wp--preset--color--contrast);
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.ma-card-toggle:hover {
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent);
}

.ma-card-toggle-arrow {
	display: inline-flex;
	transition: transform 0.2s ease;
}

.ma-card-toggle-arrow svg {
	width: 11px;
	height: 11px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ma-card-links.is-open .ma-card-toggle-arrow {
	transform: rotate(180deg);
}

.ma-card-links-list {
	list-style: none;
	margin: 0 !important;
	padding-left: 0.9rem;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
	border-left: 1px solid var(--wp--preset--color--border);
}

.ma-card-links.is-open .ma-card-links-list {
	max-height: 340px;
}

.ma-card-links-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.5rem 0;
	border-top: 1px solid var(--wp--preset--color--border);
	font-size: 0.85rem;
	line-height: 1.3;
}

.ma-card-links-list li:first-child {
	border-top: none;
}

.ma-card-link-label {
	color: var(--wp--preset--color--contrast);
	flex: 1 1 auto;
}

.ma-card-link-btn {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	border: 2px solid var(--wp--preset--color--contrast);
	border-radius: 999px;
	padding: 0.3rem 0.75rem;
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	white-space: nowrap;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.ma-card-link-btn:hover {
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent);
}

.ma-card-link-soon {
	color: var(--wp--preset--color--muted);
}

.ma-card-link-soon .ma-card-link-label {
	color: inherit;
}

.ma-card-link-note {
	flex: 0 0 auto;
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-style: normal;
	opacity: 0.7;
	white-space: nowrap;
}

/* -------------------------------------------------------------------- */
/* Partners                                                               */
/* -------------------------------------------------------------------- */

.ma-partner-grid {
	display: grid !important;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--wp--preset--spacing--30);
}

.ma-partner {
	display: flex !important;
	flex-direction: column !important;
	margin: 0 !important;
	align-items: flex-start !important;
	gap: 1.1rem !important;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 16px;
	padding: var(--wp--preset--spacing--40);
	transition: border-color 0.25s ease, background-color 0.25s ease;
}

.ma-partner > * {
	margin: 0 !important;
}

.ma-partner:hover {
	border-color: var(--wp--preset--color--accent);
}

.ma-partner-mark {
	display: flex;
	align-items: center;
	width: 100%;
	height: 72px;
	margin: 0 !important;
}

/*
 * Fixed px max-height, not a percentage: when the logo is wrapped in an
 * <a> (every partner except the coordinator), the img's direct parent is
 * that inline anchor, which has no resolvable height of its own - a
 * percentage max-height on the img silently resolves to "none" there,
 * so the logo renders at its unconstrained natural size instead of
 * fitting the tile. A fixed px value sidesteps that entirely.
 */
.ma-partner-mark a {
	display: flex;
	align-items: center;
	max-height: 100%;
}

.ma-partner-mark img {
	display: block;
	max-height: 64px;
	max-width: 220px;
	width: auto;
	height: auto;
	object-fit: contain;
	filter: grayscale(0.9);
	opacity: 0.85;
	transition: filter 0.25s ease, opacity 0.25s ease;
}

.ma-partner-mark img {
	display: block;
}

.ma-partner:hover .ma-partner-mark img {
	filter: grayscale(0);
	opacity: 1;
}

.ma-partner-name {
	margin: 0 !important;
	font-weight: 600;
	font-size: 1rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
}

.ma-partner-name a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.ma-partner-name a:hover {
	color: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
}

.ma-partner-role {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-deep);
	background: var(--wp--preset--color--accent-tint);
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
}

.ma-partner-country {
	flex-basis: 100%;
	font-weight: 400;
	font-size: 0.82rem;
	color: var(--wp--preset--color--muted);
}

/* -------------------------------------------------------------------- */
/* Facebook feed                                                         */
/* -------------------------------------------------------------------- */

.ma-fb-wrap {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--30);
}

.ma-fb-posts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: var(--wp--preset--spacing--20);
}

.ma-fb-post {
	display: flex;
	flex-direction: column;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 18px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.ma-fb-post:hover {
	border-color: var(--wp--preset--color--accent);
	transform: translateY(-2px);
}

.ma-fb-post-img {
	display: block;
	width: 100%;
	height: 150px;
	background-color: var(--wp--preset--color--accent-tint);
	background-size: cover;
	background-position: center;
}

.ma-fb-post-img--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #1877f2;
}

.ma-fb-post-img--placeholder svg {
	width: 32px;
	height: 32px;
	fill: #fff;
}

.ma-fb-post-body {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	padding: var(--wp--preset--spacing--20);
	flex: 1 1 auto;
}

.ma-fb-post-text {
	font-size: 0.85rem;
	line-height: 1.5;
	color: var(--wp--preset--color--contrast);
}

.ma-fb-post-link {
	margin-top: auto;
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--wp--preset--color--accent-deep);
}

.ma-fb-empty {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 18px;
	padding: var(--wp--preset--spacing--30);
	max-width: 620px;
	color: var(--wp--preset--color--muted);
}

.ma-fb-empty p {
	margin: 0;
}

.ma-fb-follow-btn {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	border: 2px solid var(--wp--preset--color--contrast);
	border-radius: 999px;
	padding: 0.55rem 1.1rem;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.ma-fb-follow-btn:hover {
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent);
}

/* -------------------------------------------------------------------- */
/* CTA band                                                               */
/* -------------------------------------------------------------------- */

.ma-cta {
	background-color: #2b2c30 !important;
	text-align: center;
	max-width: 1180px;
	margin-left: auto;
	margin-right: auto;
}

.ma-cta-kicker {
	color: var(--wp--preset--color--base) !important;
	opacity: 0.6;
}

.ma-cta-title {
	color: var(--wp--preset--color--base);
	margin-bottom: 1rem !important;
}

.ma-cta-lead {
	color: var(--wp--preset--color--base);
	opacity: 0.75;
	max-width: 42rem;
	margin-left: auto !important;
	margin-right: auto !important;
	margin-bottom: 2rem !important;
}

.ma-cta .wp-block-buttons {
	justify-content: center !important;
}

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

/*
 * Deliberately wider than the other sections' content (80vw-based, not the
 * theme's 1180px wideSize) - the footer sits in a true alignfull section
 * with no other width cap, so this percentage resolves against the
 * viewport, not some already-constrained ancestor.
 */
.ma-footer-columns {
	width: 80% !important;
	max-width: 80% !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

.ma-footer-logo {
	margin: 0 0 0.75rem !important;
}

.ma-footer-logo img {
	display: block;
	height: 30px;
	width: auto;
}

.ma-footer-blurb {
	color: var(--wp--preset--color--base);
	opacity: 0.65;
	font-size: 0.95rem;
	margin: 0 0 1.25rem !important;
}

.ma-footer-heading {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	opacity: 0.55;
	margin: 0 0 1rem !important;
}

.ma-footer-list {
	list-style: none;
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.ma-footer-list a,
.ma-footer-contact a {
	color: var(--wp--preset--color--base);
	opacity: 0.85;
	text-decoration: none;
	font-size: 0.95rem;
}

.ma-footer-list a:hover {
	opacity: 1;
	text-decoration: underline;
}

.ma-footer-contact {
	color: var(--wp--preset--color--base);
	opacity: 0.85;
	font-size: 0.95rem;
	line-height: 1.7;
}

.ma-social a {
	background: rgba(250, 249, 245, 0.1) !important;
	border-radius: 9999px;
}

.ma-eu-badge {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-bottom: 1rem;
}

.ma-cc-badge {
	display: block;
	height: 23px;
	width: auto;
	border-radius: 3px;
}

.ma-eu-emblem {
	margin: 0 !important;
	display: block;
	max-width: 160px;
}

.ma-eu-emblem img {
	display: block;
	height: auto;
	max-width: 100%;
}

.ma-eu-disclaimer {
	opacity: 0.55;
	line-height: 1.6;
}

.ma-cc-row {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	margin-top: 0.8rem;
}

.ma-cc-row .ma-cc-badge {
	flex-shrink: 0;
	margin-top: 0.15rem;
}

.ma-theme-version {
	opacity: 0.4;
	margin-top: 0.6rem !important;
}

.ma-footer-rule {
	width: 80% !important;
	max-width: 80% !important;
	margin-left: auto !important;
	margin-right: auto !important;
	border-top-color: rgba(250, 249, 245, 0.15) !important;
	margin-top: var(--wp--preset--spacing--40) !important;
	margin-bottom: var(--wp--preset--spacing--30) !important;
}

.ma-footer-bottom {
	opacity: 0.5;
	width: 80%;
	max-width: 80%;
	margin: 0 auto !important;
	text-align: center;
}

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

@media (max-width: 782px) {
	.ma-tile-grid {
		grid-template-columns: 1fr;
	}

	.ma-grid-results {
		grid-template-columns: 1fr;
	}

	.ma-partner-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.ma-partner-grid {
		grid-template-columns: 1fr;
	}

	.ma-hero-stats {
		gap: var(--wp--preset--spacing--30) !important;
	}
}

/* -------------------------------------------------------------------- */
/* Standalone pages (e.g. Privacy Policy)                                 */
/* -------------------------------------------------------------------- */

.ma-page-main {
	padding-left: var(--wp--preset--spacing--40);
	padding-right: var(--wp--preset--spacing--40);
}

.ma-page-title {
	max-width: 46rem;
	margin-left: auto !important;
	margin-right: auto !important;
	margin-bottom: var(--wp--preset--spacing--40) !important;
}

.ma-page-content {
	max-width: 46rem;
}

.ma-page-content h2 {
	font-size: 1.5rem;
	margin-top: var(--wp--preset--spacing--40);
}

.ma-page-content h3 {
	font-size: 1.15rem;
	margin-top: var(--wp--preset--spacing--30);
}

.ma-page-content p,
.ma-page-content li {
	color: var(--wp--preset--color--muted);
}

.ma-page-content ul,
.ma-page-content ol {
	padding-left: 1.25rem;
}

.ma-page-content a {
	color: var(--wp--preset--color--accent);
}
