/* Shared, decorative accents for the service overview and detail pages. */
.mx-service-page {
  --mx-service-leaf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 32' fill='none' stroke='%235f8d7b' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 16h34' opacity='.55'/%3E%3Cpath d='M55 25C45 7 64 3 84 5c-1 17-13 25-29 20Z'/%3E%3Cpath d='m51 30 25-19M62 20l-1-7M67 16l8 2'/%3E%3C/svg%3E");
  --mx-service-leaf-rose: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 32' fill='none' stroke='%23b06a80' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 16h34' opacity='.55'/%3E%3Cpath d='M55 25C45 7 64 3 84 5c-1 17-13 25-29 20Z'/%3E%3Cpath d='m51 30 25-19M62 20l-1-7M67 16l8 2'/%3E%3C/svg%3E");
  --mx-service-leaf-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 32' fill='none' stroke='%23b7d9cb' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 16h34' opacity='.55'/%3E%3Cpath d='M55 25C45 7 64 3 84 5c-1 17-13 25-29 20Z'/%3E%3Cpath d='m51 30 25-19M62 20l-1-7M67 16l8 2'/%3E%3C/svg%3E");
}

.mx-service-page .mx-detail-section:not(.mx-nature-section) h2,
.mx-service-page .mx-service-section h2,
.mx-service-page .mx-section-intro h2,
.mx-service-page .mx-service-seasonal-section h2 { text-wrap: balance; }
.mx-service-page .mx-detail-section:not(.mx-nature-section) h2::after,
.mx-service-page .mx-service-section h2::after,
.mx-service-page .mx-section-intro h2::after,
.mx-service-page .mx-service-seasonal-section h2::after {
  content: "";
  display: block;
  width: 96px;
  height: 32px;
  margin-top: 20px;
  background: var(--mx-service-leaf) center / contain no-repeat;
}
.mx-service-page .mx-detail-section.is-style-soft:not(.mx-nature-section) h2::after,
.mx-service-page .mx-nutrients h2::after,
.mx-service-page .mx-service-seasonal-section h2::after { background-image: var(--mx-service-leaf-rose); }
.mx-service-page .mx-longevity h2::after { background-image: var(--mx-service-leaf-light); }
.mx-service-page .mx-detail-section.is-style-soft:not(.mx-nature-section) {
  border-radius: 24px;
  background: radial-gradient(ellipse at top right, rgba(216, 234, 217, .55), transparent 65%), linear-gradient(120deg, #f0f7f0, #f7faf5);
  box-shadow: inset 0 0 0 1px rgba(26, 74, 64, .045);
}
.mx-service-page .mx-detail-grid > .wp-block-column {
  border: 1px solid rgba(26, 74, 64, .09);
  box-shadow: 0 5px 18px rgba(26, 74, 64, .035);
}
.mx-service-page .mx-detail-grid .mx-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 7px;
  border: 1px solid rgba(26, 74, 64, .14);
  border-radius: 50%;
  background: var(--mx-sage-soft);
  color: var(--mx-green);
}
.mx-service-page .mx-callout {
  background: linear-gradient(135deg, #f4d9df, #f9eceb);
  box-shadow: inset 0 0 0 1px rgba(176, 106, 128, .12);
}
.mx-service-page .mx-nutrient-card {
  background-image: linear-gradient(140deg, rgba(255, 255, 255, .28), transparent);
  box-shadow: inset 0 0 0 1px rgba(26, 74, 64, .06);
}
@media (max-width: 959px) {
  .mx-service-page .mx-detail-section.is-style-soft:not(.mx-nature-section) { border-radius: 18px; }
  .mx-service-page .mx-detail-section:not(.mx-nature-section) h2::after,
  .mx-service-page .mx-service-section h2::after,
  .mx-service-page .mx-section-intro h2::after,
  .mx-service-page .mx-service-seasonal-section h2::after { width: 76px; height: 26px; margin-top: 16px; }
}
/* Keep copy comfortably inset and aligned with its section heading. */
.mx-service-page .mx-detail-section:not(.mx-nature-section) { padding-inline: clamp(20px, 3vw, 40px); }
.mx-service-page .mx-detail-section:not(.mx-nature-section) > :is(p:not(.mx-eyebrow), ul, ol, h3),
.mx-service-page .mx-detail-section:not(.mx-nature-section) > .wp-block-group:not(.mx-faq-list) > :is(p:not(.mx-eyebrow), ul, ol, h3) { max-width: 800px; margin-inline: auto !important; }

/* Editable alternating text sections on service detail pages. */
.mx-service-page .mx-detail-section.mx-detail-split { padding: 48px 24px; }
.mx-detail-split > .mx-detail-split-row {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  grid-template-areas: "heading copy";
  align-items: start;
  gap: clamp(32px, 4vw, 64px);
  width: 100%;
  max-width: 1180px;
  margin: 0 auto !important;
}
.mx-detail-split > .mx-detail-split-row.is-reversed { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); grid-template-areas: "copy heading"; }
.mx-detail-split-heading { grid-area: heading; min-width: 0; margin: 0 !important; }
.mx-detail-split-heading > h2 { max-width: none; margin: 0 !important; font-size: clamp(2rem, 2.8vw, 3rem); line-height: 1.1 !important; hyphens: manual; overflow-wrap: break-word; text-wrap: balance; }
.mx-detail-split-copy { grid-area: copy; min-width: 0; margin: 0 !important; padding-left: 24px; border-left: 1px solid rgba(26, 74, 64, .14); }
.mx-detail-split-row.is-reversed > .mx-detail-split-copy { padding-left: 0; padding-right: 24px; border-left: 0; border-right: 1px solid rgba(176, 106, 128, .2); }
.mx-detail-split-copy > :is(p, ul, ol) { margin: 0 0 18px !important; }
.mx-detail-split-copy > h3 { margin: 24px 0 12px !important; }
.mx-detail-split-copy > :first-child { margin-top: 0 !important; }
.mx-detail-split-copy > :last-child { margin-bottom: 0 !important; }
@media (max-width: 959px) {
  .mx-service-page .mx-detail-section.mx-detail-split { padding: 36px 20px; }
  .mx-detail-split > .mx-detail-split-row,
  .mx-detail-split > .mx-detail-split-row.is-reversed { grid-template-columns: minmax(0, 1fr); grid-template-areas: "heading" "copy"; gap: 24px; }
  .mx-detail-split-heading > h2 { font-size: clamp(2rem, 5vw, 2.65rem); }
  .mx-detail-split-row > .mx-detail-split-copy,
  .mx-detail-split-row.is-reversed > .mx-detail-split-copy { padding: 0; border: 0; }
}
.mx-service-page .mx-detail-split-row.is-reversed h2::after { background-image: var(--mx-service-leaf-rose); }
