/* Site-wide modern style. Edit here, then run tools/modernize.py. */
:root {
  --yp-forest: #1d4a2c;
  --yp-green: #54b435;
  --yp-green-dark: #2f7d32;
  --yp-gold: #d9a93f;
  --yp-ink: #17231b;
  --yp-text: #3a4740;
  --yp-cream: #f7f5ee;
  --yp-tint: #eef6e6;
  --yp-line: #dfe7d8;
  --yp-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --yp-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Type scale. All text on the site uses one of these eight sizes. */
  --fs-display: clamp(40px, 22px + 4.2vw, 68px);  /* home hero title */
  --fs-h1: clamp(32px, 24px + 2vw, 46px);         /* page title, section title */
  --fs-h2: clamp(26px, 22px + 1.1vw, 34px);       /* heading in a section */
  --fs-h3: 22px;                                  /* small heading, card title */
  --fs-lead: 19px;                                /* intro text, quotes */
  --fs-body: 17px;                                /* body text, buttons */
  --fs-small: 14px;                               /* labels, captions */
  --fs-stat: clamp(34px, 24px + 2.2vw, 50px);     /* impact numbers */
  --lh-tight: 1.15;
  --lh-snug: 1.3;
  --lh-body: 1.7;
}
body { background: #fff; color: var(--yp-text); font-family: var(--yp-sans) !important;
  -webkit-font-smoothing: antialiased; }
::selection { background: var(--yp-green); color: #fff; }
:focus-visible { outline: 3px solid var(--yp-gold); outline-offset: 2px; }

/* ---------- Header ---------- */
.yp-header { position: sticky; top: 0; z-index: 999; background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--yp-line); font-family: var(--yp-sans); }
.yp-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: 1200px; margin: 0 auto; padding: 12px 24px; }
.yp-brand { display: flex; align-items: center; gap: 12px; text-decoration: none !important; }
.yp-brand img { height: 42px; width: auto; display: block; }
.yp-brand span { font-family: var(--yp-serif); font-weight: 600; font-size: var(--fs-lead); color: var(--yp-ink);
  letter-spacing: -.01em; white-space: nowrap; }
.yp-nav { display: flex; align-items: center; gap: 6px; }
.yp-nav a { padding: 9px 14px; border-radius: 999px; color: var(--yp-ink); font-size: var(--fs-small); font-weight: 600;
  text-decoration: none !important; transition: background .15s, color .15s; }
.yp-nav a:hover, .yp-nav a[aria-current="page"] { background: var(--yp-tint); color: var(--yp-green-dark); }
.yp-nav a.yp-donate { margin-left: 8px; padding: 10px 22px; background: var(--yp-green-dark); color: #fff; font-weight: 600; }
.yp-nav a.yp-donate:hover { background: var(--yp-forest); color: #fff; }
#yp-nav-toggle, .yp-burger { display: none; }

/* ---------- Search (tools/search.js) ---------- */
#yp-search-toggle, .yp-search-btn { display: none; }
.yp-search { position: relative; flex: 0 1 230px; min-width: 120px; margin-left: auto; }
.yp-nav a { white-space: nowrap; }
.yp-search input[type="search"] { width: 100%; padding: 9px 40px 9px 16px; border: 1px solid var(--yp-line);
  border-radius: 999px; background: #fff; color: var(--yp-ink); font: inherit; font-size: var(--fs-small);
  -webkit-appearance: none; appearance: none; }
.yp-search input[type="search"]:focus { outline: none; border-color: var(--yp-green-dark);
  box-shadow: 0 0 0 3px var(--yp-tint); }
.yp-search button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: grid;
  place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--yp-green-dark); cursor: pointer; }
.yp-search svg, .yp-search-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2;
  stroke-linecap: round; }
.yp-search-results { position: absolute; top: calc(100% + 8px); right: 0; width: min(460px, 92vw);
  max-height: 70vh; overflow-y: auto; padding: 8px; background: #fff; border: 1px solid var(--yp-line);
  border-radius: 16px; box-shadow: 0 18px 40px rgba(23, 35, 27, .14); }
.yp-search-results[hidden] { display: none; }
.yp-search-results a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--yp-text);
  font-size: var(--fs-small); line-height: var(--lh-snug); text-decoration: none !important; }
.yp-search-results a:hover, .yp-search-results a:focus { background: var(--yp-tint); outline: none; }
.yp-search-results strong { display: block; margin-bottom: 2px; color: var(--yp-ink); font-weight: 600; }
.yp-search-results mark { background: #fbe9b7; color: inherit; border-radius: 3px; }
.yp-search-results p { margin: 0; padding: 10px 12px; font-size: var(--fs-small); }

/* ---------- Footer ---------- */
.yp-footer { margin-top: 72px; background: var(--yp-forest); color: #d6e4d6; font-family: var(--yp-sans);
  font-size: var(--fs-small); line-height: 1.7; }
.yp-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 48px; max-width: 1200px;
  margin: 0 auto; padding: 64px 24px 40px; }
.yp-footer h2 { margin: 0 0 14px; color: #fff !important; font-family: var(--yp-sans) !important; font-size: var(--fs-small) !important;
  font-weight: 600 !important; letter-spacing: .12em; text-transform: uppercase; }
.yp-footer p { margin: 0 0 10px; }
.yp-footer a { color: #fff; text-decoration: none; }
.yp-footer a:hover { color: var(--yp-gold); }
.yp-footer ul { list-style: none; margin: 0; padding: 0; }
.yp-footer li { margin-bottom: 8px; }
.yp-footer-name { margin: 0 0 8px !important; color: #fff; font-family: var(--yp-serif); font-size: var(--fs-h2); font-weight: 600;
  line-height: 1.2; }
.yp-footer-tag { color: var(--yp-gold); font-style: italic; }
.yp-footer-social { display: flex; gap: 10px; margin-top: 18px; }
.yp-footer-social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .12); transition: background .15s; }
.yp-footer-social a:hover { background: var(--yp-gold); }
.yp-footer-social svg { width: 19px; height: 19px; fill: #fff; }
.yp-footer-base { border-top: 1px solid rgba(255, 255, 255, .14); }
.yp-footer-base p { max-width: 1200px; margin: 0 auto; padding: 18px 24px; font-size: var(--fs-small); color: #a9c1ab; }

/* ---------- Type ---------- */
body, button, input, select, textarea { font-size: var(--fs-body); line-height: var(--lh-body); }
h1, h2, h3, h4, h5, h6, .entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4,
.entry-content h5, .entry-content h6, .elementor-heading-title, .elementor-headline, .elementor-image-box-title,
.elementor-icon-box-title, .elementor-counter-number-wrapper, .elementor-tab-title {
  font-family: var(--yp-serif) !important; font-weight: 600 !important; letter-spacing: -.012em; }
h1, .entry-content h1, .entry-title { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2, .entry-content h2, .elementor-headline { font-size: var(--fs-h2); line-height: var(--lh-tight); }
h3, .entry-content h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); }
h4, h5, h6, .entry-content h4, .entry-content h5, .entry-content h6, .elementor-image-box-title,
.elementor-icon-box-title, .elementor-tab-title { font-size: var(--fs-lead); line-height: var(--lh-snug); }
.elementor-widget-text-editor, .elementor-image-box-description, .elementor-icon-box-description,
.elementor-counter-title, .elementor-testimonial__text, .elementor-icon-list-text, .elementor-tab-content {
  font-family: var(--yp-sans) !important; }
.elementor-widget-text-editor, .elementor-image-box-description, .elementor-icon-box-description,
.elementor-testimonial__text, .elementor-icon-list-text, .elementor-tab-content, .elementor-progress-wrapper,
.elementor-widget-progress .elementor-title { color: var(--yp-text); font-size: var(--fs-body); line-height: var(--lh-body); }
.elementor-widget-text-editor p, .elementor-widget-text-editor li, .elementor-widget-text-editor span {
  font-family: inherit; font-size: inherit; line-height: inherit; }
.elementor-widget-text-editor h2 { margin: 1.6em 0 .5em; font-size: var(--fs-h2); line-height: var(--lh-tight); color: var(--yp-ink); }
.elementor-widget-text-editor h3, .elementor-widget-text-editor h4 { margin: 1.4em 0 .4em; font-size: var(--fs-h3);
  line-height: var(--lh-snug); color: var(--yp-ink); }
.elementor-widget-text-editor > :first-child, .elementor-widget-text-editor .elementor-widget-container > :first-child { margin-top: 0; }
.elementor-widget-text-editor a { color: var(--yp-green-dark); text-decoration: underline; text-underline-offset: 2px; }
.elementor-counter-number-wrapper { color: var(--yp-green-dark) !important; font-size: var(--fs-stat); line-height: 1; }
.elementor-counter-title, .elementor-testimonial__name, .elementor-testimonial__title { font-size: var(--fs-small) !important;
  line-height: 1.4 !important; }
.elementor-counter-title { letter-spacing: .04em; text-transform: uppercase; color: var(--yp-text) !important; }
.eael-creative-button, .elementor-button, .wpforms-submit { font-size: var(--fs-body) !important; line-height: 1.2 !important; }

/* ---------- Media and controls ---------- */
.elementor-widget-image img, .elementor-image-box-img img, .elementor-widget-video .elementor-wrapper,
.elementor-widget-google_maps iframe, .elementor-widget-html iframe, .elementor-image-gallery img { border-radius: 14px; }
.e-gallery-item, .elementor-image-carousel .swiper-slide-inner { border-radius: 12px; overflow: hidden; }
.elementor-widget-google_maps iframe { display: block; }
.eael-creative-button, .elementor-button, .wp-block-button__link, .wpforms-submit {
  border-radius: 999px !important; font-family: var(--yp-sans) !important; font-weight: 600 !important;
  letter-spacing: 0 !important; text-transform: none !important; box-shadow: none !important;
  transition: transform .15s, filter .15s !important; }
.eael-creative-button:hover, .elementor-button:hover { transform: translateY(-1px); filter: brightness(.94); }
.eael-creative-button { padding: 15px 30px !important; }
.elementor-divider-separator { border-radius: 2px; }
.elementor-testimonial { border-radius: 16px; }

/* ---------- Long text pages ---------- */
.yp-article [data-elementor-type="wp-page"] { max-width: 900px; margin: 0 auto; }
.yp-article [data-elementor-type="wp-page"] .elementor-container { max-width: 100% !important; }

/* ---------- Small screens ---------- */
@media (max-width: 820px) {
  .yp-bar { padding: 10px 16px; }
  .yp-brand span { font-size: var(--fs-body); }
  .yp-burger { display: grid; gap: 5px; padding: 10px; border-radius: 10px; cursor: pointer; }
  .yp-burger span { display: block; width: 22px; height: 2px; background: var(--yp-ink); border-radius: 2px; }
  .yp-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
    gap: 4px; padding: 12px 16px 18px; background: #fff; border-bottom: 1px solid var(--yp-line);
    box-shadow: 0 16px 30px rgba(23, 35, 27, .08); }
  #yp-nav-toggle:checked ~ .yp-nav { display: flex; }
  .yp-search-btn { display: grid; place-items: center; margin-left: auto; padding: 10px; border-radius: 10px;
    color: var(--yp-ink); cursor: pointer; }
  .yp-search { display: none; position: absolute; left: 0; right: 0; top: 100%; flex: none; margin: 0;
    padding: 12px 16px 14px; background: #fff; border-bottom: 1px solid var(--yp-line);
    box-shadow: 0 16px 30px rgba(23, 35, 27, .08); }
  #yp-search-toggle:checked ~ .yp-search { display: block; }
  .yp-search input[type="search"] { font-size: var(--fs-body); padding: 12px 44px 12px 16px; }
  .yp-search button { right: 20px; }
  .yp-search-results { left: 16px; right: 16px; width: auto; }
  .yp-nav a { padding: 13px 14px; font-size: var(--fs-body); }
  .yp-nav a.yp-donate { margin: 6px 0 0; text-align: center; }
  .yp-footer-grid { grid-template-columns: 1fr; gap: 32px; padding: 48px 20px 28px; }
}

/* The old header lay over the page. Remove the empty spacer band that made room for it. */
[data-elementor-type="wp-page"] > .elementor-section:first-child:has(.elementor-widget-spacer):not(:has(.elementor-widget:not(.elementor-widget-spacer))),
[data-elementor-type="wp-page"] > .e-con:first-child:has(.elementor-widget-spacer):not(:has(.elementor-widget:not(.elementor-widget-spacer))) { display: none; }

/* Soft boxes in place of the grey boxes. */
.elementor-column > .elementor-widget-wrap, .elementor-motion-effects-layer { border-radius: 18px; }
.elementor-testimonial { background-color: var(--yp-tint) !important; }
.elementor-widget-testimonial-carousel .swiper-slide { background-color: var(--yp-tint) !important; border-radius: 18px; }
.elementor-widget-testimonial-carousel .elementor-testimonial { background-color: transparent !important; }

/* Very small phones */
@media (max-width: 400px) {
  .yp-bar { gap: 10px; padding: 10px 12px; }
  .yp-brand { gap: 8px; min-width: 0; }
  .yp-brand img { height: 32px; }
  .yp-brand span { font-size: var(--fs-small); }
}

/* Lean pages (tools/speed.py removes the old theme CSS there). Base rules that the theme gave.
   :where() keeps their weight at zero, so every other rule in our CSS wins. */
:where(.yp-lean) *, :where(.yp-lean) *::before, :where(.yp-lean) *::after { box-sizing: border-box; }
html:has(body.yp-lean) { -webkit-text-size-adjust: 100%; }
body.yp-lean { margin: 0; }
:where(.yp-lean) :where(img, video) { max-width: 100%; height: auto; }
:where(.yp-lean) a { color: var(--yp-green-dark); }
:where(.yp-lean) :where(h1, h2, h3, h4) { font-family: var(--yp-serif); color: var(--yp-ink); font-weight: 600; }
:where(.yp-lean) figure { margin: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; padding: 12px 20px; background: #fff; color: var(--yp-ink); z-index: 100000; left: 8px; top: 8px; }
