/*
Theme Name: Red Global MX – Capítulo Irlanda
Theme URI: https://redglobalmx.ie/
Author: Red Global MX Capítulo Irlanda
Description: Mexican flag ribbon edition (flowing ribbon, bunting or papel picado). Theme for the Irish chapter of Red Global MX, the network of Mexicans abroad. Home page with events, news, focus areas, vision, team and membership FAQ, all editable from Appearance → Customize. Includes Events and Team post types, and creates the starter pages and menu on activation. Fonts are bundled locally (no Google Fonts requests).
Version: 1.4.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rgmx-irlanda
Tags: one-column, custom-logo, custom-menu, featured-images, translation-ready, blog
*/

/* ---------- Fonts (SIL Open Font License) ---------- */
@font-face { font-family: "Bricolage Grotesque"; src: url("assets/fonts/bricolage-grotesque-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("assets/fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("assets/fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Literata"; src: url("assets/fonts/literata-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Literata"; src: url("assets/fonts/literata-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Literata"; src: url("assets/fonts/literata-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
	/* Original palette, used with papel picado. */
	--red: #c8006a;         /* rosa mexicano */
	--red-dark: #a10055;
	--green: #03ac13;       /* bright green */
	--green-mid: #02920f;
	--green-deep: #063d10;  /* footer: a dark shade of the same green */
	--green-hover: #35c444;
	--green-text: #027a0d;  /* green for text on white (passes contrast) */
	--on-green: var(--ink); /* text placed on the green */
	--on-green-soft: #1f2d24;
	--rule-on-green: var(--ink);
	--sea: #2f8f83;
	--marigold: #f3a712;    /* cempasúchil */
	--ink: #18222b;
	--muted: #52606b;
	--stone: #eceeea;
	--sky: #d3e3e8;
	--line: #d3d9d3;
	--paper: #fff;

	--font-head: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
	--font-body: "Literata", Georgia, "Times New Roman", serif;

	--wrap: 1200px;
	--gutter: clamp(1.25rem, 4vw, 2.5rem);
	--space: clamp(4rem, 8vw, 7rem);
	--radius: 6px;
}

/* Flag palette, used only with the flowing ribbon or bunting decorations. */
.rgmx-flag-colours {
	--red: #ce1126;
	--red-dark: #a50e1f;
	--green: #006847;
	--green-mid: #0b7d56;
	--green-deep: #003d2a;
	--green-hover: #0b7d56;
	--green-text: #006847;
	--on-green: #fff;
	--on-green-soft: #d6e6dd;
	--rule-on-green: var(--marigold);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--red-dark); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 0.6em; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
figure { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0; z-index: 100;
	top: 0.75rem; left: 0.75rem; padding: 0.75rem 1rem; background: var(--paper); color: var(--ink); font-family: var(--font-head);
}

/* ---------- Buttons and links ---------- */
.button {
	display: inline-flex; align-items: center; justify-content: center;
	font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1.2;
	padding: 0.85em 1.5em; border-radius: 999px; border: 2px solid transparent;
	text-decoration: none; cursor: pointer; transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.button--green { background: var(--green); color: var(--on-green); }
.button--green:hover { background: var(--green-hover); }
.button--red { background: var(--red); color: #fff; }
.button--red:hover { background: var(--red-dark); }
.button--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.button--outline:hover { background: var(--ink); color: #fff; }
.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.text-link { font-family: var(--font-head); font-weight: 600; color: var(--green-text); text-decoration: underline; text-decoration-color: var(--marigold); text-decoration-thickness: 2px; }
.text-link:hover { color: var(--red-dark); }

/* ---------- Header ---------- */
.topbar { background: var(--green); color: var(--on-green); font-family: var(--font-head); font-size: 0.875rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 2.5rem; gap: 1rem; }
.topbar__note { margin: 0; opacity: 0.85; }

.social { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.social a { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; color: inherit; border-radius: 50%; }
.social a:hover { background: rgba(255, 255, 255, 0.14); }

/* Round social buttons in the top bar */
.topbar__inner { min-height: 3rem; }
.social--top .social__button {
	width: 2.1rem; height: 2.1rem; background: #fff; color: var(--green-text);
	transition: background-color 0.15s, color 0.15s, transform 0.15s;
}
.social--top .social__button:hover { background: var(--marigold); color: var(--ink); transform: translateY(-1px); }
.social--top .social__button svg { width: 18px; height: 18px; }
.social--top .social__button--placeholder { background: transparent; color: var(--on-green); border: 1.5px dashed currentColor; opacity: 0.8; }
.social__hint a { width: auto; height: auto; border-radius: 0; font-size: 0.85rem; color: var(--on-green); text-decoration: underline; padding-left: 0.25rem; }
.social__hint a:hover { background: none; opacity: 0.75; }

.site-header { position: relative; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 5.25rem; }

.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); line-height: 1; }
.wordmark__text { display: flex; flex-direction: column; }
.rosette-mark { flex: none; margin-top: 0.55rem; }
.wordmark__name { font-family: var(--font-head); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.03em; }
.wordmark__chapter { font-family: var(--font-body); font-style: italic; font-size: 1rem; color: var(--red); margin-top: 0.2rem; }
.wordmark--light { color: #fff; }
.wordmark--light .wordmark__chapter { color: var(--marigold); }
.custom-logo { max-height: 72px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.menu { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; font-family: var(--font-head); font-weight: 600; }
.menu a { display: block; padding: 0.6rem 0.85rem; color: var(--ink); text-decoration: none; border-radius: var(--radius); }
.menu > li > a:hover, .menu .current-menu-item > a, .menu .current_page_item > a, .menu .current-menu-ancestor > a { color: var(--red); }
.menu li { position: relative; }
.menu .menu-item-has-children > a::after {
	content: ""; display: inline-block; width: 0.45em; height: 0.45em; margin-left: 0.45em;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-0.2em) rotate(45deg);
}
.menu .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 14rem; list-style: none; margin: 0; padding: 0.5rem;
	background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--marigold); border-radius: 0 0 var(--radius) var(--radius);
	box-shadow: 0 12px 24px -12px rgba(24, 34, 43, 0.25);
	opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.menu li:hover > .sub-menu, .menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.menu .sub-menu a { font-weight: 400; }
.menu .sub-menu a:hover { background: var(--stone); color: var(--ink); }

.nav-toggle { display: none; }

@media (max-width: 960px) {
	.nav-toggle {
		display: inline-flex; align-items: center; gap: 0.6rem; background: none; border: 2px solid var(--ink);
		border-radius: 999px; padding: 0.55rem 1rem; font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--ink); cursor: pointer;
	}
	.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform 0.2s; }
	.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
	.nav-toggle__bars::before { top: -6px; }
	.nav-toggle__bars::after { top: 6px; }
	.nav-open .nav-toggle__bars { background: transparent; }
	.nav-open .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
	.nav-open .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

	.site-nav {
		display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
		gap: 1rem; padding: 1rem var(--gutter) 1.5rem; background: var(--paper); border-bottom: 1px solid var(--line);
	}
	.nav-open .site-nav { display: flex; }
	.menu { flex-direction: column; }
	.menu a { padding: 0.75rem 0; border-bottom: 1px solid var(--line); border-radius: 0; }
	.menu .menu-item-has-children > a::after { display: none; }
	.menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0 0 0 1rem; min-width: 0; }
	.header-cta { align-self: flex-start; }
	.topbar__note { display: none; }
	.topbar__inner { justify-content: flex-end; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--space); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-title { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 800; letter-spacing: -0.03em; max-width: 20ch; }
.section-intro { font-size: 1.15rem; color: var(--muted); max-width: 52ch; }
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.sub-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 1.25rem; }
.empty-note { background: var(--stone); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 1.25rem; }
.empty-note p:last-child { margin: 0; }

/* ---------- Mexican flag ribbon ---------- */
.ribbon { height: clamp(96px, 12.5vw, 150px); }
.ribbon--compact { height: clamp(64px, 8vw, 96px); }
.ribbon svg { width: 100%; height: 100%; overflow: visible; }
.ribbon__swag {
	transform-box: fill-box; transform-origin: 50% 0;
	animation: swag-drop 0.75s cubic-bezier(0.2, 0.8, 0.3, 1.15) both;
	animation-delay: calc(var(--i) * 90ms + 100ms);
}
.ribbon__rosette {
	transform-box: fill-box; transform-origin: 50% 25%;
	animation: rosette-pop 0.5s cubic-bezier(0.3, 1.5, 0.5, 1) both;
	animation-delay: calc(var(--i) * 90ms + 500ms);
}
.ribbon--compact .ribbon__swag, .ribbon--compact .ribbon__rosette { animation: none; }
@keyframes swag-drop {
	from { transform: scaleY(0.05); opacity: 0; }
	to { transform: none; opacity: 1; }
}
@keyframes rosette-pop {
	from { transform: scale(0) rotate(-120deg); }
	to { transform: none; }
}

/* ---------- Flowing flag ribbon ---------- */
.flow { position: relative; width: 100%; aspect-ratio: 1600 / 260; min-height: 110px; max-height: 270px; overflow: hidden; }
.flow img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.flow--compact { max-height: 180px; }
@media (prefers-reduced-motion: no-preference) {
	.flow--hero img { animation: flow-unfurl 1.6s cubic-bezier(0.45, 0, 0.2, 1) 0.15s both; }
}
@keyframes flow-unfurl {
	from { clip-path: inset(0 100% 0 0); }
	to { clip-path: inset(0 0 0 0); }
}
.hero .flow { margin-top: clamp(0.5rem, 2vw, 1.25rem); }
.hero .flow + .hero__inner { padding-top: 0; }
.page-head--flow .flow { margin-top: clamp(0.25rem, 1.5vw, 1rem); }
.page-head--flow .wrap { padding-top: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--stone); overflow: hidden; }
.papel-picado { height: clamp(80px, 10vw, 128px); }
.papel-picado svg { width: 100%; height: 100%; overflow: visible; }
.papel-picado__string { stroke: var(--ink); stroke-width: 1.5; }
.papel-picado__flag {
	transform-box: fill-box; transform-origin: 50% 0;
	animation: pp-drop 0.9s cubic-bezier(0.2, 0.8, 0.3, 1.25) both;
	animation-delay: calc(var(--i) * 55ms + 150ms);
}
@keyframes pp-drop {
	from { transform: translateY(-36px) rotate(-10deg); opacity: 0; }
	60% { opacity: 1; }
	80% { transform: rotate(3deg); }
	to { transform: none; opacity: 1; }
}

.hero__inner {
	display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 5rem);
	align-items: end; padding-top: clamp(1.5rem, 4vw, 3rem);
}
.hero__copy { padding-bottom: clamp(3rem, 7vw, 6rem); }
.hero__title {
	font-size: clamp(2.9rem, 6vw, 4.9rem); font-weight: 800; line-height: 0.96; letter-spacing: -0.045em;
	margin-bottom: 0.4em; max-width: 12ch; text-wrap: balance;
}
.rgmx-deco-papel .hero__title { font-size: clamp(2.9rem, 6.6vw, 5.6rem); }
.hero__text { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 40ch; margin-bottom: 2rem; }

.arch { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 0 0; overflow: hidden; background: var(--sky); }
.arch > img, .arch > svg { width: 100%; height: 100%; object-fit: cover; }
.hero__arch { justify-self: end; width: min(100%, 440px); }
.hero__arch::after {
	content: ""; position: absolute; inset: 14px 14px 0; border: 2px solid rgba(255, 255, 255, 0.75);
	border-bottom: 0; border-radius: 999px 999px 0 0; pointer-events: none;
}

@media (max-width: 820px) {
	.hero__inner { grid-template-columns: 1fr; }
	.hero__copy { padding-bottom: 0; }
	.hero__arch { justify-self: center; width: min(80%, 360px); }
}

/* ---------- Events and news ---------- */
.motion__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); }
@media (max-width: 900px) { .motion__grid { grid-template-columns: 1fr; } }

.event-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.event { display: grid; grid-template-columns: 4.75rem 1fr; gap: 1.25rem; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.event:last-child { border-bottom: 1px solid var(--line); }
.event-badge {
	display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 1;
	background: var(--red); color: #fff; border-radius: var(--radius); font-family: var(--font-head); line-height: 1;
}
.event-badge__day { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; }
.event-badge__month { font-size: 0.9rem; margin-top: 0.2rem; }
.event-list--past .event-badge { background: var(--stone); color: var(--muted); }
.event__title { font-size: 1.2rem; margin-bottom: 0.3rem; }
.event__title a { color: var(--ink); text-decoration: none; }
.event__title a:hover { color: var(--red); }
.event-meta { display: flex; flex-wrap: wrap; column-gap: 1rem; font-family: var(--font-head); font-size: 0.95rem; color: var(--muted); margin-bottom: 0.35rem; }
.event__excerpt { margin: 0; font-size: 0.98rem; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 2rem 1.75rem; margin-bottom: 1.5rem; }
.card-grid--two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 560px) { .card-grid--two { grid-template-columns: 1fr; } }
.card__media { display: block; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; background: var(--sky); margin-bottom: 1rem; }
.card__media img, .card__media svg { width: 100%; height: 100%; object-fit: cover; }
.card__title { font-size: 1.25rem; margin-bottom: 0.35rem; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--red); }
.card__meta { font-family: var(--font-head); font-size: 0.9rem; color: var(--muted); margin: 0; }

/* ---------- Focus areas ---------- */
.focus { background: var(--green); color: var(--on-green); }
.focus .section-title { margin-bottom: clamp(2rem, 4vw, 3rem); }
.focus__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem clamp(1.5rem, 3vw, 3rem); }
.focus__item { border-top: 3px solid var(--rule-on-green); padding-top: 1.1rem; }
.focus__item h3 { font-size: 1.35rem; font-weight: 600; margin-bottom: 0.5rem; }
.focus__item p { color: var(--on-green-soft); margin: 0; }
@media (max-width: 900px) { .focus__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .focus__grid { grid-template-columns: 1fr; } }
/* When printed inside a page via [rgmx_focus_areas] */
.prose .focus { margin-block: 1.5rem 2.5rem; padding: 2rem; border-radius: var(--radius); }
.prose .focus .wrap { padding: 0; }
.prose .focus__grid { grid-template-columns: repeat(2, 1fr); }
.prose .focus__item h3 { margin-top: 0; }
@media (max-width: 600px) { .prose .focus__grid { grid-template-columns: 1fr; } }

/* ---------- Vision and history ---------- */
.vision__statement {
	font-family: var(--font-body); font-style: italic; font-size: clamp(1.55rem, 3vw, 2.35rem); line-height: 1.32;
	max-width: 34ch; margin: 0 0 clamp(3rem, 6vw, 5rem); padding-left: clamp(1rem, 2vw, 1.75rem); border-left: 4px solid var(--red);
}
.history { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.history__image { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--sky); }
.history__image img, .history__image svg { width: 100%; height: 100%; object-fit: cover; }
.history__copy p { max-width: 52ch; margin-bottom: 1.75rem; }
@media (max-width: 820px) { .history { grid-template-columns: 1fr; } }

/* ---------- People ---------- */
.people { background: var(--stone); }
.people__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 3vw, 2.5rem); list-style: none; margin: 2rem 0 2.5rem; padding: 0; }
@media (max-width: 720px) { .people__list { grid-template-columns: repeat(2, 1fr); } }
.portrait { aspect-ratio: 4 / 5; border-radius: 999px 999px 0 0; overflow: hidden; background: var(--sea); display: grid; place-items: center; }
.rgmx-flag-colours .portrait { background: var(--green); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait__initials { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); color: #fff; letter-spacing: -0.03em; }
.person__name { font-family: var(--font-head); font-weight: 600; margin: 0.75rem 0 0; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 3rem 2rem; list-style: none; margin: 0; padding: 0; }
.member__name { font-size: 1.3rem; margin: 1rem 0 0.15rem; }
.member__role { font-family: var(--font-head); color: var(--red); margin-bottom: 0.6rem; }
.member__bio { font-size: 0.98rem; }

/* ---------- Membership and FAQ ---------- */
.join__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.join__intro p { color: var(--muted); max-width: 36ch; margin-bottom: 1.75rem; }
@media (max-width: 860px) { .join__grid { grid-template-columns: 1fr; } }

.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none;
	padding: 1.15rem 0; font-family: var(--font-head); font-weight: 600; font-size: 1.15rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--red); }
.faq__icon { flex: none; color: var(--red); transition: transform 0.2s; }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__answer { padding: 0 2.5rem 1.25rem 0; max-width: 62ch; }
.faq__answer p:last-child { margin: 0; }

.membership { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .membership { grid-template-columns: 1fr; } }
.fees { background: var(--stone); border-radius: var(--radius); padding: 1.75rem; border-top: 4px solid var(--red); }
.fees__title { font-size: 1.3rem; }
.fees dl { margin: 0 0 1.5rem; }
.fees dl > div { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.fees dt { font-family: var(--font-head); font-weight: 600; }
.fees dd { margin: 0; }

/* ---------- Call to action band ---------- */
.cta-band { background: var(--red); color: #fff; padding-block: clamp(3rem, 6vw, 5rem); }
.cta-band__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2rem 3rem; }
.cta-band__title { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 800; letter-spacing: -0.035em; margin: 0; text-wrap: balance; }
.cta-band__links { display: flex; flex-wrap: wrap; gap: 0.75rem; list-style: none; margin: 0; padding: 0; }
@media (max-width: 1000px) { .cta-band__inner { grid-template-columns: 1fr; } }
.cta-band__links a {
	display: inline-block; padding: 0.85em 1.5em; border: 2px solid #fff; border-radius: 999px; color: #fff;
	font-family: var(--font-head); font-weight: 600; text-decoration: none; transition: background-color 0.15s, color 0.15s;
}
.cta-band__links a:hover { background: #fff; color: var(--red-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-deep); color: #cfe0d6; font-size: 0.98rem; }
.site-footer a { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 0.8fr; gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__about p { margin: 1rem 0; max-width: 36ch; }
.site-footer__heading { font-size: 1.15rem; font-weight: 600; color: #fff; }
.social--footer { margin-left: -0.5rem; color: #fff; }
.footer-menu { list-style: none; margin: 0; padding: 0; font-family: var(--font-head); }
.footer-menu li { margin-bottom: 0.5rem; }
.site-footer__partners { margin-top: 1.5rem; }
.site-footer__partners .widget { margin-bottom: 1.25rem; }
.site-footer__partners .widget-title, .site-footer__partners h2, .site-footer__partners h3 { font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 0.5rem; }
.site-footer__partners ul { list-style: none; margin: 0; padding: 0; }
.site-footer__partners li { margin-bottom: 0.35rem; }
.site-footer__partners img { max-height: 64px; width: auto; }
.site-footer__newsletter input[type="email"], .site-footer__newsletter input[type="text"] {
	width: 100%; padding: 0.75rem 1rem; border-radius: var(--radius); border: 0; font: inherit; margin-bottom: 0.75rem;
}
.site-footer__newsletter input[type="submit"], .site-footer__newsletter button {
	background: var(--marigold); color: var(--ink); border: 0; border-radius: 999px; padding: 0.75rem 1.5rem; font-family: var(--font-head); font-weight: 600; cursor: pointer;
}
.site-footer__base {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
	position: relative; padding-block: 1.25rem; font-family: var(--font-head); font-size: 0.9rem;
}
.site-footer__base::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid rgba(255, 255, 255, 0.14); }
.site-footer__base p { margin: 0; }

/* ---------- Inner pages ---------- */
.page-head { position: relative; background: var(--stone); padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); }
.page-head::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
	background: linear-gradient(90deg, var(--red) 0 25%, var(--marigold) 25% 50%, var(--green) 50% 75%, var(--sea) 75%);
}
.page-head--ribbon { padding-top: 0; }
.page-head--ribbon .wrap { padding-top: clamp(1.25rem, 3vw, 2.25rem); }
.page-head--ribbon::after {
	height: 8px; box-shadow: 0 1px 0 var(--line);
	background: linear-gradient(90deg, var(--green) 0 33.34%, #fff 33.34% 66.67%, var(--red) 66.67%);
}
.page-head__title { font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 800; letter-spacing: -0.04em; max-width: 20ch; margin: 0; }
.page-head__intro { margin-top: 1rem; max-width: 60ch; font-size: 1.1rem; }
.page-head__intro p:last-child { margin-bottom: 0; }
.page-head .event-meta { font-size: 1.05rem; color: var(--ink); }

.prose > *:not(.focus):not(.alignwide):not(.alignfull):not(.wp-block-columns):not(.wp-block-gallery) { max-width: 68ch; }
.prose > * + h2 { margin-top: 2.2em; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -0.025em; }
.prose h3 { font-size: 1.35rem; margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1.25em; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote { margin: 2em 0; padding-left: 1.25rem; border-left: 4px solid var(--red); font-style: italic; font-size: 1.2rem; }
.prose img { border-radius: var(--radius); }
.prose__lead-image { margin-bottom: 2rem; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 0.6rem 0.5rem; text-align: left; }
.prose .wp-block-button__link { background: var(--green); color: var(--on-green); border-radius: 999px; font-family: var(--font-head); font-weight: 600; }
.prose input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), .prose textarea, .prose select {
	width: 100%; padding: 0.7rem 0.9rem; border: 1px solid #a9b3ab; border-radius: var(--radius); font: inherit; background: #fff;
}
.prose input[type="submit"], .prose button[type="submit"] {
	background: var(--red); color: #fff; border: 0; border-radius: 999px; padding: 0.85rem 1.6rem; font-family: var(--font-head); font-weight: 600; font-size: 1rem; cursor: pointer;
}
.page-head__meta { font-family: var(--font-head); color: var(--muted); }
.page-head__meta a { color: inherit; }
.tags { font-family: var(--font-head); font-size: 0.95rem; color: var(--muted); }
.events-page .sub-title:not(:first-child) { margin-top: 3rem; }

.post-navigation { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-family: var(--font-head); }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.post-navigation .nav-next { text-align: right; }
.post-navigation a { color: var(--ink); text-decoration: none; font-weight: 600; }
.post-navigation .nav-label { display: block; font-weight: 400; color: var(--muted); font-size: 0.9rem; }

.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; font-family: var(--font-head); }
.pagination .page-numbers { padding: 0.5rem 0.9rem; border-radius: 999px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

.search-form { display: flex; gap: 0.5rem; max-width: 30rem; }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; padding: 0.7rem 0.9rem; border: 1px solid #a9b3ab; border-radius: 999px; font: inherit; }
.search-form .search-submit { background: var(--green); color: var(--on-green); border: 0; border-radius: 999px; padding: 0.7rem 1.3rem; font-family: var(--font-head); font-weight: 600; cursor: pointer; }

/* Comments */
.comments-area { margin-top: 3rem; }
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 1rem 0; border-bottom: 1px solid var(--line); }

/* ---------- WordPress core classes ---------- */
.alignleft { float: left; margin: 0.3em 1.5em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide { margin-inline: calc(-1 * min(6vw, 6rem)); max-width: none; }
.alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.wp-caption, .wp-block-image figcaption { font-size: 0.9rem; color: var(--muted); }
.wp-caption-text, .gallery-caption { font-size: 0.9rem; }
.sticky .card__title::before { content: "★ "; color: var(--marigold); }
.bypostauthor > .comment-body { border-left: 3px solid var(--marigold); padding-left: 1rem; }

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