/*
Theme Name: Seniors for Climate BC
Template: twentytwentyfive
Author: Amanda Heredia
Description: Child theme of Twenty Twenty-Five carrying the Seniors for Climate BC design — navy/lime, Montserrat, 18px base, WCAG AA contrast, 44–48px tap targets.
Version: 1.5.2
Requires at least: 6.7
Text Domain: sfc-bc
*/

/* ------------------------------------------------------------
   Basics
   ------------------------------------------------------------ */

/* The original site's root size is 18px, so its rem-based measurements
   (nav text, headings, the 68rem content column) depend on it. */
html { font-size: 18px; }

:root {
	--sfc-navy: var(--wp--preset--color--primary);
	--sfc-lime: var(--wp--preset--color--accent);
	--sfc-band: var(--wp--preset--color--band);
	--sfc-rule: var(--wp--preset--color--band-deep);
	--sfc-link: var(--wp--preset--color--link);
	--sfc-card: var(--wp--preset--color--card-rule);
	--sfc-measure: 40rem;
	--sfc-measure-wide: 64rem;
	--sfc-content: 68rem;
}

:focus-visible {
	outline: 3px solid #0085FF;
	outline-offset: 3px;
	border-radius: 2px;
}

a { text-decoration-thickness: 2px; text-underline-offset: 3px; }

.wp-element-button,
.wp-block-button__link {
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.is-style-outline > .wp-block-button__link,
.wp-block-button__link.is-style-outline {
	background: transparent;
	color: var(--sfc-navy);
	border: 2px solid var(--sfc-navy);
}

.is-style-outline > .wp-block-button__link:hover {
	background: var(--sfc-lime);
	border-color: var(--sfc-lime);
	color: var(--sfc-navy);
}

/* ------------------------------------------------------------
   Masthead (parts/header.html)
   ------------------------------------------------------------ */

.sfc-masthead {
	background: var(--wp--preset--color--white);
	border-bottom: 4px solid var(--sfc-lime);
}

@media (min-width: 62.01rem) {
	.wp-site-blocks > header.wp-block-template-part,
	.wp-site-blocks > .wp-block-template-part:has(.sfc-masthead) {
		position: sticky;
		top: var(--wp-admin--admin-bar--height, 0px);
		z-index: 100;
		box-shadow: 0 4px 16px rgba(56, 80, 128, 0.1);
	}
}

.sfc-masthead-inner {
	padding-top: 0.8rem;
	padding-bottom: 0.8rem;
	gap: 1.5rem;
}

.sfc-brand { gap: 0.9rem !important; }
.sfc-brand .wp-block-image { margin: 0; }
.sfc-brand img { height: 58px !important; width: auto !important; display: block; }

.sfc-region {
	margin: 0;
	padding-left: 0.9rem;
	border-left: 2px solid var(--sfc-lime);
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.15;
	color: var(--sfc-navy);
	white-space: nowrap;
}

.sfc-nav-wrap { gap: 0.5rem; }

/* Navigation */
.sfc-nav { font-size: 0.85rem; font-weight: 600; gap: 0.25rem; }

.sfc-nav .wp-block-navigation-item__content {
	box-sizing: border-box;
	padding: 0.6rem 0.7rem;
	min-height: 44px;
	display: flex;
	align-items: center;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	border-radius: 6px;
}

.sfc-nav .wp-block-navigation-item__content:hover,
.sfc-nav .current-menu-item > .wp-block-navigation-item__content {
	background: var(--sfc-band);
	color: var(--sfc-navy);
}

.sfc-nav .current-menu-item > .wp-block-navigation-item__content {
	box-shadow: inset 0 -3px 0 var(--sfc-lime);
}

.sfc-nav .wp-block-navigation__submenu-icon {
	width: 2rem;
	height: 2rem;
	margin-left: -0.45rem;
	color: var(--sfc-navy);
}

.sfc-nav .wp-block-navigation__submenu-icon svg { width: 12px; height: 12px; stroke-width: 2; }

.sfc-nav .wp-block-navigation__submenu-container {
	min-width: 20rem !important;
	padding: 0.35rem;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--sfc-rule) !important;
	border-top: 4px solid var(--sfc-lime) !important;
	box-shadow: 0 12px 30px rgba(56, 80, 128, 0.18);
}

.sfc-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-size: 0.8rem;
	font-weight: 500;
	white-space: normal;
}

/* Header buttons */
.sfc-header-actions { gap: 0.5rem; }
.sfc-header-actions .wp-block-button__link {
	min-height: 44px;
	padding: 0.55rem 1rem;
	font-size: 0.8rem;
}
.sfc-btn-join .wp-block-button__link {
	background: var(--wp--preset--color--white);
	color: var(--sfc-navy);
	border: 2px solid var(--sfc-navy);
}
.sfc-btn-donate .wp-block-button__link {
	background: var(--sfc-lime);
	color: var(--sfc-navy);
	border: 2px solid var(--sfc-lime);
}
.sfc-btn-join .wp-block-button__link:hover,
.sfc-btn-donate .wp-block-button__link:hover {
	background: var(--sfc-navy);
	border-color: var(--sfc-navy);
	color: var(--wp--preset--color--white);
}

/* Mobile menu overlay */
.sfc-nav .wp-block-navigation__responsive-container-open,
.sfc-nav .wp-block-navigation__responsive-container-close {
	min-width: 48px;
	min-height: 48px;
	justify-content: center;
	border: 2px solid var(--sfc-navy);
	border-radius: 6px;
	color: var(--sfc-navy);
}

.sfc-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.25rem;
}

.sfc-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: 1rem;
	font-weight: 700;
	min-height: 48px;
}

.sfc-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	border: 0 !important;
	border-left: 5px solid var(--sfc-lime) !important;
	box-shadow: none;
	background: var(--sfc-band);
	min-width: 0 !important;
	padding: 0.35rem 0.5rem 0.45rem 1rem;
}

.sfc-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-size: 0.9rem;
	font-weight: 500;
}

/* ------------------------------------------------------------
   Interior page header (templates/page.html, single, archive)
   ------------------------------------------------------------ */

.sfc-page-head {
	background: var(--sfc-navy);
	border-bottom: 10px solid var(--sfc-lime);
	padding-top: 3.75rem;
	padding-bottom: 3.25rem;
	margin-block-start: 0 !important;
}

.sfc-page-head h1,
.sfc-page-head .wp-block-post-title,
.sfc-page-head .wp-block-query-title {
	color: var(--wp--preset--color--white);
	font-size: clamp(2.1rem, 5vw, 3.5rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.035em;
	max-width: 20ch;
	margin: 0;
}

.sfc-page-head.is-layout-constrained > *,
.wp-block-group.sfc-hero.is-layout-constrained > *,
.sfc-closing.is-layout-constrained > * {
	margin-left: max(0px, calc((100% - var(--sfc-content)) / 2)) !important;
	margin-right: auto !important;
}

.sfc-page-head .sfc-crumb {
	margin: 0 0 0.75rem;
	font-size: 0.8rem;
	color: var(--wp--preset--color--white);
}
.sfc-page-head .sfc-crumb a { color: var(--wp--preset--color--white); text-decoration-thickness: 1px; }
.sfc-page-head .sfc-crumb a:hover { color: var(--sfc-lime); }

.sfc-page-body {
	padding-top: 3rem;
	padding-bottom: 5rem;
	margin-block-start: 0 !important;
}

.sfc-front-body { margin-block-start: 0 !important; padding-bottom: 4rem; }

/* Reading measure: text stays at ~40rem, left-aligned with the content
   column, while cards and section labels use the wider measure.
   A text block set to Wide or Full in the editor is left out of this and
   spans the whole content column instead (rule below). */
.entry-content.is-layout-constrained > :is(p, ul, ol, h2, h3, h4, .wp-block-buttons, .sfc-coming-soon):not(.sfc-label):not(.sfc-section-title):not(.alignwide):not(.alignfull),
.sfc-page-body .entry-content > :is(p, ul, ol, h2, h3, h4, .wp-block-buttons):not(.sfc-label):not(.sfc-section-title):not(.alignwide):not(.alignfull) {
	max-width: var(--sfc-measure);
	margin-left: max(0px, calc((100% - var(--sfc-content)) / 2)) !important;
	margin-right: auto !important;
}

/* Text set to Wide or Full: the full content column, lined up with the
   logo and the header buttons. Not edge to edge — lines that long are
   hard to read. */
.entry-content > :is(p, ul, ol, h2, h3, h4, .wp-block-buttons, .sfc-coming-soon):is(.alignwide, .alignfull) {
	box-sizing: border-box;
	max-width: var(--sfc-content) !important;
	margin-left: max(0px, calc((100% - var(--sfc-content)) / 2)) !important;
	margin-right: auto !important;
}

.entry-content.is-layout-constrained > :is(.sfc-entries, .sfc-label, .sfc-section-title, .sfc-dir, .sfc-toc, .wp-block-query, .sfc-cards) {
	max-width: var(--sfc-measure-wide);
	margin-left: max(0px, calc((100% - var(--sfc-content)) / 2)) !important;
	margin-right: auto !important;
}

.sfc-page-body .entry-content > p:first-child {
	font-size: 1.15rem;
	line-height: 1.5;
}

.entry-content h2:not(.sfc-label):not(.sfc-section-title) { margin-top: 2.25rem; }
.entry-content h3:not(.sfc-label) { margin-top: 1.75rem; }
.entry-content li { margin-bottom: 0.5rem; }
.entry-content p a,
.entry-content li a { font-weight: 600; }
/* Links in running text are always underlined, including inside the
   parent theme's "Annotation" and "Subtitle" paragraph styles. */
.entry-content :is(p, li):not(.sfc-entry-title):not(.sfc-dir-title) a:not(.wp-element-button) { text-decoration-line: underline; }

/* Small label heading with a lime rule — resource groups and the
   homepage directory groups. */
.sfc-label {
	font-weight: 800 !important;
	letter-spacing: 0.02em !important;
	line-height: 1.3 !important;
	color: var(--sfc-navy);
	margin-top: 2.75rem !important;
	margin-bottom: 0.25rem !important;
	padding-bottom: 0.5rem;
	border-bottom: 4px solid var(--sfc-lime);
}
/* Small by default — but a size picked in the editor (Typography → Size)
   always wins, so a copied label can be turned into a real heading. */
.sfc-label:not([class*="-font-size"]) { font-size: 0.85rem !important; }

/* Big section heading over a set of labelled groups (Take Action). */
.sfc-section-title {
	font-size: 1.75rem !important;
	margin-top: 3.25rem !important;
	padding-bottom: 0.6rem;
	border-bottom: 5px solid var(--sfc-lime);
}

/* ------------------------------------------------------------
   Resource cards
   ------------------------------------------------------------ */

/* Column count comes from the block itself (select the group of cards,
   then Layout → Columns in the sidebar: 2, 3, 4 or 5). Smaller screens
   are capped below so cards never get too narrow to read. */
.sfc-entries {
	display: grid !important;
	gap: 1rem !important;
	margin-top: 1rem !important;
}

.sfc-entry {
	padding: 1.5rem;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--sfc-rule);
	border-top: 5px solid var(--sfc-card);
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(56, 80, 128, 0.08);
	transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.sfc-entry:hover {
	border-top-color: var(--sfc-lime);
	box-shadow: 0 12px 28px rgba(56, 80, 128, 0.14);
	transform: translateY(-2px);
}

.sfc-entry > * { margin: 0 !important; }
.sfc-entry > * + * { margin-top: 0.45rem !important; }

.sfc-entry-title { font-size: 1.05rem; line-height: 1.3; }
.sfc-entry-title a {
	font-weight: 700;
	color: var(--sfc-link);
	text-decoration-color: var(--sfc-rule);
	text-underline-offset: 4px;
}
.sfc-entry-title a:hover { color: var(--sfc-navy); text-decoration-color: currentColor; }
.sfc-entry-title strong { font-weight: 700; }

.sfc-entry-meta { font-size: 0.8rem; color: var(--sfc-navy); }
.sfc-entry-meta strong { font-weight: 700; }

.sfc-entry p:not(.sfc-entry-title):not(.sfc-entry-meta) { font-size: 0.92rem; line-height: 1.55; }

.sfc-flag {
	display: inline-block;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	padding: 0.1rem 0.45rem;
	border: 1px solid var(--sfc-navy);
	border-radius: 2px;
	color: var(--sfc-navy);
	background: var(--sfc-lime);
	line-height: 1.4;
}

.sfc-entry ul {
	list-style: none;
	margin-top: 0.85rem !important;
	padding: 0 0 0 1.1rem;
	border-left: 2px solid var(--sfc-rule);
	font-size: 0.87rem;
}
.sfc-entry ul li { margin-bottom: 0.75rem; }
.sfc-entry ul li:last-child { margin-bottom: 0; }

.sfc-coming-soon { color: var(--sfc-navy); }

/* ------------------------------------------------------------
   Homepage
   ------------------------------------------------------------ */

/* Hero: media-text, copy left, photo right */
.sfc-hero {
	border-bottom: 10px solid var(--sfc-lime);
	margin-block-start: 0 !important;
	min-height: 32rem;
}

.sfc-hero.wp-block-media-text .wp-block-media-text__content {
	padding: 4.5rem clamp(2rem, 5vw, 5rem);
}

.sfc-hero h1 {
	color: var(--wp--preset--color--white);
	font-size: clamp(2.8rem, 5vw, 4.8rem);
	font-weight: 800;
	line-height: 0.98;
	letter-spacing: -0.045em;
	margin: 0 0 1.25rem;
	max-width: 9ch;
}

.sfc-hero p {
	color: var(--wp--preset--color--white);
	font-size: 1.15rem;
	line-height: 1.5;
	max-width: 30rem;
	margin: 0 0 2rem;
}

.sfc-hero p.sfc-kicker {
	color: var(--sfc-lime);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin: 0 0 1rem;
}

.sfc-hero .wp-block-buttons { gap: 0.75rem; }

.sfc-hero .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background: var(--sfc-lime);
	border-color: var(--sfc-lime);
	color: var(--sfc-navy);
}
.sfc-hero .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	background: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--white);
}
.sfc-hero .is-style-outline .wp-block-button__link {
	background: transparent;
	border-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--white);
}
.sfc-hero .is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--white);
	color: var(--sfc-navy);
}

/* Hero on interior pages (BC-PCRB): single column */
.wp-block-group.sfc-hero {
	min-height: 0;
	padding-top: 4rem;
	padding-bottom: 3.5rem;
}
.wp-block-group.sfc-hero h1 { max-width: 20ch; font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: 1.08; }
.wp-block-group.sfc-hero p:last-child { margin-bottom: 0; }

/* "Who we are": lime bar on the left */
.sfc-intro {
	position: relative;
	padding-top: 4.5rem;
	padding-bottom: 4.5rem;
	padding-left: max(3rem, calc(8vw - 2rem)) !important;
}
.sfc-intro::before {
	content: "";
	position: absolute;
	left: 0;
	top: 4.75rem;
	width: 0.65rem;
	height: 5rem;
	background: var(--sfc-lime);
}
.sfc-intro > * { max-width: var(--sfc-measure); }
.sfc-intro h2 { margin-top: 0; }

/* Full-width grey band */
.sfc-band {
	padding-top: 4.5rem !important;
	padding-bottom: 4.5rem !important;
	border-block: 1px solid var(--sfc-rule);
}
.sfc-band > * { max-width: 56rem; }
.sfc-band h2 { margin-top: 0; }
.sfc-band ul { list-style: none; padding: 0; }
.sfc-band li { margin-bottom: 0.65rem; }

/* Homepage sections */
.sfc-section { padding-top: 3.5rem; padding-bottom: 0.5rem; }
.sfc-intro h2,
.sfc-band h2,
.sfc-section > h2 { margin-top: 0 !important; }
.sfc-section > p { max-width: var(--sfc-measure); }
.sfc-section > .sfc-label,
.sfc-section > .sfc-dir { max-width: none; }

/* Directory cards (homepage index of pages) */
.sfc-dir {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 1rem !important;
	margin-top: 0.75rem !important;
}

.sfc-dir-row {
	padding: 1.35rem;
	border: 1px solid var(--sfc-rule);
	border-left: 5px solid var(--sfc-card);
	border-radius: 6px;
}
.sfc-dir-row:hover { background: var(--sfc-band); border-left-color: var(--sfc-lime); }
.sfc-dir-row > * { margin: 0 !important; }
.sfc-dir-row > * + * { margin-top: 0.25rem !important; }
.sfc-dir-row .sfc-dir-title { font-size: 1.1rem; line-height: 1.25; }
.sfc-dir-row .sfc-dir-title a { color: var(--sfc-navy); font-weight: 700; text-decoration: none; }
.sfc-dir-row .sfc-dir-title a:hover { color: var(--sfc-link); text-decoration: underline; }
.sfc-dir-row p:not(.sfc-dir-title) { font-size: 0.9rem; }

/* Latest Events / Blog (Query Loop) */
.sfc-latest .wp-block-post-template { gap: 1rem; }
.sfc-latest .wp-block-post {
	padding: 1.35rem;
	border: 1px solid var(--sfc-rule);
	border-top: 5px solid var(--sfc-card);
	border-radius: 6px;
}
.sfc-latest .wp-block-post > * { margin: 0 !important; }
.sfc-latest .wp-block-post > * + * { margin-top: 0.4rem !important; }
.sfc-latest .wp-block-post-title { font-size: 1.1rem; }
.sfc-latest .wp-block-post-title a { color: var(--sfc-navy); }
.sfc-latest .wp-block-post-date { font-size: 0.8rem; color: var(--sfc-navy); }
.sfc-latest .wp-block-post-excerpt { font-size: 0.92rem; }
.sfc-latest .wp-block-post-featured-image img { border-radius: 4px; }

/* "On this page" box (BC-PCRB) */
.sfc-toc {
	padding: 1.25rem 2rem !important;
	border-left: 8px solid var(--sfc-lime);
	border-radius: 6px;
}
.sfc-toc > * { margin: 0 !important; }
.sfc-toc > * + * { margin-top: 0.5rem !important; }
.sfc-toc .sfc-toc-label {
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--sfc-navy);
}
.sfc-toc ol, .sfc-toc ul { columns: 2; column-gap: 1.5rem; padding-left: 1.25rem; }
.sfc-toc li { margin-bottom: 0.4rem; break-inside: avoid; }

.sfc-closing { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.sfc-closing > * { max-width: var(--sfc-measure); }

.sfc-toc li em { font-style: normal; font-size: 0.75rem; color: #4D4D4D; margin-left: 0.3rem; }

/* BC-PCRB hero: copy left, title-card image right (not cropped — the
   card has words on it) */
.sfc-hero-card { min-height: 24rem; }
.sfc-hero-card .wp-block-media-text__media { padding: 2.5rem clamp(1.1rem, 4vw, 3rem) 2.5rem 0; }
.sfc-hero-card .wp-block-media-text__media img { border-radius: 6px; }
.sfc-hero-card h1 { max-width: 16ch; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.08; letter-spacing: -0.03em; }

/* Section and closing images */
.entry-content > .sfc-figure,
.sfc-closing > .sfc-figure {
	max-width: 42rem !important;
	margin-left: max(0px, calc((100% - var(--sfc-content)) / 2)) !important;
	margin-right: auto !important;
}
.sfc-figure img { width: 100%; height: auto; border-radius: 6px; }

/* Jumping to a section lands below the sticky header and section bar */
.entry-content h2[id] { scroll-margin-top: calc(var(--sfc-sticky-offset, 0px) + 4rem); }

/* Section bar: every step of the briefing, on the long page and both
   sub-pages. Sticky on desktop only (see pcrb.js). */
.sfc-stickybar {
	padding: 0 !important;
	background: var(--wp--preset--color--white);
	border-block: 1px solid var(--sfc-rule);
}
.sfc-stickybar > .wp-block-list {
	list-style: none;
	display: flex;
	gap: 0.25rem;
	max-width: var(--sfc-content) !important;
	margin: 0 0 0 max(0px, calc((100% - var(--sfc-content)) / 2)) !important;
	padding: 0;
	overflow-x: auto;
	white-space: nowrap;
	-webkit-overflow-scrolling: touch;
}
.sfc-stickybar li { flex: 0 0 auto; margin: 0 !important; }
/* Fade the edge that has more links beyond it (set by pcrb.js) */
.sfc-stickybar > .wp-block-list { scrollbar-width: thin; }
.sfc-stickybar.more-right > .wp-block-list { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 4rem), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 4rem), transparent); }
.sfc-stickybar.more-left > .wp-block-list { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 4rem), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 4rem), transparent); }
.sfc-stickybar.more-left.more-right > .wp-block-list { -webkit-mask-image: linear-gradient(to right, transparent, #000 4rem, #000 calc(100% - 4rem), transparent); mask-image: linear-gradient(to right, transparent, #000 4rem, #000 calc(100% - 4rem), transparent); }
.sfc-stickybar a {
	display: flex;
	align-items: center;
	box-sizing: border-box;
	min-height: 48px;
	padding: 0.5rem 0.8rem;
	font-size: 0.8rem;
	font-weight: 700 !important;
	color: #4D4D4D;
	text-decoration: none;
	border-bottom: 3px solid transparent;
}
.sfc-stickybar a:hover { color: var(--sfc-navy); text-decoration: underline; }
.sfc-stickybar a.is-current { color: var(--sfc-navy); border-bottom-color: var(--sfc-lime); }

@media (min-width: 62.01rem) {
	.sfc-stickybar {
		position: sticky;
		top: var(--sfc-sticky-offset, 0px);
		z-index: 90;
		box-shadow: 0 4px 12px rgba(56, 80, 128, 0.08);
	}
	/* With scripts on, the bar takes no space until it is needed, and
	   fades in once the "On this page" box / page title is out of view. */
	.sfc-js .sfc-stickybar {
		margin-bottom: -50px !important;
		opacity: 0;
		transform: translateY(-8px);
		pointer-events: none;
		transition: opacity 150ms ease, transform 150ms ease;
	}
	.sfc-js .sfc-stickybar.is-visible { opacity: 1; transform: none; pointer-events: auto; }
	.sfc-page-body .entry-content > .sfc-stickybar:first-child + * { margin-top: 0 !important; }
}

/* Previous / Next between briefing sections */
.sfc-prevnext {
	max-width: var(--sfc-measure) !important;
	margin-top: 2.5rem !important;
	margin-left: max(0px, calc((100% - var(--sfc-content)) / 2)) !important;
	margin-right: auto !important;
	padding-top: 1.25rem;
	border-top: 1px solid var(--sfc-rule);
	gap: 1.5rem;
	align-items: flex-start !important;
}
.sfc-prevnext p { margin: 0; }
.sfc-prevnext .sfc-next { margin-left: auto; text-align: right; }
.sfc-prevnext a {
	display: block;
	min-height: 44px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	color: #4D4D4D;
}
.sfc-prevnext a strong {
	display: inline-block;
	margin-top: 0.2rem;
	font-size: 1rem;
	letter-spacing: 0;
	text-transform: none;
	color: var(--sfc-link);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}
.sfc-prevnext a:hover strong { color: var(--sfc-navy); }

/* Take Action menu: the briefing and its sections */
.sfc-nav .sfc-sub-divider {
	margin-top: 0.35rem;
	padding-top: 0.35rem;
	border-top: 1px solid var(--sfc-rule);
}
.sfc-nav .sfc-sub-divider > .wp-block-navigation-item__content { font-weight: 700 !important; color: var(--sfc-navy) !important; }
.sfc-nav .sfc-sub-indent > .wp-block-navigation-item__content { padding-left: 1.6rem !important; font-size: 0.76rem !important; }

/* ------------------------------------------------------------
   Image cards (patterns/image-cards-2/3/4.php)
   ------------------------------------------------------------ */

.sfc-cards {
	display: grid !important;
	grid-template-columns: repeat(var(--sfc-cols, 3), minmax(0, 1fr));
	gap: 2.25rem 1.5rem;
	margin-top: 1.5rem !important;
}
/* Breathing room before the next heading after a row of cards */
.sfc-cards + :is(h2, h3, h4) { margin-top: 3rem !important; }
.sfc-cards-2 { --sfc-cols: 2; }
.sfc-cards-3 { --sfc-cols: 3; }
.sfc-cards-4 { --sfc-cols: 4; }

.sfc-cards > .sfc-card { margin: 0 !important; } /* grid gap does the spacing */
.sfc-card > * { margin: 0 !important; }
.sfc-card > * + * { margin-top: 0.45rem !important; }
.sfc-card .wp-block-image img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 4px;
}
.sfc-card .sfc-card-title {
	margin-top: 0.9rem !important;
	font-size: 1.05rem !important;
	font-weight: 700;
	line-height: 1.3;
	color: var(--sfc-navy);
}
.sfc-card p { font-size: 0.9rem; line-height: 1.55; color: #333; }
.sfc-card .sfc-card-title a {
	color: var(--sfc-navy);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}
.sfc-card .sfc-card-title a:hover { color: var(--sfc-link); }

/* A card without a picture, in a row where other cards have one: show a
   navy block with the lime rule in its place so the row stays even.
   (WordPress drops an empty image block from the published page.) */
body:not(.editor-styles-wrapper) .sfc-cards:has(img[src]) .sfc-card:not(:has(img[src]))::before {
	content: "";
	display: block;
	box-sizing: border-box;
	aspect-ratio: 4 / 3;
	padding: 18%;
	/* The logo is the one in the Media Library (image4.png). If it is
	   ever deleted or renamed, update this address. */
	background: var(--sfc-navy) url("/wp-content/uploads/2026/10/image4.png") no-repeat center / contain;
	background-origin: content-box;
	border-bottom: 8px solid var(--sfc-lime);
	border-radius: 4px;
}

/* A row with no pictures at all: plain text cards, no placeholders. */
body:not(.editor-styles-wrapper) .sfc-cards:not(:has(img[src])) .sfc-card {
	padding-top: 0.9rem;
	border-top: 5px solid var(--sfc-lime);
}
body:not(.editor-styles-wrapper) .sfc-cards:not(:has(img[src])) .sfc-card .sfc-card-title { margin-top: 0 !important; }

/* ------------------------------------------------------------
   Footer (parts/footer.html)
   ------------------------------------------------------------ */

.sfc-footer {
	background: var(--sfc-navy);
	color: var(--wp--preset--color--white);
	padding-top: 3rem;
	padding-bottom: 2.5rem;
	margin-block-start: 0 !important;
}

.sfc-footer a { color: var(--wp--preset--color--white); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.sfc-footer a:hover { color: var(--sfc-lime); }

.sfc-footer-cols { gap: 2.5rem !important; }

.sfc-footer .sfc-footer-label {
	font-size: 0.78rem !important;
	font-weight: 700;
	letter-spacing: 0.03em;
	color: var(--sfc-lime) !important;
	margin: 0 0 0.75rem;
}

.sfc-footer ul { list-style: none; margin: 0; padding: 0; }
.sfc-footer li { margin-bottom: 0.4rem; }
.sfc-footer p { margin: 0 0 0.4rem; font-size: 0.9rem; }
.sfc-footer .sfc-region { color: var(--wp--preset--color--white); }
.sfc-footer .sfc-brand img { height: 64px !important; }

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

@media (max-width: 62rem) {
	.sfc-hero.wp-block-media-text { min-height: 0; }
	.sfc-entries { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.sfc-cards-4 { --sfc-cols: 2; }
}

@media (max-width: 600px) {
	/* Stacked hero: copy first, photo second, like the original. */
	.sfc-hero.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content { grid-row: 1; padding: 3rem 1.1rem; }
	.sfc-hero.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media { grid-row: 2; }
	.sfc-hero.is-image-fill-element .wp-block-media-text__media { min-height: 70vw; }
	.sfc-hero-card .wp-block-media-text__media { padding: 0 1.1rem 2rem; }
	.sfc-hero h1 { max-width: none; }
}

@media (max-width: 40rem) {
	body {
		--wp--style--root--padding-left: 1.1rem !important;
		--wp--style--root--padding-right: 1.1rem !important;
	}
	.sfc-brand img { height: 40px !important; }
	.sfc-region { font-size: 0.72rem; padding-left: 0.55rem; }
	.sfc-entries, .sfc-dir { grid-template-columns: 1fr !important; }
	.sfc-cards { --sfc-cols: 1 !important; }
	/* One card per row: nothing to keep even, so no placeholder */
	body:not(.editor-styles-wrapper) .sfc-cards:has(img[src]) .sfc-card:not(:has(img[src]))::before { display: none; }
	.sfc-latest .wp-block-post-template { grid-template-columns: 1fr !important; }
	.sfc-toc ol, .sfc-toc ul { columns: 1; }
	.sfc-prevnext { flex-direction: column; gap: 1rem; }
	.sfc-intro { padding-left: 3rem !important; }
	.entry-content .wp-block-button, .entry-content .wp-block-button__link { width: 100%; }
	.sfc-entry { padding: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; }
}

/* Text "Menu" / "Close" buttons on mobile, not just an icon */
.sfc-nav .wp-block-navigation__responsive-container-open:not(.always-shown),
.sfc-nav .wp-block-navigation__responsive-container-close {
	padding: 0.6rem 1rem;
	font-size: 0.85rem;
	font-weight: 700;
	background: var(--wp--preset--color--white);
}

/* Open mobile menu: left-aligned list, not the desktop right alignment */
.sfc-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.sfc-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
.sfc-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item,
.sfc-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	align-items: stretch !important;
	justify-content: flex-start !important;
	text-align: left;
	width: 100%;
}
.sfc-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { width: 100%; }
.sfc-nav .wp-block-navigation__responsive-container.is-menu-open .sfc-header-actions { margin-top: 1rem; justify-content: flex-start; }

.sfc-page-head .wp-block-post-date { margin-top: 0.75rem; }

/* The full menu needs about 1,220px beside the logo. WordPress only
   switches to the "Menu" button below 600px, so between 600px and 1,239px
   force the button too, instead of letting the header wrap onto 2–3 rows.
   If menu items are added or removed, re-measure and adjust 1239px. */
@media (min-width: 600px) and (max-width: 1239px) {
	.sfc-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.sfc-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
