.smp-pastoral-page-header,
.smp-pastoral-page {
  --smp-pastoral-bg: #f7faf8;
  --smp-pastoral-surface: #fff;
  --smp-pastoral-ink: #0e2e31;
  --smp-pastoral-copy: #3d5751;
  --smp-pastoral-muted: #526a63;
  --smp-pastoral-teal: #0f766e;
  --smp-pastoral-deep: #0a4a50;
  --smp-pastoral-mint: #e8f2ed;
  --smp-pastoral-gold: #d3a43a;
  --smp-pastoral-line: #d6e2dc;
  color: var(--smp-pastoral-ink);
}

.smp-pastoral-page {
  background-color: var(--smp-pastoral-surface);
  font: 400 0.9375rem/1.55 "Figtree", system-ui, sans-serif;
}

.smp-pastoral-page-header {
  background: var(--smp-pastoral-surface);
}

.smp-pastoral-page-header h1,
.smp-pastoral-page-header h2,
.smp-pastoral-page-header p {
  font-family: "Figtree", system-ui, sans-serif;
}

.smp-pastoral-header-container {
  max-width: 960px;
}

.smp-pastoral-banner {
  position: relative;
  z-index: 1;
  min-height: 112px;
  color: #fff;
  background:
    linear-gradient(135deg, rgb(0 74 80 / 92%), rgb(7 155 145 / 78%)),
    repeating-linear-gradient(135deg, transparent 0 65px, rgb(255 255 255 / 18%) 66px 72px);
  background-color: #087e82;
  box-shadow: 0 14px 30px rgb(4 42 45 / 52%), 0 4px 10px rgb(4 42 45 / 38%);
}

.smp-pastoral-banner .container {
  display: flex;
  min-height: 112px;
  align-items: center;
  gap: 1.5rem;
}

.smp-pastoral-banner-emblem {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  object-fit: contain;
}

.smp-pastoral-banner-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.smp-pastoral-banner-copy p {
  margin: 0.4rem 0 0;
  color: #fff;
  font-size: 0.85rem;
  line-height: 1.35;
}

.smp-pastoral-page *,
.smp-pastoral-page *::before,
.smp-pastoral-page *::after {
  box-sizing: border-box;
}

.smp-pastoral-shell {
  width: min(100% - 3rem, 1120px);
  margin: 0 auto;
}

.smp-pastoral-page h1,
.smp-pastoral-page h2,
.smp-pastoral-page h3,
.smp-pastoral-page blockquote {
  margin: 0;
  font-family: "Figtree", sans-serif;
}

.smp-pastoral-page p {
  margin: 0 0 0.9rem;
  color: var(--smp-pastoral-copy);
}

.smp-pastoral-page section {
  padding: clamp(2rem, 4vw, 3rem) 0;
}

.smp-pastoral-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--smp-pastoral-teal);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.smp-pastoral-eyebrow::before {
  width: 2.2rem;
  height: 2px;
  flex: 0 0 2.2rem;
  background: var(--smp-pastoral-gold);
  content: "";
}

.smp-pastoral-page section.smp-pastoral-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  grid-template-areas: "photo copy";
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding-top: clamp(1rem, 2vw, 1.5rem);
  padding-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.smp-pastoral-hero-copy {
  grid-area: copy;
  min-width: 0;
}

.smp-pastoral-intro p {
  max-width: 68ch;
}

.smp-pastoral-understanding-copy h2,
.smp-pastoral-page section > h2 {
  margin: 0.65rem 0 0.9rem;
  color: var(--smp-pastoral-ink);
  font-size: clamp(1.25rem, 2.8vw, 1.65rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.smp-pastoral-understanding-copy p {
  font-size: 0.9375rem;
  line-height: 1.55;
}

.smp-pastoral-understanding-copy p:last-child {
  margin-bottom: 0;
}

.smp-pastoral-photo {
  grid-area: photo;
  width: min(100%, 350px);
  margin: 0;
  justify-self: center;
}

.smp-pastoral-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  object-fit: contain;
}

.smp-pastoral-scripture {
  grid-area: scripture;
  align-self: start;
  width: 100%;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid var(--smp-pastoral-line);
  border-radius: 20px;
  color: #fff;
  background-color: var(--smp-pastoral-deep);
  box-shadow: 0 12px 32px -24px rgb(10 74 80 / 40%);
}

.smp-pastoral-scripture h3 {
  margin-bottom: 0.4rem;
  color: var(--smp-pastoral-gold);
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  font-weight: 500;
}

.smp-pastoral-scripture p {
  max-width: 42ch;
  margin: 0;
  color: #d5efeb;
  font-size: 0.94rem;
  line-height: 1.55;
}

.smp-pastoral-reference {
  display: inline-flex;
  margin-top: 0.85rem;
  padding: 0.2rem 0.75rem;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 999px;
  color: #fff;
  background: rgb(255 255 255 / 10%);
  font-size: 0.78rem;
  line-height: 1.5;
}

.smp-pastoral-page section.smp-pastoral-definition {
  padding-top: 0.75rem;
  padding-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.smp-pastoral-definition-card {
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.25rem, 4vw, 3rem);
  border: 1px solid var(--smp-pastoral-line);
  border-radius: 18px;
  background: var(--smp-pastoral-mint);
  text-align: center;
}

.smp-pastoral-definition-card .smp-pastoral-eyebrow {
  justify-content: center;
}

.smp-pastoral-definition-card .smp-pastoral-eyebrow::after {
  width: 2.2rem;
  height: 2px;
  flex: 0 0 2.2rem;
  background: var(--smp-pastoral-gold);
  content: "";
}

.smp-pastoral-definition-card blockquote {
  max-width: 48ch;
  margin: 0.85rem auto 0;
  color: var(--smp-pastoral-deep);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.5;
}

.smp-pastoral-definition-card small {
  display: block;
  margin-top: 0.85rem;
  color: var(--smp-pastoral-muted);
  font-size: 0.875rem;
}

.smp-pastoral-card-grid,
.smp-pastoral-fact-grid {
  display: grid;
  gap: 1rem;
}

.smp-pastoral-card {
  display: grid;
  position: relative;
  overflow: hidden;
  grid-template-columns: 56px minmax(0, 1fr);
  grid-template-areas:
    "icon title"
    "icon body";
  align-content: start;
  align-items: start;
  column-gap: 1rem;
  padding: clamp(1.15rem, 2vw, 1.5rem);
  border: 1px solid var(--smp-pastoral-line);
  border-radius: 18px;
  background: var(--smp-pastoral-surface);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.smp-pastoral-card:hover {
  transform: translateY(-3px);
  border-color: var(--smp-pastoral-teal);
  box-shadow: 0 16px 36px -24px rgb(10 74 80 / 50%);
}

.smp-pastoral-card-letter {
  position: absolute;
  top: 0.5rem;
  right: 1.1rem;
  color: var(--smp-pastoral-mint);
  font-family: "Figtree", sans-serif;
  font-size: 3.6rem;
  line-height: 1;
}

.smp-pastoral-icon {
  display: grid;
  grid-area: icon;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  background: var(--smp-pastoral-mint);
}

.smp-pastoral-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--smp-pastoral-deep);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.smp-pastoral-card h3 {
  grid-area: title;
  position: relative;
  margin-bottom: 0.4rem;
  color: var(--smp-pastoral-deep);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
}

.smp-pastoral-card p {
  grid-area: body;
}

.smp-pastoral-card p,
.smp-pastoral-fact p {
  margin: 0;
  color: var(--smp-pastoral-copy);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.smp-pastoral-fact {
  padding: 1rem 1.15rem;
  border: 1px solid var(--smp-pastoral-line);
  border-top: 2px solid var(--smp-pastoral-gold);
  border-radius: 0 0 16px 16px;
  background: var(--smp-pastoral-surface);
}

.smp-pastoral-fact h3 {
  margin-bottom: 0.3rem;
  color: var(--smp-pastoral-deep);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
}

.smp-pastoral-page section.smp-pastoral-closing {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(2rem, 4vw, 3rem);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 22px;
  color: #fff;
  background: var(--smp-pastoral-deep);
}

.smp-pastoral-closing .smp-pastoral-eyebrow {
  color: var(--smp-pastoral-gold);
}

.smp-pastoral-closing h2 {
  position: relative;
  max-width: 28ch;
  margin: 0.65rem 0 0.7rem;
  color: #fff;
  font-size: clamp(1.25rem, 2.8vw, 1.65rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.smp-pastoral-closing p {
  position: relative;
  max-width: 62ch;
  color: #e2eeea;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.smp-pastoral-closing p:last-child {
  margin-bottom: 0;
}

.smp-pastoral-closing-photo {
  width: min(100%, 150px);
  margin: 0;
  justify-self: center;
}

.smp-pastoral-closing-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 16px 36px -24px rgb(0 0 0 / 40%);
}

@media (min-width: 640px) {
  .smp-pastoral-fact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .smp-pastoral-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 759.98px) {
  .smp-pastoral-banner,
  .smp-pastoral-banner .container {
    min-height: 96px;
  }

  .smp-pastoral-banner .container {
    gap: 1rem;
  }

  .smp-pastoral-banner-emblem {
    width: 52px;
    height: 52px;
  }

  .smp-pastoral-banner-copy h1 {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
  }

  .smp-pastoral-banner-copy p {
    font-size: 0.75rem;
  }

  .smp-pastoral-page section.smp-pastoral-hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "photo"
      "copy";
    gap: 1.5rem;
    padding-top: 1rem;
  }

  .smp-pastoral-photo {
    width: min(100%, 300px);
  }

  .smp-pastoral-page section.smp-pastoral-closing {
    grid-template-columns: minmax(0, 1fr);
  }

  .smp-pastoral-closing-photo {
    width: min(100%, 150px);
  }
}

@media (max-width: 575.98px) {
  .smp-pastoral-shell {
    width: min(100% - 2rem, 1120px);
  }

  .smp-pastoral-banner,
  .smp-pastoral-banner .container {
    min-height: 96px;
  }

  .smp-pastoral-banner .container {
    justify-content: center;
    gap: 0.75rem;
  }

  .smp-pastoral-banner-emblem {
    width: 46px;
    height: 46px;
  }

  .smp-pastoral-banner-copy h1 {
    font-size: 1.15rem;
  }

  .smp-pastoral-banner-copy p {
    max-width: none;
    font-size: 0.72rem;
    line-height: 1.3;
  }

  .smp-pastoral-photo {
    width: min(100%, 250px);
  }

  .smp-pastoral-closing-photo {
    width: min(100%, 130px);
  }

  .smp-pastoral-card-grid,
  .smp-pastoral-fact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

}

@media (prefers-reduced-motion: reduce) {
  .smp-pastoral-card {
    transition: none;
  }

  .smp-pastoral-card:hover {
    transform: none;
  }
}
