/* Membership page blocks: acf/mp-cta, acf/mp-impact, acf/mp-faq, acf/mp-join-options */

.mp-block {
  --mp-green: #065629;
  --mp-light: #98b53b;
  --mp-button: #7a9b3d;
  --mp-button-hover: #657f32;
  --mp-rule: #bcbfbb;
  position: relative;
  padding: 0 20px;
  color: #231f20;
  font-size: 16px;
  line-height: 1.45;
}

.mp-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.mp-block p {
  margin: 0 0 14px;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.mp-block p:last-child {
  margin-bottom: 0;
}

.mp-block .mp-heading {
  margin: 0 0 22px;
  color: var(--mp-green);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
}

.mp-block.is-preview a {
  pointer-events: none;
}

.mp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 63px;
  padding: 0 30px;
  border-radius: 10px;
  background: var(--mp-button);
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.mp-button:hover,
.mp-button:focus {
  background: var(--mp-button-hover);
  color: #fff;
  text-decoration: none;
}

.mp-empty {
  padding: 20px;
  border: 1px dashed #999;
  text-align: center;
}

/* Call to action */
.mp-cta {
  padding-top: 90px;
  padding-bottom: 50px;
}

.mp-cta__text {
  font-size: 18px;
}

.mp-cta__actions {
  margin-top: 46px;
  text-align: center;
}

/* Impact stats */
.mp-impact {
  padding: 0;
}

.mp-impact__photo {
  height: clamp(200px, 25.5vw, 480px);
  overflow: hidden;
}

.mp-impact__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-impact__band {
  padding: 52px 20px 56px;
  background: var(--mp-green);
  color: #fff;
}

.mp-block .mp-impact__title {
  margin: 0 0 50px;
  color: var(--mp-light);
  font-size: 31px;
  font-weight: 700;
  line-height: 1.2;
}

.mp-impact__stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mp-impact__stats li {
  margin: 0;
  padding: 0;
}

.mp-impact__stats li::before {
  display: none;
}

.mp-impact__number {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 35px;
  font-weight: 700;
  line-height: 1.1;
}

.mp-impact__label {
  display: block;
  max-width: 200px;
  color: #fff;
  font-size: 16px;
  line-height: 1.4;
}

.mp-impact__footer {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

.mp-impact__footer a {
  color: var(--mp-light);
  text-decoration: none;
}

.mp-impact__footer a:hover,
.mp-impact__footer a:focus {
  color: #fff;
  text-decoration: underline;
}

/* FAQ accordion */
.mp-faq {
  padding-top: 90px;
}

.mp-block .mp-heading--dark {
  margin-bottom: 18px;
  font-size: 31px;
}

.mp-faq__item {
  border-bottom: 2px solid var(--mp-rule);
}

.mp-faq__item summary {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 0;
  cursor: pointer;
  list-style: none;
}

.mp-faq__item summary::-webkit-details-marker {
  display: none;
}

.mp-faq__icon {
  position: relative;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
}

.mp-faq__icon::before,
.mp-faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--mp-green);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mp-faq__icon::before {
  width: 40px;
  height: 8px;
}

.mp-faq__icon::after {
  width: 8px;
  height: 40px;
}

.mp-faq__item[open] .mp-faq__icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg);
}

.mp-faq__question {
  color: #231f20;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.mp-faq__item summary:hover .mp-faq__question,
.mp-faq__item summary:focus-visible .mp-faq__question {
  color: var(--mp-green);
}

.mp-faq__answer {
  padding: 0 0 28px 60px;
  font-size: 17px;
}

.mp-faq__answer a,
.mp-join a {
  color: var(--mp-green);
  text-decoration: underline;
}

/* Join by mail or phone */
.mp-join {
  padding-top: 56px;
  padding-bottom: 72px;
}

.mp-join .mp-heading {
  margin-bottom: 50px;
}

.mp-join__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.mp-join__card {
  overflow: hidden;
  border: 2px solid var(--mp-rule);
  border-radius: 14px;
  background: #fff;
}

.mp-block .mp-join__card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 17px 24px;
  background: var(--mp-green);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.mp-join__icon {
  display: inline-flex;
  color: #fff;
}

.mp-join__card-body {
  padding: 22px 24px 28px;
  font-size: 16px;
  line-height: 1.5;
}

.mp-join__footer {
  margin-top: 32px;
  font-size: 18px;
}

@media screen and (max-width: 1023px) {
  .mp-impact__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 36px;
  }
}

@media screen and (max-width: 767px) {
  .mp-block {
    padding: 0 16px;
  }

  .mp-block .mp-heading,
  .mp-block .mp-heading--dark,
  .mp-block .mp-impact__title {
    font-size: 26px;
  }

  .mp-cta__text,
  .mp-impact__footer,
  .mp-join__footer {
    font-size: 16px;
  }

  .mp-faq__question {
    font-size: 16px;
  }

  .mp-block .mp-join__card-title {
    font-size: 22px;
  }

  .mp-cta,
  .mp-faq {
    padding-top: 56px;
  }

  .mp-impact {
    padding: 0;
  }

  .mp-impact__band {
    padding: 40px 16px 44px;
  }

  .mp-impact__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }

  .mp-impact__number {
    font-size: 26px;
  }

  .mp-faq__item summary {
    gap: 14px;
    padding: 20px 0;
  }

  .mp-faq__icon {
    flex-basis: 26px;
    width: 26px;
    height: 26px;
  }

  .mp-faq__icon::before {
    width: 26px;
    height: 6px;
  }

  .mp-faq__icon::after {
    width: 6px;
    height: 26px;
  }

  .mp-faq__answer {
    padding-left: 40px;
  }

  .mp-join {
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .mp-join__cards {
    grid-template-columns: 1fr;
  }
}

/* Membership page (post 39083) hero, intro and top button, sized to the mockup.
   Scoped to the Stackable block IDs on that page so nothing else is affected. */
@media screen and (min-width: 1024px) {
  .stk-6697708 h1.wp-block-heading {
    margin: 0;
    font-size: 44px;
    line-height: 1.2;
  }

  .stk-6697708 h1.wp-block-heading span {
    margin-bottom: 0 !important;
  }

  .stk-6697708 h2.wp-block-heading {
    margin: 4px 0 0;
    font-size: 40px;
    font-weight: 400;
    line-height: 1.25;
  }

  .stk-fb77e0b {
    padding-top: 44px;
  }

  .stk-ef2644e h2.wp-block-heading {
    margin-bottom: 10px;
    font-size: 36px;
  }

  .stk-ef2644e p {
    margin-top: 8px;
    font-size: 18px;
    line-height: 1.4;
  }

  .wp-block-stackable-divider.stk-abf1594 {
    max-width: 1137px;
    margin: 60px auto 70px;
  }

  .stk-block.stk-block-divider.stk-abf1594 hr.stk-block-divider__hr {
    height: 2px;
    background-color: #065629;
  }

  .wp-block-stackable-button.stk-cafe7f9 .stk-button {
    min-height: 83px !important;
    padding-right: 41px !important;
    padding-left: 41px !important;
  }

  .wp-block-stackable-button.stk-cafe7f9 .stk-button__inner-text {
    font-size: 28px !important;
    font-weight: 600;
  }

  /* Current Member Login band: match intro heading/body + Join Now button sizing */
  .stk-96e5614 h2.wp-block-heading {
    margin-bottom: 10px;
    font-size: 36px;
  }

  .stk-96e5614 p {
    margin-top: 8px;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 400;
  }

  .stk-96e5614 p strong {
    font-weight: 400;
  }

  .wp-block-stackable-button.stk-1df7f5f .stk-button {
    min-height: 83px !important;
    padding-right: 41px !important;
    padding-left: 41px !important;
  }

  .wp-block-stackable-button.stk-1df7f5f .stk-button__inner-text {
    font-size: 28px !important;
    font-weight: 600;
  }
}
