/* Clean-up layer over the old site builder's styles, for both ministries.
   One type scale, one spacing rhythm, solid backgrounds (no old page photo peeking through between sections),
   and the header sitting on the hero photo instead of on a strip of its own. */

/* ---------- Brand fonts ---------- */
.side-ioi { --heading: 'Montserrat', sans-serif; --display: 'Montserrat', sans-serif; --heading-weight: 700; --heading-track: 0; --page-bg: #0b0b0b; }
.side-soi { --heading: 'Cabin', sans-serif; --display: 'Aboreto', serif; --heading-weight: 600; --heading-track: 0; --page-bg: #1c1a1a; }
.side-hub { --heading: 'Montserrat', sans-serif; --display: 'Montserrat', sans-serif; --heading-weight: 700; --heading-track: 0; --page-bg: #0b1426; }
.site-container { --body: 'Cabin', sans-serif; }

/* No page-wide background photo: it showed through every seam and under the header. */
body:before { background-image: none !important; }
body { background-color: #0b0b0b; }
.site-container.side-ioi, .site-container.side-soi, .site-container.side-hub { background-color: var(--page-bg); }

/* ---------- Spacing rhythm ---------- */
.posts article.post { --ss-post-vertical-spacing: clamp(56px, 7vw, 96px) !important; }
.posts article.post-hero_image { --ss-post-vertical-spacing: clamp(80px, 11vw, 150px) !important; }
.posts article.post-hero_image .post-body { min-height: min(62vh, 620px); display: flex; align-items: center; justify-content: center; }
.posts .post-container + .post-container article.post-hero_image .post-body { min-height: 0; }

/* ---------- Type scale ---------- */
.posts .wysiwyg-text, .posts .wysiwyg-text p, .posts .wysiwyg-text li, .posts .wysiwyg-text div { font-family: var(--body); }
.posts [class*="font-size-"] { font-size: inherit !important; line-height: inherit; }
.posts .description, .posts .item--description, .posts .post-text .wysiwyg-text, .posts .menu-item--description {
  font-size: clamp(17px, 1.25vw, 19px) !important; line-height: 1.65 !important;
}
.posts [style*="text-align:justify"], .posts [style*="text-align: justify"] { text-align: left !important; }
.posts .description p, .posts .item--description p { margin: 0 0 1em; }

/* Hero headline */
.posts .post-hero_image .post--title h1, .posts .post-hero_image .post--title h2 {
  font-family: var(--display) !important; font-weight: 700; line-height: 1.05; letter-spacing: .01em;
  font-size: clamp(40px, 6.4vw, 84px) !important; margin: 0 0 .35em; text-wrap: balance;
}
.side-soi .posts .post-hero_image .post--title h1 { font-weight: 400; letter-spacing: .02em; }
.posts .post-hero_image .description { font-size: clamp(18px, 1.6vw, 22px) !important; max-width: 760px; margin-inline: auto; text-wrap: balance; }
.posts .post-hero_image .description strong { font-weight: 600; }

/* Section titles */
.posts .post:not(.post-hero_image) .post--title h1,
.posts .post:not(.post-hero_image) .post--title h2 {
  font-family: var(--display) !important; font-weight: var(--heading-weight); line-height: 1.12;
  font-size: clamp(30px, 3.4vw, 46px) !important; margin: 0 0 .5em; text-wrap: balance;
}
.side-soi .posts .post:not(.post-hero_image) .post--title h1,
.side-soi .posts .post:not(.post-hero_image) .post--title h2 { font-weight: 400; }

/* Card and column titles, FAQ questions: readable, not shouting */
.posts .item--title, .posts .item--title h2, .posts .item--title h3, .posts .item--title div,
.posts .column h3, .posts .column h2, .posts .post-column_set h3,
.posts .menu-item--title, .posts .menu-item--title * {
  font-family: var(--heading) !important; font-weight: 700 !important; font-size: clamp(20px, 1.7vw, 24px) !important;
  line-height: 1.25 !important; letter-spacing: 0 !important; text-transform: none !important;
}
.posts .item--description h2, .posts .item--description h3 { font-family: var(--body) !important; font-size: inherit !important; font-weight: 600; line-height: 1.5; margin: 0 0 .6em; }
.posts .description h3 { font-family: var(--heading) !important; font-size: 21px !important; font-weight: 700; margin: 1.2em 0 .4em; }

/* Lists that were built as giant headings inside bullets (the Values list) */
.posts .description li h1, .posts .description li h2, .posts .description li h3 {
  font-family: var(--body) !important; font-size: clamp(18px, 1.4vw, 21px) !important; font-weight: 600 !important; line-height: 1.45; margin: 0;
}
.posts .description ul { padding-left: 1.2em; }
.posts .description li { margin: .45em 0; }

/* Comfortable reading width for text-only sections */
.posts .post-text .post-body, .posts .post-menu .post-body { max-width: 1100px; margin-inline: auto; }
.posts .post-text .description { max-width: 72ch; }

/* ---------- Photos and overlays ---------- */
.posts .post-image .photo--inner-wrapper img, .posts .item img { border-radius: 10px; }
.posts .post-image.layout--full_width_left_photo .photo--inner-wrapper img,
.posts .post-image.layout--full_width_right_photo .photo--inner-wrapper img { border-radius: 0; }
/* Sections with a photo behind them get an even, darker wash so the text always reads. */
.posts article.post[style*="background-image"], .posts article.post-hero_image, .posts article.parallax {
  --ss-post-overlay: color-mix(in srgb, #000 58%, transparent) !important;
}

/* ---------- Footer: solid, no photo behind it ---------- */
footer, footer .gwnf, footer .gwnf__cta { --ss-footer-background-opacity: 1 !important; }
footer::before, footer::after { display: none !important; }
footer .gwnf { background: var(--page-bg); }
footer .gwnf__cta { background: rgba(255,255,255,.04); }
.side-ioi footer .gwnf__cta-title, .side-hub footer .gwnf__cta-title { font-family: 'Montserrat', sans-serif; }
.side-soi footer .gwnf__cta-title { font-family: 'Aboreto', serif; }

/* ---------- Buttons ---------- */
.posts .site-button, header .site-button { font-family: var(--body); font-weight: 700; letter-spacing: .02em; padding: 12px 24px; border-radius: 999px; }

/* ---------- Phones ---------- */
@media (max-width: 767px) {
  .posts article.post-hero_image .post-body { min-height: 0; }
}

/* FAQ questions and answers */
.posts .post-menu .item--name, .posts .post-menu .item--name * {
  font-family: var(--heading) !important; font-weight: 700 !important; font-size: clamp(19px, 1.5vw, 22px) !important;
  line-height: 1.3 !important; letter-spacing: 0 !important; text-transform: none !important;
}
.posts .post-menu .item--description { font-size: clamp(16px, 1.15vw, 18px) !important; line-height: 1.6 !important; margin-top: .4em; }
.posts .post-menu .item { padding-block: 18px; }

/* Interior pages get a shorter hero; the home page keeps the tall one. */
.site-container:not([data-page="home"]) .posts article.post-hero_image .post-body { min-height: 0; }
.site-container:not([data-page="home"]) .posts article.post-hero_image { --ss-post-vertical-spacing: clamp(56px, 7vw, 96px) !important; }
.site-container:not([data-page="home"]) .posts .post-hero_image .post--title h1 { font-size: clamp(36px, 5vw, 64px) !important; }

/* Sisters blush sections and buttons: dark text, so it reads (white on blush was too faint). */
.side-soi .posts article.bg-blush, .side-soi .posts article.bg-blush * { color: #2b1c1c !important; }
.side-soi .posts article.bg-blush input, .side-soi .posts article.bg-blush textarea { color: #222 !important; }
.side-soi .posts article.bg-blush .site-button, .side-soi .posts article.bg-blush input[type="submit"] { color: #fff !important; }
.side-soi .site-button[style*="30560"] { --ss-site-button-text-color: #2b1c1c !important; color: #2b1c1c !important; }

/* Phones: photo-and-text sections show the words first and the photo below, edge to edge.
   With the photo on top it sat right under the hero photo, two photos stacked with nothing between. */
@media (max-width: 767px) {
  .posts .post-image > .post-body > .content { display: flex; flex-direction: column; }
  .posts .post-image > .post-body > .content > .copy { order: -1; margin-top: 0 !important; margin-bottom: 28px !important; padding-top: 0; height: auto !important; min-height: 0 !important; justify-content: flex-start !important; }
  .posts .post-image[class*="layout--full_width"] > .post-body { padding-bottom: 0 !important; }
  .posts .post-image[class*="layout--full_width"] { padding-bottom: 0 !important; }
  .posts .post-image[class*="layout--full_width"]::after { display: none; }
}


/* Tablets and computers: photo-and-text sections keep their photo inset with breathing room on every side,
   so it never runs flush into the hero photo (or any photo) above or below it. */
@media (min-width: 768px) {
  .posts .post-image[class*="layout--full_width"] > .post-body {
    padding: clamp(48px, 6vw, 88px) clamp(20px, 4vw, 56px) !important;
    max-width: 1280px; margin-inline: auto;
  }
  .posts .post-image[class*="layout--full_width"] > .post-body > .content { gap: clamp(28px, 4vw, 56px); align-items: center; }
  .posts .post-image[class*="layout--full_width"] .media--outer-wrapper { height: auto !important; margin: 0 !important; align-self: center; flex: 0 0 44%; }
  .posts .post-image[class*="layout--full_width"] .photo--inner-wrapper { position: static !important; height: auto !important; }
  .posts .post-image[class*="layout--full_width"] .photo--inner-wrapper img {
    border-radius: 14px !important; height: auto !important; max-height: 560px; object-fit: cover; width: 100%;
    box-shadow: 0 18px 40px rgba(0,0,0,.18);
  }
}

/* Room for the header that sits on the hero photo. */
.site-container[data-hero="1"] main .post-container:first-child .post-hero_image .post-body { padding-top: calc(var(--hdr, 96px) + 16px) !important; }
