/* BVBC Church Core block styles. Colors come from the theme (with safe fallbacks). */
.bvbc-times__list,
.bvbc-times__family,
.bvbc-events__list,
.bvbc-give__list,
.bvbc-resources__list,
.bvbc-links {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Service times */
.bvbc-times__item {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.15rem 1rem;
	padding: 0.7rem 0;
	border-bottom: 1px solid var(--wp--preset--color--line, #e5e7eb);
}
.bvbc-times__name { font-weight: 700; }
.bvbc-times__when { text-align: right; white-space: nowrap; }
.bvbc-times__time { font-weight: 700; }
.bvbc-times__note { grid-column: 1 / -1; font-size: 0.9em; opacity: 0.85; }
.bvbc-times__family { margin-top: 1rem; }
.bvbc-times__family li { padding: 0.25rem 0 0.25rem 1.4rem; position: relative; }
.bvbc-times__family li::before { content: "✓"; position: absolute; left: 0; color: var(--wp--preset--color--green, #047857); font-weight: 700; }

.bvbc-times.is-layout-cards .bvbc-times__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
	gap: 1rem;
}
.bvbc-times.is-layout-cards .bvbc-times__item {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 1.25rem;
	border: 1px solid var(--wp--preset--color--line, #e5e7eb);
	border-top: 4px solid var(--wp--preset--color--gold, #ffb703);
	border-radius: 6px;
	background: var(--wp--preset--color--white, #fff);
	color: var(--wp--preset--color--ink, #111827);
}
.bvbc-times.is-layout-cards .bvbc-times__when { text-align: left; }
.bvbc-times.is-layout-cards .bvbc-times__time { font-size: 1.6em; line-height: 1.1; color: var(--wp--preset--color--navy, #1d4ed8); }
.bvbc-times.is-layout-cards .bvbc-times__day { display: block; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8em; }

/* Buttons used inside blocks */
.bvbc-button,
.bvbc-print-section {
	display: inline-block;
	padding: 0.6em 1.2em;
	border-radius: 4px;
	border: 2px solid var(--wp--preset--color--navy, #1d4ed8);
	background: var(--wp--preset--color--navy, #1d4ed8);
	color: var(--wp--preset--color--white, #fff);
	font: inherit;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	line-height: 1.3;
}
.bvbc-button:hover,
.bvbc-button:focus-visible { background: var(--wp--preset--color--navy-deep, #1e3a8a); color: #fff; }
.bvbc-button.is-style-outline { background: transparent; color: var(--wp--preset--color--navy, #1d4ed8); }
.bvbc-print-section {
	padding: 0.15em 0.6em;
	font-size: 0.85em;
	background: transparent;
	color: var(--wp--preset--color--navy, #1d4ed8);
	border-width: 1px;
}

/* Contact card */
.bvbc-contact p { margin: 0 0 0.5rem; }
.bvbc-map { margin-top: 1rem; aspect-ratio: 4 / 3; }
.bvbc-map iframe { width: 100%; height: 100%; border: 0; border-radius: 6px; }
.bvbc-map--off { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; text-align: center; padding: 1.5rem; background: var(--wp--preset--color--cream, #f7f8fa); border: 1px solid var(--wp--preset--color--line, #e5e7eb); border-radius: 6px; box-sizing: border-box; }
.bvbc-map__note { margin: 0; font-weight: 700; font-size: var(--wp--preset--font-size--large); }
.bvbc-map__hint { margin: 0; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted, #4b5563); }
.bvbc-map__show { min-height: 44px; }

/* Embeds */
.bvbc-embed--16x9 { position: relative; aspect-ratio: 16 / 9; }
.bvbc-embed--16x9 iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bvbc-embed iframe { max-width: 100%; }
.bvbc-recording audio { width: 100%; }

/* Events */
.bvbc-event {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	padding: 1rem 0;
	border-bottom: 1px solid var(--wp--preset--color--line, #e5e7eb);
}
.bvbc-event__badge {
	flex: 0 0 4rem;
	text-align: center;
	border-radius: 6px;
	background: var(--wp--preset--color--navy, #1d4ed8);
	color: var(--wp--preset--color--white, #fff);
	padding: 0.4rem 0;
	line-height: 1.1;
}
.bvbc-event__month { display: block; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.08em; color: var(--wp--preset--color--gold-light, #fde68a); }
.bvbc-event__day { display: block; font-size: 1.6rem; font-weight: 700; }
.bvbc-event__title { margin: 0 0 0.2rem; font-size: 1.15rem; }
.bvbc-event__when, .bvbc-event__where, .bvbc-event__excerpt { margin: 0 0 0.3rem; }
.bvbc-events__past { margin-top: 1.5rem; }
.bvbc-events__past summary { cursor: pointer; font-weight: 700; }

.bvbc-details { margin: 0 0 1rem; }
.bvbc-details > div { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--wp--preset--color--line, #e5e7eb); }
.bvbc-details dt { font-weight: 700; }
.bvbc-details dd { margin: 0; }
.bvbc-actions .bvbc-button { margin: 0 0.5rem 0.5rem 0; }
.bvbc-notice { padding: 0.75rem 1rem; border-left: 4px solid var(--wp--preset--color--gold, #ffb703); background: var(--wp--preset--color--cream, #f7f8fa); color: var(--wp--preset--color--ink, #111827); }
.bvbc-notice.is-error { border-left-color: var(--wp--preset--color--red-dark, #b91c1c); }
.bvbc-notice.is-success { border-left-color: var(--wp--preset--color--green, #047857); }

/* Sermon meta + resources */
.bvbc-meta { font-size: 0.95em; }
.bvbc-meta__passage { font-weight: 700; }
.bvbc-resources {
	padding: 1.25rem;
	border: 1px solid var(--wp--preset--color--line, #e5e7eb);
	border-radius: 6px;
	background: var(--wp--preset--color--cream, #f7f8fa);
	color: var(--wp--preset--color--ink, #111827);
}
.bvbc-resources__title { margin-top: 0; font-size: 1.2rem; }
.bvbc-resources__list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.45rem 0; border-bottom: 1px solid var(--wp--preset--color--line, #e5e7eb); }

/* Give */
.bvbc-give__list li { padding: 0.9rem 0; border-bottom: 1px solid var(--wp--preset--color--line, #e5e7eb); }
.bvbc-give__label { display: block; font-size: 0.8em; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; margin-bottom: 0.3rem; }
.bvbc-give address { font-style: normal; }

/* Links */
.bvbc-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }

/* Contact form */
.bvbc-form__row { margin: 0 0 1rem; }
.bvbc-form label { display: block; font-weight: 700; margin-bottom: 0.3rem; }
.bvbc-form input,
.bvbc-form select,
.bvbc-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.65rem 0.75rem;
	font: inherit;
	border: 1px solid #6b7280;
	border-radius: 4px;
	background: #fff;
	color: #111827;
}
.bvbc-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bvbc-form__privacy { font-size: 0.9em; }
/* Let's Get Acquainted card: checkbox group and hint. */
.bvbc-form__hint { margin: 0 0 0.5rem; color: var(--wp--preset--color--muted, #4b5563); }
.bvbc-form__checks { border: 1px solid var(--wp--preset--color--line, #e5e7eb); border-radius: 6px; padding: 0.75rem 1rem; }
.bvbc-form__checks legend { font-weight: 700; padding: 0 0.3rem; }
.bvbc-form .bvbc-form__checks label { display: flex; align-items: flex-start; gap: 0.6rem; font-weight: 400; min-height: 44px; padding: 0.4rem 0; margin: 0; }
.bvbc-form .bvbc-form__checks input[type="checkbox"] { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; margin-top: 0.15rem; accent-color: var(--wp--preset--color--navy, #1d4ed8); }
.bvbc-connect-card .bvbc-notice { margin-bottom: 1rem; }

/* Discipleship accountability card, filled in online (assets/accountability.js). */
.bvbc-card__input { font: inherit; width: 11em; max-width: 100%; border: 0; border-bottom: 2px solid currentColor; background: transparent; padding: 0.2em 0.1em; }
.bvbc-card__input:focus-visible, .bvbc-card__done input:focus-visible { outline: 3px solid var(--wp--preset--color--navy, #1d4ed8); outline-offset: 2px; }
.bvbc-card__done { display: flex; align-items: center; gap: 0.5rem; min-height: 44px; margin: 0; cursor: pointer; }
.bvbc-card__done input { width: 1.4rem; height: 1.4rem; accent-color: var(--wp--preset--color--navy, #1d4ed8); flex: 0 0 auto; }
.bvbc-card__progress { font-weight: 700; }
.bvbc-card__note { font-size: 0.9em; }
.bvbc-card__clear { font: inherit; background: none; border: 0; padding: 0; color: var(--wp--preset--color--navy, #1d4ed8); text-decoration: underline; cursor: pointer; min-height: 24px; }
.bvbc-card-mark { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: 1rem 0; }
.bvbc-card-mark__btn[aria-pressed="true"] { background: var(--wp--preset--color--green, #047857); }
@media print { .bvbc-card__done { min-height: 0; } .bvbc-card__done input { display: none; } .bvbc-card { font-size: 10.5pt; padding: 0.8rem !important; } .bvbc-card .wp-block-table td, .bvbc-card .wp-block-table th { padding: 0.3em 0.5em !important; } .bvbc-card__input { border-bottom: 1px solid #000; } .bvbc-card-mark { display: none; } }

.bvbc-empty-preview { min-height: 0; }

/* Focus visibility everywhere in BVBC blocks */
.bvbc-button:focus-visible,
.bvbc-print-section:focus-visible,
.bvbc-form input:focus-visible,
.bvbc-form select:focus-visible,
.bvbc-form textarea:focus-visible,
.bvbc-events__past summary:focus-visible {
	outline: 3px solid var(--wp--preset--color--navy-deep, #1e3a8a);
	outline-offset: 2px;
}

@media print {
	.bvbc-recording,
	.bvbc-print-section,
	.bvbc-print-all,
	.bvbc-livestream,
	.bvbc-map,
	.bvbc-form,
	.bvbc-actions { display: none !important; }
	.bvbc-resources { border: 0; background: none; padding: 0; }
	.bvbc-sermon-section { break-before: auto; }
	.bvbc-sermon-section + .bvbc-sermon-section { break-before: page; }
	/* "Print" one section: hide the other sections and the resource list. */
	body[data-bvbc-print] .bvbc-resources,
	body[data-bvbc-print] .bvbc-sermon-section { display: none !important; }
	body[data-bvbc-print="message-notes"] #message-notes,
	body[data-bvbc-print="weekly-devotions"] #weekly-devotions,
	body[data-bvbc-print="discussion-guide"] #discussion-guide,
	body[data-bvbc-print="transcript"] #transcript { display: block !important; break-before: auto; }
}

/* oEmbed players (YouTube, Vimeo) scale to the screen at 16:9. */
.bvbc-embed:not(.bvbc-embed--16x9) iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }

/* ------------------------------------------------------------------
 * Salvation page (migration/pages/25-salvation.html, assets/salvation.js)
 * Everything reads in full without JavaScript; the script only adds the
 * one-question-at-a-time test, copy/share/print buttons and topic choice.
 * ---------------------------------------------------------------- */
.bvbc-live { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html:not(.bvbc-js) .bvbc-js-only { display: none !important; }
@media (prefers-reduced-motion: no-preference) {
	html:has(.bvbc-salvation) { scroll-behavior: smooth; }
}
.bvbc-salvation-hero h1 { text-wrap: balance; }
.bvbc-salvation-hero .bvbc-scripture { font-size: var(--wp--preset--font-size--medium); }

/* Scripture */
.bvbc-scripture { position: relative; }
.bvbc-scripture.is-featured { font-size: var(--wp--preset--font-size--x-large); }
.bvbc-scripture.is-on-dark { border-left-color: var(--wp--preset--color--gold-light, #fde68a) !important; }
.bvbc-scripture.is-on-dark cite { color: var(--wp--preset--color--gold-light, #fde68a); }
.bvbc-copy-verse {
	display: inline-block; margin: 0.25rem 0 0; padding: 0.25rem 0; min-height: 24px;
	font: inherit; font-size: var(--wp--preset--font-size--small); font-style: normal;
	background: none; color: inherit; border: 0; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer;
}
.bvbc-copy-verse:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }

/* "Start where you are" and the five steps */
.bvbc-journeys { columns: 2 18rem; column-gap: 2rem; padding-left: 1.2rem; }
.bvbc-journeys li { margin: 0 0 0.6rem; break-inside: avoid; }
.bvbc-journeys a { display: inline-block; padding: 0.3rem 0; }
ol.bvbc-steps { list-style: none; counter-reset: bvbc-step; padding: 0; margin: 1.5rem 0 0; }
ol.bvbc-steps > li { counter-increment: bvbc-step; position: relative; padding: 0 0 1.4rem 3.6rem; }
ol.bvbc-steps > li::before {
	content: counter(bvbc-step); position: absolute; left: 0; top: -0.15rem; width: 2.5rem; height: 2.5rem; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; font-weight: 700;
	background: var(--wp--preset--color--navy, #1d4ed8); color: #fff;
}
ol.bvbc-steps > li:not(:last-child)::after {
	content: ""; position: absolute; left: 1.2rem; top: 2.5rem; bottom: 0.2rem; width: 2px; background: var(--wp--preset--color--red, #d62828);
}

/* Good Person Test */
.bvbc-gpt__q, .bvbc-gpt__done { margin-top: var(--wp--preset--spacing--50, 2rem); }
.bvbc-gpt__privacy { font-size: var(--wp--preset--font-size--small); }
.bvbc-gpt.is-enhanced .bvbc-gpt__q,
.bvbc-gpt.is-enhanced .bvbc-gpt__done {
	background: #fff; border: 1px solid var(--wp--preset--color--line, #e5e7eb); border-radius: 8px;
	padding: clamp(1rem, 4vw, 2rem); max-width: 46rem;
}
.bvbc-gpt [hidden] { display: none !important; }
.bvbc-gpt h3[tabindex="-1"]:focus { outline: 3px solid var(--wp--preset--color--navy-deep, #1e3a8a); outline-offset: 4px; }
.bvbc-gpt__status { margin-top: var(--wp--preset--spacing--40, 1.5rem); max-width: 46rem; }
.bvbc-gpt__count { margin: 0 0 0.35rem; font-weight: 700; }
.bvbc-gpt__status progress { width: 100%; height: 0.75rem; accent-color: var(--wp--preset--color--navy, #1d4ed8); }
.bvbc-gpt__choices, .bvbc-gpt__nav { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1rem 0; }
.bvbc-gpt .bvbc-button { min-height: 44px; min-width: 6rem; cursor: pointer; }
.bvbc-gpt__choice[aria-pressed="false"], .bvbc-button.is-outline { background: transparent; color: var(--wp--preset--color--navy, #1d4ed8); }
.bvbc-gpt__choice[aria-pressed="true"]::before { content: "✓ "; }
.bvbc-button:disabled { opacity: 0.45; cursor: not-allowed; }
.bvbc-gpt__answer { border-top: 1px solid var(--wp--preset--color--line, #e5e7eb); padding-top: 0.75rem; }

/* Grace vs works */
.bvbc-cannot, .bvbc-can { list-style: none; padding: 0; }
.bvbc-cannot li, .bvbc-can li { padding: 0.35rem 0 0.35rem 2rem; position: relative; }
.bvbc-cannot li::before { content: "✕"; position: absolute; left: 0.2rem; font-weight: 700; color: var(--wp--preset--color--red-dark, #b91c1c); }
.bvbc-can li::before { content: "✓"; position: absolute; left: 0.2rem; font-weight: 700; color: var(--wp--preset--color--green, #047857); }

/* Expandable passages and FAQ */
.bvbc-context, .bvbc-faq { border-top: 1px solid currentColor; padding: 0.25rem 0; }
.bvbc-faq:last-of-type { border-bottom: 1px solid currentColor; }
.bvbc-context summary, .bvbc-faq summary { cursor: pointer; padding: 0.75rem 0; font-weight: 700; min-height: 44px; }
.bvbc-faq summary { font-size: var(--wp--preset--font-size--large); }
.bvbc-context summary:focus-visible, .bvbc-faq summary:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
.bvbc-glossary li, .bvbc-next-steps li { margin-bottom: 0.6rem; }

@media print {
	.bvbc-salvation-start,
	.bvbc-gpt__status, .bvbc-gpt__choices, .bvbc-gpt__nav, .bvbc-gpt__skip,
	.bvbc-copy-verse, .bvbc-live, .bvbc-form-note { display: none !important; }
	.bvbc-gpt [hidden] { display: block !important; }
	.bvbc-gpt.is-enhanced .bvbc-gpt__q, .bvbc-gpt.is-enhanced .bvbc-gpt__done { border: 0; padding: 0; }
	details.bvbc-context, details.bvbc-faq { display: block; }
	details.bvbc-context > *, details.bvbc-faq > * { display: block !important; }
	blockquote { break-inside: avoid; }
	ol.bvbc-steps > li::before { background: none; color: #000; border: 1px solid #000; }
	.bvbc-cannot li::before, .bvbc-can li::before { color: #000; }
}

/* Unchecked sermon material, visible to signed-in editors only. */
.bvbc-draft-notice { border-left: 4px solid var(--wp--preset--color--red-dark, #b91c1c); background: #fef2f2; color: #7f1d1d; padding: 0.6rem 0.9rem; font-weight: 700; font-size: var(--wp--preset--font-size--small); }
.bvbc-transcript-note { border: 1px dashed #6b7280; padding: 0.6rem 0.9rem; font-size: var(--wp--preset--font-size--small); }
@media print { .bvbc-draft-notice, .bvbc-transcript-note { display: none !important; } }

/* Sermon study resources list (Resources page) */
.bvbc-study__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.bvbc-study__item { border: 1px solid var(--wp--preset--color--line, #e5e7eb); border-top: 4px solid var(--wp--preset--color--navy, #1d4ed8); border-radius: 6px; padding: 1rem 1.25rem; background: #fff; }
.bvbc-study__title { margin: 0 0 0.25rem; font-size: var(--wp--preset--font-size--large); }
.bvbc-study__title a { text-decoration: none; }
.bvbc-study__title a:hover, .bvbc-study__title a:focus-visible { text-decoration: underline; }
.bvbc-study__meta { margin: 0 0 0.5rem; color: var(--wp--preset--color--muted, #4b5563); font-size: var(--wp--preset--font-size--small); }
.bvbc-study__links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.bvbc-study__links a { display: inline-block; padding: 0.3rem 0; font-weight: 700; }

/* ---------- Bible questions ---------- */
.bvbc-short-answer { border-left: 4px solid var(--wp--preset--color--navy, #1d4ed8); background: var(--wp--preset--color--cream, #f7f8fa); border-radius: 0 6px 6px 0; padding: 1rem 1.25rem; margin-block: 1.5rem; font-size: var(--wp--preset--font-size--large); }
.bvbc-short-answer > :first-child { margin-top: 0; }
.bvbc-short-answer > :last-child { margin-bottom: 0; }
.bvbc-qindex__filter { margin-bottom: 1.5rem; max-width: 32rem; }
.bvbc-qindex__filter label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.bvbc-qindex__filter input { width: 100%; box-sizing: border-box; min-height: 2.75rem; padding: 0.5rem 0.75rem; font: inherit; border: 1px solid var(--wp--preset--color--muted, #4b5563); border-radius: 6px; }
.bvbc-qindex__count, .bvbc-qindex__total { color: var(--wp--preset--color--muted, #4b5563); font-size: var(--wp--preset--font-size--small); margin: 0.35rem 0 0; }
.bvbc-qindex__total { margin-bottom: 1rem; }
.bvbc-qindex__topic { margin-bottom: 2rem; }
.bvbc-qindex__heading { font-size: var(--wp--preset--font-size--x-large, 1.5rem); border-bottom: 2px solid var(--wp--preset--color--navy, #1d4ed8); padding-bottom: 0.35rem; margin-bottom: 0.5rem; }
.bvbc-qindex__list { list-style: none; padding: 0; margin: 0; columns: 2 20rem; column-gap: 2rem; }
.bvbc-qindex__list li { break-inside: avoid; border-bottom: 1px solid var(--wp--preset--color--line, #e5e7eb); }
.bvbc-qindex__list a { display: block; padding: 0.6rem 0; font-weight: 600; text-decoration: none; }
.bvbc-qindex__list a:hover, .bvbc-qindex__list a:focus-visible { text-decoration: underline; }
.bvbc-related-q { border-top: 1px solid var(--wp--preset--color--line, #e5e7eb); padding-top: 1.5rem; }
.bvbc-related-q__title { font-size: var(--wp--preset--font-size--large); margin-top: 0; }
.bvbc-related-q__all, .bvbc-related-q__ask { margin: 1rem 0 0; }
.bvbc-related-q__all a { font-weight: 700; }
@media print { .bvbc-qindex__filter { display: none; } }

/* Sermon filter (bvbc/sermon-filter). */
.bvbc-filter { background: var(--wp--preset--color--cream, #f7f8fa); border: 1px solid var(--wp--preset--color--line, #e5e7eb); border-top: 4px solid var(--wp--preset--color--navy, #1d4ed8); border-radius: 6px; padding: 1rem 1.25rem; }
.bvbc-filter__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0.75rem 1rem; }
.bvbc-filter__field { margin: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.bvbc-filter__field label { font-weight: 700; }
.bvbc-filter__field select { min-height: 44px; padding: 0.4rem 0.6rem; font: inherit; color: var(--wp--preset--color--ink, #111827); background: #fff; border: 1px solid #6b7280; border-radius: 4px; width: 100%; }
.bvbc-filter__actions { margin: 1rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.bvbc-filter__actions .bvbc-button { min-height: 44px; cursor: pointer; font: inherit; font-weight: 700; }
.bvbc-filter__clear { min-height: 44px; display: inline-flex; align-items: center; }
.bvbc-filter__status { font-weight: 700; margin-top: 1rem; }
.bvbc-filter__browse { margin-top: 1rem; }
.bvbc-filter__browse summary { cursor: pointer; font-weight: 700; display: list-item; padding: 0.6rem 0; color: var(--wp--preset--color--navy, #1d4ed8); }
.bvbc-filter__books { columns: 3 10rem; padding-left: 1.2rem; margin: 0.5rem 0 0; }
.bvbc-filter__books li { break-inside: avoid; padding: 0.2rem 0; }
.bvbc-filter__count { color: var(--wp--preset--color--muted, #4b5563); font-size: var(--wp--preset--font-size--small); }
@media print { .bvbc-sermon-filter { display: none; } }

/* Related sermons (bvbc/related-sermons). */
.bvbc-related-s { border-top: 1px solid var(--wp--preset--color--line, #e5e7eb); margin-top: var(--wp--preset--spacing--50, 2.5rem); padding-top: 1.5rem; }
.bvbc-related-s__title { margin-top: 0; }
.bvbc-related-s__group + .bvbc-related-s__group { margin-top: 1.5rem; }
.bvbc-related-s__heading { font-size: var(--wp--preset--font-size--large); margin: 0 0 0.5rem; }
.bvbc-related-s__list { list-style: none; padding: 0; margin: 0; }
.bvbc-related-s__list li { padding: 0.55rem 0; border-bottom: 1px solid var(--wp--preset--color--line, #e5e7eb); }
.bvbc-related-s__list a { font-weight: 700; }
.bvbc-related-s__meta { display: block; color: var(--wp--preset--color--muted, #4b5563); font-size: var(--wp--preset--font-size--small); }
.bvbc-related-s__all { margin: 0.6rem 0 0; }

/* Breadcrumbs (bvbc/breadcrumbs). Inherit the section's text colour so they work on white and on blue. */
.bvbc-breadcrumbs { font-size: var(--wp--preset--font-size--small); margin-bottom: 0.75rem; }
.bvbc-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.bvbc-breadcrumbs li { display: inline-flex; align-items: center; }
.bvbc-breadcrumbs li + li::before { content: "›"; content: "›" / ""; margin: 0 0.5rem; opacity: 0.8; }
.bvbc-breadcrumbs a { color: inherit; text-decoration: underline; text-underline-offset: 0.15em; display: inline-block; padding: 0.35rem 0; }
.bvbc-breadcrumbs [aria-current="page"] { font-weight: 700; }

/* Click-to-play YouTube (bvbc_render_recording). */
.bvbc-yt { position: relative; aspect-ratio: 16 / 9; background: #111827; border-radius: 6px; overflow: hidden; }
.bvbc-yt__link { position: absolute; inset: 0; display: block; }
.bvbc-yt__thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.bvbc-yt__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); transition: transform 0.15s ease; }
.bvbc-yt__link:hover .bvbc-yt__play, .bvbc-yt__link:focus-visible .bvbc-yt__play { transform: translate(-50%, -50%) scale(1.1); }
.bvbc-yt__link:focus-visible { outline: 3px solid var(--wp--preset--color--gold, #ffb703); outline-offset: -3px; }
.bvbc-yt__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (prefers-reduced-motion: reduce) { .bvbc-yt__play { transition: none; } }
@media print { .bvbc-yt { display: none; } }

/* Press-to-play BoxCast player (recordings, livestream): nothing loads from BoxCast until pressed. */
.bvbc-facade { background: #111827; border-radius: 6px; overflow: hidden; }
.bvbc-facade__link { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; color: #fff; text-decoration: none; font-weight: 600; background: radial-gradient(circle at center, #1f2937 0%, #111827 70%); }
.bvbc-facade__link:hover .bvbc-facade__play svg, .bvbc-facade__link:focus-visible .bvbc-facade__play svg { transform: scale(1.06); }
.bvbc-facade__play svg { display: block; transition: transform 0.15s ease; }
.bvbc-facade__label { font-size: var(--wp--preset--font-size--medium, 1.05rem); }
.bvbc-facade__link:focus-visible { outline: 3px solid var(--wp--preset--color--gold-light, #fde68a); outline-offset: -6px; }
.bvbc-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (prefers-reduced-motion: reduce) { .bvbc-facade__play svg { transition: none; } }

/* Quick-action bar on phones: Times, Directions, Watch, Give (includes/quick-bar.php). */
.bvbc-quick-bar { display: none; }
@media (max-width: 781px) {
	.bvbc-quick-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--wp--preset--color--ink, #14213d); border-top: 1px solid rgba(255,255,255,.18); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -2px 10px rgba(0,0,0,.18); }
	.bvbc-quick-bar ul { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 0; padding: 0; list-style: none; }
	.bvbc-quick-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; color: #fff; text-decoration: none; font-size: .82rem; font-weight: 600; line-height: 1.1; }
	.bvbc-quick-bar a svg { color: var(--wp--preset--color--gold-light, #ffd166); }
	.bvbc-quick-bar a:focus-visible { outline: 3px solid var(--wp--preset--color--gold-light, #ffd166); outline-offset: -4px; }
	body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}
@media print { .bvbc-quick-bar { display: none !important; } }

/* Search in the menu: icon button that opens a field. */
.bvbc-header .bvbc-nav-search .wp-block-search__button { background: transparent; color: inherit; border: 0; padding: .35rem; min-width: 44px; min-height: 44px; }
.bvbc-header .bvbc-nav-search .wp-block-search__input { min-width: 12rem; border-radius: 6px; }
.bvbc-header .wp-block-navigation__responsive-container.is-menu-open .bvbc-nav-search { width: 100%; margin-top: 1rem; }
.bvbc-header .wp-block-navigation__responsive-container.is-menu-open .bvbc-nav-search .wp-block-search__input { width: 100%; }

/* Homepage background video (includes/hero-video.php): fades in over the photo, under the overlay. */
.bvbc-hero .bvbc-hero-video { opacity: 0; transition: opacity 1.2s ease; object-position: 50% 18%; }
.bvbc-hero .bvbc-hero-video.is-playing { opacity: 1; }
.bvbc-hero-video-toggle { position: absolute; right: 1rem; bottom: 1rem; z-index: 3; background: rgba(20, 36, 53, 0.75); color: #fff; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 999px; padding: 0.5rem 0.9rem; font: inherit; font-size: 0.85rem; min-height: 44px; cursor: pointer; }
.bvbc-hero-video-toggle:hover, .bvbc-hero-video-toggle:focus-visible { background: #142435; outline: 3px solid var(--wp--preset--color--gold-light, #E9CF8E); outline-offset: 2px; }

/* Short messages: vertical tap-to-play clips in a row (scrolls sideways on phones). */
.bvbc-shorts__list { list-style: none; margin: 0; padding: 0 0 0.25rem; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(9.5rem, 1fr); gap: 0.85rem; overflow-x: auto; scroll-snap-type: x mandatory; }
.bvbc-short { scroll-snap-align: start; margin: 0; }
.bvbc-yt--short { aspect-ratio: 9 / 16; border-radius: 10px; }
.bvbc-short__title { margin: 0.45rem 0 0; font-size: 0.92rem; line-height: 1.35; font-weight: 600; color: var(--wp--preset--color--ink, #142435); }
@media (min-width: 782px) { .bvbc-shorts__list { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; } }

/* Spiritual Gifts Test */
.bvbc-gifts__saved { border: 1px solid var(--wp--preset--color--line, #e6e0d3); border-radius: 8px; padding: 1rem 1.25rem; margin: 0 0 1.5rem; }
.bvbc-gifts__saved legend { font-weight: 700; padding: 0 .25rem; }
.bvbc-gifts__saved label { display: block; padding: .35rem 0; }
.bvbc-gifts__nojs { margin: .5rem 0 0; font-size: var(--wp--preset--font-size--small); }
.bvbc-gifts__not-saved { background: var(--wp--preset--color--cream, #f8f5ed); border-left: 4px solid var(--wp--preset--color--gold, #ddb65f); border-radius: 8px; padding: 1.25rem 1.5rem; margin: 0 0 1.5rem; }
.bvbc-gifts__not-saved h2 { margin-top: 0; }
.bvbc-gifts__progress { position: sticky; top: 0; z-index: 2; background: var(--wp--preset--color--white, #fff); padding: .5rem 0; font-weight: 600; margin: 0; }
.bvbc-gifts__list { list-style: none; counter-reset: gift; padding: 0; margin: 0 0 2rem; }
.bvbc-gifts__list > li { counter-increment: gift; border-bottom: 1px solid var(--wp--preset--color--line, #e6e0d3); padding: 1rem 0; }
.bvbc-gifts__q { border: 0; margin: 0; padding: 0; min-width: 0; }
.bvbc-gifts__q legend { font-weight: 600; padding: 0; margin-bottom: .6rem; }
.bvbc-gifts__q legend::before { content: counter(gift) ". "; color: var(--wp--preset--color--muted, #55504a); }
.bvbc-gifts__options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.bvbc-gifts__options label { position: relative; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: .45rem .5rem; border: 1px solid var(--wp--preset--color--line, #e6e0d3); border-radius: 8px; cursor: pointer; font-size: var(--wp--preset--font-size--small); line-height: 1.25; background: var(--wp--preset--color--white, #fff); }
.bvbc-gifts__options input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.bvbc-gifts__options label:has(input:checked) { background: var(--wp--preset--color--navy, #24476b); border-color: var(--wp--preset--color--navy, #24476b); color: #fff; font-weight: 600; }
.bvbc-gifts__options label:has(input:focus-visible) { outline: 3px solid var(--wp--preset--color--gold-dark, #7a5810); outline-offset: 2px; }
@media (max-width: 600px) { .bvbc-gifts__options { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bvbc-gifts__gift { border: 1px solid var(--wp--preset--color--line, #e6e0d3); border-radius: 8px; padding: 1.25rem 1.5rem; margin: 0 0 1.5rem; }
.bvbc-gifts__gift h3 { margin-top: 0; }
.bvbc-gifts__plain { font-weight: 400; color: var(--wp--preset--color--muted, #55504a); }
.bvbc-gifts__phrase { font-style: italic; }
.bvbc-gifts__lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; }
.bvbc-gifts__lists h4 { margin: .5rem 0 .25rem; }
.bvbc-gifts__lists ul { margin: 0; padding-left: 1.2rem; }
.bvbc-gifts__scores { list-style: none; padding: 0; max-width: 34rem; }
.bvbc-gifts__scores li { display: grid; grid-template-columns: 11rem 1fr; gap: .75rem; align-items: center; padding: .3rem 0; }
.bvbc-gifts__bar { display: block; height: .7rem; background: var(--wp--preset--color--line, #e6e0d3); border-radius: 4px; overflow: hidden; }
.bvbc-gifts__bar span { display: block; height: 100%; background: var(--wp--preset--color--navy, #24476b); }
.bvbc-gifts__actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
@media print { .bvbc-gifts__bar, .bvbc-gifts__bar span { -webkit-print-color-adjust: exact; print-color-adjust: exact; } .bvbc-gifts__actions { display: none; } }
.bvbc-gifts__q, .bvbc-gifts__q input, .bvbc-gifts input[type="text"], .bvbc-gifts input[type="email"] { scroll-margin-top: 5rem; scroll-margin-bottom: 6rem; }
