/**
 * Get Involved page — hero + "Ways to Get Involved" are real blocks;
 * the open-roles grid is the dynamic nashon/opportunities-list pattern
 * (patterns/opportunities-list.php, a paginated "opportunity" CPT
 * query) and the closing form is nashon/get-involved-form-full (same
 * handler/behaviour as the homepage's mini form). An admin manages
 * roles entirely from wp-admin → Opportunities — no code or page edit
 * required, and setting "Slots Open" to 0 retires a role automatically.
 * .section-eyebrow, .page-hero-cover, and .nashon-pager are shared
 * sitewide (style.css).
 */

/* Shared split-stroke h2 treatment for every section heading on this
   page. */
.ways-section h2,
.opportunities-header-section h2,
.membership-card h2 {
	margin: 0 0 16px;
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(2rem, 3.6vw, 2.9rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.1;
	text-transform: uppercase;
	text-wrap: balance;
}
.ways-section h2 span,
.opportunities-header-section h2 span,
.membership-card h2 span {
	color: transparent;
	-webkit-text-stroke: 1.5px #000;
}

/* ===== Ways to Get Involved — 4-up icon card grid ===== */
.ways-section {
	padding: clamp(14px, 1.8vw, 24px) 8.75vw;
	background: var(--wp--preset--color--base);
	text-align: center;
}
.ways-section .section-eyebrow {
	margin-left: auto;
	margin-right: auto;
}
.ways-grid.wp-block-group {
	max-width: 1320px;
	margin: 40px auto 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	text-align: left;
}
.way-card.wp-block-group {
	display: flex;
	flex-direction: column;
	padding: clamp(26px, 3vw, 32px);
	border-radius: 18px;
	background: var(--wp--preset--color--paper);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.way-card.wp-block-group:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 32px rgba(40, 40, 40, 0.12);
}
.way-card__icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin-bottom: 18px;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}
.way-card h3.wp-block-heading {
	margin: 0 0 8px;
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.1rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: -0.01em;
}
.way-card p {
	margin: 0 0 6px;
	color: var(--wp--preset--color--muted);
	font-size: 0.92rem;
	line-height: 1.6;
}
.way-card__link {
	margin-top: auto;
	padding-top: 10px;
}
.way-card__link a {
	color: var(--wp--preset--color--primary);
	font-size: 0.88rem;
	font-weight: 800;
	text-decoration: none;
}
.way-card__link a:hover {
	text-decoration: underline;
}
@media (max-width: 1024px) {
	.ways-grid.wp-block-group {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 560px) {
	.ways-grid.wp-block-group {
		grid-template-columns: 1fr;
	}
}

/* ===== Open Roles header + grid ===== */
.opportunities-header-section {
	padding: clamp(14px, 1.8vw, 19px) 8.75vw clamp(5px, 0.6vw, 7px);
	background: rgba(49, 161, 255, 0.06);
	text-align: center;
}
.opportunities-header-section .section-eyebrow {
	margin-left: auto;
	margin-right: auto;
}
.opportunities-header-text {
	max-width: 40rem;
	margin: 0 auto;
	color: var(--wp--preset--color--muted);
	font-size: 1.05rem;
	line-height: 1.7;
}
.opportunities-section {
	padding: clamp(7px, 0.9vw, 12px) 8.75vw clamp(17px, 2.1vw, 29px);
	background: rgba(49, 161, 255, 0.06);
}
.opportunities-section__empty {
	max-width: 1320px;
	margin: 0 auto;
	color: var(--wp--preset--color--muted);
	text-align: center;
}
.opportunities-grid {
	max-width: 1320px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}
.opportunity-card {
	display: flex;
	flex-direction: column;
	padding: clamp(24px, 3vw, 28px);
	border-radius: 18px;
	background: var(--wp--preset--color--base);
	box-shadow: 0 12px 28px rgba(40, 40, 40, 0.08);
}
.opportunity-card__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}
.opportunity-card__title {
	margin: 0;
	color: var(--wp--preset--color--contrast);
	font-size: 1.1rem;
	font-weight: 800;
	line-height: 1.3;
}
.opportunity-card__badge {
	flex: none;
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(49, 161, 255, 0.12);
	color: var(--wp--preset--color--primary);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	white-space: nowrap;
}
.opportunity-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin: 0 0 12px;
	color: #a6690a;
	font-size: 0.82rem;
	font-weight: 700;
}
.opportunity-card__desc {
	margin: 0 0 16px;
	color: var(--wp--preset--color--muted);
	font-size: 0.92rem;
	line-height: 1.6;
}
.opportunity-card__desc p {
	margin: 0 0 8px;
}
.opportunity-card__status {
	margin: auto 0 0;
	padding-top: 8px;
	font-size: 0.85rem;
	font-weight: 700;
}
.opportunity-card__status--success {
	color: #1a8de6;
}
.opportunity-card__status--error {
	color: #c0392b;
}
.opportunity-card__form {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: auto;
	padding-top: 8px;
}
.opportunity-card__form input {
	flex: 1;
	min-width: 120px;
	padding: 9px 14px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background: var(--wp--preset--color--base);
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.85rem;
}
.opportunity-card__form input:focus {
	outline: none;
	border-color: var(--wp--preset--color--primary);
}
.opportunity-card__submit.btn.btn--rect .wp-block-button__link,
button.opportunity-card__submit {
	padding: 9px 20px;
	font-size: 0.78rem;
}
@media (max-width: 1024px) {
	.opportunities-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 640px) {
	.opportunities-grid {
		grid-template-columns: 1fr;
	}
}

/* ===== Membership / general interest form — closing section, needs
   the light-background + extra bottom clearance every pre-footer
   section follows (.site-footer::before is a torn-paper graphic that
   transitions white-to-dark). ===== */
.membership-section {
	/* Bottom padding stays generous on purpose — this is the section
	   directly before the footer, and .site-footer::before (the
	   torn-paper divider) needs that clearance or it visually cuts into
	   the last card. */
	padding: clamp(14px, 1.8vw, 24px) 8.75vw clamp(88px, 10vw, 150px);
	background: var(--wp--preset--color--base);
}
.membership-card {
	max-width: 720px;
	margin: 0 auto;
	padding: clamp(32px, 4vw, 48px);
	border-radius: 24px;
	background: var(--wp--preset--color--paper);
	box-shadow: 0 20px 44px rgba(40, 40, 40, 0.1);
	text-align: center;
}
.membership-card__head .section-eyebrow {
	margin-left: auto;
	margin-right: auto;
}
.membership-card__intro {
	max-width: 34rem;
	margin: 0 auto 28px;
	color: var(--wp--preset--color--muted);
	font-size: 1rem;
	line-height: 1.7;
}
.membership-card__status {
	margin: 0 0 16px;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 0.9rem;
	text-align: left;
}
.membership-card__status--success {
	background: rgba(49, 161, 255, 0.1);
	color: var(--wp--preset--color--primary);
}
.membership-card__status--error {
	background: rgba(192, 57, 43, 0.1);
	color: #c0392b;
}
.membership-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
	text-align: left;
}
.membership-form__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}
.membership-form input,
.membership-form select,
.membership-form textarea {
	width: 100%;
	padding: 13px 16px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 8px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.92rem;
}
.membership-form select {
	color: var(--wp--preset--color--muted);
}
.membership-form textarea {
	resize: vertical;
}
.membership-form input:focus,
.membership-form select:focus,
.membership-form textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--primary);
}
.membership-form .btn {
	align-self: center;
	margin-top: 4px;
}
@media (max-width: 560px) {
	.membership-form__row {
		grid-template-columns: 1fr;
	}
}

/* ===== Job Openings — patterns/jobs-list.php. The whole section only
   renders when at least one job is published (the pattern returns
   nothing otherwise), so there's no empty state to style here. ===== */
.jobs-header-section {
	padding: clamp(14px, 1.8vw, 19px) 8.75vw clamp(5px, 0.6vw, 7px);
	background: rgba(253, 169, 3, 0.08);
	text-align: center;
}
.jobs-header-section .section-eyebrow {
	margin-left: auto;
	margin-right: auto;
}
.jobs-header-section h2 {
	margin: 0 0 16px;
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(2rem, 3.6vw, 2.9rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.1;
	text-transform: uppercase;
	text-wrap: balance;
}
.jobs-header-section h2 span {
	color: transparent;
	-webkit-text-stroke: 1.5px #000;
}
.jobs-header-text {
	max-width: 40rem;
	margin: 0 auto;
	color: var(--wp--preset--color--muted);
	font-size: 1.05rem;
	line-height: 1.7;
}

.jobs-section {
	padding: clamp(7px, 0.9vw, 12px) 8.75vw clamp(17px, 2.1vw, 29px);
	background: rgba(253, 169, 3, 0.08);
}
.jobs-grid {
	max-width: 1320px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}
.job-card {
	display: flex;
	flex-direction: column;
	padding: clamp(24px, 3vw, 32px);
	border-radius: 18px;
	background: var(--wp--preset--color--base);
	box-shadow: 0 12px 28px rgba(40, 40, 40, 0.08);
}
.job-card__title {
	margin: 0 0 8px;
	color: var(--wp--preset--color--contrast);
	font-size: 1.2rem;
	font-weight: 800;
}
.job-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin: 0 0 14px;
	color: #a6690a;
	font-size: 0.82rem;
	font-weight: 700;
}
.job-card__desc {
	margin: 0 0 16px;
	color: var(--wp--preset--color--muted);
	font-size: 0.92rem;
	line-height: 1.6;
}
.job-card__desc p {
	margin: 0 0 8px;
}
.job-card__apply-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: auto;
	padding: 12px 24px;
	border-radius: 999px;
	background: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--contrast);
	font-size: 0.85rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-decoration: none;
	text-transform: uppercase;
	transition: background 0.2s ease;
}
.job-card__apply-link:hover {
	background: #e59a03;
}
.job-card__status {
	margin: auto 0 0;
	padding-top: 8px;
	font-size: 0.85rem;
	font-weight: 700;
}
.job-card__status--success {
	color: #1a8de6;
}
.job-card__status--error {
	color: #c0392b;
}
.job-card__form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: auto;
	padding-top: 10px;
}
.job-card__form-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.job-card__form input,
.job-card__form textarea {
	flex: 1;
	min-width: 140px;
	padding: 9px 14px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 10px;
	background: var(--wp--preset--color--base);
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.85rem;
}
.job-card__form textarea {
	width: 100%;
	resize: vertical;
}
.job-card__form input:focus,
.job-card__form textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--primary);
}
.job-card__submit.btn.btn--rect .wp-block-button__link,
button.job-card__submit {
	align-self: flex-start;
	padding: 10px 24px;
	font-size: 0.8rem;
}
@media (max-width: 700px) {
	.jobs-grid {
		grid-template-columns: 1fr;
	}
}
