/*
 Theme Name:   Obesity UK (Kadence Child)
 Theme URI:    https://obesityuk.org.uk/
 Description:  Kadence child theme for Obesity UK. Holds the site's custom styles and its self-hosted fonts. SVG uploads are handled by the obuk-theme-basics mu-plugin, not here.
 Author:       More Time To
 Author URI:   https://moretimeto.com
 Template:     kadence
 Version:      1.0.0
 Tags:         customizable, responsive-layout, gutenberg, header builder, footer builder
 Text Domain:  obuk-child
*/

/* Self-hosted fonts: declared in fonts.css (loaded before this file, and in the block editor). */

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

/* Text smoothing as live: Divi sets antialiased smoothing on the whole page, which draws text a
   little lighter on Macs and iPhones. */
body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* =========================================================================
   Width (19 November 2026): like live's Divi rows, content, header and footer are 80% of the
   window, up to 1080px (Customizer content width). Edge padding is 0, as Divi had none.
   Measured on live: x = 180 at 1440, 102 at 1024, 77 at 768, 39 at 390.
   ========================================================================= */
.site-container,
.site-footer-row-layout-contained,
.entry-hero-layout-contained {
	max-width: min(80%, 1080px);
}

/* =========================================================================
   Named button styles (19 November 2026). Put the class on a Kadence Advanced Button (it lands on
   the <a>) or a core Button block. The default, with no class, is Kadence's global button, which is
   live's standard Divi button: white on blue, 2px blue border, square, Sen 20px/34px 500, 6px 20px.
   ========================================================================= */
:is(a.kb-button, .wp-block-button__link, a.button, button, input[type="submit"]):is(.obuk-btn, .obuk-btn--small, .obuk-btn--white, .obuk-btn--outline-light, .obuk-btn--outline-dark, .obuk-btn--footer, .obuk-btn--line, .obuk-btn--doc, .obuk-btn--white-dark),
.wp-block-button:is(.obuk-btn, .obuk-btn--small, .obuk-btn--white, .obuk-btn--outline-light, .obuk-btn--outline-dark, .obuk-btn--footer, .obuk-btn--line, .obuk-btn--doc, .obuk-btn--white-dark) > .wp-block-button__link {
	font-family: var(--global-body-font-family);
	font-size: 20px;
	font-weight: 500;
	line-height: 1.7;
	padding: 6px 20px;
	border: 2px solid var(--global-palette1);
	border-radius: 0;
	background: var(--global-palette1);
	color: var(--global-palette9);
	box-shadow: none;
	text-decoration: none;
	transition: all 0.3s ease;
}
:is(a.kb-button, .wp-block-button__link, a.button, button, input[type="submit"]):is(.obuk-btn, .obuk-btn--small):is(:hover, :focus-visible),
.wp-block-button:is(.obuk-btn, .obuk-btn--small) > .wp-block-button__link:is(:hover, :focus-visible) {
	background: var(--global-palette9);
	color: var(--global-palette1);
	border-color: var(--global-palette1);
}

/* Small: "Find out more" tiles (Projects section, Our Work, Get Involved, Resources). 15px, 4.5px 15px. */
:is(a.kb-button, .wp-block-button__link).obuk-btn--small,
.wp-block-button.obuk-btn--small > .wp-block-button__link {
	font-size: 15px;
	padding: 4.5px 15px;
}

/* White: "Volunteer" on blue. Blue text on white; hover turns blue with white text and border. */
:is(a.kb-button, .wp-block-button__link).obuk-btn--white,
.wp-block-button.obuk-btn--white > .wp-block-button__link {
	background: var(--global-palette9);
	color: var(--global-palette1);
	border-color: var(--global-palette9);
}
:is(a.kb-button, .wp-block-button__link).obuk-btn--white:is(:hover, :focus-visible),
.wp-block-button.obuk-btn--white > .wp-block-button__link:is(:hover, :focus-visible) {
	background: var(--global-palette1);
	color: var(--global-palette9);
	border-color: var(--global-palette9);
}

/* Outline light: "Donate", "Join OULEN Today" on a dark or photo background. White text and 2px white
   border; hover uses Divi's site-wide button hover (blue text on white). */
:is(a.kb-button, .wp-block-button__link).obuk-btn--outline-light,
.wp-block-button.obuk-btn--outline-light > .wp-block-button__link {
	background: transparent;
	color: var(--global-palette9);
	border-color: var(--global-palette9);
}
:is(a.kb-button, .wp-block-button__link).obuk-btn--outline-light:is(:hover, :focus-visible),
.wp-block-button.obuk-btn--outline-light > .wp-block-button__link:is(:hover, :focus-visible) {
	background: var(--global-palette9);
	color: var(--global-palette1);
	border-color: var(--global-palette9);
}

/* Outline dark: the second "Join OULEN Today" in the yellow section. 18px 600, 2px #2E2E2E border,
   5.4px 44px. Dark text at every width (Chris, 19 Nov 2026: live has white text on phones, 1.62:1). */
:is(a.kb-button, .wp-block-button__link).obuk-btn--outline-dark,
.wp-block-button.obuk-btn--outline-dark > .wp-block-button__link {
	background: transparent;
	color: var(--global-palette3);
	border-color: var(--global-palette5);
	font-size: 18px;
	font-weight: 600;
	padding: 5.4px 44px;
}
:is(a.kb-button, .wp-block-button__link).obuk-btn--outline-dark:is(:hover, :focus-visible),
.wp-block-button.obuk-btn--outline-dark > .wp-block-button__link:is(:hover, :focus-visible) {
	background: var(--global-palette9);
	color: var(--global-palette1);
	border-color: var(--global-palette1);
}

/* Footer: "Donate Now", "Get Involved". 18px 600, 1px white border, 5.4px 44px; hover white with black text and border. */
:is(a.kb-button, .wp-block-button__link).obuk-btn--footer,
.wp-block-button.obuk-btn--footer > .wp-block-button__link {
	background: transparent;
	color: var(--global-palette9);
	border: 1px solid var(--global-palette9);
	font-size: 18px;
	font-weight: 600;
	padding: 5.4px 44px;
}
:is(a.kb-button, .wp-block-button__link).obuk-btn--footer:is(:hover, :focus-visible),
.wp-block-button.obuk-btn--footer > .wp-block-button__link:is(:hover, :focus-visible) {
	background: var(--global-palette9);
	color: var(--global-palette3);
	border-color: var(--global-palette3);
}

/* Line: Peer Support Training's resource buttons. 16px #2E2E2E, transparent, 1px black border. */
:is(a.kb-button, .wp-block-button__link).obuk-btn--line,
.wp-block-button.obuk-btn--line > .wp-block-button__link {
	background: transparent;
	color: var(--global-palette5);
	border: 1px solid var(--global-palette3);
	font-size: 16px;
}
:is(a.kb-button, .wp-block-button__link).obuk-btn--line:is(:hover, :focus-visible),
.wp-block-button.obuk-btn--line > .wp-block-button__link:is(:hover, :focus-visible) {
	background: var(--global-palette9);
	color: var(--global-palette1);
	border-color: var(--global-palette1);
}

/* =========================================================================
   Gravity Forms (20 November 2026): the Orbital theme, as live (live's forms are Orbital too, restyled
   by the Divi Plus form styler), styled only through Gravity Forms' own CSS variables. Measured against
   live's Contact form field by field: 0px difference at 1440 and 390 (audits/obesityuk/forms/).
   Embed every form with the Gravity Forms block, Form Theme "Orbital", and in its Form Styles:
   Input Border Colour #333333, Button Background #3E60AB, Button Text #FFFFFF. (The border colour is
   printed inline per form by Gravity Forms, so it has to be set there, not here.)
   ========================================================================= */
.gform_wrapper.gform-theme--orbital {
	--gf-font-family-base: var(--global-body-font-family);
	--gf-font-family-primary: var(--global-body-font-family);
	--gf-font-family-secondary: var(--global-body-font-family);
	--gf-font-family-tertiary: var(--global-body-font-family);
	/* Fields: Sen 14px #112337, white, 1px #333, 3px radius, 38px tall, 12px side padding. */
	--gf-ctrl-font-family: var(--global-body-font-family);
	--gf-ctrl-font-size: 14px;
	--gf-ctrl-font-weight: 400;
	--gf-ctrl-color: var(--global-palette11);
	--gf-ctrl-bg-color: var(--global-palette9);
	--gf-ctrl-border-color: var(--global-palette4);
	--gf-ctrl-radius: 3px;
	--gf-ctrl-size: 38px;
	--gf-ctrl-padding-x: 12px;
	--gf-ctrl-textarea-padding-y: 12px;
	/* Labels: 14px 500 #112337 (primary); sub-labels and hints 13px #585E6A; choice labels 14px #112337;
	   "(Required)" 12px 500 #C02B0A. */
	--gf-ctrl-label-font-family-primary: var(--global-body-font-family);
	--gf-ctrl-label-font-size-primary: 14px;
	--gf-ctrl-label-font-weight-primary: 500;
	--gf-ctrl-label-color-primary: var(--global-palette11);
	--gf-ctrl-label-font-family-secondary: var(--global-body-font-family);
	--gf-ctrl-label-font-size-secondary: 14px;
	--gf-ctrl-label-color-secondary: var(--global-palette11);
	--gf-ctrl-label-font-family-tertiary: var(--global-body-font-family);
	--gf-ctrl-label-font-size-tertiary: 13px;
	--gf-ctrl-label-color-tertiary: var(--global-palette12);
	--gf-ctrl-label-font-family-req: var(--global-body-font-family);
	--gf-ctrl-label-font-size-req: 12px;
	--gf-ctrl-label-font-weight-req: 500;
	--gf-ctrl-label-color-req: var(--global-palette13);
	--gf-ctrl-desc-font-family: var(--global-body-font-family);
	--gf-ctrl-desc-font-size: 13px;
	--gf-ctrl-desc-color: var(--global-palette12);
	/* Submit: Sen 20px 500, white on #3E60AB, no border, 3px radius, 6px 20px (36px tall). */
	--gf-ctrl-btn-font-family: var(--global-body-font-family);
	--gf-ctrl-btn-font-size: 20px;
	--gf-ctrl-btn-font-size-md: 20px; /* the submit button uses the "md" size set */
	--gf-ctrl-btn-padding-x-md: 20px;
	--gf-ctrl-btn-size-md: 38px;
	--gf-ctrl-btn-font-weight: 500;
	--gf-ctrl-btn-line-height: 24px;
	--gf-ctrl-btn-padding-x: 20px;
	--gf-ctrl-btn-size: 36px;
	--gf-ctrl-btn-radius: 3px;
	--gf-ctrl-btn-bg-color-primary: var(--global-palette1);
	--gf-ctrl-btn-color-primary: var(--global-palette9);
	--gf-ctrl-btn-border-width-primary: 0;
	--gf-ctrl-btn-bg-color-hover-primary: #2F4A85;
	--gf-ctrl-btn-color-hover-primary: var(--global-palette9);
	--gf-color-primary: var(--global-palette1);
}

/* =========================================================================
   Keyboard focus (19 November 2026). Live (Divi Accessibility) drew a #2EA3F2 outline, which is
   below 3:1 on white. Here the ring takes the element's own text colour, so it always contrasts
   with what's behind it. Mouse clicks don't show it (:focus-visible).
   ========================================================================= */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

/* =========================================================================
   Header (19 November 2026), measured on live's Divi header #1008 (DiviMenus).
   Settings are in kadence-settings/set-header-footer.php; these are the pixel details.
   ========================================================================= */
/* Top bar: "DONATE  CONTACT", 25px apart. Live hides the bar on phones (Divi: below 768px). */
#masthead :is(.header-html-inner, .mobile-html-inner) a + a {
	margin-left: 25px;
}
@media (max-width: 767px) {
	#mobile-header .site-top-header-wrap {
		display: none;
	}
	#colophon .site-middle-footer-inner-wrap.site-footer-row.site-footer-row {
		row-gap: 17px;
	}
	/* Phone: live's logo and menu button sit 20px lower in the 150px bar (DiviMenus margin). */
	#mobile-header .site-main-header-inner-wrap {
		padding-top: 20px;
	}
}
/* Main bar: live's shadow, also while stuck. */
/* No position here: Kadence's sticky header sets its own. */
#masthead .site-main-header-wrap {
	box-shadow: 3px 3px 9px rgba(0, 0, 0, 0.3);
}
/* Menu hover: a 1px blue line under the item, 25px below the text's centre line (live's DiviMenus, measured
   on live 20 Nov 2026), on every item including the two that open a dropdown. */
#masthead .header-navigation .menu > li > a {
	position: relative;
}
#masthead .header-navigation .menu > li > a::after {
	content: "";
	position: absolute;
	left: 12.5px;
	right: 12.5px;
	top: calc(50% + 25px);
	height: 1px;
	background: transparent;
	transition: background-color 0.3s ease;
}
#masthead .header-navigation .menu > li > a:is(:hover, :focus-visible)::after {
	background: var(--global-palette1);
}
/* Live's desktop menu shows no dropdown arrows, and leaves no room for one. */
#masthead .header-navigation .menu > li > a .dropdown-nav-toggle {
	display: none;
}
#masthead .header-navigation .menu > li.menu-item-has-children > a :is(.nav-drop-title-wrap, .dropdown-nav-special-toggle) {
	padding-right: 0;
	margin-right: 0;
}
/* Kadence's keyboard button for each dropdown: just after the label, not over it. */
#masthead .header-navigation .menu > li.menu-item-has-children > .dropdown-nav-special-toggle {
	right: 8px;
}
#masthead .header-navigation .menu > li:last-child > a {
	padding-right: 15px;
}
/* Menu text 16px (Chris's decision, 20 Nov 2026; live 14px, a recorded departure), in live's Montserrat 500
   capitals, always on one line from 981px. Measured on the header row itself (so a scrollbar can't tip it onto
   two lines). The four labels are 451px, the last item keeps 15px on its right, plus 4px to spare: 470px.
   - Wide rows: live's 55px gaps (27.5px each side of a label), logo 350px.
   - Below a 1012px row (about 1265px wide) the gaps shrink: (row − 350 − 470) ÷ 7 per side.
   - At a 907.5px row (about 1135px wide) they reach 25px (12.5px a side), Chris's minimum. Below that the gaps
     stay at 25px and the desktop logo shrinks instead: row − 470 − 7 × 12.5 (228px at 981px).
   If the labels change, re-measure them and update 470px. */
#masthead .site-main-header-inner-wrap {
	container-type: inline-size;
}
#masthead .header-navigation .menu > li > a {
	padding-left: clamp(12.5px, calc((100cqw - 820px) / 7), 27.5px);
	padding-right: clamp(12.5px, calc((100cqw - 820px) / 7), 27.5px);
}
#masthead .header-navigation .menu > li > a::after {
	left: clamp(6.25px, calc((100cqw - 820px) / 14), 12.5px);
	right: clamp(6.25px, calc((100cqw - 820px) / 14), 12.5px);
}
#main-header .site-branding .custom-logo {
	width: min(350px, calc(100cqw - 557.5px));
	max-width: none;
	height: auto;
}
/* Dropdowns: start 21px above the bar's bottom edge and line up with the item box, with live's pointer. */
/* Live's panel (measured on live, 20 Nov 2026) starts 62px below the top of the menu text, 177px from the top
   of the page at 1440. Kadence's item is 40px tall, so 33px down. */
#masthead .header-navigation .menu > li > ul.sub-menu {
	margin-top: 33px;
	margin-left: 12.5px;
	padding-top: 0;
}
/* Keep the hover gap open so the panel doesn't close on the way down. */
#masthead .header-navigation .menu > li > ul.sub-menu::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 100%;
	height: 33px;
}
#masthead .header-navigation .menu > li > ul.sub-menu::before {
	content: "";
	position: absolute;
	top: -10px;
	left: 25px;
	border: 10px solid transparent;
	border-top: 0;
	border-bottom-color: var(--global-palette7);
}
#masthead .header-navigation ul.sub-menu > li > a {
	padding-inline: 15px;
	min-height: 51px; /* live's rows */
	display: flex;
	align-items: center;
}

/* Phone menu (980px and below): a white panel from the top with the same logo and a close button,
   then live's boxes: 80% wide, 57px tall, 3px apart, pale purple (#543F68 at 10%), #2E2E2E centred capitals;
   Donate red with white text. Contact and Donate show on phones only (as live). Box sizes, the submenu panel
   and the missing arrows were re-measured on live on 20 November 2026 (the staging baseline had 50px boxes). */
#mobile-drawer .drawer-inner {
	padding-top: 0;
}
#mobile-drawer .drawer-content {
	width: min(80%, 1080px);
	margin-inline: auto;
	padding: 0;
}
#mobile-drawer .drawer-content .site-branding {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	min-height: 150px;
	margin: 0 0 -17px;
}
/* The close button sits exactly where the menu button was. */
#mobile-drawer .drawer-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 3;
	width: min(80%, 1080px);
	height: 150px;
	margin-inline: auto;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}
#mobile-drawer .drawer-header .menu-toggle-close {
	height: auto;
	padding: 8px;
	margin-right: 0;
}
@media (max-width: 767px) {
	#mobile-drawer .drawer-header,
	#mobile-drawer .drawer-content .site-branding {
		padding-top: 20px;
	}
}
@media (min-width: 768px) {
	/* Tablet: the menu opens below live's black top bar, which stays in place. */
	#mobile-drawer .drawer-header {
		top: 54px;
	}
	#mobile-drawer .drawer-content .site-branding {
		margin-top: 54px;
	}
}
/* Full-width boxes; the submenu arrow sits on the right of its box (Chris's approved Stage 3 layout; live has
   no arrows, held pending Chris, 20 Nov 2026). */
#mobile-drawer .mobile-navigation .drawer-nav-drop-wrap {
	position: relative;
	display: block;
}
#mobile-drawer .mobile-navigation .drawer-nav-drop-wrap > .drawer-sub-toggle {
	position: absolute;
	top: 0;
	right: 0;
	height: 57px;
	border: 0;
	background: transparent;
	color: var(--global-palette5);
}
/* The open item gets live's 1px blue line along its bottom edge. */
#mobile-drawer .mobile-navigation .drawer-nav-drop-wrap:has(> .drawer-sub-toggle[aria-expanded="true"]) {
	box-shadow: inset 0 -1px 0 var(--global-palette1);
}
#mobile-drawer .mobile-navigation ul.menu > li {
	margin: 0 0 3px;
	border: 0;
}
#mobile-drawer .mobile-navigation ul.menu > li > :is(a, .drawer-nav-drop-wrap) {
	background: rgba(84, 63, 104, 0.1);
}
#mobile-drawer .mobile-navigation ul.menu > li > a,
#mobile-drawer .mobile-navigation ul.menu > li > .drawer-nav-drop-wrap > a {
	min-height: 57px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 0 15px;
	width: 100%;
}
#mobile-drawer .mobile-navigation ul.menu > li.obuk-menu-donate > a {
	background: var(--global-palette2);
	color: var(--global-palette9);
}
/* Submenu: Stage 3's centred items, in live's pale grey panel with live's 51px rows. */
#mobile-drawer .mobile-navigation ul.sub-menu {
	background: var(--global-palette7);
}
#mobile-drawer .mobile-navigation ul.sub-menu a {
	justify-content: center;
	background: transparent;
}
#mobile-drawer .mobile-navigation ul.sub-menu li > a {
	min-height: 51px;
	padding-top: 0;
	padding-bottom: 0;
	display: flex;
	align-items: center;
}
@media (min-width: 768px) {
	#mobile-drawer .obuk-menu-phone-only {
		display: none;
	}
}

/* =========================================================================
   Footer (19 November 2026), measured on live's Divi footer #31: black; social icons; footer menu
   (desktop only); two outline buttons over a white rule; copyright and legal links left, More Time To
   logo right; National Lottery credit. Bands: 68, 50, 106, 104 and 118px tall at 1440.
   ========================================================================= */
#colophon .footer-social .social-button {
	width: 40px;
	height: 40px;
	padding: 0;
	justify-content: center;
}
#colophon .site-top-footer-inner-wrap .footer-social {
	padding-block: 10px;
}
#colophon .footer-navigation {
	padding-block: 18px 10px;
}
@media (max-width: 980px) {
	#colophon .footer-navigation {
		display: none;
	}
}
#colophon .footer-widget1 {
	padding: 27px 0 35px;
	border-bottom: 1px solid var(--global-palette9);
}
#colophon .obuk-footer-buttons {
	justify-content: center;
	gap: 32px;
}
/* Up to 980px (live's Divi tablet and phone), the footer stacks.
   Departures from live (Chris, 20 November 2026): the two buttons are stacked and centred at the same
   width (live: Donate Now right, Get Involved left), and the More Time To logo is 40% of the column wide and
   centred on tablets as well as phones (Chris, 20 Nov 2026; live: 40% centred on phones, a quarter on the right
   on tablets). */
@media (max-width: 980px) {
	#colophon .obuk-footer-buttons {
		display: grid;
		grid-template-columns: max-content;
		justify-content: center;
		gap: 31px;
		padding-top: 3px;
	}
	#colophon .obuk-footer-buttons > .wp-block-button,
	#colophon .obuk-footer-buttons > .wp-block-button > .wp-block-button__link {
		width: 100%;
		text-align: center;
	}
	#colophon .site-middle-footer-inner-wrap.site-footer-row {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 48px;
	}
	#colophon .wp-block-image.obuk-mtt-logo a {
		width: 40%;
		max-width: none;
		margin-inline: auto;
		margin-top: 0;
	}
}
#colophon .site-middle-footer-inner-wrap {
	padding-block: 24px 8px;
	align-items: start;
}
/* Copyright, Privacy Policy, Terms & Conditions: 20px apart; when they wrap (phones) the next line sits
   45px lower, as live's separate Divi text modules did. */
#colophon .footer-html-inner,
#colophon .footer-html-inner > p {
	display: flex;
	flex-wrap: wrap;
	column-gap: 20px;
	row-gap: 36px;
	margin: 0;
}
#colophon .footer-html-inner a {
	text-decoration: underline;
}
#colophon .obuk-mtt-logo,
#colophon .wp-block-image.obuk-mtt-logo figure {
	margin: 0;
	float: none;
	width: 100%;
	text-align: right;
}
#colophon .obuk-mtt-logo :is(figure, a) {
	display: block;
}
/* Live: 125px wide, 10px down, on the right (the staging baseline showed it full size, 510px, because Divi's
   rebuilt cache there left out the logo's size). */
#colophon .obuk-mtt-logo a {
	width: 125px;
	max-width: 100%;
	margin-top: 10px;
	margin-left: auto;
}
#colophon .obuk-mtt-logo img {
	width: 100%;
	height: auto;
}
#colophon .site-bottom-footer-inner-wrap {
	padding-block: 24px 26px;
	text-align: center;
}
@media (max-width: 1024px) {
	#colophon .site-bottom-footer-inner-wrap {
		padding-bottom: 8px;
	}
}
@media (max-width: 980px) {
	#colophon .site-bottom-footer-inner-wrap {
		padding-bottom: 22px;
	}
	#colophon .footer-html-inner,
	#colophon .footer-html-inner > p {
		row-gap: 45px;
	}
}
#colophon .obuk-lottery-logo {
	margin: 0 auto;
}
#colophon .obuk-lottery-text {
	margin: 7px 0 0;
	text-align: center;
}
/* The logo link inside the open phone menu takes a white text colour; give its ring the text colour instead. */
#mobile-drawer .site-branding a:focus-visible,
#masthead .site-branding a:focus-visible {
	outline-color: var(--global-palette5);
}

/* =========================================================================
   Pages rebuilt from Divi (20 November 2026). Blocks: a Group per Divi section (.obuk-section), per row
   (.obuk-row) and per text module (.obuk-module .obuk-text); headings and paragraphs are Advanced Text,
   lists core List (build-scripts/build_text_page.py). Spacing as measured on live's Privacy Policy:
   ========================================================================= */
/* Divi's spacing (measured on live's Privacy Policy, Terms and Contact): sections 54px above and below,
   rows 27px above and below (rows set to 0 in Divi are .obuk-row--flush, e.g. the breadcrumb row);
   up to 980px, sections 50px and rows 30px. Modules in a column are 30px apart. */
.entry-content .obuk-section {
	padding: 54px 0;
}
.entry-content .obuk-row {
	padding: 27px 0;
}
.entry-content .obuk-row.obuk-row--flush {
	padding: 0;
}
/* Between 981px and 1349px Divi uses percentages of the screen width: sections 4%, rows 2%. */
@media (min-width: 981px) and (max-width: 1349px) {
	.entry-content .obuk-section {
		padding: 4vw 0;
	}
	.entry-content .obuk-row {
		padding: 2vw 0;
	}
	.entry-content .obuk-row.obuk-row--flush {
		padding: 0;
	}
}
@media (max-width: 980px) {
	.entry-content .obuk-section {
		padding: 50px 0;
	}
	.entry-content .obuk-row {
		padding: 30px 0;
	}
	.entry-content .obuk-row.obuk-row--flush {
		padding: 0;
	}
}
/* Kadence gives blocks in the content a 32px bottom margin; these Divi-style groups set their own gaps. */
.entry-content :is(.obuk-section, .obuk-row, .obuk-col, .obuk-module) {
	margin-top: 0;
	margin-bottom: 0;
}
/* Divi's gap between modules in a column: 30px. */
.entry-content .obuk-module + .obuk-module,
.entry-content .wp-block-group__inner-container > .obuk-module + .obuk-module {
	margin-top: 30px;
}
/* Columns: Divi's 2/3 + 1/3 with its 5.5% gap; stacked up to 980px, 30px apart (an empty column still adds
   its 30px, as on live). */
.entry-content .obuk-cols > .wp-block-group__inner-container {
	display: grid;
	column-gap: 5.5%;
	align-items: start;
}
.entry-content .obuk-cols-2-1 > .wp-block-group__inner-container {
	grid-template-columns: 64.833% 29.666%;
}
@media (max-width: 980px) {
	.entry-content .obuk-cols > .wp-block-group__inner-container {
		grid-template-columns: minmax(0, 1fr);
	}
	/* Divi stacks columns 30px apart (a margin under every column but the last) and hides empty columns. */
	.entry-content .obuk-cols > .wp-block-group__inner-container > .obuk-col:not(:last-child) {
		margin-bottom: 30px;
	}
	.entry-content .obuk-cols > .wp-block-group__inner-container > .obuk-col:not(:has(.obuk-module)) {
		display: none;
	}
}
/* Full-width coloured bands (Divi sections with a background): the colour runs edge to edge and the content
   keeps the page width. WordPress gives any Group with a background its own padding (1.25em 2.375em), so the
   section padding is restated here with the block's own class (skill section 20). */
.entry-content .wp-block-group.obuk-section.obuk-band.has-background {
	padding: 54px 0;
}
@media (min-width: 981px) and (max-width: 1349px) {
	.entry-content .wp-block-group.obuk-section.obuk-band.has-background {
		padding: 4vw 0;
	}
}
@media (max-width: 980px) {
	.entry-content .wp-block-group.obuk-section.obuk-band.has-background {
		padding: 50px 0;
	}
}
.entry-content .obuk-section.obuk-band > .wp-block-group__inner-container {
	max-width: min(80%, 1080px);
	margin-inline: auto;
}
.entry-content .obuk-text--white :is(h1, h2, h3, h4, h5, h6, p, li) {
	color: var(--global-palette9);
}
/* Divi text modules: headings 10px under, paragraphs 1em under, lists indented 30px with 23px under. */
.entry-content .obuk-text :is(h1, h2, h3, h4, h5, h6) {
	margin: 0;
	padding-bottom: 10px;
}
.entry-content .obuk-text p {
	margin: 0;
	padding-bottom: 1em;
}
/* Divi: a text module's last paragraph has no space under it, unless the module ended with an empty
   paragraph (the converter marks the last real one .obuk-keep-space). */
.entry-content .obuk-text p:last-of-type {
	padding-bottom: 0;
}
.entry-content .obuk-text p.obuk-keep-space {
	padding-bottom: 1em;
}
.entry-content .obuk-text :is(ul, ol) {
	margin: 0;
	padding: 0 0 23px 30px;
	list-style-position: outside;
}
.entry-content .obuk-text ul {
	list-style-type: disc;
}
.entry-content .obuk-text li {
	margin: 0;
	padding: 0;
}
/* Links in Divi text modules are underlined on live; Kadence's "no underline" rule is stronger than a plain one. */
.site .entry-content .obuk-text.obuk-text a:not(.wp-block-button__link) {
	text-decoration: underline;
}
.entry-content .obuk-text.obuk-h3-24 h3 {
	font-size: 24px;
	line-height: 30px;
}

/* Breadcrumbs ([obuk_breadcrumbs]): Sen 18px black, a chevron between items, as live's Divi Plus module. */
.entry-content .obuk-breadcrumbs ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}
.entry-content .obuk-breadcrumbs li {
	margin: 0;
	font-size: 18px;
	line-height: 26px;
	color: var(--global-palette3);
}
.entry-content .obuk-breadcrumbs a {
	color: var(--global-palette3);
	text-decoration: none;
}
.entry-content .obuk-breadcrumbs a:hover {
	color: var(--global-palette1);
}
.entry-content .obuk-breadcrumbs li + li::before {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	margin: 0 12px 2px 9px;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	transform: rotate(45deg);
}
/* Phones: live's chevron gaps are narrower (about 22px and 18px, against 28px on desktop), which keeps
   "Home > Get Involved > Volunteering" and "… > Fundraising" on one line at 390px. 20px each, same text size. */
@media (max-width: 767px) {
	.entry-content .obuk-breadcrumbs li + li::before {
		margin: 0 8px 2px 5px;
	}
}

/* Social icons in content (core Social Icons, logos only): #2E2E2E, 20px icons in 40px boxes, centred, as live's
   Divi module; .obuk-mt-100 is the module's 100px top margin; .obuk-hide-phone hides it below 768px as live. */
.entry-content .obuk-social .wp-block-social-links {
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
}
.entry-content .obuk-social .wp-block-social-links .wp-social-link {
	color: var(--global-palette5);
	margin: 0;
}
.entry-content .obuk-social .wp-block-social-links .wp-social-link a {
	width: 40px;
	height: 40px;
	padding: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.entry-content .obuk-social .wp-block-social-links .wp-social-link svg {
	width: 20px;
	height: 20px;
}
.entry-content .obuk-module.obuk-mt-100 {
	margin-top: 100px;
}
@media (max-width: 767px) {
	.entry-content .obuk-hide-phone {
		display: none;
	}
}

/* Newsletter form in a blue band (live): labels invisible but kept in place, as live does (live colours them
   blue on blue), so they still take up their room and screen readers still read them; white text for messages, and live's small outlined Sign Up button (Sen 14px, 0 16px, 38px tall,
   1px white border, square). Field border and button colours are the block's Form Styles. */
.entry-content .obuk-form--band .gform_wrapper.gform-theme--orbital {
	--gf-ctrl-btn-font-size-md: 14px;
	--gf-ctrl-btn-padding-x-md: 16px;
	--gf-ctrl-btn-size-md: 38px;
	--gf-ctrl-btn-radius: 0;
	--gf-ctrl-btn-border-width-primary: 1px;
	--gf-ctrl-btn-border-color-primary: var(--global-palette9);
	--gf-ctrl-btn-border-style-primary: solid;
	--gf-ctrl-desc-color: var(--global-palette9);
	--gf-ctrl-label-color-req: var(--global-palette9);
}
.entry-content .obuk-form--band .gform_wrapper :is(.gfield_label, .gform-field-label--type-sub) {
	color: transparent;
}
.entry-content .obuk-form--band .gform_wrapper :is(.gform_validation_errors, .validation_message, .gform_confirmation_message) {
	color: var(--global-palette9);
}

/* Live sets the newsletter form module to half width on tablet and phone (Divi width_tablet/width_phone 50%). */
@media (max-width: 980px) {
	.entry-content .obuk-module.obuk-form--band {
		width: 50%;
	}
}

/* =========================================================================
   Simple content pages (20 November 2026): more Divi layouts, measured on live's baseline pages.
   ========================================================================= */
/* Divi's column widths (gutter 3: 5.5% between columns), side by side from 981px. Gutter 2 is 3%. */
@media (min-width: 981px) {
	.entry-content .obuk-cols-1-1 > .wp-block-group__inner-container { grid-template-columns: 47.25% 47.25%; }
	.entry-content .obuk-cols-2-3 > .wp-block-group__inner-container { grid-template-columns: 36.7% 57.8%; }
	.entry-content .obuk-cols-3-2 > .wp-block-group__inner-container { grid-template-columns: 57.8% 36.7%; }
	.entry-content .obuk-cols-3-1 > .wp-block-group__inner-container { grid-template-columns: 73.625% 20.875%; }
	.entry-content .obuk-cols-1-1-1 > .wp-block-group__inner-container { grid-template-columns: repeat(3, 29.6667%); }
	.entry-content .obuk-cols-1-1-1-1 > .wp-block-group__inner-container { grid-template-columns: repeat(4, 20.875%); }
	.entry-content .obuk-gutter-2 > .wp-block-group__inner-container { column-gap: 3%; }
	.entry-content .obuk-gutter-2.obuk-cols-1-1-1 > .wp-block-group__inner-container { grid-template-columns: repeat(3, 31.3333%); }
	/* Divi "equal heights": columns stretch to the tallest one. */
	.entry-content .obuk-cols--equal > .wp-block-group__inner-container { align-items: stretch; }
	.entry-content .obuk-cols--equal > .wp-block-group__inner-container > .obuk-col > .wp-block-group__inner-container { height: 100%; }
	/* Divi's module gap in a gutter-2 column is a percentage of the column width (17px in a 338px card). */
	.entry-content .obuk-gutter-2 .obuk-col .obuk-module + .obuk-module { margin-top: 5%; }
	/* A column set to flex in Divi (Fundraising): the text marked .obuk-mt-auto sits at the bottom. */
	.entry-content .obuk-col--flex > .wp-block-group__inner-container { display: flex; flex-direction: column; }
	.entry-content .obuk-col--flex .obuk-mt-auto { margin-top: auto; }
	/* Divi Plus "image fill" (Fundraising): the photo fills its column's height, cropped. */
	.entry-content .obuk-cols--equal .obuk-img-fill,
	.entry-content .obuk-cols--equal .obuk-img-fill img { height: 100%; }
	.entry-content .obuk-img-fill img { width: 100%; object-fit: cover; }
}
/* Fundraising's photos (the only image-fill photos): 25px rounded corners, as live. */
.entry-content .obuk-img-fill img { border-radius: 25px; }
.entry-content .obuk-cols--middle > .wp-block-group__inner-container { align-items: center; }

/* Images: full size, never wider than the column (as Divi). */
.entry-content .obuk-module.wp-block-image img { vertical-align: bottom; }
.entry-content .obuk-img-center { text-align: center; }
.entry-content .obuk-img-center img { margin-inline: auto; }

/* Text sizes set on single Divi text modules. */
.entry-content .obuk-h1-55 h1 { font-size: 55px; line-height: 61px; font-weight: 400; }
.entry-content .obuk-h1-36 h1 { font-size: 36px; line-height: 61px; font-weight: 400; }
.entry-content .obuk-h2-32 h2 { font-size: 32px; line-height: 48px; font-weight: 300; }
.entry-content .obuk-h3-26 h3 { font-size: 26px; line-height: 1.8em; font-weight: 600; }
.entry-content .obuk-h3-28 h3 { font-size: 28px; line-height: 28px; font-weight: 600; }
.entry-content .obuk-text-15 p { font-size: 15px; line-height: 22.5px; }
.entry-content .obuk-text-36 p { font-size: 36px; line-height: 37.5px; }
.entry-content .obuk-mx-15 { margin-left: 15px; margin-right: 15px; }
.entry-content .obuk-module.obuk-mb-15 { margin-bottom: 15px; }

/* Quotes in text modules (Georgia Finch): 5px red line, 20px in, blue italic, as live. */
.entry-content .obuk-text blockquote.wp-block-quote {
	margin: 20px 0 30px;
	padding: 0 0 0 20px;
	border: 0;
	border-left: 5px solid var(--global-palette2);
	font-size: inherit;
	line-height: inherit;
	background: none;
}
.entry-content .obuk-text .wp-block-group__inner-container > blockquote.wp-block-quote:first-child { margin-top: 0; }
.entry-content .obuk-text blockquote.wp-block-quote :is(p, h1, h2, h3, h4) {
	color: var(--global-palette1);
	font-style: italic;
}

/* Card (Resources): a white rounded column; the whole card links through its button, as live. */
.entry-content .obuk-card { background: var(--global-palette9); border-radius: 15px; overflow: hidden; position: relative; }
.entry-content .obuk-card .wp-block-button__link::after { content: ""; position: absolute; inset: 0; }
.entry-content .obuk-btn-full .wp-block-button,
.entry-content .obuk-btn-full .wp-block-button__link { width: 100%; text-align: center; }

/* Photo headers (OULEN, Resources): Divi section with a photo and a dark-blue gradient over it, as a Cover.
   Section padding as any other section; the content keeps the page width. */
.entry-content .wp-block-cover.obuk-hero {
	padding: 54px 0;
	min-height: 0;
	margin-top: 0;
	margin-bottom: 0;
}
@media (min-width: 981px) and (max-width: 1349px) {
	.entry-content .wp-block-cover.obuk-hero { padding: 4vw 0; }
}
@media (max-width: 980px) {
	/* Live keeps these photo headers 850px tall up to 980px (its stale Divi cache; the content has that switched
	   off). Held pending Chris (20 Nov 2026): this follows the page's own Divi settings. */
	.entry-content .wp-block-cover.obuk-hero { padding: 50px 0; }
}
.entry-content .wp-block-cover.obuk-hero > .wp-block-cover__inner-container {
	width: 100%;
	max-width: min(80%, 1080px);
	margin-inline: auto;
	color: inherit;
}

/* Donorbox heart in the site's own Donate button (Donate page). */
.entry-content .obuk-btn-icon { display: inline-block; width: 16px; height: 14px; margin: 0 8px 0 0; vertical-align: -1px; }
/* Donorbox embed: Donorbox's own iframe, as live. It stays inline, as in Divi's code module, so it carries
   the same line space under it (11px). */

/* Images: no stray line space under a linked image; no Kadence margin (Divi's 30px module gap applies). */
.entry-content figure.wp-block-image.obuk-module { line-height: 0; margin: 0; }
.entry-content .obuk-module + figure.wp-block-image.obuk-module,
.entry-content .wp-block-group__inner-container > .obuk-module + figure.wp-block-image.obuk-module { margin-top: 30px; }
.entry-content .obuk-text p.obuk-no-space { padding-bottom: 0; }

/* Numbered lists: Divi puts the number inside the text line, 30px in (OULEN). */
.entry-content .obuk-text ol { list-style-position: inside; }

/* Gravity Forms file upload (Certificate Request): live leaves "Select files" in Gravity Forms' own small
   style (Sen 14px, 0 16px, Gravity Forms blue #204CE5, 3px corners), not the site's submit button. */
.site .entry-content .gform-theme.gform-theme--framework.gform_wrapper.gform-theme--orbital button.button.gform_button_select_files {
	--gf-local-font-size: 14px;
	--gf-local-line-height: 14px;
	--gf-local-padding-x: 16px;
	--gf-local-bg-color: #204ce5;
	--gf-local-border-color: #204ce5;
	--gf-local-radius: 3px;
	font-size: 14px;
	line-height: 14px;
	padding: 0 16px;
	background-color: #204ce5;
	border-radius: 3px;
}

/* =========================================================================
   Linked tiles (20 November 2026), shared by Our Policies, What is Obesity? and the Projects pattern.
   - White card (.obuk-card, above): photo, text, button; rounded 15px, as live.
   - Blue tile (.obuk-tile--blue): Our Policies. Photo tile (.obuk-tile--photo, a Cover): What is Obesity?
     reports, photo under live's blue tint. Both rounded 15px, as live (and Chris wants them rounded anyway).
   The tile's heading carries the link, stretched over the whole tile (live links the whole column).
   ========================================================================= */
@media (min-width: 981px) {
	.entry-content .obuk-gutter-2.obuk-cols-1-1-1-1 > .wp-block-group__inner-container { grid-template-columns: repeat(4, 22.75%); }
	/* Divi's module gap in a quarter-width gutter-2 column: 7.33% of the column (18px in 246px). */
	.entry-content .obuk-gutter-2.obuk-cols-1-1-1-1 .obuk-col .obuk-module + .obuk-module { margin-top: 7.33%; }
}
.entry-content .obuk-tile { position: relative; margin: 0; border-radius: 15px; overflow: hidden; }
.entry-content .obuk-tile--blue { background: var(--global-palette1); }
.entry-content .wp-block-cover.obuk-tile--photo {
	min-height: 0;
	padding: 0;
	align-items: flex-start;
	border-radius: 15px;
}
.entry-content .wp-block-cover.obuk-tile--photo > .wp-block-cover__inner-container { width: 100%; color: inherit; }
.site .entry-content .obuk-tile .obuk-text.obuk-text a { color: inherit; text-decoration: none; }
.entry-content .obuk-tile :is(h1, h2, h3, h4) a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.entry-content .obuk-tile :is(h1, h2, h3, h4) a:focus-visible { outline: none; }
.entry-content .obuk-tile:focus-within { outline: 2px solid var(--global-palette3); outline-offset: 2px; }
/* Text 15px in from every edge of the tile (Divi custom margin). */
.entry-content .obuk-module.obuk-m-15 { margin: 15px; }

/* =========================================================================
   Single templates (20 November 2026): Kadence Elements "Single team member", "Single news post" and
   "Single story" (Replace Single Content), copying live's Divi Theme Builder bodies #625, #863 and #1261.
   They reuse the page classes (.obuk-section, .obuk-row, .obuk-cols-2-3 / -2-1, .obuk-text).
   ========================================================================= */
/* Team member: live's title module has no space under it and is #2E2E2E (posts and stories: #333, 10px). */
.entry-content .obuk-single--team .obuk-single-title h1 {
	padding-bottom: 0;
	color: var(--global-palette5);
}
/* The Job Title (ACF) is a Divi Machine field module on live: H2 in Montserrat 600, 48px lines. */
.entry-content .obuk-job-title h2 {
	font-weight: 600;
	line-height: 48px;
}
/* Post content (Kadence Dynamic HTML): Divi gives every line in the post content module the body's 37.5px
   line height, whatever its text size (a 20px "medium" paragraph, a 13px image caption). */
.entry-content .obuk-post-content :is(p, figcaption) {
	line-height: 37.5px;
}
/* Lists in post content: live's lines are 26px apart and 25px in (corrected 21 November 2026). */
.entry-content .obuk-post-content :is(ul, ol) { padding-left: 25px; }
.entry-content .obuk-post-content li { line-height: 26px; }
/* News post photo: live rounds the featured image 20px. */
.entry-content .obuk-single-image img {
	border-radius: 20px;
}

/* =========================================================================
   Listings (20 November 2026): Kadence Query Loop (Adv) with three card designs ("News card", "Story card",
   "Team card"), copying live's Divi Machine loops and their Library cards #725, #438 and #386.
   The block on the page carries .obuk-ql plus .obuk-ql-posts / -stories / -team; columns and gaps are the
   card's own settings (3/2/1, 4/2/1, 4/2/1). Each card's heading link covers the whole card, as live's
   "link whole grid". Load More: mu-plugins/obuk-load-more.php.
   ========================================================================= */
.entry-content .obuk-ql li.kb-query-item {
	position: relative;
	margin: 0;
	padding: 0;
}
.entry-content .obuk-ql .obuk-qc-title {
	text-decoration: none;
	color: inherit;
}
.entry-content .obuk-ql a.obuk-qc-title::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
}
.entry-content .obuk-ql a.obuk-qc-title:focus-visible {
	outline: none;
}
.entry-content .obuk-ql li.kb-query-item:focus-within {
	outline: 2px solid var(--global-palette3);
	outline-offset: 2px;
}
.entry-content .obuk-ql .obuk-qc-title :is(h2, h3) {
	margin: 0;
}

/* News card (#725): the post's photo fills the card under 50% #2E2E2E; white title (10px under it, then
   live's 8.6px module gap) and 8-word excerpt; 25px 15px 15px inside; 185px minimum, rounded 15px; cards in a
   row share the tallest height. */
.entry-content .obuk-ql-posts li.kb-query-item {
	min-height: 185px;
	padding: 25px 15px 15px;
	border-radius: 15px;
	overflow: hidden;
	background: var(--global-palette5);
	color: var(--global-palette9);
}
.entry-content .obuk-ql-posts li.kb-query-item::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(46, 46, 46, 0.5);
}
.entry-content .obuk-ql-posts .obuk-qc-bg {
	position: absolute;
	inset: 0;
	margin: 0;
	z-index: 0;
}
.entry-content .obuk-ql-posts .obuk-qc-bg :is(figure, img) {
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
}
.entry-content .obuk-ql-posts :is(.obuk-qc-title, .obuk-qc-excerpt) {
	position: relative;
	z-index: 2;
	display: block;
}
.entry-content .obuk-ql-posts .obuk-qc-title h2 {
	padding: 0 0 10px;
	font-size: 25px;
	line-height: 30px;
	font-weight: 600;
	color: var(--global-palette9);
}
/* Divi's module gap: 2.75% of the card's inner width on desktop (8.6px at 1440), 30px on tablets and phones. */
.entry-content .obuk-ql-posts .obuk-qc-excerpt {
	margin-top: 2.75%;
	font-size: 18px;
	line-height: 20px;
	color: var(--global-palette9);
}

/* Story card (#438): pale grey (#F7F7F7 at 80%), rounded 15px; H3 22px with 10px 15px around it, a 14-word
   excerpt in 16px, and "Read Story" (the site's standard button) centred along the bottom. */
.entry-content .obuk-ql-stories li.kb-query-item {
	display: flex;
	flex-direction: column;
	padding-bottom: 14px;
	border-radius: 15px;
	background: rgba(247, 247, 247, 0.8);
}
.entry-content .obuk-ql-stories .obuk-qc-title h3 {
	padding: 10px 15px;
	font-size: 22px;
	line-height: 37.5px;
	font-weight: 600;
	color: var(--global-palette4);
}
.entry-content .obuk-ql-stories .obuk-qc-excerpt {
	margin-top: 7px;
	padding: 0 15px;
	font-size: 16px;
	line-height: 30px;
	color: var(--global-palette5);
}
/* Kadence's own button padding (8px) is stronger than the standard button's 6px 20px; live's is 50px tall. */
.entry-content .obuk-ql-stories li.kb-query-item a.kb-button.obuk-btn {
	padding: 6px 20px;
}
.entry-content .obuk-ql-stories li.kb-query-item .kb-buttons-wrap.obuk-qc-more {
	position: relative;
	z-index: 4;
	margin-top: auto;
	padding-top: 17px;
	justify-content: center;
}
@media (max-width: 980px) {
	.entry-content .obuk-ql-posts .obuk-qc-excerpt,
	.entry-content .obuk-ql-stories .obuk-qc-excerpt {
		margin-top: 30px;
	}
	.entry-content .obuk-ql-stories li.kb-query-item {
		padding-bottom: 15px;
	}
	.entry-content .obuk-ql-stories li.kb-query-item .kb-buttons-wrap.obuk-qc-more {
		padding-top: 40px;
	}
}

/* Team card (#386): the photo as a circle, then the name (H3 31px) and Job Title (20px), centred. Live's
   module gaps: 27px above the photo and 6px under it on desktop; 30px each on tablets and phones. */
.entry-content .obuk-ql-team li.kb-query-item {
	padding: 27px 0;
	text-align: center;
}
.entry-content .obuk-ql-team .obuk-qc-photo {
	margin: 0;
}
.entry-content .obuk-ql-team .obuk-qc-photo img {
	display: block;
	width: 100%;
	max-width: none;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 50%;
}
.entry-content .obuk-ql-team .obuk-qc-title {
	display: block;
	margin-top: 6px;
}
.entry-content .obuk-ql-team .obuk-qc-title h3 {
	padding: 15px 0;
	font-size: 31px;
	line-height: 36px;
	font-weight: 600;
	color: var(--global-palette4);
	text-align: center;
}
.entry-content .obuk-ql-team .obuk-qc-job {
	margin: 0;
	font-size: 20px;
	line-height: 30px;
	text-align: center;
}
@media (max-width: 980px) {
	.entry-content .obuk-ql-team li.kb-query-item {
		padding: 30px 0;
	}
	.entry-content .obuk-ql-team .obuk-qc-title {
		margin-top: 30px;
	}
}

/* Load More (live's Divi Machine button): the site's standard button, centred, 29px under the cards. Kadence's
   infinite-scroll trigger is switched off; the button asks for the next page instead. */
.entry-content .obuk-loadmore .infinite-scroll-trigger {
	display: none;
}
/* Live's Divi Machine loops with Load More keep 80px under the cards for the button, whether or not it shows,
   after the grid's 2.75% gap (of the row width: 29.7px at 1440, 8.6px at 390). The button sits at the top of
   those 80px, centred. */
.entry-content .obuk-ql.obuk-loadmore {
	position: relative;
	padding-bottom: calc(2.75% + 80px);
}
.entry-content .obuk-loadmore-wrap {
	display: flex;
	justify-content: center;
	position: absolute;
	top: calc(100% - 80px);
	left: 0;
	right: 0;
}
.entry-content .obuk-loadmore-wrap[hidden] {
	display: none;
}
/* Post content photos (Divi's post content module): 25px under the image block; the caption 13px (Divi's
   0.5em above and 1em under); the "medium" intro line stays 20px on phones (Kadence's preset shrinks it). */
.entry-content .obuk-post-content :is(figure.wp-block-image, .wp-block-image > figure) {
	margin: 0 0 25px;
}
.entry-content .obuk-post-content .wp-block-image :is(img, figure > a) {
	display: block;
}
/* Only images set to centre are centred (the cookbook's); others sit left, as live (corrected 21 November 2026). */
.entry-content .obuk-post-content .aligncenter :is(img, a) {
	margin-inline: auto;
}
/* Empty paragraphs in post content take no space, as live (post 1725). */
.entry-content .obuk-post-content p:empty {
	display: none;
}
.entry-content .obuk-post-content .wp-block-image figcaption {
	margin: 6.5px 0 13px;
	font-size: 13px;
}
/* WordPress's preset rule carries !important, so set the size it reads instead. */
.entry-content .obuk-post-content .has-medium-font-size {
	--wp--preset--font-size--medium: 20px;
}
/* "Large" in post content is 36px on live ("Stronger together." in post 1725). */
.entry-content .obuk-post-content .has-large-font-size {
	--wp--preset--font-size--large: 36px;
}
/* Phones: the trail wraps like a sentence (Chris, 21 November 2026; a departure from live, whose items fold as
   separate boxes). Items are inline and break across lines like words; the arrow spacing is unchanged. */
@media (max-width: 767px) {
	.entry-content .obuk-breadcrumbs ol {
		display: block;
		font-size: 18px;
		line-height: 26px;
	}
	.entry-content .obuk-breadcrumbs li {
		display: inline;
		overflow-wrap: normal;
		word-break: normal;
	}
	.entry-content .obuk-breadcrumbs li + li::before {
		vertical-align: 2px;
		margin-bottom: 0;
	}
}

/* =========================================================================
   Listing pages (21 November 2026): News, Friends' Stories, Our Team, and the "How to help" synced pattern.
   Measured on live at 1440 and 390.
   ========================================================================= */
/* A text module with Divi's 0 top and bottom margin: the next module follows with no gap ("How to help"). */
.entry-content .obuk-module.obuk-mb-0 + .obuk-module { margin-top: 0; }
/* "Donate" in "How to help": 30px side padding (Divi custom padding). */
.wp-block-button.obuk-btn-px-30 > .wp-block-button__link { padding-left: 30px; padding-right: 30px; }
@media (min-width: 981px) {
	/* Divi's halves with gutter 2: 48.5% each, 3% apart. */
	.entry-content .obuk-gutter-2.obuk-cols-1-1 > .wp-block-group__inner-container { grid-template-columns: repeat(2, 48.5%); }
	/* Divi's fifths (Our Team): 15.6% each, 5.5% apart. */
	.entry-content .obuk-cols-1-1-1-1-1 > .wp-block-group__inner-container { grid-template-columns: repeat(5, 15.6%); }
}
/* Trustee and advocate photos: Divi's 90px corners, as live (round at 168px, rounded square on phones). */
.entry-content .obuk-img-r90 img { border-radius: 90px; }
/* Their names: 20px, regular, centred; a linked name looks the same as the others, as live. */
.entry-content .obuk-person-name h3 { font-size: 20px; line-height: 20px; font-weight: 400; }
.site .entry-content .obuk-person-name h3 a { color: inherit; text-decoration: none; }
/* A heading followed by an empty paragraph in Divi ("How to help"): live keeps that one empty line (37.5px). */
.entry-content .obuk-text.obuk-blank-after { padding-bottom: 37.5px; }
/* A Divi section with its bottom padding set to 0 (Friends' Stories' title section). */
.entry-content .obuk-section.obuk-section--pb0 { padding-bottom: 0; }
/* A listing after a text module in the same column (Executive team): Divi's 30px module gap above it, and the
   grid's 2.75% bottom margin (of the row width) under it, as live. */
.entry-content .obuk-module + .obuk-ql { margin-top: 30px; }
.entry-content .obuk-ql-team { margin-bottom: 2.75%; }

/* Headings and quotes in news post content, as live's Divi post content module: headings Montserrat 26px
   regular, 26px lines, 10px under; quotes with a 6px #2E2E2E line, 25px in, plain text (not the page quote style). */
.entry-content .obuk-post-content :is(h2, h3, h4, h5, h6) {
	font-size: 26px;
	line-height: 26px;
	font-weight: 400;
	padding-bottom: 10px;
}
.entry-content .obuk-post-content.obuk-text blockquote.wp-block-quote {
	margin: 0 0 43.75px;
	padding: 0 0 0 25px;
	border-left: 6px solid var(--global-palette5);
}
.entry-content .obuk-post-content.obuk-text blockquote.wp-block-quote :is(p, h1, h2, h3, h4) {
	color: inherit;
	font-style: normal;
}
/* Post 1725's list has its own CSS (margin-left: 25px). WordPress prints it as ":root :where(...)", which the theme's
   list margin beats; live honours it. Restated for that block (the only post block with its own CSS). */
.entry-content .obuk-post-content .wp-custom-css-3ee5aed3 { margin-left: 25px; }

/* =========================================================================
   Step 17 pages (21 November 2026): About Us, Get Involved, Our Work, Peer Support Training, The Reality of
   Obesity, The PC Podcast, The Truth From Within, Support Groups. Measured on live at 1440 and 390.
   ========================================================================= */
/* Peer Support Training's intro: Montserrat 300, 30px, 37.5px lines (Divi text font set to the heading font). */
.entry-content .obuk-text-30 p { font-family: var(--global-heading-font-family); font-size: 30px; line-height: 37.5px; font-weight: 300; }
/* PDF buttons (Peer Support Training): Sen 16px 500, 1px black border, no fill, #2E2E2E text, full width, text left,
   12px above and below; on hover (and keyboard focus) a 5px shadow, colours unchanged, as live. */
.wp-block-button.obuk-btn--doc { width: 100%; }
.wp-block-button.obuk-btn--doc > .wp-block-button__link {
	display: block;
	width: 100%;
	text-align: left;
	font-size: 16px;
	padding: 0.3em 1em;
	border: 1px solid #000;
	background: transparent;
	color: var(--global-palette5);
	box-shadow: 5px 5px 0 rgba(255, 255, 255, 0);
	transition: box-shadow 0.3s ease;
}
.wp-block-button.obuk-btn--doc > .wp-block-button__link:is(:hover, :focus-visible) {
	background: transparent;
	color: var(--global-palette5);
	border-color: #000;
	box-shadow: 5px 5px 0 rgba(46, 46, 46, 0.5);
}
.entry-content .wp-block-group__inner-container > .obuk-module.obuk-btn-doc-wrap.obuk-btn-doc-wrap,
.entry-content .obuk-module.obuk-btn-doc-wrap.obuk-btn-doc-wrap { margin-top: 12px; margin-bottom: 12px; }
/* Podcast pages (The Reality of Obesity, The PC Podcast): episode text as live. Label Sen 20px 600 blue, 20px under;
   title Montserrat 25px 600, 30px lines; text 20px, 24px lines. */
.entry-content .obuk-text p.obuk-episode { font-size: 20px; line-height: 24px; font-weight: 600; color: var(--global-palette1); padding-bottom: 20px; }
.entry-content .obuk-h2-25 h2 { font-size: 25px; line-height: 30px; font-weight: 600; }
.entry-content .obuk-text-20 p { font-size: 20px; line-height: 37.5px; }
.entry-content .obuk-lh-24 p { line-height: 24px; }
.entry-content .obuk-lh-30 p { line-height: 30px; }
/* Apple and Spotify badges: 40px tall, 15px apart, 15px under the episode text; the row is 52px tall, as live. */
.entry-content .obuk-badges > .wp-block-group__inner-container { display: flex; flex-wrap: wrap; gap: 15px; align-items: flex-start; padding-bottom: 12px; }
.entry-content .obuk-badges figure.wp-block-image { margin: 0; line-height: 0; }
.entry-content .obuk-badges img { height: 40px; width: auto; }
.entry-content .wp-block-group__inner-container > .obuk-module.obuk-mb-0 + .obuk-module.obuk-badges { margin-top: 15px; }
/* A text module Divi links as a whole (The PC Podcast's intro): its own link covers the module. */
.entry-content .obuk-linked-text { position: relative; }
.entry-content .obuk-linked-text a::after { content: ""; position: absolute; inset: 0; }
@media (min-width: 981px) {
	/* Divi's 1/4 + 3/4 (gutter 3, and gutter 2 for the podcast episodes: 22.75% and 74.25%, 3% apart). */
	.entry-content .obuk-cols-1-3 > .wp-block-group__inner-container { grid-template-columns: 20.875% 73.625%; }
	.entry-content .obuk-gutter-2.obuk-cols-1-3 > .wp-block-group__inner-container { grid-template-columns: 22.75% 74.25%; }
	/* One column with gutter 2: Divi's module gap is 1.5% of the row (16px at 1080). */
	.entry-content .obuk-row--g2 > .wp-block-group__inner-container > .obuk-module + .obuk-module { margin-top: 1.5%; }
}
.entry-content .wp-block-embed.obuk-module { margin: 0; }
/* The Truth From Within gallery (Kadence Advanced Gallery, GLightbox): live's lightbox backdrop is 80% black. */
.glightbox-container.glightbox-kadence-dark .goverlay { background: rgba(0, 0, 0, 0.8); }
/* Support Groups: Facebook group cards. Outlined (1px #BABABA, 15px corners, 15px in), icon left and text right at
   every width, rows 15px apart; the whole card links through its heading, which stays underlined as live. */
.entry-content .obuk-row.obuk-row--my15 { margin-top: 15px; margin-bottom: 15px; }
.entry-content .obuk-tile--outline { border: 1px solid #bababa; padding: 15px; }
.entry-content .obuk-col--row > .wp-block-group__inner-container { display: flex; flex-direction: row; align-items: flex-start; }
.entry-content .obuk-col--row > .wp-block-group__inner-container > .obuk-module + .obuk-module { margin-top: 0; }
.entry-content .obuk-col--row .obuk-text { flex: 1; min-width: 0; }
.entry-content .wp-block-kadence-icon.obuk-icon { margin: 0; line-height: 0; flex-shrink: 0; }
.entry-content .obuk-pl-20 { padding-left: 20px; }
.entry-content .obuk-h3-20 h3 { font-size: 20px; line-height: 24px; font-weight: 600; }
.entry-content .obuk-h3-30 h3 { font-size: 30px; line-height: 36px; font-weight: 600; }
.entry-content .obuk-lh-18 p { line-height: 18px; }
.site .entry-content .obuk-tile--outline .obuk-text.obuk-text h3 a { text-decoration: underline; }
/* Listings without Load More keep the grid's 2.75% bottom margin, as live (Support Groups' 4 stories). */
.entry-content .obuk-ql-stories:not(.obuk-loadmore) { margin-bottom: 2.75%; }
/* Each PDF button sits in a wrapper at least one 37.5px text line tall (40px), as live: one-line buttons take 40px. */
.entry-content .wp-block-buttons.obuk-btn-doc-wrap { min-height: 40px; }
/* Badges after an episode text with Divi's normal module gap (Episode 2): that gap (2.02% of the 3/4 column, 16px)
   plus the badges' 15px; 30px + 15px on phones. */
.entry-content .obuk-gutter-2 .obuk-col .obuk-module:not(.obuk-mb-0) + .obuk-module.obuk-badges { margin-top: calc(2.02% + 15px); }
@media (max-width: 980px) {
	.entry-content .obuk-gutter-2 .obuk-col .obuk-module:not(.obuk-mb-0) + .obuk-module.obuk-badges { margin-top: 45px; }
}
/* Live's gallery keeps one 15px gap under its last row. */
.entry-content .obuk-module.obuk-gallery { margin-bottom: 15px; }
/* YouTube click to play (mu-plugins/obuk-youtube.php): the local preview fills the embed's box; YouTube-style play
   button in the middle, red on hover and keyboard focus, with a visible focus ring. */
.obuk-yt { position: absolute; inset: 0; background: #000; }
.wp-block-embed__wrapper > .obuk-yt { position: absolute; inset: 0; }
.obuk-yt-poster { width: 100%; height: 100%; object-fit: cover; display: block; }
.obuk-yt-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.obuk-yt-play .obuk-yt-bg { fill: #212121; fill-opacity: 0.8; transition: fill 0.2s, fill-opacity 0.2s; }
.obuk-yt-play:is(:hover, :focus-visible) .obuk-yt-bg { fill: #f00; fill-opacity: 1; }
.obuk-yt-play:focus-visible { outline: 3px solid #fff; outline-offset: -6px; box-shadow: inset 0 0 0 6px var(--global-palette1); }

/* =========================================================================
   Home (21 November 2026), measured on live at 1440, 980 and 390.
   ========================================================================= */
/* White on black: Home's podcast "Find out more". Black text on white, 2px white border; hover black with white text. */
:is(a.kb-button, .wp-block-button__link).obuk-btn--white-dark,
.wp-block-button.obuk-btn--white-dark > .wp-block-button__link { background: #fff; color: #000; border-color: #fff; }
:is(a.kb-button, .wp-block-button__link).obuk-btn--white-dark:is(:hover, :focus-visible),
.wp-block-button.obuk-btn--white-dark > .wp-block-button__link:is(:hover, :focus-visible) { background: #000; color: #fff; border-color: #fff; }
/* Text set in Divi as italic (Home's "Funded thanks to National Lottery players."). */
.entry-content .obuk-italic p { font-style: italic; }
/* Home's hero heading: 36px on desktop and tablet, 25px on phones, as live. */
@media (max-width: 767px) {
	.entry-content .obuk-h1-phone-25 h1 { font-size: 25px; }
}
/* Home's hero: 850px tall on desktop only; at 980px and below it is as tall as its content, as live. */
@media (max-width: 980px) {
	.entry-content .wp-block-cover.obuk-hero.obuk-hero--no-min-tablet { min-height: 0 !important; }
}
@media (min-width: 981px) {
	/* Divi's 3/5 + 1/5 + 1/5 (Home's Patient Advocates band). */
	.entry-content .obuk-cols-3-1-1 > .wp-block-group__inner-container { grid-template-columns: 57.8% 15.6% 15.6%; }
}
/* Image modules with Divi's own top and bottom padding (Home's "Our aims" icons: 3px, 14px, 1px), so the texts under
   them line up as live. */
.entry-content .obuk-img-py-1 { padding-top: 1px; padding-bottom: 1px; }
.entry-content .obuk-img-py-3 { padding-top: 3px; padding-bottom: 3px; }
.entry-content .obuk-img-py-14 { padding-top: 14px; padding-bottom: 14px; }
/* Tablets (768–980px): Divi puts quarter and fifth columns two to a row (47.25%, 5.5% apart, rows 30px apart),
   with a 3/5 column across the full width above them (Home's advocates). Measured on live Home and Get Involved. */
@media (min-width: 768px) and (max-width: 980px) {
	.entry-content :is(.obuk-cols-1-1-1-1, .obuk-cols-1-1-1-1-1, .obuk-cols-3-1-1):not(.obuk-cols--tablet-stack) > .wp-block-group__inner-container {
		grid-template-columns: repeat(2, 47.25%);
		column-gap: 5.5%;
		row-gap: 30px;
	}
	.entry-content :is(.obuk-cols-1-1-1-1, .obuk-cols-1-1-1-1-1, .obuk-cols-3-1-1):not(.obuk-cols--tablet-stack) > .wp-block-group__inner-container > .obuk-col:not(:last-child) { margin-bottom: 0; }
	/* A row where live leaves out a hidden column (Our Work's Language Matters, Our Team's hidden fifth) isn't a full
	   four- or five-column row to Divi, so its columns stack full width on tablets, as live. */
	.entry-content .obuk-cols-3-1-1 > .wp-block-group__inner-container > .obuk-col:first-child { grid-column: 1 / -1; }
	/* Divi drops the bottom margin of the last two columns in a four-column row and the last one in a five-column row.
	   When those are empty (hidden here), the visible columns before them keep their 30px, as live (Our Work's second
	   tile row, Our Team's trustees). Empty columns carry .obuk-col--empty. */
	.entry-content .obuk-cols-1-1-1-1:not(.obuk-cols--tablet-stack) > .wp-block-group__inner-container:has(> .obuk-col--empty:nth-last-child(2) + .obuk-col--empty:last-child),
	.entry-content .obuk-cols-1-1-1-1-1:not(.obuk-cols--tablet-stack) > .wp-block-group__inner-container:has(> .obuk-col--empty:last-child) { padding-bottom: 30px; }
}
/* Under a 4-story listing at 980px and below, Divi's 30px module gap replaces the grid's 2.75% (Home, Support Groups). */
@media (max-width: 980px) {
	.entry-content .obuk-ql-stories:not(.obuk-loadmore) { margin-bottom: 30px; }
}
/* Load More at 980px and below: live's button sits 30px under the cards (Divi's module gap), and the listing keeps
   the same total height (cards + 2.75% + 80px). The hidden wrapper keeps its space too (News, Friends' Stories). */
@media (max-width: 980px) {
	.entry-content .obuk-ql.obuk-loadmore { padding-bottom: calc(2.75% + 50px); }
	.entry-content .obuk-loadmore-wrap { position: static; margin-top: 30px; height: 0; overflow: visible; align-items: flex-start; }
	.entry-content .obuk-loadmore-wrap[hidden] { display: flex; visibility: hidden; }
}
/* Home's advocate photos: Divi's 115px corners (round at 168px). Their linked names stay plain white, as live. */
.entry-content .obuk-img-r115 img { border-radius: 115px; }
.site .entry-content .obuk-person-name.obuk-person-name.obuk-text h3 a:not(.wp-block-button__link) { text-decoration: none; color: inherit; }
/* Keyboard focus on dark backgrounds (Stage 5 final checks, 21 November 2026): in the blue, red and black bands, the
   gradient photo banners and the footer (not the light grey bands or plain photo sections), the ring is white, so it reaches 3:1 against the dark colour behind it (a focused button there turns
   white with dark text, so its text colour would vanish against the band). Listing cards keep their dark ring: they sit
   on a light panel. */
:is(.obuk-band:is(.has-theme-palette-1-background-color, .has-theme-palette-2-background-color, .has-theme-palette-3-background-color), .wp-block-cover.obuk-hero:not(.obuk-hero--plain), #colophon) :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible:not(.obuk-ql *) {
	outline-color: #fff;
}

/* Archive templates (Kadence Element "Archive listing", 21 November 2026). Kadence prints an archive Element outside its
   content container, so its sections take the container's width here (80% of the window, up to 1080px); the hero stays full width. */
.obuk-archive-content > .wp-block-group__inner-container > .obuk-section:not(.alignfull),
.obuk-archive-content > .obuk-section:not(.alignfull) {
	max-width: min(80%, 1080px);
	margin-inline: auto;
}
/* Live's archive title is a Divi Heading module (line height 1em), not a Text module like the News banner (61px). */
.obuk-archive-content .obuk-hero h1 {
	line-height: 1em;
}

/* Search results and 404 (21 November 2026): live shows Divi's own blog layout here, not a Theme Builder template.
   A 795px column with Divi's 1px #E2E2E2 divider and an empty 20.875% sidebar; one column at 980px and below.
   Measured on live: 58px above, titles Montserrat 26px, meta Sen 14px, text Sen 25px/37.5px, 60px between results. */
.obuk-blog {
	position: relative;
	display: flex;
	padding-top: 58px;
}
.obuk-blog__main {
	width: 79.125%;
	padding: 0 5.5% 23px 0;
	box-sizing: border-box;
}
.obuk-blog__sidebar {
	width: 20.875%;
	min-height: 58px;
}
.obuk-blog::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	right: 20.875%;
	width: 1px;
	background: #e2e2e2;
}
.obuk-blog__item {
	margin-bottom: 60px;
}
.obuk-blog__image {
	display: block;
	margin-bottom: 30px;
}
.obuk-blog__image img {
	display: block;
	width: 100%;
	height: auto;
}
.entry-content .obuk-blog :is(.obuk-blog__title, .obuk-not-found__title) {
	margin: 0;
	padding-bottom: 10px;
	font-family: var(--global-heading-font-family);
	font-size: 26px;
	font-weight: 400;
	line-height: 1em;
	color: #333;
}
.entry-content .obuk-blog .obuk-not-found__title {
	font-size: 30px;
}
.entry-content .obuk-blog__title a {
	color: #333;
	text-decoration: none;
}
.entry-content .obuk-blog p {
	margin: 0;
	font-family: var(--global-body-font-family);
	font-size: 25px;
	font-weight: 300;
	line-height: 37.5px;
	color: #2e2e2e;
}
.entry-content .obuk-blog p.obuk-blog__meta {
	margin-bottom: 6px;
	padding-bottom: 15px;
	font-size: 14px;
}
.entry-content .obuk-blog__meta a {
	color: inherit;
	text-decoration: none;
}
.entry-content .obuk-blog__pager {
	display: flex;
	justify-content: space-between;
	font-family: var(--global-body-font-family);
	font-size: 25px;
	font-weight: 300;
	line-height: 37.5px;
}
.entry-content .obuk-blog__pager a {
	color: #3e60ab;
	text-decoration: none;
}
@media (max-width: 980px) {
	.obuk-blog {
		display: block;
	}
	.obuk-blog::before {
		content: none;
	}
	.obuk-blog__main {
		width: auto;
		padding: 0;
	}
	.obuk-blog__sidebar {
		width: auto;
		min-height: 0;
		padding-top: 30px;
	}
	.obuk-blog__item {
		margin-bottom: 42px;
	}
	.entry-content .obuk-blog .obuk-blog__title {
		font-size: 16px;
	}
	.entry-content .obuk-blog p.obuk-blog__meta {
		color: #666;
	}
}
.entry-content .obuk-section.obuk-section--blog {
	padding: 0;
}
/* Live's empty sidebar is 28px tall on phones; on the 404 the message is an article with a result's gap below it. */
@media (max-width: 980px) {
	.obuk-blog__sidebar {
		padding-bottom: 28px;
	}
}
.obuk-404-content .obuk-not-found {
	margin-bottom: 60px;
}
@media (max-width: 980px) {
	.obuk-404-content .obuk-not-found {
		margin-bottom: 42px;
	}
	.obuk-404-content .obuk-blog__sidebar {
		padding-top: 0;
	}
}
