/*
 Theme Name:   Blueprint for Change (Kadence Child)
 Theme URI:    https://obesityblueprintforchange.org/
 Description:  Kadence child theme for Blueprint for Change. Holds the site's custom styles and adds sanitised SVG upload support for administrators.
 Author:       More Time To
 Author URI:   https://moretimeto.com
 Template:     kadence
 Version:      1.2.34
 Tags:         customizable, responsive-layout, gutenberg, header builder, footer builder
 Text Domain:  bpfc-child
*/

/* Theme customization starts here
-------------------------------------------------------------- */

/* Contrast (Chris, 17 November 2026): teal is #3D8181 (palette 1) wherever it meets white, and
   #357171 for teal text on the light grey #E4E7EF. Both are the nearest shades of live's #489999
   that reach WCAG AA 4.5:1. */
:root {
	--bpfc-teal-on-grey: #357171;
}

/* Width (17 November 2026): like live's Divi rows, content is 80% of the window, up to 1360px
   (Customizer content width). Edge padding is 0 in the Customizer, as Divi had none. */
.site-container,
.site-footer-row-layout-contained,
.entry-hero-layout-contained {
	max-width: min(80%, 1360px);
}

/* Forms (17 November 2026): Kadence's global button style is the content button (weight 500).
   Live's Restrict Content Pro buttons inherited the body weight. */
body .rcp_form .rcp-button {
	font-weight: 400;
}

/* =========================================================================
   Header (17 November 2026), measured from live's Divi Theme Builder headers.
   ========================================================================= */

/* Width: live's header menu is 80% of the window (not capped), 95% up to 980px, 90% on phone.
   Kadence switches to the phone header at 980px too (Customizer setting header_mobile_switch = 981). */
#masthead .site-header-row-container-inner > .site-container {
	max-width: 80%;
}
@media (max-width: 980px) {
	#masthead .site-header-row-container-inner > .site-container { max-width: 95%; }
}
@media (max-width: 767px) {
	#masthead .site-header-row-container-inner > .site-container { max-width: 90%; }
}

/* Height: 22px above and below the tallest item (logo 44px → 88px bar; avatar 50px → 94px). */
#masthead .site-main-header-inner-wrap {
	padding-block: 22px;
}

/* Menu: 15px between items (each link also has 15px side padding, from the Customizer). */
#masthead .header-navigation .menu > li + li {
	margin-left: 15px;
}
#masthead .header-navigation .menu > li > a {
	line-height: 18px;
}

/* Log in / Log out pill (white outline) and Register pill (teal, white outline): 120 × 40. */
#masthead .header-navigation .menu > li.bpfc-pill > a {
	border: 2px solid var(--global-palette9);
	border-radius: 26px;
	color: var(--global-palette9);
}
#masthead .header-navigation .menu > li.bpfc-pill-teal > a {
	background: var(--global-palette1);
}
#masthead .header-navigation .menu > li.bpfc-pill > a:hover,
#masthead .header-navigation .menu > li.bpfc-pill > a:focus {
	color: var(--global-palette9);
}

/* Member avatar: 50px circle (styles in mu-plugins/bpfc/assets/bpfc.css), no link padding. */
#masthead .header-navigation .menu > li.bpfc-avatar > a {
	padding: 0;
}

/* Phone menu button: live's deep blue box, 63 × 51, inside a 63px slot. */
#masthead .mobile-toggle-open-container {
	height: 63px;
	align-self: flex-start;
}
#masthead .mobile-toggle-open-container .menu-toggle-open {
	width: 63px;
	height: 51px;
	justify-content: center;
	border-radius: 0; /* live's button is square */
}

/* =========================================================================
   Footer (17 November 2026), measured from live's footer layout (#71).
   ========================================================================= */

@media (max-width: 767px) {
	#colophon .site-footer-row-container-inner > .site-container { max-width: 90%; }
}
#colophon .widget,
#colophon .footer-widget-area-inner > *:last-child {
	margin-bottom: 0;
}
#colophon .wp-block-image {
	margin: 0;
}
#colophon .bpfc-footer-title {
	font-size: 20px;
	line-height: 30px;
	font-weight: 700;
	color: var(--global-palette9);
	margin: 0 0 8px;
	padding-bottom: 10px;
}
#colophon .wp-block-kadence-advancedheading:not(.bpfc-footer-title) {
	margin: 0;
	line-height: 24px;
	color: var(--global-palette9);
}
#colophon a {
	color: var(--global-palette9);
	text-decoration: none;
}
/* The legal links column has no heading; live starts it 42px lower than the headings. */
#colophon .footer-widget5 {
	margin-top: 42px;
}
/* Social squares: 32 × 32. */
#colophon .footer-social-inner-wrap .social-button {
	width: 32px;
	height: 32px;
	padding: 0;
	justify-content: center;
}
#colophon .bpfc-mtt-logo {
	display: block;
	width: 130px;
	height: auto;
}

/* Header fine-tuning (measured against live, 17 November 2026). */
#masthead .header-navigation .menu > li.bpfc-pill > a {
	width: 120px;
	justify-content: center;
}
#masthead .site-header-main-section-right .header-navigation {
	transform: translateY(-2px); /* live's menu sits 2px above the logo's centre line */
}
#masthead .site-mobile-header-wrap .site-header-main-section-left {
	align-self: flex-start; /* phone logo at the top of the bar, as live */
}

/* Footer fine-tuning. */
#colophon .footer-html-inner {
	text-align: right;
}
#colophon .site-bottom-footer-inner-wrap {
	align-items: flex-start;
}
#colophon .footer-html-inner {
	line-height: 0; /* no text line round the logo, so it adds no height */
}
#colophon .footer-html-inner a {
	display: inline-block;
	margin-top: -6px; /* puts the credit 10px below the top of the social icons, as live */
}
@media (max-width: 767px) {
	#colophon .footer-html-inner a { margin-top: 22px; } /* live: 38px below the icons on phone */
}
#masthead .header-navigation .menu > li.bpfc-avatar {
	margin-left: 23px; /* live leaves 23px before the avatar */
}
body.logged-in #masthead .site-header-main-section-right .header-navigation {
	transform: none; /* the 2px lift is only on live's logged-out bar */
}
#colophon a.social-button,
#colophon a.social-button:hover {
	color: var(--global-palette10); /* dark navy icons on the white squares (overrides the white footer links) */
}

/* =========================================================================
   Header pills: deliberate changes from live (approved by Chris, 17 November 2026).
   Text centred; on hover the text stays white and Register's teal shows at 80%.
   Log in / Log out have no fill, so they stay transparent on hover.
   ========================================================================= */
#masthead .header-navigation .menu > li.bpfc-pill > a {
	text-align: center;
}
#masthead .header-navigation .menu > li.bpfc-pill > a:hover,
#masthead .header-navigation .menu > li.bpfc-pill > a:focus,
#masthead .header-navigation .menu > li.bpfc-pill.current-menu-item > a {
	color: var(--global-palette9); /* not the light teal used for other menu links */
}
#masthead .header-navigation .menu > li.bpfc-pill-teal > a:hover,
#masthead .header-navigation .menu > li.bpfc-pill-teal > a:focus {
	background: rgba(61, 129, 129, 0.8); /* palette1 #3D8181 at 80%; border and text stay solid */
}
/* Log in / Log out hover: a faint white fill (Chris, 17 November 2026). Text and border stay white. */
#masthead .header-navigation .menu > li.bpfc-pill:not(.bpfc-pill-teal) > a:hover,
#masthead .header-navigation .menu > li.bpfc-pill:not(.bpfc-pill-teal) > a:focus {
	background: rgba(255, 255, 255, 0.12);
}

/* =========================================================================
   Phone menu: a deliberate redesign (Chris, 17 November 2026).
   Kadence settings (kadence-settings/set-header-footer.php): full-screen drawer in the
   header's navy, logo repeated in the drawer, 22px semibold white links, 12% white dividers.
   Below: the drawer's own bar copies the header bar exactly, so the logo doesn't move and the
   close button sits where the menu button was. Only the panel under the bar slides in.
   Esc to close and keeping Tab inside the open menu come from Kadence's own script.
   ========================================================================= */
#mobile-drawer .drawer-inner {
	display: block;
	background: transparent; /* the bar and the panel each carry the navy */
	opacity: 1;
	transform: none;
	transition: none;
	overflow: hidden;
}
#mobile-drawer .drawer-content {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 0;
}
/* The bar: same height and logo position as the header bar (90% / 95% wide container). */
#mobile-drawer .drawer-content > .site-header-item[data-section="title_tagline"] {
	flex: none;
	box-sizing: border-box;
	height: 107px;
	margin: 0;
	padding: 22px 5% 0;
	background: var(--global-palette2);
	align-items: flex-start;
}
#mobile-drawer .drawer-content > .site-header-item[data-section="title_tagline"] .custom-logo {
	width: 200px;
	max-width: 200px;
	height: auto;
}
/* Close button: exactly over the menu button (63 × 51, deep blue box, 22px from the top). */
#mobile-drawer .drawer-header {
	position: absolute;
	top: 22px;
	right: 5%;
	z-index: 2;
	min-height: 0;
	padding: 0;
}
#mobile-drawer .drawer-header .menu-toggle-close {
	box-sizing: border-box;
	width: 63px;
	height: 51px;
	padding: 0;
}
#mobile-drawer .drawer-toggle .toggle-close-bar {
	transition-duration: 0.15s;
	transition-delay: 0s; /* Kadence waits 0.2s before drawing the cross */
}
@media (min-width: 768px) {
	#mobile-drawer .drawer-content > .site-header-item[data-section="title_tagline"] { padding-inline: 2.5%; }
	#mobile-drawer .drawer-header { right: 2.5%; }
}
/* The panel under the bar: slides in from the right in 250ms. */
#mobile-drawer .drawer-content > .site-header-item-mobile-navigation {
	display: block;
	flex: 1 1 auto;
	min-height: 0;
	margin: 0;
	overflow-y: auto;
	padding: 8px 5% 48px;
	background: var(--global-palette2);
	transform: translateX(100%);
	transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
#mobile-drawer.active .drawer-content > .site-header-item-mobile-navigation {
	transform: none;
}
@media (min-width: 768px) {
	#mobile-drawer .drawer-content > .site-header-item-mobile-navigation { padding-inline: 2.5%; }
}
@media (prefers-reduced-motion: reduce) {
	#mobile-drawer .drawer-content > .site-header-item-mobile-navigation,
	#mobile-drawer .drawer-overlay,
	#mobile-drawer .drawer-toggle .toggle-close-bar,
	#mobile-drawer.popup-drawer {
		transition: none;
	}
}
/* Page links: at least 56px tall, current page marked with a 4px light-teal bar, text white. */
#mobile-drawer .mobile-navigation ul#mobile-menu,
#mobile-drawer .mobile-navigation ul.menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}
#mobile-drawer .mobile-navigation ul.menu > li {
	flex: 0 0 100%;
}
#mobile-drawer .mobile-navigation ul.menu > li > a {
	display: flex;
	align-items: center;
	box-sizing: border-box;
	min-height: 56px;
	padding: 10px 16px;
}
#mobile-drawer .mobile-navigation ul.menu > li.current-menu-item > a {
	color: var(--global-palette9);
	box-shadow: inset 4px 0 0 var(--global-palette11);
}
/* No divider under the last page link (dividers go between rows only). */
#mobile-drawer .mobile-navigation ul.menu > li:not(.bpfc-register):not(.bpfc-auth):not(.bpfc-avatar):has(+ li.bpfc-register, + li.bpfc-auth, + li.bpfc-avatar) > a {
	border-bottom: 0;
}
/* Actions: below the links with a clear gap. Logged out: Register then Log in, full width.
   Logged in: the avatar and an outline Log out pill on one row (no Register). */
#mobile-drawer .mobile-navigation ul.menu > li.bpfc-register { order: 1; margin-top: 32px; }
#mobile-drawer .mobile-navigation ul.menu > li.bpfc-avatar   { order: 2; margin-top: 32px; flex: none; }
#mobile-drawer .mobile-navigation ul.menu > li.bpfc-auth     { order: 3; margin-top: 12px; }
body.logged-in #mobile-drawer .mobile-navigation ul.menu > li.bpfc-auth {
	flex: 1 1 0;
	margin: 32px 0 0 16px;
}
#mobile-drawer .mobile-navigation ul.menu > li.bpfc-register > a,
#mobile-drawer .mobile-navigation ul.menu > li.bpfc-auth > a {
	justify-content: center;
	min-height: 48px;
	padding: 0 20px;
	border: 2px solid var(--global-palette9);
	border-radius: 26px;
	color: var(--global-palette9);
	font-size: 18.08px; /* as the desktop pills */
	font-weight: 400;
	box-shadow: none;
}
#mobile-drawer .mobile-navigation ul.menu > li.bpfc-register > a {
	background: var(--global-palette1);
}
#mobile-drawer .mobile-navigation ul.menu > li.bpfc-register > a:hover {
	background: rgba(61, 129, 129, 0.8);
}
#mobile-drawer .mobile-navigation ul.menu > li.bpfc-auth > a:hover {
	color: var(--global-palette9);
	background: rgba(255, 255, 255, 0.12);
}
#mobile-drawer .mobile-navigation ul.menu > li.bpfc-avatar > a {
	display: block;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
}
/* Visible keyboard focus on the navy. */
#mobile-drawer a:focus-visible,
#mobile-drawer button:focus-visible {
	outline: 2px solid var(--global-palette9);
	outline-offset: 2px;
}
#mobile-drawer .mobile-navigation ul.menu > li:not(.bpfc-register):not(.bpfc-auth):not(.bpfc-avatar) > a:focus-visible {
	outline-offset: -2px; /* inside the row, so the panel edge can't clip it */
}

/* =========================================================================
   Stage 4 pages (17 November 2026): converted from Divi, built by build-scripts/build_legal.py etc.
   Each page has Kadence's title band, boxed content and vertical padding switched off, so these
   rules copy Divi's own spacing: a section is a full-width Group (.bpfc-section, Divi padding 4%,
   50px up to 980px), a row is a Group inside it (.bpfc-row, 80% wide up to 1360px, padding 2%,
   30px up to 980px). Text blocks carry classes for Divi's per-module styles.
   ========================================================================= */
/* WordPress wraps each Group's blocks in .wp-block-group__inner-container on classic themes,
   so "inside" below means directly inside the Group or its inner container. */
.entry-content > .wp-block-group.bpfc-section { /* beats WordPress's .wp-block-group.has-background padding */
	margin: 0;
	padding: 4% 0;
}
.entry-content > .wp-block-group.bpfc-section.bpfc-pad-0 {
	padding-top: 0;
	padding-bottom: 0;
}
:is(.bpfc-section, .bpfc-section > .wp-block-group__inner-container) > .bpfc-row {
	width: 80%;
	max-width: 1360px;
	margin: 0 auto;
	padding: 2% 0;
}
@media (max-width: 980px) {
	.entry-content > .wp-block-group.bpfc-section:not(.bpfc-pad-0) { padding: 50px 0; }
	:is(.bpfc-section, .bpfc-section > .wp-block-group__inner-container) > .bpfc-row { padding: 30px 0; }
}
:is(.bpfc-row, .bpfc-row > .wp-block-group__inner-container, .bpfc-row .wp-block-column, .bpfc-faq .kt-accordion-panel-inner) > * {
	margin-top: 0;
	margin-bottom: 0;
}
/* Page title (Divi heading module): global H1 style, 10px under, 8px to the next module. */
:is(.bpfc-row, .bpfc-row > .wp-block-group__inner-container, .bpfc-row .wp-block-column, .bpfc-faq .kt-accordion-panel-inner) > h1.bpfc-page-title {
	padding-bottom: 10px;
	margin-bottom: 8px;
}
/* Divi text module: line height 1.45em, 1em between paragraphs. */
:is(.bpfc-row, .bpfc-row > .wp-block-group__inner-container, .bpfc-row .wp-block-column, .bpfc-faq .kt-accordion-panel-inner) > p.bpfc-text {
	line-height: 1.45em;
	padding-bottom: 1em;
}
:is(.bpfc-row, .bpfc-row > .wp-block-group__inner-container, .bpfc-row .wp-block-column, .bpfc-faq .kt-accordion-panel-inner) > p.bpfc-text:last-child {
	padding-bottom: 0;
}
:is(.bpfc-row, .bpfc-row > .wp-block-group__inner-container, .bpfc-row .wp-block-column, .bpfc-faq .kt-accordion-panel-inner) > p.bpfc-w50 {
	width: 50%;
	margin-inline: auto;
}
/* Full width on phones (up to 767px), whatever width the block has on larger screens.
   A deliberate change from live (Chris, 17 November 2026): live keeps the legal intros at 50%
   on phones, about three words a line. */
@media (max-width: 767px) {
	:is(.bpfc-row, .bpfc-row > .wp-block-group__inner-container, .bpfc-row .wp-block-column, .bpfc-faq .kt-accordion-panel-inner) > :is(p, h1, h2, h3, h4, h5, h6, ul, ol, figure, div).bpfc-full-on-phone { /* tag included so it beats p.bpfc-w50 */
		width: 100%;
	}
}
/* Teal band text: bold white 1.63em, line height 1.15em, 90% wide. */
:is(.bpfc-row, .bpfc-row > .wp-block-group__inner-container, .bpfc-row .wp-block-column, .bpfc-faq .kt-accordion-panel-inner) > p.bpfc-band-text {
	width: 90%;
	margin-inline: auto;
	font-size: 1.63em;
	font-weight: 700;
	line-height: 1.15em;
	color: var(--global-palette9);
}
:is(.bpfc-row, .bpfc-row > .wp-block-group__inner-container, .bpfc-row .wp-block-column, .bpfc-faq .kt-accordion-panel-inner) > figure.wp-block-image {
	margin: 0;
}

/* About (17 November 2026): Divi two-column rows. Columns 48.5% wide with a 3% gap; stacked with 30px
   between them up to 980px, as Divi. */
:is(.bpfc-row, .bpfc-row > .wp-block-group__inner-container) > .wp-block-columns.bpfc-cols {
	display: flex;
	flex-wrap: nowrap;
	gap: 0 3%;
	margin: 0;
}
.wp-block-columns.bpfc-cols > .wp-block-column {
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
}
@media (max-width: 980px) {
	:is(.bpfc-row, .bpfc-row > .wp-block-group__inner-container) > .wp-block-columns.bpfc-cols {
		flex-direction: column;
		gap: 30px;
	}
}
/* Images show at their own size, never stretched (Divi image module). */
.bpfc-row figure.wp-block-image img {
	width: auto;
	max-width: 100%;
	height: auto;
	vertical-align: bottom;
}
/* Subheadings. Divi gives every heading 10px underneath. */
.bpfc-row h2.bpfc-h2-sub { /* About: 1.56em, regular, line height 1.2em */
	font-size: 1.56em;
	font-weight: 400;
	line-height: 1.2em;
	padding-bottom: 10px;
}
.bpfc-row h2.bpfc-h2-caps { /* FAQ group headings: 1.81em, bold, capitals */
	font-size: 1.81em;
	font-weight: 700;
	line-height: 1em;
	text-transform: uppercase;
	padding-bottom: 10px;
}
/* Lists. Numbered (live's site-wide Divi rule): teal bold numbers at 150%, 1em under each item.
   Bulleted (Divi default): 1em indent, 23px under the list. Both 26px line height. */
.bpfc-row ol.bpfc-ol {
	margin: 0;
	padding: 0 0 16px 1.1em;
	line-height: 26px;
}
.bpfc-row ol.bpfc-ol > li {
	padding-bottom: 1em;
}
.bpfc-row ol.bpfc-ol > li::marker {
	color: var(--global-palette1);
	font-size: 150%;
	font-weight: 700;
}
.bpfc-row ul.bpfc-ul {
	margin: 0;
	padding: 0 0 23px 1em;
	line-height: 26px;
	list-style: disc;
}

/* FAQ accordions (Kadence Accordion with class bpfc-faq), copying live's Divi accordion:
   white items, 1px dark-navy line under each, 16px 20px padding, 20px dark-navy titles,
   a thin plus on the right that stays a plus when open (as live), answers 20px under the title.
   Selectors start with .entry-content to beat Kadence's per-block CSS. */
.entry-content .wp-block-kadence-accordion.bpfc-faq {
	margin: 0;
}
.entry-content .bpfc-faq > .kt-accordion-wrap > .kt-accordion-inner-wrap {
	display: block;
}
.entry-content .bpfc-faq > .kt-accordion-wrap > .kt-accordion-inner-wrap > .wp-block-kadence-pane {
	margin: 0;
	background: var(--global-palette9);
	border-bottom: 1px solid var(--global-palette10);
}
.entry-content .bpfc-faq > .kt-accordion-wrap > .kt-accordion-inner-wrap > .wp-block-kadence-pane > .kt-accordion-header-wrap {
	margin: 0;
	padding: 0;
}
.entry-content .bpfc-faq > .kt-accordion-wrap > .kt-accordion-inner-wrap > .wp-block-kadence-pane > .kt-accordion-header-wrap > .kt-blocks-accordion-header {
	display: flex;
	align-items: center;
	width: 100%;
	margin: 0;
	padding: 16px 17px 16px 20px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--global-palette10);
	font-family: inherit;
	font-size: 20px;
	font-weight: 400;
	line-height: 29px;
	text-align: left;
	box-shadow: none;
}
.entry-content .bpfc-faq .kt-blocks-accordion-title-wrap {
	flex: 1 1 auto;
	padding-right: 30px;
}
.entry-content .bpfc-faq > .kt-accordion-wrap > .kt-accordion-inner-wrap > .wp-block-kadence-pane > .kt-accordion-panel > .kt-accordion-panel-inner {
	margin: 0;
	padding: 4px 20px 16px;
	border: 0;
	background: transparent;
	color: var(--global-palette10);
}
.bpfc-faq .kt-accordion-panel-inner :is(p, li) {
	color: var(--global-palette10);
}
/* Answers: Divi drops the space under the last paragraph even when a list follows it. */
.bpfc-faq .kt-accordion-panel-inner > p.bpfc-text:last-of-type {
	padding-bottom: 0;
}
/* Icon: live's thin 12px dark-navy plus, centred 11px in from the item's right padding, a plus in both states. */
.entry-content .bpfc-faq .kt-blocks-accordion-header .kt-blocks-accordion-icon-trigger {
	width: 22px;
	height: 22px;
	flex: 0 0 22px;
	position: relative;
	top: 1px;
	margin-right: -2px; /* centre 11px from the right padding edge, as live's glyph */
	will-change: transform; /* own layer, snapped to whole pixels: otherwise the thin lines look pale on some rows */
}
.entry-content .bpfc-faq .kt-blocks-accordion-header .kt-blocks-accordion-icon-trigger::before,
.entry-content .bpfc-faq .kt-blocks-accordion-header .kt-blocks-accordion-icon-trigger::after,
.entry-content .bpfc-faq .kt-blocks-accordion-header:is(:hover, :focus, .kt-accordion-panel-active) .kt-blocks-accordion-icon-trigger::before,
.entry-content .bpfc-faq .kt-blocks-accordion-header:is(:hover, :focus, .kt-accordion-panel-active) .kt-blocks-accordion-icon-trigger::after {
	width: 12px;
	height: 1.35px;
	left: calc(50% - 6px);
	top: calc(50% - 0.675px);
	background: var(--global-palette10);
	border-radius: 1px;
}
.entry-content .bpfc-faq .kt-blocks-accordion-header .kt-blocks-accordion-icon-trigger::before,
.entry-content .bpfc-faq .kt-blocks-accordion-header:is(:hover, :focus, .kt-accordion-panel-active) .kt-blocks-accordion-icon-trigger::before {
	transform: rotate(90deg);
}
.entry-content .bpfc-faq .kt-blocks-accordion-header .kt-blocks-accordion-icon-trigger::after,
.entry-content .bpfc-faq .kt-blocks-accordion-header:is(:hover, :focus, .kt-accordion-panel-active) .kt-blocks-accordion-icon-trigger::after {
	transform: none;
}

/* =========================================================================
   Log in and Register (17 November 2026): the page around Restrict Content Pro's form, copying live.
   Desktop: section split teal | white down the middle; two columns 46% wide with an 8% gap,
   centred vertically, 48px padding inside. Up to 980px: all teal, row full width, columns stacked,
   30px side padding, the form column white with 60px (Log in) or 50px (Register) top and bottom.
   ========================================================================= */
.entry-content > .wp-block-group.bpfc-section.bpfc-split {
	background: linear-gradient(90deg, var(--global-palette1) 50%, var(--global-palette9) 50%);
}
:is(.bpfc-section, .bpfc-section > .wp-block-group__inner-container) > .bpfc-row.bpfc-auth-row--spaced {
	margin-top: 10em;
	margin-bottom: 10em;
}
:is(.bpfc-row, .bpfc-row > .wp-block-group__inner-container) > .wp-block-columns.bpfc-auth-cols {
	gap: 0 8%;
	align-items: center;
}
.wp-block-columns.bpfc-auth-cols > .wp-block-column {
	padding: 0 48px;
	align-self: center; /* WordPress forces align-items: normal !important on Columns */
}
.bpfc-auth-cols h1.bpfc-auth-title {
	font-size: 3.75em;
	line-height: 1.2em;
	font-weight: 700;
	color: var(--global-palette9);
	padding-bottom: 10px;
	margin-bottom: 37px;
}
.bpfc-auth-cols h1.bpfc-auth-title--login {
	margin-bottom: 32px; /* Divi's 2em, measured at the 16px module size */
}
.bpfc-auth-cols p.bpfc-auth-lead {
	font-size: 25px;
	line-height: 27.2px;
	color: var(--global-palette9);
	margin-right: 2rem;
}
.bpfc-auth-cols p.bpfc-auth-lead a {
	color: var(--global-palette9);
	text-decoration: underline;
}
.bpfc-auth-cols h2.bpfc-auth-h2 {
	font-size: 30.08px;
	line-height: 1em;
	font-weight: 700;
	color: var(--global-palette3);
	padding-bottom: 10px;
	margin: 16px 0 32px; /* Divi's 1rem / 2em at the 16px module size */
}
.bpfc-auth-cols p.bpfc-auth-switch {
	margin-top: 34px;
	color: #767676; /* live's #8F8F8F was 3.23:1 on white; #767676 is the nearest grey at 4.5:1 (4.54) */
}
.bpfc-auth-cols p.bpfc-auth-switch a {
	color: #767676;
	text-decoration: underline;
}
/* The intro is gone (Chris, 17 Nov 2026), so the heading is the column's last block: no space under it. */
.bpfc-auth-cols h1.bpfc-auth-title:last-child {
	margin-bottom: 0;
}
@media (max-width: 980px) {
	.entry-content > .wp-block-group.bpfc-section.bpfc-split {
		background: var(--global-palette1);
	}
	:is(.bpfc-section, .bpfc-section > .wp-block-group__inner-container) > .bpfc-row.bpfc-auth-row {
		width: 100%;
		margin-top: 0;
		margin-bottom: 0;
	}
	.wp-block-columns.bpfc-auth-cols > .wp-block-column {
		padding: 0 30px;
		align-self: stretch;
	}
	.wp-block-columns.bpfc-auth-cols > .wp-block-column.bpfc-auth-intro {
		padding-bottom: 50px;
	}
	.wp-block-columns.bpfc-auth-cols > .wp-block-column.bpfc-auth-form {
		background: var(--global-palette9);
		padding-top: 50px;
		padding-bottom: 50px;
	}
	.bpfc-split .bpfc-auth-row--spaced .wp-block-column.bpfc-auth-form {
		padding-top: 60px;
		padding-bottom: 60px;
	}
	:is(.bpfc-row, .bpfc-row > .wp-block-group__inner-container) > .wp-block-columns.bpfc-auth-cols {
		gap: 30px;
	}
	.bpfc-auth-cols h1.bpfc-auth-title {
		font-size: 2.5em;
	}
	.bpfc-auth-cols h1.bpfc-auth-title:not(.bpfc-auth-title--login) {
		margin-bottom: 30px;
	}
	.bpfc-auth-cols p.bpfc-auth-lead {
		font-size: 18px;
		margin-right: 0;
	}
}

/* RCP forms on Divi: every paragraph had 1em under it except the last in its group (Divi's global
   p rule), and fields and buttons used the browser's normal line height, not Kadence's 1.6. */
.rcp_form p {
	padding-bottom: 1em;
}
.rcp_form p:last-of-type {
	padding-bottom: 0;
}
.rcp_form :is(input[type="text"], input[type="email"], input[type="password"], #rcp_display_name, .rcp-button, input[type="submit"]) {
	line-height: normal;
}

/* =========================================================================
   Member pages (17 November 2026): Welcome, Profile, Dashboard, copying the Divi baseline of 16 November.
   Light grey sections; white cards (.bpfc-card) with a 1px grey border, 16px corners and 2em padding;
   the Dashboard's results box has a 4px teal border instead.
   ========================================================================= */
.entry-content .bpfc-hidden {
	display: none; /* built but switched off, as on live: remove this class to show it */
}
/* Welcome */
:is(.bpfc-section, .bpfc-section > .wp-block-group__inner-container) > .bpfc-row.bpfc-welcome-row {
	margin-top: 15em;
	margin-bottom: 15em;
}
.bpfc-row h1.bpfc-welcome-title,
.bpfc-row p.bpfc-welcome-lead {
	font-size: 1.88em;
	line-height: 1em;
	font-weight: 700;
	color: var(--global-palette2);
}
.bpfc-row h1.bpfc-welcome-title {
	padding-bottom: 10px;
}
.bpfc-row p.bpfc-welcome-lead {
	margin-bottom: 1em;
}
.bpfc-row .wp-block-buttons {
	margin: 0;
}
/* Outline button on the light grey: teal #357171 for contrast; teal #3D8181 fill with white text on hover. */
.bpfc-row .wp-block-button.bpfc-btn-on-grey .wp-block-button__link {
	background: transparent;
	color: var(--bpfc-teal-on-grey);
	border-color: var(--bpfc-teal-on-grey);
}
.bpfc-row .wp-block-button.bpfc-btn-on-grey .wp-block-button__link:is(:hover, :focus) {
	background: var(--global-palette1);
	color: var(--global-palette9);
	border-color: var(--global-palette9);
}
/* Cards */
:is(.bpfc-section, .bpfc-section > .wp-block-group__inner-container) > .bpfc-row.bpfc-card,
.wp-block-columns.bpfc-cols > .wp-block-column.bpfc-card {
	background: var(--global-palette9);
	padding: 2em;
	border: 1px solid var(--global-palette6);
	border-radius: 16px;
}
.wp-block-columns.bpfc-cols > .wp-block-column.bpfc-card--sm {
	border-radius: 14px;
}
:is(.bpfc-section, .bpfc-section > .wp-block-group__inner-container) > .bpfc-row.bpfc-card--teal {
	border: 4px solid var(--global-palette1);
}
.bpfc-row h1.bpfc-card-title { /* Profile */
	font-size: 2.5em;
	line-height: 1em;
	font-weight: 700;
	color: var(--global-palette3);
	padding-bottom: 10px;
	margin-bottom: 2rem;
}
.bpfc-row :is(h2, h3).bpfc-card-h { /* Dashboard box headings (live: 20px bold) */
	font-size: 1.25em;
	line-height: 1em;
	font-weight: 700;
	color: var(--global-palette3);
	padding-bottom: 10px;
}
/* Profile: Divi's inherited 27.2px line height on the field labels, the browser's normal line height on the
   Edit button, and Divi's 1em line height plus 10px under the member's name (it's an H3). */
#rcp_profile_editor_form label {
	line-height: 27.2px;
}
.member-information .member-edit-btn {
	line-height: normal;
}
.member-information .member-details .member-name {
	line-height: 1em;
	padding-bottom: 10px;
}
/* Space Divi left between modules in these cards: 43px, 30px up to 980px.
   Profile: between the member card and the form. Dashboard: between the box's intro and the results list. */
.bpfc-card .member-information,
.bpfc-card--teal p.bpfc-card-intro {
	margin-bottom: 43px;
}
@media (max-width: 980px) {
	.bpfc-card .member-information,
	.bpfc-card--teal p.bpfc-card-intro {
		margin-bottom: 30px;
	}
}

/* =========================================================================
   Card pages (17 November 2026): Assessment, Guidance, Glossary (build-scripts/build_card.py).
   ========================================================================= */
/* Assessment: the survey card has no padding and is 90% wide (Divi row: width 100%, max-width 90%). */
:is(.bpfc-section, .bpfc-section > .wp-block-group__inner-container) > .bpfc-row.bpfc-card.bpfc-card--flush {
	width: 90%;
	max-width: none;
	padding: 0;
}
.bpfc-row h1.bpfc-card-title:last-child {
	margin-bottom: 0;
}
.bpfc-row h2.bpfc-h2 {
	padding-bottom: 10px;
}
/* Divi text modules: 1em under each paragraph, none under a module's last paragraph. */
.bpfc-row p.bpfc-text-plain {
	padding-bottom: 1em;
}
.bpfc-row p.bpfc-text-plain.bpfc-p-last {
	padding-bottom: 0;
}
.bpfc-card ul.bpfc-ul {
	padding-bottom: 1em; /* lists inside Divi text modules had 1em under them, not 23px */
}
.bpfc-row ul.bpfc-ul.bpfc-two-cols {
	column-count: 2; /* as live's inline style, on every screen size */
}
/* Divi's gap between modules: 43px, 30px up to 980px. */
.bpfc-row :is(h1, h2, h3, p, ul).bpfc-mod-end {
	margin-bottom: 43px;
}
@media (max-width: 980px) {
	.bpfc-row :is(h1, h2, h3, p, ul).bpfc-mod-end {
		margin-bottom: 30px;
	}
}
/* Assessment (SurveyJS): CSS Divi was supplying, restored 17 November 2026.
   - Words in the survey title stay whole. SurveyJS gives the phone header's title area a width of 0, so
     the title wraps at word level; Kadence's break-word turned that into one letter per line.
   - Table of contents list indented 1em (Divi), not Kadence's 2em.
   - Divi's 1em under paragraphs (none under the last) and 10px under the page heading, inside the survey.
   - The site header sits above SurveyJS's fixed phone table-of-contents button (z-index 15), as Divi's
     header did, so the button no longer covers the menu button at the top of the page. */
.wp-sjs-plugin .sv-header__title .sd-title {
	word-break: normal;
	overflow-wrap: normal;
}
.wp-sjs-plugin ul.sv-list {
	padding-left: 1em;
	padding-bottom: 23px; /* Divi's default under every list; it set the survey's height on desktop */
}
.wp-sjs-plugin p {
	padding-bottom: 1em;
}
.wp-sjs-plugin p:last-of-type {
	padding-bottom: 0;
}
.wp-sjs-plugin .sd-page__title {
	padding-bottom: 10px;
}
#masthead {
	z-index: 16;
}
/* Assessment, continued: Divi's code module left 10px above and below the survey; on phones the survey
   title had Divi's 10px under it; and Kadence's content margins on paragraphs and headings must not reach
   the survey's own text (Divi had none). */
:is(.bpfc-section, .bpfc-section > .wp-block-group__inner-container) > .bpfc-row.bpfc-card.bpfc-card--flush {
	padding: 10px 0;
}
.wp-sjs-plugin .sv-header--mobile .sd-title {
	padding-bottom: 10px;
}
.entry-content .wp-sjs-plugin .sd-html :is(p, h1, h2, h3, h4, h5, h6, ul, ol) {
	margin-top: 0;
	margin-bottom: 0;
}
/* Short pages that end in a grey section (Guidance on a desktop screen): Kadence keeps the footer at the
   bottom of the window, which left a white strip between the grey and the footer. Let the grey run on. */
body:has(.entry-content > .bpfc-section.bpfc-grey:last-child) #inner-wrap {
	background: var(--global-palette7);
}

/* Glossary (Chris, 17 November 2026; departures from live):
   - the bold sub-heading paragraphs are now H3 (themes) and H4 (concepts), styled exactly as the paragraphs
     were; inline bold is kept as it was, so nothing looks different;
   - jump links to the three sections after the title, on phones;
   - the card is full width on phones (desktop and tablet unchanged);
   - Kadence's back-to-top button, on this page only (see functions.php). */
.bpfc-row :is(h3, h4).bpfc-subhead {
	font-family: inherit;
	font-size: 16px;
	line-height: 27.2px;
	font-weight: 400;
	letter-spacing: normal;
	text-transform: none;
	color: var(--global-palette5);
	padding-bottom: 1em;
}
.bpfc-row ul.bpfc-jump-links {
	display: none;
}
@media (max-width: 767px) {
	.bpfc-row ul.bpfc-jump-links {
		display: block;
		margin: 0;
		padding: 0 0 0 1em;
		line-height: 27.2px;
	}
	:is(.bpfc-section, .bpfc-section > .wp-block-group__inner-container) > .bpfc-row.bpfc-card.bpfc-card--phone-full {
		width: 100%;
		border-left: 0;
		border-right: 0;
		border-radius: 0;
		padding-left: 20px;
		padding-right: 20px;
	}
}
/* Glossary back-to-top button: a white fill, so the page's text doesn't show through its outline. */
#kt-scroll-up.scroll-up-style-outline {
	background: var(--global-palette9);
}

/* =========================================================================
   Homepage (17 November 2026, build-scripts/build_home.py), copying live's measurements.
   The hero was part of Divi's homepage header; here it's a Kadence Row Layout (.bpfc-hero) with the hero image,
   starting at the top of the page under Kadence's see-through header (88px desktop, 107px tablet/phone).
   Hero spacing = header + Divi's row margin (5em; 2em tablet; 1em phone) + row padding (2%; 30px) above the
   tagline, and row padding + margin + section padding (4%; 50px) below the button.
   ========================================================================= */
.entry-content .wp-block-kadence-rowlayout.bpfc-hero > .kt-row-column-wrap {
	max-width: none;
	padding: 0;
}
.bpfc-hero .wp-block-kadence-column.bpfc-hero-inner {
	width: 80%;
	max-width: 1360px;
	margin: 0 auto;
}
.bpfc-hero .bpfc-hero-inner > .kt-inside-inner-col {
	padding: calc(88px + 5em + 2vw) 0 calc(2vw + 5em + 4vw);
	gap: 0;
}
.bpfc-hero p.bpfc-hero-tagline {
	font-size: 2.25em;
	line-height: 1.1em;
	color: var(--global-palette9);
	margin: 0 0 0.5em;
	padding: 0;
}
.bpfc-hero h1.bpfc-hero-title {
	font-size: 6.25em;
	line-height: 1.1em;
	font-weight: 700;
	color: #489999; /* live's teal, kept on the dark hero image (the darker #3D8181 reads worse here) */
	padding: 0 15% 10px 0;
	margin: 0 0 2.2vw; /* Divi's module gap: 2.75% of the 80%-wide row */
}
.bpfc-hero .wp-block-buttons {
	margin: 0;
}
.bpfc-hero .wp-block-button.bpfc-btn-hero .wp-block-button__link {
	background: transparent;
	color: var(--global-palette9);
	border-color: var(--global-palette9);
	padding: 11px 20px;
}
.bpfc-hero .wp-block-button.bpfc-btn-hero .wp-block-button__link:is(:hover, :focus) {
	background: var(--global-palette2);
	color: var(--global-palette9);
	border-color: var(--global-palette9);
}
@media (max-width: 980px) {
	.bpfc-hero .bpfc-hero-inner > .kt-inside-inner-col {
		padding: calc(107px + 2em + 30px) 0 calc(30px + 2em + 50px);
	}
	.bpfc-hero h1.bpfc-hero-title {
		font-size: 4.25em;
		padding-right: 0;
		margin-bottom: 30px;
	}
}
@media (max-width: 767px) {
	.bpfc-hero .bpfc-hero-inner > .kt-inside-inner-col {
		padding: calc(107px + 1em + 30px) 0 calc(30px + 1em + 50px);
	}
	.bpfc-hero h1.bpfc-hero-title {
		font-size: 3em;
	}
}
/* "What is the Blueprint for Change?" */
:is(.bpfc-section, .bpfc-section > .wp-block-group__inner-container) > .bpfc-row.bpfc-row-flush {
	padding: 0;
}
:is(.bpfc-section, .bpfc-section > .wp-block-group__inner-container) > .bpfc-row.bpfc-row-top-only {
	padding-bottom: 0;
}
.bpfc-row h2.bpfc-h2-home {
	font-size: 30.08px;
	line-height: 1.33em;
	font-weight: 700;
	padding-bottom: 10px;
}
.bpfc-grey .bpfc-row h2.bpfc-h2-home {
	color: var(--bpfc-teal-on-grey);
}
:is(.bpfc-row, .bpfc-row > .wp-block-group__inner-container) > .wp-block-columns.bpfc-cols--g3 {
	gap: 0 5.5%; /* Divi's default gutter: columns 47.25% */
}
.bpfc-row p.bpfc-text-20 {
	font-size: 20px;
	line-height: 1.45em;
	padding-bottom: 1em;
}
.bpfc-row p.bpfc-text-20.bpfc-p-last {
	padding-bottom: 0;
}
.bpfc-home-intro > .wp-block-buttons {
	margin-top: 32px;
}
/* "Our goals": light grey band, 1em top and bottom; four blurbs (two per row on tablets, one on phones). */
.entry-content > .wp-block-group.bpfc-section.bpfc-pad-1em,
.entry-content > .wp-block-group.bpfc-section.bpfc-pad-1em:not(.bpfc-pad-0) {
	padding: 1em 0;
}
:is(.bpfc-row, .bpfc-row > .wp-block-group__inner-container) > .wp-block-columns.bpfc-cols--4 {
	gap: 0 3%;
}
.bpfc-row .bpfc-blurb > figure.wp-block-image.bpfc-blurb-icon {
	margin: 0 0 30px;
}
.bpfc-blurb figure.bpfc-blurb-icon img {
	width: 95px;
}
.bpfc-blurb h3.bpfc-blurb-title {
	padding-bottom: 10px;
}
.bpfc-blurb p.bpfc-blurb-text {
	font-size: 16px;
	line-height: 1.56em;
}
@media (max-width: 980px) {
	.entry-content > .wp-block-group.bpfc-section.bpfc-pad-1em:not(.bpfc-pad-0) {
		padding: 1em 0;
	}
	.bpfc-home-intro > .wp-block-buttons {
		margin-top: 30px;
	}
	:is(.bpfc-row, .bpfc-row > .wp-block-group__inner-container) > .wp-block-columns:is(.bpfc-cols--g3, .bpfc-cols--4) {
		gap: 30px; /* stacked, as Divi: 30px between columns */
	}
}
@media (min-width: 768px) and (max-width: 980px) {
	:is(.bpfc-row, .bpfc-row > .wp-block-group__inner-container) > .wp-block-columns.bpfc-cols--4 {
		flex-direction: row;
		flex-wrap: wrap !important; /* WordPress forces nowrap with !important from 782px */
		gap: 30px 5.5%;
	}
	.bpfc-row .wp-block-columns.bpfc-cols--4 > .wp-block-column {
		flex: 0 0 47.25%;
	}
	/* Live's hero column is 80% wide on tablets only (a Divi column setting). */
	.bpfc-hero .bpfc-hero-inner > .kt-inside-inner-col {
		padding-right: 20%;
	}
}
