/*
Theme Name: RFVF
Theme URI: https://rightforvermontfoundation.org
Author: Pericles Creative
Author URI: https://www.periclescreative.com
Description: Block theme for the Right for Vermont Foundation. Colors, fonts and widths live in theme.json; this file holds layout and components.
Version: 1.0.10
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: rfvf
License: GNU General Public License v2 or later
*/

:root {
	--forest: var(--wp--preset--color--forest);
	--forest-dark: var(--wp--preset--color--forest-dark);
	--sage: var(--wp--preset--color--sage);
	--sage-dark: var(--wp--preset--color--sage-dark);
	--sage-light: var(--wp--preset--color--sage-light);
	--sage-text: #5b7e5f; /* sage deep enough for AA text contrast on white */
	--tint: var(--wp--preset--color--sage-tint);
	--navy: var(--wp--preset--color--navy);
	--mist: var(--wp--preset--color--mist);
	--ink: var(--wp--preset--color--ink);
	--muted: #59615b;
	--line: #dfe5e0;
	--radius: 8px;
	--shadow: 0 2px 4px rgba(16, 35, 20, .06), 0 8px 24px rgba(16, 35, 20, .08);
	--band-y: clamp(48px, 7vw, 96px);
	--wide: var(--wp--style--global--wide-size, 1100px);
}

/* ---------- Base */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 2px; }
.wp-site-blocks > * { margin-block: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { width: 1em; height: 1em; flex: none; }
.lede { font-size: 1.15rem; line-height: 1.65; }
.eyebrow { margin: 0; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sage-dark); }

/* ---------- Bands (full-width page sections) */
main.page-main { margin: 0; padding-bottom: 0; }
main.page-main > * { margin-block: 0; }
main.page-main > .alignfull:first-child { margin-top: 0; }
.band { padding-top: var(--band-y); padding-bottom: var(--band-y); }
.band-flush { padding-top: 0; }
.band-tint { background: var(--tint); }
.band-forest { background: var(--forest); color: #fff; }
.band-navy { background: var(--navy); color: #fff; }
.band-forest :where(h1, h2, h3, a), .band-navy :where(h1, h2, h3, a) { color: #fff; }
.section-head { text-align: center; max-width: 760px; margin-inline: auto !important; margin-bottom: 40px; }
.section-head h2 { margin: 0 0 .4em; font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.section-head p { margin: 0; color: var(--muted); font-size: 1.1rem; }
.band-navy .section-head p { color: var(--sage-light); }

/* Photo headers */
.home-hero, .page-hero, .home-donate { position: relative; color: #fff; background-color: var(--forest-dark); background-size: cover; background-position: center; }
.home-hero :where(h1, h2, h3, p), .page-hero :where(h1, h2), .home-donate :where(h2, p) { color: #fff; }
.home-hero { background-image: linear-gradient(90deg, rgba(5, 25, 54, .7) 30%, rgba(0, 0, 0, 0) 85%), url(../../uploads/vermont-fall-banner-01-1920x1076.jpg); background-position: 0 0; padding-top: 90px; padding-bottom: 90px; }
.page-hero { background-image: linear-gradient(rgba(16, 35, 20, .6), rgba(16, 35, 20, .6)), url(../../uploads/jeffrey-clayton-byQcJBVrLp8-unsplash.jpg); padding-top: clamp(72px, 12vw, 150px); padding-bottom: clamp(72px, 12vw, 150px); }
.page-hero h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 3.6rem); text-shadow: 0 2px 16px rgba(0, 0, 0, .3); }
.home-donate { background-image: linear-gradient(90deg, rgba(21, 30, 22, .3), rgba(0, 0, 0, 0)), url(../../uploads/city-council-meeting-01.jpg); background-position: 0 0; }

/* ---------- Home (matches the original live homepage, Nov 2026) */
.home-hero-cols { gap: 16px; align-items: flex-start !important; }
.home-hero-cols > .wp-block-column:first-child { flex-basis: 56% !important; }
.home-hero-cols > .wp-block-column:last-child { flex-basis: 43% !important; }
.hero-pillars { margin: 0 0 16px; font-size: 40px; font-weight: 800; line-height: 1.084; color: var(--sage-light) !important; }
.hero-pillars span { display: block; margin-bottom: 8px; }
.hero-lede { margin: 0; font-size: 18px; line-height: 1.2833; max-width: 600px; color: #fff !important; }
.page-main .signup { padding: 16px; border: 0; border-radius: 16px; box-shadow: 2px 2px 2px 2px rgba(38, 84, 47, .3); }
.page-main .signup-title { margin: 0 0 8px; font-size: 26.66px; line-height: 1.12; color: var(--sage) !important; }
.page-main .signup-intro { margin: 0 0 24px; font-size: 18px; line-height: 1.2833; color: #000 !important; }
.page-main .signup-row { gap: 0 20px; }
.page-main .signup .field { margin: 0 0 20px; }
.page-main .signup input[type="text"], .page-main .signup input[type="email"] { padding: 8.5px 10px; font-size: 16px; line-height: 22.4px; color: var(--forest); border: 1px solid var(--forest); border-radius: 4px; }
.page-main .signup input::placeholder { color: var(--forest); opacity: .6; }
.page-main .signup .field.check { gap: 6px; margin-bottom: 30px; }
.page-main .signup .field.check input { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin: 0; background: #fff center / 14px no-repeat; border: 1px solid var(--forest); border-radius: 4px; cursor: pointer; }
.page-main .signup .field.check input:checked { background-color: var(--forest); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.page-main .signup .field.check input:focus-visible { outline: 3px solid var(--sage-light); outline-offset: 1px; }
.page-main .signup .field.check label { font-size: 16px; line-height: 22.4px; color: var(--forest); }
.page-main .signup .field.check .req { color: #b00; font-weight: 700; }
.page-main .signup-submit { margin: 0 0 20px; }
.page-main .signup label { font-size: .85rem; }
/* Live shows placeholders only; the labels stay for screen readers. */
.page-main .signup .field:not(.check) label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page-main .signup-btn { margin: 0; background: var(--sage-text); border-radius: 4px; padding: 8.5px 10px; font-size: 16px; font-weight: 400; line-height: 22.4px; }
.page-main .signup-btn:hover { background: var(--forest); }

.home-feature, .home-focus { background: var(--mist); }
.home-feature { padding-top: 90px; padding-bottom: 0; }
.home-focus { padding-top: 67px; padding-bottom: 90px; }
.feature-card { display: grid; grid-template-columns: 150px 1fr; column-gap: 16px; row-gap: 24px; align-items: start; padding: 16px; background: var(--sage-light); border-radius: 16px; color: var(--forest); }
.feature-icon { grid-row: span 2; display: grid; place-items: center; width: 150px; height: 150px; border-radius: 50%; background: #97b49a; color: var(--sage-dark); font-size: 96px; line-height: 1; }
.feature-icon svg { display: block; }
.feature-text { margin: 0 !important; }
.feature-text .eyebrow { margin: 0; font-size: 18px; font-weight: 400; line-height: 23.1px; letter-spacing: 0; text-transform: none; color: var(--forest); }
.feature-text h2 { margin: 8px 0; font-size: 26.66px; line-height: 1.122; }
.feature-text p:last-child { margin: 0; font-size: 19.2px; line-height: 24.24px; color: var(--forest); }
.feature-action { margin: 0 !important; }
.feature-action .wp-block-button__link { padding: 12px 30px; font-size: 24px; font-weight: 400; line-height: 1; color: #f0f4f1; background: var(--sage-dark); border: 2px solid var(--sage-dark); border-radius: 5px; }
.feature-action .wp-block-button__link { gap: 10px; }
.feature-action .wp-block-button__link::after { content: ""; flex: none; width: 8px; height: 8px; margin: 0 3px 0 -3px; border-top: 2.5px solid currentColor; border-right: 2.5px solid currentColor; transform: rotate(45deg); }

.home-focus .section-head, .home-approach .section-head { text-align: left; max-width: var(--wide); margin-bottom: 30px; }
.home-focus .section-head h2, .home-approach .section-head h2 { margin: 0 0 8px; font-size: 26.66px; line-height: 1.12; }
.home-focus .section-head p { max-width: 800px; font-size: 18px; line-height: 1.2833; color: var(--forest); }
.home-approach .section-head p { font-size: 18px; color: #fff; }
.focus-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.focus-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 19px; margin: 0 !important; padding: 16px; text-align: center; background: #fff; border-radius: 16px; box-shadow: 2px 2px 2px 2px rgba(38, 84, 47, .3); transition: transform .2s ease; }
.focus-card:hover, .focus-card:focus-within { transform: translateY(-4px); }
.focus-icon { display: flex; justify-content: center; height: 80px; color: var(--sage); font-size: 80px; line-height: 1; }
.focus-icon svg { display: block; }
.focus-card h3 { margin: 0 0 -11.2px; font-size: 26.66px; line-height: 1.122; }
.focus-card h3 a { color: var(--forest); text-decoration: none; }
.focus-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.focus-card p { margin: 0; color: var(--forest); font-size: 18px; line-height: 1.2833; }

.home-approach { padding-top: 90px; padding-bottom: 90px; }
.home-approach .section-head { margin-bottom: 0; }
.home-approach .approach-grid { margin-top: 16px !important; }
.home-approach .section-head p { margin: 0; line-height: 1.2833; }
.approach-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 30px; }
.approach-card { margin: 0 !important; padding: 32px; border-radius: 16px; background: var(--forest); box-shadow: 3px 3px 6px 3px rgba(26, 26, 26, .6); }
.approach-card h3 { margin: 0 0 16px; font-size: 26.66px; line-height: 1.12; }
.approach-card p { margin: 0; color: #fff; font-size: 18px; line-height: 1.2833; }

.home-donate { padding-top: 90px; padding-bottom: 90px; }
.home-donate .wp-block-columns { gap: 30px; }
.home-donate .wp-block-column:first-child { flex-basis: 40% !important; }
.home-donate .wp-block-column:last-child { flex-basis: 60% !important; }
@media (min-width: 782px) { .home-donate .wp-block-columns { align-items: center !important; } }
.home-donate h2 { margin: 0 0 30px; font-size: 47.37px; line-height: 1.06; }
.donate-lede { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.17; }
.donate-embed iframe { display: block; width: 100%; border: 0; border-radius: 0; background: transparent; }
.home-donate .donate-embed { display: flex; align-items: center; justify-content: center; min-height: 500px; background: #151e16; }
.home-donate .donate-embed iframe { border-radius: 0; background: transparent; }
@media (max-width: 781px) {
	/* Phone sizes measured from the live homepage at 390px wide. */
	.home-hero, .home-feature, .home-focus, .home-approach, .home-donate { padding: 49px 21px; }
	.home-feature { padding-bottom: 0; }
	.home-focus { padding-top: 43px; }
	.home-hero-cols { gap: 24px; }
	.home-focus .section-head { margin-bottom: 24px; }
	.hero-pillars { font-size: 40px; }
	.page-main .signup-row { grid-template-columns: 1fr 1fr; gap: 0 20px; }
	.home-feature .feature-card { grid-template-columns: 1fr; justify-items: start; row-gap: 16px; padding: 16px; }
	.feature-icon { grid-row: auto; }
	.feature-action { margin-top: 8px !important; }
	.hero-lede, .page-main .signup-intro, .home-focus .section-head p, .home-approach .section-head p, .focus-card p, .approach-card p { font-size: 16.06px; line-height: 1.323; }
	.page-main .signup-title, .feature-text h2, .home-focus .section-head h2, .home-approach .section-head h2, .focus-card h3, .approach-card h3 { font-size: 21.75px; line-height: 1.156; }
	.feature-text .eyebrow { font-size: 16.06px; line-height: 1.323; }
	.feature-action .wp-block-button__link { padding: 9.67px 24.18px; font-size: 19.34px; }
	.focus-card h3 { margin-bottom: -11.2px; }
	.home-focus .focus-grid { gap: 24px; grid-auto-rows: 1fr; }
	.home-approach .approach-grid { gap: 16px; grid-auto-rows: auto; }
	.home-approach .approach-card { padding: 32px; }
	.home-donate h2 { font-size: 31.59px; line-height: 1.098; margin-bottom: 16px; }
	.donate-lede { font-size: 18.06px; line-height: 1.193; }
}

/* ---------- About (matches the original site: photo header with a frosted "Who We Are" card, white Mission/Vision card on green, team cards on a pale green band) */
main.page-main:has(> .about-hero) { background-color: var(--forest-dark); background-image: linear-gradient(rgba(0, 0, 0, .18), rgba(0, 0, 0, .18)), url(../../uploads/jeffrey-clayton-byQcJBVrLp8-unsplash.jpg); background-size: max(100%, 1300px) auto; background-position: center -88px; background-repeat: no-repeat; }
.about-hero.page-hero { background: none; padding: 90px 60px 67px; text-align: center; }
.about-hero h1 { margin: 0 auto; max-width: var(--wide); font-size: 47.37px; line-height: 50.04px; color: #f0f4f1; text-align: center; text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
.about-hero + .band { box-sizing: border-box; width: min(var(--wide), calc(100% - 120px)); max-width: none; margin: 0 auto 90px !important; padding: 48px !important; background: rgba(255, 255, 255, .9); border-radius: 16px; text-align: center; }
.about-hero + .band > * { max-width: none !important; }
.about-hero + .band h2 { margin: 0 0 16px; font-size: 35.54px; line-height: 38.54px; color: var(--forest); }
.about-hero + .band .lede { margin: 0; font-size: 25.6px; line-height: 30.32px; color: var(--forest); }
.about-hero ~ .band-forest { padding: 90px 60px; }
.mission-cols { gap: 16px !important; max-width: var(--wide) !important; margin: 0 auto !important; padding: 32px; background: #fff; border-radius: 16px; }
.band-forest .mission-cols :where(h2, p) { color: var(--forest); }
.mission-cols h2 { margin: 0 0 8px; font-size: 26.66px; line-height: 29.91px; }
.mission-cols p { margin: 0; font-size: 18px; line-height: 23.1px; color: var(--forest); }
/* The quote and the team share one pale green band. */
.about-hero ~ .quote-band, .about-hero ~ .quote-band + .band { background: #edf7ef; }
.about-hero ~ .quote-band { padding: 90px 60px 0; }
.quote-line { max-width: 820px; margin-inline: auto; font-size: clamp(1.3rem, 2.6vw, 1.75rem); font-weight: 700; line-height: 1.4; color: var(--forest); }
.about-hero ~ .quote-band + .band { padding: 64px 60px 90px; }
.about-hero ~ .band h2.alignwide { margin: 0 auto 16px; font-size: 35.54px; line-height: 38.54px; color: var(--forest); }
.team-board-head { margin-top: 67px !important; }
.team { max-width: var(--wide) !important; margin-inline: auto !important; display: grid; gap: 16px; }
.person { background: #fff; border-radius: 16px; overflow: hidden; }
.person h3 { margin: 0; font-size: 26.66px; line-height: 29.91px; color: #000; }
.person-role { margin: 2px 0 16px; font-size: 14px; font-style: italic; color: #000; }
.person-bio p { margin: 0 0 18px; font-size: 18px; line-height: 23.1px; color: #000; }
.person-bio p:last-child { margin-bottom: 0; }
.person-img img { display: block; width: 100%; object-fit: cover; border-radius: 5px; }
.team-staff .person { display: grid; grid-template-columns: 350px 1fr; gap: 17px; align-items: start; padding: 16px; box-shadow: 2px 2px 2px 2px rgba(38, 84, 47, .3); }
.team-staff .person-img img { aspect-ratio: 1; }
.team-board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.team-board .person { display: flex; flex-direction: column; box-shadow: 3px 3px 5px 2px rgba(40, 88, 49, .4); }
.team-board .person-img img { aspect-ratio: 1; border-radius: 5px 5px 0 0; }
.team-board .person-body { padding: 16px; }

/* ---------- Panels and forms */
.panel-tint { background: var(--tint); border-color: transparent; box-shadow: none; }
.panel-forest { background: var(--forest); border-color: transparent; color: #fff; }
.panel-forest h2, .panel-forest p { color: #fff; }
.contact-line { margin: 0 0 1.4em; line-height: 1.6; }
.contact-line a { word-break: break-all; }
.action-side { display: flex; flex-direction: column; gap: 24px; }
.action-side > * { margin: 0 !important; }
.donate-mail { line-height: 1.6; }

.signup { padding: clamp(24px, 3.5vw, 36px); background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); border-top: 6px solid var(--sage); }
.page-main .signup :where(h2, h3, p, label) { color: var(--ink); }
.signup-title { margin: 0 0 .3em; font-size: 1.5rem; color: var(--forest) !important; }
.signup-intro { margin: 0 0 1.2em; color: var(--muted) !important; }
.signup-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.signup .field { margin: 0 0 12px; }
.signup .field.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup label, .rfvf-jp-form .grunion-field-label, .rfvf-jp-form label { display: block; margin-bottom: 4px; font-weight: 700; font-size: .9rem; }
.signup .req { color: #b32d2e; }
.signup input[type="text"], .signup input[type="email"],
.rfvf-jp-form input[type="text"], .rfvf-jp-form input[type="email"], .rfvf-jp-form textarea {
	width: 100%; box-sizing: border-box; padding: 11px 13px; font: inherit; font-size: 1rem; color: var(--ink);
	background: #fff; border: 1px solid #b9c4bb; border-radius: 4px;
}
.signup input:focus, .rfvf-jp-form input:focus, .rfvf-jp-form textarea:focus { outline: 3px solid var(--sage-light); border-color: var(--sage-dark); }
.signup .field.check { display: flex; gap: 10px; align-items: flex-start; }
.signup .field.check label { margin: 0; font-weight: 400; font-size: .88rem; line-height: 1.45; color: var(--muted); }
.signup .field.check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--forest); }
.signup-btn { width: 100%; margin-top: 6px; padding: 13px 20px; font: inherit; font-weight: 700; font-size: 1rem; color: #fff; background: var(--forest); border: 0; border-radius: 4px; cursor: pointer; transition: background .2s; }
.signup-btn:hover { background: var(--forest-dark); }
.signup-btn[disabled] { opacity: .65; cursor: progress; }
.signup-msg { margin: 0 0 12px; padding: 10px 14px; border-radius: 4px; font-weight: 600; }
.signup-msg.ok, .signup-msg.is-ok { background: #e6f2e8; color: #1d4d27; }
.signup-msg.error, .signup-msg.is-error { background: #fbeaea; color: #8a1f1f; }
.signup-status:empty { display: none; }
.signup .cf-turnstile { margin: 6px 0 10px; }

.rfvf-jp-form { margin-top: 8px; }
.rfvf-jp-form .grunion-field-wrap, .rfvf-jp-form .wp-block-jetpack-input-wrap { margin-bottom: 14px; }
.rfvf-jp-form textarea { min-height: 150px; }
.rfvf-jp-form .grunion-field-checkbox-wrap label, .rfvf-jp-form .contact-form__checkbox-wrap label { font-weight: 400; font-size: .9rem; color: var(--muted); }

/* ---------- Take Action, Contact, Donate, Privacy (match the original: light gray page, big forest title, white form cards) */
main.page-main:has(> .page-head) { background: var(--mist); }
.page-head { padding: 90px 60px 0 !important; background: none; }
.page-head h1 { margin: 0 0 16px; font-size: 47.37px; line-height: 50.04px; color: var(--forest); }
.page-head .lede, .page-head p { margin: 0 0 18px; max-width: 660px; font-size: 18px; line-height: 23.1px; color: var(--forest); }
.page-head .lede.alignwide, .page-head p.alignwide { max-width: var(--wide); margin-inline: auto !important; box-sizing: border-box; padding-right: max(0px, calc(min(100%, var(--wide)) - 660px)); }
.page-head > :last-child { margin-bottom: 0; }
.page-head + .band-flush { padding: 67px 60px 90px !important; }
.page-head p.alignwide + p.alignwide { margin-top: 0; }
/* Privacy and other plain pages: body text in black, full width */
.page-head + .wp-block-post-content { max-width: none !important; padding: 40px 60px 90px !important; font-size: 18px; line-height: 23.1px; color: #000; }
.page-head + .wp-block-post-content > * { max-width: var(--wide) !important; }
.page-head + .wp-block-post-content p { margin: 0 0 18px; }
.page-head + .wp-block-post-content :where(h2, h3) { margin: 32px 0 12px; color: var(--forest); }
.page-head + .wp-block-post-content :where(ul, ol) { margin: 0 0 18px; padding-left: 36px; }
.page-head + .wp-block-post-content li { margin-bottom: 9px; }
.page-head + .wp-block-post-content a { color: var(--forest); }

/* Cards and form fields */
.contact-cols, .action-cols { gap: 16px; align-items: flex-start !important; }
.panel { padding: 16px; background: #fff; border: 0; border-radius: 16px; box-shadow: 2px 2px 2px 2px rgba(38, 84, 47, .3); }
.panel h2 { margin: 0 0 8px; font-size: 26.66px; line-height: 29.91px; color: var(--sage); }
.panel p { margin: 0 0 18px; font-size: 18px; line-height: 23.1px; color: var(--forest); }
.rfvf-jp-form { margin-top: 0; gap: 20px !important; color: var(--forest); }
.rfvf-jp-form > * { margin: 0 !important; }
.rfvf-jp-form .grunion-field-label, .rfvf-jp-form label { margin-bottom: 4px; font-size: 16px; line-height: 22.4px; font-weight: 400; color: var(--forest); }
.rfvf-jp-form .grunion-label-required { margin-left: .3em; font-size: 14px; color: var(--muted); }
.rfvf-jp-form input[type="text"], .rfvf-jp-form input[type="email"], .rfvf-jp-form textarea { padding: 8.5px 10px; font-size: 16px; line-height: 22.4px; color: var(--forest); border: 1px solid var(--forest); border-radius: 4px; }
.rfvf-jp-form textarea { height: 109px; min-height: 109px; }
/* Live marks required fields with a red star; the field itself carries the required state for screen readers. */
.rfvf-jp-form .grunion-label-required { margin-left: 2px; font-size: 0 !important; }
.rfvf-jp-form .grunion-label-required::before { content: "*"; font-size: 16px; color: #b00; }
.rfvf-jp-form input[type="checkbox"] { flex: none; min-width: 22px; -webkit-appearance: none; appearance: none; width: 22px !important; height: 22px !important; margin: 0 !important; padding: 0; background: #fff center / 14px no-repeat; border: 1px solid var(--forest); border-radius: 4px; cursor: pointer; }
.rfvf-jp-form input[type="checkbox"]:checked { background-color: var(--forest); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.rfvf-jp-form input[type="checkbox"]:focus-visible { outline: 3px solid var(--sage-light); outline-offset: 1px; }
/* Consent line: box on the left, text (with its red star) wrapping beside it, like the original. */
.rfvf-jp-form .grunion-field-label.checkbox, .rfvf-jp-form .grunion-field-checkbox-wrap label, .rfvf-jp-form .contact-form__checkbox-wrap label { display: block; margin: 0 0 0 8px; font-size: 16px; line-height: 22.4px; color: var(--forest); }
.rfvf-jp-form .wp-block-button__link { min-width: 300px; padding: 8.5px 10px !important; font-size: 16px !important; line-height: 22.4px !important; font-weight: 400; color: #fff; background: var(--sage-text); border: 0; border-radius: 4px; }
.rfvf-jp-form .wp-block-button__link:hover { background: var(--forest); }

/* Take Action: the newsletter and donate blocks share one white card, split by a line */
.action-side { gap: 0; padding: 16px; background: #fff; border-radius: 16px; box-shadow: 2px 2px 2px 2px rgba(38, 84, 47, .3); }
.action-side .signup { padding: 0; box-shadow: none; border-radius: 0; }
.action-side .signup-intro { color: var(--forest) !important; }
.action-side .donate-card { margin-top: 30px !important; padding: 30px 0 0; background: none; border-top: 2px solid var(--sage); border-radius: 0; box-shadow: none; color: var(--forest); }
.action-side .donate-card h2 { color: var(--sage); }
.action-side .donate-card p { color: var(--forest); }
.action-side .donate-card .wp-block-button__link { padding: 12px 30px; font-size: 24px; line-height: 24px; font-weight: 400; color: #fff !important; background: var(--sage-text) !important; border-radius: 5px; }
.action-side .donate-card .wp-block-button__link:hover { background: var(--forest) !important; }

/* Contact: form sits on the page; contact details are small white cards */
.contact-cols > .panel:first-child { padding: 0; background: none; box-shadow: none; }
.contact-cols > .panel-tint { padding: 0; background: none; box-shadow: none; }
.contact-cols .panel-tint h2 { margin-bottom: 30px; }
/* On the gray page live's sage heading falls below 3:1; the deeper sage passes. */
.contact-cols .panel h2 { color: var(--sage-text); }
.contact-line { margin: 0 0 16px !important; padding: 16px; background: #fff; border-radius: 16px; box-shadow: 1px 1px 2px 2px rgba(0, 0, 0, .15); line-height: 23.1px; }
.contact-line a { color: var(--forest); word-break: break-all; }

/* Donate: intro on white, the Anedot form on the gray band (embed untouched) */
main.page-main:has(.donate-embed) .page-head { padding: 66px 60px 18px !important; background: #fff; }
.donate-embed { padding: 90px 60px !important; }
.donate-embed iframe { display: block; max-width: var(--wide); margin: 0 auto; }

/* ---------- Buttons */
.btn, .wp-element-button { display: inline-flex; align-items: center; gap: .55em; font-weight: 700; text-decoration: none; }
.btn { padding: 12px 22px; color: #fff; background: var(--forest); border-radius: 4px; transition: background .2s, gap .2s; }
.btn:hover { background: var(--forest-dark); color: #fff; gap: .8em; }
.btn-light, .is-style-light .wp-block-button__link { color: var(--forest) !important; background: #fff !important; }
.btn-light:hover, .is-style-light .wp-block-button__link:hover { background: var(--sage-light) !important; }
.wp-block-button__link { transition: background .2s; }
.wp-block-button__link:hover { background: var(--forest-dark); }

/* ---------- Header (matches the original site: 132px tall, logo left, menu centred, Donate right; not sticky) */
.site-header { position: relative; z-index: 50; background: #fff; padding: 16px 60px !important; }
.header-row { display: grid !important; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; max-width: var(--wide) !important; }
.brand { display: block; justify-self: start; line-height: 0; }
.brand img { display: block; width: 160px; height: 100px; object-fit: contain; }
.main-nav { justify-self: center; font-weight: 400; font-size: 18px; line-height: 23.1px; }
/* Live uses #739977 for the menu; this slightly deeper sage passes WCAG AA contrast on white. */
.site-header .main-nav, .site-header .main-nav.wp-block-navigation .wp-block-navigation__submenu-container { color: var(--sage-text); }
.main-nav .wp-block-navigation-item__content { text-decoration: none; padding: 0; }
.main-nav .wp-block-navigation-item__content.wp-block-navigation-item__content:hover, .main-nav .wp-block-navigation-item__content.wp-block-navigation-item__content[aria-current] { color: var(--forest); }
.main-nav .wp-block-navigation__container { gap: 30px; }
.main-nav .wp-block-navigation__submenu-icon { width: 18px; height: 18px; margin-left: 9px; padding: 0; color: #000; }
.main-nav .wp-block-navigation__submenu-icon svg { width: 18px; height: 18px; stroke: currentColor; }
.main-nav .wp-block-navigation__submenu-icon svg path { stroke-width: 1.4; }
.main-nav .wp-block-navigation__submenu-container { min-width: 170px !important; padding: 0; border: 0 !important; border-radius: 0; background: #fff; box-shadow: 0 6px 16px rgba(16, 35, 20, .12); }
.main-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 8px !important; font-size: 16px; }
.main-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--tint); }
.nav-donate-mobile { display: none !important; }
/* "Our Work" and "Issues" open their dropdown; they are not links. */
.main-nav .nav-label > a.wp-block-navigation-item__content:not([href]) { cursor: default; }
.main-nav .nav-label-btn { margin: 0; padding: 0; border: 0; background: none; font: inherit; color: var(--sage-text); cursor: pointer; }
.main-nav .nav-label-btn:hover { color: var(--forest); }
/* Phone menu: "Our Work" / "Issues" lists start closed; tapping the label opens and closes them (assets/js/nav-labels.js). */
.main-nav .is-menu-open li.nav-label > .wp-block-navigation__submenu-container { display: none !important; }
.main-nav .is-menu-open li.nav-label.rfvf-open > .wp-block-navigation__submenu-container { display: flex !important; }
.main-nav .is-menu-open .nav-label-btn { display: inline-flex; align-items: center; gap: .5em; }
.main-nav .is-menu-open .nav-label-btn::after { content: ""; width: .45em; height: .45em; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-.15em) rotate(45deg); transition: transform .2s; }
.main-nav .is-menu-open li.nav-label.rfvf-open > .nav-label-btn::after { transform: translateY(.1em) rotate(-135deg); }
.main-nav .is-menu-open .wp-block-navigation-item__content { font-size: 20px; }
.main-nav .is-menu-open .wp-block-navigation__container { gap: 22px; }
.main-nav .wp-block-navigation__responsive-container-open { padding: 0; color: #000; }
.main-nav .wp-block-navigation__responsive-container-open { width: 20px; height: 16px; }
.main-nav .wp-block-navigation__responsive-container-open svg { display: none; }
/* Three-bar menu icon like the original site (20 x 16, 2px bars). */
.main-nav .wp-block-navigation__responsive-container-open::before { content: ""; display: block; width: 20px; height: 16px; background: linear-gradient(currentColor 0 0) 0 0 / 20px 2px no-repeat, linear-gradient(currentColor 0 0) 0 7px / 20px 2px no-repeat, linear-gradient(currentColor 0 0) 0 14px / 20px 2px no-repeat; }
.header-cta { justify-self: end; margin: 0 !important; }
.header-cta .wp-block-button__link { padding: 12px 30px; font-size: 24px; line-height: 24px; font-weight: 400; color: #f0f4f1; background: var(--forest); border: 2px solid var(--forest); border-radius: 5px; }
.header-cta .wp-block-button__link:hover { background: var(--forest-dark); border-color: var(--forest-dark); color: #fff; }


/* ---------- Blog, categories, search, 404 (match the original Our Work page: light gray page, white shadowed cards) */
main.page-main.blog-main { padding: 90px 60px !important; background: var(--mist); }
main.page-main.blog-main > * { max-width: var(--wide) !important; }
.blog-head { margin-bottom: 67px !important; }
.blog-head h1, .blog-head .wp-block-query-title { margin: 0 0 16px; font-size: 47.37px; line-height: 50.04px; color: var(--forest); }
.blog-head .blog-intro, .blog-head .wp-block-term-description { max-width: 660px; margin: 0; color: var(--forest); font-size: 18px; line-height: 23.1px; }
.blog-head .blog-intro > * { margin: 0 0 16px !important; }
.blog-head .blog-intro > *:last-child { margin-bottom: 0 !important; }
.blog-head .chips { margin-top: 24px; }
.blog-search { display: flex; max-width: 560px; margin: 24px 0 0; border: 1px solid var(--forest); border-radius: 4px; background: #fff; overflow: hidden; transition: box-shadow .2s; }
.blog-search:focus-within { box-shadow: 0 0 0 3px rgba(38, 84, 47, .18); }
.blog-search input { flex: 1; min-width: 0; padding: 8.5px 10px; border: 0; background: transparent; font: inherit; font-size: 16px; line-height: 22.4px; color: var(--forest); outline: none; }
.blog-search input::placeholder { color: var(--forest); opacity: .6; }
.blog-search button { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8.5px 18px; border: 0; border-radius: 0; background: var(--sage-text); color: #fff; font: inherit; font-size: 16px; line-height: 22.4px; cursor: pointer; }
.blog-search button:hover { background: var(--forest); }
.blog-search button .icon { width: 1em; height: 1em; }
/* Topic chips on the gray page */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }
.chip { display: inline-block; padding: 6px 16px; border: 1px solid var(--sage-text); border-radius: 999px; color: var(--forest); font-size: 16px; line-height: 22.4px; text-decoration: none; background: #fff; transition: background .2s, color .2s; }
.chip:hover { background: var(--tint); }
.chip.on { background: var(--forest); border-color: var(--forest); color: #fff; }
.chips-dark .chip { background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; }
.chips-dark .chip:hover { background: rgba(255, 255, 255, .14); }
.chips-dark .chip.on { background: #fff; color: var(--forest); border-color: #fff; }

.blog-sections { display: grid; gap: 67px; }
.blog-section .section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; max-width: none; margin: 0 0 24px !important; padding: 0; border: 0; text-align: left; }
.blog-section .section-head h2 { margin: 0; font-size: 35.54px; line-height: 38.54px; color: var(--forest); }
.more-link { display: inline-flex; align-items: center; gap: .45em; flex: none; font-size: 18px; color: var(--forest); text-decoration: none; }
.more-link:hover { gap: .7em; text-decoration: underline; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.card-grid > li { margin: 0; }
.card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 0; border-radius: 16px; box-shadow: 2px 2px 2px 2px rgba(115, 153, 119, .5); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover, .card:focus-within { transform: translateY(-3px); box-shadow: 3px 5px 10px 2px rgba(115, 153, 119, .55); }
.card-media { display: block; height: 200px; overflow: hidden; border-radius: 5px; background: var(--tint); }
.card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.03); }
.card-ph { display: grid; place-items: center; height: 100%; color: var(--sage); font-size: 48px; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 16px; }
.card-title { order: 1; margin: 0 0 8px; font-size: 25.6px; line-height: 28.88px; font-weight: 700; }
.card-title a { color: var(--forest); text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.card-meta { order: 2; margin: 0; font-size: 18px; line-height: 23.1px; color: var(--forest); }
.card-meta .sep { margin: 0 .25em; color: inherit; }
/* Faint underline so the topic link is not marked by color alone (WCAG link-in-text-block). */
.card-topic { color: var(--sage-text); text-decoration: underline; text-decoration-color: rgba(91, 126, 95, .45); text-underline-offset: .2em; }
.card-topic:hover { text-decoration-color: currentColor; }
/* 1.0.8: a card lists all of its topics (up to 3, then +N); a name never breaks in the middle. */
.card-topic { white-space: nowrap; }
.card-meta .dot { margin: 0 .3em; color: inherit; }
.card-more { color: var(--sage-text); white-space: nowrap; }
.card-excerpt { order: 3; margin: 16px 0 0; color: var(--forest); font-size: 18px; line-height: 23.1px; }
.card-lg .card-media { height: 400px; }
.card-lg .card-title { font-size: 28.8px; line-height: 32px; }
.blog-latest { margin-bottom: 0; }
.blog-latest.has-signup { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; align-items: start; }
.blog-latest .signup-intro { color: var(--forest) !important; }
.wp-block-query-pagination { margin-top: 48px; gap: 8px; font-size: 18px; }
.wp-block-query-pagination a, .wp-block-query-pagination .current { padding: 6px 12px; border-radius: 4px; color: var(--forest); text-decoration: none; }
.wp-block-query-pagination a:hover { background: #fff; }
.wp-block-query-pagination .current { background: var(--forest); color: #fff; }
/* ---------- Policy Resources (1.0.3): the Blog's gray page and white shadowed cards */
.res-card { display: flex; flex-direction: column; height: 100%; box-sizing: border-box; padding: 24px; background: #fff; border-radius: 16px; box-shadow: 2px 2px 2px 2px rgba(115, 153, 119, .5); transition: transform .2s ease, box-shadow .2s ease; }
.res-card:hover, .res-card:focus-within { transform: translateY(-3px); box-shadow: 3px 5px 10px 2px rgba(115, 153, 119, .55); }
.res-type { align-self: flex-start; margin: 0 0 12px; padding: 2px 12px; border-radius: 999px; background: var(--tint); color: var(--forest); font-size: 14px; line-height: 20px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.res-title { margin: 0 0 8px; font-size: 25.6px; line-height: 28.88px; font-weight: 700; }
.res-title a { color: var(--forest); text-decoration: none; }
.res-title a:hover { text-decoration: underline; }
.res-meta { margin: 0; font-size: 18px; line-height: 23.1px; color: var(--forest); }
.res-meta .sep { margin: 0 .25em; }
.res-meta a { color: var(--forest); text-decoration: underline; text-decoration-color: rgba(38, 84, 47, .45); text-underline-offset: .2em; }
.res-meta a:hover { text-decoration-color: currentColor; }
.res-has { display: inline-flex; align-items: center; gap: .3em; }
.res-has + .res-has { margin-left: .5em; }
.res-has .icon { width: .85em; height: .85em; }
.res-excerpt { margin: 16px 0 0; color: var(--forest); font-size: 18px; line-height: 23.1px; }
.res-single-head { margin-bottom: 40px !important; }
.res-back { margin: 0 0 16px !important; font-size: 18px; line-height: 23.1px; }
.res-back a { color: var(--forest); text-decoration: underline; text-decoration-color: rgba(38, 84, 47, .45); text-underline-offset: .2em; }
.res-back a:hover { text-decoration-color: currentColor; }
.res-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.res-btn { padding: 12px 24px; background: var(--sage-text); font-size: 18px; line-height: 23.1px; }
.res-btn:hover { background: var(--forest); }
.res-btn .icon { width: 1em; height: 1em; }
.res-btn-line { background: #fff; color: var(--forest); box-shadow: inset 0 0 0 2px var(--sage-text); }
.res-btn-line:hover { background: var(--tint); color: var(--forest); }
.res-size { font-weight: 400; }
.res-body { box-sizing: border-box; padding: 40px; background: #fff; border-radius: 16px; box-shadow: 2px 2px 2px 2px rgba(38, 84, 47, .3); font-size: 18px; line-height: 23.1px; color: #000; }
.res-body > * { max-width: 760px; }
.res-body > :first-child { margin-top: 0; }
.res-body > :last-child { margin-bottom: 0; }
.res-body p { margin: 0 0 18px; }
.res-body :where(h2, h3) { margin: 32px 0 12px; color: var(--forest); }
.res-body :where(ul, ol) { margin: 0 0 18px; padding-left: 36px; }
.res-body li { margin-bottom: 9px; }
.res-body a { color: var(--forest); }
main.page-main > .res-more { margin-top: 90px; }
.res-more .section-head h2 { margin: 0; }
/* 404: centred like the original ("Whoops, that page is gone"), with search and topics to get back on track */
main.page-main.blog-main:has(.error-404) { display: flex; align-items: center; min-height: 55vh; background: #fff; }
.blog-head.error-404 { width: 100%; margin: 0 auto !important; text-align: center; }
.error-404 h1 { color: #000; }
.error-404 .blog-intro { margin-inline: auto !important; }
.error-404 .blog-search { margin-inline: auto; }
.error-404 .chips { justify-content: center; }

/* ---------- Post and issue pages (match the original site: photo header, full-width body text, "Articles on X" cards on white) */
.hero { position: relative; display: flex; align-items: center; min-height: 0; color: #fff; background: var(--navy); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: rgba(5, 25, 54, .62); }
.hero-post .hero-shade { background: rgba(30, 30, 30, .55); }
.hero.no-image .hero-shade { background: linear-gradient(135deg, var(--forest) 0%, var(--forest-dark) 100%); }
.hero .wrap { position: relative; width: 100%; max-width: calc(var(--wide) + 120px); margin: 0 auto; padding: 128px 60px; box-sizing: border-box; }
.hero-post .wrap { padding-top: 208px; padding-bottom: 208px; }
.hero-title { margin: 0; color: #fff; font-size: 47.37px; line-height: 50.04px; max-width: none; }
.hero-meta { margin: 8px 0 0; font-size: 18px; line-height: 23.1px; font-weight: 400; color: #fff; }
.hero-meta .sep { margin: 0 .55em; }
.hero-meta a { color: #9dc1f6; font-weight: 600; text-decoration: none; }
.hero-meta a:hover { text-decoration: underline; }
.hero-issue .chips { gap: 16px; margin: 16px 0 0; }
.hero-issue .chip { padding: 0; border: 0; border-radius: 0; background: none !important; color: #fff; font-size: 18px; line-height: 23.1px; font-weight: 400; }
.hero-issue .chip:hover { text-decoration: underline; }
.hero-issue .chip.on { color: #a9c6ad; }

.single-main { margin: 0; }
.post-body { padding: 90px 60px !important; font-size: 18px; line-height: 23.1px; color: #000; }
.post-body > *, .post-body > .wp-block-post-content > * { max-width: var(--wide) !important; }
.post-body p { margin: 0 0 18px; }
.post-body :where(h2, h3) { margin-top: 1.4em; }
.post-body a { color: #166aea; text-decoration: none; }
.post-body a:hover { text-decoration: underline; }
.single-issue .post-body a, .post-body.issue-body a { color: var(--sage-text); }
.post-body img { border-radius: 5px; }
.post-body blockquote { margin-inline: 0; padding-left: 20px; border-left: 4px solid var(--sage); font-style: italic; }
.related { padding: 0 60px 90px; background: #fff; }
.related .wrap { max-width: var(--wide); margin: 0 auto; padding: 90px 0 0; border-top: 1px solid #c9cfca; }
.related h2 { margin: 0 0 29px; font-size: 26.66px; line-height: 29.91px; color: #000; }
.related .accent { color: var(--sage); }
.related-more { margin: 40px 0 0; text-align: center; }
/* 1.0.4: Issue and post pages use the same white card as the Blog and topic pages ("date | topic"), so there is one card design everywhere. */
.card-aw { display: none; }

/* ---------- Footer (matches the original site; link blue and button text deepened/lightened for AA contrast) */
.site-footer { background: var(--forest); color: #fff; padding: 90px 60px !important; font-size: 16px; line-height: 21.2px; }
.site-footer > * { max-width: var(--wide) !important; }
.site-footer a { color: #edf7ef; text-decoration: none; }
.foot-top { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.foot-title { margin: 0 0 16px; color: #fff; font-size: 20px; line-height: 23.44px; font-weight: 700; }
.foot-cols { display: flex; align-items: flex-start; gap: 30px; margin-bottom: 16px; }
.foot-links { margin: 0; padding: 0; list-style: none; display: grid; gap: 8.2px; }
.foot-links a:hover { text-decoration: underline; color: #fff; }
.foot-donate { display: inline-block; box-sizing: border-box; min-width: 140px; padding: 9px 22.5px; font-size: 18px; line-height: 18px; text-align: center; color: #537256 !important; background: #f0f4f1; border: 2px solid #f0f4f1; border-radius: 5px; transition: background .2s; }
.foot-donate:hover { background: #fff; border-color: #fff; }
.foot-brand { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.foot-brand img { display: block; width: 300px; height: auto; padding: 16px; box-sizing: border-box; }
.social { display: flex; gap: 16px; font-size: 48px; line-height: 0; }
.social a { color: #fff; }
.social a:hover { color: var(--sage-light); }
.foot-rule { margin: 48px auto 32px !important; border: 0; border-top: 1px solid #fff; opacity: 1; }
.foot-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.foot-bottom p { margin: 0 0 16px; }
.foot-bottom p:last-child { margin-bottom: 0; }
.foot-credits { text-align: right; }
.site-footer .foot-credits a { color: #9dc1f6; }
.foot-credits strong { white-space: nowrap; }
.site-footer .foot-credits a:hover { text-decoration: underline; }

/* ---------- Responsive */
/* About: tablet and phone */
@media (max-width: 960px) {
	.team-board { grid-template-columns: 1fr 1fr; }
	.team-staff .person { grid-template-columns: 260px 1fr; }
}
@media (max-width: 781px) {
	main.page-main:has(> .about-hero) { background-size: max(100%, 1300px) auto; background-position: center top; }
	.about-hero.page-hero { padding: 49px 21px 44px; }
	.about-hero h1 { font-size: 31.59px; line-height: 34.7px; }
	.about-hero + .band { width: calc(100% - 42px); margin-bottom: 49px !important; }
	.about-hero + .band h2 { font-size: 26.21px; line-height: 29.47px; }
	.about-hero + .band .lede { font-size: 16px; line-height: 21.2px; }
	.about-hero ~ .band-forest { padding: 49px 21px; }
	.mission-cols h2 { font-size: 21.75px; line-height: 25.14px; }
	.mission-cols p { font-size: 16.06px; line-height: 21.25px; }
	.about-hero ~ .quote-band { padding: 49px 21px 0; }
	.about-hero ~ .quote-band + .band { padding: 40px 21px 49px; }
	.about-hero ~ .band h2.alignwide { font-size: 26.21px; line-height: 29.47px; }
	.team-board, .team-staff .person { grid-template-columns: 1fr; }
	.team-staff .person-img img { width: 100%; max-width: 300px; }
	.person h3 { font-size: 21.75px; line-height: 25.14px; }
	.person-bio p { font-size: 16.06px; line-height: 21.25px; }
}
/* Post and issue pages: phone */
@media (max-width: 781px) {
	.hero .wrap { padding: 128px 21px; }
	.hero-post .wrap { padding-top: 208px; padding-bottom: 208px; }
	.hero-title { font-size: 31.59px; line-height: 34.7px; }
	.hero-meta, .hero-issue .chip { font-size: 16.06px; line-height: 21.25px; }
	.post-body { padding: 49px 21px !important; font-size: 16.06px; line-height: 21.25px; }
	.post-body p { margin-bottom: 16px; }
	.related { padding: 0 21px 49px; }
	.related .wrap { padding-top: 49px; }
	.related h2 { margin-bottom: 24px; font-size: 21.75px; line-height: 25.14px; }
}
/* Header and footer: tablet and phone */
@media (max-width: 1080px) {
	.main-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
	.main-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
	.header-row { grid-template-columns: auto 1fr auto; gap: 24px; }
}
@media (max-width: 781px) {
	.site-header { padding: 16px 21px !important; }
	.header-cta .wp-block-button__link { padding: 8px 16px; font-size: 16px; line-height: 21.25px; letter-spacing: .5px; color: #fff; background: var(--sage-text); border: 0; border-radius: 8px; }
	.site-footer { padding: 49px 21px !important; }
	.foot-top, .foot-bottom { grid-template-columns: 1fr; }
	.foot-title { font-size: 18.06px; line-height: 21.54px; }
	.foot-brand { align-items: flex-start; }
	.foot-brand img { width: 200px; padding: 0; }
	.social { font-size: 32px; }
	.foot-credits p:first-child { text-align: right; }
	.foot-credits p:last-child { text-align: left; }
}

/* Blog and inner pages: tablet and phone */
@media (max-width: 960px) {
	.blog-latest.has-signup { grid-template-columns: 1fr; }
	.card-lg .card-media { height: 320px; }
}
@media (max-width: 781px) {
	main.page-main.blog-main { padding: 49px 21px !important; }
	.blog-head { margin-bottom: 40px !important; }
	.blog-head h1, .blog-head .wp-block-query-title { font-size: 31.59px; line-height: 34.7px; }
	.blog-head .blog-intro, .blog-head .wp-block-term-description, .more-link { font-size: 16.06px; line-height: 21.25px; }
	.blog-sections { gap: 49px; }
	.blog-section .section-head { flex-direction: column; gap: 6px; margin-bottom: 16px !important; }
	.blog-section .section-head h2 { font-size: 26.21px; line-height: 29.47px; }
	.card-title, .card-lg .card-title { font-size: 21.75px; line-height: 25.14px; }
	.card-meta, .card-excerpt { font-size: 16.06px; line-height: 21.25px; }
	.card-lg .card-media { height: 220px; }
	.page-head { padding: 49px 21px 0 !important; }
	.page-head h1 { font-size: 31.59px; line-height: 34.7px; }
	.page-head .lede, .page-head p { font-size: 16.06px; line-height: 21.25px; }
	.page-head + .band-flush { padding: 40px 21px 49px !important; }
	.page-head + .wp-block-post-content { padding: 32px 21px 49px !important; font-size: 16.06px; line-height: 21.25px; }
	.panel h2 { font-size: 21.75px; line-height: 25.14px; }
	.panel p { font-size: 16.06px; line-height: 21.25px; }
	.rfvf-jp-form .wp-block-button__link { min-width: 0; width: 100%; }
	.res-title { font-size: 21.75px; line-height: 25.14px; }
	.res-meta, .res-excerpt, .res-back, .res-btn { font-size: 16.06px; line-height: 21.25px; }
	.res-card { padding: 16px; }
	.res-body { padding: 24px 16px; font-size: 16.06px; line-height: 21.25px; }
	.res-btn { justify-content: center; width: 100%; box-sizing: border-box; }
	main.page-main > .res-more { margin-top: 49px; }
	main.page-main:has(.donate-embed) .page-head { padding: 40px 21px 16px !important; }
	.donate-embed { padding: 49px 21px !important; }
}

@media (max-width: 1100px) {
	.focus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
	.card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.main-nav .wp-block-navigation__container { gap: 18px; }
}
@media (max-width: 781px) {
	.feature-card { flex-direction: column; align-items: flex-start; text-align: left; padding: 24px; }
	.approach-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.focus-grid, .card-grid { grid-template-columns: 1fr; }
	.signup-row { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* 1.0.5: Homeschool banner on the Education Issue page (words in Issues → Homeschool banner). Clara's spec: centered, bold heading, solid + light-green outlined buttons, 8px corners. */
.hs-banner-band { padding: 64px 60px 0; background: #fff; }
.hs-banner { box-sizing: border-box; max-width: var(--wide); margin: 0 auto; padding: 44px 28px; text-align: center; background: #fff; border: 1px solid #cddfd2; border-radius: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.hs-banner-eyebrow { margin: 0 0 10px; font-size: 1.5rem; line-height: 1.25; font-weight: 700; color: #1e5631; }
.hs-banner-body { max-width: 720px; margin: 0 auto 14px; font-size: 1.08rem; line-height: 1.6; color: var(--ink); }
.hs-banner-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 26px; }
.hs-btn { display: inline-block; padding: 14px 26px; border: 2px solid #1e5631; border-radius: 8px; font-weight: 600; line-height: 1.3; text-decoration: none; transition: background .2s, color .2s; }
.hs-btn-primary { background: #1e5631; color: #fff; }
.hs-btn-primary:hover, .hs-btn-primary:focus-visible { background: var(--forest-dark); border-color: var(--forest-dark); color: #fff; }
.hs-btn-secondary { background: #f0f7f2; color: #1e5631; }
.hs-btn-secondary:hover, .hs-btn-secondary:focus-visible { background: #d9ebdf; color: #1e5631; }
.hs-btn:focus-visible { outline: 3px solid #1e5631; outline-offset: 3px; }
.hs-banner-note { margin: -20px auto 18px; padding: 6px 12px; display: inline-block; font-size: .875rem; background: #fff6d6; border-radius: 4px; }
.hs-banner-band + .post-body { padding-top: 64px !important; }
.signup-anchor { scroll-margin-top: 24px; }
@media (max-width: 781px) {
	.hs-banner-band { padding: 40px 21px 0; }
	.hs-banner { padding: 30px 18px; }
	.hs-banner-eyebrow { font-size: 1.3rem; }
	.hs-banner-body { font-size: 1rem; line-height: 1.5; }
	.hs-banner-btns { flex-direction: column; align-items: stretch; gap: 12px; }
	.hs-btn { text-align: center; }
	.hs-banner-band + .post-body { padding-top: 40px !important; }
}

/* ---------- 1.0.6: motion. All of it is off for visitors who ask for less motion. Opacity and transform only, so nothing shifts. */
@media (prefers-reduced-motion: no-preference) {
	/* Soft fade between pages (browsers without support just load normally). */
	@view-transition { navigation: auto; }
	::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; animation-timing-function: ease-out; }

	/* Home hero: the three values, then the mission line, then the signup box, ease in on load (CSS only, always ends visible). */
	@keyframes rfvf-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
	@keyframes rfvf-fade { from { opacity: 0; } to { opacity: 1; } }
	.hero-pillars span, .hero-lede { animation: rfvf-rise .6s cubic-bezier(.2, .7, .2, 1) both; }
	.hero-pillars span:nth-child(1) { animation-delay: .1s; }
	.hero-pillars span:nth-child(2) { animation-delay: .22s; }
	.hero-pillars span:nth-child(3) { animation-delay: .34s; }
	.hero-lede { animation-delay: .5s; }
	.home-hero-cols > .wp-block-column:last-child { animation: rfvf-fade .7s ease-out .35s both; }

	/* Scroll-in (assets/js/motion.js marks elements below the first screen with data-rv). */
	.rv-on [data-rv] { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2, .7, .2, 1), transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--rv-d, 0s); }
	.rv-on [data-rv="zoom"] { transform: scale(.94); }
	.rv-on [data-rv="left"] { transform: translateX(-28px); }
	.rv-on [data-rv="right"] { transform: translateX(28px); }
	.rv-on [data-rv="fade"] { transform: none; }
	.rv-on [data-rv].is-in { opacity: 1; transform: none; }

	/* "You are here": arriving at /#newsletter (the banner's session-updates button) gives the form a short green glow. */
	@keyframes rfvf-glow { 0% { box-shadow: 0 0 0 0 rgba(30, 86, 49, 0); } 25% { box-shadow: 0 0 0 6px rgba(30, 86, 49, .45); } 100% { box-shadow: 0 0 0 14px rgba(30, 86, 49, 0); } }
	.signup-anchor:target .signup { animation: rfvf-glow 1.1s ease-out .3s 2; }

	/* Signup result: the message rises in; a thank-you gets a check mark that pops in. */
	.signup-msg { animation: rfvf-rise .35s ease-out both; }
	@keyframes rfvf-pop { 0% { transform: scale(0); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
	.signup-msg.is-ok::before { animation: rfvf-pop .4s cubic-bezier(.2, .7, .2, 1) .15s both; }
}
/* The check mark itself shows for everyone (motion or not). */
.signup-msg.is-ok { display: flex; align-items: center; gap: 10px; }
.signup-msg.is-ok::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: #1e5631 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
/* While a signup is sending, the button says so visually. */
.signup button[type="submit"]:disabled { opacity: .65; cursor: progress; }
/* Focus cards: lift a touch more with a softer shadow (live grew them 5%; a lift reads cleaner and keeps text sharp). */
.focus-card { transition: transform .2s ease, box-shadow .2s ease; }
.focus-card:hover, .focus-card:focus-within { transform: translateY(-6px); box-shadow: 3px 8px 16px 2px rgba(38, 84, 47, .28); }

/* ---------- In the News (1.0.9): one white panel of dated headlines that link out. Date and outlet in green,
   headline in the logo navy. Phones stack the date line above the headline. */
.news-head .wp-block-post-title { margin: 0 0 16px; }
.news-head .blog-intro:empty { display: none; }
.news-list { list-style: none; box-sizing: border-box; width: 100%; margin: 0 auto !important; padding: 8px 40px; background: #fff; border-radius: 16px; box-shadow: 2px 2px 2px 2px rgba(38, 84, 47, .3); }
.news-item { display: grid; grid-template-columns: 230px 1fr; gap: 24px; align-items: baseline; margin: 0; padding: 24px 0; border-bottom: 1px solid var(--line); }
.news-item:last-child { border-bottom: 0; }
.news-meta { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 16px; line-height: 21px; font-weight: 400; color: var(--forest); }
.news-outlet { font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--forest); }
.news-title { color: var(--navy); font-size: 21.75px; line-height: 27px; font-weight: 700; text-decoration: none; }
.news-title:hover, .news-title:focus-visible { text-decoration: underline; }
.news-end { white-space: nowrap; }
.news-title .icon { width: .7em; height: .7em; margin-left: .35em; vertical-align: baseline; color: var(--sage-text); }
.news-empty { margin: 0; color: var(--forest); font-size: 18px; line-height: 23.1px; }
.news-item[hidden], .news-more[hidden] { display: none; }
.news-item:has(+ .news-item[hidden]) { border-bottom: 0; } /* last story shown before "Show more" */
.news-more { box-sizing: border-box; width: 100%; margin: 40px auto 0 !important; text-align: center; }
.news-more .btn { border: 0; cursor: pointer; font: inherit; font-size: 18px; font-weight: 700; }
@media (max-width: 781px) {
	.news-list { padding: 0 16px; }
	.news-item { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
	.news-meta { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0 10px; font-size: 14px; line-height: 20px; }
	.news-outlet { font-size: 12px; }
	.news-title { font-size: 18px; line-height: 23.1px; }
	.news-empty { font-size: 16.06px; line-height: 21.25px; }
	.news-more .btn { width: 100%; justify-content: center; box-sizing: border-box; }
}
