/**
 * Single Sector Working Group page — templates/single-swg.html +
 * patterns/swg-meta.php. Same alternating-tint section rhythm as
 * every other content page (Agenda, About, the SWG index): a full
 * cover hero (shares .page-hero-cover from style.css), then Overview
 * → Key Activities → Gallery → the shared CTA card, the last two
 * appearing only once an admin has actually filled them in.
 */

/* ===== Hero — .page-hero-cover itself (torn edge, dim overlay,
   eyebrow) is shared sitewide; this just sizes the dynamic post title
   the same way .page-hero-cover__title is sized elsewhere, since a
   wp:post-title block doesn't carry the wp-block-heading class that
   selector targets. ===== */
.swg-single-cover__title.wp-block-post-title {
	margin: 0 auto;
	max-width: 900px;
	color: var(--wp--preset--color--base);
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(2.4rem, 5vw, 4rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.05;
	text-transform: uppercase;
	text-wrap: balance;
}

/* Shared split-stroke h2 treatment for every section on this page. */
.swg-overview-section h2.wp-block-heading,
.swg-activities-section h2.wp-block-heading,
.swg-gallery-section h2.wp-block-heading {
	margin: 0 0 20px;
	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;
}
.swg-overview-section h2.wp-block-heading span,
.swg-activities-section h2.wp-block-heading span,
.swg-gallery-section h2.wp-block-heading span {
	color: transparent;
	-webkit-text-stroke: 1.5px #000;
}

/* ===== Overview ===== */
.swg-overview-section {
	padding: clamp(48px, 6vw, 80px) 8.75vw;
	background: var(--wp--preset--color--base);
	text-align: center;
}
.swg-overview-section .section-eyebrow {
	margin-left: auto;
	margin-right: auto;
}
.swg-overview-lede {
	max-width: 42rem;
	margin: 0 auto 28px;
	color: var(--wp--preset--color--contrast);
	font-size: 1.2rem;
	font-weight: 600;
	line-height: 1.6;
}
.swg-overview-content.wp-block-post-content {
	max-width: 42rem;
	margin: 0 auto;
	text-align: left;
	color: var(--wp--preset--color--muted);
	font-size: 1.02rem;
	line-height: 1.75;
}
.swg-overview-content.wp-block-post-content p {
	margin: 0 0 20px;
}

/* ===== Key Activities — amber-tinted, alternating with Overview's
   plain white and Gallery's blue, same rhythm as the SWG index page. ===== */
.swg-activities-section {
	padding: clamp(48px, 6vw, 80px) 8.75vw;
	background: rgba(253, 169, 3, 0.08);
	text-align: center;
}
.swg-activities-section .section-eyebrow {
	margin-left: auto;
	margin-right: auto;
}
.swg-activities-grid {
	max-width: 900px;
	margin: 36px auto 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	text-align: left;
}
.swg-activities-card {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 20px 22px;
	border-radius: 14px;
	background: var(--wp--preset--color--base);
	box-shadow: 0 12px 28px rgba(40, 40, 40, 0.08);
}
.swg-activities-card__icon {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(253, 169, 3, 0.16);
	color: var(--wp--preset--color--secondary);
}
.swg-activities-card p {
	margin: 4px 0 0;
	color: var(--wp--preset--color--contrast);
	font-size: 0.98rem;
	font-weight: 600;
	line-height: 1.55;
}

/* ===== Gallery — blue-tinted. ===== */
.swg-gallery-section {
	padding: clamp(48px, 6vw, 80px) 8.75vw;
	background: rgba(49, 161, 255, 0.06);
	text-align: center;
}
.swg-gallery-section .section-eyebrow {
	margin-left: auto;
	margin-right: auto;
}
.swg-gallery-grid {
	max-width: 1100px;
	margin: 36px auto 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}
.swg-gallery-photo {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: 14px;
	object-fit: cover;
	box-shadow: 0 12px 24px rgba(40, 40, 40, 0.14);
}

/* ===== CTA — .page-cta-section/.page-cta-card are shared sitewide;
   this page's card has two buttons (a solid + a ghost), so the ghost
   variant is defined here since no other page needs it yet. ===== */
.page-cta-card__ghost .wp-block-button__link {
	background: transparent;
	border: 1.5px solid rgba(255, 255, 255, 0.5);
	color: var(--wp--preset--color--base);
}
.page-cta-card__ghost .wp-block-button__link:hover {
	background: var(--wp--preset--color--base);
	border-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}

@media (max-width: 700px) {
	.swg-activities-grid {
		grid-template-columns: 1fr;
	}
	.swg-gallery-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 480px) {
	.swg-gallery-grid {
		grid-template-columns: 1fr;
	}
}
