/*
Theme Name: BVBC
Theme URI: https://www.bvbcministries.org/
Author: Blackstone Valley Baptist Church
Description: Clean, minimal block theme for Blackstone Valley Baptist Church, Cumberland, Rhode Island. Pair with the BVBC Church Core plugin for sermons, events and church information.
Version: 1.20261206.333
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bvbc
Update URI: https://github.com/jfhs6wxyyn-byte/bvbc-cumberland-bvbc-wordpress
*/

/* Most styling lives in theme.json. This file covers what theme.json cannot. */

/* Visible keyboard focus everywhere: deep blue on light areas, light yellow on blue areas (both above 3:1). */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible,
.wp-element-button:focus-visible {
	outline: 3px solid var(--wp--preset--color--navy-deep) !important;
	outline-offset: 2px;
}
.has-navy-background-color :focus-visible,
.has-navy-deep-background-color :focus-visible,
.has-ink-background-color :focus-visible,
.wp-block-cover :focus-visible,
.bvbc-header :focus-visible,
.bvbc-footer :focus-visible,
.wp-block-navigation__responsive-container.is-menu-open :focus-visible {
	outline-color: var(--wp--preset--color--gold-light) !important;
}

/* Links and headings inside dark (blue or charcoal) sections. */
.has-navy-background-color a:where(:not(.wp-element-button)),
.has-navy-deep-background-color a:where(:not(.wp-element-button)),
.has-ink-background-color a:where(:not(.wp-element-button)) {
	color: var(--wp--preset--color--gold-light);
}
.has-navy-background-color a:where(:not(.wp-element-button)):hover,
.has-navy-deep-background-color a:where(:not(.wp-element-button)):hover,
.has-ink-background-color a:where(:not(.wp-element-button)):hover {
	color: var(--wp--preset--color--white);
}
.has-navy-background-color :where(h1, h2, h3, h4, h5, h6),
.has-navy-deep-background-color :where(h1, h2, h3, h4, h5, h6),
.has-ink-background-color :where(h1, h2, h3, h4, h5, h6) {
	color: var(--wp--preset--color--white);
}

/* Header */
.bvbc-header .wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--ink) !important;
	color: var(--wp--preset--color--white) !important;
	padding: 1.5rem;
}
.bvbc-header .wp-block-navigation-item__content:hover,
.bvbc-header .wp-block-navigation-item__content:focus {
	color: var(--wp--preset--color--gold-light);
}
.bvbc-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--gold);
	text-underline-offset: 6px;
	text-decoration-thickness: 2px;
}
.bvbc-header .wp-block-navigation__submenu-container {
	background-color: var(--wp--preset--color--ink) !important;
	border-color: rgba(255,255,255,.14) !important;
}
/* Header buttons: Plan Your Visit (yellow) and Give (outline) side by side. */
.bvbc-header .wp-block-buttons { gap: 0.6rem; flex-wrap: nowrap; }
.bvbc-header .wp-block-button__link { white-space: nowrap; }
.bvbc-header > .alignwide { max-width: 1360px; }
@media (min-width: 1280px) { .bvbc-header .wp-block-navigation { gap: 1.1rem !important; } }
.bvbc-header .wp-block-button.is-style-outline .wp-block-button__link { border-color: rgba(255, 255, 255, 0.85); padding-left: 1.1em; padding-right: 1.1em; }
.bvbc-header .wp-block-button.is-style-outline .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--ink) !important; }

/* Kicker text above headings. */
.is-style-bvbc-kicker {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 700;
	font-size: var(--wp--preset--font-size--small);
}

/* Card style for groups. */
.wp-block-group.is-style-bvbc-card,
.wp-block-column.is-style-bvbc-card {
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--charcoal);
	border: 0;
	border-radius: 8px;
	padding: var(--wp--preset--spacing--40);
}

/* Ministry pathway graphic (pattern bvbc/pathway): four colour-coded stages with arrows,
   the loop back to Meet, and Worship as the foundation. Meet red, Connect yellow, Grow blue,
   Serve green; every text pair passes WCAG AA (white on red/blue/green, ink on yellow). */
.bvbc-pg { --pg-gap: 2.75rem; margin-top: var(--wp--preset--spacing--40); }
.bvbc-pg-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--pg-gap); position: relative; }
.bvbc-pg-steps > .bvbc-pg-step { margin: 0 !important; position: relative; background: var(--pg-tint, var(--wp--preset--color--cream)); border: 0; border-top: 3px solid var(--pg-c, var(--wp--preset--color--navy)); border-radius: 8px; padding: var(--wp--preset--spacing--40); text-align: center; }
.bvbc-pg-step h3 { margin: 0.4rem 0; font-size: clamp(1.3rem, 2vw, 1.6rem); color: var(--wp--preset--color--ink); }
.bvbc-pg-step p { margin: 0.25rem 0; }
.bvbc-pg-num { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--pg-c); color: var(--pg-on, #fff); font-weight: 800; margin: 0 auto !important; }
.bvbc-pg-fn { font-size: var(--wp--preset--font-size--small); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pg-t, var(--pg-c)); margin-top: 0.6rem !important; }
.bvbc-pg-step--meet { --pg-c: var(--wp--preset--color--red); --pg-t: var(--wp--preset--color--red-dark); --pg-tint: var(--wp--preset--color--red-tint); }
.bvbc-pg-step--connect { --pg-c: var(--wp--preset--color--gold); --pg-on: var(--wp--preset--color--ink); --pg-t: var(--wp--preset--color--gold-dark); --pg-tint: var(--wp--preset--color--gold-tint); }
.bvbc-pg-step--grow { --pg-c: var(--wp--preset--color--navy); --pg-tint: var(--wp--preset--color--blue-tint); }
.bvbc-pg-step--serve { --pg-c: var(--wp--preset--color--green); --pg-t: var(--wp--preset--color--green-dark); --pg-tint: var(--wp--preset--color--green-tint); }
/* Arrows between stages (decorative). */
.bvbc-pg-steps > .bvbc-pg-step:not(:last-child)::after { content: "→"; content: "→" / ""; position: absolute; top: 50%; right: calc(var(--pg-gap) / -2); transform: translate(50%, -50%); font-size: 1.8rem; font-weight: 800; color: var(--wp--preset--color--muted); }
.bvbc-pg-loop { margin: 1.25rem auto 0 !important; font-weight: 700; color: var(--wp--preset--color--muted); max-width: 40rem; }
.bvbc-pg-loop::before { content: "↺ "; content: "↺ " / ""; font-size: 1.3em; }
.bvbc-pg-band { margin-top: 1.25rem !important; border-radius: 10px; padding: 1.1rem 1.25rem; }
.bvbc-pg-band p { margin: 0.15rem 0; }
.bvbc-pg-band-title { font-weight: 700; font-size: clamp(1rem, 1.6vw, 1.15rem); }
.bvbc-pg-note { font-style: italic; color: var(--wp--preset--color--muted); }
@media (max-width: 900px) {
	.bvbc-pg-steps { grid-template-columns: 1fr; gap: 2.25rem; max-width: 30rem; margin-inline: auto; }
	.bvbc-pg-steps > .bvbc-pg-step:not(:last-child)::after { content: "↓"; content: "↓" / ""; top: auto; bottom: -2.25rem; right: 50%; transform: translate(50%, 0); }
}

/* Sermon and article lists. */
.bvbc-card-list .wp-block-post {
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding-bottom: var(--wp--preset--spacing--40);
}
.bvbc-card-list .wp-block-post-title a { text-decoration: none; }
.bvbc-card-list .wp-block-post-title a:hover { text-decoration: underline; }

/* Sermon page readability on phones. */
.single-bvbc_sermon .bvbc-sermon-section { scroll-margin-top: 1rem; }
.single-bvbc_sermon .bvbc-sermon-section h2 {
	border-bottom: 2px solid var(--wp--preset--color--gold);
	padding-bottom: 0.3rem;
}

/* Footer */
.bvbc-footer .bvbc-times__item,
.bvbc-footer .bvbc-times__family li { border-color: rgba(255, 255, 255, 0.18); }
.bvbc-footer .bvbc-button {
	background: var(--wp--preset--color--gold);
	border-color: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--navy-deep);
}

/* Images never overflow on phones. */
img, video, iframe { max-width: 100%; }
.wp-block-image img { height: auto; }

/* Print: clean, readable pages (sermon notes, devotions, guides, articles). */
@media print {
	@page { margin: 1.6cm; }
	html, body { background: #fff !important; color: #000 !important; font-size: 11.5pt; }
	header.wp-block-template-part,
	footer.wp-block-template-part,
	.bvbc-no-print,
	.wp-block-navigation,
	.wp-block-buttons,
	.wp-block-query-pagination,
	.wp-block-post-navigation-link,
	.wp-block-search,
	.wp-block-embed,
	audio,
	video,
	iframe { display: none !important; }
	.has-background { background: none !important; color: #000 !important; padding: 0 !important; }
	.has-navy-background-color :where(h1, h2, h3, h4, h5, h6, p, a),
	.has-ink-background-color :where(h1, h2, h3, h4, h5, h6, p, a) { color: #000 !important; }
	a { color: #000 !important; text-decoration: none !important; }
	.entry-content a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; word-break: break-all; }
	h1, h2, h3 { break-after: avoid; color: #000 !important; }
	p, li, blockquote { orphans: 3; widows: 3; }
	main { padding: 0 !important; margin: 0 !important; }
}

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

/* The header "Plan Your Visit" button is in the mobile menu instead. */
@media (max-width: 781px) {
	.bvbc-hide-mobile { display: none !important; }
	.bvbc-header .wp-block-site-title { font-size: 1.05rem; }
}
.bvbc-footer-links { list-style: none; padding-left: 0; }
.bvbc-footer-links li { padding: 0.2rem 0; }

.bvbc-contact.bvbc-map-only > p { display: none; }
.bvbc-contact.bvbc-map-only .bvbc-map p { display: block; }
.bvbc-contact.bvbc-map-only .bvbc-map { margin-top: 0; }

/* Use the menu button until there is room for the full menu and both header buttons (core switches at 600px). */
@media (min-width: 600px) and (max-width: 1279px) {
	.bvbc-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.bvbc-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
	.bvbc-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close { display: flex; }
}

/* No gap between header, page and footer. */
.wp-site-blocks > main,
.wp-site-blocks > footer { margin-block-start: 0; }

/* Wide screens: the gold "Plan Your Visit" button replaces the same link in the menu. */
@media (min-width: 1100px) {
	.bvbc-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item:has(> a[href*="plan-your-visit"]) { display: none; }
	/* The logo already links home, so the Home item is only shown in the phone menu. */
	.bvbc-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .wp-block-navigation-item:first-child { display: none; }
	.bvbc-header .wp-block-navigation__container { gap: 1.1rem; }
	/* Search sits beside the buttons on wide screens; the copy inside the menu is for the phone menu. */
	.bvbc-header .wp-block-navigation__responsive-container:not(.is-menu-open) .bvbc-nav-search { display: none; }
	.bvbc-header .wp-block-navigation { font-size: 0.97rem; }
}

/* Open phone menu: left-aligned, larger tap targets. */
.bvbc-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.bvbc-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
.bvbc-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container,
.bvbc-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.has-child {
	align-items: flex-start !important;
	text-align: left;
}
.bvbc-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { font-size: 1.2rem; }

/* Logo: when a site logo is set, it replaces the text name (the logo's alt text gives the name to screen readers). */
.bvbc-header .wp-block-site-logo + .wp-block-group { display: none; }
.bvbc-header .wp-block-site-logo img { max-height: none; width: 280px; height: auto; }
.bvbc-footer .bvbc-footer-logo { margin-bottom: var(--wp--preset--spacing--40); }
@media (max-width: 599px) {
	.bvbc-header .wp-block-site-logo img { width: 200px; }
	.bvbc-footer .bvbc-footer-logo img { width: 200px; }
}

/* Homepage banner: Sunday times line (from Church Info). Hide if no Sunday services are set. */
.bvbc-hero-times:empty { display: none; }

/* ---------------------------------------------------------------------------
   Clean, minimal homepage (2026-11-26): sentence-case headings, white cards
   with a thin border, one blue accent. Charcoal and soft gray sections take turns.
   ------------------------------------------------------------------------- */
.home .wp-block-cover h1 { line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; }

.bvbc-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--wp--preset--spacing--30); }
@media (max-width: 900px) { .bvbc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .bvbc-tiles { grid-template-columns: 1fr; } }
.bvbc-tiles > .bvbc-tile { margin: 0 !important; background: #fff; color: var(--wp--preset--color--ink); border: 1px solid var(--wp--preset--color--line); border-radius: 10px; padding: var(--wp--preset--spacing--40); display: flex; flex-direction: column; justify-content: space-between; gap: 0.6rem; transition: border-color 0.15s ease; }
.bvbc-tiles > .bvbc-tile:hover, .bvbc-tiles > .bvbc-tile:focus-within { border-color: var(--wp--preset--color--navy); }
.bvbc-tile h3 { margin: 0; font-size: clamp(1.2rem, 1.8vw, 1.4rem); font-weight: 700; color: var(--wp--preset--color--ink); line-height: 1.2; }
.bvbc-tile p { margin: 0; color: var(--wp--preset--color--muted); }
.bvbc-tile .wp-block-buttons { margin-top: 0.6rem; }
@media (prefers-reduced-motion: reduce) { .bvbc-tiles > .bvbc-tile { transition: none; } }

/* Small labels above headings: quiet gray on light backgrounds. */
.is-style-bvbc-kicker.has-gold-dark-color { color: var(--wp--preset--color--muted) !important; }

/* Outline buttons: thin blue border, fill on hover. */
.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color) { color: var(--wp--preset--color--navy); border: 1.5px solid currentColor; background: transparent; }
.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color):hover { background: var(--wp--preset--color--navy); color: #fff; border-color: var(--wp--preset--color--navy); }


/* Leadership portraits: fill the card width, gently rounded. */
.bvbc-portrait { margin: 0 0 var(--wp--preset--spacing--30); }
/* Email line under each leadership photo; long addresses wrap on phones. */
.bvbc-leader-email { overflow-wrap: anywhere; }
/* All three portraits share one shape and width so they look uniform (Justin Lewis, 2026-12-05).
   The shape matches the two tall photos; the square one is trimmed slightly at the sides. */
.bvbc-portrait img { display: block; width: 100%; height: auto; aspect-ratio: 1199 / 1312; object-fit: cover; object-position: 50% 25%; border-radius: 6px; }
/* Side-by-side cards: the names take the same height, so both photos start on the same line. */
@media (min-width: 782px) { .bvbc-people > .wp-block-column > h2.wp-block-heading { min-height: 2.4em; } }
.is-style-bvbc-kicker:not(.has-text-color) { color: var(--wp--preset--color--muted); }
/* Homepage cards: left-aligned text, buttons lined up along the bottom. */
.bvbc-tiles > .bvbc-tile { justify-content: flex-start; text-align: left; }
.bvbc-tile :where(h3, p) { text-align: left !important; margin-left: 0 !important; }
.bvbc-tile .wp-block-buttons { margin-top: auto !important; padding-top: 0.6rem; justify-content: flex-start !important; }
.bvbc-tile > * { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; width: 100%; }
/* A little air between list items (also keeps short links easy to tap). */
main .wp-block-list > li + li { margin-top: 0.45rem; }

/* ---------------------------------------------------------------------------
   Uniform page order (2026-11-26). Every page opens the same way: a soft gray
   header band (breadcrumbs, title, intro), then content in one column, with a
   thin line and even space before each main section. Long pages get an
   "On this page" list (plugin: includes/page-toc.php).
   ------------------------------------------------------------------------- */
.bvbc-page-header { padding-block: var(--wp--preset--spacing--50); margin-block: 0 var(--wp--preset--spacing--50) !important; }
.bvbc-page-header > * { margin-block: 0.4rem 0; }
.bvbc-page-header > :first-child { margin-top: 0; }
.bvbc-page-header .bvbc-breadcrumbs { margin-bottom: 0.25rem; }
.bvbc-page-header :where(h1) { margin-top: 0.25rem; }
/* Landing pages (Salvation, Resources, Bible Questions): the breadcrumbs sit in the same gray band as the page header. */
.page-template-page-landing main > .bvbc-breadcrumbs { background: var(--wp--preset--color--cream); box-shadow: 0 0 0 100vmax var(--wp--preset--color--cream); clip-path: inset(0 -100vmax); margin: 0 !important; padding-top: var(--wp--preset--spacing--40); }
.page-template-page-landing main > .wp-block-post-content { margin-block-start: 0; }
.bvbc-page-header.alignfull { padding-top: var(--wp--preset--spacing--50) !important; padding-bottom: var(--wp--preset--spacing--50) !important; }
main > .bvbc-breadcrumbs + .wp-block-post-content > .bvbc-page-header:first-child { padding-top: var(--wp--preset--spacing--20) !important; }

/* Section rhythm inside page content. */
.wp-block-post-content > h2.wp-block-heading { margin-top: var(--wp--preset--spacing--60); padding-top: var(--wp--preset--spacing--40); border-top: 1px solid var(--wp--preset--color--line); }
.wp-block-post-content > h2.wp-block-heading:first-child,
.wp-block-post-content > .bvbc-toc + h2.wp-block-heading { margin-top: var(--wp--preset--spacing--40); padding-top: 0; border-top: 0; }
.wp-block-post-content > h3.wp-block-heading { margin-top: var(--wp--preset--spacing--40); }

/* "On this page" list: quiet section links between two thin lines, no tinted box
   and no numbers (Justin Lewis, 2026-12-03: "more professional"). */
.bvbc-toc { box-sizing: border-box; background: none; border: 0; border-block: 1px solid var(--wp--preset--color--line); border-radius: 0; padding: 1rem 0 1.1rem; margin-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50) !important; }
.bvbc-toc-title { margin: 0 0 0.5rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; font-size: 0.75rem; line-height: 1.4; color: var(--wp--preset--color--muted); }
.bvbc-toc ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; }
.bvbc-toc li { margin: 0; padding: 0; }
.bvbc-toc a { display: flex; align-items: baseline; gap: 0.65rem; padding: 0.45rem 0; color: var(--wp--preset--color--navy); font-weight: 500; font-size: 0.975rem; line-height: 1.35; text-decoration: none; }
.bvbc-toc a::before { content: ""; flex: none; width: 0.4em; height: 0.4em; border-right: 2px solid var(--wp--preset--color--gold-dark); border-bottom: 2px solid var(--wp--preset--color--gold-dark); transform: translateY(-0.2em) rotate(45deg); }
.bvbc-toc a:hover, .bvbc-toc a:focus-visible { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
@media (max-width: 640px) { .bvbc-toc ol { grid-template-columns: 1fr; } .bvbc-toc a { padding-block: 0.4rem; } }
html { scroll-padding-top: 1rem; }

/* Scripture quotes: set apart, but no larger than the text around them. */
.wp-block-quote p { line-height: 1.6; }
.bvbc-portrait--narrow { max-width: 560px; margin-left: 0 !important; }

/* Discipleship lessons: fill-in-the-blank lines, read as "blank" by screen readers. */
.bvbc-blank { display: inline-block; min-width: 6em; border-bottom: 1.5px solid currentColor; vertical-align: -0.15em; }
.bvbc-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.bvbc-answers summary { cursor: pointer; font-weight: 600; }
@media print { .bvbc-answers, .bvbc-toc { display: none !important; } .bvbc-blank { min-width: 9em; } }

/* Homepage "Our church theme": keep the Theme Sunday date centered with the rest. */
.bvbc-year-theme .bvbc-events__list { max-width: 20rem; margin-left: auto !important; margin-right: auto !important; }
.bvbc-year-theme .bvbc-event { border-bottom: 0; }
.bvbc-year-theme .bvbc-theme-verse { max-width: 34rem; margin-left: auto !important; margin-right: auto !important; text-align: center; border-left: 0; padding-left: 0; }
.bvbc-year-theme .bvbc-theme-verse p { font-size: clamp(1.2rem, 1.05rem + 0.8vw, 1.5rem); line-height: 1.4; }
.bvbc-theme-art img { border-radius: 12px;  width: 100%; height: auto; max-width: 460px; display: block; margin: 0 auto; }
@media (max-width: 781px) { .bvbc-theme-art img { max-width: 340px; } }
.bvbc-pathway-art img { width: 100%; height: auto; border-radius: 10px; }
.bvbc-circles-art img { width: 100%; max-width: 560px; height: auto; }
.bvbc-kids-logo img, .bvbc-youth-logo img, .bvbc-ministry-logo img { width: 100%; max-width: 480px; height: auto; }
.bvbc-kids-badge { margin-block: 0.5rem 1rem; }
.bvbc-kids-badge img { height: auto; display: block; }

/* WCAG 2.2 target size (2.5.8): menu dropdown arrows and page numbers are at least 24 x 24 px. */
.wp-block-navigation .wp-block-navigation__submenu-icon { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; margin-left: 0; }
.wp-block-navigation .wp-block-navigation__submenu-icon svg { width: 12px; height: 12px; }
.wp-block-query-pagination-numbers .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; }

/* Word help under a KJV quotation (tools/kjv_word_help.json): defines older words; the verse itself is never re-worded. */
.bvbc-word-help { font-size: 0.92em; color: var(--wp--preset--color--muted); margin-top: -0.4rem; }
.bvbc-word-help strong { color: var(--wp--preset--color--ink); }
/* On dark sections (navy or ink backgrounds), use the section's own text color. */
:where(.has-ink-background-color, .has-navy-background-color, .has-navy-deep-background-color) .bvbc-word-help,
:where(.has-ink-background-color, .has-navy-background-color, .has-navy-deep-background-color) .bvbc-word-help strong { color: inherit; }

/* Christmas look (body.bvbc-christmas, day after Thanksgiving to January 6; Church Info → Christmas look). */
.bvbc-christmas-band { background: #FDF9F5; border-top: 4px solid #A61E22; border-bottom: 4px solid #A61E22; }
.bvbc-christmas-band h2 { color: #8E1B1F; font-family: var(--wp--preset--font-family--serif, Georgia, serif); font-style: italic; }
.bvbc-christmas-band .bvbc-christmas-kicker { color: #7A5418; }
.bvbc-christmas-band .bvbc-christmas-verse { border-left-color: #A61E22; }
.bvbc-christmas-art img { width: 100%; height: auto; border-radius: 10px;  }
.bvbc-christmas-button .wp-block-button__link { background: #8E1B1F; color: #fff; }
.bvbc-christmas-button .wp-block-button__link:hover { background: #6E1418; }
body.bvbc-christmas header.wp-block-template-part { box-shadow: inset 0 -4px 0 #A61E22; }
body.bvbc-christmas footer.wp-block-template-part { border-top: 4px solid #A61E22; }

/* Discipleship accountability card: a bordered card on screen; "Print my card" prints only the card. */
.bvbc-card { border: 2px solid var(--wp--preset--color--line); border-radius: 12px; padding: clamp(1rem, 3vw, 1.75rem); }
.bvbc-card .wp-block-table td, .bvbc-card .wp-block-table th { padding: 0.55em 0.6em; }
.bvbc-card .wp-block-table :is(td, th):first-child { width: 2.5em; }
@media print {
	/* Hide everything that doesn't contain the card, at every level, so it prints alone on one page. */
	body[data-bvbc-print="accountability-card"] .wp-site-blocks > :not(:has(.bvbc-card)),
	body[data-bvbc-print="accountability-card"] main :not(:has(.bvbc-card)):not(.bvbc-card):not(.bvbc-card *) { display: none !important; }
	body[data-bvbc-print="accountability-card"] .bvbc-card { border: 1px solid #000; break-inside: avoid; }
	.bvbc-card .wp-block-table td { height: 1.7em; }
}

/* Header search (wide screens). The menu's own search covers phones and tablets. */
.bvbc-header-search { display: none; }
@media (min-width: 1100px) {
	.bvbc-header-search { display: block; }
	.bvbc-header .bvbc-header-search .wp-block-search__button { background: transparent; color: #fff; border: 0; padding: .35rem; min-width: 44px; min-height: 44px; }
	.bvbc-header .bvbc-header-search .wp-block-search__input { min-width: 12rem; border-radius: 6px; }
}
@media (min-width: 1100px) and (max-width: 1499px) {
	.bvbc-header .wp-block-navigation { font-size: 0.9rem; }
	.bvbc-header .wp-block-navigation__container { gap: 0.8rem; }
	.bvbc-header .wp-block-site-logo img { width: 220px; }
	.bvbc-header .wp-block-buttons .wp-block-button__link { font-size: 0.95rem; padding: 0.6em 1em; }
	.bvbc-header > .wp-block-group > .wp-block-group { gap: 0.9rem; }
}

/* Statement of Faith: everyday-words box under each article. */
.bvbc-sof-plain { background: var(--wp--preset--color--cream, #fbf7ef); border-left: 4px solid var(--wp--preset--color--gold, #d4a72c); padding: 0.85rem 1rem; border-radius: 6px; }
.bvbc-sof-plain strong { color: var(--wp--preset--color--ink); }

/* ---------------------------------------------------------------------------
 * Visual refinement (2026-11-30): broader, restrained palette; less clutter.
 * Neutrals carry most of the page; color marks identity, hierarchy and emphasis.
 * ------------------------------------------------------------------------ */
:root {
	--bvbc-accent: var(--wp--preset--color--navy);
	--bvbc-accent-text: var(--wp--preset--color--navy);
	--bvbc-accent-tint: var(--wp--preset--color--blue-tint);
}
/* Cards on a cream section turn white, so they still read as cards. */
.has-cream-background-color .wp-block-group.is-style-bvbc-card,
.has-cream-background-color .wp-block-column.is-style-bvbc-card { background: var(--wp--preset--color--white); }
/* Headings: deep navy, restrained weight; body text charcoal. */
:where(h1, h2, h3, h4) { color: var(--wp--preset--color--ink); }
:where(.has-ink-background-color, .has-navy-background-color, .has-navy-deep-background-color) :where(h1, h2, h3, h4, p, li) { color: inherit; }
h3.wp-block-heading { font-weight: 650; }
/* Links: heritage blue with a calm underline. */
:where(main) a:where(:not(.wp-element-button):not(.wp-block-button__link)) { color: var(--wp--preset--color--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
:where(main) a:where(:not(.wp-element-button):not(.wp-block-button__link)):hover { color: var(--wp--preset--color--red); }
:where(.has-ink-background-color, .has-navy-background-color, .has-navy-deep-background-color) a:where(:not(.wp-element-button):not(.wp-block-button__link)) { color: var(--wp--preset--color--gold-light); }
/* Buttons: one primary style (heritage blue; gold on dark), outline as secondary. */
.wp-block-button__link { transition: background-color .15s ease, color .15s ease; box-shadow: none; }
/* Page header band gets the page's accent as a thin rule. */
.bvbc-page-header { border-bottom: 3px solid var(--bvbc-accent); }
.is-style-bvbc-kicker:not(.has-text-color) { color: var(--bvbc-accent-text); }
/* Ministry accents: subtle, one per ministry, all still BVBC. */
.bvbc-page-kids { --bvbc-accent: var(--wp--preset--color--gold); --bvbc-accent-text: var(--wp--preset--color--navy); --bvbc-accent-tint: var(--wp--preset--color--gold-tint); }
.bvbc-page-youth { --bvbc-accent: var(--wp--preset--color--orange); --bvbc-accent-text: var(--wp--preset--color--orange-dark); --bvbc-accent-tint: var(--wp--preset--color--orange-tint); }
.bvbc-page-men { --bvbc-accent: var(--wp--preset--color--navy); --bvbc-accent-text: var(--wp--preset--color--navy); --bvbc-accent-tint: var(--wp--preset--color--blue-tint); }
.bvbc-page-women, .bvbc-page-young-moms { --bvbc-accent: var(--wp--preset--color--plum); --bvbc-accent-text: var(--wp--preset--color--plum); --bvbc-accent-tint: var(--wp--preset--color--plum-tint); }
.bvbc-page-salvation { --bvbc-accent: var(--wp--preset--color--red); --bvbc-accent-text: var(--wp--preset--color--red); --bvbc-accent-tint: var(--wp--preset--color--red-tint); }
.bvbc-page-plan-your-visit, .bvbc-page-lets-get-acquainted { --bvbc-accent: var(--wp--preset--color--red); --bvbc-accent-text: var(--wp--preset--color--red); }
.bvbc-page-how-we-grow, .bvbc-page-discipleship, .bvbc-page-resources { --bvbc-accent: var(--wp--preset--color--navy); }
.bvbc-page-sign-up, .bvbc-page-prayer { --bvbc-accent: var(--wp--preset--color--green); --bvbc-accent-text: var(--wp--preset--color--green-dark); --bvbc-accent-tint: var(--wp--preset--color--green-tint); }
.bvbc-page-ministries .is-style-bvbc-card, .bvbc-page-kids .is-style-bvbc-card, .bvbc-page-youth .is-style-bvbc-card, .bvbc-page-men .is-style-bvbc-card, .bvbc-page-women .is-style-bvbc-card { background: var(--bvbc-accent-tint); }
/* Images: no drop shadows, gentle corners, consistent proportions. */
.wp-block-image img { border-radius: 8px; }
.wp-block-image.is-style-rounded img, .wp-block-site-logo img, .bvbc-kids-badge img { border-radius: 0; }
/* Everyday-words box on the Statement of Faith uses the gold accent. */
.bvbc-sof-plain { background: var(--wp--preset--color--gold-tint); border-left-color: var(--wp--preset--color--gold); }

/* Pathway steps link to a real next step (Plan Your Visit, Let's Get Acquainted, Discipleship, Sign Up). */
.bvbc-pg-step h3 a { color: inherit; text-decoration: none; }
.bvbc-pg-step h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.bvbc-pg-step:hover, .bvbc-pg-step:focus-within { outline: 2px solid var(--pg-c); outline-offset: 2px; }
/* Phones: the four steps sit in a 2 x 2 grid instead of a tall column. */
@media (max-width: 900px) {
	.bvbc-pg-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; max-width: 36rem; }
	.bvbc-pg-steps > .bvbc-pg-step { padding: 1rem 0.75rem; }
	.bvbc-pg-steps > .bvbc-pg-step:not(:last-child)::after { content: none; }
	.bvbc-pg-num { width: 2.1rem; height: 2.1rem; font-size: .95rem; }
	.bvbc-pg-step h3 { font-size: 1.2rem; }
	.bvbc-pg-step p { font-size: .95rem; line-height: 1.45; }
	.bvbc-pg-loop, .bvbc-pg-band { font-size: .95rem; }
}

/* Hero: service times stand out; the lead line is a calm size. */
.bvbc-hero-times { background: rgba(221, 182, 95, 0.16); border-left: 4px solid var(--wp--preset--color--gold); border-radius: 0 8px 8px 0; padding: 0.55em 0.9em; color: #fff; }
.bvbc-hero-lead { font-size: clamp(1.1rem, 2.4vw, 1.4rem); line-height: 1.5; }
/* Hero: address, directions and children in one small line under the buttons. */
.bvbc-contact-line__item { white-space: nowrap; } /* A "·" never starts a line on its own. */
.bvbc-hero .bvbc-contact-line { color: #fff; font-size: 1rem; margin-top: var(--wp--preset--spacing--30); }
.bvbc-hero .bvbc-contact-line a { color: var(--wp--preset--color--gold-light); font-weight: 600; text-decoration: underline; text-underline-offset: 0.18em; }
.bvbc-hero .bvbc-contact-line a:hover, .bvbc-hero .bvbc-contact-line a:focus { color: #fff; }
/* Plan Your Visit: the short version, before the contents list. */
.bvbc-visit-summary { margin-bottom: var(--wp--preset--spacing--50); }
.bvbc-visit-summary h2 { margin-top: 0; }
@media (max-width: 600px) {
	.bvbc-hero-times { font-size: 1.02rem !important; }
	.wp-block-cover.alignfull:first-child { min-height: 0 !important; }
}
/* Simple text links in a row (instead of extra buttons). */
.bvbc-text-links a { margin-right: 1.25rem; font-weight: 600; white-space: nowrap; }
.bvbc-text-links a::after { content: " →"; content: " →" / ""; }
/* Pastor welcome: real photo, gentle crop, small caption. */
/* Portrait photo in a wider frame: keep the top (heads), trim from the bottom. */
.bvbc-welcome-photo img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 0; width: 100%; }
.bvbc-welcome-photo figcaption { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); text-align: left; }
@media (max-width: 781px) { .bvbc-welcome-photo { max-width: 22rem; } }
/* Seasonal and theme art: smaller on phones so the band stays compact. */
@media (max-width: 781px) {
	.bvbc-christmas-art, .bvbc-theme-art { max-width: 15rem; margin-inline: auto !important; }
	.bvbc-christmas-band .wp-block-columns, .bvbc-year-theme .wp-block-columns { gap: 1rem; }
}
/* Family section: four short cards in a 2 x 2 grid on phones. */
@media (max-width: 781px) {
	.bvbc-family .wp-block-columns { display: grid !important; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
	.bvbc-family .wp-block-column { margin: 0 !important; }
	.bvbc-family .is-style-bvbc-card { padding: 1rem; height: 100%; box-sizing: border-box; }
	.bvbc-family .is-style-bvbc-card h3 { font-size: 1.1rem; }
	.bvbc-family .is-style-bvbc-card p { font-size: .95rem; line-height: 1.45; }
	.bvbc-family .bvbc-kids-badge { max-width: 8rem; }
}
/* Footer: smaller headings, links in two columns on phones, quieter separators. */
.bvbc-footer .bvbc-footer-h { font-size: 1.05rem; letter-spacing: 0.02em; color: var(--wp--preset--color--gold-light); margin-bottom: 0.6rem; }
.bvbc-footer .bvbc-footer-links { list-style: none; padding: 0; columns: 2; column-gap: 1.5rem; }
.bvbc-footer .bvbc-footer-links li { margin: 0 0 0.45rem; break-inside: avoid; }
.bvbc-footer .wp-block-separator { opacity: 0.25; }
@media (max-width: 781px) {
	.bvbc-footer .wp-block-columns { gap: 1.5rem; }
	.bvbc-footer .bvbc-footer-logo img { width: 170px !important; }
}

/* Phones: the seasonal invite art and the year-theme art repeat what the heading beside
   them already says, so they step aside to keep the homepage short (shown from 601px up). */
@media (max-width: 600px) {
	.home .bvbc-christmas-art, .home .bvbc-theme-art { display: none; }
	.home .bvbc-christmas-band .wp-block-column:has(> .bvbc-christmas-art:only-child),
	.home .bvbc-year-theme .wp-block-column:has(> .bvbc-theme-art:only-child) { display: none; }
}
/* First Sunday: one card, address under the times. */
.bvbc-first-sunday-address { font-weight: 600; margin-top: 1rem; }

/* Phones: the pastor photo is a modest portrait beside the welcome, not a full-width banner. */
@media (max-width: 781px) {
	.bvbc-welcome .bvbc-welcome-photo { max-width: 13rem; }
	.bvbc-welcome .bvbc-welcome-photo img { aspect-ratio: 1 / 1; }
}
/* Footer social links in one wrapping row. */
.bvbc-footer .bvbc-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }

/* Spotify links on the homepage: one compact row. */
.bvbc-inline-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; font-size: 0.95rem; }
/* Homepage pathway: just the four linked steps and the short note; the loop and the
   Worship foundation are explained in full on How We Grow. */
.home .bvbc-pathway .bvbc-pg-loop, .home .bvbc-pathway .bvbc-pg-band { display: none; }
.home .bvbc-pathway .bvbc-pg-note { margin-top: 0.75rem; font-size: .9rem; }

/* "Our church's wording" / "Read the church's full wording": a quiet, tappable toggle. */
.bvbc-original-wording { margin-top: 0.5rem; }
.bvbc-original-wording > summary { cursor: pointer; font-weight: 600; color: var(--wp--preset--color--navy); padding: 0.6rem 0; min-height: 44px; box-sizing: border-box; display: list-item; }
.bvbc-original-wording > summary:hover { color: var(--wp--preset--color--red); }
.bvbc-original-wording > summary:focus-visible { outline: 3px solid var(--wp--preset--color--navy-deep); outline-offset: 2px; }
.bvbc-original-wording[open] > summary { margin-bottom: 0.25rem; }
.bvbc-original-wording ul { font-size: 0.95rem; color: var(--wp--preset--color--muted); }
