/* =========================================================================
   RCSF component styles
   Uses theme.json preset variables (--wp--preset--color--*) for brand colors.
   ========================================================================= */

:root {
	--rcsf-green: var(--wp--preset--color--primary, #6e9a44);
	--rcsf-green-dark: var(--wp--preset--color--primary-dark, #4f7a2c);
	--rcsf-green-soft: var(--wp--preset--color--primary-soft, #eef3e3);
	--rcsf-orange: var(--wp--preset--color--accent, #d9643a);
	--rcsf-orange-dark: var(--wp--preset--color--accent-dark, #b94e28);
	--rcsf-cream: var(--wp--preset--color--cream, #f7f5ec);
	--rcsf-sand: var(--wp--preset--color--sand, #ece7d5);
	--rcsf-ink: var(--wp--preset--color--contrast, #23281a);
	--rcsf-muted: var(--wp--preset--color--muted, #5b6150);
	--rcsf-shadow: 0 1px 2px rgba(35, 40, 26, .06), 0 8px 24px rgba(35, 40, 26, .07);
	--rcsf-shadow-lg: 0 2px 6px rgba(35, 40, 26, .08), 0 18px 40px rgba(35, 40, 26, .12);
	--rcsf-radius: 16px;
}

/* ---- Shared helpers ---------------------------------------------------- */
.rcsf-eyebrow {
	display: inline-block;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
	font-size: .8rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--rcsf-orange-dark);
	margin: 0 0 .35rem;
}
.rcsf-eyebrow.is-light { color: #ffe6d8; }
/* When an eyebrow is set to center, make it a block so it actually centers
   (inline-block would otherwise hug the left edge). */
.rcsf-eyebrow.has-text-align-center { display: block; text-align: center; }

.has-cream-background-color { background-color: var(--rcsf-cream); }

/* Soft divider rule used under section headings */
.rcsf-rule::after {
	content: "";
	display: block;
	width: 64px;
	height: 4px;
	border-radius: 4px;
	background: var(--rcsf-orange);
	margin: 1rem auto 0;
}
.rcsf-rule.is-left::after { margin-left: 0; margin-right: auto; }

/* ---- Hero -------------------------------------------------------------- */
.rcsf-hero {
	position: relative;
	overflow: hidden;
	color: #fff;
	border-radius: var(--rcsf-radius);
	background-color: var(--rcsf-green-dark);
	/* Green brand overlay layered over an optional photo (--hero-img);
	   falls back to a solid brand gradient when no photo is set. */
	background-image:
		linear-gradient(118deg, rgba(38,57,22,.88) 0%, rgba(62,95,37,.68) 52%, rgba(79,122,44,.52) 100%),
		var(--hero-img, linear-gradient(135deg, #4f7a2c, #6e9a44));
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
.rcsf-hero :where(h1, h2, h3, p) { color: #fff; text-shadow: 0 1px 14px rgba(20,30,12,.3); }
.rcsf-hero .rcsf-eyebrow { color: #ffe6d8; }

/* Scholarship pages control spacing with explicit spacers, so drop the core
   block-gap (:where(.is-layout-constrained) > * { margin-block-start:1.5rem })
   that would otherwise stack on top of them. */
body.rcsf-scholarship-page :where(.is-layout-constrained) > * { margin-block-start: 0; }

/* Per-page hero photos (root-relative so they work on any domain) */
.rcsf-about .rcsf-hero { --hero-img: url('/wp-content/uploads/2026/07/hero-oranges.jpg?v=3'); }
.rcsf-applicant-info .rcsf-hero { --hero-img: url('/wp-content/uploads/2026/07/hero-oranges.jpg?v=3'); }
.rcsf-ways-to-give .rcsf-hero                { --hero-img: url('/wp-content/uploads/2026/07/hero-oranges.jpg?v=2'); }
.rcsf-contact .rcsf-hero { --hero-img: url('/wp-content/uploads/2026/07/hero-oranges.jpg?v=3'); }
.rcsf-document-downloads .rcsf-hero { --hero-img: url('/wp-content/uploads/2026/07/hero-oranges.jpg?v=3'); }
.rcsf-recipients .rcsf-hero { --hero-img: url('/wp-content/uploads/2026/07/hero-oranges.jpg?v=3'); }
.rcsf-thank-you .rcsf-hero                   { --hero-img: url('/wp-content/uploads/2026/07/hero-oranges.jpg?v=2'); }
.rcsf-citrus-valley .rcsf-hero               { --hero-img: url('/wp-content/uploads/2026/07/school-citrus-valley.jpg?v=2'); }
.rcsf-grove .rcsf-hero                       { --hero-img: url('/wp-content/uploads/2026/07/school-grove.jpg?v=2'); }
.rcsf-orangewood .rcsf-hero                  { --hero-img: url('/wp-content/uploads/2026/07/school-orangewood.jpg?v=2'); }
.rcsf-redlands-high .rcsf-hero               { --hero-img: url('/wp-content/uploads/2026/07/school-redlands-high.jpg?v=2'); }
.rcsf-redlands-adult .rcsf-hero { --hero-img: url('/wp-content/uploads/2026/07/hero-rusd.jpg?v=3'); }
.rcsf-redlands-east-valley .rcsf-hero        { --hero-img: url('/wp-content/uploads/2026/07/school-redlands-east-valley.jpg?v=2'); }
.rcsf-eacademy .rcsf-hero                    { --hero-img: url('/wp-content/uploads/2026/07/school-eacademy.jpg?v=2'); }

/* ---- Stat cards -------------------------------------------------------- */
.rcsf-stats {
	--stat-min: 200px;
}
.rcsf-stat {
	background: #fff;
	border: 1px solid var(--rcsf-sand);
	border-radius: var(--rcsf-radius);
	padding: 1.75rem 1.25rem;
	text-align: center;
	box-shadow: var(--rcsf-shadow);
	height: 100%;
}
.rcsf-stat .rcsf-stat-num {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 800;
	line-height: 1;
	font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem);
	color: var(--rcsf-green-dark);
	margin: 0 0 .35rem;
	white-space: nowrap;
}
.rcsf-stat .rcsf-stat-label {
	color: var(--rcsf-muted);
	font-size: .98rem;
	margin: 0;
	line-height: 1.45;
}
.rcsf-stat.is-orange .rcsf-stat-num { color: var(--rcsf-orange-dark); }

/* ---- Generic feature / link cards ------------------------------------- */
.rcsf-card {
	background: #fff;
	border: 1px solid var(--rcsf-sand);
	border-radius: var(--rcsf-radius);
	padding: 1.75rem;
	box-shadow: var(--rcsf-shadow);
	height: 100%;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.rcsf-card h3, .rcsf-card h4 { margin-top: 0; }
a.rcsf-card, .rcsf-card a.rcsf-card-link { text-decoration: none; }
.rcsf-card.is-linked:hover,
a.rcsf-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--rcsf-shadow-lg);
	border-color: var(--rcsf-green);
}
.rcsf-card .rcsf-card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 52px;
	width: auto;
	height: 52px;
	padding: 0 .75rem;
	border-radius: 14px;
	background: var(--rcsf-green-soft);
	color: var(--rcsf-green-dark);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 800;
	font-size: 1.35rem;
	margin-bottom: 1rem;
}
.rcsf-card.is-orange .rcsf-card-icon { background: var(--wp--preset--color--accent-soft, #fbeee6); color: var(--rcsf-orange-dark); }

/* ---- Giving-method grid ------------------------------------------------ */
.rcsf-give-card {
	display: flex;
	flex-direction: column;
	gap: .5rem;
	background: #fff;
	border: 1px solid var(--rcsf-sand);
	border-left: 5px solid var(--rcsf-green);
	border-radius: 14px;
	padding: 1.5rem 1.5rem 1.6rem;
	box-shadow: var(--rcsf-shadow);
	height: 100%;
	text-decoration: none;
	color: var(--rcsf-ink);
	transition: transform .18s ease, box-shadow .18s ease, border-left-color .18s ease;
}
.rcsf-give-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--rcsf-shadow-lg);
	border-left-color: var(--rcsf-orange);
}
.rcsf-give-card .rcsf-give-title {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 1.2rem;
	margin: 0;
	color: var(--rcsf-ink);
}
.rcsf-give-card .rcsf-give-desc { margin: 0; color: var(--rcsf-muted); font-size: .97rem; }
.rcsf-give-card .rcsf-give-more {
	margin-top: auto;
	font-weight: 700;
	color: var(--rcsf-green-dark);
	font-size: .95rem;
}
.rcsf-give-card:hover .rcsf-give-more { color: var(--rcsf-orange-dark); }

/* Step blocks on giving pages */
.rcsf-steps { counter-reset: rcsf-step; }
.rcsf-step {
	background: #fff;
	border: 1px solid var(--rcsf-sand);
	border-radius: 14px;
	padding: 1.5rem;
	box-shadow: var(--rcsf-shadow);
	height: 100%;
}
/* Number badge sits inline with the heading; the body text below is flush left. */
.rcsf-step h3, .rcsf-step h4 {
	display: flex;
	align-items: center;
	gap: .7rem;
	margin: 0 0 .6rem;
	font-size: 1.1rem;
}
.rcsf-step h3::before, .rcsf-step h4::before {
	counter-increment: rcsf-step;
	content: counter(rcsf-step);
	flex: 0 0 auto;
	width: 2.1rem; height: 2.1rem;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%;
	background: var(--rcsf-green);
	color: #fff;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 1rem;
}
.rcsf-step p { margin: 0; color: var(--rcsf-muted); }

/* Info callout box */
.rcsf-callout {
	background: var(--rcsf-cream);
	border: 1px solid var(--rcsf-sand);
	border-radius: 14px;
	padding: 1.5rem 1.75rem;
}
.rcsf-callout.is-green { background: var(--rcsf-green-soft); border-color: #d9e6c4; }
.rcsf-callout.is-orange { background: var(--wp--preset--color--accent-soft, #fbeee6); border-color: #f3d6c6; }
.rcsf-callout p:last-child { margin-bottom: 0; }
.rcsf-fineprint { font-size: .85rem; color: var(--rcsf-muted); line-height: 1.55; }

/* Contact detail row */
.rcsf-detail {
	display: flex; gap: .75rem; align-items: flex-start;
}
.rcsf-detail .rcsf-detail-ico {
	flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--rcsf-green-soft); color: var(--rcsf-green-dark); font-size: 1.2rem;
}
.rcsf-detail span { display: block; }
.rcsf-detail .rcsf-detail-label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--rcsf-muted); margin: 0 0 .15rem; }
.rcsf-detail .rcsf-detail-val { display: block; margin: 0; font-weight: 600; font-size: 1.05rem; }
.rcsf-detail .rcsf-detail-val a { color: var(--rcsf-ink); text-decoration: none; }
.rcsf-detail .rcsf-detail-val a:hover { color: var(--rcsf-orange-dark); }

/* ---- Testimonials ------------------------------------------------------ */
.rcsf-quote {
	background: #fff;
	border: 1px solid var(--rcsf-sand);
	border-radius: var(--rcsf-radius);
	padding: 2rem 1.75rem 1.6rem;
	box-shadow: var(--rcsf-shadow);
	position: relative;
	overflow: hidden;
}
.rcsf-quote::before {
	content: "\201C";
	position: absolute; top: .2rem; left: 1.1rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 4.5rem; line-height: 1; color: var(--rcsf-green-soft);
}
.rcsf-quote .rcsf-quote-text { position: relative; font-size: 1.05rem; line-height: 1.6; margin: 0 0 1.25rem; }
.rcsf-quote .rcsf-quote-name { font-family: var(--wp--preset--font-family--heading); font-weight: 700; margin: 0; }
.rcsf-quote .rcsf-quote-role { color: var(--rcsf-orange-dark); font-size: .9rem; font-weight: 600; margin: 0; }

/* =========================================================================
   Google Sheets rendered blocks (output by the RCSF Sheets plugin)
   ========================================================================= */
.rcsf-sheet { margin: 0; }
.rcsf-sheet-notice {
	background: var(--rcsf-cream);
	border: 1px dashed var(--rcsf-sand);
	border-radius: 12px;
	padding: 1rem 1.25rem;
	color: var(--rcsf-muted);
	font-size: .95rem;
}

/* Scholarship search / filter controls */
.rcsf-sch-controls {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem 1rem;
	align-items: center;
	margin-bottom: 1.25rem;
}
.rcsf-sch-search {
	flex: 1 1 260px;
	position: relative;
}
.rcsf-sch-search input {
	width: 100%;
	padding: .75rem 1rem .75rem 2.6rem;
	border: 1px solid var(--rcsf-sand);
	border-radius: 999px;
	font: inherit;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235b6150' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat .95rem center;
}
.rcsf-sch-search input:focus { outline: 2px solid var(--rcsf-green); border-color: var(--rcsf-green); }
.rcsf-sch-filters { display: flex; gap: .4rem; flex-wrap: wrap; }
.rcsf-chip {
	border: 1px solid var(--rcsf-sand);
	background: #fff;
	color: var(--rcsf-muted);
	padding: .55rem 1rem;
	border-radius: 999px;
	font: inherit; font-size: .9rem; font-weight: 600;
	cursor: pointer;
	transition: all .15s ease;
}
.rcsf-chip:hover { border-color: var(--rcsf-green); color: var(--rcsf-green-dark); }
.rcsf-chip.is-active { background: var(--rcsf-green); border-color: var(--rcsf-green); color: #fff; }
.rcsf-sch-count { color: var(--rcsf-muted); font-size: .9rem; margin-left: auto; }

/* Class-based display rules override the UA [hidden] rule, so restore it
   for any element the filter JS hides (cards, empty-state, etc.). */
.rcsf-sheet [hidden] { display: none !important; }

/* Scholarship cards */
/* Stacked, single-column list — reads better than a multi-column grid
   when every card carries a paragraph of description. */
.rcsf-sch-grid {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.rcsf-sch-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--rcsf-sand);
	border-radius: 14px;
	padding: 1.4rem 1.4rem 1.5rem;
	box-shadow: var(--rcsf-shadow);
}
.rcsf-sch-card .rcsf-sch-head {
	display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
	margin-bottom: .6rem;
}
.rcsf-sch-card .rcsf-sch-name {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700; font-size: 1.08rem; line-height: 1.3; margin: 0; color: var(--rcsf-ink);
}
.rcsf-sch-amount {
	flex: 0 0 auto;
	background: var(--rcsf-green-soft);
	color: var(--rcsf-green-dark);
	font-weight: 800;
	font-size: .95rem;
	padding: .3rem .7rem;
	border-radius: 999px;
	white-space: nowrap;
}
.rcsf-sch-desc { color: var(--rcsf-muted); font-size: .96rem; line-height: 1.55; margin: 0 0 1rem; }
.rcsf-sch-card .rcsf-sch-desc.is-clamped {
	display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.rcsf-sch-foot { margin-top: auto; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
/* When a "Read more" row sits above the essay badge, give the badge breathing room. */
.rcsf-sch-foot + .rcsf-sch-foot { margin-top: .9rem; }
.rcsf-badge {
	display: inline-flex; align-items: center; gap: .35rem;
	font-size: .8rem; font-weight: 700; padding: .3rem .65rem; border-radius: 999px;
}
.rcsf-badge.is-essay { background: var(--wp--preset--color--accent-soft, #fbeee6); color: var(--rcsf-orange-dark); }
.rcsf-badge.is-noessay { background: #eef1ea; color: var(--rcsf-muted); }
.rcsf-sch-toggle {
	background: none; border: 0; padding: 0; font: inherit; font-size: .88rem; font-weight: 700;
	color: var(--rcsf-green-dark); cursor: pointer; text-decoration: underline;
}
.rcsf-sch-empty { padding: 2rem; text-align: center; color: var(--rcsf-muted); }

/* ---- People (officers / board) ---------------------------------------- */
.rcsf-people {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1rem;
}
.rcsf-person {
	background: #fff;
	border: 1px solid var(--rcsf-sand);
	border-radius: 14px;
	padding: 1.4rem 1.25rem;
	text-align: center;
	box-shadow: var(--rcsf-shadow);
}
.rcsf-person .rcsf-person-avatar {
	width: 68px; height: 68px; border-radius: 50%;
	margin: 0 auto .85rem;
	display: flex; align-items: center; justify-content: center;
	background: var(--rcsf-green-soft); color: var(--rcsf-green-dark);
	font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 1.4rem;
	overflow: hidden;
}
.rcsf-person .rcsf-person-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rcsf-person .rcsf-person-name { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 1.05rem; margin: 0; }
.rcsf-person .rcsf-person-role { color: var(--rcsf-orange-dark); font-size: .88rem; font-weight: 600; margin: .15rem 0 0; }
.rcsf-person .rcsf-person-extra { color: var(--rcsf-muted); font-size: .85rem; margin: .3rem 0 0; }

/* ---- Recipients list --------------------------------------------------- */
.rcsf-recip-school { margin-bottom: 2.25rem; }
.rcsf-recip-school > h3 {
	display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap;
	border-bottom: 2px solid var(--rcsf-green-soft);
	padding-bottom: .5rem; margin-bottom: 1rem;
}
.rcsf-recip-count { font-family: var(--wp--preset--font-family--body); font-size: .85rem; font-weight: 700; color: var(--rcsf-green-dark); background: var(--rcsf-green-soft); border-radius: 999px; padding: .15rem .6rem; }
.rcsf-recip-names {
	column-width: 200px;
	column-gap: 2rem;
	list-style: none;
	margin: 0; padding: 0;
}
.rcsf-recip-names li {
	break-inside: avoid;
	padding: .3rem 0 .3rem 1.1rem;
	position: relative;
	color: var(--rcsf-ink);
	font-size: .97rem;
}
.rcsf-recip-names li::before {
	content: ""; position: absolute; left: 0; top: .85em;
	width: 6px; height: 6px; border-radius: 50%; background: var(--rcsf-orange);
}

/* ---- Donors (by giving level) ----------------------------------------- */
.rcsf-donorlist { margin: 0; }
.rcsf-donor-tier { margin-bottom: 2.5rem; }
.rcsf-donor-tier:last-child { margin-bottom: 0; }
.rcsf-donor-level {
	display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap;
	border-bottom: 2px solid var(--rcsf-green-soft);
	padding-bottom: .55rem; margin-bottom: 1.1rem;
	color: var(--rcsf-green-dark);
	text-transform: uppercase; letter-spacing: .04em;
	font-size: 1.15rem;
}
.rcsf-donor-amt {
	font-family: var(--wp--preset--font-family--body);
	font-size: .8rem; font-weight: 700; letter-spacing: 0;
	text-transform: none;
	color: var(--rcsf-orange-dark);
	background: var(--wp--preset--color--accent-soft, #fbeee6);
	border-radius: 999px; padding: .18rem .7rem;
}
.rcsf-donor-names {
	column-width: 220px;
	column-gap: 2rem;
	list-style: none;
	margin: 0; padding: 0;
}
.rcsf-donor-names li {
	break-inside: avoid;
	padding: .3rem 0 .3rem 1.1rem;
	position: relative;
	color: var(--rcsf-ink);
	font-size: .97rem;
	line-height: 1.4;
}
.rcsf-donor-names li::before {
	content: ""; position: absolute; left: 0; top: .72em;
	width: 6px; height: 6px; border-radius: 50%; background: var(--rcsf-orange);
}

/* ---- Documents list ---------------------------------------------------- */
.rcsf-doc {
	display: flex; align-items: center; gap: 1rem;
	background: #fff; border: 1px solid var(--rcsf-sand); border-radius: 12px;
	padding: 1rem 1.25rem; text-decoration: none; color: var(--rcsf-ink);
	box-shadow: var(--rcsf-shadow); transition: all .16s ease;
}
.rcsf-doc:hover { border-color: var(--rcsf-green); transform: translateY(-2px); box-shadow: var(--rcsf-shadow-lg); }
.rcsf-doc .rcsf-doc-ico {
	flex: 0 0 auto; width: 44px; height: 44px; border-radius: 10px;
	background: var(--wp--preset--color--accent-soft, #fbeee6); color: var(--rcsf-orange-dark);
	display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.rcsf-doc .rcsf-doc-title { display: block; font-weight: 700; margin: 0 0 .15rem; line-height: 1.3; }
.rcsf-doc .rcsf-doc-meta { display: block; color: var(--rcsf-muted); font-size: .85rem; margin: 0; }

/* ---- Secondary (ghost) button style ------------------------------------ */
.wp-block-button.is-style-rcsf-ghost .wp-block-button__link {
	background: transparent;
	color: #fff;
	border: 2px solid rgba(255,255,255,.7);
}
.wp-block-button.is-style-rcsf-ghost .wp-block-button__link:hover {
	background: #fff; color: var(--rcsf-green-dark); border-color: #fff;
}
.wp-block-button.is-style-rcsf-green .wp-block-button__link { background: var(--rcsf-green); }
.wp-block-button.is-style-rcsf-green .wp-block-button__link:hover { background: var(--rcsf-green-dark); }

/* ---- Header / footer nav polish --------------------------------------- */
.wp-block-navigation .wp-block-navigation-item__content { font-weight: 600; }
.rcsf-footer a { color: #dfe8d2; }
.rcsf-footer a:hover { color: #fff; }

/* ---- Responsive tweaks ------------------------------------------------- */
@media (max-width: 600px) {
	.rcsf-sch-count { margin-left: 0; width: 100%; }
	.rcsf-hero::before, .rcsf-hero::after { display: none; }
}

/* ---- Layout tweaks ----------------------------------------------------- */
.alignfull.rcsf-hero { border-radius: 0; }

.rcsf-people-group {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.5rem;
	margin: 2rem 0 1rem;
	padding-bottom: .4rem;
	border-bottom: 2px solid var(--rcsf-green-soft);
}
.rcsf-people-wrap .rcsf-people-group:first-child { margin-top: 0; }

/* Sticky header. Sticky must live on the template-part wrapper, not the
   <header> itself: the wrapper's parent (.wp-site-blocks) is full-page
   height, giving the sticky element room to travel. The <header> wrapper is
   only as tall as the header, so sticky there is a no-op. */
.wp-site-blocks > .wp-block-template-part:has(> .rcsf-site-header) {
	position: sticky;
	top: 0;
	z-index: 1000;
}
.rcsf-site-header {
	box-shadow: 0 1px 0 rgba(35, 40, 26, .04), 0 6px 18px rgba(35, 40, 26, .05);
}
/* Offset in-page anchor jumps so targets aren't hidden under the sticky header. */
html { scroll-padding-top: 92px; }

/* Header logo + nav alignment */
.rcsf-site-header .wp-block-site-logo img { display: block; height: auto; }
.rcsf-site-header .wp-block-navigation { --wp--style--block-gap: 1.5rem; }
.rcsf-primary-nav > .wp-block-navigation__container > .wp-block-navigation-item > a { color: var(--rcsf-ink); }
.rcsf-primary-nav a:hover { color: var(--rcsf-green-dark); }

/* Dropdown submenus */
.rcsf-primary-nav .wp-block-navigation__submenu-container {
	background: #fff;
	border: 1px solid var(--rcsf-sand);
	border-radius: 12px;
	box-shadow: var(--rcsf-shadow-lg);
	padding: .4rem;
	min-width: 250px;
	gap: 0;
	--wp--style--block-gap: 0;
	margin-top: .25rem;
}
/* Invisible hover bridge across the gap between a nav item and its dropdown,
   so moving the pointer into the submenu doesn't briefly leave the hover
   zone and close the menu. */
.rcsf-primary-nav .wp-block-navigation__submenu-container::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -0.8rem;
	height: 0.8rem;
	background: transparent;
}
.rcsf-primary-nav .wp-block-navigation__submenu-container .wp-block-navigation-item {
	margin: 0;
}
.rcsf-primary-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	display: block;
	padding: .5rem .7rem;
	border-radius: 8px;
	color: var(--rcsf-ink);
	line-height: 1.3;
}
.rcsf-primary-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: var(--rcsf-green-soft);
	color: var(--rcsf-green-dark);
}

/* Prose lists inside cards/callouts get a little breathing room */
.rcsf-callout ul, .rcsf-card ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.rcsf-callout li, .rcsf-card li { margin: .3rem 0; }

/* Anchor offset so in-page jumps clear the sticky-ish header */
:target { scroll-margin-top: 90px; }

/* ---- Homepage hero slider --------------------------------------------- */
.rcsf-hero-slider {
	position: relative;
	min-height: clamp(460px, 66vh, 660px);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	color: #fff;
	isolation: isolate;
}
.rcsf-hero-slider .rcsf-slides { position: absolute; inset: 0; z-index: 0; }
.rcsf-hero-slider .rcsf-slide {
	position: absolute; inset: 0;
	background-size: cover; background-position: center;
	opacity: 0; transition: opacity 1.1s ease;
	transform: scale(1.04);
}
.rcsf-hero-slider .rcsf-slide.is-active { opacity: 1; animation: rcsf-kenburns 8s ease-out forwards; }
@keyframes rcsf-kenburns { from { transform: scale(1.04); } to { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) {
	.rcsf-hero-slider .rcsf-slide { transition: none; }
	.rcsf-hero-slider .rcsf-slide.is-active { animation: none; }
}
/* Green brand overlay above the slides */
.rcsf-hero-slider::before {
	content: ""; position: absolute; inset: 0; z-index: 1;
	background: linear-gradient(118deg, rgba(35,53,20,.84) 0%, rgba(60,92,36,.66) 50%, rgba(79,122,44,.5) 100%);
}
.rcsf-hero-content {
	position: relative; z-index: 2;
	max-width: 860px; padding: 3.5rem 1.5rem; text-align: center;
}
.rcsf-hero-content :where(h1, h2, h3, p) { color: #fff; }
.rcsf-hero-content h1 {
	color: #fff;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 800; line-height: 1.06; margin: .2rem 0 0;
	font-size: clamp(2.6rem, 1.8rem + 3vw, 4rem);
	text-shadow: 0 2px 22px rgba(20,30,12,.35);
}
.rcsf-hero-content .rcsf-hero-sub {
	font-size: 1.2rem; line-height: 1.6; margin: 1.15rem auto 0; max-width: 660px;
	text-shadow: 0 1px 14px rgba(20,30,12,.4);
}
.rcsf-hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2rem; }
.rcsf-btn {
	display: inline-block; padding: .85rem 1.75rem; border-radius: 999px;
	font-weight: 700; text-decoration: none; transition: all .16s ease; border: 2px solid transparent;
}
.rcsf-btn-green { background: var(--rcsf-green); color: #fff; }
.rcsf-btn-green:hover { background: var(--rcsf-green-dark); color: #fff; }
.rcsf-btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.75); }
.rcsf-btn-ghost:hover { background: #fff; color: var(--rcsf-green-dark); }
/* Dots */
.rcsf-slider-dots { position: absolute; z-index: 3; bottom: 1.1rem; left: 0; right: 0; display: flex; gap: .5rem; justify-content: center; }
.rcsf-slider-dots button {
	width: 10px; height: 10px; border-radius: 50%; border: 0; cursor: pointer;
	background: rgba(255,255,255,.45); padding: 0; transition: all .16s ease;
}
.rcsf-slider-dots button.is-active { background: #fff; transform: scale(1.25); }

/* Auto-fill card grid utility (school picker, giving methods, documents) */
.rcsf-cardgrid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 1.5rem;
	align-items: stretch;
}
.rcsf-cardgrid > *, .rcsf-schoolgrid > * { margin: 0 !important; height: auto !important; align-self: stretch; }
.rcsf-cardgrid > .wp-block-group { height: 100%; }
.rcsf-card-link {
	font-weight: 700;
	color: var(--rcsf-green-dark);
	text-decoration: none;
}
.rcsf-card-link:hover { color: var(--rcsf-orange-dark); }
.rcsf-card h3 a { text-decoration: none; color: var(--rcsf-ink); }
.rcsf-card h3 a:hover { color: var(--rcsf-green-dark); }

/* People page section within About */
.rcsf-person.is-officer .rcsf-person-avatar { background: var(--wp--preset--color--accent-soft,#fbeee6); color: var(--rcsf-orange-dark); }

/* Smooth in-page scrolling for anchor jumps */
html { scroll-behavior: smooth; }

/* President letter band uses a photo backdrop */
.rcsf-president-band { --hero-img: url('/wp-content/uploads/2026/07/hero-graduation.jpg?v=2'); }
.rcsf-president-band .rcsf-quote-lg::before { content: none; }

/* School picker cards with campus photos */
.rcsf-schoolgrid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 1.1rem;
	align-items: stretch;
}
.rcsf-schoolcard {
	display: flex; flex-direction: column;
	background: #fff; border: 1px solid var(--rcsf-sand); border-radius: 16px;
	overflow: hidden; box-shadow: var(--rcsf-shadow); height: 100%;
	text-decoration: none; color: var(--rcsf-ink);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.rcsf-schoolcard:hover { transform: translateY(-3px); box-shadow: var(--rcsf-shadow-lg); border-color: var(--rcsf-green); }
.rcsf-schoolcard-img { display: block; height: 140px; background-size: cover; background-position: center; background-color: var(--rcsf-green-soft); }
.rcsf-schoolcard-body { padding: 1.1rem 1.3rem 1.35rem; display: flex; flex-direction: column; gap: .4rem; flex: 1 1 auto; }
.rcsf-schoolcard-title { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 1.1rem; line-height: 1.25; }
.rcsf-schoolcard-link { margin-top: auto; font-weight: 700; color: var(--rcsf-green-dark); font-size: .95rem; }
.rcsf-schoolcard:hover .rcsf-schoolcard-link { color: var(--rcsf-orange-dark); }
.rcsf-schoolcard.is-docs .rcsf-schoolcard-img {
	display: flex; align-items: center; justify-content: center;
	background: var(--wp--preset--color--accent-soft, #fbeee6); font-size: 2.4rem;
}

/* Giving-method selector cards as full-card links */
a.rcsf-give-card { text-decoration: none; }

/* Ways-to-give method sections */
.rcsf-method { scroll-margin-top: 90px; padding-top: 2.75rem; border-top: 1px solid var(--rcsf-sand); margin-top: 2.75rem; }
.rcsf-method.is-first { border-top: 0; margin-top: 0; padding-top: 0; }
.rcsf-method > h2 { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.rcsf-method-ico {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 12px; font-size: 1.4rem;
	background: var(--rcsf-green-soft); color: var(--rcsf-green-dark);
}
.rcsf-give-card .rcsf-give-ico { font-size: 1.6rem; }


/* President letter card (dark text on a white card over the photo band) */
.rcsf-president-band { padding-top: 4.5rem; padding-bottom: 4.5rem; }
.rcsf-letter-card {
	background: #fff; border-radius: 18px; padding: 2.75rem 2.75rem 2.5rem;
	box-shadow: var(--rcsf-shadow-lg); text-align: left;
}
.rcsf-letter-card :where(h1,h2,h3,p) { color: var(--rcsf-ink) !important; text-shadow: none !important; }
.rcsf-letter-card .rcsf-eyebrow { color: var(--rcsf-orange-dark) !important; margin-bottom: 1.25rem; }
.rcsf-letter-card p { font-size: 1.05rem; line-height: 1.7; }
.rcsf-letter-sig { font-weight: 700 !important; margin-top: 1.5rem !important; }
@media (max-width: 600px){ .rcsf-letter-card { padding: 1.6rem 1.4rem; } }


/* ---- Mobile navigation ------------------------------------------------- */
.rcsf-primary-nav .rcsf-nav-donate { display: none !important; }  /* in-menu Donate: shown only inside the mobile overlay, never in the desktop bar */

@media (max-width: 1190px) {
	/* Collapse to the hamburger menu up to this width (overrides core's 600px). */
	.rcsf-primary-nav .wp-block-navigation__responsive-container-open { display: flex !important; }
	.rcsf-primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }

	.rcsf-donate-desktop { display: none !important; }

	.wp-block-navigation__responsive-container.is-menu-open { background: #fff; }
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
		width: 100%; padding: 3.5rem 1.5rem 2.5rem;
	}

	/* Top-level list AND every submenu: static, full-width, left-aligned column.
	   This kills the desktop dropdown positioning + right-justify + large gaps. */
	.rcsf-primary-nav .is-menu-open .wp-block-navigation__container,
	.rcsf-primary-nav .is-menu-open .wp-block-navigation__submenu-container {
		position: static !important;
		inset: auto !important;
		transform: none !important;
		width: 100% !important;
		max-width: none !important;
		min-width: 0 !important;
		display: flex !important;
		flex-direction: column !important;
		align-items: stretch !important;
		justify-content: flex-start !important;
		gap: 0 !important;
		--wp--style--block-gap: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
		background: transparent !important;
		border: 0 !important;
		box-shadow: none !important;
		border-radius: 0 !important;
		text-align: left !important;
	}

	.rcsf-primary-nav .is-menu-open .wp-block-navigation-item {
		width: 100% !important;
		margin: 0 !important;
		text-align: left !important;
	}
	.rcsf-primary-nav .is-menu-open .wp-block-navigation-item__content {
		display: block !important;
		width: 100% !important;
		text-align: left !important;
		justify-content: flex-start !important;
		padding: .65rem 0 !important;
		margin: 0 !important;
		font-size: 1.1rem !important;
		color: var(--rcsf-ink) !important;
	}
	/* dividers on top-level rows only */
	.rcsf-primary-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item {
		border-bottom: 1px solid var(--rcsf-sand);
	}
	/* submenu: small left indent, smaller muted items */
	.rcsf-primary-nav .is-menu-open .wp-block-navigation__submenu-container { padding-left: 1rem !important; padding-bottom: .4rem !important; }
	.rcsf-primary-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
		font-size: 1rem !important;
		padding: .45rem 0 !important;
		color: var(--rcsf-muted) !important;
	}
	.rcsf-primary-nav .is-menu-open .wp-block-navigation__submenu-icon { margin-left: .4rem; }

	/* Subtle focus ring instead of a harsh black box */
	.rcsf-primary-nav .is-menu-open .wp-block-navigation-item__content:focus,
	.rcsf-primary-nav .is-menu-open .wp-block-navigation-item__content:focus-visible {
		outline: 2px solid var(--rcsf-green) !important;
		outline-offset: -2px;
		border-radius: 4px;
	}

	/* Donate as an orange pill at the end (extra specificity to beat the
	   generic item rule above). */
	.rcsf-primary-nav .is-menu-open .rcsf-nav-donate {
		display: block !important;
		border-bottom: 0 !important;
		margin-top: 1.5rem !important;
		text-align: center !important;
	}
	.rcsf-primary-nav .is-menu-open .rcsf-nav-donate .wp-block-navigation-item__content {
		display: inline-block !important;
		width: auto !important;
		background: var(--rcsf-orange) !important;
		color: #fff !important;
		padding: .85rem 2.5rem !important;
		border-radius: 999px !important;
		font-weight: 700 !important;
		font-size: 1.05rem !important;
		text-align: center !important;
		box-shadow: var(--rcsf-shadow);
	}
	.rcsf-primary-nav .is-menu-open .rcsf-nav-donate .wp-block-navigation-item__content:hover { background: var(--rcsf-orange-dark) !important; }
}


/* Recipient/donor testimonial photos */
.rcsf-quote-photo {
	display: block;
	width: calc(100% + 3.5rem);     /* bleed out to the card's side padding */
	height: 280px;
	margin: -2rem -1.75rem 1.5rem;  /* pull up/out to the card edges */
	object-fit: cover;
	object-position: 50% 22%;       /* bias toward the top so faces stay visible */
	border: 0;
	border-radius: 0;
	box-shadow: none;
	position: relative;
	z-index: 1;
}
.rcsf-quote:has(.rcsf-quote-photo) { text-align: center; }
.rcsf-quote:has(.rcsf-quote-photo)::before { display: none; }

/* Stories shortcode: responsive equal-height grid of testimonial cards */
.rcsf-quotes {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1.5rem;
	align-items: stretch;
}
.rcsf-quotes > .rcsf-quote { margin: 0; }


/* Testimonial "Read Full Story" button + modal */
.rcsf-quote-more {
	margin-top: .35rem; background: none; border: 0; padding: 0; font: inherit;
	font-weight: 700; color: var(--rcsf-green-dark); cursor: pointer;
}
.rcsf-quote-more:hover { color: var(--rcsf-orange-dark); }
.rcsf-quote-full { display: none; }

.rcsf-modal { position: fixed; inset: 0; z-index: 100000; display: none; }
.rcsf-modal.is-open { display: block; }
.rcsf-modal-overlay { position: absolute; inset: 0; background: rgba(20,30,12,.62); backdrop-filter: blur(2px); }
.rcsf-modal-card {
	position: relative; max-width: 700px; margin: 6vh auto; background: #fff;
	border-radius: 18px; padding: 2.5rem; max-height: 88vh; overflow-y: auto;
	box-shadow: var(--rcsf-shadow-lg);
}
.rcsf-modal-close {
	position: absolute; top: 1rem; right: 1rem; width: 42px; height: 42px;
	border: 0; border-radius: 50%; background: var(--rcsf-cream); color: var(--rcsf-ink);
	font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.rcsf-modal-close:hover { background: var(--rcsf-sand); }
.rcsf-modal-head { display: flex; align-items: center; gap: 1rem; margin: 0 2.5rem 1.5rem 0; }
.rcsf-modal-photo { width: 78px; height: 78px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.rcsf-modal-name { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 1.35rem; margin: 0; }
.rcsf-modal-role { color: var(--rcsf-orange-dark); font-weight: 600; margin: .1rem 0 0; }
.rcsf-modal-body p { margin: 0 0 1rem; line-height: 1.72; color: var(--rcsf-ink); }
.rcsf-modal-body p:last-child { margin-bottom: 0; }
@media (max-width: 600px) {
	.rcsf-modal-card { margin: 0; min-height: 100%; border-radius: 0; padding: 1.5rem 1.25rem 2.5rem; }
}


/* ---- Homepage hero: images-only slider with text BELOW (no overlay) ---- */
.rcsf-hero-slider--plain::before { content: none !important; }   /* remove green overlay */
.rcsf-hero-slider--plain {
	min-height: clamp(240px, 34vw, 448px); /* ~20% shorter */
	color: inherit;
	display: block;
}
.rcsf-hero-slider--plain .rcsf-slider-dots button { box-shadow: 0 0 0 1px rgba(20,30,12,.18); }

.rcsf-hero-below {
	background: #fff;
	padding: 2.75rem 1.5rem 3.25rem;
	text-align: center;
}
.rcsf-hero-below-inner { max-width: 1180px; margin: 0 auto; }
.rcsf-hero-below .rcsf-eyebrow { color: var(--rcsf-orange-dark); display: block; margin-bottom: .5rem; }
.rcsf-hero-below h1 {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 800; line-height: 1.1; margin: 0; text-wrap: balance;
	font-size: clamp(2.4rem, 1.7rem + 2.6vw, 3.6rem);
	color: var(--rcsf-ink);
}
.rcsf-hero-below .rcsf-hero-sub {
	color: var(--rcsf-muted);
	font-size: 1.15rem; line-height: 1.6;
	margin: 1.1rem auto 0; max-width: 680px;
	text-shadow: none;
}
.rcsf-hero-below .rcsf-hero-btns { margin-top: 1.85rem; }

/* Orange CTA button (used on light backgrounds) */
.rcsf-btn-orange { background: var(--rcsf-orange); color: #fff; }
.rcsf-btn-orange:hover { background: var(--rcsf-orange-dark); color: #fff; }


/* ---- Homepage slider controls (arrows + pause) ------------------------- */
.rcsf-hero-slider { position: relative; }
.rcsf-slider-arrow,
.rcsf-slider-pause {
	position: absolute;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	cursor: pointer;
	color: var(--rcsf-ink);
	background: rgba(255,255,255,.86);
	box-shadow: var(--rcsf-shadow);
	transition: background .15s ease, transform .15s ease;
}
.rcsf-slider-arrow:hover,
.rcsf-slider-pause:hover { background: #fff; }
.rcsf-slider-arrow:focus-visible,
.rcsf-slider-pause:focus-visible { outline: 3px solid var(--rcsf-green); outline-offset: 2px; }

.rcsf-slider-arrow {
	top: 50%;
	transform: translateY(-50%);
	width: 48px; height: 48px;
	border-radius: 50%;
}
.rcsf-slider-arrow:hover { transform: translateY(-50%) scale(1.06); }
.rcsf-slider-arrow svg { width: 24px; height: 24px; }
.rcsf-slider-prev { left: 1rem; }
.rcsf-slider-next { right: 1rem; }

.rcsf-slider-pause {
	left: 1rem; bottom: 1rem;
	width: 40px; height: 40px;
	border-radius: 50%;
}
.rcsf-slider-pause svg { width: 20px; height: 20px; }
.rcsf-slider-pause .rcsf-play-icon { display: none; }
.rcsf-hero-slider.is-paused .rcsf-slider-pause .rcsf-pause-icon { display: none; }
.rcsf-hero-slider.is-paused .rcsf-slider-pause .rcsf-play-icon { display: inline-flex; }

@media (max-width: 600px) {
	.rcsf-slider-arrow { width: 40px; height: 40px; }
	.rcsf-slider-arrow svg { width: 20px; height: 20px; }
	.rcsf-slider-prev { left: .5rem; }
	.rcsf-slider-next { right: .5rem; }
	.rcsf-slider-pause { left: .5rem; bottom: .5rem; }
}


/* Equal-height testimonial cards when shown side-by-side (columns/grid). */
.wp-block-column:has(> .rcsf-quote) { display: flex; flex-direction: column; }
.wp-block-column:has(> .rcsf-quote) > .rcsf-quote { flex: 1 1 auto; }
