/**
 * @file
 * Section style options (any page) and the philanthropy page design.
 *
 * Bands, eyebrow labels, centered text and hero banner styles are generic.
 * Rules under body[class*="is-path--philanthropy"] recreate the original
 * hand-built /philanthropy design (its former inline styles) on sections.
 */

/* --- Bands (any page) ---------------------------------------------------- */
.gmu-section.gmu-band { max-width: none; margin: 0; padding: 3rem 3%; box-sizing: border-box; }
.gmu-band--white { background: #fff; }
.gmu-band--light { background: #f7f7f4; }
.gmu-band--green { background: #005239; color: #fff; }
.gmu-band--yellow { background: #ffc733; color: #005239; }
.gmu-band--green :is(p, li, .gmu-text, .gmu-callout__heading, .gmu-callout__text, .gmu-contact__name, .gmu-contact__role, .gmu-stats__label) { color: #fff !important; }
.gmu-band--green .gmu-section__heading { color: #fff !important; }
.gmu-band--green a:not(.gmu-button):not(.gmu-hero__button) { color: #ffc733 !important; }
.gmu-band--green .gmu-button, .gmu-band--green a.gmu-button:visited { background: #ffc733 !important; color: #005239 !important; }
.gmu-band--green .gmu-button:hover, .gmu-band--green .gmu-button:focus { background: #fff !important; }
.gmu-band--yellow .gmu-section__heading { color: #005239 !important; }
/* A banded callout or contact is the band itself, not a box. */
.gmu-callout.gmu-band { border: 0; border-radius: 0; }
.gmu-contact.gmu-band { border: 0; border-radius: 0; }
/* Card grids on a band. */
.gmu-card-grid.gmu-band { padding: 3rem 3%; }

/* --- Alignment and eyebrow (any page) ------------------------------------- */
.gmu-section--center { text-align: center; }
.gmu-section--center .gmu-text { margin-left: auto; margin-right: auto; max-width: 56rem; }
.gmu-section__eyebrow, .gmu-hero__eyebrow {
  margin: 0 0 0.6rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #005239;
}

/* --- Hero: photo banner and yellow banner (any page) --------------------- */
.gmu-hero.gmu-hero--banner,
.gmu-hero.gmu-hero--yellow { margin: 0; padding: 4.5rem 3%; text-align: center; }
.gmu-hero--banner {
  background: linear-gradient(rgba(0, 82, 57, 0.9), rgba(0, 82, 57, 0.95)), var(--gmu-hero-photo, none) center / cover no-repeat, #005239;
  color: #fff;
}
.gmu-hero--banner .gmu-hero__eyebrow { color: #ffc733; }
.gmu-hero--yellow { background: #ffc733; color: #005239; }
.gmu-hero.gmu-hero--yellow { padding: 3rem 3%; }
.gmu-hero--banner .gmu-hero__heading,
.gmu-hero--yellow .gmu-hero__heading {
  max-width: 720px; margin: 0 auto 1.25rem !important; padding: 0 !important; border: 0 !important;
  font-size: clamp(1.7rem, 3.8vw, 2.75rem); font-weight: 800; line-height: 1.25; text-align: center;
}
.gmu-hero--banner .gmu-hero__heading { color: #fff !important; }
.gmu-hero--yellow .gmu-hero__heading { color: #005239 !important; max-width: 700px; margin-bottom: 0 !important; font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
.gmu-hero--banner .gmu-hero__text, .gmu-hero--banner .gmu-hero__text p { max-width: 700px; margin: 0 auto; color: #fff !important; font-size: 1.05rem; line-height: 1.75; }
.gmu-hero--yellow .gmu-hero__text, .gmu-hero--yellow .gmu-hero__text p { max-width: 700px; margin: 1rem auto 0; color: #005239 !important; }
.gmu-hero--banner .gmu-hero__button, .gmu-hero--yellow .gmu-hero__button { margin-top: 1.75rem; }

/* --- Title-strip cards (any page) ---------------------------------------- */
.gmu-cards--header .gmu-cards__card { border: 0; box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08); }
.gmu-cards--header .gmu-cards__body { padding: 0 0 1.75rem; }
.gmu-cards--header .gmu-cards__title {
  margin: 0 0 1.25rem; padding: 1.25rem 1.5rem; background: #005239; color: #ffc733 !important; font-size: 1.15rem;
}
.gmu-cards--header .gmu-cards__card:nth-child(3n) .gmu-cards__title { background: #ffc733; color: #005239 !important; }
.gmu-cards--header .gmu-cards__text, .gmu-cards--header .gmu-cards__action { padding: 0 1.5rem; }
.gmu-cards--header .gmu-button { background: #ffc733 !important; color: #005239 !important; }

/* ========================================================================
   Philanthropy pages: the original design.
   ======================================================================== */
body[class*="is-path--philanthropy"] .page-content .gmu-section { margin: 0; max-width: none; }
body[class*="is-path--philanthropy"] .page-content .gmu-section:not(.gmu-band):not(.gmu-hero) { padding: 2rem 3%; }
body[class*="is-path--philanthropy"] .page-content .gmu-text { max-width: none; color: #444; font-size: 1.05rem; line-height: 1.8; }

/* Section headings: big, green, centered, with a short yellow bar. */
body[class*="is-path--philanthropy"] .page-content :is(.gmu-section--text, .gmu-phil-list, .gmu-stats) > .gmu-section__heading {
  margin: 0 auto 1.5rem !important; padding: 0 !important; border: 0 !important;
  color: #005239; font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; line-height: 1.2; text-align: center;
}
/* !important: the theme sets ".page-content h2::after { content: none !important }". */
body[class*="is-path--philanthropy"] .page-content :is(.gmu-section--text, .gmu-phil-list, .gmu-stats) > .gmu-section__heading::after {
  content: "" !important; display: block !important; width: 80px; height: 4px; margin: 1rem auto 0; background: #ffc733;
}
body[class*="is-path--philanthropy"] .page-content .gmu-band--green > .gmu-section__heading::after { background: #ffc733; }
body[class*="is-path--philanthropy"] .page-content .gmu-section--text .gmu-text { max-width: 1000px; margin: 0 auto; font-size: 1.1rem; line-height: 1.85; color: #333; }
body[class*="is-path--philanthropy"] .page-content .gmu-section--text.gmu-section--center .gmu-text { max-width: 900px; color: #444; }
body[class*="is-path--philanthropy"] .page-content .gmu-section--text.gmu-band--light .gmu-text { font-size: 0.9rem; color: #666; font-style: italic; }
body[class*="is-path--philanthropy"] .page-content .gmu-section--text.gmu-band--light { padding: 0.75rem 3%; }

/* Lists: the module styles the lists; only the heading band. */
body[class*="is-path--philanthropy"] .page-content .gmu-phil-list:not(.gmu-band) { padding: 4rem 0 0; }
body[class*="is-path--philanthropy"] .page-content .gmu-phil-list:not(.gmu-band):not(:has(> .gmu-section__heading)) { padding-top: 0; }

/* Stats: green band, yellow numbers, white labels, thin dividers. */
body[class*="is-path--philanthropy"] .page-content .gmu-stats { padding: 3.5rem 3%; }
body[class*="is-path--philanthropy"] .page-content .gmu-stats__list { max-width: 1200px; margin: 0 auto; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
body[class*="is-path--philanthropy"] .page-content .gmu-stats__item { border: 0; padding: 0 1rem; gap: 0.5rem; }
body[class*="is-path--philanthropy"] .page-content .gmu-band--green .gmu-stats__item + .gmu-stats__item { border-left: 1px solid rgba(255, 255, 255, 0.18); }
body[class*="is-path--philanthropy"] .page-content .gmu-stats__number { color: #ffc733; font-size: clamp(2.25rem, 4vw, 3rem); line-height: 1; }
body[class*="is-path--philanthropy"] .page-content .gmu-stats__label { font-size: 1rem; line-height: 1.55; }

/* Call-to-action band (callout on a band). */
body[class*="is-path--philanthropy"] .page-content .gmu-callout.gmu-band { padding: 3.5rem 3%; text-align: center; }
body[class*="is-path--philanthropy"] .page-content .gmu-callout.gmu-band .gmu-callout__heading { margin: 0 0 1rem; font-size: 1.7rem; font-weight: 700; }
body[class*="is-path--philanthropy"] .page-content .gmu-callout.gmu-band .gmu-callout__text { max-width: 820px; margin: 0 auto; }
body[class*="is-path--philanthropy"] .page-content .gmu-callout.gmu-band .gmu-callout__text p { max-width: 700px; margin: 0 auto; font-size: 1.05rem; line-height: 1.8; font-weight: 400; }
/* A bold call-to-action line ("No matter the size...") is larger, as before. */
body[class*="is-path--philanthropy"] .page-content .gmu-callout.gmu-band .gmu-callout__text p:has(> strong:only-child) { max-width: 820px; font-size: 1.25rem; line-height: 1.7; }
body[class*="is-path--philanthropy"] .page-content .gmu-callout.gmu-band .gmu-callout__action { margin: 2rem 0 0; }
body[class*="is-path--philanthropy"] .page-content a.gmu-button {
  padding: 0.9rem 2.5rem; border-radius: 4px; font-size: 1.05rem; font-weight: 700; text-decoration: none !important;
}

/* Contact: white card with a yellow top border on a light band; on green,
   centered white text with yellow links. */
body[class*="is-path--philanthropy"] .page-content .gmu-contact { padding: 3.5rem 3%; text-align: center; }
body[class*="is-path--philanthropy"] .page-content .gmu-contact .gmu-contact__row { display: block; }
body[class*="is-path--philanthropy"] .page-content .gmu-contact.gmu-band--light .gmu-contact__card {
  max-width: 720px; margin: 0 auto; padding: 2.5rem; border-top: 6px solid #ffc733; border-radius: 8px; background: #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}
body[class*="is-path--philanthropy"] .page-content .gmu-contact__heading { margin: 0 0 1.25rem; color: #005239; font-size: 1.5rem; font-weight: 700; }
body[class*="is-path--philanthropy"] .page-content .gmu-contact__name { margin: 0 0 0.35rem; color: #005239; font-size: 1.15rem; font-weight: 700; }
body[class*="is-path--philanthropy"] .page-content .gmu-contact__role { margin: 0 0 1rem; color: #555; }
body[class*="is-path--philanthropy"] .page-content .gmu-contact a { font-weight: 600; text-decoration: underline; }
body[class*="is-path--philanthropy"] .page-content .gmu-contact.gmu-band--green .gmu-contact__heading { color: #ffc733 !important; font-size: 1.4rem; margin-bottom: 0.75rem; }
body[class*="is-path--philanthropy"] .page-content .gmu-contact.gmu-band--green .gmu-contact__name { color: #fff !important; font-weight: 600; margin-bottom: 0.25rem; }
body[class*="is-path--philanthropy"] .page-content .gmu-contact.gmu-band--green .gmu-contact__row p:not(.gmu-contact__name) { color: rgba(255, 255, 255, 0.85) !important; margin-bottom: 0.25rem; }

/* Photo + text rows. */
body[class*="is-path--philanthropy"] .page-content .gmu-image-text { padding: 3.5rem 3% !important; max-width: none; grid-template-columns: 1fr 1fr; gap: 3rem; }
body[class*="is-path--philanthropy"] .page-content .gmu-image-text > * { max-width: 600px; }
body[class*="is-path--philanthropy"] .page-content .gmu-image-text--left > .gmu-image-text__media,
body[class*="is-path--philanthropy"] .page-content .gmu-image-text--right > .gmu-image-text__body { justify-self: end; }
body[class*="is-path--philanthropy"] .page-content .gmu-image-text__media img {
  width: 100%; height: 380px; object-fit: cover; border-radius: 8px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
body[class*="is-path--philanthropy"] .page-content .gmu-image-text .gmu-section__heading {
  display: inline-block; margin: 0 0 1.25rem !important; padding: 0 0 0.4rem !important; border: 0 !important;
  border-bottom: 3px solid #ffc733 !important; color: #005239; font-size: 1.7rem; text-align: left;
}
body[class*="is-path--philanthropy"] .page-content .gmu-image-text.gmu-band--green .gmu-section__heading { color: #ffc733 !important; border-bottom: 0 !important; }
body[class*="is-path--philanthropy"] .page-content .gmu-image-text .gmu-text ul { line-height: 2; padding-left: 1.5rem; }
body[class*="is-path--philanthropy"] .page-content .gmu-image-text:not(.gmu-band--green) .gmu-button { background: #ffc733; color: #005239 !important; padding: 0.75rem 1.75rem; }
body[class*="is-path--philanthropy"] .page-content .gmu-image-text:not(.gmu-band--green) .gmu-button:hover { background: #005239; color: #fff !important; }
body[class*="is-path--philanthropy"] .page-content .gmu-image-text.gmu-band--light { border-top: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8; }

/* Boxes (Ways to Give): white cards with yellow-underlined titles. */
body[class*="is-path--philanthropy"] .page-content .gmu-card-grid { padding: 3rem 3%; }
body[class*="is-path--philanthropy"] .page-content .gmu-cards { max-width: 1200px; margin: 0 auto; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
body[class*="is-path--philanthropy"] .page-content .gmu-cards--text:not(.gmu-cards--header) .gmu-cards__card {
  border: 1px solid #e5e5e5; border-top: 1px solid #e5e5e5; border-radius: 8px; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
body[class*="is-path--philanthropy"] .page-content .gmu-cards--text:not(.gmu-cards--header) .gmu-cards__body { padding: 2rem; }
body[class*="is-path--philanthropy"] .page-content .gmu-cards--text:not(.gmu-cards--header) .gmu-cards__title {
  margin: 0 0 0.75rem; padding-bottom: 0.4rem; border-bottom: 2px solid #ffc733; color: #005239; font-size: 1.15rem;
}
body[class*="is-path--philanthropy"] .page-content .gmu-cards__text { color: #444; line-height: 1.7; }
body[class*="is-path--philanthropy"] .page-content .gmu-cards .gmu-button { padding: 0.6rem 1.25rem; font-size: 0.9rem; }
body[class*="is-path--philanthropy"] .page-content .gmu-cards--header { max-width: 1100px; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
body[class*="is-path--philanthropy"] .page-content .gmu-cards--header .gmu-cards__card { border-radius: 8px; overflow: hidden; }

@media (max-width: 780px) {
  body[class*="is-path--philanthropy"] .page-content .gmu-stats__list { grid-template-columns: 1fr; }
  body[class*="is-path--philanthropy"] .page-content .gmu-band--green .gmu-stats__item + .gmu-stats__item { border-left: 0; }
  body[class*="is-path--philanthropy"] .page-content .gmu-image-text { grid-template-columns: 1fr; }
  body[class*="is-path--philanthropy"] .page-content .gmu-image-text > * { max-width: none; justify-self: stretch !important; }
  body[class*="is-path--philanthropy"] .page-content .gmu-image-text__media img { height: 240px; }
}

/* Hero with a box: the theme's global "section { overflow-x: hidden }" clipped
   the box hanging below the photo. Original spacing: 5rem under the photo for
   the box, 8rem above the next heading. */
.gmu-hero { overflow: visible !important; }
body[class*="is-path--philanthropy"] .page-content .gmu-hero--panel { padding-bottom: 5rem !important; }
body[class*="is-path--philanthropy"] .page-content div:has(> .gmu-hero--panel) + div > .gmu-section { padding-top: 8rem !important; }
@media (max-width: 780px) {
  body[class*="is-path--philanthropy"] .page-content .gmu-hero--panel { padding-bottom: 0 !important; }
  body[class*="is-path--philanthropy"] .page-content div:has(> .gmu-hero--panel) + div > .gmu-section { padding-top: 2rem !important; }
}

.gmu-contact__intro, .gmu-contact__intro p { margin: -0.75rem 0 1.25rem; color: #666; font-size: 0.95rem; }

/* Call-to-action with a heading ("Give Online"): regular-weight text. */
body[class*="is-path--philanthropy"] .page-content .gmu-callout.gmu-band:has(.gmu-callout__heading) .gmu-callout__text p {
  max-width: 620px; margin: 0 auto; font-size: 1.05rem; font-weight: 400; line-height: 1.75; color: rgba(255, 255, 255, 0.92) !important;
}
/* Info boxes inside cards (address, legal name / tax ID). */
.gmu-cards__text blockquote {
  margin: 0 0 1rem; padding: 0.75rem 1rem; border: 0; border-radius: 4px; background: #f7f7f4;
  color: #555; font-size: 0.9rem; font-style: normal; line-height: 1.75;
}
.gmu-cards__text blockquote p { margin: 0; }
/* Card button color option. */
.gmu-cards a.gmu-button.gmu-button--yellow { background: #ffc733 !important; color: #005239 !important; }
.gmu-cards a.gmu-button.gmu-button--yellow:hover { background: #005239 !important; color: #fff !important; }

/* Areas of Support: yellow rule between the intro and the first photo row. */
body[class*="is-path--philanthropy"] .page-content div:has(> .gmu-section--text.gmu-section--center) + div > .gmu-image-text { border-top: 4px solid #ffc733; }
/* Italic sub-line and bold lead-ins in photo rows. */
body[class*="is-path--philanthropy"] .page-content .gmu-image-text .gmu-text p:has(> em:only-child) { margin: -0.75rem 0 1rem; color: #666; font-size: 0.9rem; }
body[class*="is-path--philanthropy"] .page-content .gmu-image-text.gmu-band--green .gmu-text p:has(> em:only-child) { color: rgba(255, 255, 255, 0.8) !important; }
body[class*="is-path--philanthropy"] .page-content .gmu-image-text .gmu-text p:has(> strong:only-child) { margin: 0 0 0.5rem; }

/* Title-strip cards (Advisory Board): strip across the full card, text and
   button below it, button right after the text. */
body[class*="is-path--philanthropy"] .page-content .gmu-cards--header .gmu-cards__card { border: 0; background: #fff; }
body[class*="is-path--philanthropy"] .page-content .gmu-cards--header .gmu-cards__body { padding: 0 0 1.75rem; }
body[class*="is-path--philanthropy"] .page-content .gmu-cards--header .gmu-cards__title { margin: 0 0 1.75rem; padding: 1.25rem 1.5rem !important; border: 0 !important; font-size: 1.15rem; }
body[class*="is-path--philanthropy"] .page-content .gmu-cards--header .gmu-cards__text { margin: 0 0 1.5rem; line-height: 1.8; }
body[class*="is-path--philanthropy"] .page-content .gmu-cards--header .gmu-cards__action { margin: 0; }

/* A centered line of two links ("Make a Gift · Back to Philanthropy"):
   shown as a solid and an outlined button, as on the original page. */
body[class*="is-path--philanthropy"] .page-content .gmu-section--center .gmu-text p:has(> a ~ a) { font-size: 0; padding: 1rem 0; }
body[class*="is-path--philanthropy"] .page-content .gmu-section--center .gmu-text p:has(> a ~ a) > a {
  display: inline-block; margin: 0 0.5rem 0.75rem; padding: 0.9rem 2.5rem; border: 2px solid #005239; border-radius: 4px;
  font-size: 1.05rem; font-weight: 700; text-decoration: none !important;
}
body[class*="is-path--philanthropy"] .page-content .gmu-section--center .gmu-text p:has(> a ~ a) > a:first-child { background: #005239; color: #ffc733 !important; }
body[class*="is-path--philanthropy"] .page-content .gmu-section--center .gmu-text p:has(> a ~ a) > a:not(:first-child) { background: transparent; color: #005239 !important; }
body[class*="is-path--philanthropy"] .page-content .gmu-section--center .gmu-text p:has(> a ~ a) > a:hover { text-decoration: underline !important; }

/* Bold text in a green band keeps the band's color and size (the theme
   colors strong text black). */
.gmu-band--green :is(strong, b, em) { color: inherit !important; font-size: inherit !important; }
body[class*="is-path--philanthropy"] .page-content .gmu-callout.gmu-band .gmu-callout__text p:has(> strong:only-child) > strong { font-weight: 600; }

/* Buttons on a green band: on hover/focus the button turns white, so its
   text turns green (the general button hover keeps text white). */
.gmu-band--green a.gmu-button:hover,
.gmu-band--green a.gmu-button:focus { background: #fff !important; color: #005239 !important; }
/* Title-strip card buttons (yellow): hover turns green with white text. */
.gmu-cards--header a.gmu-button:hover,
.gmu-cards--header a.gmu-button:focus { background: #005239 !important; color: #fff !important; }
