/* Stay Biblical theme styles. Colors and fonts come from theme.json presets. */

:root {
	--sb-navy: #12283A;
	--sb-navy-deep: #0D1B2B;
	--sb-navy-soft: #1E3A52;
	--sb-navy-line: #2E4A62;
	--sb-red: #BF2626;
	--sb-red-dark: #9E1E1E;
	--sb-red-tint: #FBEDED;
	--sb-ground: #F5F4F1;
	--sb-paper: #F8F7F4;
	--sb-ink: #1F2A36;
	--sb-muted: #5B6673;
	--sb-line: #E4E1DA;
	--sb-line-soft: #EFECE6;
	--sb-on-navy: #D5DEE6;
	--sb-heading: 'Fjalla One', 'Arial Narrow', sans-serif;
	--sb-ui: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
	--sb-serif: 'Source Serif 4', Georgia, serif;
	--sb-gutter: 24px;
}

/* Base ------------------------------------------------------------------- */

body { margin: 0; background: var(--sb-ground); color: var(--sb-ink); font-family: var(--sb-ui); -webkit-font-smoothing: antialiased; }
:where(.wp-site-blocks) > *, .sb-main > * { margin-block: 0; }
.wp-site-blocks { min-height: 100vh; display: flex; flex-direction: column; }
.sb-main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; }
a { color: var(--sb-red); text-decoration: none; }
a:hover { color: var(--sb-red-dark); }
:focus-visible { outline: 3px solid #F0A3A3; outline-offset: 2px; border-radius: 6px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

.sb-wrap { box-sizing: border-box; width: 100%; max-width: calc(1200px + 2 * var(--sb-gutter)); margin-inline: auto; padding-inline: var(--sb-gutter); }
.sb-stack { display: flex; flex-direction: column; gap: 24px; }

/* Buttons ---------------------------------------------------------------- */

.sb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; cursor: pointer; box-sizing: border-box; text-align: center; transition: background-color .15s, color .15s, border-color .15s; }
.sb-btn--lg { min-height: 48px; padding: 0 22px; font-size: 16px; }
.sb-btn--sm { min-height: 40px; padding: 0 12px; font-size: 14px; }
.sb-btn--red { background: var(--sb-red); color: #fff; }
.sb-btn--red:hover { background: var(--sb-red-dark); color: #fff; }
.sb-btn--white { background: #fff; color: var(--sb-navy); }
.sb-btn--white:hover { background: #EEF2F5; color: var(--sb-navy); }
.sb-btn--ghost { border-color: #3B5974; color: #fff; }
.sb-btn--ghost:hover { background: var(--sb-navy-soft); color: #fff; }
.sb-btn--outline { border-color: var(--sb-red); color: var(--sb-red); background: transparent; }
.sb-btn--outline:hover { background: var(--sb-red-tint); color: var(--sb-red-dark); }
.sb-btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header ----------------------------------------------------------------- */

.sb-header { background: var(--sb-navy); color: #fff; position: relative; z-index: 20; }
.sb-header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding-block: 18px; }
.sb-logo { display: flex; align-items: center; gap: 12px; color: #fff; font-family: var(--sb-heading); font-size: 34px; letter-spacing: 1.5px; line-height: 1; }
.sb-logo .sb-logo__mark { width: 40px; height: 35px; }
.sb-logo:hover { color: #fff; }
.sb-logo--footer { font-size: 32px; }
.sb-logo--footer .sb-logo__mark { width: 38px; height: 33px; }
.sb-nav { flex: 1 1 420px; }
.sb-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.sb-nav__list a { display: block; color: #fff; padding: 10px 14px; border-radius: 10px; font-size: 15px; font-weight: 500; }
.sb-nav__list a:hover { background: var(--sb-navy-soft); color: #fff; }
.sb-nav__list .current-menu-item > a, .sb-nav__list a[aria-current="page"] { background: var(--sb-navy-soft); font-weight: 600; }
.sb-header__actions { display: flex; align-items: center; gap: 10px; }
.sb-lang { color: #C9D3DC; font-size: 13px; font-weight: 600; padding: 8px 10px; border: 1px solid var(--sb-navy-line); border-radius: 8px; white-space: nowrap; }
.sb-lang:hover { color: #fff; border-color: #4A6A86; }
.sb-lang .is-current { color: #fff; }
.sb-account { width: 40px; height: 40px; border-radius: 12px; background: var(--sb-navy-soft); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.sb-account:hover { color: #fff; background: #27496A; }
.sb-header__toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--sb-navy-line); border-radius: 12px; background: transparent; color: #fff; cursor: pointer; place-items: center; }

@media (max-width: 860px) {
	.sb-header__inner { gap: 12px; padding-block: 12px; }
	.sb-logo { font-size: 27px; gap: 9px; }
	.sb-logo .sb-logo__mark { width: 32px; height: 28px; }
	.sb-header__toggle { display: grid; }
	.sb-header__actions { order: 2; }
	.sb-header__cta { min-height: 40px; padding: 0 12px; font-size: 14px; }
	.sb-header__toggle { order: 3; margin-left: 0; }
	.sb-logo { margin-right: auto; }
	.sb-nav { display: none; order: 4; flex-basis: 100%; }
	.sb-menu-open .sb-nav { display: block; }
	.sb-nav__list { flex-direction: column; align-items: stretch; padding-bottom: 6px; }
	.sb-nav__list a { padding: 12px 14px; font-size: 16px; }
}
@media (max-width: 420px) {
	.sb-lang { padding: 8px; font-size: 12px; }
	.sb-header__cta { display: none; }
}

/* Shared bits ------------------------------------------------------------ */

.sb-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--sb-red); }
.sb-eyebrow--light { color: #F0A3A3; }
.sb-label { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--sb-muted); }
.sb-label--red { color: var(--sb-red); }
.sb-chip { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: #EEF2F5; color: var(--sb-navy); white-space: nowrap; }
.sb-meta { font-size: 13px; color: var(--sb-muted); }
.sb-more { font-weight: 600; }
.sb-avatar { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; }
.sb-avatar--sm { width: 36px; height: 36px; border-radius: 11px; font-size: 13px; }
.sb-avatar--navy { background: var(--sb-navy); }
.sb-avatar--red { background: var(--sb-red); }
.sb-online { font-size: 12px; color: #2E7D4F; }
.sb-box { background: #fff; border: 1px solid var(--sb-line); border-radius: 20px; padding: 20px 22px; }
.sb-h2 { margin: 0; font-family: var(--sb-heading); font-weight: 400; font-size: clamp(28px, 4vw, 36px); line-height: 1.15; }
.sb-h2--lg { font-size: clamp(30px, 4.4vw, 40px); }
.sb-h2--sm { font-size: clamp(26px, 3.6vw, 32px); }
.sb-h3 { margin: 0; font-family: var(--sb-heading); font-weight: 400; font-size: 28px; line-height: 1.2; }
.sb-section { padding-block: 72px; }
.sb-section--first { padding-block: 72px 24px; }
.sb-section--tight { padding-block: 0 72px; }
.sb-section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; }
.sb-intro { display: flex; flex-direction: column; gap: 8px; }
.sb-intro p { margin: 0; max-width: 680px; font-size: 17px; line-height: 1.6; color: var(--sb-muted); }
.sb-grid { display: grid; gap: 20px; }
.sb-grid--300 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.sb-grid--280 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.sb-grid--260 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.sb-split { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.sb-split__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.sb-split__side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.sb-promo { padding: 22px; border-radius: 18px; background: var(--sb-navy); color: #fff; display: flex; flex-direction: column; gap: 12px; }
.sb-promo__title { font-family: var(--sb-heading); font-weight: 400; font-size: 22px; line-height: 1.2; }
.sb-promo__text { font-size: 14px; line-height: 1.6; color: var(--sb-on-navy); }

/* Search form ------------------------------------------------------------ */

.sb-search { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; max-width: 640px; margin-top: 8px; }
.sb-search input { flex: 1 1 260px; min-width: 0; min-height: 52px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--sb-navy-line); background: #1A3449; color: #fff; font: inherit; font-size: 16px; box-sizing: border-box; }
.sb-search input::placeholder { color: #9FB0C0; }
.sb-search button { min-height: 52px; padding: 0 24px; border: 0; border-radius: 14px; background: #fff; color: var(--sb-navy); font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; }
.sb-search button:hover { background: #EEF2F5; }

/* Home: hero ------------------------------------------------------------- */

.sb-hero { background: var(--sb-navy); color: #fff; padding-block: 72px 128px; }
.sb-hero__inner { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.sb-hero__title { margin: 0; font-family: var(--sb-heading); font-weight: 400; font-size: clamp(40px, 6.4vw, 64px); line-height: 1.05; max-width: 820px; }
.sb-hero__lead { margin: 0; max-width: 640px; font-size: clamp(17px, 2vw, 19px); line-height: 1.6; color: var(--sb-on-navy); }

/* Home: three ways ------------------------------------------------------- */

.sb-ways__grid { margin-top: -80px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.sb-way { display: flex; flex-direction: column; gap: 14px; padding: 28px; background: #fff; border-radius: 20px; border: 1px solid var(--sb-line); box-shadow: 0 10px 30px rgba(18,40,58,.08); color: var(--sb-ink); transition: transform .15s, box-shadow .15s; }
.sb-way:hover { color: var(--sb-ink); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(18,40,58,.12); }
.sb-way__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--sb-red-tint); color: var(--sb-red); display: grid; place-items: center; }
.sb-way__title { font-family: var(--sb-heading); font-weight: 400; font-size: 26px; line-height: 1.2; }
.sb-way__text { font-size: 15px; line-height: 1.6; color: var(--sb-muted); }
.sb-way__more { margin-top: auto; font-weight: 600; color: var(--sb-red); }
.sb-way--red { background: var(--sb-red); border-color: var(--sb-red); color: #fff; box-shadow: 0 10px 30px rgba(191,38,38,.25); }
.sb-way--red:hover { color: #fff; box-shadow: 0 14px 34px rgba(191,38,38,.32); }
.sb-way--red .sb-way__icon { background: rgba(255,255,255,.16); color: #fff; }
.sb-way--red .sb-way__text { color: #FFE3E3; }
.sb-way--red .sb-way__more { color: #fff; }

/* Home: false teachings -------------------------------------------------- */

.sb-teaching { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--sb-line); border-radius: 18px; overflow: hidden; color: var(--sb-ink); }
.sb-teaching:hover { color: var(--sb-ink); border-color: #D6D1C6; }
.sb-teaching__claim { padding: 20px 22px; background: var(--sb-paper); border-bottom: 1px solid var(--sb-line-soft); display: flex; flex-direction: column; gap: 6px; }
.sb-teaching__struck { font-size: 17px; font-weight: 600; line-height: 1.4; text-decoration: line-through; text-decoration-color: var(--sb-red); text-decoration-thickness: 2px; }
.sb-teaching__answer { padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; font-size: 15px; line-height: 1.6; }
.sb-teaching__more { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 600; color: var(--sb-red); }

/* Home: counselling ------------------------------------------------------ */

.sb-counsel { padding-block: 72px; background: var(--sb-navy); color: #fff; }
.sb-counsel__inner { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.sb-counsel__text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.sb-counsel__title { margin: 0; font-family: var(--sb-heading); font-weight: 400; font-size: clamp(32px, 4.6vw, 44px); line-height: 1.1; }
.sb-counsel__lead { margin: 0; font-size: 17px; line-height: 1.6; color: var(--sb-on-navy); }
.sb-counsel__note { margin: 0; font-size: 13px; color: #AFBDCA; }
.sb-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.sb-steps li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; }
.sb-steps li > span:last-child { padding-top: 5px; }
.sb-steps__num { flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--sb-red); display: grid; place-items: center; font-weight: 700; }
.sb-demo-chat { flex: 1 1 380px; max-width: 480px; min-width: 0; background: #fff; color: var(--sb-ink); border-radius: 22px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.sb-demo-chat__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--sb-line-soft); }
.sb-demo-chat__who { display: flex; flex-direction: column; font-size: 15px; }
.sb-demo-chat__head .sb-chip { margin-left: auto; }
.sb-demo-chat__body { padding: 18px; display: flex; flex-direction: column; gap: 10px; background: var(--sb-paper); }
.sb-bubble { align-self: flex-start; max-width: 82%; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: #fff; border: 1px solid var(--sb-line); font-size: 14px; line-height: 1.5; }
.sb-bubble--me { align-self: flex-end; max-width: 78%; border-radius: 16px 16px 4px 16px; background: var(--sb-red); border-color: var(--sb-red); color: #fff; }
.sb-bubble--verse { display: flex; flex-direction: column; gap: 4px; border-radius: 14px; padding: 12px 14px; }
.sb-bubble--verse strong { font-size: 12px; color: var(--sb-red); }
.sb-bubble--verse span { font-family: var(--sb-serif); }

/* Cards ------------------------------------------------------------------ */

.sb-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--sb-line); border-radius: 18px; overflow: hidden; color: var(--sb-ink); }
.sb-card:hover { color: var(--sb-ink); border-color: #D6D1C6; }
.sb-card:hover .sb-card__title { color: var(--sb-red-dark); }
.sb-card__media { aspect-ratio: 16 / 9; background: var(--sb-navy-soft); overflow: hidden; }
.sb-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sb-card__media--tint { display: grid; place-items: center; opacity: .95; }
.sb-card__media--tint svg { opacity: .9; filter: drop-shadow(0 2px 0 rgba(0,0,0,.15)); }
.sb-card__body { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.sb-card--text .sb-card__body { padding: 22px; }
.sb-card__title { font-size: 18px; line-height: 1.4; font-weight: 600; }
.sb-grid--big { grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 28px; }
.sb-grid--big .sb-card__body { padding: 24px 26px 26px; }
.sb-grid--big .sb-card__title { font-size: 22px; line-height: 1.35; }

/* Title bands (article, page, archive) ----------------------------------- */

.sb-title-band { background: var(--sb-navy); color: #fff; padding-block: 40px 120px; }
.sb-title-band--archive { padding-block: 40px 56px; }
.sb-title-band--archive + .sb-section--tight { padding-top: 32px; }
.sb-title-band__inner { display: flex; flex-direction: column; gap: 18px; }
.sb-title-band__title { margin: 0; font-family: var(--sb-heading); font-weight: 400; font-size: clamp(34px, 5.4vw, 56px); line-height: 1.08; max-width: 880px; overflow-wrap: anywhere; }
.sb-title-band__title--md { font-size: clamp(32px, 4.8vw, 48px); }
.sb-title-band__lead { margin: 0; max-width: 640px; font-size: 17px; line-height: 1.6; color: var(--sb-on-navy); }
.sb-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: #AFBDCA; }
.sb-crumbs a { color: #AFBDCA; }
.sb-crumbs a:last-child { color: #fff; }
.sb-crumbs a:hover { color: #fff; }
.sb-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.sb-pill { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: var(--sb-navy-soft); color: #fff; }
.sb-pill--red { background: var(--sb-red); }
.sb-pill:hover { color: #fff; filter: brightness(1.1); }
.sb-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-size: 14px; color: var(--sb-on-navy); }
.sb-byline__author { display: inline-flex; align-items: center; gap: 10px; }
.sb-byline strong { color: #fff; }

/* Article ---------------------------------------------------------------- */

.sb-overlap { padding-bottom: 72px; }
.sb-article-grid { margin-top: -80px; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.sb-article { flex: 999 1 640px; min-width: 0; background: #fff; border: 1px solid var(--sb-line); border-radius: 24px; overflow: hidden; }
.sb-overlap > .sb-wrap > .sb-article--page { margin-top: -80px; }
.sb-article__image { display: block; width: 100%; height: auto; }
.sb-article__body { max-width: 720px; margin: 0 auto; padding: 48px 32px 56px; display: flex; flex-direction: column; gap: 28px; }
.sb-article-aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding-top: 104px; position: sticky; top: 16px; }
.sb-article-aside--flush { padding-top: 0; }
.sb-toc { display: flex; flex-direction: column; gap: 4px; }
.sb-toc__label { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--sb-muted); margin-bottom: 6px; }
.sb-toc a { padding: 8px 0; color: var(--sb-ink); font-size: 15px; font-weight: 500; line-height: 1.4; }
.sb-toc a:hover { color: var(--sb-red); }
.sb-article-aside .sb-promo { border-radius: 20px; gap: 10px; }

@media (max-width: 1000px) {
	.sb-article-aside { padding-top: 0; position: static; }
}
@media (max-width: 600px) {
	.sb-article__body { padding: 28px 20px 36px; }
	.sb-title-band { padding-block: 28px 100px; }
	.sb-article { border-radius: 18px; }
}

/* Article text (also used in the editor via add_editor_style) ------------- */

.sb-prose, .editor-styles-wrapper .is-root-container { font-family: var(--sb-serif); font-size: 19px; line-height: 1.75; color: var(--sb-ink); }
.sb-prose > * { margin-block: 0 22px; }
.sb-prose > *:last-child { margin-bottom: 0; }
.sb-prose > p:first-child, .sb-prose .is-style-sb-lead { font-size: 22px; line-height: 1.6; }
.sb-prose h2, .sb-prose h3, .sb-prose h4 { font-family: var(--sb-heading); font-weight: 400; line-height: 1.2; margin-top: 40px; scroll-margin-top: 20px; }
.sb-prose h2 { font-size: clamp(27px, 3.4vw, 34px); }
.sb-prose h3 { font-size: clamp(22px, 2.6vw, 26px); }
.sb-prose h4 { font-size: 21px; }
.sb-prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.sb-prose ul, .sb-prose ol { padding-left: 1.3em; }
.sb-prose li + li { margin-top: 6px; }
.sb-prose img, .sb-prose figure.wp-block-image img { border-radius: 16px; }
.sb-prose figcaption { font-family: var(--sb-ui); font-size: 14px; color: var(--sb-muted); }
.sb-prose table { width: 100%; border-collapse: collapse; font-family: var(--sb-ui); font-size: 15px; }
.sb-prose th, .sb-prose td { border: 1px solid var(--sb-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.sb-prose th { background: var(--sb-paper); }
.sb-prose hr { border: 0; border-top: 1px solid var(--sb-line-soft); }
.sb-prose iframe { max-width: 100%; }

/* Bible verse card: default for every quote in articles, plus the "Bible verse" style. */
.sb-prose blockquote, .wp-block-quote.is-style-sb-verse, .editor-styles-wrapper .wp-block-quote {
	margin-inline: 0; padding: 24px 28px; border: 1px solid var(--sb-line-soft); border-radius: 18px; background: var(--sb-paper);
	display: flex; flex-direction: column; gap: 10px; font-family: var(--sb-serif); font-style: italic; font-size: 21px; line-height: 1.6;
}
.sb-prose blockquote p, .wp-block-quote.is-style-sb-verse p { margin: 0; }
.sb-prose blockquote cite, .wp-block-quote.is-style-sb-verse cite, .editor-styles-wrapper .wp-block-quote cite {
	font-family: var(--sb-ui); font-style: normal; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--sb-red);
}
@media (max-width: 600px) {
	.sb-prose { font-size: 18px; }
	.sb-prose > p:first-child { font-size: 20px; }
	.sb-prose blockquote, .wp-block-quote.is-style-sb-verse { padding: 18px 20px; font-size: 19px; }
}

/* "The claim / What Scripture says" */
.is-style-sb-claim { border: 1px solid var(--sb-line); border-radius: 18px; overflow: hidden; background: #fff; font-family: var(--sb-ui); }
.is-style-sb-claim > * { margin: 0 !important; }
.sb-claim__top { padding: 20px 22px; background: var(--sb-paper); border-bottom: 1px solid var(--sb-line-soft); }
.sb-claim__bottom { padding: 20px 22px; font-size: 16px; line-height: 1.6; }
.sb-claim__top > *, .sb-claim__bottom > * { margin: 0 0 6px !important; }
.sb-claim__label { font-size: 12px !important; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--sb-muted); }
.sb-claim__label--red { color: var(--sb-red); }
.sb-claim__text { font-size: 18px !important; font-weight: 600; line-height: 1.4; text-decoration: line-through; text-decoration-color: var(--sb-red); text-decoration-thickness: 2px; }

/* Clean / unclean comparison */
.sb-compare { gap: 16px !important; font-family: var(--sb-ui); }
.is-style-sb-clean, .is-style-sb-unclean { border-radius: 18px; overflow: hidden; border: 1px solid #CFE6D8; height: 100%; box-sizing: border-box; font-size: 15px; line-height: 1.5; }
.is-style-sb-unclean { border-color: #F0CACA; }
.is-style-sb-clean > *, .is-style-sb-unclean > * { margin: 0 !important; padding: 0 18px; }
.is-style-sb-clean > .sb-compare__head, .is-style-sb-unclean > .sb-compare__head { padding: 14px 18px 14px 44px; font-family: var(--sb-ui); font-size: 15px; font-weight: 700; position: relative; }
.is-style-sb-clean > .sb-compare__head { background: #E7F3EC; color: #1F5E3A; }
.is-style-sb-unclean > .sb-compare__head { background: var(--sb-red-tint); color: var(--sb-red-dark); }
.sb-compare__head::before { content: ''; position: absolute; left: 18px; top: 50%; width: 18px; height: 18px; margin-top: -9px; background: currentColor; -webkit-mask: var(--sb-mark) center / contain no-repeat; mask: var(--sb-mark) center / contain no-repeat; }
.is-style-sb-clean { --sb-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }
.is-style-sb-unclean { --sb-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
.sb-compare__row { padding-top: 12px !important; color: #4A5562; }
.sb-compare__row strong { color: var(--sb-ink); }
.sb-compare__row:last-child { padding-bottom: 16px !important; }

/* Related link */
.is-style-sb-related { display: flex; align-items: center; gap: 14px; padding: 16px 18px 16px 72px; border-radius: 16px; border: 1px solid var(--sb-line); font-family: var(--sb-ui); font-size: 15px !important; position: relative; }
.is-style-sb-related::before { content: ''; position: absolute; left: 18px; top: 50%; margin-top: -20px; width: 40px; height: 40px; border-radius: 12px; background: var(--sb-red-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23BF2626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5a2 2 0 0 1 2-2h13v16H6a2 2 0 0 0-2 2z'/%3E%3Cpath d='M4 19V5'/%3E%3C/svg%3E") center no-repeat; }
.is-style-sb-related::after { content: '→'; margin-left: auto; color: var(--sb-red); }
.is-style-sb-related .sb-related__label { color: var(--sb-muted); }
.sb-prose .is-style-sb-related a { color: var(--sb-ink); font-weight: 700; text-decoration: none; }
.sb-prose .is-style-sb-related a:hover { color: var(--sb-red); }

.is-style-sb-card { background: #fff; border: 1px solid var(--sb-line); border-radius: 18px; padding: 22px 24px; }
.wp-block-button.is-style-sb-outline .wp-block-button__link { background: transparent; color: var(--sb-red); border: 1px solid var(--sb-red); }

/* Newsletter card: wraps the MailPoet form and restyles it to match the site. */
.sb-newsletter { display: flex; flex-direction: column; gap: 10px; border-radius: 20px; }
.sb-newsletter__icon { width: 44px; height: 44px; border-radius: 13px; background: var(--sb-red-tint); color: var(--sb-red); display: grid; place-items: center; }
.sb-newsletter__title { font-family: var(--sb-heading); font-weight: 400; font-size: 22px; line-height: 1.2; }
.sb-newsletter__text { font-size: 14px; line-height: 1.6; color: var(--sb-muted); }
.sb-newsletter .mailpoet_form { background: none !important; padding: 0 !important; margin: 4px 0 0 !important; border: 0 !important; border-radius: 0 !important; width: 100% !important; box-shadow: none !important; }
.sb-newsletter .mailpoet_form .mailpoet_form_image, .sb-newsletter .mailpoet_form .mailpoet-heading, .sb-newsletter .mailpoet_form .mailpoet_form_paragraph, .sb-newsletter .mailpoet_form h1, .sb-newsletter .mailpoet_form h2, .sb-newsletter .mailpoet_form h3 { display: none !important; }
.sb-newsletter .mailpoet_form .mailpoet_form_columns, .sb-newsletter .mailpoet_form .mailpoet_form_column { display: block !important; width: 100% !important; margin: 0 !important; padding: 0 !important; flex-basis: 100% !important; }
.sb-newsletter .mailpoet_paragraph { margin: 0 0 10px !important; padding: 0 !important; }
.sb-newsletter .mailpoet_paragraph label, .sb-newsletter .mailpoet_text_label { font-size: 13px; font-weight: 600; color: var(--sb-ink) !important; }
.sb-newsletter input.mailpoet_text, .sb-newsletter input[type="email"], .sb-newsletter input[type="text"] { width: 100% !important; box-sizing: border-box; min-height: 46px; padding: 0 14px !important; border-radius: 12px !important; border: 1px solid #D9D5CC !important; background: #fff !important; color: var(--sb-ink) !important; font: inherit !important; font-size: 15px !important; }
.sb-newsletter input.mailpoet_text:focus { outline: 2px solid var(--sb-navy); border-color: var(--sb-navy) !important; }
.sb-newsletter input.mailpoet_submit, .sb-newsletter .mailpoet_submit { width: 100% !important; min-height: 46px; border: 0 !important; border-radius: 12px !important; background: var(--sb-red) !important; color: #fff !important; font: inherit !important; font-size: 15px !important; font-weight: 600 !important; cursor: pointer; padding: 0 16px !important; }
.sb-newsletter input.mailpoet_submit:hover { background: var(--sb-red-dark) !important; }
.sb-newsletter .mailpoet_message p { margin: 6px 0 0; font-size: 14px; }
.sb-newsletter .mailpoet_validate_success { color: #1F5E3A !important; }
.sb-newsletter .mailpoet_validate_error, .sb-newsletter .parsley-errors-list { color: var(--sb-red-dark) !important; font-size: 13px; }

/* Talk Biblical + share -------------------------------------------------- */

.sb-community { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: var(--sb-paper); border: 1px solid var(--sb-line-soft); color: var(--sb-ink); font-size: 15px; line-height: 1.45; }
.sb-community:hover { color: var(--sb-ink); border-color: var(--sb-line); }
.sb-community__icon { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--sb-navy); color: #fff; display: grid; place-items: center; }
.sb-community__text { display: flex; flex-direction: column; gap: 2px; }
.sb-community__text span { color: var(--sb-muted); font-size: 14px; }
.sb-community__go { margin-left: auto; color: var(--sb-red); }
.sb-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 20px; border-top: 1px solid var(--sb-line-soft); font-size: 14px; }
.sb-share strong { margin-right: 6px; }
.sb-share__btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--sb-line); background: #fff; color: var(--sb-ink); font: inherit; font-weight: 600; cursor: pointer; }
.sb-share__btn:hover { border-color: var(--sb-red); color: var(--sb-red); }

/* Comments ---------------------------------------------------------------- */

.sb-comments-wrap:has(.sb-comments:empty) { display: none; }
.sb-comments-wrap { padding-bottom: 72px; }
.sb-comments { max-width: 840px; margin: 0 !important; background: #fff; border: 1px solid var(--sb-line); border-radius: 24px; padding: 32px; box-sizing: border-box; }
.sb-comments:not(:has(*)) { display: none; }
.sb-comments .wp-block-comments-title { margin-top: 0; font-size: 28px; }
.sb-comment { padding: 16px 0; border-top: 1px solid var(--sb-line-soft); }
.sb-comment__head { gap: 10px; font-size: 14px; }
.sb-comment .wp-block-comment-author-name { font-weight: 700; }
.sb-comment .wp-block-comment-date { color: var(--sb-muted); }
.sb-comments textarea, .sb-comments input[type="text"], .sb-comments input[type="email"], .sb-comments input[type="url"] { width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 12px; border: 1px solid #D9D5CC; font: inherit; font-size: 15px; }
.sb-comments input[type="submit"] { min-height: 46px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--sb-red); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 600px) { .sb-comments { padding: 22px 18px; } }

/* Archives --------------------------------------------------------------- */

.sb-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 28px; }
.sb-empty p { margin: 0; font-size: 17px; }
.sb-pagination ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.sb-pagination a, .sb-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 12px; background: #fff; border: 1px solid var(--sb-line); color: var(--sb-ink); font-weight: 600; box-sizing: border-box; }
.sb-pagination .current { background: var(--sb-navy); border-color: var(--sb-navy); color: #fff; }
.sb-pagination a:hover { border-color: var(--sb-red); color: var(--sb-red); }

/* Wide page (e.g. counselling) -------------------------------------------- */

.sb-wide-content > * { margin-block: 0; }

/* Footer ----------------------------------------------------------------- */

.sb-footer { background: var(--sb-navy-deep); color: #C9D3DC; padding-block: 56px 32px; }
.sb-footer a { color: #C9D3DC; }
.sb-footer a:hover { color: #fff; }
.sb-footer__grid { display: flex; flex-wrap: wrap; gap: 40px; }
.sb-footer__brand { flex: 2 1 280px; display: flex; flex-direction: column; gap: 14px; }
.sb-footer__brand p { margin: 0; font-size: 14px; line-height: 1.6; max-width: 360px; }
.sb-footer__community { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #fff !important; }
.sb-footer__community:hover { text-decoration: underline; }
.sb-footer__col { flex: 1 1 160px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.sb-footer__col strong { color: #fff; }
.sb-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sb-footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid #1E3247; font-size: 13px; color: #8FA1B3; }
.sb-footer--small { padding-block: 28px; font-size: 13px; color: #8FA1B3; }
.sb-footer__row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
.sb-footer__links { display: flex; flex-wrap: wrap; gap: 16px; }

@media (max-width: 600px) {
	:root { --sb-gutter: 16px; }
	.sb-hero { padding-block: 48px 112px; }
	.sb-section { padding-block: 56px; }
	.sb-section--first { padding-block: 56px 16px; }
	.sb-way { padding: 22px; }
	.sb-counsel { padding-block: 56px; }
	.sb-search button { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
html { scroll-behavior: smooth; }
