/*
 Theme Name:   PA AP (Kadence Child)
 Theme URI:    https://pa-ap.org/
 Description:  Kadence child theme for Pacte Adiposité – Adipositas Pact (pa-ap.org). 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.0.64
 Tags:         customizable, responsive-layout, gutenberg, header builder, footer builder
 Text Domain:  paap-child
*/

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

/* ==============================================================
   1. Brand colours that aren't in the Kadence palette
   Palette (Customizer → Colors): 1 teal #169B9A, 2 navy #1E2041,
   3 #222222, 4 #333333, 5–6 #666666, 7 #F6F6F6, 8–9 #FFFFFF.
   ============================================================== */
:root {
	--paap-red: #991A33;
	--paap-mustard: #D3AD29;
}

/* ==============================================================
   2. Highlighted headings
   Add the class to a heading block; the coloured block sits on
   the heading's inner <span> (wrap the words in a span, or use
   an Advanced Heading "highlight" / inline span).
   Colours are exactly as on the Divi site (not darkened).
   ============================================================== */
.highlighted-heading span,
.highlighted-heading-red span,
.highlighted-heading-mustard span,
.highlighted-heading-grey-green span,
.highlighted-heading-grey-red span,
.highlighted-heading-grey-mustard span {
	display: inline-block;
	padding: 0.2em 0.4em;
	margin: 0.2em 0;
}

/* Teal block, white text, mustard offset shadow */
.highlighted-heading span {
	background-color: var(--global-palette1);
	color: var(--global-palette9);
	box-shadow: 10px 10px 0 0 var(--paap-mustard);
}

/* Red block, white text, teal offset shadow */
.highlighted-heading-red span {
	background-color: var(--paap-red);
	color: var(--global-palette9);
	box-shadow: 10px 10px 0 0 var(--global-palette1);
}

/* Mustard block, white text, red offset shadow */
.highlighted-heading-mustard span {
	background-color: var(--paap-mustard);
	color: var(--global-palette9);
	box-shadow: 10px 10px 0 0 var(--paap-red);
}

/* Light grey block with coloured text, no shadow */
.highlighted-heading-grey-green span {
	background-color: var(--global-palette7);
	color: var(--global-palette1);
}
.highlighted-heading-grey-red span {
	background-color: var(--global-palette7);
	color: var(--paap-red);
}
.highlighted-heading-grey-mustard span {
	background-color: var(--global-palette7);
	color: var(--paap-mustard);
}

/* ==============================================================
   3. Gravity Forms (Orbital theme)
   Replaces the Divi Plus Gravity Form Styler on /contact/.
   Gravity Forms prints per-form variables with an ID selector,
   so ":not(#paap)" lifts these rules to ID strength for every
   form without naming one.
   ============================================================== */
.gform_wrapper.gform-theme--orbital:not(#paap) {
	/* Fields */
	--gf-ctrl-color: var(--global-palette3);              /* #222222 */
	--gf-ctrl-color-focus: var(--global-palette2);        /* navy */
	--gf-ctrl-bg-color: var(--global-palette7);           /* #F6F6F6 */
	--gf-ctrl-bg-color-focus: var(--global-palette9);     /* white */

	/* Labels, required marker, descriptions */
	--gf-ctrl-label-color-primary: var(--global-palette3);
	--gf-ctrl-label-line-height-primary: 1.6;
	--gf-ctrl-label-color-req: var(--paap-red);
	--gf-ctrl-label-font-size-req: 12px;
	--gf-ctrl-desc-font-size: 14px;
	--gf-ctrl-desc-font-style: normal;     /* live shows it plain */
	--gf-ctrl-desc-color: var(--global-palette5);
	--gf-ctrl-desc-line-height: 1.4;

	/* Errors */
	--gf-color-danger: var(--paap-red);

	/* Submit button: mustard, white text, red offset shadow */
	--gf-ctrl-btn-bg-color-primary: var(--paap-mustard);
	--gf-ctrl-btn-bg-color-hover-primary: var(--paap-mustard);
	--gf-ctrl-btn-border-color-primary: var(--paap-mustard);
	--gf-ctrl-btn-border-width-primary: 2px;
	--gf-ctrl-btn-color-primary: var(--global-palette9);
	--gf-ctrl-btn-font-size: 18px;
	--gf-ctrl-btn-line-height: 1.6;
	--gf-ctrl-btn-padding-x: 1.5em;
	--gf-ctrl-btn-shadow: 10px 10px 0 0 var(--paap-red);
}

.gform_wrapper.gform-theme--orbital:not(#paap) .gform_footer {
	margin-top: 1em;
}
.gform_wrapper.gform-theme--orbital:not(#paap) .gform_footer .gform_button {
	padding-top: 0.75em;
	padding-bottom: 0.75em;
}
.gform_wrapper.gform-theme--orbital:not(#paap) .gfield-choice-input[type="checkbox"] {
	border-color: var(--global-palette4);   /* dark, as the Divi site actually shows */
}

/* Messages after submitting */
.gform_confirmation_wrapper .gform_confirmation_message {
	color: var(--global-palette3);
	font-size: 18px;
}
.gform_wrapper.gform-theme--orbital:not(#paap) .gform_validation_errors,
.gform_wrapper.gform-theme--orbital:not(#paap) .gform_validation_errors h2 {
	color: var(--paap-red);
	font-size: 18px;
}

/* ==============================================================
   4. Header MENU panel (Kadence Pro "Toggle Widget Area")
   Desktop: two halves like the Divi site — left translucent
   teal with logo, intro and icons; right solid teal with the
   menu in capitals. Mobile/tablet: one solid teal column.
   Fonts follow what visitors see on live: live asks for Oswald/Cabin
   but never loads them, so it shows Helvetica (Arial on Windows).
   ============================================================== */
#widget-drawer .paap-panel-about,
#widget-drawer .paap-panel-about p,
.paap-mobile-about .paap-panel-about,
.paap-mobile-about .paap-panel-about p {
	color: var(--global-palette9);
	font-family: var(--global-heading-font-family);
	font-size: 16px;
	line-height: 1.4;
	font-weight: 400;
}
/* Mobile menu: the last three links smaller, as on the Divi site.
   (The divider lines are switched off in the Customizer: Mobile Navigation → Divider.) */
/* Phone menu: big links 42px apart, as on live */
.mobile-navigation ul > li:nth-child(-n+4) > a {
	padding-top: 5px;
	padding-bottom: 5px;
}
.mobile-navigation ul > li:nth-child(5) {
	margin-top: 1em;   /* 66px in the phone/tablet panel, see section 4 */
}
.mobile-navigation ul > li:nth-child(n+5) > a {
	font-size: 16px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.82);
	padding-top: 0.35em;
	padding-bottom: 0.35em;
}
#widget-drawer .widget_nav_menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
#widget-drawer .widget_nav_menu a {
	display: block;
	padding: 0.2em 0;
	font-family: var(--global-body-font-family);
	font-size: 27px;
	font-weight: 500;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--global-palette9);
	text-decoration: none;
}
#widget-drawer .widget_nav_menu li:nth-child(5) {
	margin-top: 1.5em;
}
#widget-drawer .widget_nav_menu li:nth-child(n+5) a {
	font-size: 16px;
	line-height: 1;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.82);
}
#widget-drawer .widget_nav_menu a:hover,
#widget-drawer .widget_nav_menu a:focus {
	color: rgba(255, 255, 255, 0.5);
}

@media (min-width: 1025px) {
	/* As on live: the panel opens under the 75px header, the header stays
	   visible, and the page behind is not dimmed. Clicking anywhere outside
	   the panel (including the header) closes it. */
	#widget-drawer .drawer-overlay {
		background: transparent;
	}
	#widget-drawer .drawer-inner {
		top: 75px;
		height: calc(100% - 75px);
		background: var(--global-palette9);   /* white under the 80% teal half, as on live */
	}
	#widget-drawer .drawer-content {
		height: 100%;
		padding: 0;
	}
	#widget-drawer .header-widget2 {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		min-height: 100%;
	}
	#widget-drawer .header-widget2 > .widget {
		margin: 0;
	}
	/* Left half: logo, intro and icons, centred */
	#widget-drawer .header-widget2 > .widget:first-child {
		background: rgba(22, 155, 154, 0.8);   /* teal at 80%, as on the Divi site */
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 2rem;
	}
	#widget-drawer .paap-panel-about {
		width: 240px;
		display: flex;
		flex-direction: column;
		align-items: center;
	}
	#widget-drawer .paap-panel-about > * {
		margin: 0;
	}
	#widget-drawer .paap-panel-about .wp-block-image ~ .wp-block-kadence-advancedheading {
		margin-top: 30px;
	}
	#widget-drawer .paap-panel-about .wp-block-social-links {
		margin-top: 63px;
		gap: 5px;
		justify-content: center;
	}
	/* Social icons: 36px white outline circles */
	#widget-drawer .paap-panel-about .wp-social-link {
		width: 36px;
		height: 36px;
		border: 1px solid rgba(255, 255, 255, 0.9);
		border-radius: 50%;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	#widget-drawer .paap-panel-about .wp-social-link a {
		padding: 0;
	}
	#widget-drawer .paap-panel-about .wp-social-link svg {
		width: 18px;
		height: 18px;
	}
	/* Right half: menu starts 160px below the header */
	#widget-drawer .header-widget2 > .widget:last-child {
		background: var(--global-palette1);
		padding: 160px 2rem 2rem 70px;
	}
	#widget-drawer .widget_nav_menu li:nth-child(5) {
		margin-top: 71px;
	}
	#widget-drawer .widget_nav_menu li:nth-child(n+5) a {
		padding: 7.5px 0;
	}
	/* Close: as on live, the header's menu button turns into a teal X while
	   the panel is open (a click there lands on the transparent overlay and
	   closes the panel). The panel's own close button stays for keyboard
	   users but is visually hidden; Escape also closes the panel. */
	.showing-widget-drawer .widget-toggle-open .kadence-svg-iconset {
		visibility: hidden;
	}
	.showing-widget-drawer .widget-toggle-open .widget-toggle-icon {
		position: relative;
	}
	.showing-widget-drawer .widget-toggle-open .widget-toggle-icon::after {
		content: "";
		position: absolute;
		inset: 0;
		background-color: var(--global-palette1);
		-webkit-mask: var(--paap-x-svg) center / 80% no-repeat;
		mask: var(--paap-x-svg) center / 80% no-repeat;
	}
	#widget-drawer .drawer-header {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
	#widget-drawer .paap-panel-about .wp-block-image {
		width: fit-content;
		margin-left: auto;
		margin-right: auto;
	}
}

/* Phones and tablets (below 1025px, where Kadence uses its mobile header):
   the menu panel as on live. It opens under the 75px header, which stays
   visible with a teal X; a light teal block with the logo, intro and round
   icons (the same widget as the desktop panel, placed by functions.php)
   sits above the links on solid teal. */
@media (max-width: 1024px) {
	#mobile-drawer .drawer-overlay {
		background: transparent;
	}
	#mobile-drawer .drawer-inner {
		top: 75px;
		height: calc(100% - 75px);
		width: 100%;
		max-width: none;
		background: var(--global-palette1);
	}
	#mobile-drawer .drawer-content {
		padding: 0 0 60px;
	}
	#mobile-drawer .drawer-header {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
	.paap-mobile-about {
		background: linear-gradient(rgba(22, 155, 154, 0.8), rgba(22, 155, 154, 0.8)), #FFFFFF;
		padding: 110px 1.5rem 30px;
		display: flex;
		justify-content: center;
	}
	.paap-mobile-about .paap-panel-about {
		width: 240px;
		display: flex;
		flex-direction: column;
		align-items: center;
	}
	.paap-mobile-about .paap-panel-about > * {
		margin: 0;
	}
	.paap-mobile-about .paap-panel-about .wp-block-image {
		width: fit-content;
		margin-left: auto;
		margin-right: auto;
	}
	.paap-mobile-about .paap-panel-about .wp-block-image ~ .wp-block-kadence-advancedheading {
		margin-top: 30px;
	}
	.paap-mobile-about .wp-block-social-links {
		margin-top: 63px;
		gap: 5px;
		justify-content: center;
	}
	.paap-mobile-about .wp-social-link {
		width: 36px;
		height: 36px;
		border: 1px solid rgba(255, 255, 255, 0.9);
		border-radius: 50%;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	.paap-mobile-about .wp-social-link a {
		padding: 0;
		width: 100%;
		height: 100%;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	.paap-mobile-about .wp-social-link svg {
		width: 18px;
		height: 18px;
	}
	/* Links: 80px below the light block, 80px from the left on phones */
	#mobile-drawer .mobile-navigation {
		padding: 75px 1.5rem 0 66px;   /* + 13.5px link padding = text 80px from the edge */
	}
	.mobile-navigation ul > li:nth-child(5) {
		margin-top: 69px;
	}
	/* Header button turns into a teal X while the panel is open */
	[class*="showing-popup-drawer-from"] .menu-toggle-open .menu-toggle-icon .kadence-svg-iconset {
		visibility: hidden;
	}
	[class*="showing-popup-drawer-from"] .menu-toggle-open .menu-toggle-icon {
		position: relative;
	}
	[class*="showing-popup-drawer-from"] .menu-toggle-open .menu-toggle-icon::after {
		content: "";
		position: absolute;
		inset: 0;
		background-color: var(--global-palette1);
		-webkit-mask: var(--paap-x-svg) center / 80% no-repeat;
		mask: var(--paap-x-svg) center / 80% no-repeat;
	}
}
@media (min-width: 768px) and (max-width: 1024px) {
	#mobile-drawer .mobile-navigation {
		padding-left: 286px;   /* text at 300px, as on live */
	}
}


/* Menu panel block (desktop and phone): Kadence slips a <style> tag in
   after the logo, and the group has an inner wrapper, so spacing is set on
   the logo, text and icons directly. */
.paap-panel-about .wp-block-image,
.paap-panel-about .wp-block-kadence-advancedheading,
.paap-panel-about .wp-block-social-links {
	margin-bottom: 0;
}
.paap-panel-about .wp-block-image {
	margin-top: 0;
}

/* Phone and tablet header: side spacing as live's Divi rows
   (85% wide below 768px, 80% wide from 768px). */
@media (max-width: 767px) {
	#mobile-header .site-header-row-container-inner > .site-container {
		padding-left: 7.5%;
		padding-right: 7.5%;
	}
}
@media (min-width: 768px) and (max-width: 1024px) {
	#mobile-header .site-header-row-container-inner > .site-container {
		padding-left: 10%;
		padding-right: 10%;
	}
}

/* ==============================================================
   5. Footer (as on the Divi site)
   Navy row: logo | address + email with outline icons | empty |
   social buttons at the bottom. #222222 bar: copyright sentence
   with teal links (Customizer), More Time To logo underneath.
   Icons: Feather "map-pin" and "mail" (MIT licence), as masks.
   ============================================================== */
.site-middle-footer-wrap,
.site-middle-footer-wrap a,
.site-bottom-footer-wrap {
	color: var(--global-palette9);
	text-decoration: none;
}
.site-middle-footer-wrap a:hover {
	color: var(--global-palette1);
}
.site-middle-footer-wrap .footer-widget2 p {
	position: relative;
	margin: 0 0 29px;
	padding-left: 47px;
	font-size: 16px;
	line-height: 30.6px;
}
.site-middle-footer-wrap .footer-widget2 p:last-child {
	margin-bottom: 0;
}
.paap-icon-pin::before,
.paap-icon-mail::before {
	content: "";
	position: absolute;
	left: 0;
	top: 3px;
	width: 25px;
	height: 25px;
	background-color: currentColor;
	-webkit-mask: var(--paap-icon) center / contain no-repeat;
	mask: var(--paap-icon) center / contain no-repeat;
}
.paap-icon-pin {
	--paap-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}
.paap-icon-mail {
	--paap-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E");
}
.site-middle-footer-wrap .footer-widget2 {
	padding-top: 9px;    /* address starts 9px below the logo, as on the Divi site */
}
/* Social buttons: 32px teal squares, 8px apart (colours in the Customizer),
   sitting 8px above the bottom of the row */
.site-middle-footer-wrap .site-footer-middle-section-4 {
	align-self: flex-end;
	padding-bottom: 8px;
}
.site-footer .footer-social-wrap .footer-social-inner-wrap {
	gap: 8px;
}
.site-footer .footer-social-wrap .social-button {
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	justify-content: center;
	font-size: 18px;
}
/* Bottom bar: 27px above and below, items left-aligned and stacked */
.site-bottom-footer-wrap .site-bottom-footer-inner-wrap {
	padding-top: 27px;
	padding-bottom: 27px;
}
.site-bottom-footer-wrap .site-footer-bottom-section-1 {
	align-items: flex-start;
}
.site-bottom-footer-wrap .footer-html,
.site-bottom-footer-wrap .footer-html p {
	margin: 0;
	line-height: 30.6px;
}
.site-footer .footer-widget1 figure,
.site-footer .footer-widget1 .widget {
	margin: 0;
}
.site-bottom-footer-wrap .footer-widget3 {
	margin-top: 10px;
}
.site-bottom-footer-wrap .footer-widget3 figure {
	margin: 0;
}

/* ==============================================================
   6. Header bar colour by page (as on the Divi site)
   Grey (#F6F6F6, Customizer) everywhere, except white on
   Advocacy (26), Links & Doc (28), News & Events (30),
   Contact (32) and single posts.
   ============================================================== */
html body:is(.page-id-26, .page-id-28, .page-id-30, .page-id-32, .single-post) #masthead,
html body:is(.page-id-26, .page-id-28, .page-id-30, .page-id-32, .single-post) #masthead .site-header-row-container-inner:not(#paap) {
	background: var(--global-palette9);
}

/* ==============================================================
   7. MENU buttons: icon only on screen, label kept for
   screen readers ("Menu" is set in the Customizer).
   ============================================================== */
.widget-toggle-open .widget-toggle-label,
.menu-toggle-open .menu-toggle-label {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Mobile menu: same left padding for the small links as the big ones
   (Kadence pads in em, which shifted the 16px links by about 6px). */
.mobile-navigation ul > li:nth-child(n+5) > a {
	padding-left: 13.5px;
	padding-right: 13.5px;
}

/* ==============================================================
   8. Wave divider (the Divi "wave 2" shape, 50px tall)
   Add "paap-wave-top" to a full-width group to put the wave on
   its top edge, in the colour of the section above it:
   white by default, "paap-wave-grey" for #F6F6F6.
   The footer gets the same wave automatically.
   ============================================================== */
:root {
	--paap-x-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M4 4l16 16M20 4L4 20'/%3E%3C/svg%3E");
	--paap-wave-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1280 140' preserveAspectRatio='none'%3E%3Cg fill='%23000'%3E%3Cpath d='M0 51.76c36.21-2.25 77.57-3.58 126.42-3.58 320 0 320 57 640 57 271.15 0 312.58-40.91 513.58-53.4V0H0z' fill-opacity='.3'/%3E%3Cpath d='M0 24.31c43.46-5.69 94.56-9.25 158.42-9.25 320 0 320 89.24 640 89.24 256.13 0 307.28-57.16 481.58-80V0H0z' fill-opacity='.5'/%3E%3Cpath d='M0 0v3.4C28.2 1.6 59.4.59 94.42.59c320 0 320 84.3 640 84.3 285 0 316.17-66.85 545.58-81.49V0z'/%3E%3C/g%3E%3C/svg%3E");
}
.paap-wave-top,
.site-footer .site-middle-footer-wrap {
	position: relative;
	--paap-wave-color: var(--global-palette9);
}
.paap-wave-grey,
body:is(.page-id-26, .page-id-28, .page-id-30, .page-id-32, .single-post) .site-footer .site-middle-footer-wrap {
	--paap-wave-color: var(--global-palette7);
}
.paap-wave-top::before,
.site-footer .site-middle-footer-wrap::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 50px;
	background-color: var(--paap-wave-color);
	-webkit-mask: var(--paap-wave-svg) top left / 100% 50px no-repeat;
	mask: var(--paap-wave-svg) top left / 100% 50px no-repeat;
	pointer-events: none;
	z-index: 1;
}
.site-footer .site-middle-footer-wrap .site-middle-footer-inner-wrap {
	padding-top: 81px;   /* clears the wave; same spacing as the Divi footer */
	padding-bottom: 81px;
}

/* ==============================================================
   9. Page layout used by rebuilt pages
   Title band: grey, H1 centred. Content: #222222 text.
   ============================================================== */
.paap-title-band h1 {
	margin: 0;
}
.paap-content {
	color: var(--global-palette3);
}
.paap-content h2 {
	margin: 0 0 10px;
}
.paap-content p {
	margin: 0 0 18px;
}
/* Full-width page sections sit flush against each other (no gap above the wave). */
.entry-content > .paap-title-band,
.entry-content > .paap-title-band + .alignfull {
	margin-top: 0;
	margin-bottom: 0;
}
/* Title band text (e.g. "Last updated") is #222222, with the Divi spacing under the H1. */
.paap-title-band {
	color: var(--global-palette3);
}
.entry-content .paap-title-band h1 {
	margin-bottom: 45px;
}
/* Header and footer rows are a full 1080px wide inside their edge padding,
   as Divi's were (Kadence otherwise puts the padding inside the 1080px). */
#masthead .site-container,
.site-footer .site-container {
	max-width: calc(var(--global-content-width) + 2 * var(--global-content-edge-padding));
}

/* Footer logo: 225px on desktop, full column width on phones (as on the Divi site) */
.site-footer .paap-footer-logo img {
	width: 225px;
	max-width: 100%;
	height: auto;
}
@media (max-width: 767px) {
	.site-footer .paap-footer-logo img {
		width: 100%;
	}
	.site-footer .site-container {
		padding-left: 10%;
		padding-right: 10%;
	}
	.site-middle-footer-wrap .site-footer-middle-section-3 {
		display: none;   /* the empty column only adds a gap when stacked */
	}
	.site-middle-footer-wrap .site-footer-middle-section-4 {
		padding-bottom: 0;
	}
	.site-bottom-footer-wrap .footer-html,
	.site-bottom-footer-wrap .footer-html-inner {
		text-align: left;
	}
}

/* ==============================================================
   10. Named button styles (use these, never per-block colours)
   Core Button block: add the class in Advanced → Additional CSS
   class(es) on the Button: paap-btn-navy, paap-btn-red,
   paap-btn-mustard or paap-btn-teal. Rules are stacked on the
   block's base classes so they beat Kadence's global button
   colours without !important (kadence-learndash-build skill §9/§13).
   Shape matches the Divi buttons: Cabin 18px/500, 2px border, 3px radius.
   ============================================================== */
.wp-block-button[class*="paap-btn-"] > a.wp-block-button__link {
	display: inline-block;
	padding: 0.3em 1em;
	border: 2px solid var(--paap-btn-bg);
	border-radius: 3px;
	background-color: var(--paap-btn-bg);
	color: var(--paap-btn-text, #F6F6F6);
	font-family: var(--global-body-font-family);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.7;
	text-decoration: none;
	box-shadow: none;
	transition: background-color 0.3s, border-color 0.3s;
}
.wp-block-button[class*="paap-btn-"] > a.wp-block-button__link:hover,
.wp-block-button[class*="paap-btn-"] > a.wp-block-button__link:focus {
	background-color: var(--paap-btn-hover, var(--paap-btn-bg));
	border-color: var(--paap-btn-hover, var(--paap-btn-bg));
	color: var(--paap-btn-text, #F6F6F6);
}
.wp-block-button.paap-btn-navy    { --paap-btn-bg: var(--global-palette2); }
.wp-block-button.paap-btn-red     { --paap-btn-bg: var(--paap-red); }
.wp-block-button.paap-btn-mustard { --paap-btn-bg: var(--paap-mustard); --paap-btn-text: #FFFFFF; }
.wp-block-button.paap-btn-teal    { --paap-btn-bg: var(--global-palette1); --paap-btn-text: #FFFFFF; }

/* ==============================================================
   11. Two-colour heading (replaces Divi Plus "Double Color Heading")
   Heading block with class paap-two-tone; wrap the words in three
   spans: paap-tt-pre, paap-tt-main (mustard) and paap-tt-post.
   ============================================================== */
:is(.wp-block-heading, .wp-block-kadence-advancedheading).paap-two-tone {
	font-size: 28px;
	line-height: 1.5;
	margin: 0 0 30px;
}
.paap-two-tone .paap-tt-pre,
.paap-two-tone .paap-tt-post {
	font-weight: 400;   /* Divi asked for 300; PT Sans has no 300, so it rendered 400 */
}
.paap-two-tone .paap-tt-main {
	font-weight: 700;   /* Divi asked for 600; PT Sans renders 700 */
	color: var(--paap-mustard);
}

/* ==============================================================
   12. Cards (Links & Doc): white box, 18px padding, red offset
   shadow, button pinned to the bottom. Column block class: paap-card.
   ============================================================== */
.wp-block-column.paap-card {
	display: flex;
	flex-direction: column;
	padding: 18px;
	background: var(--global-palette9);
	box-shadow: 10px 10px 0 0 var(--paap-red);
}
.wp-block-column.paap-card > * {
	margin-top: 0;
	margin-bottom: 0;
}
.wp-block-column.paap-card > :is(h1, h2, h3, h4, h5, h6):is(.wp-block-heading, .wp-block-kadence-advancedheading) {
	font-size: 22px;
	line-height: 1.2;
	margin-bottom: 10px;
}
.wp-block-column.paap-card > p {
	line-height: 1.7;
	margin-bottom: 27px;
}
.wp-block-column.paap-card > .wp-block-buttons {
	margin-top: auto;
}

/* ==============================================================
   13. Content links and icon lines inside page content
   ============================================================== */
.paap-content a.paap-link-mustard,
.paap-content .paap-links-mustard a {
	color: var(--paap-mustard);
	text-decoration: underline;
}
.paap-content .paap-icon-pin,
.paap-content .paap-icon-mail {
	position: relative;
	padding-left: 47px;
	color: var(--global-palette3);
}
.paap-content .paap-icon-pin::before,
.paap-content .paap-icon-mail::before {
	background-color: var(--global-palette2);   /* navy icons, as on the Divi site */
}
.paap-content .paap-icon-mail a {
	color: var(--paap-mustard);
	text-decoration: underline;
}
.wp-block-columns.paap-card-row {
	margin-bottom: 0;
}
.wp-block-columns.paap-card-row + .wp-block-columns.paap-card-row {
	margin-top: 54px;   /* gap between rows of cards, as on the Divi site */
}

/* Columns in page content: 60px gutter, as Divi's rows had */
.paap-content .wp-block-columns {
	column-gap: 60px;
}

/* Gravity Forms: values the Orbital variables don't reach (measured on the Divi site) */
.gform_wrapper.gform-theme--orbital:not(#paap) .gfield_label,
.gform_wrapper.gform-theme--orbital:not(#paap) .gform-field-label {
	color: var(--global-palette3);
	font-size: 14px;
	font-weight: 500;
}
.gform_wrapper.gform-theme--orbital:not(#paap) input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.gform_wrapper.gform-theme--orbital:not(#paap) textarea {
	border: 1px solid var(--global-palette4);   /* #333333 */
}
.gform_wrapper.gform-theme--orbital:not(#paap) .gform_footer .gform_button {
	font-size: 18px;
	padding: 0.75em 1.5em;
	line-height: 1.6;
}
/* No gap under the H1 when it is the only thing in the title band */
.entry-content .paap-title-band h1:last-child {
	margin-bottom: 0;
}

/* ==============================================================
   14. Citizens' Rights Charter pages (chapter layout)
   ============================================================== */
/* Two-colour heading variant: middle part red, centred subtitle */
.paap-two-tone.paap-two-tone--red .paap-tt-main {
	color: var(--paap-red);
}
/* Highlighted H2s on the Charter pages are 30px / 1.4, as on the Divi site */
h2:is(.wp-block-heading, .wp-block-kadence-advancedheading)[class*="highlighted-heading"] {
	font-size: 30px;
	line-height: 1.4;	margin-bottom: 40px;   /* Divi: 10px heading padding + 30px module gap */
}
/* Lead paragraph: PT Sans 26px teal */
.paap-content p.paap-lead {
	font-family: var(--global-heading-font-family);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.6;
	color: var(--global-palette1);
	margin-bottom: 55px;   /* Divi left an empty paragraph here, which made this gap */
}
/* Guiding principles list: PT Sans 22px teal */
.paap-content .paap-principles {
	padding-left: 1em;
	font-family: var(--global-heading-font-family);
	font-size: 22px;
	line-height: 1.6;
	color: var(--global-palette1);
}
/* Table of Contents box: teal heading strip over a white, teal-bordered list */
.paap-toc .paap-toc-head {
	margin: 0;
	padding: 0.75em 0 0.75em 1em;
	background: var(--global-palette1);
	color: #F6F6F6;
	font-size: 20px;
	line-height: 1.6;
}
.paap-toc .paap-toc-list {
	margin: 0;
	padding: 1.5em 1em 2em 2em;   /* Divi: 1em module padding + 1em list padding at the bottom */
	background: var(--global-palette9);
	border: 1px solid var(--global-palette1);
	border-top: 0;
	color: var(--global-palette3);
	list-style-position: outside;
	line-height: 26px;
}
.paap-toc .paap-toc-list a {
	color: var(--global-palette1);
	text-decoration: none;
}
.paap-toc .paap-toc-list a:hover {
	color: var(--global-palette2);
}
.paap-toc > * + * {
	margin-top: 0;
}
/* Image offset shadows (Divi "preset 4"): white on grey sections, grey on white */
.wp-block-image.paap-shadow-white img {
	box-shadow: 10px 10px 0 0 var(--global-palette9);
}
.wp-block-image.paap-shadow-grey img {
	box-shadow: 10px 10px 0 0 var(--global-palette7);
}
/* Buttons side by side with Divi's spacing */
.paap-content .wp-block-buttons {
	gap: 18px;
}
/* Wave flipped left-to-right (Acknowledgements section) */
.paap-wave-flip::before {
	transform: scaleX(-1);
}
/* Logo rows: no extra gap under the images */
.paap-logo-row .wp-block-image {
	margin-bottom: 0;
}

/* Full-width page sections (including synced patterns) sit flush against each other */
.entry-content > .alignfull {
	margin-top: 0;
	margin-bottom: 0;
}
/* Partner logo rows: Divi's row padding around each row of logos */
.paap-content .wp-block-columns.paap-logo-row {
	margin-top: 80px;
	margin-bottom: 50px;
}
.paap-content .wp-block-columns.paap-logo-row:last-child {
	margin-bottom: 0;
}
/* Charter: Acknowledgements heading is 26px on live (Divi text module setting) */
.paap-content h3.paap-h3-26 {
	font-size: 26px;
	line-height: 1.6;
	padding-bottom: 10px;
	margin-bottom: 0;
}
/* Charter: live leaves about 52px between the principles list and the chapter buttons */
.paap-content .paap-principles { margin-bottom: 52px; }
/* Charter: live leaves 30px between the body text and the Endorse button */
.paap-content .wp-block-column > :is(p, .paap-box) + .wp-block-buttons { margin-top: 30px; }

/* ==============================================================
   15. Charter extras: principles paragraphs, numbered lists,
       mustard box, teal callout, patient quote
   ============================================================== */
/* Teal 22px paragraphs that sit with the principles list (Chapters 3, 5, 6) */
.paap-content p.paap-principles-text {
	font-family: var(--global-heading-font-family);
	font-size: 22px;
	line-height: 1.6;
	color: var(--global-palette1);
	margin-bottom: 22px;
}
/* Numbered principles are indented 2em on live, bullets 1em */
.paap-content ol.paap-principles { padding-left: 2em; }

/* Coloured boxes: PT Sans 22px white text */
.paap-content .paap-box {
	font-family: var(--global-heading-font-family);
	font-size: 22px;
	line-height: 1.6;
	color: #FFFFFF;
	margin: 0;
}
.paap-content .paap-box > * { margin: 0; }
.paap-content .paap-box p { color: inherit; font-size: inherit; line-height: inherit; }
/* Mustard box (Chapter 6) */
.paap-content .paap-box-mustard {
	background: var(--paap-mustard);
	padding: 33px 22px;
}
/* Teal callout with a white offset shadow (Chapter 2) */
.paap-content .paap-box-teal {
	background: var(--global-palette1);
	padding: 44px 44px 22px;
	box-shadow: 10px 10px 0 0 #FFFFFF;
}
.paap-content .paap-box ul,
.paap-content .paap-box ol {
	padding: 0 0 22px 1em;
}

/* Patient quote: white band with a mustard offset shadow (Chapters 5, 6) */
.paap-content .paap-quote {
	background: #FFFFFF;
	padding: 27px 0;
	margin-top: 27px;
	box-shadow: 10px 10px 0 0 var(--paap-mustard);
	text-align: center;
}
.paap-content .paap-quote p.paap-quote-text {
	font-family: var(--global-heading-font-family);
	font-size: 26px;
	line-height: 1.4;
	color: var(--paap-mustard);
	padding: 26px 52px 0;
	margin: 0 0 30px;
}
.paap-content .paap-quote p.paap-quote-by {
	font-size: 18px;
	line-height: 1.7;
	color: var(--global-palette3);
	padding-bottom: 18px;
	margin: 0;
}

/* ==============================================================
   16. Charter Introduction: Notes list, teal section, teal wave
   ============================================================== */
/* Notes: Divi's default numbered list, numbers inline, 2em indent */
.paap-content ol.paap-notes {
	list-style-position: inside;
	padding-left: 2em;
	margin: 0;
}
/* Teal band (About the Organisation): white text, 26px highlighted H3 */
.paap-content.paap-section-teal p { color: #FFFFFF; }
.paap-content.paap-section-teal h3 {
	font-size: 26px;
	line-height: 1.2;
	padding-bottom: 10px;
	margin-bottom: 18px;
}
/* A wave directly under a teal band is teal (the wave takes the colour of the section above) */
.paap-section-teal + .paap-wave-top { --paap-wave-color: var(--global-palette1); }

/* Divi gives the last paragraph in a text module no bottom spacing, so a paragraph
   directly followed by its list sits tight against it */
.paap-content p.paap-principles-text:has(+ ul, + ol) { margin-bottom: 0; }
/* Lists inside principles lists: 1em indent, 22px after (as Divi) */
.paap-content .paap-principles li > :is(ul, ol) {
	padding: 0 0 22px 1em;
	margin: 0;
}

/* Charter columns: no WordPress default 1.75em gap under the last row (Divi had none) */
.paap-content .wp-block-columns.paap-charter-cols { margin-bottom: 0; }
/* Phones: when a Charter text column stacks above its image, live leaves 60px between them */
.paap-content .wp-block-columns.paap-charter-cols:has(> .wp-block-column > .wp-block-image) { row-gap: 60px; }
/* Divi kept its 30px module gap under the last button in a column (side-by-side columns only;
   on phones the stacking gap does this job) */
@media (min-width: 782px) {
	.paap-content .paap-charter-cols > .wp-block-column > .wp-block-buttons:last-child { margin-bottom: 30px; }
}
/* ...except when a patient quote follows the columns: the quote's own 27px gap applies instead */
.paap-content .paap-charter-cols:has(+ .paap-quote) > .wp-block-column > .wp-block-buttons:last-child { margin-bottom: 0; }

/* ==============================================================
   17. Home, Partners and Charter landing (Stage 4 part 3)
   ============================================================== */
/* Small capitals label above a section heading ("PA-AP Priorities") */
.paap-content p.paap-eyebrow {
	font-family: var(--global-heading-font-family);
	font-size: 18px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--global-palette3);
	margin-bottom: 18px;
}

/* PA Priorities tabs (synced pattern): 200px white tab list on the left,
   the active tab and its panel in the tab's own colour. To add a fourth
   tab, add it in the Tabs block and give it a colour below (nth tab). */
.paap-priorities .paap-priorities-tabs {
	margin-top: 70px;
	--paap-tab-1: var(--global-palette1);
	--paap-tab-2: var(--paap-red);
	--paap-tab-3: var(--paap-mustard);
}
.wp-block-kadence-tabs.paap-priorities-tabs .kt-tabs-wrap > .kt-tabs-title-list {
	background: var(--global-palette9);
	margin: 0;
}
.wp-block-kadence-tabs.paap-priorities-tabs .kt-tabs-wrap > .kt-tabs-title-list li .kt-tab-title {
	padding: 10px;
	font-family: var(--global-body-font-family);
	font-size: 18px;
	line-height: 50.4px;
	justify-content: flex-end;
	text-align: right;
}
.wp-block-kadence-tabs.paap-priorities-tabs .kt-tabs-wrap > .kt-tabs-title-list li .kt-tab-title .kt-title-text { line-height: inherit; }
.wp-block-kadence-tabs.paap-priorities-tabs .kt-tabs-wrap > .kt-tabs-title-list li.kt-title-item-1.kt-tab-title-active .kt-tab-title { background: var(--paap-tab-1); }
.wp-block-kadence-tabs.paap-priorities-tabs .kt-tabs-wrap > .kt-tabs-title-list li.kt-title-item-2.kt-tab-title-active .kt-tab-title { background: var(--paap-tab-2); }
.wp-block-kadence-tabs.paap-priorities-tabs .kt-tabs-wrap > .kt-tabs-title-list li.kt-title-item-3.kt-tab-title-active .kt-tab-title { background: var(--paap-tab-3); }
.wp-block-kadence-tabs.paap-priorities-tabs .kt-tabs-wrap > .kt-tabs-content-wrap > .kt-tab-inner-content { border: 0; padding: 0; }
.paap-priorities-tabs .paap-tab-panel {
	padding: 67px 120px;
	color: var(--global-palette9);
	min-height: 100%;
}
.paap-priorities-tabs .paap-tab-categorisation { background: var(--paap-tab-1); }
.paap-priorities-tabs .paap-tab-transformation { background: var(--paap-tab-2); }
.paap-priorities-tabs .paap-tab-education { background: var(--paap-tab-3); }
.paap-priorities-tabs .paap-tab-panel p { color: var(--global-palette9); margin: 0; }
.paap-priorities-tabs .paap-tab-panel p.paap-tab-label {
	font-family: var(--global-heading-font-family);
	font-size: 16px;
	text-transform: uppercase;
	color: var(--global-palette7);
	margin-bottom: 16px;
}
.paap-priorities-tabs .paap-tab-panel h3 {
	font-size: 24px;
	line-height: 1.2;
	margin: 0 0 27px;
}
@media (max-width: 767px) {
	.paap-priorities-tabs .kt-tabs-wrap { flex-direction: column; }
	.paap-priorities-tabs .kt-tabs-wrap > .kt-tabs-title-list,
	.paap-priorities-tabs .kt-tabs-wrap > .kt-tabs-content-wrap { width: 100%; max-width: none; flex-basis: auto; }
	.paap-priorities-tabs .paap-tab-panel { padding: 70px 20%; }
}

/* Home: WHO quote box (grey with a teal offset shadow) */
.paap-content .paap-quote.paap-quote-teal {
	margin-top: 46px;
	background: var(--global-palette7);
	box-shadow: 10px 10px 0 0 var(--global-palette1);
}
.paap-content .paap-quote.paap-quote-teal p.paap-quote-text { color: var(--global-palette1); }

/* Home: Meet the Team */
.paap-shadow-mustard img { box-shadow: 10px 10px 0 0 var(--paap-mustard); }
.paap-content h3.paap-team-name {
	font-size: 28px;
	line-height: 1.2;
	margin: 52px 0 14px;
}
.paap-content p.paap-team-role a { color: var(--global-palette1); text-decoration: none; }
.paap-content .wp-block-social-links.paap-team-social {
	gap: 8px;
	margin-top: 30px;
}
.paap-content .paap-team-social .wp-social-link {
	border-radius: 3px;
	width: 32px;
	height: 32px;
	justify-content: center;
	font-size: 18px;
}
.paap-content .paap-team-social .wp-social-link a { padding: 7px; }

/* Charter landing: two-colour heading with the key words in teal */
.paap-two-tone-teal .paap-tt-main { color: var(--global-palette1); }
/* Partners: red underlined links */
.paap-content .paap-links-red a { color: var(--paap-red); text-decoration: underline; }

/* Charter landing timeline: one Kadence Row Layout per stage
   (spacer | icon | card). Odd stages show the card on the right, even
   stages on the left (CSS mirrors every second row). To add a stage,
   duplicate the last row and change its text and icon. Phones: icon on
   the left, card on the right, stages in order. */
.paap-timeline .paap-tl-stage + .paap-tl-stage { margin-top: 33px; }
.paap-timeline .paap-tl-stage > .kt-row-column-wrap {
	grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr);
	align-items: center;
}
.paap-timeline .paap-tl-stage:nth-child(even) > .kt-row-column-wrap { direction: rtl; }
.paap-timeline .paap-tl-stage:nth-child(even) > .kt-row-column-wrap > * { direction: ltr; }
.paap-timeline .paap-tl-marker .kt-inside-inner-col { align-items: center; overflow: visible; }
.paap-timeline .paap-tl-marker .kt-svg-icon-wrap {
	display: flex;
	width: 55px;
	height: 55px;
	margin: 0 -7.5px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--global-palette1);
	border: 3px solid var(--global-palette7);
	color: var(--global-palette7);
}
.paap-timeline .paap-tl-card .kt-inside-inner-col {
	position: relative;
	background: #F9F9F9;
	padding: 30px 40px;
}
.paap-timeline .paap-tl-stage:nth-child(odd) .paap-tl-card { margin-left: 20px; }
.paap-timeline .paap-tl-stage:nth-child(even) .paap-tl-card { margin-right: 20px; text-align: right; }
.paap-timeline .paap-tl-card .kt-inside-inner-col::before {
	content: "";
	position: absolute;
	top: 50%;
	width: 0;
	height: 0;
	border: 10px solid transparent;
	transform: translateY(-50%);
}
.paap-timeline .paap-tl-stage:nth-child(odd) .paap-tl-card .kt-inside-inner-col::before { right: 100%; border-right-color: #F9F9F9; }
.paap-timeline .paap-tl-stage:nth-child(even) .paap-tl-card .kt-inside-inner-col::before { left: 100%; border-left-color: #F9F9F9; }
.paap-timeline .paap-tl-card h3.paap-tl-title {
	font-size: 26px;
	line-height: 1.6;
	margin: 0 0 10px;
}
.paap-timeline .paap-tl-card p {
	color: #000000;
	margin: 0;
}
.paap-timeline .paap-tl-card a { color: var(--global-palette1); text-decoration: underline; }
@media (max-width: 767px) {
	.paap-timeline .paap-tl-stage > .kt-row-column-wrap,
	.paap-timeline .paap-tl-stage:nth-child(even) > .kt-row-column-wrap {
		grid-template-columns: 50px minmax(0, 1fr);
		direction: ltr;
	}
	.paap-timeline .paap-tl-spacer { display: none; }
	.paap-timeline .paap-tl-stage:nth-child(n) .paap-tl-card { margin: 0 0 0 15px; text-align: left; }
	.paap-timeline .paap-tl-stage:nth-child(n) .paap-tl-card .kt-inside-inner-col::before { left: auto; right: 100%; border-left-color: transparent; border-right-color: #F9F9F9; }
	.paap-timeline .paap-tl-marker .kt-svg-icon-wrap { width: 50px; height: 50px; margin: 0; }
}

/* A heading that ends a title band adds no space below it */
.paap-title-band h2.wp-block-kadence-advancedheading:last-child { margin-bottom: 0; }
/* Buttons that sat under a Divi text module ending in an empty paragraph keep that 48px gap */
.paap-content .wp-block-column > p + .wp-block-buttons.paap-gap-48 { margin-top: 48px; }

/* Timeline scroll effects (only when js/paap-timeline.js is running):
   a teal line grows down from the first icon, stages fade and grow in,
   icons become filled circles once the line reaches them. */
.paap-timeline.paap-tl-animated { position: relative; }
.paap-timeline.paap-tl-animated::before {
	content: "";
	position: absolute;
	left: calc(var(--paap-tl-x, 50%) - 1.5px);
	top: var(--paap-tl-top, 0);
	width: 3px;
	height: var(--paap-tl-fill, 0);
	background: var(--global-palette1);
	z-index: 0;
}
.paap-timeline.paap-tl-animated .paap-tl-stage {
	position: relative;
	z-index: 1;
	opacity: var(--paap-tl-p, 1);
	transform: scale(calc(0.85 + 0.15 * var(--paap-tl-p, 1)));
	transition: opacity 0.15s linear, transform 0.15s linear;
}
.paap-timeline.paap-tl-animated .paap-tl-marker .kt-svg-icon-wrap {
	transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.paap-timeline.paap-tl-animated .paap-tl-marker .kt-svg-icon-wrap:not(.is-reached) {
	background: transparent;
	border-color: transparent;
	color: var(--global-palette1);
}
@media (prefers-reduced-motion: reduce) {
	.paap-timeline.paap-tl-animated .paap-tl-stage { transition: none; }
}

/* ==============================================================
   18. News & Events: three Query Loop (Adv) blocks, one Query Card
   ("PA AP – News card": image, title, "by … | date | category", excerpt).
   Each area shows only the parts it needs. Card heights are equal
   because the grid stretches each card (skill §13), not a script.
   ============================================================== */
/* The title is a link: Kadence puts the class on the <a> around the heading */
a.paap-nc-title { display: block; text-decoration: none; color: var(--global-palette4); }
a.paap-nc-title > h3 { margin: 0; color: inherit; }
a.paap-nc-title:hover { color: var(--global-palette1); }
.paap-nc-meta > .kt-inside-inner-col {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0;
	text-transform: uppercase;
	color: var(--paap-red);
}
.paap-nc-meta span.wp-block-kadence-advancedheading { display: inline; color: inherit; font-size: inherit; line-height: inherit; }
.paap-nc-meta .paap-nc-date::before,
.paap-nc-meta .paap-nc-cats::before { content: "\00a0|\00a0"; }
.paap-nc-meta > .kt-inside-inner-col > ul.paap-nc-cats.kb-dynamic-list.kb-dynamic-list-layout-horizontal { display: inline-flex; gap: 0; margin: 0; padding: 0; list-style: none; }
.paap-nc-meta ul.paap-nc-cats.kb-dynamic-list li.kb-dynamic-list-item { margin: 0; padding: 0; }
.paap-nc-meta .paap-nc-cats a { color: inherit; text-decoration: none; }
.paap-nc-excerpt { color: var(--global-palette3); }
.paap-nc-image img { display: block; width: 100%; object-fit: cover; }
.paap-news-a .paap-nc-image, .paap-news-b .paap-nc-image, .paap-news-c .paap-nc-image { margin: 0; }

/* Area 1: newest post's image only */
.paap-news-a .wp-block-kadence-query-card.wp-block-kadence-query-card .kb-query-grid-wrap.kb-query-grid-wrap,
.paap-news-b .wp-block-kadence-query-card.wp-block-kadence-query-card .kb-query-grid-wrap.kb-query-grid-wrap { grid-template-columns: minmax(0, 1fr); }
.paap-news-a .paap-nc-body { display: none; }
.paap-news-a .paap-nc-image img { height: auto; aspect-ratio: 396 / 223; box-shadow: 10px 10px 0 0 #FFFFFF; }
/* Area 2: newest post's text only, centred against the image */
.paap-content .paap-news-latest { margin-top: 51px; }
.paap-content .paap-news-latest > .wp-block-column { align-self: center; }
.paap-news-b .paap-nc-image { display: none; }
.paap-news-b a.paap-nc-title > h3 { font-size: 26px; line-height: 1.4; }
.paap-news-b a.paap-nc-title { margin-bottom: 10px; }
.paap-news-b .paap-nc-meta { font-size: 14px; line-height: 1.6; margin: 0 0 6px; }
.paap-news-b .paap-nc-excerpt { font-size: 18px; line-height: 1.6; }
/* Area 3: the next three posts as white cards */
.paap-news-c .wp-block-kadence-query-card li.kb-query-item.kb-query-item {
	display: flex;
	flex-direction: column;
	background: #FFFFFF;
	border: 1px solid #D8D8D8;
	box-shadow: 10px 10px 0 0 var(--global-palette7);
}
.paap-news-c .paap-nc-image img { height: auto; aspect-ratio: 8 / 5; }   /* Divi's 400 × 250 grid image: 200px tall in a 320px card */
.paap-news-c li.kb-query-item > .paap-nc-body { flex: 1 1 auto; }
.paap-news-a .paap-nc-body > .kt-inside-inner-col,
.paap-news-b .paap-nc-body > .kt-inside-inner-col,
.paap-news-c .paap-nc-body > .kt-inside-inner-col { gap: 0; }
.paap-news-c .paap-nc-body > .kt-inside-inner-col { padding: 10px 19px 19px; }
.paap-news-c a.paap-nc-title { margin-bottom: 10px; }
.paap-news-c a.paap-nc-title > h3 { font-size: 20px; line-height: 1.2; }
.paap-news-c .paap-nc-meta { font-size: 12px; line-height: 18px; margin-bottom: 6px; }
.paap-news-c .paap-nc-excerpt { font-size: 16px; line-height: 24px; }

/* Acknowledgements on grey with no wave (News & Events) */
.paap-acks-plain > .paap-content,
.paap-acks-plain .paap-content.paap-wave-top { background-color: var(--global-palette7) !important; }
.paap-acks-plain .paap-wave-top::before { display: none; }

/* ==============================================================
   19. Single posts (as live's Divi Theme Builder layout)
   Kadence settings: title above the content with the featured image as
   its background (400px), title + "by … | date | category" only, no
   tags / navigation / related / comments. CSS adds the dark title box,
   the grey wave and the white content card with a mustard shadow.
   ============================================================== */
.single-post .entry-hero .entry-hero-container-inner {
	position: relative;
	background-size: cover;
	background-position: center;
	padding-bottom: 50px;
}
.single-post .entry-hero .hero-section-overlay { background: transparent; }
.single-post .entry-hero .hero-container { align-items: flex-start; padding-top: 81px; }
/* full 1080px width, as the header and footer */
.single-post .entry-hero .hero-container.site-container,
.single-post .content-area .content-container.site-container { max-width: calc(var(--global-content-width) + 2 * var(--global-content-edge-padding)); }
.single-post .entry-hero .entry-header.post-title {
	width: calc((100% - 60px) * 0.75 + 30px);   /* Divi 3/4 column: 795px at full width */
	min-height: 0;
	gap: 0;
	margin: 0;
	padding: 36px;
	background: rgba(34, 34, 34, 0.75);
	box-shadow: 10px 10px 0 0 rgba(255, 255, 255, 0.75);
	justify-content: flex-start;
}
.single-post .entry-hero h1.entry-title {
	color: #FFFFFF;
	font-size: 36px;
	line-height: 1.4;
	font-weight: 700;
	margin: 0 0 10px;
}
.single-post .entry-hero .entry-meta,
.single-post .entry-hero .entry-meta a {
	color: var(--paap-mustard);
	font-size: 14px;
	text-transform: uppercase;
	text-decoration: none;
}
/* grey wave rising over the bottom of the image */
.single-post .entry-hero .entry-hero-container-inner::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 50px;
	background-color: var(--global-palette7);
	-webkit-mask: var(--paap-wave-svg) top left / 100% 50px no-repeat;
	mask: var(--paap-wave-svg) top left / 100% 50px no-repeat;
	transform: scaleY(-1);
}
/* content: white card with a mustard offset shadow on grey */
.single-post .content-area { margin: 0; padding: 52px 0 72px; background: var(--global-palette7); }
.single-post article.entry.content-bg {
	border-radius: 0;
	box-shadow: 10px 10px 0 0 var(--paap-mustard);
}
.single-post article.entry.content-bg .entry-content-wrap { padding: 54px; }
.single-post .entry-content { color: var(--global-palette3); line-height: 1.6; }
.single-post .entry-content a { color: var(--paap-mustard); text-decoration: underline; }
.single-post .entry-content > p,
.single-post .entry-content > ul,
.single-post .entry-content > ol { margin: 0 0 18px; }
.single-post .entry-content hr.wp-block-separator { width: 100%; max-width: none; margin: 18px 0; border: 0; border-top: 2px solid var(--global-palette5); opacity: 1; }
@media (max-width: 767px) {
	.single-post .entry-hero .entry-header.post-title { width: 100%; padding: 28px; }
	.single-post article.entry.content-bg .entry-content-wrap { padding: 36px 24px; }
}

/* Search results: pages don't need "By … • date" */
.search .loop-entry.type-page .entry-meta { display: none; }

/* Keyboard users: the menu panels' own close button is hidden (the header X
   does the job for mouse users) but appears as a white X in the panel's
   top-right corner while it has keyboard focus. */
#widget-drawer .drawer-header:focus-within,
#mobile-drawer .drawer-header:focus-within {
	position: absolute;
	top: 12px;
	right: 12px;
	width: auto;
	height: auto;
	overflow: visible;
	clip: auto;
	z-index: 5;
}
#widget-drawer .drawer-header .drawer-toggle:focus-visible,
#mobile-drawer .drawer-header .drawer-toggle:focus-visible {
	color: #FFFFFF;
	outline: 2px solid #FFFFFF;
	outline-offset: 2px;
}
