/* Designed sections shared by both ministries; each side supplies its own colors and display font. */
.side-ioi { --accent: #b3262a; --accent-deep: #6e1010; --accent-soft: #e9ecee; --ink: #1a1a1a; --muted: #5b5b5b; --dark: #0f0f10; --dark-2: #1a1a1c; --light: #f2f3f4; --line: #d3d8db; --shadow-tint: 0,0,0; --display-font: 'Montserrat', sans-serif; --display-weight: 700; --display-case: none; }
.side-soi { --accent: #F5A1A0; --accent-deep: #c26d6c; --accent-soft: #fbe9e8; --ink: #2b1c1c; --muted: #6a5a5a; --dark: #1f1b1b; --dark-2: #2a2424; --light: #faf6f4; --line: #ddd6d4; --shadow-tint: 120,60,60; --display-font: 'Aboreto', serif; --display-weight: 400; --display-case: uppercase; }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.gx { padding: clamp(64px, 9vw, 120px) clamp(16px, 4vw, 48px); font-family: 'Cabin', sans-serif; }
.gx__wrap { max-width: 1200px; margin: 0 auto; }
.gx--dark { background: var(--dark); color: #fff; }
.gx--light { background: var(--light); color: var(--ink); }
.gx--blush { background: var(--accent-soft); color: var(--ink); }
.gx__eyebrow { margin: 0 0 12px; text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.gx--blush .gx__eyebrow { color: var(--accent-deep); }
.gx__title { margin: 0 auto 18px; text-align: center; font-family: var(--display-font); font-weight: var(--display-weight); text-transform: var(--display-case); font-size: clamp(32px, 4.2vw, 54px); line-height: 1.08; letter-spacing: .01em; text-wrap: balance; }
.gx__intro { max-width: 640px; margin: 0 auto; text-align: center; font-size: clamp(18px, 1.5vw, 20px); line-height: 1.6; opacity: .85; text-wrap: balance; }

/* The journey: three numbered steps joined by a line. */
.gx-steps { list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 32px); counter-reset: step; position: relative; }
.gx-steps::before { content: ""; position: absolute; top: 34px; left: 8%; right: 8%; height: 1px; background: linear-gradient(90deg, transparent, var(--accent) 15%, var(--accent) 85%, transparent); opacity: .5; }
.gx-step { position: relative; background: var(--dark-2); border: 1px solid rgba(255,255,255,.07); border-radius: 18px; padding: 28px 26px 30px; }
.gx-step__num {
  display: grid; place-items: center; width: 68px; height: 68px; margin: -62px auto 18px; border-radius: 50%;
  background: var(--dark); border: 2px solid var(--accent); color: #fff; font-family: var(--display-font); font-size: 24px; font-weight: 700;
  box-shadow: 0 0 0 6px var(--dark), 0 0 24px color-mix(in srgb, var(--accent) 45%, transparent);
}
.gx-step__title { margin: 0 0 12px; text-align: center; font-family: 'Cabin', sans-serif; font-size: 22px; font-weight: 700; line-height: 1.25; color: #fff; }
.gx-step__lead { margin: 0 0 14px; text-align: center; font-size: 17px; font-weight: 600; line-height: 1.5; color: #c3c9cd; }
.side-soi .gx-step__lead { color: #f7b9b8; }
.gx-step__body p { margin: 0 0 12px; font-size: 16px; line-height: 1.65; color: rgba(255,255,255,.78); }
.gx-step__body p:last-child { margin-bottom: 0; }

/* Values: a two-column list of commitments. */
.gx-values { list-style: none; margin: clamp(32px, 5vw, 56px) auto 0; padding: 0; max-width: 1000px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; }
.gx-value { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: 14px; padding: 18px 20px; font-size: 18px; line-height: 1.5; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(var(--shadow-tint),.06); }
.gx-value__icon { flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); }
.gx-value__icon svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Why join: three cards with icons. */
.gx-cards { list-style: none; margin: clamp(36px, 5vw, 60px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px); }
.gx-card { background: #fff; border-radius: 18px; padding: 32px 28px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 14px 34px rgba(0,0,0,.06); transition: transform .2s ease, box-shadow .2s ease; }
.gx-card:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 20px 44px rgba(0,0,0,.1); }
.gx-card__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--accent-soft); margin-bottom: 18px; }
.gx-card__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--accent-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gx-card__title { margin: 0 0 10px; font-family: 'Cabin', sans-serif; font-size: 22px; font-weight: 700; line-height: 1.25; color: var(--ink); }
.gx-card p { margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--muted); }

@media (max-width: 900px) {
  .gx-steps { grid-template-columns: 1fr; gap: 54px; max-width: 560px; margin-inline: auto; }
  .gx-steps::before { top: 0; bottom: 0; left: 50%; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, transparent, var(--accent) 6%, var(--accent) 94%, transparent); }
  .gx-cards { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .gx-values { grid-template-columns: 1fr; }
}

/* ---------- Old builder sections, brought in line ---------- */
/* Intro photo-and-text: eyebrow-sized ministry name, generous text. */
.posts .post-image .post--title h2, .posts .post-image .post--title h1 { font-family: var(--display-font) !important; font-weight: var(--display-weight) !important; text-transform: var(--display-case); color: var(--ink) !important; }
.posts .post-image .post--title * { color: inherit !important; }
.posts .post-image .description, .posts .post-image .description * { color: var(--muted) !important; }
.posts .post-image .post-button--wrapper { justify-content: flex-start !important; }

/* Questions form: a card on the ministry's color. */
.posts .post-email_form { --ss-post-background-color: var(--accent-deep) !important; background: linear-gradient(135deg, #851a1a, #5c0e0e) !important; }
.side-soi .posts .post-email_form { background: linear-gradient(135deg, #e89a99, #c97d7c) !important; }
.posts .post-email_form .post--title h2, .posts .post-email_form .post--title h1 { font-family: var(--display-font) !important; text-transform: var(--display-case); }
.posts .post-email_form, .posts .post-email_form .post--title *, .posts .post-email_form .description * { color: #fff !important; }
.posts .post-email_form form { background: #fff; border-radius: 18px; padding: clamp(20px, 3vw, 32px); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.posts .post-email_form input:not([type="submit"]), .posts .post-email_form textarea {
  width: 100%; border: 1.5px solid var(--line) !important; border-radius: 10px !important; padding: 13px 14px !important;
  font: 16px 'Cabin', sans-serif !important; color: #222 !important; background: #fff !important; box-shadow: none !important;
}
.posts .post-email_form input:focus, .posts .post-email_form textarea:focus { outline: none; border-color: var(--accent-deep) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent) !important; }
.posts .post-email_form input[type="submit"], .posts .post-email_form button[type="submit"] {
  width: 100%; min-height: 50px; border: 0 !important; border-radius: 999px !important; cursor: pointer;
  background: var(--ink) !important; color: #fff !important; font: 700 16px 'Cabin', sans-serif !important; letter-spacing: .02em;
}
.side-ioi .posts .post-email_form input[type="submit"], .side-ioi .posts .post-email_form button[type="submit"] { background: var(--accent) !important; }

/* Hero: a touch of depth behind the headline. */
.posts .post-hero_image .post--title h1, .posts .post-hero_image .post--title h2 { text-shadow: 0 2px 30px rgba(0,0,0,.35); }

/* Footer contact band */
footer .gwnf__cta { border-radius: 0; }
footer .gwnf__cta .gwnf__btn, footer .gwnf__cta a { border-radius: 999px; }

/* ---------- No word left alone on a line ---------- */
.site-container :is(h1, h2, h3, h4, h5, .gwnf__cta-title, .gx__title, .shop__title) { text-wrap: balance; }
.site-container :is(p, li, blockquote, .description) { text-wrap: pretty; }

/* ---------- Contact band before the footer: the ministry's own color, never the footer's dark ---------- */
footer .gwnf__cta { border-bottom: 0; }
.side-ioi footer .gwnf__cta { background: #851a1a; color: #fff; }
.side-ioi footer .gwnf__cta .gwnf__cta-title { color: #fff !important; }
.side-ioi footer .gwnf__cta .gwnf__btn--solid { background: #fff !important; color: #851a1a !important; }
.side-soi footer .gwnf__cta { background: #f5a1a0; color: #2b1c1c; }
.side-soi footer .gwnf__cta .gwnf__cta-title { color: #2b1c1c !important; }
.side-soi footer .gwnf__cta .gwnf__cta-text { opacity: .9; }
.side-soi footer .gwnf__cta .gwnf__btn--solid { background: #2b1c1c !important; color: #fff !important; }
/* A page that already ends with the contact form doesn't need the band too. */
.site-container:has(.posts > .post-container:last-child .post-email_form) footer .gwnf__cta { display: none; }
