/*
Theme Name: YFF
Theme URI: https://aayff.org
Author: Youth Forum Foundation
Description: Youth Forum Foundation is a 501(c)(3) nonprofit empowering young people across the United States and Africa through education, health, clean water, and community development — connecting youth across continents for lasting change. Official website theme for aayff.org.
Version: 0.10.10
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yff
*/

/* ===== Reset / Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif; color: #0c0a09; background: #fff; -webkit-font-smoothing: antialiased; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }

/* ===== Link affordance — sitewide default =====
   Wrapped in :where() so the rules have specificity 0. That way any component
   class (.yff-btn, .yff-pillar, .yff-footer a, etc.) wins automatically across
   default, :visited, :hover, and :focus-visible without needing explicit overrides. */
:where(a) { color: #1268f3; text-decoration: none; transition: color .15s, text-decoration-color .15s; }
:where(a:visited) { color: #1268f3; }
:where(a:hover, a:focus-visible) { color: #1d4ed8; text-decoration: underline; text-underline-offset: 3px; }
:where(a:active) { color: #0c4cb8; }

/* Kill the block-theme block-gap that puts a 24px margin between body-level blocks
   (header / announce / main / footer). We control spacing inside sections directly. */
body > main, body > footer.wp-block-template-part, body > .wp-site-blocks > * { margin-block-start: 0 !important; margin-block-end: 0 !important; }
body > main + footer { margin-block-start: 0 !important; }

/* Skip link for screen-readers + keyboard users */
.yff-skip { position: absolute; left: -9999px; top: 0; background: #1268f3; color: #fff; padding: 0.75rem 1.25rem; z-index: 100; border-radius: 0 0 0.5rem 0; }
.yff-skip:focus { left: 0; }

/* ===== Site Header ===== */
.yff-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid #e7e5e4; }
.yff-header__inner { max-width: 1280px; margin: 0 auto; padding: 0 1.25rem; display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }
.yff-logo { font-size: 1.125rem; font-weight: 700; color: #1268f3; text-decoration: none; white-space: nowrap; }
@media (min-width: 480px) { .yff-logo { font-size: 1.25rem; } }

/* Desktop nav */
.yff-nav { display: flex; gap: 1.75rem; align-items: center; }
.yff-nav a { color: #474f5c; text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color .15s; padding: 0.5rem 0; min-height: 44px; display: inline-flex; align-items: center; position: relative; }
.yff-nav a:not(.yff-btn-donate):not(.yff-btn-account)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0.25rem; height: 2px; background: #1268f3; transform: scaleX(0); transform-origin: center; transition: transform .2s; }
.yff-nav a:not(.yff-btn-donate):not(.yff-btn-account):hover::after,
.yff-nav a:not(.yff-btn-donate):not(.yff-btn-account):focus-visible::after { transform: scaleX(1); }
.yff-nav a:hover, .yff-nav a:focus-visible { color: #1268f3; text-decoration: none; }
.yff-nav a.yff-btn-donate { background: #f59b0a; color: #fff; padding: 0.6rem 1.25rem; border-radius: 6px; font-weight: 600; transition: background .15s, transform .1s; }
.yff-nav a.yff-btn-donate:hover, .yff-nav a.yff-btn-donate:focus-visible { background: #d97f04; color: #fff; text-decoration: none; }
.yff-nav a.yff-btn-donate:active { transform: translateY(1px); }
.yff-nav a.yff-btn-account { border: 1px solid #e7e5e4; padding: 0.5rem 1rem; border-radius: 6px; transition: border-color .15s, background .15s; }
.yff-nav a.yff-btn-account:hover, .yff-nav a.yff-btn-account:focus-visible { border-color: #1268f3; background: #eff6ff; text-decoration: none; }

/* Hamburger button (mobile only) */
.yff-nav-toggle { display: none; background: transparent; border: none; padding: 0.5rem; cursor: pointer; width: 44px; height: 44px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.yff-nav-toggle__bar { display: block; width: 24px; height: 2px; background: #0c0a09; border-radius: 2px; transition: transform .25s, opacity .25s; }
.yff-nav-toggle[aria-expanded="true"] .yff-nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.yff-nav-toggle[aria-expanded="true"] .yff-nav-toggle__bar:nth-child(2) { opacity: 0; }
.yff-nav-toggle[aria-expanded="true"] .yff-nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu drawer */
.yff-mobile-menu { position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: #fff; z-index: 49; overflow-y: auto; animation: yff-drawer 0.2s ease-out; }
.yff-mobile-menu[hidden] { display: none; }
.yff-mobile-menu__inner { display: flex; flex-direction: column; padding: 1.5rem 1.25rem 3rem; gap: 0.25rem; }
.yff-mobile-menu__inner a { display: flex; align-items: center; padding: 1rem 0.5rem; color: #0c0a09; text-decoration: none; font-size: 1.125rem; font-weight: 500; border-bottom: 1px solid #f3f4f6; min-height: 56px; }
.yff-mobile-menu__inner a:hover, .yff-mobile-menu__inner a:focus-visible { color: #1268f3; background: #f9fafb; }
.yff-mobile-menu__cta { margin-top: 1rem; background: #f59b0a; color: #fff !important; border-radius: 0.5rem; justify-content: center; font-weight: 600 !important; border-bottom: none !important; }
.yff-mobile-menu__cta:hover { background: #d97f04 !important; color: #fff !important; }
@keyframes yff-drawer { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) {
  .yff-nav { display: none; }
  .yff-nav-toggle { display: inline-flex; }
}

/* ===== Announcement Bar (scrolling news ticker) ===== */
.yff-announce { position: relative; background: linear-gradient(to right, #2563eb, #1d4ed8); color: #fff; height: 40px; overflow: hidden; display: flex; align-items: center; }
.yff-ticker { display: flex; align-items: center; flex: 1; min-width: 0; overflow: hidden; color: #fff; text-decoration: none; height: 100%; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%); }
.yff-ticker__track { display: flex; flex-shrink: 0; gap: 3rem; padding-left: 1rem; animation: yff-ticker-scroll 35s linear infinite; will-change: transform; }
.yff-ticker__item { display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap; font-size: 0.95rem; font-weight: 500; letter-spacing: 0.01em; }
.yff-ticker__item strong { font-weight: 700; }
.yff-ticker:hover .yff-ticker__track, .yff-ticker:focus-visible .yff-ticker__track { animation-play-state: paused; }
@keyframes yff-ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.yff-announce__dismiss { position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%); background: transparent; border: none; color: rgba(255,255,255,0.9); font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0; font-weight: 300; min-width: 36px; min-height: 36px; z-index: 2; display: flex; align-items: center; justify-content: center; }
.yff-announce__dismiss:hover, .yff-announce__dismiss:focus-visible { color: #fff; background: rgba(255,255,255,0.12); border-radius: 50%; }

@media (max-width: 640px) {
  .yff-announce { height: 36px; }
  .yff-ticker__item { font-size: 0.88rem; }
  .yff-ticker__track { gap: 2.5rem; animation-duration: 28s; }
}

@media (prefers-reduced-motion: reduce) {
  .yff-ticker__track { animation: none; padding-left: 1.5rem; }
  .yff-ticker { -webkit-mask-image: none; mask-image: none; }
}

/* ===== Hero ===== */
.yff-hero { position: relative; min-height: min(100vh, 720px); display: flex; align-items: center; justify-content: center; color: #fff; overflow: hidden; padding: 4rem 0; }
.yff-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; }
.yff-hero__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.yff-hero__content { position: relative; z-index: 10; max-width: 56rem; padding: 0 1.25rem; text-align: center; }
.yff-hero h1 { font-size: clamp(1.875rem, 6vw, 3.75rem); font-weight: 700; line-height: 1.1; margin: 0 0 1.25rem; color: #fff; }
.yff-hero p.yff-hero__sub { font-size: clamp(1rem, 2vw, 1.25rem); margin: 0 0 1.75rem; opacity: 0.95; line-height: 1.55; }
.yff-hero__ctas { display: flex; gap: 0.875rem; justify-content: center; flex-wrap: wrap; }
.yff-hero__scroll { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); width: 28px; height: 44px; border: 2px solid rgba(255,255,255,0.6); border-radius: 14px; display: none; align-items: flex-start; justify-content: center; padding-top: 6px; }
.yff-hero__scroll span { width: 4px; height: 8px; background: rgba(255,255,255,0.85); border-radius: 2px; animation: yff-scroll-dot 1.6s ease-in-out infinite; }
@keyframes yff-scroll-dot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
@media (min-width: 768px) { .yff-hero__scroll { display: flex; } }

/* ===== Buttons ===== */
.yff-btn { display: inline-flex; align-items: center; justify-content: center; background: #f59b0a; color: #fff; padding: 0.875rem 1.75rem; border-radius: 6px; font-weight: 600; text-decoration: none; transition: background .15s, transform .1s; min-height: 44px; border: none; cursor: pointer; font-size: 1rem; }
.yff-btn:hover, .yff-btn:focus-visible { background: #d97f04; color: #fff; }
.yff-btn:active { transform: translateY(1px); }
.yff-btn--ghost { background: transparent; border: 2px solid #fff; color: #fff; }
.yff-btn--ghost:hover { background: #fff; color: #0c0a09; }

/* ===== Sections ===== */
.yff-section { padding: 3rem 1.25rem; }
@media (min-width: 768px) { .yff-section { padding: 5rem 1.5rem; } }
.yff-section__inner { max-width: 1280px; margin: 0 auto; }
.yff-section__head { text-align: center; margin-bottom: 2rem; }
@media (min-width: 768px) { .yff-section__head { margin-bottom: 3rem; } }
.yff-eyebrow { display: inline-block; color: #1268f3; font-weight: 600; font-size: 0.875rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.75rem; }
.yff-section h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); font-weight: 700; line-height: 1.2; margin: 0 0 0.75rem; color: #0c0a09; }
.yff-section__lead { font-size: clamp(1rem, 1.5vw, 1.125rem); color: #474f5c; max-width: 48rem; margin: 0 auto; line-height: 1.6; }
.yff-section--alt { background: #f9fafb; }

/* ===== Cards ===== */
.yff-grid { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .yff-grid { gap: 1.5rem; } }
.yff-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.yff-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.yff-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.yff-card { background: #fff; border: 1px solid #e7e5e4; border-radius: 0.75rem; overflow: hidden; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.yff-card:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(0,0,0,0.12); }
.yff-card__img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
/* Story-card images (the three "Lives Transformed" cards) sit inset from
 * the card edges with all-four-corner rounding so they read as a distinct
 * visual element rather than a flat fill that's only rounded at the top
 * by the parent card's overflow. Scoped to `--story` modifier so event /
 * gallery cards keep their original edge-to-edge image treatment. */
.yff-card--story .yff-card__img { width: calc(100% - 1.5rem); margin: 0.75rem 0.75rem 0; border-radius: 14px; display: block; }
.yff-card__body { padding: 1.25rem; }
@media (min-width: 640px) { .yff-card__body { padding: 1.5rem; } }
.yff-card h3 { font-size: 1.2rem; font-weight: 700; margin: 0 0 0.5rem; color: #0c0a09; line-height: 1.3; }
.yff-card p { margin: 0; color: #474f5c; line-height: 1.6; }

/* ===== Program Pillars ===== */
.yff-pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0.75rem; margin: 2rem 0; }
@media (min-width: 640px) { .yff-pillars { gap: 1rem; margin: 3rem 0; } }
.yff-pillar { background: #fff; border: 1px solid #e7e5e4; border-radius: 0.75rem; padding: 1.5rem 1rem; text-align: center; text-decoration: none; color: inherit; transition: all .2s; min-height: 140px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
@media (min-width: 640px) { .yff-pillar { padding: 2rem 1.5rem; } }
.yff-pillar:hover, .yff-pillar:focus-visible { border-color: #1268f3; transform: translateY(-2px); box-shadow: 0 8px 20px -8px rgba(18,104,243,0.2); }
.yff-pillar__icon { width: 48px; height: 48px; margin: 0 auto 0.75rem; background: #eff6ff; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #1268f3; font-size: 1.5rem; }
@media (min-width: 640px) { .yff-pillar__icon { width: 56px; height: 56px; margin-bottom: 1rem; } }
.yff-pillar h3 { font-size: 1.05rem; font-weight: 600; margin: 0; color: #0c0a09; }
@media (min-width: 640px) { .yff-pillar h3 { font-size: 1.125rem; } }

/* ===== Founder Section ===== */
.yff-founder { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; margin-top: 3rem; }
@media (min-width: 900px) { .yff-founder { grid-template-columns: 1fr 1.5fr; gap: 3rem; margin-top: 4rem; } }
.yff-founder__img { border-radius: 1rem; overflow: hidden; aspect-ratio: 1; max-width: 480px; margin: 0 auto; width: 100%; }
.yff-founder__img img { width: 100%; height: 100%; object-fit: cover; }
.yff-founder h3 { font-size: clamp(1.5rem, 3vw, 1.75rem); font-weight: 700; margin: 0 0 0.25rem; }
.yff-founder__role { color: #1268f3; font-weight: 600; margin: 0 0 1.25rem; }
.yff-founder p { color: #474f5c; line-height: 1.7; margin: 0 0 1rem; }

/* ===== Get Involved Grid ===== */
.yff-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1rem; }
@media (min-width: 640px) { .yff-actions { gap: 1.25rem; } }
.yff-action { background: #fff; border: 1px solid #e7e5e4; border-radius: 0.75rem; padding: 1.5rem; transition: border-color .2s, transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.yff-action:hover, .yff-action:focus-visible { border-color: #f59b0a; transform: translateY(-3px); box-shadow: 0 16px 32px -16px rgba(245, 155, 10, 0.3); text-decoration: none; }
.yff-action:active { transform: translateY(-1px); }
.yff-action h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 0.5rem; color: #0c0a09; }
.yff-action p { color: #474f5c; margin: 0 0 0.75rem; font-size: 0.95rem; line-height: 1.6; flex: 1; }
.yff-action__cta { color: #f59b0a; font-weight: 600; font-size: 0.9rem; transition: gap .15s; }
.yff-action:hover .yff-action__cta { letter-spacing: 0.01em; }

/* ===== Contact ===== */
/* Primary CTA row above the office cards */
.yff-contact-cta { display: grid; grid-template-columns: 1fr; gap: 0.75rem; max-width: 720px; margin: 0 auto 2rem; }
@media (min-width: 640px) { .yff-contact-cta { grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 3rem; } }
.yff-contact-cta__primary,
.yff-contact-cta__secondary {
  display: flex; align-items: center; gap: 0.875rem;
  background: #fff; border: 1px solid #e7e5e4; border-radius: 0.75rem;
  padding: 1rem 1.25rem; text-decoration: none;
  transition: border-color .15s, transform .15s, box-shadow .15s;
  min-height: 64px;
}
.yff-contact-cta__primary:hover, .yff-contact-cta__primary:focus-visible { border-color: #1268f3; transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(18,104,243,0.2); text-decoration: none; }
.yff-contact-cta__secondary:hover, .yff-contact-cta__secondary:focus-visible { border-color: #25d366; transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(37,211,102,0.25); text-decoration: none; }
.yff-contact-cta__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #eff6ff; color: #1268f3; flex-shrink: 0; }
.yff-contact-cta__icon--whatsapp { background: rgba(37,211,102,0.12); color: #25d366; }
.yff-contact-cta__primary > span:last-child,
.yff-contact-cta__secondary > span:last-child { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.yff-contact-cta__primary strong, .yff-contact-cta__secondary strong { color: #0c0a09; font-size: 1.02rem; font-weight: 700; }
.yff-contact-cta__sub { color: #474f5c; font-size: 0.85rem; }

/* Office cards */
.yff-contact { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 0; }
@media (min-width: 720px) { .yff-contact { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.yff-contact__card { background: #fff; padding: 1.5rem; border-radius: 0.75rem; border: 1px solid #e7e5e4; display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 640px) { .yff-contact__card { padding: 1.75rem; } }
.yff-contact__header { display: flex; align-items: flex-start; gap: 0.875rem; padding-bottom: 1rem; border-bottom: 1px solid #f3f4f6; }
.yff-contact__flag { font-size: 2rem; line-height: 1; flex-shrink: 0; }
.yff-contact__card h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 0.15rem; color: #0c0a09; }
.yff-contact__role { margin: 0; color: #1268f3; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.yff-contact__row { display: flex; gap: 0.875rem; align-items: flex-start; }
.yff-contact__rowicon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 0.5rem; background: #f9fafb; color: #1268f3; flex-shrink: 0; }
.yff-contact__rowbody { flex: 1; min-width: 0; }
.yff-contact__rowbody p { margin: 0 0 0.4rem; color: #474f5c; line-height: 1.55; font-size: 0.95rem; }
.yff-contact__action { display: inline-block; color: #1268f3; text-decoration: none; font-weight: 600; font-size: 0.92rem; transition: color .15s; }
.yff-contact__action:hover, .yff-contact__action:focus-visible { color: #1d4ed8; text-decoration: underline; text-underline-offset: 3px; }

/* ===== Footer ===== */
.yff-footer { background: #474f5c; color: #fff; padding: 3rem 1.25rem 2rem; }
@media (min-width: 768px) { .yff-footer { padding: 4rem 1.5rem 2rem; } }
.yff-footer__inner { max-width: 1280px; margin: 0 auto; }
.yff-footer__cols { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2.5rem; }
@media (min-width: 540px) { .yff-footer__cols { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .yff-footer__cols { grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; margin-bottom: 3rem; } }
.yff-footer h4 { font-size: 1rem; font-weight: 700; margin: 0 0 1rem; color: #fff; }
.yff-footer ul { list-style: none; padding: 0; margin: 0; }
.yff-footer ul li { margin: 0 0 0.5rem; font-size: 0.95rem; color: rgba(255,255,255,0.8); line-height: 1.5; }
.yff-footer a { color: rgba(255,255,255,0.85); text-decoration: none; transition: color .15s; display: inline-block; min-height: 24px; padding: 0.15rem 0; border-bottom: 1px solid transparent; }
.yff-footer a:hover, .yff-footer a:focus-visible { color: #fff; border-bottom-color: rgba(255,255,255,0.6); }
.yff-footer a:active { color: #f59b0a; border-bottom-color: #f59b0a; }
.yff-footer h4 { user-select: none; }
.yff-footer h4::after { content: ''; display: block; width: 24px; height: 2px; background: #f59b0a; margin-top: 0.4rem; border-radius: 1px; }
.yff-footer__brand h3 { font-size: 1.5rem; font-weight: 700; margin: 0 0 0.5rem; color: #fff; }
.yff-footer__brand p { color: rgba(255,255,255,0.8); line-height: 1.6; margin: 0; }
.yff-footer__bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.yff-social { display: flex; gap: 0.75rem; }
.yff-social a { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,0.1); padding: 0; }
.yff-social a:hover { background: #f59b0a; }

/* ===== Impact Stats ===== */
.yff-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 1.5rem; padding: 2rem 0; }
@media (min-width: 768px) { .yff-stats { gap: 2rem; padding: 3rem 0; } }
.yff-stat { text-align: center; }
.yff-stat__num { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: #1268f3; line-height: 1; }
.yff-stat__label { margin-top: 0.5rem; color: #474f5c; font-weight: 500; }

/* ===== Page header (for inner pages) ===== */
.yff-pagehead { background: linear-gradient(to right, #1268f3, #1d4ed8); color: #fff; padding: 3rem 1.25rem 2.5rem; text-align: center; }
@media (min-width: 768px) { .yff-pagehead { padding: 5rem 1.5rem 4rem; } }
.yff-pagehead h1 { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 700; margin: 0 0 0.75rem; line-height: 1.15; }
.yff-pagehead p { font-size: clamp(1rem, 1.5vw, 1.125rem); max-width: 48rem; margin: 0 auto; opacity: 0.95; line-height: 1.55; }

/* ===== Misc ===== */
.yff-center { text-align: center; }
.yff-mt-3 { margin-top: 2rem; }
@media (min-width: 640px) { .yff-mt-3 { margin-top: 3rem; } }

/* ===== Events archive tabs ===== */
.yff-events-tabs { display: inline-flex; gap: 0.25rem; background: #f3f4f6; padding: 0.35rem; border-radius: 0.75rem; margin: 0 auto 2rem; }
.yff-events-tab { background: transparent; border: none; padding: 0.65rem 1.25rem; font-weight: 600; font-size: 0.95rem; color: #474f5c; border-radius: 0.5rem; cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 40px; transition: background .15s, color .15s, box-shadow .15s; font-family: inherit; }
.yff-events-tab:hover { color: #0c0a09; }
.yff-events-tab.is-active { background: #fff; color: #0c0a09; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.yff-events-tab__count { background: rgba(18,104,243,0.12); color: #1268f3; font-size: 0.78rem; font-weight: 700; padding: 0.1rem 0.5rem; border-radius: 9999px; min-width: 22px; text-align: center; }
.yff-events-tab.is-active .yff-events-tab__count { background: #1268f3; color: #fff; }
.yff-events-panel { display: none; }
.yff-events-panel.is-active { display: block; }

/* Wrap the tab strip in a centering helper */
.yff-section .yff-events-tabs { display: flex; justify-self: center; width: max-content; max-width: 100%; }
[role="tablist"][data-yff-events-tabs] { margin-left: auto; margin-right: auto; }

/* Events grid — mirrors gallery exactly:
   - phones (< 640px): 1 column
   - tablets/iPads (640–1199px): 2 columns
   - desktop (≥ 1200px): 4 columns */
.yff-events-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) {
  .yff-events-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (min-width: 1200px) {
  .yff-events-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
}

/* Past-event card slightly muted */
.yff-event-card .yff-event-card__meta { display: flex; flex-direction: column; gap: 0.4rem; margin: 0.75rem 0 1rem; color: #474f5c; font-size: 0.88rem; }
.yff-event-card__meta-row { display: inline-flex; align-items: center; gap: 0.5rem; }
.yff-event-card__meta-row svg { color: #1268f3; flex-shrink: 0; }
.yff-event-card__ctas { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: auto; padding-top: 0.5rem; }
.yff-events-panel[data-yff-panel="past"] .yff-event-card { opacity: 0.95; }
.yff-events-panel[data-yff-panel="past"] .yff-event-card__img { filter: saturate(0.85); }

/* ===== Event Has Passed notice ===== */
.yff-event-passed { background: #fff; border: 1px solid #e7e5e4; border-radius: 1rem; padding: 2rem 1.75rem; text-align: center; max-width: 720px; margin: 1.5rem auto 0; }
.yff-event-passed h2 { font-size: 1.5rem; font-weight: 700; margin: 0 0 0.5rem; color: #0c0a09; }
.yff-event-passed p { color: #474f5c; line-height: 1.6; margin: 0 0 1.25rem; }
.yff-event-passed .yff-btn { background: #1268f3; }
.yff-event-passed .yff-btn:hover, .yff-event-passed .yff-btn:focus-visible { background: #1d4ed8; }

/* ===== Event single ===== */
.yff-event { max-width: 1100px; margin: 0 auto; padding: 2rem 1.25rem; }
@media (min-width: 768px) { .yff-event { padding: 3rem 1.5rem; } }
/* Collapse the dead space between the event-details block (the one ending in the
   .yff-share row) and the RSVP / "event passed" block that follows it. Without this,
   the details block's bottom padding (3rem) + share margin (1.25rem) + the next
   block's top padding (3rem) stack to ~7rem, pushing the RSVP form below the fold.
   Scoped via :has() so only this specific pairing is affected. */
.yff-event:has(.yff-share) { padding-bottom: 0.75rem; }
.yff-event:has(.yff-share) .yff-share { margin-bottom: 0.5rem; }
.yff-event:has(.yff-share) + .yff-event { padding-top: 0.75rem; }
.yff-event__back { display: inline-flex; align-items: center; gap: 0.5rem; color: #1268f3; text-decoration: none; font-weight: 500; margin-bottom: 1.25rem; min-height: 44px; padding: 0.5rem 0; }
.yff-event__back:hover, .yff-event__back:focus-visible { text-decoration: underline; }
.yff-event__hero { aspect-ratio: 16/9; border-radius: 0.75rem; overflow: hidden; margin-bottom: 1.5rem; background: #e7e5e4; }
@media (min-width: 768px) { .yff-event__hero { aspect-ratio: 21/9; border-radius: 1rem; margin-bottom: 2rem; } }
.yff-event__hero img { width: 100%; height: 100%; object-fit: cover; }
.yff-event__meta { display: grid; grid-template-columns: 1fr; gap: 0.75rem; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .yff-event__meta { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1.25rem; margin-bottom: 2rem; } }
.yff-event__meta-item { background: #f9fafb; padding: 1rem 1.25rem; border-radius: 0.5rem; }
.yff-event__meta-item strong { display: block; color: #1268f3; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.25rem; }
.yff-event__meta-item a { color: #0c0a09; text-decoration: underline; }
.yff-event__title { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 700; margin: 0 0 1rem; line-height: 1.15; }
.yff-event__desc { color: #474f5c; line-height: 1.7; font-size: 1.05rem; }
.yff-event__cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1.5rem 0; }

/* ===== RSVP form ===== */
.yff-rsvp { background: #fff; border: 1px solid #e7e5e4; border-radius: 1rem; padding: 1.5rem; max-width: 720px; margin: 2rem auto; }
@media (min-width: 640px) { .yff-rsvp { padding: 2.5rem; margin: 3rem auto; } }
.yff-rsvp h2 { margin: 0 0 1.25rem; font-size: 1.5rem; font-weight: 700; }
@media (min-width: 640px) { .yff-rsvp h2 { font-size: 1.75rem; margin-bottom: 1.5rem; } }
.yff-rsvp__form { display: flex; flex-direction: column; gap: 1.1rem; }
.yff-rsvp__row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 540px) { .yff-rsvp__row { grid-template-columns: 1fr 1fr; } }
.yff-rsvp__form label { display: flex; flex-direction: column; gap: 0.4rem; font-weight: 500; font-size: 0.95rem; color: #0c0a09; }
.yff-rsvp__form input { padding: 0.85rem 1rem; border: 1px solid #e7e5e4; border-radius: 0.5rem; font-size: 16px; /* 16px to prevent iOS auto-zoom */ font-family: inherit; transition: border-color .15s; min-height: 48px; }
.yff-rsvp__form input:focus { outline: none; border-color: #1268f3; box-shadow: 0 0 0 3px rgba(18,104,243,0.1); }
.yff-rsvp__hint { font-weight: 400; color: #474f5c; font-size: 0.85rem; }
.yff-rsvp__submit { width: 100%; padding: 1rem 1.5rem; font-size: 1rem; border: none; cursor: pointer; margin-top: 0.25rem; min-height: 50px; }
.yff-rsvp__submit:disabled { opacity: 0.6; cursor: progress; }
.yff-rsvp__msg { padding: 0.75rem 1rem; border-radius: 0.5rem; font-size: 0.95rem; display: none; }
.yff-rsvp__msg.is-success { display: block; background: #ecfdf5; color: #065f46; border: 1px solid #6ee7b7; }
.yff-rsvp__msg.is-error { display: block; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ===== Share buttons + WhatsApp ===== */
.yff-share { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1.25rem 0; }
.yff-share a, .yff-share button { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1rem; border-radius: 0.5rem; background: #f9fafb; border: 1px solid #e7e5e4; color: #474f5c; text-decoration: none; font-size: 0.9rem; cursor: pointer; min-height: 40px; transition: background .15s, border-color .15s, color .15s; }
.yff-share svg { width: 16px; height: 16px; flex-shrink: 0; }
.yff-share a:hover, .yff-share a:focus-visible, .yff-share button:hover { background: #fff; border-color: #1268f3; color: #1268f3; text-decoration: none; }
/* Each brand lights up in its own colour on hover for instant recognition */
.yff-share a[data-brand="whatsapp"]:hover, .yff-share a[data-brand="whatsapp"]:focus-visible { color: #25d366; border-color: #25d366; }
.yff-share a[data-brand="facebook"]:hover, .yff-share a[data-brand="facebook"]:focus-visible { color: #1877f2; border-color: #1877f2; }
.yff-share a[data-brand="x"]:hover,        .yff-share a[data-brand="x"]:focus-visible        { color: #0c0a09; border-color: #0c0a09; }
.yff-share button[data-brand="qr"] { font-family: inherit; }
.yff-share button[data-brand="qr"]:hover, .yff-share button[data-brand="qr"]:focus-visible { color: #1268f3; border-color: #1268f3; }

/* ===== QR modal ===== */
.yff-qr-modal { position: fixed; inset: 0; background: rgba(12,10,9,0.78); display: flex; align-items: center; justify-content: center; padding: 1rem; z-index: 100; opacity: 0; pointer-events: none; transition: opacity .2s; }
.yff-qr-modal.is-open { opacity: 1; pointer-events: auto; }
.yff-qr-modal__panel { background: #fff; border-radius: 1rem; max-width: 420px; width: 100%; padding: 2rem 1.75rem 1.75rem; position: relative; text-align: center; transform: scale(0.96); transition: transform .25s; max-height: 92vh; overflow-y: auto; }
.yff-qr-modal.is-open .yff-qr-modal__panel { transform: scale(1); }
.yff-qr-modal__close { position: absolute; top: 0.75rem; right: 0.75rem; width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,0.06); border: none; font-size: 1.4rem; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #0c0a09; }
.yff-qr-modal__close:hover { background: rgba(0,0,0,0.12); }
.yff-qr-modal__title { font-size: 1.25rem; font-weight: 700; margin: 0 0 0.25rem; color: #0c0a09; }
.yff-qr-modal__sub { font-size: 0.92rem; color: #474f5c; margin: 0 0 1.25rem; }
.yff-qr-modal__code { display: flex; align-items: center; justify-content: center; min-height: 280px; padding: 1rem; background: #fff; border: 1px solid #e7e5e4; border-radius: 0.75rem; margin-bottom: 1rem; }
.yff-qr-modal__code img { width: 260px; height: 260px; display: block; }
.yff-qr-modal__url { display: flex; gap: 0.4rem; margin-bottom: 0.75rem; }
.yff-qr-modal__url input { flex: 1; min-width: 0; padding: 0.65rem 0.85rem; border: 1px solid #e7e5e4; border-radius: 0.5rem; font-size: 0.88rem; font-family: inherit; background: #f9fafb; color: #474f5c; }
.yff-qr-modal__url input:focus { outline: none; border-color: #1268f3; box-shadow: 0 0 0 3px rgba(18,104,243,0.1); }
.yff-qr-modal__copy { padding: 0.65rem 1rem; background: #1268f3; color: #fff; border: none; border-radius: 0.5rem; font-weight: 600; font-size: 0.88rem; cursor: pointer; font-family: inherit; min-width: 80px; transition: background .15s; }
.yff-qr-modal__copy:hover { background: #1d4ed8; }
.yff-qr-modal__copy.is-copied { background: #10b981; }
.yff-qr-modal__hint { color: #474f5c; font-size: 0.82rem; margin: 0; }
body.yff-qr-open { overflow: hidden; }
.yff-whatsapp { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.75rem 1.25rem; background: #25d366; color: #fff; border-radius: 0.5rem; font-weight: 600; text-decoration: none; min-height: 44px; transition: background .15s, transform .1s; }
.yff-whatsapp svg { width: 18px; height: 18px; flex-shrink: 0; }
.yff-whatsapp:hover, .yff-whatsapp:focus-visible { background: #1ebe57; color: #fff; text-decoration: none; }
.yff-whatsapp:active { transform: translateY(1px); }

/* ===== TEC overrides ===== */
.tribe-events { max-width: 1280px; margin: 0 auto; padding: 2rem 1.25rem; }
@media (min-width: 768px) { .tribe-events { padding: 3rem 1.5rem; } }
.tribe-events h1, .tribe-events-c-events-bar__nav { font-family: inherit; }

/* ===== Accessibility: reduce motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ===== Focus rings — visible on every background ===== */
:focus-visible { outline: 2px solid #1268f3; outline-offset: 2px; border-radius: 4px; }
.yff-btn:focus-visible, .yff-nav-toggle:focus-visible { outline-offset: 4px; }
/* On dark backgrounds, switch to a white-stacked ring */
.yff-footer a:focus-visible, .yff-fab:focus-visible, .yff-pagehead a:focus-visible,
.yff-announce__rsvp:focus-visible, .yff-announce__dismiss:focus-visible, .yff-ticker:focus-visible,
.yff-home-stats a:focus-visible, .yff-hero a:focus-visible {
  outline-color: #fff;
  box-shadow: 0 0 0 4px rgba(18, 104, 243, 0.55);
}

/* ===== Sticky mobile Donate FAB ===== */
.yff-fab { position: fixed; right: 1rem; bottom: 1rem; z-index: 45; background: #f59b0a; color: #fff; padding: 0.85rem 1.25rem; border-radius: 9999px; text-decoration: none; font-weight: 700; box-shadow: 0 10px 25px -5px rgba(245,155,10,0.5), 0 8px 16px -8px rgba(0,0,0,0.2); display: inline-flex; align-items: center; gap: 0.5rem; opacity: 0; transform: translateY(80px); transition: opacity .25s, transform .25s, background .15s; pointer-events: none; min-height: 48px; font-size: 0.95rem; }
.yff-fab.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.yff-fab:hover, .yff-fab:focus-visible { background: #d97f04; color: #fff; transform: translateY(-2px); }
.yff-fab__icon { font-size: 1.05rem; }
@media (min-width: 900px) { .yff-fab { right: 1.5rem; bottom: 1.5rem; padding: 1rem 1.5rem; } }
@media (prefers-reduced-motion: reduce) { .yff-fab { transition: none; } }

/* ===== Scroll-reveal foundation ===== */
.yff-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease-out, transform .7s ease-out; will-change: opacity, transform; }
.yff-reveal.is-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .yff-reveal { opacity: 1; transform: none; transition: none; } }

/* ===== Animated impact stats on home ===== */
.yff-home-stats { background: linear-gradient(135deg, #1268f3, #1d4ed8); color: #fff; padding: 3rem 1.25rem; }
@media (min-width: 768px) { .yff-home-stats { padding: 4rem 1.5rem; } }
.yff-home-stats__inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 2rem; text-align: center; }
.yff-home-stat__num { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 800; line-height: 1; letter-spacing: -0.02em; color: #fff; }
.yff-home-stat__label { margin-top: 0.5rem; color: rgba(255,255,255,0.92); font-weight: 500; font-size: 0.95rem; }
.yff-home-stat__plus { color: #f59b0a; }

/* ===== Story modal ===== */
.yff-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; padding: 1rem; z-index: 100; opacity: 0; pointer-events: none; transition: opacity .2s; }
.yff-modal.is-open { opacity: 1; pointer-events: auto; }
.yff-modal__panel { background: #fff; border-radius: 1rem; max-width: 720px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; transform: scale(0.96); transition: transform .25s; }
.yff-modal.is-open .yff-modal__panel { transform: scale(1); }
.yff-modal__close { position: absolute; top: 0.75rem; right: 0.75rem; width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,0.06); border: none; font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #0c0a09; z-index: 2; }
.yff-modal__close:hover { background: rgba(0,0,0,0.12); }
.yff-modal__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 1rem 1rem 0 0; }
.yff-modal__body { padding: 1.5rem 1.5rem 2rem; }
@media (min-width: 640px) { .yff-modal__body { padding: 2rem 2.5rem 2.5rem; } }
.yff-modal__body h3 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin: 0 0 0.5rem; }
.yff-modal__body .yff-modal__role { color: #1268f3; font-weight: 600; margin: 0 0 1.25rem; }
/* Subtle privacy footer at the end of impact stories — soft gray, smaller, italic.
 * Sits below the body copy with a hairline border so it reads as editorial
 * footnote rather than part of the narrative. */
.yff-modal__body .yff-modal__disclaimer { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #f1f5f9; font-size: 0.85rem; color: #94a3b8; line-height: 1.55; }
.yff-modal__body p { color: #474f5c; line-height: 1.7; margin: 0 0 1rem; }
body.yff-modal-open { overflow: hidden; }

/* ===== Story card "Read more" affordance ===== */
.yff-card--story { cursor: pointer; }
.yff-card--story .yff-card__read { display: inline-flex; align-items: center; gap: 0.4rem; color: #1268f3; font-weight: 600; margin-top: 0.75rem; font-size: 0.95rem; }

/* ===== Gallery lightbox ===== */
.yff-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.9); display: flex; align-items: center; justify-content: center; padding: 1.5rem; z-index: 100; opacity: 0; pointer-events: none; transition: opacity .2s; }
.yff-lightbox.is-open { opacity: 1; pointer-events: auto; }
.yff-lightbox__img { max-width: 100%; max-height: 85vh; object-fit: contain; border-radius: 0.5rem; }
.yff-lightbox__caption { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); color: #fff; font-size: 0.95rem; text-align: center; background: rgba(0,0,0,0.5); padding: 0.5rem 1rem; border-radius: 0.5rem; }
.yff-lightbox__close { position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.15); border: none; color: #fff; font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.yff-lightbox__close:hover { background: rgba(255,255,255,0.25); }
.yff-gallery-card { cursor: pointer; }

/* ===== Donate page (Stripe) ===== */
.yff-donate { max-width: 980px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
@media (min-width: 768px) { .yff-donate { padding: 3rem 1.5rem 5rem; } }
.yff-donate__intro { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.yff-donate__intro p { color: #474f5c; line-height: 1.7; }
.yff-donate__badge { display: inline-flex; align-items: center; gap: 0.5rem; background: #eff6ff; color: #1268f3; padding: 0.4rem 0.9rem; border-radius: 9999px; font-size: 0.85rem; font-weight: 600; margin-bottom: 1rem; }
.yff-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1rem; margin-bottom: 2.5rem; }
.yff-tier { background: #fff; border: 2px solid #e7e5e4; border-radius: 1rem; padding: 1.5rem; text-decoration: none; color: inherit; transition: all .2s; display: flex; flex-direction: column; min-height: 200px; position: relative; }
.yff-tier:hover, .yff-tier:focus-visible { border-color: #1268f3; transform: translateY(-3px); box-shadow: 0 16px 32px -16px rgba(18,104,243,0.25); }
.yff-tier--popular { border-color: #f59b0a; }
.yff-tier--popular::before { content: 'Most popular'; position: absolute; top: -0.7rem; left: 1rem; background: #f59b0a; color: #fff; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.25rem 0.6rem; border-radius: 9999px; }
.yff-tier__amount { font-size: 2rem; font-weight: 800; color: #0c0a09; line-height: 1; margin-bottom: 0.5rem; }
.yff-tier__amount span { font-size: 1.25rem; font-weight: 600; color: #474f5c; }
.yff-tier__impact { color: #474f5c; line-height: 1.5; flex: 1; font-size: 0.95rem; }
.yff-tier__cta { margin-top: 1rem; color: #1268f3; font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 0.4rem; }
.yff-donate__other { text-align: center; }
.yff-donate__other a { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.5rem; border: 2px solid #1268f3; color: #1268f3; border-radius: 0.5rem; text-decoration: none; font-weight: 600; min-height: 48px; }
.yff-donate__other a:hover { background: #1268f3; color: #fff; }
.yff-donate__alt { background: #f9fafb; border-radius: 1rem; padding: 1.5rem 1.75rem; margin-top: 3rem; }
.yff-donate__alt h3 { font-size: 1.2rem; margin: 0 0 0.75rem; }
.yff-donate__alt ul { padding-left: 1.25rem; margin: 0; color: #474f5c; line-height: 1.8; }
.yff-donate__trust { display: flex; justify-content: center; gap: 1.5rem; margin-top: 2rem; flex-wrap: wrap; color: #474f5c; font-size: 0.9rem; }
.yff-donate__trust span { display: inline-flex; align-items: center; gap: 0.4rem; }

/* ===== Donate page layout (form + impact sidebar) ===== */
.yff-donate-layout { max-width: 1180px; margin: 0 auto; padding: 3rem 1.25rem 1.5rem; }
@media (min-width: 768px) { .yff-donate-layout { padding: 4rem 1.5rem 2rem; } }
.yff-donate-layout__intro { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.yff-donate-layout__intro p { color: #474f5c; line-height: 1.7; margin: 0.875rem 0 0; }
.yff-donate-layout__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 980px) { .yff-donate-layout__grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 2.25rem; align-items: start; } }
.yff-donate-layout__form { min-width: 0; }
.yff-donate-layout__side { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
@media (min-width: 980px) { .yff-donate-layout__side { position: sticky; top: 84px; } }

/* Impact sidebar */
.yff-impact-side { background: #fff; border: 1px solid #e7e5e4; border-radius: 1rem; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 640px) { .yff-impact-side { padding: 1.75rem; } }
.yff-impact-side__head h2 { font-size: 1.25rem; font-weight: 700; color: #0c0a09; margin: 0 0 0.25rem; }
.yff-impact-side__head p { color: #474f5c; font-size: 0.92rem; margin: 0 0 0.5rem; line-height: 1.5; }

.yff-impact-card { display: grid; grid-template-columns: 44px 1fr; gap: 0.875rem; padding: 1rem; border: 1px solid #f1f5f9; border-radius: 0.75rem; align-items: start; transition: border-color .15s, transform .15s, box-shadow .15s; }
.yff-impact-card:hover { border-color: #cbd5e1; transform: translateY(-1px); box-shadow: 0 6px 16px -8px rgba(15,23,42,0.08); }
.yff-impact-card__icon { width: 44px; height: 44px; border-radius: 0.6rem; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.yff-impact-card__icon svg { width: 22px; height: 22px; }
.yff-impact-card__icon--education { background: #eff6ff; color: #1268f3; }
.yff-impact-card__icon--water    { background: #ecfeff; color: #0ea5e9; }
.yff-impact-card__icon--health   { background: #fef2f2; color: #ef4444; }
.yff-impact-card__icon--housing  { background: #f3e8ff; color: #7c3aed; }
.yff-impact-card h3 { font-size: 1rem; font-weight: 700; margin: 0 0 0.25rem; color: #0c0a09; }
.yff-impact-card p { font-size: 0.88rem; color: #474f5c; line-height: 1.55; margin: 0 0 0.5rem; }
.yff-impact-card__stat { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.78rem; font-weight: 600; color: #10b981; }

/* Questions-about-donating card */
.yff-impact-contact { background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%); border: 1px solid #dbeafe; border-radius: 1rem; padding: 1.5rem; }
@media (min-width: 640px) { .yff-impact-contact { padding: 1.75rem; } }
.yff-impact-contact h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 0.4rem; color: #1268f3; }
.yff-impact-contact > p { color: #475569; font-size: 0.92rem; line-height: 1.55; margin: 0 0 1rem; }
.yff-impact-contact__list { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.yff-impact-contact__list div { display: grid; grid-template-columns: 110px 1fr; gap: 0.5rem; align-items: baseline; }
.yff-impact-contact__list dt { font-size: 0.82rem; font-weight: 600; color: #475569; margin: 0; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.74rem; }
.yff-impact-contact__list dd { margin: 0; font-size: 0.92rem; color: #0c0a09; line-height: 1.5; }
.yff-impact-contact__list a { color: #1268f3; text-decoration: none; font-weight: 600; }
.yff-impact-contact__list a:hover, .yff-impact-contact__list a:focus-visible { text-decoration: underline; }

/* ===== Donation form ===== */
.yff-donation { width: 100%; max-width: none; margin: 0; padding: 0; }
.yff-donation__form { background: #fff; border: 1px solid #e7e5e4; border-radius: 1rem; padding: 1.75rem 1.5rem; display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 640px) { .yff-donation__form { padding: 2.25rem 2rem; } }
.yff-donation__step { border: none; padding: 0; margin: 0; }
.yff-donation__step legend { font-size: 1.05rem; font-weight: 700; color: #0c0a09; margin-bottom: 1rem; padding: 0; }

/* Amount tiers */
.yff-donation__tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.625rem; }
@media (min-width: 540px) { .yff-donation__tiers { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 720px) { .yff-donation__tiers { grid-template-columns: repeat(7, 1fr); } }
.yff-donation__tier { position: relative; display: flex; align-items: center; justify-content: center; padding: 0.85rem 0.6rem; border: 1px solid #e7e5e4; border-radius: 0.5rem; cursor: pointer; transition: all .15s; min-height: 56px; background: #fff; }
.yff-donation__tier input { position: absolute; opacity: 0; pointer-events: none; }
.yff-donation__tier-amount { font-weight: 700; font-size: 1rem; color: #0c0a09; }
.yff-donation__tier:hover { border-color: #1268f3; }
.yff-donation__tier:has(input:checked) { border-color: #1268f3; background: #eff6ff; box-shadow: 0 0 0 2px rgba(18,104,243,0.18); }
.yff-donation__tier--popular::before { content: 'Popular'; position: absolute; top: -0.55rem; right: 0.4rem; background: #f59b0a; color: #fff; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.05em; padding: 0.15rem 0.45rem; border-radius: 9999px; text-transform: uppercase; }
.yff-donation__tier--custom .yff-donation__tier-amount { font-size: 0.92rem; }
.yff-donation__custom { margin-top: 1rem; }
.yff-donation__custom label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.4rem; color: #0c0a09; }
.yff-donation__custom-input { display: flex; align-items: center; max-width: 240px; border: 1px solid #e7e5e4; border-radius: 0.5rem; background: #fff; }
.yff-donation__custom-input span { padding: 0 0.5rem 0 0.85rem; color: #474f5c; font-weight: 600; }
.yff-donation__custom-input input { flex: 1; min-width: 0; padding: 0.75rem 0.85rem 0.75rem 0.25rem; border: none; outline: none; font-size: 1rem; font-family: inherit; background: transparent; }

/* Causes */
.yff-donation__causes { display: grid; grid-template-columns: 1fr; gap: 0.625rem; }
@media (min-width: 540px) { .yff-donation__causes { grid-template-columns: 1fr 1fr; } }
.yff-donation__cause { position: relative; display: flex; flex-direction: column; padding: 0.875rem 1rem; border: 1px solid #e7e5e4; border-radius: 0.5rem; cursor: pointer; transition: all .15s; background: #fff; gap: 0.25rem; }
.yff-donation__cause input { position: absolute; opacity: 0; pointer-events: none; }
.yff-donation__cause-label { font-weight: 700; font-size: 0.95rem; color: #0c0a09; }
.yff-donation__cause-desc { font-size: 0.82rem; color: #474f5c; line-height: 1.45; }
.yff-donation__cause:hover { border-color: #1268f3; }
.yff-donation__cause:has(input:checked) { border-color: #1268f3; background: #eff6ff; box-shadow: 0 0 0 2px rgba(18,104,243,0.15); }
.yff-donation__other { margin-top: 0.875rem; }
.yff-donation__other label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.4rem; color: #0c0a09; }
.yff-donation__other textarea { width: 100%; padding: 0.75rem 0.85rem; border: 1px solid #e7e5e4; border-radius: 0.5rem; font-size: 0.95rem; font-family: inherit; resize: vertical; }
.yff-donation__other textarea:focus { outline: none; border-color: #1268f3; box-shadow: 0 0 0 3px rgba(18,104,243,0.1); }

/* Donor details. Previously matched via `:last-of-type`, which silently
 * broke when yff-stripe.php injects a "4. Payment details" fieldset after
 * Stripe is configured (step 3 is no longer last). Now matched by an
 * explicit modifier class so behavior stays correct regardless of how
 * many sibling fieldsets get added by mu-plugins. */
.yff-donation__form > .yff-donation__step--details label { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.9rem; font-weight: 600; color: #0c0a09; margin-bottom: 0.875rem; }
.yff-donation__form input[type="text"], .yff-donation__form input[type="email"], .yff-donation__form input[type="tel"], .yff-donation__form input[type="number"], .yff-donation__form textarea { padding: 0.75rem 0.85rem; border: 1px solid #e7e5e4; border-radius: 0.5rem; font-size: 16px; font-family: inherit; background: #fff; }
.yff-donation__form input:focus, .yff-donation__form textarea:focus { outline: none; border-color: #1268f3; box-shadow: 0 0 0 3px rgba(18,104,243,0.1); }
.yff-donation__row { display: grid; grid-template-columns: 1fr; gap: 0.875rem; margin-bottom: 0.875rem; }
@media (min-width: 540px) { .yff-donation__row { grid-template-columns: 1fr 1fr; } }
.yff-donation__check { flex-direction: row !important; align-items: center; gap: 0.5rem !important; font-weight: 500 !important; color: #474f5c !important; }
.yff-donation__check input { width: auto; }

.yff-donation__submit { width: 100%; padding: 1rem 1.5rem; font-size: 1rem; min-height: 52px; }
.yff-donation__submit:disabled { opacity: 0.55; cursor: progress; }
.yff-donation__msg { padding: 0; font-size: 0.92rem; display: none; border-radius: 0.5rem; }
.yff-donation__msg.is-error { display: block; padding: 0.875rem 1rem; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.yff-donation__tax { font-size: 0.82rem; color: #474f5c; line-height: 1.55; margin: 0; text-align: center; }

/* Success state replaces the form */
.yff-donation--success .yff-donation__form { display: none; }
.yff-donation__success { display: none; background: #fff; border: 1px solid #e7e5e4; border-radius: 1rem; padding: 2.5rem 2rem; text-align: center; }
.yff-donation--success .yff-donation__success { display: block; }
.yff-donation__success-icon { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, #10b981, #059669); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 28px; margin-bottom: 1rem; box-shadow: 0 12px 24px -8px rgba(16,185,129,0.4); }
.yff-donation__success h3 { font-size: 1.5rem; font-weight: 700; margin: 0 0 0.5rem; color: #0c0a09; }
.yff-donation__success p { color: #474f5c; line-height: 1.6; margin: 0 0 1rem; }
.yff-donation__success-summary { background: #f9fafb; border: 1px solid #e7e5e4; border-radius: 0.75rem; padding: 1.25rem 1.5rem; text-align: left; margin: 1.5rem 0; }
.yff-donation__success-summary strong { color: #1268f3; display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.15rem; }
.yff-donation__success-summary span { color: #0c0a09; font-size: 1rem; font-weight: 600; display: block; margin-bottom: 0.75rem; }
.yff-donation__success-summary span:last-child { margin-bottom: 0; }

/* ===== Project Gallery — folder grid + single project =====
   Card uses spans throughout (display:block via CSS) so wpautop can't insert
   <p>/<br> tags inside the outer <a>.
   auto-fill (not auto-fit) keeps cells at their natural size and leaves empties
   to the right when there are only a few projects — so 2 cards don't balloon to
   half the viewport each. With 6+ cards, the grid flows naturally into rows. */
/* Explicit column counts at each breakpoint so layout is deterministic:
   - phones (< 640px): 1 column, full-width — feels natural on iPhone/Android
   - tablets/iPads (640–1199px): 2 columns
   - desktop (≥ 1200px): 4 columns */
.yff-projects { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) {
  .yff-projects { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (min-width: 1200px) {
  .yff-projects { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
}
.yff-project { display: flex; flex-direction: column; background: #fff; border: 1px solid #e7e5e4; border-radius: 1rem; overflow: hidden; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s, border-color .2s; }
.yff-project:hover, .yff-project:focus-visible { transform: translateY(-4px); box-shadow: 0 24px 48px -20px rgba(18, 104, 243, 0.25); border-color: #1268f3; text-decoration: none; }
.yff-project__cover { display: block; aspect-ratio: 16/10; background: linear-gradient(135deg, #1268f3, #1d4ed8); background-size: cover; background-position: center; position: relative; }
.yff-project__cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.15) 100%); }
.yff-project__body { display: flex; flex-direction: column; padding: 1.25rem 1.5rem 1.5rem; gap: 0.75rem; flex: 1; }
.yff-project__topline { display: flex; align-items: center; justify-content: space-between; }
.yff-project__folder { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 0.5rem; background: #eff6ff; color: #1268f3; }
.yff-project__count { display: inline-block; background: #f59b0a; color: #fff; padding: 0.2rem 0.7rem; border-radius: 9999px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em; }
.yff-project__title { display: block; font-size: 1.2rem; font-weight: 700; margin: 0; color: #0c0a09; line-height: 1.25; }
.yff-project__desc { display: block; color: #474f5c; line-height: 1.55; font-size: 0.95rem; margin: 0; }
.yff-project__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 0; padding: 0; color: #474f5c; font-size: 0.88rem; }
.yff-project__meta-item { display: inline-flex; align-items: center; gap: 0.4rem; }
.yff-project__cta { margin-top: auto; padding-top: 0.75rem; border-top: 1px solid #f3f4f6; color: #1268f3; font-weight: 600; font-size: 0.92rem; line-height: 1.4; min-height: 28px; }
.yff-project__cta-icon { display: inline-block; font-size: 1em; margin-right: 0.45em; line-height: 1; transition: transform .15s; }
.yff-project:hover .yff-project__cta { color: #1d4ed8; }
.yff-project:hover .yff-project__cta-icon { transform: translateX(2px); }

/* Single project page */
.yff-project-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; color: #474f5c; font-size: 0.95rem; margin: 0 0 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid #f3f4f6; }
.yff-project-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.yff-project-body { color: #474f5c; line-height: 1.7; margin: 0 0 2rem; }
.yff-project-body p { margin: 0 0 1rem; }
.yff-project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
@media (min-width: 768px) { .yff-project-grid { gap: 1.5rem; margin-top: 2rem; } }

/* ===== 404 page ===== */
.yff-404 { padding: 4rem 1.5rem; text-align: center; max-width: 640px; margin: 0 auto; }
.yff-404__num { font-size: clamp(5rem, 14vw, 9rem); font-weight: 800; background: linear-gradient(135deg, #1268f3, #f59b0a); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; margin: 0; }
.yff-404 h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 1rem 0 0.5rem; }

/* ===== Site-wide search ===== */
.yff-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.yff-search-btn { background: none; border: none; padding: 0.5rem; min-width: 44px; min-height: 44px; cursor: pointer; color: #474f5c; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; transition: background .15s, color .15s; }
.yff-search-btn:hover, .yff-search-btn:focus-visible { color: #1268f3; background: #eff6ff; }
.yff-search-btn:focus-visible { outline: 2px solid #1268f3; outline-offset: 2px; }
.yff-search-panel { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-top: 1px solid #e7e5e4; border-bottom: 1px solid #e7e5e4; box-shadow: 0 6px 24px -10px rgba(15,23,42,0.16); z-index: 48; animation: yff-drawer 0.2s ease-out; }
.yff-search-panel[hidden] { display: none; }
.yff-search-form { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.25rem; }
.yff-search-form__icon { color: #94a3b8; flex-shrink: 0; }
.yff-search-form input[type="search"] { flex: 1; min-width: 0; padding: 0.75rem 0.5rem; font-size: 16px; border: none; outline: none; background: transparent; color: #0c0a09; font-family: inherit; }
.yff-search-form input[type="search"]::placeholder { color: #94a3b8; }
.yff-search-form__submit { padding: 0.6rem 1.25rem; font-size: 14px; }
.yff-search-form__close { background: none; border: none; font-size: 28px; line-height: 1; color: #94a3b8; cursor: pointer; padding: 0 0.5rem; min-width: 44px; min-height: 44px; }
.yff-search-form__close:hover { color: #0c0a09; }
.yff-mobile-search { display: flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1rem; background: #f9fafb; border: 1px solid #e7e5e4; border-radius: 8px; margin-bottom: 1rem; color: #94a3b8; }
.yff-mobile-search input { flex: 1; min-width: 0; padding: 0.5rem 0; border: none; outline: none; background: transparent; font-size: 16px; color: #0c0a09; font-family: inherit; }
.yff-mobile-search input::placeholder { color: #94a3b8; }

/* ===== Search results page ===== */
.yff-search-results { max-width: 880px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.yff-search-results__head { margin-bottom: 2rem; }
.yff-search-results__form { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1.1rem; background: #fff; border: 1px solid #e7e5e4; border-radius: 10px; box-shadow: 0 1px 3px rgba(15,23,42,0.04); }
.yff-search-results__form input { flex: 1; min-width: 0; padding: 0.5rem 0; font-size: 16px; border: none; outline: none; background: transparent; color: #0c0a09; font-family: inherit; }
.yff-search-results__meta { margin: 1rem 0 0; color: #474f5c; font-size: 0.95rem; }
.yff-search-results__hint { background: #f9fafb; border-radius: 10px; padding: 1.5rem 1.25rem; color: #474f5c; }
.yff-search-results__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.yff-search-results__item { background: #fff; border: 1px solid #e7e5e4; border-radius: 12px; overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.yff-search-results__item:hover { border-color: #1268f3; box-shadow: 0 8px 20px -10px rgba(18,104,243,0.18); }
.yff-search-results__card { display: grid; grid-template-columns: 1fr; gap: 0; text-decoration: none; color: inherit; }
@media (min-width: 640px) { .yff-search-results__card { grid-template-columns: 200px 1fr; } }
.yff-search-results__img { background-size: cover; background-position: center; background-color: #f1f5f9; min-height: 140px; }
@media (min-width: 640px) { .yff-search-results__img { min-height: 100%; } }
.yff-search-results__body { padding: 1.1rem 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.yff-search-results__badge { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; align-self: flex-start; }
.yff-search-results__badge--post         { background: #eff6ff; color: #1268f3; }
.yff-search-results__badge--page         { background: #f1f5f9; color: #475569; }
.yff-search-results__badge--tribe_events { background: #fef3c7; color: #b45309; }
.yff-search-results__badge--yff_project  { background: #f0fdf4; color: #15803d; }
.yff-search-results__title { font-size: 1.15rem; font-weight: 700; color: #0c0a09; line-height: 1.3; }
.yff-search-results__excerpt { color: #474f5c; font-size: 0.95rem; line-height: 1.55; }
.yff-search-results__empty { text-align: center; padding: 3rem 1rem; color: #474f5c; }
.yff-search-results__empty h2 { font-size: 1.35rem; margin: 1rem 0 0.5rem; color: #0c0a09; }
.yff-search-results__pagination { margin-top: 2rem; }
.yff-search-results__pagination ul { list-style: none; display: flex; gap: 0.5rem; padding: 0; margin: 0; justify-content: center; flex-wrap: wrap; }
.yff-search-results__pagination a, .yff-search-results__pagination .current { padding: 0.5rem 0.85rem; border-radius: 6px; text-decoration: none; color: #1268f3; border: 1px solid #e7e5e4; font-weight: 600; }
.yff-search-results__pagination .current { background: #1268f3; color: #fff; border-color: #1268f3; }
.yff-search-results__pagination a:hover { background: #eff6ff; }

/* ===== Donation thank-you share ===== */
.yff-share { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid #e7e5e4; }
.yff-share__label { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; color: #475569; margin: 0 0 0.85rem; text-align: center; }
.yff-share__row { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.yff-share__btn { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.65rem 1.1rem; border-radius: 999px; font-size: 0.92rem; font-weight: 600; color: #fff; text-decoration: none; border: none; cursor: pointer; transition: transform .1s, box-shadow .15s; }
.yff-share__btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px -6px rgba(15,23,42,0.25); color: #fff; }
.yff-share__btn:active { transform: translateY(0); }
.yff-share__btn svg { width: 16px; height: 16px; }
.yff-share__btn--x  { background: #0f172a; }
.yff-share__btn--fb { background: #1877f2; }
.yff-share__btn--wa { background: #25d366; }
.yff-share__btn--copy { background: #475569; }
.yff-share__btn--copy.is-copied { background: #10b981; }

/* ===== Honor / In memory of ===== */
.yff-donation__honor { margin-top: 1rem; padding: 0; }
.yff-donation__honor-toggle { display: flex; align-items: flex-start; gap: 0.6rem; cursor: pointer; padding: 0.5rem 0; font-size: 0.95rem; color: #474f5c; }
.yff-donation__honor-toggle input { margin-top: 0.2rem; }
.yff-donation__honor-fields { display: flex; flex-direction: column; gap: 0.75rem; padding: 1rem 1.1rem; margin-top: 0.5rem; background: #fff7ed; border: 1px solid #fde68a; border-radius: 10px; }
.yff-donation__honor-fields[hidden] { display: none; }
.yff-donation__honor-type { display: flex; gap: 0.6rem; }
.yff-donation__honor-type label { flex: 1; padding: 0.6rem; background: #fff; border: 1px solid #e7e5e4; border-radius: 6px; text-align: center; cursor: pointer; font-size: 0.9rem; font-weight: 500; transition: all .15s; min-height: 44px; display: flex; align-items: center; justify-content: center; }
.yff-donation__honor-type label:hover { border-color: #1268f3; }
.yff-donation__honor-type input { position: absolute; opacity: 0; pointer-events: none; }
.yff-donation__honor-type input:checked + span { color: #1268f3; font-weight: 700; }
.yff-donation__honor-type label:has(input:checked) { border-color: #1268f3; background: #eff6ff; }

/* ===== Contact form (renamed from .yff-contact to avoid collision with the home-page Get-in-Touch grid) ===== */
.yff-contact-page { max-width: 720px; margin: 0 auto; padding: 3rem 1.25rem 4rem; display: block; }
.yff-contact-page__intro { color: #474f5c; line-height: 1.65; margin: 0 0 2rem; }
.yff-contact-form { background: #fff; border: 1px solid #e7e5e4; border-radius: 14px; padding: 2rem 1.75rem; box-shadow: 0 1px 3px rgba(15,23,42,0.04); display: flex; flex-direction: column; gap: 1.1rem; }
.yff-contact-form label { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.92rem; font-weight: 600; color: #0c0a09; }
.yff-contact-form input, .yff-contact-form select, .yff-contact-form textarea { padding: 0.75rem 0.85rem; border: 1px solid #e7e5e4; border-radius: 8px; font-size: 16px; font-family: inherit; color: #0c0a09; background: #fff; transition: border-color .15s, box-shadow .15s; }
.yff-contact-form input:focus, .yff-contact-form select:focus, .yff-contact-form textarea:focus { outline: none; border-color: #1268f3; box-shadow: 0 0 0 3px rgba(18,104,243,0.12); }
.yff-contact-form__row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .yff-contact-form__row { grid-template-columns: 1fr 1fr; } }
.yff-contact-form__msg { font-size: 0.9rem; min-height: 1.2rem; }
.yff-contact-form__msg.is-error   { color: #b91c1c; }
.yff-contact-form__msg.is-success { color: #15803d; }
.yff-contact-form__success { padding: 2rem 1.5rem; text-align: center; background: #f0fdf4; border: 1px solid #86efac; border-radius: 14px; }
.yff-contact-form__success-icon { display: inline-flex; width: 56px; height: 56px; border-radius: 50%; background: #15803d; color: #fff; align-items: center; justify-content: center; font-size: 1.75rem; font-weight: 700; margin-bottom: 1rem; }
.yff-contact-form__success h3 { margin: 0 0 0.5rem; font-size: 1.35rem; color: #0c0a09; }

/* ===== Newsletter footer signup (compact, subtle, centered single-column) ===== */
.yff-newsletter { background: #f9fafb; border-top: 1px solid #eef0f2; padding: 1.5rem 1.25rem; }
@media (min-width: 768px) { .yff-newsletter { padding: 1.75rem 1.5rem; } }
.yff-newsletter__inner { max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.6rem; align-items: stretch; text-align: center; }
.yff-newsletter__heading { font-size: 1rem; margin: 0; color: #0c0a09; font-weight: 600; letter-spacing: -0.005em; line-height: 1.3; }
.yff-newsletter__form { width: 100%; }
/* Force flex layout AND identical height on input + button. We unwrap
 * <p> wrappers (wpautop sometimes wraps the button) so flex still works.
 * Descendant selectors (no >) so the button can sit at any depth inside .yff-newsletter__field. */
.yff-newsletter__field { display: flex; align-items: stretch; }
.yff-newsletter__field p { display: contents; }  /* dissolve any wpautop <p> wraps so flex sees real children */
.yff-newsletter__field input[type="email"],
.yff-newsletter__field button[type="submit"] {
  box-sizing: border-box !important;
  height: 40px !important;
  min-height: 40px !important;
  line-height: 1 !important;
  margin: 0 !important;
  font-size: 14px !important;
  font-family: inherit !important;
  vertical-align: middle;
}
.yff-newsletter__field input[type="email"] {
  flex: 1; min-width: 0;
  padding: 0 0.85rem !important;
  border: 1px solid #d1d5db !important;
  border-right: none !important;
  border-radius: 6px 0 0 6px !important;
  background: #fff !important;
  outline: none;
  color: #0c0a09;
  transition: border-color .15s;
}
.yff-newsletter__field input[type="email"]::placeholder { color: #9ca3af; }
.yff-newsletter__field input[type="email"]:focus { border-color: #1268f3 !important; }
.yff-newsletter__field button[type="submit"] {
  padding: 0 1rem !important;
  background: #1268f3 !important;
  color: #fff !important;
  border: 1px solid #1268f3 !important;
  border-radius: 0 6px 6px 0 !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
  box-shadow: none !important;
  text-shadow: none !important;
  flex-shrink: 0;
}
.yff-newsletter__field button[type="submit"]:hover { background: #0c52c7 !important; border-color: #0c52c7 !important; }
.yff-newsletter__field button[type="submit"]:active { transform: translateY(1px); }
.yff-newsletter__field button[type="submit"]:focus-visible { outline: 2px solid #1268f3; outline-offset: 2px; }
.yff-newsletter__fine { font-size: 0.78rem; color: #6b7280; margin: 0; line-height: 1.4; }
.yff-newsletter__fine a { color: #6b7280; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: #d1d5db; }
.yff-newsletter__fine a:hover { color: #1268f3; text-decoration-color: currentColor; }
.yff-newsletter__msg { font-size: 0.78rem; color: #6b7280; }
.yff-newsletter__msg:empty { display: none; }
.yff-newsletter__msg.is-error   { color: #b91c1c; }
.yff-newsletter__msg.is-success { color: #15803d; }

/* ===== About / Leadership / Board ===== */
.yff-about { max-width: 1100px; margin: 0 auto; padding: 3rem 1.25rem 4rem; }
.yff-about__hero { text-align: center; padding: 1rem 0 3rem; border-bottom: 1px solid #e7e5e4; margin-bottom: 3rem; }
.yff-about__eyebrow { color: #1268f3; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.6rem; }
.yff-about__hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; margin: 0 0 1rem; letter-spacing: -0.02em; color: #0c0a09; }
.yff-about__hero p { color: #474f5c; font-size: 1.1rem; line-height: 1.65; max-width: 720px; margin: 0 auto; }
.yff-about__section { margin-bottom: 3.5rem; }
.yff-about__section-head { text-align: center; margin-bottom: 2rem; }
.yff-about__section-head h2 { font-size: 1.65rem; font-weight: 800; margin: 0 0 0.4rem; color: #0c0a09; }
.yff-about__section-head p { color: #474f5c; max-width: 640px; margin: 0 auto; }
.yff-team-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .yff-team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .yff-team-grid { grid-template-columns: repeat(3, 1fr); } }
.yff-team-card { background: #fff; border: 1px solid #e7e5e4; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.yff-team-card:hover { box-shadow: 0 12px 28px -14px rgba(15,23,42,0.18); transform: translateY(-2px); }
.yff-team-card__photo { aspect-ratio: 4/5; background: linear-gradient(135deg, #eff6ff, #dbeafe); background-size: cover; background-position: center; position: relative; }
.yff-team-card__photo--placeholder { display: flex; align-items: center; justify-content: center; font-size: 2.5rem; font-weight: 800; color: #1268f3; letter-spacing: -1px; }
.yff-team-card__body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.yff-team-card__name { font-size: 1.1rem; font-weight: 700; margin: 0; color: #0c0a09; }
.yff-team-card__title { font-size: 0.92rem; color: #1268f3; font-weight: 600; }
.yff-team-card__creds { font-size: 0.82rem; color: #94a3b8; }
.yff-team-card__bio { font-size: 0.92rem; color: #474f5c; line-height: 1.55; margin-top: 0.3rem; }
.yff-about__cta { background: linear-gradient(135deg, #1268f3, #0c52c7); color: #fff; border-radius: 16px; padding: 2.5rem 1.75rem; text-align: center; }
.yff-about__cta h2 { color: #fff; font-size: 1.65rem; margin: 0 0 0.5rem; }
.yff-about__cta p { color: rgba(255,255,255,0.92); margin: 0 0 1.25rem; }
.yff-about__cta-row { display: inline-flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; }
.yff-about__cta .yff-btn { background: #f59b0a; color: #fff; }
.yff-about__cta .yff-btn:hover { background: #d97f04; }
.yff-about__cta .yff-btn--ghost { background: transparent; border: 1px solid rgba(255,255,255,0.5); }
.yff-about__cta .yff-btn--ghost:hover { background: rgba(255,255,255,0.15); }
.yff-404 p { color: #474f5c; margin: 0 0 2rem; line-height: 1.6; }
