/* HOPE theme — section layouts ported from the approved prototype.
   Layout lives here; editors only change content inside locked patterns. */

:root {
	--bg: var(--wp--preset--color--bg);
	--surface: var(--wp--preset--color--surface);
	--tint: var(--wp--preset--color--tint);
	--mint: var(--wp--preset--color--mint);
	--ink: var(--wp--preset--color--ink);
	--muted: var(--wp--preset--color--muted);
	--line: var(--wp--preset--color--line);
	--green: var(--wp--preset--color--green);
	--green-deep: var(--wp--preset--color--green-deep);
	--red: var(--wp--preset--color--red);
	--gold: var(--wp--preset--color--gold);
	--on-green: #fff;
	--wrap: 1200px;
	--r: 14px;
	--tec-color-accent-primary: #236b4b;
	--tec-color-button-primary: #236b4b;
	--tec-font-family-sans-serif: var(--wp--preset--font-family--poppins);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; text-wrap: balance; letter-spacing: -.015em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wp-site-blocks > * { margin-block: 0; }
figure { margin: 0; }
.skip-link:focus { z-index: 100000; }

.wrap { max-width: var(--wrap); margin-inline: auto !important; padding-inline: 20px; width: 100%; }
.hope-sec { padding-block: 96px; }
.hope-sec.no-top { padding-top: 0; }
.kicker { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.kicker::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--red) 0 33%, var(--gold) 33% 66%, var(--green) 66%); }
.h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 600; margin-top: .7rem !important; }
.lead { color: var(--muted); font-size: 1.06rem; max-width: 58ch; margin-top: 1rem !important; }
.lead a { color: var(--green); font-weight: 600; }

/* Buttons: core/button with HOPE styles */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: .8rem; }
.wp-block-button__link, .btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.3; text-decoration: none;
	border-radius: 999px; padding: .8rem 1.5rem; border: 2px solid transparent; cursor: pointer;
	background: var(--green); color: var(--on-green);
	transition: transform .15s, background .15s, color .15s, border-color .15s;
}
.wp-block-button__link:hover, .btn:hover { transform: translateY(-1px); background: var(--green-deep); color: #fff; }
.wp-block-button.is-style-hope-ghost .wp-block-button__link { background: transparent; color: var(--green); border-color: var(--green); }
.wp-block-button.is-style-hope-ghost .wp-block-button__link:hover { background: var(--green); color: var(--on-green); }
.wp-block-button.is-style-hope-light .wp-block-button__link, .btn-light { background: #fff; color: #174d36; }
.wp-block-button.is-style-hope-light .wp-block-button__link:hover, .btn-light:hover { background: var(--mint); color: #174d36; }
.is-style-hope-donate .wp-block-button__link::before, .btn .heart {
	content: ""; width: 1.05em; height: 1.05em; flex: none; background: currentColor; transition: transform .2s;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.3C.9 8.2 3 4.5 6.7 4.5c2.1 0 3.5 1.1 4.3 2.4.8-1.3 2.2-2.4 4.3-2.4 3.7 0 5.8 3.7 4.3 7.2C19.5 16.4 12 21 12 21Z'/%3E%3C/svg%3E") center/contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.3C.9 8.2 3 4.5 6.7 4.5c2.1 0 3.5 1.1 4.3 2.4.8-1.3 2.2-2.4 4.3-2.4 3.7 0 5.8 3.7 4.3 7.2C19.5 16.4 12 21 12 21Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.btn .heart { background: none; -webkit-mask: none; mask: none; fill: currentColor; }
.is-style-hope-donate .wp-block-button__link:hover::before, .btn:hover .heart { transform: scale(1.18); }
.arrow, .arrow a { font-weight: 600; color: var(--green); text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; transition: gap .15s; }
.arrow a::after, a.arrow::after { content: "→"; }
.arrow a:hover, a.arrow:hover { gap: .65rem; }
.arrow.is-muted { color: var(--muted); }

/* ---------- Header ---------- */
.announce { background: var(--green-deep); color: #fff; font-size: .85rem; text-align: center; }
.announce .wrap { padding-block: .55rem; }
.announce a { color: #bfeedd; font-weight: 600; margin-left: .4rem; }
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.admin-bar .site-head { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-head { top: 0; } }
.site-head .nav { display: flex; align-items: center; gap: 2rem; padding-block: 14px; flex-wrap: nowrap; }
.brand { display: flex; align-items: center; gap: .6rem; flex: none; }
.brand .wp-block-site-logo img { height: 38px; width: auto; }
.brand .wp-block-site-title { font-weight: 700; font-size: 1rem; letter-spacing: -.01em; line-height: 1.05; }
.brand .wp-block-site-title a { text-decoration: none; color: var(--ink); }
.brand .wp-block-site-tagline { display: block; font-weight: 500; font-size: .66rem; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.site-head .wp-block-navigation { margin-right: auto; font-size: .92rem; font-weight: 500; }
.site-head .wp-block-navigation .wp-block-navigation__container { gap: 1.6rem; }
.site-head .wp-block-navigation-item__content { text-decoration: none; padding-block: .3rem; border-bottom: 2px solid transparent; }
.site-head .wp-block-navigation-item__content:hover { border-color: var(--green); }
.site-head .nav-cta { flex: none; gap: .6rem; }
.site-head .nav-cta .wp-block-button__link { padding: .6rem 1.2rem; font-size: .88rem; }
.wp-block-navigation__responsive-container-open { border: 1px solid var(--line); border-radius: 12px; width: 44px; height: 44px; display: grid; place-items: center; }
.wp-block-navigation__responsive-container.is-menu-open { background: var(--bg) !important; padding: 24px; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 1rem; font-size: 1.2rem; }

/* ---------- Hero ---------- */
.hope-hero { padding-block: 56px 88px; position: relative; overflow: hidden; }
.hope-hero::before { content: ""; position: absolute; right: -12%; top: -20%; width: 70%; height: 140%; z-index: 0; background: radial-gradient(closest-side, var(--mint), transparent); opacity: .7; pointer-events: none; }
.hope-hero > .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid !important; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hope-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); font-weight: 700; margin-top: 1rem; letter-spacing: -.03em; }
.hope-hero h1 em, .hope-hero h1 strong { font-style: normal; font-weight: inherit; color: var(--green); background: linear-gradient(transparent 72%, var(--mint) 72% 90%, transparent 90%); }
.hope-hero .lead { font-size: 1.12rem; }
.hope-hero .wp-block-buttons { margin-top: 2rem; }
.trust { display: flex !important; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 2rem !important; font-size: .85rem; color: var(--muted); }
.trust p { display: inline-flex; align-items: center; gap: .45rem; }
.uses li { position: relative; padding-left: 34px; }
.trust p::before, .uses li::before {
	content: ""; width: 18px; height: 18px; flex: none; background: var(--green);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
}
.mosaic { display: grid !important; grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: min(520px, 62vw); position: relative; }
.mosaic > .wp-block-image { margin: 0; min-height: 0; }
.mosaic > .wp-block-image:first-child { grid-row: 1 / 3; }
.mosaic img { width: 100%; height: 100% !important; object-fit: cover; border-radius: var(--r); }
.badge { position: absolute !important; left: -22px; bottom: 28px; background: var(--surface); border-radius: 12px; padding: .85rem 1rem; box-shadow: 0 18px 40px -20px rgba(10, 40, 25, .45); display: flex !important; gap: .75rem; align-items: center; max-width: 250px; }
.badge .num { font-size: 1.5rem; color: var(--green); line-height: 1; font-weight: 700; flex: none; }
.badge p:not(.num) { font-size: .78rem; color: var(--muted); line-height: 1.35; }

/* ---------- Impact band ---------- */
.hope-impact { background: var(--green-deep); color: #fff; padding-block: 64px; }
.impact-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; }
.impact-grid div { border-left: 2px solid #ffc94a; padding-left: 18px; }
.impact-grid b { display: block; font-size: clamp(2.4rem, 4.6vw, 3.6rem); font-weight: 700; line-height: 1.05; letter-spacing: -.035em; font-variant-numeric: tabular-nums; color: #ffc94a; margin-bottom: .35rem; }
.impact-grid span { font-size: .92rem; font-weight: 500; opacity: .95; }
.hope-impact small { display: block; margin-top: 28px; font-size: .76rem; opacity: .8; }

/* ---------- About ---------- */
.about-grid { display: grid !important; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.vm { display: grid !important; gap: 16px; margin-top: 2rem !important; }
.vm > div { background: var(--tint); border-radius: var(--r); padding: 22px 24px; }
.vm h3 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin-bottom: .4rem; }
.vm p { font-size: 1.02rem; }
.colors { margin-top: 2.2rem !important; display: grid !important; gap: 14px; }
.colors h3 { font-size: 1.05rem; }
.colors p { position: relative; padding-left: 28px; font-size: .92rem; color: var(--muted); }
.colors p::before { content: ""; position: absolute; left: 0; top: .35rem; width: 14px; height: 14px; border-radius: 50%; background: var(--green); }
.colors p.dot-red::before { background: var(--red); }
.colors p.dot-gold::before { background: var(--gold); }
.colors b, .colors strong { color: var(--ink); font-weight: 600; }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 32px; }
.quote .says { font-size: 1.35rem; font-weight: 500; line-height: 1.45; letter-spacing: -.01em; }
.quote .says::before { content: "\201C"; display: block; font-size: 3.4rem; line-height: .6; color: var(--green); margin-bottom: .6rem; }
.quote .by { margin-top: 1.2rem !important; font-size: .9rem; color: var(--muted); }
.quote .by strong { color: var(--ink); display: block; }
.origin { margin-top: 16px !important; border-radius: var(--r); overflow: hidden; background: var(--tint); }
.origin img { width: 100%; height: clamp(220px, 26vw, 340px) !important; object-fit: cover; }
.origin p { padding: 20px 22px; font-size: .92rem; color: var(--muted); }
.origin strong { color: var(--ink); display: block; margin-bottom: .25rem; }

/* ---------- Programs ---------- */
.hope-programs { background: var(--tint); }
.sec-head { display: flex !important; justify-content: space-between; align-items: end; gap: 1rem 2rem; flex-wrap: wrap; }
.prog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.prog { background: var(--surface); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: .7rem; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.prog:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -28px rgba(10, 40, 25, .5); }
.prog .ic { width: 48px; height: 48px; border-radius: 12px; background: var(--mint); color: var(--green-deep); display: grid; place-items: center; }
.prog .ic svg { width: 24px; height: 24px; }
.prog h3 { font-size: 1.15rem; font-weight: 600; margin-top: .4rem; }
.prog h3 a { text-decoration: none; }
.prog p { color: var(--muted); font-size: .93rem; }
.prog .fact { margin-top: auto; padding-top: 1rem; border-top: 1px dashed var(--line); font-size: .84rem; font-weight: 500; color: var(--green); }

/* ---------- Featured story ---------- */
.story-grid { display: grid !important; grid-template-columns: 1.1fr 1fr; border-radius: 24px; overflow: hidden; background: var(--green-deep); color: #fff; }
.story-grid > .wp-block-image { position: relative; min-height: 420px; margin: 0; }
.story-grid > .wp-block-image img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; }
.story-grid > .wp-block-image figcaption { position: absolute; left: 14px; bottom: 14px; right: 14px; width: fit-content; margin: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: .75rem; padding: .3rem .7rem; border-radius: 6px; }
.story-body { padding: clamp(28px, 5vw, 56px); }
.story-body .kicker { color: #bfeedd; }
.story-body h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 600; margin-top: .8rem; }
.story-body > p:not(.kicker) { opacity: .92; margin-top: 1rem; }
.stats { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-block: 28px !important; }
.stats .num { display: block; font-size: 1.6rem; color: #bfeedd; font-weight: 600; font-variant-numeric: tabular-nums; }
.stats p:not(.num) { font-size: .8rem; opacity: .85; line-height: 1.35; }

/* ---------- Relief / media + text ---------- */
.relief-grid { display: grid !important; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.relief-grid > .wp-block-image img { width: 100%; border-radius: var(--r); box-shadow: 0 30px 60px -40px rgba(10, 40, 25, .55); }
.relief-stats { display: grid !important; grid-template-columns: 1fr 1fr; gap: 20px; margin-block: 1.8rem !important; }
.relief-stats > div { border-left: 3px solid var(--gold); padding-left: 14px; }
.relief-stats .num { display: block; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; color: var(--green); letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.relief-stats p:not(.num) { font-size: .88rem; color: var(--muted); }

/* ---------- Events ---------- */
.events-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.event { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 22px; display: flex; flex-direction: column; gap: .6rem; }
.date { display: flex; align-items: baseline; gap: .5rem; }
.date b { font-size: 2rem; font-weight: 700; color: var(--green); line-height: 1; }
.date span { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.event h3 { font-size: 1.02rem; font-weight: 600; }
.event h3 a { text-decoration: none; }
.event h3 a:hover { color: var(--green); }
.event p { font-size: .88rem; color: var(--muted); }
.event .where { font-weight: 500; color: var(--ink); }
.tag { align-self: flex-start; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 999px; background: var(--tint); color: var(--green); }
.event.next { background: var(--mint); border-color: transparent; }
.event.next .tag { background: var(--green); color: var(--on-green); }
.event.next p { color: var(--ink); }
.event .arrow { margin-top: auto; font-size: .88rem; }
.events-all { margin-top: 20px; text-align: right; }

/* ---------- Get involved ---------- */
.ways { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px !important; }
.way { border-radius: var(--r); overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: flex !important; flex-direction: column; }
.way > .wp-block-image { margin: 0; }
.way > .wp-block-image img { height: 210px !important; width: 100%; object-fit: cover; }
.way-body { padding: 24px; display: flex !important; flex-direction: column; gap: .7rem; flex: 1; }
.way h3 { font-size: 1.25rem; font-weight: 600; }
.way p { color: var(--muted); font-size: .93rem; }
.chips { display: flex !important; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: .2rem 0 0; }
.chips li { font-size: .75rem; padding: .25rem .65rem; border-radius: 999px; background: var(--tint); color: var(--green); font-weight: 500; }
.way .wp-block-buttons { margin-top: auto; }

/* ---------- Donate ---------- */
.hope-donate { background: linear-gradient(180deg, var(--bg), var(--tint)); }
.donate-grid { display: grid !important; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.uses { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 14px; }
.uses li { color: var(--muted); font-size: .95rem; }
.uses li::before { position: absolute; left: 0; top: 2px; width: 22px; height: 22px; }
.uses strong { color: var(--ink); }
.give { background: var(--surface); border-radius: 20px; padding: 32px; box-shadow: 0 30px 60px -36px rgba(10, 40, 25, .45); border: 1px solid var(--line); }
.give h3 { font-size: 1.3rem; font-weight: 600; }
.freq { display: grid; grid-template-columns: 1fr 1fr; background: var(--tint); border-radius: 999px; padding: 4px; margin-top: 1.2rem; }
.freq button, .amts button { font: inherit; cursor: pointer; border: 0; }
.freq button { background: transparent; border-radius: 999px; padding: .6rem; font-weight: 600; font-size: .9rem; color: var(--muted); }
.freq button[aria-pressed="true"] { background: var(--surface); color: var(--green); box-shadow: 0 2px 8px -2px rgba(0, 0, 0, .15); }
.amts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 1.1rem; }
.amts button { background: var(--surface); border: 2px solid var(--line); border-radius: 12px; padding: .85rem 0; font-weight: 600; font-size: 1.05rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.amts button[aria-pressed="true"] { border-color: var(--green); background: var(--tint); color: var(--green); }
.custom { display: flex; align-items: center; border: 2px solid var(--line); border-radius: 12px; margin-top: 10px; padding-inline: 14px; }
.custom:focus-within { border-color: var(--green); }
.custom span { font-weight: 600; color: var(--muted); }
.custom input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; padding: .8rem .5rem; color: var(--ink); outline: none; }
.give .btn { width: 100%; margin-top: 1.2rem; padding: 1rem; }
.give-note { font-size: .78rem; color: var(--muted); text-align: center; margin-top: .8rem; display: flex; justify-content: center; gap: .4rem; align-items: center; }
.give-note svg { width: 14px; height: 14px; }
.give-msg { margin-top: .8rem; font-size: .85rem; background: var(--tint); color: var(--green); border-radius: 10px; padding: .7rem .9rem; }

/* ---------- Partners ---------- */
.hope-partners { padding-block: 64px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hope-partners .label { text-align: center; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.plist { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 24px; }
.plist a, .plist span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 76px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-weight: 600; font-size: .95rem; line-height: 1.3; color: var(--muted); text-decoration: none; transition: border-color .15s, color .15s; }
.plist a:hover { border-color: var(--green); color: var(--green); }
.plist img { max-height: 48px; width: auto; }

/* ---------- Leadership ---------- */
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.person { padding: 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: .8rem; }
.p-head { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; }
.person .avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--mint); }
.person i { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--green-deep); font-style: normal; font-weight: 600; font-size: 1rem; }
.person h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
.person .p-head span { font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: var(--green); line-height: 1.35; display: block; margin-top: .15rem; }
.person .bio p { font-size: .9rem; color: var(--muted); line-height: 1.6; }
.person .bio p + p { margin-top: .6rem; }
.person .off { margin-top: auto; padding-top: .8rem; border-top: 1px dashed var(--line); font-size: .82rem; color: var(--muted); }
.person .off b { color: var(--ink); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid !important; grid-template-columns: .8fr 1.2fr; gap: 64px; }
.faq-list details { border-bottom: 1px solid var(--line); padding-block: 4px; }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; font-weight: 600; font-size: 1.02rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--green); transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .answer { color: var(--muted); padding-bottom: 1.2rem; max-width: 62ch; }
.faq-list .answer p + p { margin-top: .6rem; }

/* ---------- Stories ---------- */
.stories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.story-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.story-card .thumb img { width: 100%; height: 200px; object-fit: cover; }
.story-card > div { padding: 22px; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.story-card h3 { font-size: 1.1rem; font-weight: 600; }
.story-card h3 a { text-decoration: none; }
.story-card h3 a:hover { color: var(--green); }
.story-card p { color: var(--muted); font-size: .92rem; }
.story-card time { margin-top: auto; font-size: .8rem; color: var(--muted); }

/* ---------- Newsletter band + footer ---------- */
.cta-box { background: var(--green); border-radius: 24px; padding: clamp(28px, 5vw, 56px); display: grid !important; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; color: var(--on-green); position: relative; overflow: hidden; }
.cta-box::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255, 255, 255, .08); pointer-events: none; }
.cta-box h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; }
.cta-box > div > p { opacity: .92; margin-top: .6rem; }
.signup { display: flex; gap: 8px; background: rgba(255, 255, 255, .14); border-radius: 999px; padding: 6px; position: relative; z-index: 1; }
.signup input { flex: 1; min-width: 0; border: 0; background: transparent; color: inherit; font: inherit; padding: .6rem 1rem; outline: none; }
.signup input::placeholder { color: inherit; opacity: .8; }
.signup .btn { padding: .65rem 1.2rem; }
.signup-form .form-msg { margin-top: .6rem; position: relative; z-index: 1; color: #fff; background: rgba(255, 255, 255, .14); }
.foot { padding-block: 72px 40px; }
.foot-grid { display: grid !important; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.foot h4, .foot h2.wp-block-heading { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; font-weight: 600; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; font-size: .92rem; }
.foot ul a { text-decoration: none; }
.foot ul a:hover { color: var(--green); }
.foot .about > p { font-size: .9rem; color: var(--muted); margin-top: 1rem; max-width: 36ch; }
.foot .wp-block-social-links { margin-top: 1.2rem; gap: 10px; }
.foot .wp-block-social-links .wp-social-link { background: transparent !important; color: var(--green) !important; border: 1px solid var(--line); width: 40px; height: 40px; display: grid; place-items: center; }
.foot .wp-block-social-links .wp-social-link:hover { background: var(--green) !important; color: #fff !important; border-color: var(--green); transform: none; }
.legal { margin-top: 48px !important; padding-top: 24px; border-top: 1px solid var(--line); display: flex !important; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }

/* ---------- Inner pages ---------- */
.page-banner { background: var(--tint); padding-block: 64px 56px; }
.page-banner h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; letter-spacing: -.025em; margin-top: .6rem; }
.page-banner .lead:empty { display: none; }
.prose { max-width: 760px; margin-inline: auto; padding: 56px 20px 80px; font-size: 1.04rem; }
.prose > * + * { margin-top: 1.1rem !important; }
.prose h2 { font-size: 1.6rem; font-weight: 600; margin-top: 2.4rem !important; }
.prose h3 { font-size: 1.25rem; font-weight: 600; margin-top: 2rem !important; }
.prose a { color: var(--green); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose .wp-block-image img { border-radius: var(--r); }
.prose .wp-block-image figcaption { font-size: .82rem; color: var(--muted); margin-top: .5rem; }
.prose > .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.post-meta { display: flex !important; flex-wrap: wrap; gap: .4rem 1rem; font-size: .85rem; color: var(--muted); margin-top: 1rem !important; }
.post-meta a { color: var(--green); text-decoration: none; font-weight: 600; }
.post-cover img { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--r); }
.news-list .wp-block-post-template { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; }
.news-list .wp-block-post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.news-list .wp-block-post-featured-image img { height: 200px; width: 100%; object-fit: cover; }
.news-list .card-body { padding: 22px; display: flex !important; flex-direction: column; gap: .6rem; flex: 1; }
.news-list .wp-block-post-title { font-size: 1.1rem; font-weight: 600; }
.news-list .wp-block-post-title a { text-decoration: none; }
.news-list .wp-block-post-excerpt { color: var(--muted); font-size: .92rem; }
.news-list .wp-block-post-excerpt__more-text { display: none; }
.news-list .wp-block-post-date { font-size: .8rem; color: var(--muted); margin-top: auto !important; }
.news-list .wp-block-post-terms a { text-decoration: none; }
.news-list .wp-block-post-terms { align-self: flex-start; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 999px; background: var(--tint); color: var(--green); }
.cat-filter { display: flex !important; flex-wrap: wrap; gap: .5rem; margin-bottom: 32px !important; }
.cat-filter .wp-block-categories-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.cat-filter .wp-block-categories-list a { display: inline-block; padding: .35rem .9rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .85rem; font-weight: 500; background: var(--surface); }
.cat-filter .wp-block-categories-list a:hover, .cat-filter .current-cat a { border-color: var(--green); color: var(--green); }
.wp-block-query-pagination { margin-top: 40px !important; gap: 1rem; font-weight: 600; }
.wp-block-query-pagination a { color: var(--green); text-decoration: none; }

/* ---------- Forms ---------- */
.hope-form { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 4vw, 36px); display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: .35rem; margin: 0; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .9rem; }
.field legend { margin-bottom: .5rem; }
.field input, .field select, .field textarea { font: inherit; padding: .75rem .9rem; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); outline: none; }
.req { color: var(--red); }
.checks { display: flex; flex-wrap: wrap; gap: .5rem; }
.checks label { display: inline-flex; gap: .4rem; align-items: center; padding: .45rem .8rem; border: 2px solid var(--line); border-radius: 999px; font-weight: 500; font-size: .88rem; cursor: pointer; }
.checks label:has(input:checked) { border-color: var(--green); background: var(--tint); color: var(--green); }
.checks input { accent-color: var(--green); }
.hope-form .btn { justify-self: start; }
.form-note { font-size: .8rem; color: var(--muted); }
.form-msg { border-radius: 10px; padding: .8rem 1rem; font-size: .92rem; font-weight: 500; }
.form-msg.is-ok { background: var(--tint); color: var(--green); }
.form-msg.is-err { background: #fdecea; color: #a1231d; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-split { display: grid !important; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.hope-empty { padding: 1rem; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); }

/* ---------- The Events Calendar ---------- */
.tribe-common, .tribe-events { font-family: var(--wp--preset--font-family--poppins) !important; }
.tribe-events-pg-template, .tribe-block__events-link { max-width: var(--wrap); }
.single-tribe_events .tribe-events-single { max-width: 860px; margin-inline: auto; padding: 48px 20px 80px; }
.tribe-events .tribe-events-c-top-bar__datepicker-button, .tribe-common .tribe-common-h1, .tribe-common .tribe-common-h2, .tribe-common .tribe-common-h3 { font-family: inherit !important; }

/* ---------- Responsive ---------- */
[class*="-grid"] > *, .cta-box > * { min-width: 0; }
@media (max-width: 1060px) {
	.site-head .wp-block-navigation .wp-block-navigation__container { gap: 1.1rem; }
	.impact-grid { grid-template-columns: repeat(3, 1fr); }
	.events-grid, .board { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
	.site-head .nav { gap: .8rem; }
	.site-head .wp-block-navigation { order: -1; margin-right: 0; }
	.site-head .nav-cta { margin-left: auto; }
	.site-head .nav-cta .is-style-hope-ghost { display: none; }
	.hero-grid, .about-grid, .story-grid, .donate-grid, .faq-grid, .cta-box, .relief-grid, .form-split { grid-template-columns: 1fr; }
	.prog-grid, .ways, .stories-grid, .news-list .wp-block-post-template { grid-template-columns: repeat(2, 1fr); }
	.mosaic { height: min(440px, 80vw); }
	.badge { left: 12px; }
	.story-grid > .wp-block-image { min-height: 280px; }
	.hope-sec { padding-block: 72px; }
}
@media (max-width: 600px) {
	.prog-grid, .ways, .events-grid, .board, .stories-grid, .form-grid, .news-list .wp-block-post-template { grid-template-columns: 1fr; }
	.impact-grid { grid-template-columns: repeat(2, 1fr); }
	.foot-grid { grid-template-columns: 1fr 1fr; }
	.foot .about { grid-column: 1 / -1; }
	.stats { gap: 10px; }
	.brand .wp-block-site-tagline { display: none; }
	.badge { max-width: 170px; padding: .6rem .7rem; bottom: 14px; left: 10px; }
	.badge .num { font-size: 1.2rem; }
	.badge p:not(.num) { font-size: .7rem; }
}
@media (max-width: 440px) {
	.brand .wp-block-site-title { display: none; }
	.site-head .nav-cta .wp-block-button__link { padding: .55rem 1rem; }
}

/* ---------- Editor ---------- */
.hope-ssr__hint { font-size: 11px; font-family: system-ui, sans-serif; color: #757575; margin-bottom: 8px !important; display: none; }
.editor-styles-wrapper .hope-ssr__hint { display: block; }
.editor-styles-wrapper .hope-ssr a { pointer-events: none; }

/* Free-text blocks on inner pages read at article width; full sections span the page. */
.page-content > :not(section):not(.alignfull):not(.wp-block-group) { max-width: 760px; margin-inline: auto; padding-inline: 20px; }
.page-content > :not(section):first-child { margin-top: 56px; }
.page-content > :not(section) + :not(section) { margin-top: 1.1rem; }
.page-content > :not(section):last-child { margin-bottom: 80px; }
.page-content > h2:not(section) { font-size: 1.6rem; font-weight: 600; margin-top: 2.4rem; }
.page-content > p a, .page-content li a { color: var(--green); }
.page-content > ul, .page-content > ol { padding-left: 40px; }

/* Slim donate band (inner pages) */
.hope-band { padding-block: 0 72px; }
.band { display: flex !important; justify-content: space-between; align-items: center; gap: 24px 40px; flex-wrap: wrap; background: var(--tint); border-radius: 24px; padding: clamp(24px, 4vw, 40px) clamp(24px, 4vw, 48px); }
.band h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 600; }
.band p { color: var(--muted); margin-top: .4rem; max-width: 60ch; }
.hope-newsletter { padding-bottom: 0; }

/* A no-top section after a tinted section needs its top space back. */
.hope-programs + .hope-sec.no-top, .hope-donate + .hope-sec.no-top, .hope-partners + .hope-sec.no-top, .hope-impact + .hope-sec.no-top { padding-top: 96px; }
@media (max-width: 900px) { .hope-programs + .hope-sec.no-top, .hope-donate + .hope-sec.no-top, .hope-partners + .hope-sec.no-top, .hope-impact + .hope-sec.no-top { padding-top: 72px; } }
.foot ul.wp-block-social-links { display: flex; }
.page-content > .hope-sec.no-top:first-child { padding-top: 72px; }
.band { width: calc(100% - 40px); max-width: 1160px; }

/* The Events Calendar: brand colors and font */
body .tribe-common, body .tribe-events, body .tribe-events-pg-template, body .tribe-block {
	--tec-color-accent-primary: #236b4b;
	--tec-color-accent-primary-hover: #174d36;
	--tec-color-accent-primary-active: #174d36;
	--tec-color-button-primary: #236b4b;
	--tec-color-button-primary-hover: #174d36;
	--tec-color-link-accent: #236b4b;
	--tec-color-background-events-bar-submit-button: #236b4b;
	--tec-color-background-events-bar-submit-button-hover: #174d36;
	--tec-color-background-events-bar-submit-button-active: #174d36;
	--tec-color-background-events: transparent;
	--tec-font-family-sans-serif: "Poppins", ui-sans-serif, system-ui, sans-serif;
	--tec-font-family-base: "Poppins", ui-sans-serif, system-ui, sans-serif;
}
body .tribe-events .tribe-events-c-search__button { border-radius: 999px; font-weight: 600; }
body .tribe-events-view, body .tribe-events-pg-template { padding-top: 56px; padding-bottom: 72px; }

h1, h2, h3 { overflow-wrap: normal; word-break: normal; hyphens: manual; }
.editor-styles-wrapper .wp-block-button__link { display: inline-flex; }
/* Editor: sections span the canvas like on the site. */
.editor-styles-wrapper .is-root-container > * { max-width: none; }
.editor-styles-wrapper .wp-block-post-title { max-width: var(--wrap); margin-inline: auto; padding: 24px 20px 0; font-size: 1rem; color: var(--muted); }
.prose .wp-block-post-content > * + * { margin-top: 1.1rem; }
.prose .wp-block-post-content > h2 { font-size: 1.6rem; font-weight: 600; margin-top: 2.4rem; }
.prose .wp-block-post-content > h3 { font-size: 1.25rem; font-weight: 600; margin-top: 2rem; }
.prose .wp-block-post-content ul, .prose .wp-block-post-content ol { padding-left: 1.3rem; }
.prose .wp-block-post-content a { color: var(--green); }
