/*
Theme Name: PARGV
Theme URI: https://pargv.com
Author: PARGV Web Team
Description: Custom theme for the Pakistan Association of the Rio Grande Valley. Includes Founding Members, Events with video, Photo Albums, a membership form, and one-click site setup.
Version: 1.3.1
Requires at least: 6.2
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: pargv
*/

/* ---------- Tokens ---------- */
:root {
	--green: #01411C;          /* Pakistan flag green */
	--green-2: #0B5530;        /* hover / lighter surface */
	--green-deep: #002A12;     /* footer */
	--gold: #C9A240;           /* seal gold, for lines & large type on green */
	--gold-soft: #E6CF8E;      /* gold text on green */
	--gold-ink: #7E6120;       /* gold that passes contrast on white */
	--ink: #17201A;            /* body text */
	--muted: #4D5A51;          /* secondary text */
	--line: #D9E2DA;           /* hairlines */
	--sage: #EFF4EF;           /* alternate section background */
	--white: #FFFFFF;

	--f-display: "Marcellus", "Times New Roman", serif;
	--f-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 40px);
	--section: clamp(64px, 9vw, 112px);
	--radius: 4px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--f-body);
	font-size: 1.125rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-2); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

h1, h2, h3, h4 {
	font-family: var(--f-display);
	font-weight: 400;
	line-height: 1.15;
	color: var(--green);
	margin: 0 0 .5em;
	letter-spacing: -0.005em;
	text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 62ch; }

.screen-reader-text, .skip-link:not(:focus) {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; background: var(--white); padding: 10px 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }
.section { padding: var(--section) 0; }
.section--sage { background: var(--sage); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 48px); }
.section__head h2 { margin: 0; }
.section__head p { margin: 8px 0 0; color: var(--muted); max-width: 56ch; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 24px;
	font-family: var(--f-body); font-size: 1rem; font-weight: 600; line-height: 1.2;
	border-radius: var(--radius); border: 2px solid transparent;
	text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn--green { background: var(--green); color: var(--white); }
.btn--green:hover { background: var(--green-2); color: var(--white); }
.btn--gold { background: var(--gold); color: var(--green-deep); }
.btn--gold:hover { background: var(--gold-soft); color: var(--green-deep); }
.btn--line { border-color: var(--green); color: var(--green); background: transparent; }
.btn--line:hover { background: var(--green); color: var(--white); }
.btn--line-light { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn--line-light:hover { border-color: var(--white); background: rgba(255,255,255,.08); color: var(--white); }
.text-link { font-weight: 600; color: var(--green); text-decoration: underline; }

/* ---------- Announcement ---------- */
.announce { background: var(--gold); color: var(--green-deep); font-size: .95rem; text-align: center; padding: 8px var(--gutter); }
.announce a { color: inherit; font-weight: 700; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--green); }
.brand img { width: 60px; height: 60px; object-fit: contain; }
.brand__name { white-space: nowrap; font-family: var(--f-display); font-size: 1.05rem; line-height: 1.2; }
.brand__name span { display: block; font-size: .82rem; color: var(--gold-ink); font-family: var(--f-body); font-weight: 600; letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: 8px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav li { position: relative; }
.nav a { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; border-radius: var(--radius); }
.nav a:hover { color: var(--green); background: var(--sage); }
.nav .current-menu-item > a, .nav .current_page_item > a, .nav .current-menu-ancestor > a { color: var(--green); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.nav .menu-item-has-children > a { display: flex; align-items: center; gap: 6px; }
.nav .menu-item-has-children > a::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .7; }
.nav .sub-menu a { padding: 10px 12px; font-weight: 600; }
.nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; flex-direction: column; background: var(--white); border: 1px solid var(--line); padding: 8px; }
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { display: flex; }
.nav a.nav__cta { margin-left: 8px; padding: 12px 20px; color: var(--white); background: var(--green); border-radius: var(--radius); box-shadow: none; white-space: nowrap; }
.nav a.nav__cta:hover { background: var(--green-2); color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--green); }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 1200px) {
	.nav-toggle { display: inline-flex; }
	.nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		background: var(--white); border-bottom: 1px solid var(--line);
		flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 24px;
		max-height: calc(100vh - 84px); overflow-y: auto;
	}
	.nav.is-open { display: flex; }
	.nav ul { flex-direction: column; gap: 0; }
	.nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
	.nav .current-menu-item > a, .nav .current_page_item > a { box-shadow: inset 3px 0 0 var(--gold); padding-left: 12px; }
	.nav .sub-menu { display: flex; position: static; border: 0; padding: 0 0 0 16px; min-width: 0; }
	.nav .sub-menu a { padding: 12px 4px; font-weight: 400; }
	.nav .menu-item-has-children > a::after { display: none; }
	.nav a.nav__cta { margin: 16px 0 0; border-bottom: 0; text-align: center; padding: 14px 20px; }
}

/* ---------- Signature pattern ---------- */
.lattice { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--green); color: var(--white); overflow: hidden; }
.hero .lattice { color: var(--gold); opacity: .22; -webkit-mask-image: linear-gradient(100deg, transparent 20%, #000 75%); mask-image: linear-gradient(100deg, transparent 20%, #000 75%); }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: clamp(48px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); }
.hero h1 { color: var(--white); margin-bottom: .4em; }
.hero p { color: rgba(255,255,255,.86); font-size: clamp(1.15rem, 1.6vw, 1.3rem); max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__seal { justify-self: center; text-align: center; }
.hero__seal img { width: min(380px, 100%); margin: 0 auto; filter: drop-shadow(0 18px 40px rgba(0,0,0,.35)); }
.hero__seal figcaption { margin-top: 16px; font-family: var(--f-display); color: var(--gold-soft); font-size: 1.1rem; }
.hero__next { position: relative; border-top: 1px solid rgba(201,162,64,.45); }
.hero__next .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding-top: 18px; padding-bottom: 18px; }
.hero__next strong { color: var(--gold-soft); font-weight: 600; }
.hero__next span { color: rgba(255,255,255,.9); }
.hero__next a { color: var(--white); font-weight: 600; margin-left: auto; }

@media (max-width: 860px) {
	.hero__inner { grid-template-columns: 1fr; text-align: left; }
	.hero__seal { order: -1; justify-self: start; }
	.hero__seal img { width: 168px; }
	.hero__seal figcaption { font-size: .95rem; margin-top: 8px; }
	.hero__next a { margin-left: 0; }
}

/* Optional hero photo (Customizer) */
.hero--photo { background: var(--green-deep) var(--hero-photo) center / cover no-repeat; }
.hero--photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(1,65,28,.96) 0%, rgba(1,65,28,.88) 45%, rgba(0,42,18,.55) 100%); }
.hero--photo .lattice { opacity: .12; }

/* One orchestrated entrance on page load */
@media (prefers-reduced-motion: no-preference) {
	.hero__text > * { animation: pargv-rise .7s cubic-bezier(.2,.7,.2,1) both; }
	.hero__text > :nth-child(2) { animation-delay: .08s; }
	.hero__text > :nth-child(3) { animation-delay: .16s; }
	.hero__seal { animation: pargv-seal 1s cubic-bezier(.2,.7,.2,1) .1s both; }
}
@keyframes pargv-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pargv-seal { from { opacity: 0; transform: scale(.94) rotate(-6deg); } to { opacity: 1; transform: none; } }

/* ---------- Quick actions ---------- */
.quick { position: relative; z-index: 2; margin-top: -1px; }
.home .hero__next .wrap { padding-bottom: 54px; }
.quick__grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold); transform: translateY(-36px); padding: 0; }
.quick__item { display: flex; align-items: center; gap: 14px; padding: 22px 24px; text-decoration: none; color: var(--ink); border-left: 1px solid var(--line); transition: background-color .15s; }
.quick__item:first-child { border-left: 0; }
.quick__item:hover { background: var(--sage); color: var(--ink); }
.quick__icon { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--sage); color: var(--green); }
.quick__item:hover .quick__icon { background: var(--green); color: var(--gold-soft); }
.quick__icon svg { width: 24px; height: 24px; }
.quick__item strong { display: block; color: var(--green); font-size: 1.08rem; }
.quick__item small { display: block; color: var(--muted); font-size: .95rem; }
.section--tight-top { padding-top: clamp(24px, 4vw, 56px); }
@media (max-width: 1000px) { .quick__grid { grid-template-columns: 1fr 1fr; } .quick__item:nth-child(3) { border-left: 0; } .quick__item:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .quick__grid { transform: translateY(-24px); } .quick__item { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 16px; } .quick__icon { width: 40px; height: 40px; } }

/* ---------- Highlighted event (Cricket Mela) ---------- */
.mela { position: relative; overflow: hidden; background: var(--green-deep); color: var(--white); padding: clamp(32px, 5vw, 72px) 0 clamp(56px, 7vw, 96px); }
.mela .lattice { color: var(--gold); opacity: .1; }
.quick:has(+ .mela) { background: var(--green-deep); }
.quick + .mela { padding-top: clamp(8px, 2vw, 24px); }
.mela__grid { position: relative; display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.mela__media { position: relative; }
.mela__media::before { content: ""; position: absolute; inset: -10px; border: 1px solid rgba(201,162,64,.55); pointer-events: none; }
.mela__video, .mela__flyer { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #000; border: 3px solid var(--gold); }
.mela__label { display: inline-block; margin: 0 0 14px; padding: 6px 14px; background: var(--gold); color: var(--green-deep); font-weight: 700; font-size: .95rem; border-radius: 2px; }
.mela h2 { color: var(--white); font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 14px; }
.mela__intro { color: rgba(255,255,255,.86); font-size: clamp(1.08rem, 1.5vw, 1.22rem); max-width: 54ch; }
.mela__when { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin: 28px 0 10px; }
.mela__date { display: flex; align-items: center; gap: 16px; }
.mela__day { font-family: var(--f-display); font-size: clamp(3.6rem, 7vw, 5rem); line-height: .9; color: var(--gold-soft); }
.mela__month { font-family: var(--f-display); font-size: 1.5rem; line-height: 1.2; color: var(--white); }
.mela__month small { display: block; font-family: var(--f-body); font-size: 1rem; color: rgba(255,255,255,.75); }
.mela__count { margin: 0; padding: 8px 16px; border: 1px solid rgba(201,162,64,.7); color: var(--gold-soft); font-weight: 700; border-radius: 999px; }
.mela__where { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.86); margin: 0 0 26px; }
.mela__where svg { width: 20px; height: 20px; color: var(--gold-soft); flex: none; }
.mela__acts { list-style: none; margin: 0 0 32px; padding: 22px 0 0; border-top: 1px solid rgba(201,162,64,.4); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.mela__acts li { display: flex; align-items: center; gap: 12px; }
.mela__icon { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(201,162,64,.7); border-radius: 50%; color: var(--gold-soft); }
.mela__icon svg { width: 22px; height: 22px; }
.mela__acts strong { display: block; color: var(--white); font-weight: 600; line-height: 1.25; }
.mela__acts small { display: block; color: rgba(255,255,255,.7); font-size: .92rem; }
.mela__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mela__actions .btn svg { width: 18px; height: 18px; }
@media (min-width: 1100px) { .mela__acts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
	.mela__grid { grid-template-columns: minmax(0, 1fr); }
	.mela__media { max-width: 340px; width: 100%; margin: 10px auto 0; }
}
@media (max-width: 420px) { .mela__acts { grid-template-columns: minmax(0, 1fr); } .mela__actions .btn { width: 100%; } }

/* ---------- Welcome message ---------- */
.welcome__photo { display: block; max-width: 260px; }
.welcome__photo .arch { max-width: 260px; }
.welcome { display: grid; grid-template-columns: 260px 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.welcome__mark { width: 100%; max-width: 220px; color: var(--gold); }
.welcome__mark svg { width: 100%; height: auto; display: block; }
.welcome__body { position: relative; border-left: 2px solid var(--gold); padding-left: clamp(24px, 4vw, 48px); }
.welcome__text { font-size: clamp(1.1rem, 1.5vw, 1.22rem); line-height: 1.7; max-width: 62ch; }
.welcome__text p:first-child { font-family: var(--f-display); font-size: 1.5rem; color: var(--green); }
.welcome__sign { margin: 24px 0 0; font-weight: 700; color: var(--gold-ink); }
@media (max-width: 800px) { .welcome { grid-template-columns: 1fr; gap: 24px; } .welcome__mark { max-width: 96px; } .welcome__photo { max-width: 180px; } }

/* ---------- Programs grid ---------- */
.programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .programs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .programs { grid-template-columns: 1fr; } }
.program { display: flex; flex-direction: column; padding: 28px; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s, background-color .15s; }
.program:hover { border-color: var(--gold); color: var(--ink); }
.program__icon { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-ink); margin-bottom: 18px; }
.program__icon svg { width: 26px; height: 26px; }
.program h3 { margin: 0 0 8px; }
.program p { color: var(--muted); margin: 0 0 18px; font-size: 1.02rem; }
.program__more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--green); font-size: .98rem; }
.program__more svg { width: 18px; height: 18px; transition: transform .15s; }
.program:hover .program__more svg { transform: translateX(3px); }

/* ---------- Featured event ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); border: 1px solid var(--line); background: var(--white); }
.feature__img { position: relative; display: block; min-height: 320px; background: var(--green); overflow: hidden; }
.feature__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature__date { position: absolute; top: 20px; left: 20px; background: var(--white); border: 1px solid var(--gold); padding: 10px 14px; text-align: center; color: var(--gold-ink); font-weight: 600; font-size: .95rem; line-height: 1.2; }
.feature__date span { display: block; font-family: var(--f-display); font-size: 2.4rem; color: var(--green); font-weight: 400; line-height: 1; }
.feature__body { padding: clamp(28px, 4vw, 48px); }
.feature__label { color: var(--gold-ink); font-weight: 700; margin: 0 0 8px; }
.feature__body h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 12px; }
.feature__body h3 a { color: var(--green); text-decoration: none; }
.feature__body h3 a:hover { text-decoration: underline; }
.feature__body > p { color: var(--muted); }
.feature__meta { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 10px; }
.feature__meta li { display: flex; gap: 10px; align-items: center; }
.feature__meta svg { width: 20px; height: 20px; color: var(--gold-ink); flex: none; }
.events-list--after { margin-top: 32px; }
@media (max-width: 860px) { .feature { grid-template-columns: minmax(0, 1fr); } .feature__img { min-height: 0; aspect-ratio: 16 / 9; } }

/* ---------- Goals band ---------- */
.goals { position: relative; overflow: hidden; background: var(--green); color: var(--white); padding: clamp(56px, 7vw, 88px) 0; }
.goals .lattice { color: var(--gold); opacity: .12; }
.goals .wrap { position: relative; }
.goals h2 { color: var(--white); margin-bottom: clamp(28px, 4vw, 44px); }
.goals__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.goals__list li { border-top: 1px solid rgba(201,162,64,.6); padding-top: 18px; }
.goals__num { display: block; font-family: var(--f-display); font-size: clamp(2.8rem, 5vw, 4rem); line-height: 1; color: var(--gold-soft); }
.goals__label { display: block; margin-top: 8px; color: rgba(255,255,255,.88); max-width: 22ch; }
@media (max-width: 860px) { .goals__list { grid-template-columns: 1fr 1fr; gap: 32px 24px; } }

/* ---------- WhatsApp band ---------- */
.whatsapp { background: var(--gold); }
.whatsapp__inner { display: flex; align-items: center; gap: 16px 24px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.whatsapp__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: var(--white); flex: none; }
.whatsapp__icon svg { width: 22px; height: 22px; }
.whatsapp p { margin: 0; flex: 1 1 260px; color: var(--green-deep); font-weight: 600; font-size: 1.15rem; }

/* ---------- Page banner ---------- */
.banner { position: relative; background: var(--green); color: var(--white); overflow: hidden; }
.banner .lattice { color: var(--gold); opacity: .16; -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 90%); mask-image: linear-gradient(90deg, transparent 35%, #000 90%); }
.banner .wrap { position: relative; padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(40px, 6vw, 72px); }
.banner h1 { color: var(--white); margin: 0; font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.banner p { color: rgba(255,255,255,.85); margin: 12px 0 0; max-width: 60ch; font-size: 1.15rem; }
.crumbs { font-size: .95rem; margin-bottom: 12px; color: var(--gold-soft); }
.crumbs a { color: var(--gold-soft); }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.pillar { border-top: 2px solid var(--gold); padding-top: 24px; }
.pillar svg { width: 40px; height: 40px; color: var(--gold-ink); margin-bottom: 16px; }
.pillar h3 { margin-bottom: .35em; }
.pillar p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- About split ---------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.facts { margin: 0; padding: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; color: var(--green); }
.facts dd { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .facts div { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Events (program listing) ---------- */
.events-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.event-row { display: grid; grid-template-columns: 96px 1fr auto; gap: clamp(16px, 3vw, 40px); align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.event-date { text-align: center; border: 1px solid var(--gold); padding: 10px 6px; background: var(--white); }
.event-date__day { display: block; font-family: var(--f-display); font-size: 2.4rem; line-height: 1; color: var(--green); }
.event-date__mon { display: block; font-size: .95rem; font-weight: 600; color: var(--gold-ink); margin-top: 4px; }
.event-row h3 { margin: 0 0 6px; }
.event-row h3 a { color: var(--green); text-decoration: none; }
.event-row h3 a:hover { text-decoration: underline; }
.event-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; color: var(--muted); font-size: 1rem; margin: 0; }
.event-meta span { display: inline-flex; align-items: center; gap: 6px; }
.event-meta svg { width: 16px; height: 16px; color: var(--gold-ink); flex: none; }
.event-row--past .event-date { border-color: var(--line); }
.event-row--past .event-date__day { color: var(--muted); }
@media (max-width: 680px) {
	.event-row { grid-template-columns: 72px 1fr; }
	.event-row .btn { grid-column: 2; justify-self: start; min-height: 42px; padding: 8px 18px; }
	.event-date__day { font-size: 1.9rem; }
}
.empty { padding: 32px; border: 1px dashed var(--line); color: var(--muted); background: var(--white); }
.empty p:last-child { margin: 0; }

/* ---------- Board (arch portraits) ---------- */
.board-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 40px) clamp(16px, 2.5vw, 32px); }
@media (max-width: 1000px) { .board-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .board-grid { grid-template-columns: repeat(2, 1fr); } }
.member { text-decoration: none; color: inherit; display: block; }
.arch {
	--arch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 125' preserveAspectRatio='none'%3E%3Cpath d='M0 125V46C0 22 28 9 50 0c22 9 50 22 50 46v79z'/%3E%3C/svg%3E");
	position: relative; aspect-ratio: 4 / 5; background: var(--gold); padding: 3px;
	-webkit-mask: var(--arch) center / 100% 100% no-repeat; mask: var(--arch) center / 100% 100% no-repeat;
}
.arch__img {
	width: 100%; height: 100%; background: var(--sage);
	-webkit-mask: var(--arch) center / 100% 100% no-repeat; mask: var(--arch) center / 100% 100% no-repeat;
	overflow: hidden;
}
.arch__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .4s ease; }
.member:hover .arch__img img { transform: scale(1.03); }
.arch__initials { width: 100%; height: 100%; display: grid; place-items: center; background: var(--green); color: var(--gold-soft); font-family: var(--f-display); font-size: clamp(2rem, 5vw, 3rem); }
.member__name { font-family: var(--f-display); font-size: 1.3rem; color: var(--green); margin: 16px 0 2px; line-height: 1.2; }
.member__cred { color: var(--muted); font-size: .98rem; margin: 0; }
.member__role { color: var(--gold-ink); font-weight: 700; font-size: .98rem; margin: 4px 0 0; }
.member:hover .member__name { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

.profile { display: grid; grid-template-columns: 340px 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.profile .arch { max-width: 340px; }
.profile__role { font-weight: 700; color: var(--gold-ink); margin: 0 0 4px; }
@media (max-width: 800px) { .profile { grid-template-columns: 1fr; } .profile .arch { max-width: 260px; } }

/* ---------- Gallery ---------- */
.moments { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(160px, 15vw)); gap: 8px; }
.moments a:first-child { grid-row: span 2; }
.moments a { display: block; overflow: hidden; background: var(--sage); }
.moments img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.moments a:hover img { transform: scale(1.04); }
@media (max-width: 680px) { .moments { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 140px; } .moments a:first-child { grid-column: span 2; grid-row: span 1; } }

.albums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
@media (max-width: 900px) { .albums { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .albums { grid-template-columns: 1fr; } }
.album { text-decoration: none; color: inherit; }
.album__img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--sage); }
.album__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.album:hover .album__img img { transform: scale(1.04); }
.album h3 { margin: 14px 0 2px; font-size: 1.35rem; }
.album p { margin: 0; color: var(--muted); font-size: 1rem; }

.pargv-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.pargv-gallery a { aspect-ratio: 1; overflow: hidden; display: block; }
.pargv-gallery img { width: 100%; height: 100%; object-fit: cover; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0, 20, 9, .94); display: none; align-items: center; justify-content: center; padding: 56px 16px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--white); cursor: pointer; padding: 12px; }
.lightbox button svg { width: 32px; height: 32px; }
.lightbox__close { top: 8px; right: 8px; }
.lightbox__prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 4px; top: 50%; transform: translateY(-50%); }

/* ---------- Sponsors ---------- */
.sponsors { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.sponsor { display: grid; place-items: center; min-height: 120px; padding: 20px; background: var(--white); border: 1px solid var(--line); text-align: center; text-decoration: none; color: var(--green); font-family: var(--f-display); font-size: 1.15rem; }
.sponsor img { max-height: 72px; width: auto; object-fit: contain; }
a.sponsor:hover { border-color: var(--gold); }
.tier-title { font-size: 1.4rem; margin: 40px 0 16px; }
.tier-title:first-child { margin-top: 0; }
.invite { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--gold); background: var(--white); }
.invite h3 { margin: 0 0 6px; }
.invite p { margin: 0; color: var(--muted); }
@media (max-width: 680px) { .invite { grid-template-columns: 1fr; } }

/* ---------- News ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
@media (max-width: 900px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; } }
.post-card a { text-decoration: none; color: inherit; }
.post-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sage); margin-bottom: 16px; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card time { color: var(--gold-ink); font-weight: 600; font-size: .95rem; }
.post-card h3 { margin: 6px 0 8px; }
.post-card a:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.post-card p { color: var(--muted); margin: 0; font-size: 1.02rem; }
.pagination { margin-top: 48px; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 44px; min-height: 44px; display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); text-decoration: none; color: var(--green); }
.pagination .current { background: var(--green); color: var(--white); border-color: var(--green); }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; background: var(--green); color: var(--white); }
.cta .lattice { color: var(--gold); opacity: .14; }
.cta .wrap { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(56px, 7vw, 88px); }
.cta h2 { color: var(--white); margin-bottom: .3em; }
.cta p { color: rgba(255,255,255,.85); margin: 0; max-width: 56ch; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 800px) { .cta .wrap { grid-template-columns: 1fr; } }

/* ---------- Content (editor output) ---------- */
.content > * { max-width: 72ch; }
.content > .alignwide, .content > .wp-block-gallery, .content > .wp-block-columns, .content > figure, .content > .wp-block-table { max-width: none; }
.content h2 { margin-top: 1.6em; }
.content h3 { margin-top: 1.4em; }
.content ul, .content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.content li { margin-bottom: .4em; }
.content li::marker { color: var(--gold-ink); }
.content blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--gold); font-family: var(--f-display); font-size: 1.35rem; color: var(--green); }
.content img { border-radius: 2px; }
.content .wp-block-button__link { background: var(--green); color: var(--white); border-radius: var(--radius); font-weight: 600; padding: 12px 24px; text-decoration: none; }
.content .wp-block-button__link:hover { background: var(--green-2); }
.content table { border-collapse: collapse; width: 100%; }
.content th, .content td { border-bottom: 1px solid var(--line); padding: 12px 8px; text-align: left; }
.content th { color: var(--green); }
.wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: 0; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { color: var(--muted); font-size: .95rem; }

/* ---------- Starter page blocks (Wide page template) ---------- */
.content--wide > * { max-width: 72ch; }
.content--wide > .wp-block-columns, .content--wide > .wp-block-group, .content--wide > .wp-block-table, .content--wide > .pargv-steps, .content--wide > .wp-block-buttons { max-width: none; }
.content > h2:first-child, .content--wide > h2:first-child { margin-top: 0; }
.content .pargv-lead { font-size: clamp(1.2rem, 1.8vw, 1.4rem); line-height: 1.5; color: var(--ink); margin-bottom: 2em; max-width: 60ch; }
.content .pargv-small { font-size: .95rem; color: var(--muted); }
.content .pargv-more a { font-weight: 700; }
.content .pargv-meta { color: var(--muted); font-size: 1rem; line-height: 1.7; }
.content .pargv-meta strong { color: var(--green); }
.content .wp-block-columns { gap: clamp(24px, 3vw, 40px); margin: 0 0 clamp(24px, 3vw, 40px); }
.content .pargv-cards > .wp-block-column { border-top: 2px solid var(--gold); padding-top: 20px; }
.content .pargv-cards h3, .content .pargv-program h3, .content .pargv-linkcols h3, .content .wp-block-group h3 { margin-top: 0; }
.content .pargv-cards p:last-child { margin-bottom: 0; }
.content .pargv-program { border-top: 1px solid var(--line); padding-top: clamp(24px, 3vw, 36px); margin-bottom: clamp(24px, 3vw, 36px); }
.content .pargv-program + h2 { margin-top: 2em; }
.content .pargv-program ul { margin-bottom: 1em; }
.content .pargv-panel { background: var(--sage); border-left: 3px solid var(--gold); padding: clamp(24px, 4vw, 48px); margin: 2.5em 0 0; }
.content .pargv-panel > * { max-width: 66ch; margin-left: 0 !important; }
.content .pargv-panel h2 { margin-top: 0; }

/* Timeline: used only for real sequences (story, application steps) */
.content ol.pargv-steps { list-style: none; padding: 0; margin: 0 0 2.5em; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; }
.content ol.pargv-steps > li { counter-increment: step; position: relative; padding: 64px 24px 0 0; margin: 0; color: var(--muted); }
.content ol.pargv-steps > li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--gold); background: var(--white); color: var(--green); font-family: var(--f-display); font-size: 1.3rem; z-index: 1; border-radius: 50%; }
.content ol.pargv-steps > li::after { content: ""; position: absolute; top: 22px; left: 44px; right: 0; height: 1px; background: var(--gold); opacity: .6; }
.content ol.pargv-steps > li:last-child::after { display: none; }
.content ol.pargv-steps strong { display: block; color: var(--green); font-size: 1.05rem; margin-bottom: 4px; }
@media (max-width: 760px) {
	.content ol.pargv-steps { grid-template-columns: 1fr; }
	.content ol.pargv-steps > li { padding: 4px 0 28px 64px; }
	.content ol.pargv-steps > li::after { top: 44px; bottom: 0; left: 22px; right: auto; width: 1px; height: auto; }
}

/* Tables */
.content .wp-block-table { margin: 0 0 2em; overflow-x: auto; }
.content .wp-block-table table { border-top: 2px solid var(--gold); }
.content .wp-block-table thead { border-bottom: 0; }
.content .wp-block-table th { font-weight: 700; color: var(--green); background: var(--sage); border: 0; border-bottom: 1px solid var(--line); padding: 14px 12px; }
.content .wp-block-table td { border: 0; border-bottom: 1px solid var(--line); padding: 14px 12px; vertical-align: top; }
.content .pargv-facts td:first-child { width: 30%; color: var(--green); }
.content .pargv-tiers td:first-child { width: 22%; color: var(--green); }
.content .pargv-tiers td:nth-child(2) { width: 20%; font-family: var(--f-display); font-size: 1.2rem; color: var(--green); }
.content .pargv-tiers table.has-fixed-layout { table-layout: auto; }
@media (max-width: 600px) {
	.content .pargv-tiers table, .content .pargv-tiers tbody, .content .pargv-tiers tr, .content .pargv-tiers td { display: block; width: auto !important; }
	.content .pargv-tiers thead { display: none; }
	.content .pargv-tiers tr { border-bottom: 1px solid var(--line); padding: 12px 0; }
	.content .pargv-tiers td { border: 0; padding: 2px 0; }
}

/* Link lists */
.content .pargv-links { list-style: none; padding: 0; margin: 0; }
.content .pargv-links li { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.content .pargv-links a { font-weight: 600; }
.content .pargv-links span { display: block; color: var(--muted); font-size: .98rem; }
.content .pargv-linkcols > .wp-block-column { border-top: 2px solid var(--gold); padding-top: 20px; }

/* Buttons block */
.content .wp-block-buttons { gap: 12px; margin-top: 1.5em; }
.content .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--green); border: 2px solid var(--green); padding: 10px 22px; }
.content .wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--green); color: var(--white); }

/* ---------- President letter ---------- */
.letter { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.letter__from { position: sticky; top: 120px; }
.letter__from .arch { max-width: 280px; }
.letter__body .content > p { font-size: 1.15rem; line-height: 1.75; }
.letter__body .content > p.pargv-lead { font-family: var(--f-display); font-size: clamp(1.4rem, 2.2vw, 1.75rem); color: var(--green); line-height: 1.4; }
.letter__sign { margin: 8px 0 0; font-family: var(--f-display); font-size: 1.6rem; color: var(--green); }
.letter__sign span { display: block; font-family: var(--f-body); font-size: 1rem; color: var(--gold-ink); font-weight: 700; }
@media (max-width: 800px) { .letter { grid-template-columns: minmax(0, 1fr); } .letter__from { position: static; display: grid; grid-template-columns: 120px 1fr; gap: 0 20px; align-items: end; } .letter__from .arch { grid-row: span 2; } .letter__from .member__name { margin-top: 0; } }

/* Manifesto principles: numbered articles */
.content ol.pargv-manifesto { list-style: none; padding: 0; margin: 0 0 2.5em; counter-reset: art; max-width: 72ch; }
.content ol.pargv-manifesto > li { counter-increment: art; position: relative; padding: 0 0 22px 72px; margin: 0 0 22px; border-bottom: 1px solid var(--line); color: var(--muted); }
.content ol.pargv-manifesto > li::before { content: counter(art); position: absolute; left: 0; top: -6px; font-family: var(--f-display); font-size: 2.6rem; line-height: 1; color: var(--gold); }
.content ol.pargv-manifesto strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; color: var(--green); margin-bottom: 4px; }
@media (max-width: 520px) { .content ol.pargv-manifesto > li { padding-left: 52px; } .content ol.pargv-manifesto > li::before { font-size: 2rem; } }

/* ---------- Event detail ---------- */
.detail__media { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 32px; }
.detail__media figure { margin: 0; }
.detail__media video, .detail__media img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #000; border: 1px solid var(--line); }
.detail__media figcaption { margin-top: 8px; }
.detail__aside .btn { display: flex; }
.detail { display: grid; grid-template-columns: 1fr 340px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.detail__aside { border: 1px solid var(--line); padding: 28px; position: sticky; top: 110px; }
.detail__aside dl { margin: 0 0 24px; }
.detail__aside dt { font-weight: 700; color: var(--green); margin-top: 14px; }
.detail__aside dt:first-child { margin-top: 0; }
.detail__aside dd { margin: 2px 0 0; color: var(--muted); }
.detail__aside .btn { width: 100%; }
.detail__img { margin-bottom: 32px; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } .detail__aside { position: static; } }

/* ---------- Forms ---------- */
.form-layout { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .form-layout { grid-template-columns: 1fr; } }
.pargv-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pargv-form .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .pargv-form { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 6px; color: var(--ink); font-size: 1rem; }
.field .req { color: #A1261B; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=number], .field select, .field textarea {
	width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--ink);
	background: var(--white); border: 1px solid #AEBBB1; border-radius: var(--radius);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(201,162,64,.45); }
.field fieldset { border: 0; padding: 0; margin: 0; }
.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 600px) { .choices { grid-template-columns: 1fr; } }
.field .choice { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border: 1px solid #AEBBB1; border-radius: var(--radius); cursor: pointer; font-weight: 400 !important; }
.choice:has(input:checked) { border-color: var(--green); background: var(--sage); box-shadow: inset 0 0 0 1px var(--green); }
.choice input { margin-top: 5px; accent-color: var(--green); }
.choice strong { display: block; color: var(--green); }
.choice small { color: var(--muted); font-size: .92rem; }
.field .check, .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.check input { margin-top: 6px; accent-color: var(--green); }
.hp { position: absolute; left: -9999px; }
.notice { padding: 16px 20px; border-left: 4px solid var(--green); background: var(--sage); margin-bottom: 24px; }
.notice--error { border-color: #A1261B; background: #FBEDEB; }
.notice p { margin: 0; }
.contact-list { list-style: none; padding: 0; margin: 24px 0; }
.contact-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list svg { width: 22px; height: 22px; color: var(--gold-ink); flex: none; margin-top: 3px; }
.contact-list strong { display: block; color: var(--green); }
.contact-list a { color: var(--ink); }
.map { margin-top: 24px; aspect-ratio: 4 / 3; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; }
.tiers { list-style: none; padding: 0; margin: 24px 0; border-top: 1px solid var(--line); }
.tiers li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.tiers strong { color: var(--green); }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--green-deep); color: rgba(255,255,255,.8); font-size: 1rem; }
.site-footer .lattice { color: var(--gold); opacity: .07; }
.site-footer a { color: rgba(255,255,255,.88); text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); text-decoration: underline; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-top: clamp(56px, 7vw, 80px); padding-bottom: 48px; }
.footer-brand img { width: 88px; margin-bottom: 16px; }
.footer-brand p { max-width: 36ch; }
.site-footer h4 { color: var(--gold-soft); font-size: 1.15rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(201,162,64,.5); border-radius: 50%; }
.social a:hover { background: var(--gold); color: var(--green-deep); text-decoration: none; }
.social svg { width: 18px; height: 18px; }
.footer-bottom { position: relative; border-top: 1px solid rgba(201,162,64,.3); padding: 20px 0; font-size: .92rem; }
.legal { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-bottom .legal li { margin: 0; }
.footer-bottom .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- 404 ---------- */
.notfound { text-align: center; }
.notfound .lead { margin: 0 auto 24px; }
