/**
 * Campaign for Glendon — front-end styles.
 *
 * Colours, fonts and spacing come from theme.json as CSS custom properties
 * (e.g. --wp--preset--color--forest). This file styles the PHP-rendered
 * chrome (header, footer, archives) and a handful of shared components.
 *
 * Contents:
 *   1. Base & accessibility
 *   2. Layout containers
 *   3. Buttons
 *   4. Site header & navigation
 *   5. Language switcher
 *   6. Page header
 *   7. Post grid & cards
 *   8. Single post / page
 *   9. Pagination & post navigation
 *  10. Search form
 *  11. Footer
 *  12. Responsive
 */

/* ---------------------------------------------------------------------------
 * 1. Base & accessibility
 * ------------------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--wp--preset--color--base, #fff);
	color: var(--wp--preset--color--contrast, #14211c);
	font-family: var(--wp--preset--font-family--body);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img,
svg {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--wp--preset--color--forest, #1e4d2b);
}

a:hover,
a:focus {
	color: var(--wp--preset--color--navy, #14213d);
}

:focus-visible {
	outline: 3px solid var(--wp--preset--color--gold, #c9a227);
	outline-offset: 2px;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	position: absolute !important;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100000;
	background: var(--wp--preset--color--navy, #14213d);
	color: #fff;
	padding: 0.75rem 1.25rem;
	border-radius: 0 0 4px 0;
}

.skip-link:focus {
	left: 0;
	color: #fff;
}

/* ---------------------------------------------------------------------------
 * 2. Layout containers
 * ------------------------------------------------------------------------- */
.container {
	width: 100%;
	max-width: var(--wp--style--global--wide-size, 75rem);
	margin-inline: auto;
	padding-inline: 1.25rem;
}

.container--narrow {
	max-width: var(--wp--style--global--content-size, 46rem);
}

/* Constrain block content while letting wide/full blocks break out. */
.entry-content {
	max-width: var(--wp--style--global--content-size, 46rem);
	margin-inline: auto;
	padding-inline: 1.25rem;
}

.entry-content > .alignwide {
	max-width: var(--wp--style--global--wide-size, 75rem);
	margin-inline: auto;
}

.entry-content > .alignfull {
	max-width: none;
	margin-inline: calc(50% - 50vw);
	width: 100vw;
}

.site-main {
	padding-block: clamp(2rem, 5vw, 4rem);
}

/* ---------------------------------------------------------------------------
 * 3. Buttons
 * ------------------------------------------------------------------------- */
.button,
.search-submit,
.wp-block-button__link {
	display: inline-block;
	background: var(--wp--preset--color--forest, #1e4d2b);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	padding: 0.75rem 1.5rem;
	border: 2px solid transparent;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.button:hover,
.button:focus,
.search-submit:hover,
.search-submit:focus {
	background: var(--wp--preset--color--navy, #14213d);
	color: #fff;
}

.button--ghost {
	background: transparent;
	color: var(--wp--preset--color--forest, #1e4d2b);
	border-color: currentColor;
}

.button--ghost:hover {
	background: var(--wp--preset--color--forest, #1e4d2b);
	color: #fff;
}

/* ---------------------------------------------------------------------------
 * 4. Site header & navigation
 * ------------------------------------------------------------------------- */
.site-header {
	background: #fff;
	border-bottom: 4px solid var(--wp--preset--color--forest, #1e4d2b);
}

.site-header__inner {
	max-width: var(--wp--style--global--wide-size, 75rem);
	margin-inline: auto;
	padding: 1rem 1.25rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.site-branding {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1 1 auto;
}

.site-title,
.site-description {
	overflow-wrap: break-word;
}

.site-title {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.5rem;
	line-height: 1.1;
}

.site-title a {
	color: var(--wp--preset--color--navy, #14213d);
	text-decoration: none;
}

.site-description {
	margin: 0.25rem 0 0;
	font-size: 0.9rem;
	color: var(--wp--preset--color--stone, #5b6b62);
}

.custom-logo {
	max-height: 80px;
	width: auto;
}

.main-navigation {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.primary-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-menu a {
	color: var(--wp--preset--color--navy, #14213d);
	text-decoration: none;
	font-weight: 600;
	padding: 0.35rem 0;
	border-bottom: 2px solid transparent;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
	color: var(--wp--preset--color--forest, #1e4d2b);
	border-bottom-color: var(--wp--preset--color--forest, #1e4d2b);
}

.primary-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0.5rem 0;
	position: absolute;
	min-width: 220px;
	background: #fff;
	border: 1px solid var(--wp--preset--color--mist, #e7ece8);
	border-radius: 6px;
	box-shadow: 0 10px 30px rgba(11, 21, 38, 0.12);
	z-index: 50;
	display: none;
}

.primary-menu .menu-item-has-children {
	position: relative;
}

.primary-menu .menu-item-has-children:hover > .sub-menu,
.primary-menu .menu-item-has-children:focus-within > .sub-menu,
.primary-menu .submenu-open > .sub-menu {
	display: block;
}

.primary-menu .sub-menu a {
	display: block;
	padding: 0.5rem 1rem;
	border-bottom: none;
}

.submenu-toggle {
	background: none;
	border: none;
	cursor: pointer;
	color: inherit;
	font-size: 0.8rem;
	padding: 0 0.25rem;
}

/* Mobile toggle hidden on desktop. */
.nav-toggle {
	display: none;
	position: relative;
	width: 44px;
	height: 44px;
	background: none;
	border: 2px solid var(--wp--preset--color--navy, #14213d);
	border-radius: 4px;
	cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	content: "";
	position: absolute;
	left: 50%;
	width: 22px;
	height: 2px;
	background: var(--wp--preset--color--navy, #14213d);
	transform: translateX(-50%);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle__bars {
	top: 50%;
	margin-top: -1px;
}

.nav-toggle__bars::before {
	top: -7px;
}

.nav-toggle__bars::after {
	top: 7px;
}

/* ---------------------------------------------------------------------------
 * 5. Language switcher
 * ------------------------------------------------------------------------- */
.cfg-lang-switcher {
	display: flex;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-weight: 600;
}

.cfg-lang-switcher a {
	text-decoration: none;
	color: var(--wp--preset--color--stone, #5b6b62);
	padding: 0.25rem 0.5rem;
	border-radius: 4px;
}

.cfg-lang-switcher .is-current a {
	background: var(--wp--preset--color--forest, #1e4d2b);
	color: #fff;
}

/* ---------------------------------------------------------------------------
 * 6. Page header
 * ------------------------------------------------------------------------- */
.page-header {
	margin-bottom: 2.5rem;
}

.page-title {
	margin: 0 0 0.5rem;
}

.archive-description {
	color: var(--wp--preset--color--stone, #5b6b62);
	max-width: 48ch;
}

/* ---------------------------------------------------------------------------
 * 7. Post grid & cards
 * ------------------------------------------------------------------------- */
.posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 2rem;
}

.post-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--wp--preset--color--mist, #e7ece8);
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.post-card:hover {
	box-shadow: 0 12px 30px rgba(11, 21, 38, 0.1);
	transform: translateY(-2px);
}

.post-card__media img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.post-card__body {
	padding: 1.25rem 1.5rem 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.entry-cats,
.post-card__cats {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.entry-cats a,
.post-card__cats a,
.post-card__body .entry-cats a {
	color: var(--wp--preset--color--forest, #1e4d2b);
	text-decoration: none;
	font-weight: 700;
}

.post-card__title {
	margin: 0;
	font-size: 1.3rem;
	line-height: 1.25;
}

.post-card__title a {
	color: var(--wp--preset--color--navy, #14213d);
	text-decoration: none;
}

.post-card__title a:hover {
	color: var(--wp--preset--color--forest, #1e4d2b);
}

.post-card__meta,
.entry-meta {
	font-size: 0.85rem;
	color: var(--wp--preset--color--stone, #5b6b62);
}

.post-card__more {
	margin-top: auto;
	font-weight: 600;
	text-decoration: none;
}

/* ---------------------------------------------------------------------------
 * 8. Single post / page
 * ------------------------------------------------------------------------- */
.single-post .entry-header,
.single-page .entry-header {
	max-width: var(--wp--style--global--content-size, 46rem);
	margin-inline: auto;
	padding-inline: 1.25rem;
	margin-bottom: 1.5rem;
}

.entry-title {
	margin: 0.5rem 0;
}

.entry-meta {
	margin-top: 0.5rem;
}

.entry-featured {
	margin: 0 0 2rem;
}

.entry-featured img {
	width: 100%;
	border-radius: 8px;
}

.entry-content > * + * {
	margin-top: 1.25rem;
}

.entry-footer {
	max-width: var(--wp--style--global--content-size, 46rem);
	margin: 2rem auto 0;
	padding-inline: 1.25rem;
	font-size: 0.9rem;
	color: var(--wp--preset--color--stone, #5b6b62);
}

/* ---------------------------------------------------------------------------
 * 9. Pagination & post navigation
 * ------------------------------------------------------------------------- */
.pagination,
.post-navigation {
	max-width: var(--wp--style--global--wide-size, 75rem);
	margin: 3rem auto 0;
	padding-inline: 1.25rem;
}

.pagination .nav-links,
.post-navigation .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: space-between;
}

.pagination .page-numbers {
	display: inline-block;
	padding: 0.5rem 0.85rem;
	border: 1px solid var(--wp--preset--color--mist, #e7ece8);
	border-radius: 4px;
	text-decoration: none;
}

.pagination .page-numbers.current {
	background: var(--wp--preset--color--forest, #1e4d2b);
	color: #fff;
	border-color: var(--wp--preset--color--forest, #1e4d2b);
}

.nav-subtitle {
	display: block;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--wp--preset--color--stone, #5b6b62);
}

/* ---------------------------------------------------------------------------
 * 10. Search form
 * ------------------------------------------------------------------------- */
.search-form {
	display: flex;
	gap: 0.5rem;
	max-width: 30rem;
}

.search-field {
	flex: 1;
	padding: 0.65rem 0.85rem;
	border: 1px solid var(--wp--preset--color--stone, #5b6b62);
	border-radius: 4px;
	font: inherit;
}

/* ---------------------------------------------------------------------------
 * 11. Footer
 * ------------------------------------------------------------------------- */
.site-footer {
	margin-top: 4rem;
	background: var(--wp--preset--color--navy, #14213d);
	color: #e9edf3;
}

.site-footer__inner {
	max-width: var(--wp--style--global--wide-size, 75rem);
	margin-inline: auto;
	padding: 3rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.site-footer a {
	color: #fff;
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-menu a {
	text-decoration: none;
	font-weight: 600;
}

.site-info {
	margin: 0;
	font-size: 0.9rem;
	color: #b9c2d0;
}

/* ---------------------------------------------------------------------------
 * 12. Responsive
 * ------------------------------------------------------------------------- */
@media (max-width: 860px) {
	.nav-toggle {
		display: block;
	}

	.main-navigation {
		flex-basis: 100%;
		order: 3;
	}

	.main-navigation .primary-menu,
	.main-navigation .cfg-lang-switcher {
		display: none;
		width: 100%;
		flex-direction: column;
		align-items: flex-start;
		gap: 0.25rem;
	}

	.main-navigation.is-open {
		flex-direction: column;
		align-items: stretch;
	}

	.main-navigation.is-open .primary-menu,
	.main-navigation.is-open .cfg-lang-switcher {
		display: flex;
		padding-top: 1rem;
	}

	.primary-menu .sub-menu {
		position: static;
		display: none;
		box-shadow: none;
		border: none;
		padding-left: 1rem;
	}

	.primary-menu .submenu-open > .sub-menu {
		display: block;
	}
}

/* ---------------------------------------------------------------------------
 * 13. Email-the-Provost letter builder
 * ------------------------------------------------------------------------- */
.provost-tool {
	margin-top: 2rem;
	padding: 1.75rem;
	background: var(--wp--preset--color--cream, #f6f3ea);
	border: 1px solid var(--wp--preset--color--mist, #e7ece8);
	border-radius: 10px;
}

.provost-tool__recips {
	margin: 0 0 1.25rem;
	padding: 0.85rem 1rem;
	background: #fff;
	border-left: 4px solid var(--wp--preset--color--forest, #1e4d2b);
	border-radius: 4px;
	font-size: 0.95rem;
	line-height: 1.7;
}

.provost-tool__field {
	margin: 0 0 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.provost-tool__field label {
	font-weight: 600;
	color: var(--wp--preset--color--navy, #14213d);
}

.provost-tool__subject,
.provost-tool__body {
	width: 100%;
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--wp--preset--color--stone, #5b6b62);
	border-radius: 6px;
	font: inherit;
	background: #fff;
}

.provost-tool__body {
	resize: vertical;
	min-height: 16rem;
	max-height: 28rem;
	overflow-y: auto;
	line-height: 1.6;
	color: var(--wp--preset--color--ink, #1c1c1c);
}

.provost-tool__body:focus {
	outline: 2px solid var(--wp--preset--color--forest, #1e4d2b);
	outline-offset: 1px;
}

.provost-tool__body p {
	margin: 0 0 1em;
}

.provost-tool__body p:last-child {
	margin-bottom: 0;
}

.provost-tool__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

.provost-tool__status {
	font-size: 0.9rem;
	color: var(--wp--preset--color--forest, #1e4d2b);
	font-weight: 600;
}

.provost-tool__hint {
	margin: 1rem 0 0;
	font-size: 0.9rem;
	color: var(--wp--preset--color--stone, #5b6b62);
}

/* ---------------------------------------------------------------------------
 * 14. "What Happens to Me" role filter
 * ------------------------------------------------------------------------- */
.impact-finder {
	margin: 2.5rem 0 1.5rem;
	padding: 1.75rem;
	background: var(--wp--preset--color--mist, #e7ece8);
	border-radius: 10px;
}

.impact-finder__sentence {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.4rem, 3.5vw, 2rem);
	line-height: 1.35;
	color: var(--wp--preset--color--navy, #14213d);
}

/* The dropdown and the trailing "?" wrap as one unit, never splitting apart. */
.impact-finder__choice {
	display: inline-block;
	max-width: 100%;
	white-space: nowrap;
}

.impact-finder__select {
	font: inherit;
	color: var(--wp--preset--color--forest, #1e4d2b);
	font-weight: 700;
	background: #fff;
	border: none;
	border-bottom: 3px solid var(--wp--preset--color--forest, #1e4d2b);
	border-radius: 4px 4px 0 0;
	padding: 0.1em 0.4em;
	margin: 0 0.15em;
	cursor: pointer;
	/* Leave room beside the select for the question mark. */
	max-width: calc(100% - 0.8em);
}

.impact-results {
	margin-top: 1.5rem;
}

.impact-results__prompt {
	font-size: 1.15rem;
	color: var(--wp--preset--color--stone, #5b6b62);
	padding: 1rem 0;
}

.impact-card {
	padding: 1.75rem;
	background: #fff;
	border: 1px solid var(--wp--preset--color--mist, #e7ece8);
	border-left: 5px solid var(--wp--preset--color--forest, #1e4d2b);
	border-radius: 8px;
}

.impact-card[hidden] {
	display: none;
}

.impact-card__eyebrow {
	margin: 0 0 0.25rem;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--wp--preset--color--forest, #1e4d2b);
}

.impact-card__title {
	margin: 0.1rem 0 1rem;
}

.impact-card__body > * + * {
	margin-top: 0.85rem;
}

.impact-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.5rem;
	margin-bottom: 0;
}

/* ---------------------------------------------------------------------------
 * 15. Home page (hero, CTAs, section windows, latest news)
 * ------------------------------------------------------------------------- */
.site-main--home {
	padding-block: 0;
}

.hero {
	position: relative;
	background: var(--wp--preset--color--navy, #14213d);
	color: #fff;
	overflow: hidden;
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--hero-image, none);
	background-size: cover;
	background-position: center;
}

.hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(165deg, rgba(11, 21, 38, 0.62) 0%, rgba(19, 54, 32, 0.86) 100%);
}

.hero__inner {
	position: relative;
	z-index: 1;
	max-width: 52rem;
	margin-inline: auto;
	padding-block: clamp(3.5rem, 9vw, 7rem);
	text-align: center;
}

.hero__title {
	color: #fff;
	font-size: clamp(2.2rem, 6vw, 3.75rem);
	line-height: 1.08;
	margin: 0 0 1rem;
}

.hero__lead {
	font-size: clamp(1.05rem, 2.2vw, 1.3rem);
	line-height: 1.6;
	color: #eef2ee;
	max-width: 44rem;
	margin: 0 auto 2rem;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: center;
}

.button--lg {
	font-size: 1.05rem;
	padding: 0.95rem 1.7rem;
}

.button--gold {
	background: var(--wp--preset--color--gold, #c9a227);
	color: var(--wp--preset--color--navy, #14213d);
}

.button--gold:hover,
.button--gold:focus {
	background: #b8941f;
	color: var(--wp--preset--color--navy, #14213d);
}

.button--ghost-light {
	background: transparent;
	border-color: #fff;
	color: #fff;
}

.button--ghost-light:hover,
.button--ghost-light:focus {
	background: #fff;
	color: var(--wp--preset--color--navy, #14213d);
}

.home-intro {
	padding-top: clamp(2.5rem, 6vw, 4rem);
}

.home-sections,
.home-latest {
	padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

/* Upcoming events band under the hero */
.home-events {
	padding-block: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.section-heading {
	text-align: center;
	margin: 0 0 2rem;
}

.cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.5rem;
}

.feature-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	background: #fff;
	border: 1px solid var(--wp--preset--color--mist, #e7ece8);
	border-radius: 10px;
	overflow: hidden;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
	box-shadow: 0 14px 34px rgba(11, 21, 38, 0.12);
	transform: translateY(-3px);
}

.feature-card__media img {
	display: block;
	width: 100%;
	height: 165px;
	object-fit: cover;
}

.feature-card__body {
	padding: 1.25rem 1.4rem 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.feature-card__title {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 1.25rem;
	color: var(--wp--preset--color--navy, #14213d);
}

.feature-card__blurb {
	font-size: 0.95rem;
	color: var(--wp--preset--color--contrast, #14211c);
}

.feature-card__more {
	margin-top: 0.35rem;
	font-weight: 600;
	color: var(--wp--preset--color--forest, #1e4d2b);
}

.home-latest__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	margin-bottom: 2rem;
}

.home-latest__head .section-heading {
	text-align: left;
	margin: 0;
}

.home-latest__all {
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

/* ---------------------------------------------------------------------------
 * 16. Gravity Forms — match the theme
 * ------------------------------------------------------------------------- */
/* Override Gravity Forms' orbital-theme colour variables. */
.gform_wrapper {
	--gf-color-primary: #1e4d2b;
	--gf-color-primary-rgb: 30, 77, 43;
	--gf-color-primary-contrast: #ffffff;
	--gf-color-primary-darker: #14213d;
	--gf-color-primary-darkest: #0b1526;
	--gf-color-primary-lighter: #2d5a3d;
}

.gform_wrapper .gform_footer .gform_button,
.gform_wrapper .gform-page-footer .gform_button,
.gform_wrapper button.gform_button,
.gform_wrapper input.gform_button {
	background: var(--wp--preset--color--forest, #1e4d2b) !important;
	color: #fff !important;
	font: inherit;
	font-weight: 600;
	border: 2px solid transparent !important;
	border-radius: 4px;
	padding: 0.8rem 1.7rem;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.gform_wrapper .gform_footer .gform_button:hover,
.gform_wrapper .gform_footer .gform_button:focus,
.gform_wrapper button.gform_button:hover,
.gform_wrapper input.gform_button:hover {
	background: var(--wp--preset--color--navy, #14213d) !important;
	color: #fff !important;
}

.gform_wrapper .gfield_required {
	color: #b3261e;
}

.gform_wrapper .gform_confirmation_message {
	padding: 1.25rem 1.5rem;
	background: var(--wp--preset--color--mist, #e7ece8);
	border-left: 4px solid var(--wp--preset--color--forest, #1e4d2b);
	border-radius: 4px;
}

/* ---------------------------------------------------------------------------
 * 17. Take Action hub
 * ------------------------------------------------------------------------- */
.action-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
	margin-top: 1rem;
}

.action-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.6rem;
	padding: 1.75rem;
	background: #fff;
	border: 1px solid var(--wp--preset--color--mist, #e7ece8);
	border-radius: 10px;
}

.action-card__title {
	margin: 0;
	font-size: 1.4rem;
}

.action-card__blurb {
	margin: 0 0 0.75rem;
	color: var(--wp--preset--color--contrast, #14211c);
}

.action-card .button {
	margin-top: auto;
}

.action-card--primary {
	background: var(--wp--preset--color--forest, #1e4d2b);
	border-color: var(--wp--preset--color--forest, #1e4d2b);
}

.action-card--primary .action-card__title,
.action-card--primary .action-card__blurb {
	color: #fff;
}

.action-share {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: auto;
}

.action-share .button {
	padding: 0.5rem 0.9rem;
	font-size: 0.9rem;
}

.newsletter-band {
	margin-top: 3.5rem;
	padding-block: clamp(2.5rem, 6vw, 4rem);
	background: var(--wp--preset--color--cream, #f6f3ea);
}

.newsletter-band__title {
	margin: 0 0 0.5rem;
}

.newsletter-band__lead {
	margin: 0 0 1.5rem;
	color: var(--wp--preset--color--stone, #5b6b62);
}

/* ---------------------------------------------------------------------------
 * 18. FAQ (core Details blocks)
 * ------------------------------------------------------------------------- */
.entry-content .wp-block-details {
	border: 1px solid var(--wp--preset--color--mist, #e7ece8);
	border-radius: 8px;
	padding: 0.5rem 1.25rem;
	margin-bottom: 0.85rem;
	background: #fff;
}

.entry-content .wp-block-details summary {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--wp--preset--color--navy, #14213d);
	cursor: pointer;
	padding: 0.65rem 0;
	list-style-position: inside;
}

.entry-content .wp-block-details[open] summary {
	color: var(--wp--preset--color--forest, #1e4d2b);
	margin-bottom: 0.5rem;
}

/* ---------------------------------------------------------------------------
 * 19. Small-screen refinements
 * ------------------------------------------------------------------------- */
@media (max-width: 600px) {
	.impact-finder {
		padding: 1.25rem;
	}

	.impact-finder__sentence {
		font-size: 1.3rem;
	}

	/* Stack the dropdown under the sentence so its long options never overflow,
	   keeping the "?" beside it on the same line. */
	.impact-finder__choice {
		display: block;
		width: 100%;
		margin: 0.6rem 0 0;
	}

	.impact-finder__select {
		width: calc(100% - 0.8em);
		max-width: calc(100% - 0.8em);
		margin: 0;
		box-sizing: border-box;
	}

	.action-card,
	.impact-card,
	.provost-tool {
		padding: 1.25rem;
	}
}

/* ---------------------------------------------------------------------------
 * 20. Open letter — sign form & signatories
 * ------------------------------------------------------------------------- */
.letter-text {
	background: var(--wp--preset--color--cream, #f6f3ea);
	border-left: 4px solid var(--wp--preset--color--gold, #c9a227);
	padding: 2rem;
	border-radius: 0 8px 8px 0;
}

.letter-sign {
	margin-top: 3rem;
}

.letter-sign__note {
	color: var(--wp--preset--color--navy, #14213d);
	opacity: 0.75;
	margin-top: -0.5rem;
}

.letter-signatories {
	margin-top: 3rem;
}

.signatory-list {
	list-style: none;
	margin: 1.5rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 0.75rem 1.5rem;
}

.signatory {
	border-bottom: 1px solid rgba(20, 33, 61, 0.12);
	padding-bottom: 0.5rem;
}

.signatory__name {
	display: block;
	font-weight: 700;
	color: var(--wp--preset--color--navy, #14213d);
}

.signatory__affiliation {
	display: block;
	font-size: 0.9rem;
	color: var(--wp--preset--color--navy, #14213d);
	opacity: 0.7;
}

.letter-signatories__empty {
	opacity: 0.75;
}

/* ---------------------------------------------------------------------------
 * 21. Footer newsletter
 * ------------------------------------------------------------------------- */
.footer-newsletter {
	max-width: 480px;
	margin-bottom: 2rem;
}

.footer-newsletter__lead {
	opacity: 0.8;
	margin-top: 0.25rem;
}

.site-footer .gform_wrapper input[type="text"],
.site-footer .gform_wrapper input[type="email"] {
	background: rgba(255, 255, 255, 0.95);
}

/* ---------------------------------------------------------------------------
 * 22. News category filter
 * ------------------------------------------------------------------------- */
.news-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 2rem;
}

.news-filter__item {
	display: inline-block;
	padding: 0.4rem 1rem;
	border: 1px solid var(--wp--preset--color--forest, #1e4d2b);
	border-radius: 999px;
	color: var(--wp--preset--color--forest, #1e4d2b);
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 600;
}

.news-filter__item:hover,
.news-filter__item:focus {
	background: var(--wp--preset--color--cream, #f6f3ea);
}

.news-filter__item.is-current {
	background: var(--wp--preset--color--forest, #1e4d2b);
	color: #fff;
}

/* ---------------------------------------------------------------------------
 * 23. Footer form contrast (navy background)
 * ------------------------------------------------------------------------- */
.site-footer .gform-theme.gform-theme--framework {
	--gform-theme-color-fg: #e9edf3;
	--gform-theme-control-label-color-primary: #e9edf3;
	--gform-theme-control-description-color: #b9c2d0;
	--gform-theme-control-button-color-primary: var(--wp--preset--color--navy, #14213d);
	--gform-theme-control-button-background-color-primary: var(--wp--preset--color--gold, #c9a227);
	--gform-theme-control-button-border-color-primary: var(--wp--preset--color--gold, #c9a227);
}

.site-footer .gform_wrapper label,
.site-footer .gform_wrapper .gfield_label,
.site-footer .gform_wrapper legend,
.site-footer .gform_wrapper .gfield_description,
.site-footer .gform_wrapper .gfield_required {
	color: #e9edf3;
}

.site-footer .gform_wrapper input[type="submit"],
.site-footer .gform_wrapper .gform_button {
	background: var(--wp--preset--color--gold, #c9a227);
	border-color: var(--wp--preset--color--gold, #c9a227);
	color: var(--wp--preset--color--navy, #14213d);
	font-weight: 700;
}

.site-footer .gform_wrapper .gform_confirmation_message,
.site-footer .gform_confirmation_message {
	color: #e9edf3;
}

/* ---------------------------------------------------------------------------
 * 24. Stories archive
 * ------------------------------------------------------------------------- */
.stories-cta {
	margin-top: 1rem;
}

.story-card {
	background: var(--wp--preset--color--cream, #f6f3ea);
	border-radius: 8px;
	padding: 1.5rem;
}

.story-card__name {
	margin: 0;
	font-size: 1.15rem;
	color: var(--wp--preset--color--navy, #14213d);
}

.story-card__affiliation {
	margin: 0.15rem 0 0.75rem;
	font-size: 0.9rem;
	color: var(--wp--preset--color--forest, #1e4d2b);
	font-weight: 600;
}

.story-card__body {
	font-size: 0.98rem;
}

.stories-empty {
	background: var(--wp--preset--color--cream, #f6f3ea);
	border-radius: 8px;
	padding: 2rem;
	text-align: center;
}

/* ---------------------------------------------------------------------------
 * 25. Single entry back-link
 * ------------------------------------------------------------------------- */
.entry-back {
	margin-top: 2rem;
}

.entry-back a {
	font-weight: 700;
	text-decoration: none;
	color: var(--wp--preset--color--forest, #1e4d2b);
}

.entry-back a:hover,
.entry-back a:focus {
	text-decoration: underline;
}

/* Stories archive: excerpt cards link to the full story (section 24 add-on). */
.story-card__name a {
	color: inherit;
	text-decoration: none;
}

.story-card__name a:hover,
.story-card__name a:focus {
	color: var(--wp--preset--color--forest, #1e4d2b);
	text-decoration: underline;
}

.story-card__more {
	margin: 0.75rem 0 0;
}

.story-card__more a {
	font-weight: 700;
	text-decoration: none;
	color: var(--wp--preset--color--forest, #1e4d2b);
}

.story-card__more a:hover,
.story-card__more a:focus {
	text-decoration: underline;
}

/* Editor-added action cards: multi-paragraph blurbs keep the card rhythm. */
.action-card__blurb p {
	margin: 0 0 0.75rem;
}

.action-card__blurb p:last-child {
	margin-bottom: 0;
}
