/* =====================================================================
   National Forum for Democracy donation landing page styles.
   Brand palette and type follow ffdusa.org; layout is purpose-built
   for a single-page donation funnel.
   ===================================================================== */

:root {
	--nffd-navy:        #1d3962;
	--nffd-navy-dark:   #142a48;
	--nffd-navy-deep:   #0f2138;
	--nffd-red:         #870c25;
	--nffd-red-dark:    #6c091e;
	--nffd-gold:        #cb9b2c;
	--nffd-gold-dark:   #a87f1f;
	--nffd-cream:       #fbf8f2;
	--nffd-ink:         #232932;
	--nffd-muted:       #5a6573;
	--nffd-rule:        #e6e6e6;
	--nffd-bg-alt:      #f6f4ee;

	--nffd-serif: 'Source Serif 4', 'Source Serif Pro', 'PT Serif', Georgia, 'Times New Roman', serif;
	--nffd-sans:  'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

	--nffd-container: 1140px;
	--nffd-shadow-sm: 0 2px 6px rgba(20,42,72,0.06);
	--nffd-shadow-md: 0 12px 32px rgba(20,42,72,0.10);
	--nffd-shadow-lg: 0 24px 60px rgba(20,42,72,0.18);

	/* Customizer-driven type scale (dynamic CSS may override these). */
	--nffd-base-size: 17px;
	--nffd-heading-factor: 1;
	--nffd-section-factor: 1;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--nffd-sans);
	font-size: var(--nffd-base-size, 17px);
	line-height: 1.65;
	color: var(--nffd-ink);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--nffd-red); text-decoration: none; transition: color 150ms ease; }
a:hover, a:focus { color: var(--nffd-red-dark); text-decoration: underline; }

.nffd-container {
	max-width: var(--nffd-container);
	margin: 0 auto;
	padding: 0 24px;
}
.nffd-narrow { max-width: 820px; }

.screen-reader-text {
	border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden;
	padding: 0; position: absolute !important; word-wrap: normal !important;
}
.skip-link {
	position: absolute; left: -9999px;
	background: var(--nffd-navy); color: #fff;
	padding: 10px 16px; z-index: 1000;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- Type ---------- */
h1, h2, h3, h4 {
	font-family: var(--nffd-serif);
	color: var(--nffd-navy);
	font-weight: 700;
	margin: 0 0 0.6em;
	line-height: 1.18;
	letter-spacing: -0.005em;
}
h1 { font-size: calc(clamp(2.2rem, 4.6vw, 3.6rem) * var(--nffd-heading-factor, 1)); }
h2 { font-size: calc(clamp(1.6rem, 3vw, 2.4rem) * var(--nffd-heading-factor, 1)); }
h3 { font-size: calc(1.35rem * var(--nffd-heading-factor, 1)); }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }

.nffd-eyebrow {
	font-family: var(--nffd-sans);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--nffd-red);
	margin: 0 0 14px;
}
.nffd-eyebrow--center { text-align: center; }
.nffd-eyebrow--gold { color: var(--nffd-gold); }

/* Enlarged section eyebrow headlines (Support the Project, Make Your Gift,
   Project Director, Trusted Nationally, The Program, Our Mission). The two
   donate eyebrows are shown in red rather than gold. */
[data-section="donate"] .nffd-eyebrow,
[data-section="director"] .nffd-eyebrow,
[data-section="endorsements"] .nffd-eyebrow,
[data-section="forums"] .nffd-eyebrow,
[data-section="mission"] .nffd-eyebrow {
	font-size: 15px;
}
[data-section="donate"] .nffd-eyebrow--gold {
	color: var(--nffd-red);
}

.nffd-lede {
	font-size: 1.15rem;
	color: var(--nffd-muted);
}
.nffd-lede--center { text-align: center; }
.nffd-section__title { font-family: var(--nffd-serif); }
.nffd-section__title--center { text-align: center; }

/* ---------- Buttons ---------- */
.nffd-btn {
	display: inline-block;
	font-family: var(--nffd-sans);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-size: 13px;
	padding: 13px 24px;
	line-height: 1;
	border: 0;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 150ms ease, color 150ms ease,
		border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.nffd-btn:hover, .nffd-btn:focus { text-decoration: none; transform: translateY(-1px); }
/*
 * Buttons read three layers of CSS variables, in order:
 *   1. --btn-bg / --btn-text / --btn-hover - per-button override
 *      emitted as an inline style attribute on the button itself.
 *   2. --nffd-btn-{primary,secondary,ghost}-* - global Brand > Buttons
 *      settings emitted in the dynamic :root block.
 *   3. The base brand palette tokens (gold, navy, etc.).
 */
.nffd-btn--navy {
	background: var(--btn-bg,   var(--nffd-btn-secondary-bg,    var(--nffd-navy)));
	color:      var(--btn-text, var(--nffd-btn-secondary-text,  #fff));
}
.nffd-btn--navy:hover {
	background: var(--btn-hover, var(--nffd-btn-secondary-hover, var(--nffd-navy-dark)));
	color:      var(--btn-text,  var(--nffd-btn-secondary-text,  #fff));
}
.nffd-btn--red {
	background: var(--btn-bg,   var(--nffd-red));
	color:      var(--btn-text, #fff);
	box-shadow: 0 4px 14px rgba(135,12,37,0.35);
}
.nffd-btn--red:hover {
	background: var(--btn-hover, var(--nffd-red-dark));
	color:      var(--btn-text,  #fff);
	box-shadow: 0 6px 18px rgba(135,12,37,0.45);
}
.nffd-btn--gold {
	background: var(--btn-bg,   var(--nffd-btn-primary-bg,    var(--nffd-gold)));
	color:      var(--btn-text, var(--nffd-btn-primary-text,  #fff));
	box-shadow: 0 4px 14px rgba(203,155,44,0.35);
}
.nffd-btn--gold:hover {
	background: var(--btn-hover, var(--nffd-btn-primary-hover, var(--nffd-gold-dark)));
	color:      var(--btn-text,  var(--nffd-btn-primary-text,  #fff));
	box-shadow: 0 6px 18px rgba(203,155,44,0.45);
}
.nffd-btn--ghost {
	background: transparent;
	color:        var(--btn-text, var(--nffd-btn-ghost-text,   #fff));
	border:       2px solid var(--btn-bg, var(--nffd-btn-ghost-border, rgba(255,255,255,0.85)));
	padding: 11px 22px;
}
.nffd-btn--ghost:hover {
	background: var(--btn-hover, var(--nffd-btn-ghost-text, #fff));
	color: var(--nffd-navy);
}
.nffd-btn--lg  { padding: 15px 30px; font-size: 14px; }
.nffd-btn--xl  { padding: 18px 36px; font-size: 15px; }
.nffd-btn--block { display: block; width: 100%; text-align: center; }

/* ---------- Masthead ---------- */
.nffd-masthead {
	background: #fff;
	padding: 14px 0;
	border-bottom: 1px solid var(--nffd-rule);
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: saturate(140%) blur(6px);
}
.nffd-masthead__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}
.nffd-brand-link {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	min-width: 0;
}
.nffd-brand-link svg,
.nffd-brand-link img {
	display: block;
	height: auto;
}
.nffd-brand-link .nffd-logo {
	width: 230px;
	aspect-ratio: 320 / 130;
}
.nffd-brand-link .nffd-logo--custom {
	width: auto;
	max-width: 253px;
	max-height: 74px;
	aspect-ratio: auto;
}
.nffd-masthead__cta {
	display: flex;
	align-items: center;
	gap: 18px;
}
.nffd-masthead__contact {
	color: var(--nffd-navy);
	font-weight: 600;
	font-size: 14px;
}
.nffd-masthead__contact:hover { color: var(--nffd-red); text-decoration: none; }

/* ---------- DARK STAGE (hero + donate, one continuous field) ----------
   The hero and donate sections are wrapped in .nffd-darkstage so a single
   background spans both. This removes the navy-on-navy seam entirely (it is
   literally one gradient) and lets us place the warm/red glow right across
   the join, turning the old seam into a deliberate focal point. */
.nffd-darkstage {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	color: #fff;
	background:
		radial-gradient(120% 80% at 12% -12%, rgba(203,155,44,0.16) 0%, transparent 50%),
		radial-gradient(115% 95% at 100% 52%, rgba(135,12,37,0.34) 0%, transparent 58%),
		linear-gradient(168deg,
			var(--nffd-navy-deep) 0%,
			var(--nffd-navy)      28%,
			var(--nffd-navy-dark) 68%,
			var(--nffd-navy-deep) 100%);
}
/* Shared subtle dot texture across the whole stage. */
.nffd-darkstage::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
	background-size: 24px 24px;
	opacity: 0.5;
	pointer-events: none;
}
.nffd-darkstage > * { position: relative; z-index: 1; }
/* Inside the stage, hero + donate are transparent and let the shared
   background show through. (Their standalone backgrounds remain intact for
   any other context / Customizer per-section overrides still win.) */
.nffd-darkstage .nffd-hero__bg,
.nffd-darkstage .nffd-donate { background: transparent; }
.nffd-darkstage .nffd-hero__bg::after,
.nffd-darkstage .nffd-donate::before { display: none; }

/* ---------- HERO ---------- */
.nffd-hero {
	position: relative;
	color: #fff;
	overflow: hidden;
	isolation: isolate;
	padding: clamp(80px, 12vw, 140px) 0 clamp(80px, 10vw, 120px);
}
.nffd-hero__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(ellipse at 20% 0%, rgba(203,155,44,0.18) 0%, transparent 55%),
		radial-gradient(ellipse at 90% 100%, rgba(135,12,37,0.35) 0%, transparent 55%),
		linear-gradient(135deg, var(--nffd-navy-deep) 0%, var(--nffd-navy) 60%, var(--nffd-navy-dark) 100%);
}
.nffd-hero__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
	background-size: 24px 24px;
	opacity: 0.5;
	pointer-events: none;
}
.nffd-hero__inner { max-width: 920px; }
.nffd-hero .nffd-eyebrow { color: var(--nffd-gold); }
/* Hero main title - now holds the project name (e.g. "National Forum
   for Democracy Project"). Gold, large serif, title case (no
   uppercase transform). Scales aggressively on phones. */
.nffd-hero__title {
	color: var(--nffd-gold);
	font-family: var(--nffd-serif);
	font-weight: 700;
	margin: 0 0 18px;
	font-size: calc(clamp(1.55rem, 5.5vw, 3.6rem) * var(--nffd-heading-factor, 1));
	line-height: 1.1;
	text-transform: none;
	letter-spacing: 0;
	text-wrap: balance;
	-webkit-hyphens: manual;
	hyphens: manual;
}

/* Tagline below the main title. Italic white, smaller than the title. */
.nffd-hero__tagline {
	color: rgba(255, 255, 255, 0.92);
	font-family: var(--nffd-serif);
	font-style: italic;
	font-weight: 700;
	font-size: calc(clamp(1.13rem, 2.2vw, 1.68rem) * var(--nffd-heading-factor, 1));
	line-height: 1.3;
	margin: 0 0 22px;
	text-wrap: balance;
}
.nffd-hero__tagline-accent {
	/* Flows inline with the first line; wraps naturally only when the
	   viewport is too narrow, rather than always forcing a second line. */
	display: inline;
	font-weight: 400;
}
.nffd-hero__lede {
	font-size: clamp(1.05rem, 1.6vw, 1.3rem);
	color: rgba(255,255,255,0.88);
	max-width: 720px;
	margin-bottom: 36px;
}
.nffd-hero__actions {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

/* ---------- STATS ---------- */
.nffd-stats {
	background: #fff;
	border-bottom: 1px solid var(--nffd-rule);
	padding: 36px 0;
	margin-top: -1px;
}
.nffd-stats__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	text-align: center;
}
.nffd-stats__grid li {
	border-left: 3px solid var(--nffd-gold);
	padding: 4px 0 4px 18px;
	text-align: left;
}
.nffd-stats__num {
	display: block;
	font-family: var(--nffd-serif);
	font-size: clamp(1.8rem, 3vw, 2.4rem);
	font-weight: 700;
	color: var(--nffd-navy);
	line-height: 1.1;
}
.nffd-stats__label {
	display: block;
	font-size: 13.5px;
	color: var(--nffd-muted);
	margin-top: 4px;
}
@media (max-width: 880px) {
	.nffd-stats__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Sections ---------- */
.nffd-section { padding: clamp(32px, 4.5vw, 56px) 0; }
.nffd-section--alt { background: var(--nffd-bg-alt); }
.nffd-section__head {
	max-width: 780px;
	margin: 0 auto 36px;
}
.nffd-section__head .nffd-lede { margin-top: 10px; }
/* Bullet lists inside a centered lede read poorly when each line is
   centered. Center the list as a block (shrink-wrapped to its content) but
   keep the items themselves flush-left. */
.nffd-lede--center ul {
	display: table;
	margin: 14px auto;
	padding-left: 1.25em;
	text-align: left;
}
.nffd-lede--center li {
	margin-bottom: 6px;
}

/* ---------- Forums ---------- */
.nffd-forums {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}
.nffd-forum-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--nffd-rule);
	border-top: 4px solid var(--nffd-red);
	padding: 36px 28px 28px;
	box-shadow: var(--nffd-shadow-sm);
	transition: transform 200ms ease, box-shadow 200ms ease;
}
.nffd-forum-card:hover,
.nffd-forum-card:focus-within {
	transform: translateY(-4px);
	box-shadow: var(--nffd-shadow-md);
}
.nffd-forum-card:hover .nffd-forum-card__more,
.nffd-forum-card:focus-within .nffd-forum-card__more {
	color: var(--nffd-red-dark);
	gap: 10px;
}
.nffd-forum-card__icon { margin-bottom: 18px; }
.nffd-forum-card__icon .nffd-icon { width: 64px; height: 56px; }
.nffd-forum-card__icon .nffd-icon--custom {
	width: 72px;
	height: 72px;
	object-fit: contain;
	object-position: left center;
}
.nffd-forum-card__branch {
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--nffd-red);
	font-weight: 700;
	margin: 0 0 8px;
}
.nffd-forum-card__title {
	font-family: var(--nffd-serif);
	color: var(--nffd-navy);
	margin: 0 0 12px;
}
/* Black body text on the forum cards. */
.nffd-forum-card .nffd-forum-card__desc {
	color: var(--nffd-ink);
	margin: 0 0 20px;
	flex-grow: 1;
}
.nffd-forum-card__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--nffd-red);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	transition: gap 150ms ease, color 150ms ease;
}
/* Stretched link: clicking anywhere on the card opens the forum. */
.nffd-forum-card__more::after {
	content: "";
	position: absolute;
	inset: 0;
}

@media (max-width: 880px) {
	.nffd-forums { grid-template-columns: 1fr; }
}

/* ---------- National Polling Project highlight block ---------- */
.nffd-polling-block {
	background: #fff;
	border: 1px solid var(--nffd-rule);
	border-top: 4px solid var(--nffd-red);
	padding: 32px clamp(20px, 3vw, 36px);
	box-shadow: var(--nffd-shadow-sm);
	margin: 0 0 32px;
}
.nffd-polling-block__eyebrow {
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--nffd-red);
	font-weight: 700;
	margin: 0 0 8px;
}
.nffd-polling-block__title {
	font-family: var(--nffd-serif);
	color: var(--nffd-navy);
	font-size: calc(1.5rem * var(--nffd-heading-factor, 1));
	margin: 0 0 16px;
	line-height: 1.2;
}
.nffd-polling-block__body p {
	color: var(--nffd-ink);
	margin: 0 0 1em;
	line-height: 1.6;
}
.nffd-polling-block__body p:last-child { margin-bottom: 0; }
.nffd-polling-block__body a {
	color: var(--nffd-red);
	font-weight: 600;
}
.nffd-polling-block__body a:hover { color: var(--nffd-red-dark); }

/* ---------- Donate / giving tiers ---------- */
.nffd-donate {
	position: relative;
	color: #fff;
	/* Starts at navy-dark to flow seamlessly out of the hero gradient
	   (which ends on navy-dark), then deepens - reads as one continuous
	   navy field rather than a navy-on-navy seam. (Inside .nffd-darkstage
	   this is overridden to transparent; the stage paints the background.) */
	background: linear-gradient(180deg, var(--nffd-navy-dark) 0%, var(--nffd-navy-deep) 100%);
	/* Vertical rhythm now lives on __intro (white bar) and __form. */
	padding: 0;
}
.nffd-donate::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 80% 10%, rgba(203,155,44,0.18) 0%, transparent 45%),
		radial-gradient(circle at 0% 100%, rgba(135,12,37,0.25) 0%, transparent 50%);
	pointer-events: none;
}
.nffd-donate > * { position: relative; }

/* White intro bar between the hero and the Zeffy form - lifts the section
   header out of the dark field so the two navy zones are split by a clean
   white band rather than meeting edge to edge. */
.nffd-donate__intro {
	background: #fff;
	color: var(--nffd-ink);
}
.nffd-donate__head {
	max-width: 820px;
	margin: 0 auto;
	text-align: center;
}
.nffd-donate__title {
	color: var(--nffd-navy);
	margin-bottom: 18px;
}
.nffd-donate__lede {
	color: var(--nffd-muted);
	font-size: 1.15rem;
}
.nffd-donate__lede p:last-child { margin-bottom: 0; }


/* ---------- Zeffy donation form embed ---------- */
.nffd-zeffy {
	margin-top: 8px;
	scroll-margin-top: 96px;
}
.nffd-zeffy__inner {
	max-width: 760px;
	margin: 0 auto;
	background: #fff;
	color: var(--nffd-ink);
	padding: 36px 32px;
	box-shadow: var(--nffd-shadow-lg);
	border-top: 6px solid var(--nffd-gold);
	text-align: center;
}
.nffd-zeffy__title {
	color: var(--nffd-navy);
	margin-bottom: 6px;
}
.nffd-zeffy__sub {
	color: var(--nffd-muted);
	font-size: 0.95rem;
	margin-bottom: 24px;
}
.nffd-zeffy__embed {
	position: relative;
	background: #f3efe6;
	border: 1px solid var(--nffd-rule);
	min-height: 720px;
}
.nffd-zeffy__embed iframe {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 720px;
	border: 0;
}
/* Pasted Zeffy embed snippet provides its own sizing/fallback markup, so
   we only normalise alignment and ensure any iframe fills the width. */
.nffd-zeffy__code {
	text-align: left;
}
.nffd-zeffy__code iframe {
	display: block;
	width: 100%;
	border: 0;
}
.nffd-zeffy__placeholder {
	background: repeating-linear-gradient(
		45deg,
		#f7f3e8,
		#f7f3e8 12px,
		#f0e9d4 12px,
		#f0e9d4 24px
	);
	border: 2px dashed var(--nffd-gold);
	padding: 56px 24px;
	color: var(--nffd-navy);
}
.nffd-zeffy__placeholder-icon {
	font-size: 48px;
	line-height: 1;
	margin-bottom: 16px;
}
.nffd-zeffy__placeholder-title {
	font-family: var(--nffd-serif);
	font-size: 1.2rem;
	color: var(--nffd-navy);
	margin: 0 0 8px;
}
.nffd-zeffy__placeholder-help {
	color: var(--nffd-muted);
	font-size: 14px;
	margin: 0;
}

/* ---------- Endorsements ---------- */
.nffd-endorsers {
	list-style: none;
	margin: 0 0 32px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.nffd-endorsers li {
	background: #fff;
	border: 1px solid var(--nffd-rule);
	padding: 28px 24px;
	text-align: center;
	box-shadow: var(--nffd-shadow-sm);
}
.nffd-endorsers__num {
	display: block;
	font-family: var(--nffd-serif);
	font-size: 2.4rem;
	font-weight: 700;
	color: var(--nffd-red);
	line-height: 1;
	margin-bottom: 8px;
}
.nffd-endorsers__label {
	display: block;
	color: var(--nffd-navy);
	font-weight: 600;
	font-size: 15px;
}
.nffd-endorsers__links {
	margin: 28px 0 0;
	text-align: center;
	font-weight: 700;
}
.nffd-trust-line {
	max-width: 820px;
	margin: 32px auto 0;
	text-align: center;
	color: var(--nffd-ink);
	font-style: normal;
	font-weight: 600;
}
@media (max-width: 880px) {
	.nffd-endorsers { grid-template-columns: 1fr; }
}

/* ---------- Director ---------- */
.nffd-director {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 48px;
	align-items: start;
	max-width: 980px;
	margin: 0 auto;
}
.nffd-director__photo {
	width: 200px;
	height: 200px;
	border-radius: 24px;
	background: linear-gradient(135deg, var(--nffd-navy) 0%, var(--nffd-red) 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-family: var(--nffd-serif);
	font-size: 4.5rem;
	font-weight: 700;
	box-shadow: var(--nffd-shadow-md);
	overflow: hidden;
}
/* When a headshot is uploaded, drop the gradient fill and let the image
   cover the rounded-square frame. */
.nffd-director__photo--image { background: none; }
.nffd-director__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
	display: block;
}
.nffd-director__body h2 { margin-top: 0; }
.nffd-director__contact { margin-top: 8px; }
.nffd-link-arrow {
	font-weight: 700;
	letter-spacing: 0.02em;
}
@media (max-width: 720px) {
	.nffd-director { grid-template-columns: 1fr; gap: 24px; text-align: center; }
	.nffd-director__photo { margin: 0 auto; }
}

/* ---------- Trust bar ---------- */
.nffd-trustbar {
	background: var(--nffd-cream);
	padding: 28px 0;
	border-top: 1px solid var(--nffd-rule);
	border-bottom: 1px solid var(--nffd-rule);
}
.nffd-trustbar__inner {
	display: flex;
	gap: 24px;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
}
.nffd-trustbar h3 {
	margin: 0;
	color: var(--nffd-navy);
	font-size: 1.1rem;
}
.nffd-trustbar ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin: 0;
	padding: 0;
}
.nffd-trustbar li {
	color: var(--nffd-ink);
	font-weight: 600;
	font-size: 14px;
	position: relative;
	padding-left: 22px;
}
.nffd-trustbar li::before {
	content: "";
	position: absolute;
	left: 0; top: 6px;
	width: 12px; height: 7px;
	border-left: 2.5px solid var(--nffd-red);
	border-bottom: 2.5px solid var(--nffd-red);
	transform: rotate(-45deg);
}

/* ---------- Final CTA ---------- */
.nffd-final-cta {
	background: var(--nffd-red);
	color: #fff;
	padding: clamp(60px, 8vw, 96px) 0;
	text-align: center;
}
.nffd-final-cta h2 { color: #fff; margin-bottom: 12px; max-width: 820px; margin-left: auto; margin-right: auto; }
.nffd-final-cta p { color: rgba(255,255,255,0.92); font-size: 1.15rem; margin-bottom: 28px; }
.nffd-final-cta__actions {
	display: flex;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
}

/* Gold divider line, shown at the top of any block that opts in via the
   per-section "Gold divider line" Customizer toggle (the .nffd-divider
   class). Matches the rule above the final CTA band. Because each block
   draws its own line, sections that share one dark stage (hero + donate)
   or are built from multiple coloured bands can each carry a line. */
.nffd-divider {
	border-top: 6px solid var(--nffd-gold);
}

/* ---------- Footer ---------- */
.nffd-footer {
	color: rgba(255,255,255,0.88);
	background:
		linear-gradient(180deg, var(--nffd-navy-deep) 0%, var(--nffd-navy-dark) 60%, var(--nffd-navy) 100%);
	border-top: 6px solid var(--nffd-gold);
	position: relative;
	overflow: hidden;
}
.nffd-footer::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 90% 0%, rgba(203,155,44,0.10) 0%, transparent 40%),
		radial-gradient(circle at 0% 100%, rgba(135,12,37,0.18) 0%, transparent 50%);
	pointer-events: none;
}
.nffd-footer__main {
	position: relative;
	padding: clamp(56px, 7vw, 88px) 0 clamp(40px, 5vw, 64px);
}
.nffd-footer__grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
	gap: 48px;
	align-items: start;
}
.nffd-footer__brand { max-width: 360px; }
.nffd-footer__logo {
	margin-bottom: 18px;
	display: inline-block;
	background: #fff;
	padding: 12px 16px;
	border-radius: 4px;
	box-shadow: 0 4px 14px rgba(0,0,0,0.2);
	text-decoration: none;
	transition: transform 200ms ease, box-shadow 200ms ease;
}
.nffd-footer__logo:hover,
.nffd-footer__logo:focus-visible {
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.nffd-footer__logo .nffd-logo { width: 180px; }
.nffd-footer__logo .nffd-logo--custom { max-height: 80px; width: auto; }

/* Footer partner logo (Mediators Foundation by default). */
.nffd-footer__partner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}
.nffd-footer__partner .nffd-footer__label {
	display: block;
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--nffd-gold);
	font-weight: 700;
}
.nffd-footer__partner-link {
	display: inline-block;
	transition: transform 200ms ease, opacity 200ms ease;
}
.nffd-footer__partner-link:hover,
.nffd-footer__partner-link:focus-visible {
	transform: translateY(-2px);
	opacity: 0.9;
	text-decoration: none;
}
.nffd-footer__partner-logo {
	display: block;
	max-width: 220px;
	max-height: 70px;
	width: auto;
	height: auto;
}
.nffd-footer__partner-text {
	margin: 0 0 16px;
	font-size: 14.5px;
	color: rgba(255,255,255,0.85);
}
.nffd-footer__partner-text:last-child { margin-bottom: 0; }
.nffd-footer__partner-text a {
	color: rgba(255,255,255,0.92);
	font-weight: 600;
}
.nffd-footer__partner-text a:hover { color: var(--nffd-gold); text-decoration: none; }
.nffd-footer__partner + .nffd-footer__partner-text { margin-top: 18px; }
.nffd-footer__mission {
	color: rgba(255,255,255,0.85);
	font-size: 15px;
	margin-bottom: 20px;
	line-height: 1.65;
}
.nffd-footer__heading {
	font-family: var(--nffd-sans);
	color: var(--nffd-gold);
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: 12px;
	font-weight: 700;
	margin: 0 0 18px;
	padding-bottom: 12px;
	border-bottom: 1px solid rgba(255,255,255,0.12);
}
.nffd-footer__links {
	list-style: none;
	padding: 0;
	margin: 0;
}
.nffd-footer__links li {
	margin-bottom: 10px;
	font-size: 14.5px;
	color: rgba(255,255,255,0.85);
}
.nffd-footer__links a {
	color: rgba(255,255,255,0.92);
	font-weight: 600;
	transition: color 150ms ease, padding-left 150ms ease;
}
.nffd-footer__links a:hover {
	color: var(--nffd-gold);
	text-decoration: none;
	padding-left: 4px;
}
.nffd-footer__label {
	display: block;
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--nffd-gold);
	font-weight: 700;
	margin-bottom: 2px;
}

.nffd-footer__quote {
	position: relative;
	max-width: 760px;
	margin: clamp(40px, 6vw, 64px) auto 0;
	padding: 28px 32px 28px 56px;
	font-family: var(--nffd-serif);
	font-style: italic;
	color: rgba(255,255,255,0.92);
	border-left: 3px solid var(--nffd-gold);
}
.nffd-footer__quote::before {
	content: "\201C";
	position: absolute;
	left: 14px;
	top: -8px;
	font-family: var(--nffd-serif);
	font-size: 5rem;
	line-height: 1;
	color: var(--nffd-gold);
	opacity: 0.7;
}
.nffd-footer__quote p {
	font-size: 1.15rem;
	line-height: 1.5;
	margin: 0 0 8px;
}
.nffd-footer__quote cite {
	font-style: normal;
	font-family: var(--nffd-sans);
	font-size: 13px;
	letter-spacing: 0.06em;
	color: var(--nffd-gold);
	text-transform: uppercase;
	font-weight: 700;
}

.nffd-footer__bottom {
	position: relative;
	background: rgba(0,0,0,0.25);
	border-top: 1px solid rgba(255,255,255,0.08);
	padding: 18px 0;
}
.nffd-footer__bottom-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	font-size: 13px;
	color: rgba(255,255,255,0.72);
}
.nffd-footer__bottom p { margin: 0; }
.nffd-footer__bottom a { color: rgba(255,255,255,0.92); }
.nffd-footer__bottom a:hover { color: var(--nffd-gold); text-decoration: none; }
.nffd-footer__sep { margin: 0 8px; opacity: 0.5; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
	.nffd-footer__grid {
		grid-template-columns: 1fr 1fr;
		gap: 36px;
	}
	.nffd-footer__brand { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 600px) {
	.nffd-footer__grid { grid-template-columns: 1fr; gap: 32px; }
	.nffd-hero__actions { flex-direction: column; align-items: stretch; }
	.nffd-hero__actions .nffd-btn { text-align: center; }
	.nffd-footer__bottom-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
	.nffd-brand-link .nffd-logo { width: 172px; }
	.nffd-masthead__cta .nffd-btn { padding: 10px 14px; font-size: 12px; }
}

/* ======================================================================
   Per-section Customizer overrides.

   Section partials emit inline style="--section-bg: ...; --section-heading: ..."
   only when the user has set a value in the Customizer. The rules below use
   attribute selectors so the override only kicks in when the variable is
   actually present; otherwise the original visual default is preserved.
   ====================================================================== */

/* Section vertical-padding scale (per-section + global section factor). */
.nffd-section { padding: calc(clamp(32px, 4.5vw, 56px) * var(--section-scale, 1) * var(--nffd-section-factor, 1)) 0; }
.nffd-hero    { padding: calc(clamp(44px, 6vw, 76px) * var(--section-scale, 1) * var(--nffd-section-factor, 1)) 0 calc(clamp(40px, 5vw, 62px) * var(--section-scale, 1) * var(--nffd-section-factor, 1)); }
.nffd-donate__intro { padding: calc(clamp(28px, 4vw, 52px) * var(--section-scale, 1) * var(--nffd-section-factor, 1)) 0; }
/* Longhand so the .nffd-container horizontal gutters (24px) are preserved. */
.nffd-donate__form  {
	padding-top:    calc(clamp(36px, 5vw, 62px) * var(--section-scale, 1) * var(--nffd-section-factor, 1));
	padding-bottom: calc(clamp(44px, 6vw, 74px) * var(--section-scale, 1) * var(--nffd-section-factor, 1));
}

/* Hero */
[data-section="hero"][style*="--section-bg"] .nffd-hero__bg          { background: var(--section-bg); }
[data-section="hero"][style*="--section-heading"] .nffd-hero__title  { color: var(--section-heading); }
[data-section="hero"][style*="--section-body"] .nffd-hero__lede      { color: var(--section-body); }
[data-section="hero"][style*="--section-accent"] .nffd-hero__tagline,
[data-section="hero"][style*="--section-accent"] .nffd-hero__tagline-accent { color: var(--section-accent); }

/* Stats */
[data-section="stats"][style*="--section-bg"]                        { background: var(--section-bg); }
[data-section="stats"][style*="--section-heading"] .nffd-stats__num  { color: var(--section-heading); }
[data-section="stats"][style*="--section-body"] .nffd-stats__label   { color: var(--section-body); }
[data-section="stats"][style*="--section-accent"] li                 { border-left-color: var(--section-accent); }

/* Donate */
[data-section="donate"][style*="--section-bg"]                       { background: var(--section-bg); }
[data-section="donate"][style*="--section-bg"]::before               { display: none; }
[data-section="donate"][style*="--section-heading"] .nffd-donate__title { color: var(--section-heading); }
[data-section="donate"][style*="--section-body"] .nffd-donate__lede  { color: var(--section-body); }
[data-section="donate"][style*="--section-accent"] .nffd-eyebrow     { color: var(--section-accent); }

/* Generic sections (mission, forums, endorsements, director, details) */
[data-section="mission"][style*="--section-bg"],
[data-section="forums"][style*="--section-bg"],
[data-section="endorsements"][style*="--section-bg"],
[data-section="director"][style*="--section-bg"],
[data-section="details"][style*="--section-bg"],
[data-section="affiliations"][style*="--section-bg"]                 { background: var(--section-bg); }

[data-section="mission"][style*="--section-heading"] .nffd-section__title,
[data-section="forums"][style*="--section-heading"] .nffd-section__title,
[data-section="endorsements"][style*="--section-heading"] .nffd-section__title,
[data-section="details"][style*="--section-heading"] .nffd-section__title,
[data-section="director"][style*="--section-heading"] h2 { color: var(--section-heading); }

/*
 * Body text color overrides are listed explicitly per body container
 * so they cannot bleed into eyebrows, branch labels, role badges or
 * any other paragraph that happens to live inside a section.
 */
[data-section][style*="--section-body"] .nffd-hero__lede,
[data-section][style*="--section-body"] .nffd-hero__lede p,
[data-section][style*="--section-body"] .nffd-donate__lede,
[data-section][style*="--section-body"] .nffd-donate__lede p,
[data-section][style*="--section-body"] .nffd-zeffy__sub,
[data-section][style*="--section-body"] .nffd-zeffy__sub p,
[data-section][style*="--section-body"] .nffd-lede,
[data-section][style*="--section-body"] .nffd-lede p,
[data-section][style*="--section-body"] .nffd-forum-card__desc,
[data-section][style*="--section-body"] .nffd-forum-card__desc p,
[data-section][style*="--section-body"] .nffd-polling-block__body,
[data-section][style*="--section-body"] .nffd-polling-block__body p,
[data-section][style*="--section-body"] .nffd-trust-line,
[data-section][style*="--section-body"] .nffd-trust-line p,
[data-section][style*="--section-body"] .nffd-director__bio,
[data-section][style*="--section-body"] .nffd-director__bio p,
[data-section][style*="--section-body"] .nffd-final-cta__body,
[data-section][style*="--section-body"] .nffd-final-cta__body p,
[data-section][style*="--section-body"] .nffd-contact-simple__text,
[data-section][style*="--section-body"] .nffd-contact-simple__text p,
[data-section][style*="--section-body"] .nffd-trustbar li {
	color: var(--section-body);
}

[data-section][style*="--section-accent"] .nffd-eyebrow,
[data-section][style*="--section-accent"] .nffd-polling-block__eyebrow,
[data-section][style*="--section-accent"] .nffd-forum-card__branch,
[data-section][style*="--section-accent"] .nffd-link-arrow,
[data-section][style*="--section-accent"] .nffd-forum-card__more     { color: var(--section-accent); }

/* Trust bar + Final CTA */
[data-section="trustbar"][style*="--section-bg"]                      { background: var(--section-bg); }
[data-section="trustbar"][style*="--section-heading"] h3              { color: var(--section-heading); }
[data-section="final"][style*="--section-bg"]                         { background: var(--section-bg); }
[data-section="final"][style*="--section-heading"] h2                 { color: var(--section-heading); }
[data-section="final"][style*="--section-body"] .nffd-final-cta__body,
[data-section="final"][style*="--section-body"] .nffd-final-cta__body p { color: var(--section-body); }

/* ======================================================================
   Contact page styles
   ====================================================================== */

.nffd-hero--slim {
	padding: calc(clamp(40px, 5vw, 68px) * var(--section-scale, 1) * var(--nffd-section-factor, 1)) 0
	         calc(clamp(34px, 4.5vw, 52px) * var(--section-scale, 1) * var(--nffd-section-factor, 1));
}
.nffd-hero--slim .nffd-hero__title {
	font-size: calc(clamp(1.8rem, 3.6vw, 2.8rem) * var(--nffd-heading-factor, 1));
}

.nffd-contact-grid {
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	gap: 48px;
	align-items: start;
}
@media (max-width: 880px) {
	.nffd-contact-grid { grid-template-columns: 1fr; }
}

.nffd-contact-card {
	background: #fff;
	border: 1px solid var(--nffd-rule);
	border-top: 4px solid var(--nffd-red);
	padding: 32px 28px;
	box-shadow: var(--nffd-shadow-sm);
}
.nffd-contact-card h3 {
	font-family: var(--nffd-serif);
	color: var(--nffd-navy);
	margin: 0 0 4px;
}
.nffd-contact-card__role {
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--nffd-red);
	margin: 0 0 18px;
}
.nffd-contact-card__bio {
	color: var(--nffd-ink);
	font-size: 15px;
	margin-bottom: 22px;
}
.nffd-contact-card__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 14px;
}
.nffd-contact-card__list li {
	border-top: 1px solid var(--nffd-rule);
	padding-top: 12px;
	font-size: 15px;
}
.nffd-contact-card__label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--nffd-muted);
	margin-bottom: 4px;
}

.nffd-contact-form h3 {
	color: var(--nffd-navy);
	font-family: var(--nffd-serif);
	margin: 0 0 6px;
}
.nffd-contact-form__intro {
	color: var(--nffd-muted);
	margin-bottom: 24px;
}
.nffd-contact-form__embed {
	background: #fff;
	border: 1px solid var(--nffd-rule);
	padding: 28px;
	box-shadow: var(--nffd-shadow-sm);
}
.nffd-contact-form__placeholder {
	background: repeating-linear-gradient(
		45deg,
		#f7f3e8,
		#f7f3e8 12px,
		#f0e9d4 12px,
		#f0e9d4 24px
	);
	border: 2px dashed var(--nffd-gold);
	padding: 48px 28px;
	text-align: center;
}
.nffd-contact-form__placeholder-title {
	font-family: var(--nffd-serif);
	color: var(--nffd-navy);
	font-size: 1.2rem;
	margin: 0 0 8px;
}
.nffd-contact-form__placeholder-help {
	color: var(--nffd-muted);
	font-size: 14px;
	margin: 0;
}

/* Affiliations strip */
.nffd-affiliations__grid {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 24px;
	text-align: center;
}
.nffd-affiliations__grid li {
	background: #fff;
	border: 1px solid var(--nffd-rule);
	padding: 24px 20px;
	box-shadow: var(--nffd-shadow-sm);
}
.nffd-affiliations__label {
	display: block;
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--nffd-red);
	font-weight: 700;
	margin-bottom: 6px;
}
.nffd-affiliations__name {
	display: block;
	font-family: var(--nffd-serif);
	color: var(--nffd-navy);
	font-size: 1.1rem;
	font-weight: 600;
}

/* ======================================================================
   Simplified Contact page (page-contact.php)
   Navy hero band (eyebrow + title + lede) + two-column block
   (intro text on left, form card on right) on a white surface.
   ====================================================================== */

.nffd-contact-simple {
	background: #fff;
	position: relative;
}

/* Hero band: full-width navy gradient, white/gold text. */
.nffd-contact-simple__hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	color: #fff;
	padding: clamp(64px, 9vw, 110px) 0 clamp(56px, 8vw, 96px);
	text-align: center;
	margin-bottom: clamp(40px, 6vw, 72px);
}
.nffd-contact-simple__hero-bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(ellipse at 20% 0%, rgba(203,155,44,0.15) 0%, transparent 55%),
		radial-gradient(ellipse at 90% 100%, rgba(135,12,37,0.30) 0%, transparent 55%),
		linear-gradient(135deg, var(--nffd-navy-deep) 0%, var(--nffd-navy) 60%, var(--nffd-navy-dark) 100%);
	pointer-events: none;
}
.nffd-contact-simple__hero .nffd-container {
	max-width: 820px;
}
.nffd-contact-simple__hero .nffd-eyebrow {
	margin-bottom: 16px;
	color: var(--nffd-gold);
}

.nffd-contact-simple__title {
	font-family: var(--nffd-serif);
	color: #fff;
	text-align: center;
	font-size: calc(clamp(2.4rem, 5.5vw, 4.2rem) * var(--nffd-heading-factor, 1));
	margin: 0 0 18px;
	line-height: 1.1;
	text-wrap: balance;
}

.nffd-contact-simple__lede {
	color: rgba(255, 255, 255, 0.88);
	font-size: 1.1rem;
	line-height: 1.6;
	max-width: 640px;
	margin: 0 auto;
}
.nffd-contact-simple__lede p {
	margin: 0;
	color: inherit;
	font-size: inherit;
	line-height: inherit;
}

/* Body area below the hero band. */
.nffd-contact-simple__body {
	padding: 0 0 clamp(56px, 8vw, 96px);
}

.nffd-contact-simple__grid {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: clamp(32px, 5vw, 72px);
	align-items: start;
	max-width: 1100px;
	margin: 0 auto;
}
@media (max-width: 880px) {
	.nffd-contact-simple__grid { grid-template-columns: 1fr; }
}

.nffd-contact-simple__text .nffd-eyebrow,
.nffd-contact-simple__form-wrap .nffd-eyebrow {
	margin-bottom: 10px;
}

.nffd-contact-simple__heading {
	font-family: var(--nffd-serif);
	color: var(--nffd-navy);
	font-size: calc(clamp(1.4rem, 2.4vw, 2rem) * var(--nffd-heading-factor, 1));
	margin: 0 0 24px;
	line-height: 1.2;
}

.nffd-contact-simple__text p {
	color: var(--nffd-ink);
	font-size: 1rem;
	line-height: 1.65;
	margin: 0 0 1em;
}
.nffd-contact-simple__text p:last-child { margin-bottom: 0; }

.nffd-contact-simple__form-wrap {
	display: flex;
	flex-direction: column;
}

.nffd-contact-simple__form {
	background: #fff;
	border: 1px solid var(--nffd-rule);
	border-top: 6px solid var(--nffd-red);
	padding: clamp(24px, 3.5vw, 36px);
	box-shadow: var(--nffd-shadow-md);
}

.nffd-contact-simple__placeholder {
	background: repeating-linear-gradient(
		45deg,
		#f7f3e8,
		#f7f3e8 12px,
		#f0e9d4 12px,
		#f0e9d4 24px
	);
	border: 2px dashed var(--nffd-gold);
	padding: 40px 24px;
	text-align: center;
}
.nffd-contact-simple__placeholder-title {
	font-family: var(--nffd-serif);
	color: var(--nffd-navy);
	font-size: 1.15rem;
	margin: 0 0 8px;
}
.nffd-contact-simple__placeholder-help {
	color: var(--nffd-muted);
	font-size: 14px;
	margin: 0;
}

/* ======================================================================
   Gravity Forms inside the contact form card.
   Scoped under .nffd-contact-simple__form so this styling does not
   bleed into forms placed elsewhere on the site.
   ====================================================================== */

.nffd-contact-simple__form .gform_wrapper { margin: 0 !important; }
.nffd-contact-simple__form .gform_wrapper .gform_body,
.nffd-contact-simple__form .gform_wrapper .gform_fields {
	margin: 0 !important;
	padding: 0 !important;
	display: block !important;
}

.nffd-contact-simple__form .gform_wrapper .gfield {
	margin: 0 0 14px !important;
	padding: 0 !important;
	list-style: none;
}
.nffd-contact-simple__form .gform_wrapper .gfield:last-of-type { margin-bottom: 0 !important; }
.nffd-contact-simple__form .gform_wrapper .ginput_container { margin-top: 0 !important; }

/* Field labels */
.nffd-contact-simple__form .gform_wrapper .gfield_label,
.nffd-contact-simple__form .gform_wrapper legend.gfield_label {
	display: block;
	font-family: var(--nffd-sans);
	font-size: 14px;
	font-weight: 700;
	color: var(--nffd-navy);
	margin: 0 0 6px !important;
	line-height: 1.4;
	padding: 0;
}

/* Required asterisk */
.nffd-contact-simple__form .gform_wrapper .gfield_required {
	color: var(--nffd-red);
	margin-left: 4px;
	font-weight: 700;
}

/* Sub-labels (First / Last under Name, Enter Email / Confirm Email) */
.nffd-contact-simple__form .gform_wrapper .ginput_complex label,
.nffd-contact-simple__form .gform_wrapper .ginput_container label,
.nffd-contact-simple__form .gform_wrapper .gfield_label_before_complex {
	font-family: var(--nffd-sans);
	font-size: 12px;
	font-weight: 600;
	color: var(--nffd-muted);
	letter-spacing: 0;
	text-transform: none;
	margin: 0 0 4px;
	display: block;
}

/* Inputs */
.nffd-contact-simple__form .gform_wrapper input[type="text"],
.nffd-contact-simple__form .gform_wrapper input[type="email"],
.nffd-contact-simple__form .gform_wrapper input[type="tel"],
.nffd-contact-simple__form .gform_wrapper input[type="url"],
.nffd-contact-simple__form .gform_wrapper input[type="number"],
.nffd-contact-simple__form .gform_wrapper input[type="password"],
.nffd-contact-simple__form .gform_wrapper input[type="search"],
.nffd-contact-simple__form .gform_wrapper input[type="date"],
.nffd-contact-simple__form .gform_wrapper textarea,
.nffd-contact-simple__form .gform_wrapper select {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0 !important;
	padding: 10px 14px !important;
	font-family: var(--nffd-sans);
	font-size: 15px;
	line-height: 1.4;
	color: var(--nffd-ink);
	background: #fff;
	border: 1px solid var(--nffd-rule);
	border-radius: 2px;
	box-shadow: none;
	transition: border-color 150ms ease, box-shadow 150ms ease;
	-webkit-appearance: none;
	appearance: none;
}

.nffd-contact-simple__form .gform_wrapper input[type="text"]:focus,
.nffd-contact-simple__form .gform_wrapper input[type="email"]:focus,
.nffd-contact-simple__form .gform_wrapper input[type="tel"]:focus,
.nffd-contact-simple__form .gform_wrapper input[type="url"]:focus,
.nffd-contact-simple__form .gform_wrapper input[type="number"]:focus,
.nffd-contact-simple__form .gform_wrapper input[type="password"]:focus,
.nffd-contact-simple__form .gform_wrapper input[type="search"]:focus,
.nffd-contact-simple__form .gform_wrapper input[type="date"]:focus,
.nffd-contact-simple__form .gform_wrapper textarea:focus,
.nffd-contact-simple__form .gform_wrapper select:focus {
	outline: none;
	border-color: var(--nffd-navy);
	box-shadow: 0 0 0 3px rgba(29, 57, 98, 0.15);
}

.nffd-contact-simple__form .gform_wrapper textarea {
	min-height: 140px;
	resize: vertical;
}

/* Complex fields: First/Last name, Enter Email / Confirm Email */
.nffd-contact-simple__form .gform_wrapper .ginput_complex {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.nffd-contact-simple__form .gform_wrapper .ginput_complex > span,
.nffd-contact-simple__form .gform_wrapper .ginput_complex .name_first,
.nffd-contact-simple__form .gform_wrapper .ginput_complex .name_last,
.nffd-contact-simple__form .gform_wrapper .ginput_complex .ginput_left,
.nffd-contact-simple__form .gform_wrapper .ginput_complex .ginput_right {
	flex: 1 1 calc(50% - 6px);
	min-width: 0;
	margin: 0;
	padding: 0;
}
@media (max-width: 600px) {
	.nffd-contact-simple__form .gform_wrapper .ginput_complex > span,
	.nffd-contact-simple__form .gform_wrapper .ginput_complex .name_first,
	.nffd-contact-simple__form .gform_wrapper .ginput_complex .name_last,
	.nffd-contact-simple__form .gform_wrapper .ginput_complex .ginput_left,
	.nffd-contact-simple__form .gform_wrapper .ginput_complex .ginput_right {
		flex: 1 1 100%;
	}
}

/* Description / help text */
.nffd-contact-simple__form .gform_wrapper .gfield_description {
	font-size: 13px;
	color: var(--nffd-muted);
	margin-top: 6px;
	line-height: 1.5;
}

/* Character counter ("0 of 600 max characters") */
.nffd-contact-simple__form .gform_wrapper .charleft,
.nffd-contact-simple__form .gform_wrapper .ginput_counter {
	font-size: 12px;
	color: var(--nffd-muted);
	margin-top: 6px;
	display: block;
}

/* Checkboxes / radios */
.nffd-contact-simple__form .gform_wrapper .gchoice {
	margin: 0 0 8px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.nffd-contact-simple__form .gform_wrapper .gchoice label {
	font-size: 14px;
	color: var(--nffd-ink);
	font-weight: 400;
	margin: 0;
}

/* Error states */
.nffd-contact-simple__form .gform_wrapper .gfield_error input[type="text"],
.nffd-contact-simple__form .gform_wrapper .gfield_error input[type="email"],
.nffd-contact-simple__form .gform_wrapper .gfield_error input[type="tel"],
.nffd-contact-simple__form .gform_wrapper .gfield_error textarea,
.nffd-contact-simple__form .gform_wrapper .gfield_error select {
	border-color: var(--nffd-red);
	box-shadow: 0 0 0 3px rgba(135, 12, 37, 0.12);
}

.nffd-contact-simple__form .gform_wrapper .validation_message,
.nffd-contact-simple__form .gform_wrapper .gfield_validation_message {
	color: var(--nffd-red);
	font-size: 13px;
	margin-top: 6px;
	font-weight: 600;
}

/* Top-of-form validation summary */
.nffd-contact-simple__form .gform_wrapper .validation_error,
.nffd-contact-simple__form .gform_wrapper .gform_validation_errors {
	background: rgba(135, 12, 37, 0.08);
	border: 1px solid var(--nffd-red);
	color: var(--nffd-red);
	padding: 14px 16px;
	margin: 0 0 20px;
	font-size: 14px;
	border-radius: 2px;
}
.nffd-contact-simple__form .gform_wrapper .gform_validation_errors h2 {
	color: var(--nffd-red);
	font-size: 1rem;
	margin: 0 0 6px;
}

/* Submit / Next / Previous buttons - force brand gold over any GF theme.
   Many GF themes ship !important on .gform_button, so we add !important
   here to win the cascade, and target every variant of the button. */
.nffd-contact-simple__form .gform_footer,
.nffd-contact-simple__form .gform_page_footer,
.nffd-contact-simple__form .gform-footer {
	margin: 20px 0 0 !important;
	padding: 0 !important;
}
.nffd-contact-simple__form input[type="submit"],
.nffd-contact-simple__form button[type="submit"],
.nffd-contact-simple__form .gform_button,
.nffd-contact-simple__form .gform-button,
.nffd-contact-simple__form .gform_next_button,
.nffd-contact-simple__form .gform_previous_button,
.nffd-contact-simple__form .gform_wrapper input[type="submit"],
.nffd-contact-simple__form .gform_wrapper button[type="submit"],
.nffd-contact-simple__form .gform_wrapper .gform_button,
.nffd-contact-simple__form .gform_wrapper .gform-button {
	display: inline-block !important;
	width: 100% !important;
	font-family: var(--nffd-sans) !important;
	font-weight: 700 !important;
	font-size: 14px !important;
	text-transform: uppercase !important;
	letter-spacing: 0.06em !important;
	padding: 16px 28px !important;
	line-height: 1 !important;
	color: var(--nffd-btn-primary-text, #fff) !important;
	background: var(--nffd-btn-primary-bg, var(--nffd-gold)) !important;
	background-color: var(--nffd-btn-primary-bg, var(--nffd-gold)) !important;
	background-image: none !important;
	border: 0 !important;
	border-radius: 2px !important;
	cursor: pointer !important;
	box-shadow: 0 4px 14px rgba(203, 155, 44, 0.35) !important;
	transition: background-color 150ms ease, transform 150ms ease, box-shadow 150ms ease !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	text-decoration: none !important;
}

.nffd-contact-simple__form input[type="submit"]:hover,
.nffd-contact-simple__form button[type="submit"]:hover,
.nffd-contact-simple__form .gform_button:hover,
.nffd-contact-simple__form .gform-button:hover,
.nffd-contact-simple__form .gform_wrapper input[type="submit"]:hover,
.nffd-contact-simple__form .gform_wrapper button[type="submit"]:hover,
.nffd-contact-simple__form .gform_wrapper .gform_button:hover {
	background: var(--nffd-btn-primary-hover, var(--nffd-gold-dark)) !important;
	background-color: var(--nffd-btn-primary-hover, var(--nffd-gold-dark)) !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 6px 18px rgba(203, 155, 44, 0.45) !important;
}

.nffd-contact-simple__form input[type="submit"]:focus-visible,
.nffd-contact-simple__form button[type="submit"]:focus-visible,
.nffd-contact-simple__form .gform_button:focus-visible {
	outline: 3px solid rgba(203, 155, 44, 0.5) !important;
	outline-offset: 2px !important;
}

/* Confirmation / success message */
/* Confirmation message. Gravity Forms nests .gform_confirmation_message
   inside .gform_confirmation_wrapper; styling both produced a box-inside-a-box,
   so we make the wrapper a plain pass-through and put the box on the message. */
.nffd-contact-simple__form .gform_confirmation_wrapper {
	padding: 0;
	margin: 0;
	background: none;
	border: 0;
	border-radius: 0;
}
.nffd-contact-simple__form .gform_confirmation_message {
	padding: 20px 22px;
	background: rgba(203, 155, 44, 0.08);
	border-left: 4px solid var(--nffd-gold);
	color: var(--nffd-ink);
	font-size: 15px;
	line-height: 1.5;
	border-radius: 2px;
}

/* AJAX spinner */
.nffd-contact-simple__form .gform_wrapper .gform_ajax_spinner {
	margin-left: 10px;
	vertical-align: middle;
}

/* Honeypot / hidden fields */
.nffd-contact-simple__form .gform_wrapper .gform_validation_container,
.nffd-contact-simple__form .gform_wrapper .gfield--type-honeypot {
	display: none !important;
}


/* ======================================================================
   Banner image (full-width, between header and hero).

   --banner-height / --banner-height-mobile are emitted as inline
   style attributes from template-parts/sections/banner.php based on
   the Customizer settings.
   ====================================================================== */
.nffd-banner {
	display: block;
	width: 100%;
	overflow: hidden;
	height: var(--banner-height, 280px);
	background: var(--section-bg, var(--nffd-bg-alt));
}
.nffd-banner__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

@media (max-width: 600px) {
	.nffd-banner {
		/* Mobile height: use the Customizer override if set, otherwise
		   fall back to 60% of the desktop height. */
		height: var(--banner-height-mobile, calc(var(--banner-height, 280px) * 0.6));
	}
}

/* ======================================================================
   Bold inline body links (scoped to body-content containers; leaves
   buttons, nav, footer columns and forum card arrows alone).
   ====================================================================== */
.nffd-hero__lede a,
.nffd-lede a,
.nffd-donate__lede a,
.nffd-zeffy__sub a,
.nffd-forum-card__desc a,
.nffd-polling-block__body a,
.nffd-trust-line a,
.nffd-director__bio a,
.nffd-final-cta__body a,
.nffd-contact-simple__text a,
.nffd-contact-simple__lede a {
	font-weight: 700;
}

/* Header CTAs sit tighter together now that Contact is also a button. */
.nffd-masthead__cta { gap: 10px; }
@media (max-width: 560px) {
	.nffd-masthead__cta { gap: 8px; }
}
