/* CFGF design pass 2026-11-25 (green #2F5D3A, cream #F4EFE3). Photo covers, section tints, button contrast.
   Scoped to the public content area so GiveWP, WooCommerce and the hidden pay slots are left alone. */
body.cfgf-sb-mmk .entry-content .wp-block-cover {
  min-height: 440px;
}
body.cfgf-sb-mmk .entry-content .wp-block-cover img,
body.cfgf-sb-mmk .entry-content .wp-block-cover .wp-block-cover__image-background {
  object-fit: cover;
  object-position: center center;
}
@media (max-width: 921px) {
  body.cfgf-sb-mmk .entry-content .wp-block-cover { min-height: 340px; }
  body.cfgf-sb-mmk .entry-content .wp-block-cover img,
  body.cfgf-sb-mmk .entry-content .wp-block-cover .wp-block-cover__image-background {
    object-position: center 40%;
  }
}
body.cfgf-sb-mmk .entry-content .cfgf-photo img,
body.cfgf-sb-mmk .entry-content figure.wp-block-image img {
  object-fit: cover;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
body.cfgf-sb-mmk .entry-content .cfgf-photo-portrait img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 30%;
  height: auto;
  max-height: 640px;
}
body.cfgf-sb-mmk .entry-content .cfgf-photo-land img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  max-height: 520px;
}
body.cfgf-sb-mmk .entry-content .cfgf-section-green {
  background: #2F5D3A;
  color: #F4EFE3;
}
body.cfgf-sb-mmk .entry-content .cfgf-section-green h1,
body.cfgf-sb-mmk .entry-content .cfgf-section-green h2,
body.cfgf-sb-mmk .entry-content .cfgf-section-green h3,
body.cfgf-sb-mmk .entry-content .cfgf-section-green p,
body.cfgf-sb-mmk .entry-content .cfgf-section-green li {
  color: #F4EFE3;
}
body.cfgf-sb-mmk .entry-content .cfgf-section-cream {
  background: #F4EFE3;
  color: #1e293b;
}
body.cfgf-sb-mmk .entry-content .cfgf-section-deep {
  background: #274F32;
  color: #F4EFE3;
}
body.cfgf-sb-mmk .entry-content .cfgf-section-deep h2,
body.cfgf-sb-mmk .entry-content .cfgf-section-deep p {
  color: #F4EFE3;
}
body.cfgf-sb-mmk .entry-content .wp-block-button__link,
body.cfgf-sb-mmk .entry-content .wp-element-button {
  background-color: #2F5D3A;
  color: #F4EFE3;
  border: 2px solid #F4EFE3;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 0 4px 0 #1a3320;
}
body.cfgf-sb-mmk .entry-content .wp-block-button__link:hover,
body.cfgf-sb-mmk .entry-content .wp-element-button:hover {
  background-color: #274F32;
  color: #fff;
}
body.cfgf-sb-mmk .entry-content .cfgf-section-green .is-style-outline .wp-block-button__link,
body.cfgf-sb-mmk .entry-content .wp-block-cover .is-style-outline .wp-block-button__link {
  background-color: transparent;
  color: #F4EFE3;
  border: 2px solid #F4EFE3;
  box-shadow: none;
}
body.cfgf-sb-mmk .entry-content .cfgf-section-cream .wp-block-button__link {
  border-color: #2F5D3A;
  box-shadow: 0 4px 0 #1a3320;
}
body.cfgf-sb-mmk .entry-content .cfgf-fence {
  border: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #2F5D3A, transparent);
  width: 40%;
  margin: 2rem auto;
}
body.cfgf-sb-mmk .entry-content .wp-block-cover .wp-block-cover__inner-container {
  max-width: 720px;
}
body.cfgf-sb-mmk .entry-content .wp-block-cover h1 {
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  line-height: 1.15;
  color: #F4EFE3;
  text-shadow: 0 2px 18px rgba(0,0,0,.45);
}
body.cfgf-sb-mmk .entry-content .cfgf-gallery {
  margin: 0;
}
/* Don't restyle the hidden donate placeholders or GiveWP */
body.cfgf-sb-mmk .give-form button,
body.cfgf-sb-mmk .give-form input[type=submit],
body.cfgf-sb-mmk [class*="give-"] button {
  box-shadow: none;
  text-transform: none;
  letter-spacing: normal;
}

/* Cover blocks already include the H1; hide the theme duplicate title on designed pages. */
body.page-id-37 .entry-header,
body.page-id-44 .entry-header,
body.page-id-45 .entry-header,
body.page-id-46 .entry-header,
body.page-id-47 .entry-header,
body.page-id-48 .entry-header,
body.page-id-49 .entry-header,
body.page-id-50 .entry-header,
body.single-post .entry-header { display: none; }

body.cfgf-sb-mmk .entry-content .wp-block-cover p {
  color: #F4EFE3;
  text-shadow: 0 1px 14px rgba(0,0,0,.45);
}

/* cfgf-r3-gap: remove Astra #primary 60px gap that shows as a white strip above full-width heroes (desktop and mobile). */
body.cfgf-sb-mmk #primary {
  margin-top: 0 !important;
}
body.cfgf-sb-mmk .entry-content figcaption,
body.cfgf-sb-mmk .entry-content .wp-element-caption {
  font-size: 0.92rem;
  color: #274F32;
  text-align: center;
  margin-top: 0.4rem;
}
body.cfgf-sb-mmk .entry-content .cfgf-section-green figcaption,
body.cfgf-sb-mmk .entry-content .cfgf-section-deep figcaption {
  color: #F4EFE3;
}
/* Low-res photos (ev-12–16, ev-21): cards / grid tiles only, never full-width backgrounds. */
body.cfgf-sb-mmk .entry-content .cfgf-photo-tile img {
  width: 100%;
  max-width: 360px;
  height: 220px;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
}
body.cfgf-sb-mmk .entry-content .cfgf-photo-tile {
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}
body.cfgf-sb-mmk .entry-content .cfgf-tile-grid {
  margin-top: 0.5rem;
}
@media (min-width: 922px) {
  body.cfgf-sb-mmk #masthead {
    background-color: #ffffff;
  }
}

/* Events first hero is a tall speedway-sign photo; desktop needs more height so the race board is not cropped out. */
@media (min-width: 922px) {
  body.page-id-44 .entry-content > .wp-block-cover:first-child {
    min-height: 620px !important;
  }
  body.page-id-44 .entry-content > .wp-block-cover:first-child img,
  body.page-id-44 .entry-content > .wp-block-cover:first-child .wp-block-cover__image-background {
    object-position: 50% 45% !important;
  }
}
