/*
Theme Name: Devon Communities
Theme URI: https://www.devoncommunities.org.uk
Author: Priority Pixels
Author URI: https://prioritypixels.co.uk
Description: Custom theme for Devon Communities, built by Priority Pixels.
Version: 1.11.9
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: devon-communities
Template: framework
*/

/* =========================================================
   Design tokens
   ========================================================= */
:root {
	/* Font families */
	--font-family-base: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-family-h1: var(--font-family-base);
	--font-family-h2: var(--font-family-base);
	--font-family-h3: var(--font-family-base);
	--font-family-h4: var(--font-family-base);
	--font-family-body: var(--font-family-base);

	/* Font sizes */
	--font-size-h1: 54px;
	--font-size-h2: 34px;
	--font-size-h3: 26px;
	--font-size-h4: 20px;
	--font-size-body: 18px;

	/* Font weights */
	--font-weight-h1: 900;
	--font-weight-h2: 900;
	--font-weight-h3: 900;
	--font-weight-h4: 900;
	--font-weight-body: 400;

	/* Brand colours */
	--color-green: #709C35;
	--color-green-accessible: #547E1D;
	--color-pink: #E60E74;
	--color-text-black: #282828;
	--color-purple: #634595;
	--color-blue: #3F5AA6;
	--color-yellow: #F8AA00;
	--color-teal: #079E7F;
	--color-yellow-accessible: #9A6300;
	--color-pink-accessible: #CC0A64;

	/* Effects */
	--effect-shadow: 1px 4px 20px 0px rgba(0, 0, 0, 0.2);

	/* Layout / 12-col grid */
	--page-width: 1440px;      /* full page incl. 20px each side */
	--content-width: 1400px;   /* grid content width */
	--page-margin: 20px;       /* space either side */
	--grid-columns: 12;
	--grid-column-width: 80px; /* 12 x 80 + 11 x 40 gutter = 1400 */
	--grid-gutter: 40px;
}

/* =========================================================
   Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--font-family-body);
	font-size: var(--font-size-body);
	font-weight: var(--font-weight-body);
	line-height: 1.6;
	color: var(--color-text-black);
}

h1, h2, h3, h4 {
	font-family: var(--font-family-base);
	color: var(--color-text-black);
	line-height: 1.15;
	margin: 0 0 0.5em;
}
h1 { font-size: var(--font-size-h1); font-weight: var(--font-weight-h1); }
h2 { font-size: var(--font-size-h2); font-weight: var(--font-weight-h2); }
h3 { font-size: var(--font-size-h3); font-weight: var(--font-weight-h3); }
h4 { font-size: var(--font-size-h4); font-weight: var(--font-weight-h4); }

p { margin: 0 0 1em; }

a { color: var(--color-green-accessible); text-decoration: underline; }
a:hover, a:focus { text-decoration: none; }

img, svg { max-width: 100%; height: auto; }

/* =========================================================
   Layout container + 12-col grid
   ========================================================= */
.container {
	width: 100%;
	max-width: var(--page-width);
	margin-inline: auto;
	padding-inline: var(--page-margin);
}

.grid {
	display: grid;
	grid-template-columns: repeat(var(--grid-columns), 1fr);
	gap: var(--grid-gutter);
}

.col-1  { grid-column: span 1; }
.col-2  { grid-column: span 2; }
.col-3  { grid-column: span 3; }
.col-4  { grid-column: span 4; }
.col-5  { grid-column: span 5; }
.col-6  { grid-column: span 6; }
.col-7  { grid-column: span 7; }
.col-8  { grid-column: span 8; }
.col-9  { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-11 { grid-column: span 11; }
.col-12 { grid-column: span 12; }

.has-shadow { box-shadow: var(--effect-shadow); }
a.card { text-decoration: none; color: var(--color-text-black); transition: transform .15s ease; }
a.card:hover, a.card:focus { text-decoration: none; transform: translateY(-3px); }

/* =========================================================
   Header / footer (starter)
   ========================================================= */
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--grid-gutter);
	padding-block: 20px;
}
.site-branding .custom-logo,
.site-branding img { display: block; max-height: 64px; width: auto; }
.site-logo { font-weight: 900; font-size: var(--font-size-h4); text-decoration: none; color: var(--color-text-black); }

.main-navigation ul { list-style: none; display: flex; gap: var(--grid-gutter); margin: 0; padding: 0; }
.main-navigation a { text-decoration: none; font-weight: 700; color: var(--color-text-black); }
.main-navigation a:hover { color: var(--color-green-accessible); }

.site-main { padding-block: 40px; }
.site-footer { margin-top: 60px; padding-block: 30px; }

/* =========================================================
   Responsive (starter — refine to final designs)
   ========================================================= */
@media (max-width: 782px) {
	:root {
		--font-size-h1: 36px;
		--font-size-h2: 28px;
		--font-size-h3: 22px;
		--font-size-h4: 18px;
		--grid-gutter: 24px;
	}
	.grid { grid-template-columns: 1fr; }
	[class^="col-"], [class*=" col-"] { grid-column: 1 / -1; }
	.site-header__inner { flex-wrap: wrap; }
	.main-navigation ul { gap: 20px; }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 22px;
	border-radius: 10px 10px 0 10px;
	font-weight: 700;
	font-size: 18px;
	font-family: inherit;
	line-height: 1.1;
	text-decoration: none;
	background: var(--btn-c, transparent);
	border: 2px solid var(--btn-c, transparent);
	color: #fff;
	cursor: pointer;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover, .btn:focus-visible { background: #fff; color: var(--color-text-black); text-decoration: none; }
.btn__arrow { width: 20px; height: 20px; flex: none; }
.btn--purple { --btn-c: var(--color-purple); }
.btn--blue   { --btn-c: var(--color-blue); }
.btn--green  { --btn-c: var(--color-green-accessible); }

/* =========================================================
   Top brand stripe
   ========================================================= */
.top-stripe { display: flex; height: 6px; }
.top-stripe span { flex: 1 1 0; }
.top-stripe span:nth-child(1) { background: var(--color-green); }
.top-stripe span:nth-child(2) { background: var(--color-purple); }
.top-stripe span:nth-child(3) { background: var(--color-yellow); }
.top-stripe span:nth-child(4) { background: var(--color-blue); }
.top-stripe span:nth-child(5) { background: var(--color-pink); }
.top-stripe span:nth-child(6) { background: var(--color-teal); }

/* =========================================================
   Site header (overrides base)
   ========================================================= */
.site-header { background: #fff; position: sticky; top: 0; z-index: 500; }
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--grid-gutter);
	padding-block: 10px;
}
.site-branding .custom-logo,
.site-branding img { display: block; max-height: 92px; width: auto; }

.site-header__right { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.header-cta { display: flex; gap: 12px; }
.header-cta .btn { padding-block: 4px; }
.header-nav { display: flex; align-items: center; gap: 28px; }
.main-navigation ul { list-style: none; display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; }
.main-navigation a { text-decoration: none; font-weight: 700; color: var(--color-text-black); font-size: 17px; }
.main-navigation a:hover { color: var(--color-green-accessible); }
.main-navigation .menu-item-has-children > a::after { content: " \25BE"; }

.header-search summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--color-text-black); }
.header-search summary::-webkit-details-marker { display: none; }
.header-search { position: relative; }

/* =========================================================
   Hero
   ========================================================= */
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; overflow: hidden; }
.hero--block { display: block; position: relative; overflow: hidden; }
.hero--block .hero__slide { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.hero--block .hero__slide:not(.is-active) { display: none; }
.hero__panel {
	background: var(--color-green);
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 60px 0;
}
.hero__media { background-size: cover; background-position: center; min-height: 560px; }
.hero__card {
	background: #fff;
	border-radius: 28px 28px 0 28px;
	box-shadow: var(--effect-shadow);
	padding: 48px;
	max-width: 850px;
	margin: 0 -90px 0 40px;
	position: relative;
	z-index: 2;
}
.hero__card h1 { margin-top: 0; }
.hero__card p { margin-bottom: 8px; }
.hero__card .btn { margin-top: 20px; }
.hero__dots { display: flex; gap: 10px; margin-top: 28px; }
.hero__dots span { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.hero__dots span:nth-child(1) { background: #fff; border: 2px solid var(--color-green); }
.hero__dots span:nth-child(2) { background: var(--color-purple); }
.hero__dots span:nth-child(3) { background: var(--color-yellow); }
.hero__dots span:nth-child(4) { background: var(--color-blue); }

@media (max-width: 1100px) {
	.site-header__inner { flex-wrap: wrap; justify-content: center; }
	.site-header__right { align-items: center; }
}
@media (max-width: 900px) {
	.hero { grid-template-columns: 1fr; }
	.hero__media { min-height: 300px; order: -1; }
	.hero__panel { justify-content: center; padding: 32px 20px; }
	.hero__card { margin: -60px 0 0; max-width: 100%; }
}

/* =========================================================
   Section: How Can We Help (service cards)
   ========================================================= */
.help { padding-block: 60px; }
.help__intro { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; margin-bottom: 40px; }
.help__intro h2 { margin-top: 0; }
.help__intro > div { max-width: 820px; }
.help__search { display: flex; align-items: stretch; margin-top: 56px; }
.help__search input { border: 2px solid var(--color-green-accessible); border-right: 0; border-radius: 0; padding: 6px 16px; min-width: 280px; font: inherit; }
.help__search .btn { border-radius: 0; }

.help__cards { row-gap: 40px; }
.card { background: #fff; border-radius: 16px 16px 0 16px; box-shadow: var(--effect-shadow); overflow: hidden; display: flex; flex-direction: column; }
.card__media { aspect-ratio: 5 / 2; background-size: cover; background-position: center; background-color: #e9e9e9; }
.card__bar { height: 20px; background: var(--card-accent, var(--color-green)); }
.card__body { padding: 16px 24px 32px; position: relative; flex: 1; }
.card__body h3 { margin: 0 0 10px; font-size: 20px; }
.card__body p { margin: 0; }
.card__arrow { position: absolute; right: 2px; bottom: -6px; color: var(--card-accent, var(--color-green)); }
.card__arrow .btn__arrow { width: 36px; height: 36px; }
.card--blue   { --card-accent: var(--color-blue); }
.card--teal   { --card-accent: var(--color-teal); }
.card--green  { --card-accent: var(--color-green); }
.card--pink   { --card-accent: var(--color-pink); }
.card--purple { --card-accent: var(--color-purple); }
.card--yellow { --card-accent: var(--color-yellow); }
.card--green .card__arrow { color: var(--color-green-accessible); }
.card--yellow .card__arrow { color: var(--color-yellow-accessible); }

@media (max-width: 900px) {
	.help__intro { flex-direction: column; }
	.help__search { margin-top: 0; }
	.help__search input { min-width: 0; flex: 1; }
}

/* =========================================================
   Section: Vision & Impact (purple panel)
   ========================================================= */
.vi { padding-block: 60px; }
.vi__panel { background: var(--color-purple); color: #fff; border-radius: 28px 28px 0 28px; padding: 48px; overflow: hidden; position: relative; }
.vi__top { display: block; position: relative; z-index: 2; }
.vi__vision { max-width: 66%; }
.vi__vision h2 { color: #fff; margin-top: 0; }
.vi__vision > p { max-width: 46ch; }
.vi__media { position: absolute; top: -48px; left: 56%; right: -48px; bottom: -48px; background-size: cover; background-position: center; border-radius: 20px 0 0 20px; z-index: 0; }
.aims { background: #fff; color: var(--color-text-black); border-radius: 20px 20px 0 20px; box-shadow: var(--effect-shadow); padding: 12px 28px; margin-top: 8px; }
.aim { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; padding: 20px 0; }
.aim + .aim { border-top: 0; }
.aim__head { display: flex; align-items: center; gap: 16px; }
.aim__head h3 { margin: 0; }
.aim__icon { width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.aim__icon svg { width: 28px; height: 28px; }
.aim__icon-img { width: 28px; height: 28px; display: block; }
.aim__icon--pink { background: var(--color-pink); }
.aim__icon--teal { background: var(--color-teal); }
.aim__icon--yellow { background: var(--color-yellow); }
.aim__icon--green { background: var(--color-green); }
.aim__icon--purple { background: var(--color-purple); }
.aim__icon--blue { background: var(--color-blue); }
.stat--yellow .stat__num { color: var(--color-yellow-accessible); }
.aim p { margin: 0; }

.vi__impact { margin-top: 44px; position: relative; z-index: 2; }
.vi__impact h2 { color: #fff; }
.vi__stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.vi--editor .vi__stats { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.stat { background: #fff; border-radius: 10px 10px 0 10px; box-shadow: var(--effect-shadow); padding: 22px; text-align: center; }
.stat__num { font-size: 40px; font-weight: 900; line-height: 1; text-align: center; }
.stat__label { color: var(--color-text-black); font-size: var(--font-size-body); margin-top: 10px; }
.stat--teal .stat__num { color: var(--color-teal); }
.stat--green .stat__num { color: var(--color-green-accessible); }
.stat--purple .stat__num { color: var(--color-purple); }
.stat--pink .stat__num { color: var(--color-pink); }
.stat--blue .stat__num { color: var(--color-blue); }

/* =========================================================
   Split sections (text + media)
   ========================================================= */
.split__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding-block: 70px; }
.split__text h2 { margin-top: 0; }
.split__media { position: relative; border-radius: 16px 16px 0 16px; overflow: hidden; background-size: cover; background-position: center; min-height: 360px; background-color: #e9e9e9; }
.play { position: absolute; inset: 0; margin: auto; width: 92px; height: 92px; border-radius: 50%; background: rgba(255,255,255,.60); border: 0; display: grid; place-items: center; cursor: pointer; color: var(--color-green-accessible); box-shadow: 0 2px 12px rgba(0,0,0,.15); }
.play svg { width: 60px; height: 60px; margin-left: 8px; }
.split__video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: inherit; }

/* =========================================================
   Feedback / testimonials (green band)
   ========================================================= */
.feedback { background: var(--color-green); padding-block: 60px 80px; }
.feedback h2 { color: #fff; text-align: center; margin-bottom: 44px; }
.testimonial { background: #fff; border-radius: 16px 16px 0 16px; box-shadow: var(--effect-shadow); padding: 32px; position: relative; display: flex; flex-direction: column; }
.testimonial__badge { position: absolute; top: -18px; right: 26px; width: 46px; height: 46px; border-radius: 10px 10px 0 10px; display: grid; place-items: center; color: #fff; }
.testimonial__badge svg { width: 24px; height: 24px; }
.testimonial__badge-icon { width: 24px; height: 24px; display: block; }
.testimonial p { margin: 0 0 20px; }
.testimonial p.testimonial__name { font-weight: 900; margin: auto 0 2px; }
.testimonial p.testimonial__role { margin: 0; color: #555; font-size: 15px; }
.testimonial--pink   .testimonial__badge { background: var(--color-pink); }
.testimonial--pink   .testimonial__name { color: var(--color-pink-accessible); }
.testimonial--blue   .testimonial__badge { background: var(--color-blue); }
.testimonial--blue   .testimonial__name { color: var(--color-blue); }
.testimonial--purple .testimonial__badge { background: var(--color-purple); }
.testimonial--purple .testimonial__name { color: var(--color-purple); }
.testimonial--teal   .testimonial__badge { background: var(--color-teal); }
.testimonial--teal   .testimonial__name { color: var(--color-teal); }
.testimonial--green  .testimonial__badge { background: var(--color-green); }
.testimonial--green  .testimonial__name { color: var(--color-green-accessible); }
.testimonial--yellow .testimonial__badge { background: var(--color-yellow); }
.testimonial--yellow .testimonial__name { color: #9E6C00; }

/* =========================================================
   Current Projects
   ========================================================= */
.projects { padding-block: 60px; }
.projects__head { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.projects__head h2 { margin: 0; }
.projects > .container > p { max-width: 900px; margin-bottom: 36px; }
.projects__cards { row-gap: 40px; }
.project { background: #fff; border-radius: 16px 16px 0 16px; box-shadow: var(--effect-shadow); overflow: hidden; display: flex; flex-direction: column; }
.project__media { aspect-ratio: 5 / 2; background-size: cover; background-position: center; background-color: #e9e9e9; }
.project__body { padding: 18px 14px 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.project__body h3 { margin: 0; font-size: 22px; min-height: 2lh; }
.project__date { color: var(--color-text-black); font-size: var(--font-size-body); }
.project__body hr { border: 0; border-top: 2px solid #eee; margin: 4px 0; width: 100%; }
.project--green .project__body hr { border-top-color: var(--color-green-accessible); }
.project--blue .project__body hr { border-top-color: var(--color-blue); }
.project--yellow .project__body hr { border-top-color: var(--color-yellow); }
.project--purple .project__body hr { border-top-color: var(--color-purple); }
.project__link { margin-top: auto; align-self: flex-end; margin-right: -2px; display: inline-flex; align-items: center; gap: 8px; font-weight: 900; color: var(--color-text-black); text-decoration: none; }
.project--green .project__link .btn__arrow { color: var(--color-green-accessible); }
.project--blue .project__link .btn__arrow { color: var(--color-blue); }
.project--yellow .project__link .btn__arrow { color: var(--color-yellow); }
.project--purple .project__link .btn__arrow { color: var(--color-purple); }
.project--teal .project__link .btn__arrow { color: var(--color-teal); }
.project--teal .project__body hr { border-top-color: var(--color-teal); }
.project--pink .project__link .btn__arrow { color: var(--color-pink); }
.project--pink .project__body hr { border-top-color: var(--color-pink); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { margin-top: 0; padding-block: 0; background: #fff; }
.footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding-block: 50px; border-top: 1px solid #e5e5e5; font-size: 14px; }
.footer__col h3 { margin: 0 0 16px; font-size: 17px; }
.footer__contact, .footer__links { list-style: none; margin: 0; padding: 0; }
.footer__contact li { display: flex; gap: 10px; margin-bottom: 12px; align-items: flex-start; }
.footer__contact svg { width: 18px; height: 18px; color: var(--color-green); flex: none; margin-top: 3px; }
.footer__contact .footer__ico { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.footer__links li { margin-bottom: 10px; }
.footer__links a, .footer__contact a { color: var(--color-text-black); text-decoration: none; }
.footer__contact a[href^="mailto:"] { text-decoration: underline; }
.footer__links a:hover { color: var(--color-green-accessible); }
.footer__social { display: flex; gap: 12px; margin-bottom: 22px; }
.soc { display: grid; place-items: center; }
.soc svg { width: 26px; height: 26px; }
.soc--fb { color: #1877F2; } .soc--li { color: #0A66C2; } .soc--x { color: #000; } .soc--ig { color: var(--color-pink); } .soc--yt { color: #FF0000; }
.footer__accred { display: flex; gap: 10px; align-items: center; flex-wrap: nowrap; min-width: 0; }
.footer__accred img.accred-logo { max-height: 64px; width: auto; max-width: 100%; object-fit: contain; }
.accred-ph { font-size: 10px; color: #999; border: 1px dashed #c9c9c9; padding: 10px 8px; border-radius: 6px; max-width: 96px; text-align: center; line-height: 1.2; }
.btn .footer-ico, .btn svg:not(.btn__arrow) { width: 18px; height: 18px; color: currentColor; }
.footer__copy { padding-block: 16px; }
.footer__copy p { margin: 0; font-size: 13px; color: #555; }
.site-footer .top-stripe { margin-top: 8px; }

@media (max-width: 1000px) {
	.vi__top { display: block; }
	.vi__media { position: static; width: auto; min-height: 300px; margin-top: 24px; }
	.vi__vision { max-width: 100%; }
	.vi__stats { grid-template-columns: repeat(2, 1fr); }
	.split__inner { grid-template-columns: 1fr; }
	.footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.aim { grid-template-columns: 1fr; gap: 8px; }
	.vi__stats { grid-template-columns: 1fr; }
	.footer__grid { grid-template-columns: 1fr; }
	.projects__head { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   Hero slider
   ========================================================= */
.hero__title, .hero__text { transition: opacity .25s ease; }
.hero__media { transition: opacity .35s ease; }
.hero__dots { display: flex; gap: 10px; margin-top: 28px; }
.hero__dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid transparent; padding: 0; cursor: pointer; background: #ccc; transition: transform .15s ease; }
.hero__dot:hover { transform: scale(1.15); }
.hero__dot:nth-child(1) { background: var(--color-green); }
.hero__dot:nth-child(2) { background: var(--color-purple); }
.hero__dot:nth-child(3) { background: var(--color-yellow); }
.hero__dot:nth-child(4) { background: var(--color-blue); }
.hero__dot.is-active { background: #fff; }
.hero__dot:nth-child(1).is-active { border-color: var(--color-green); }
.hero__dot:nth-child(2).is-active { border-color: var(--color-purple); }
.hero__dot:nth-child(3).is-active { border-color: var(--color-yellow); }
.hero__dot:nth-child(4).is-active { border-color: var(--color-blue); }

/* Nav dropdown caret */
.main-navigation .has-dropdown > a::after { content: ""; display: inline-block; vertical-align: middle; margin-left: 9px; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid var(--color-green-accessible); }


/* =========================================================
   Mega menu (What We Do)
   ========================================================= */
.site-header__inner { position: relative; }
.main-navigation .sub-menu { list-style: none; margin: 0; padding: 0; display: none; }
.main-navigation .has-mega-menu { position: static; }
.main-navigation .has-mega-menu.is-open > .sub-menu {
	display: grid;
	align-items: start;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px 48px;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	box-shadow: 0 16px 22px -8px rgba(0, 0, 0, 0.22);
	border-radius: 0 0 20px 20px;
	padding: 40px 48px;
	z-index: 200;
}
.main-navigation .has-mega-menu > .sub-menu::before {
	content: "";
	position: absolute;
	top: -24px;
	left: 0;
	right: 0;
	height: 24px;
}
.main-navigation .has-mega-menu > .sub-menu > li > a {
	display: inline-block;
	font-weight: 900;
	font-size: 19px;
	color: var(--color-text-black);
	text-decoration: none;
	margin-bottom: 4px;
}
.main-navigation .has-mega-menu > .sub-menu > li > a::after { content: none; }
.main-navigation .has-mega-menu > .sub-menu > li > .sub-menu {
	display: block;
	margin-top: 6px;
}
.main-navigation .has-mega-menu > .sub-menu > li > .sub-menu > li > a {
	display: block;
	font-weight: 400;
	font-size: 16px;
	color: var(--color-text-black);
	text-decoration: none;
	padding: 5px 0;
}
.main-navigation .has-mega-menu > .sub-menu > li > .sub-menu > li > a:hover {
	color: var(--color-green-accessible);
	text-decoration: underline;
}
@media (max-width: 1100px) {
	.main-navigation .has-mega-menu.is-open > .sub-menu {
		position: static;
		grid-template-columns: 1fr 1fr;
		padding: 20px;
		box-shadow: none;
	}
}


/* Dropdown caret flips up when the menu is open */
.main-navigation .has-dropdown > a::after { transition: transform .2s ease; }
.main-navigation .has-mega-menu.is-open > a::after { transform: rotate(180deg); }


/* About mega menu: 4 columns */
.main-navigation .mega--4col.is-open > .sub-menu { grid-template-columns: repeat(4, 1fr); }

/* Full-width search bar */
.header-search { position: static; }
.header-search summary:hover { color: var(--color-green-accessible); }
.header-search__bar {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	display: flex;
	gap: 0;
	background: #eef4e3;
	padding: 18px 48px;
	box-shadow: var(--effect-shadow);
	border-radius: 0;
	z-index: 190;
	white-space: normal;
}
.header-search__bar input[type="search"] {
	flex: 1;
	border: 1px solid #767676;
	border-right: 0;
	padding: 12px 16px;
	font: inherit;
	border-radius: 0;
}
.header-search__bar .btn { border-radius: 0; }


/* =========================================================
   Header block (interior page banner)
   ========================================================= */
.page-header { display: grid; grid-template-columns: 43% 57%; align-items: stretch; overflow: hidden; }
.page-header__panel { background: var(--color-green); display: flex; align-items: center; padding: 30px 0; min-height: 340px; }
.page-header__card {
	background: #fff;
	border-radius: 28px 28px 0 28px;
	box-shadow: var(--effect-shadow);
	padding: 32px 40px;
	flex: 0 0 auto;
	width: min(800px, 55vw);
	margin: 0 0 0 40px;
	position: relative;
	z-index: 2;
}
.page-header__card h1 { margin-top: 0; }
.page-header__card p { margin-bottom: 0; }
.page-header__card > :last-child { margin-bottom: 0; }
.page-header__media { background-size: cover; background-position: center 78%; background-color: #e9e9e9; }
@media (max-width: 900px) {
	.page-header { grid-template-columns: 1fr; }
	.page-header__media { min-height: 220px; order: -1; }
	.page-header__card { width: auto; margin: -60px 20px 0; max-width: calc(100% - 40px); }
}


/* =========================================================
   Interior page content — follows the 1400px content grid
   (full-width blocks e.g. the Header break out edge-to-edge)
   ========================================================= */
.page-content { max-width: var(--page-width); margin-inline: auto; padding-inline: var(--page-margin); }
.page-content > * { margin-block: 28px; }
.page-content > .alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding-inline: 0;
}
.page-content > .alignwide { max-width: var(--content-width); }


/* =========================================================
   Header & Statistics block
   ========================================================= */
.header-stats { position: relative; background: var(--color-green); overflow: hidden; }
.header-stats__media { position: absolute; top: 0; right: 0; bottom: 0; width: 58%; background-size: cover; background-position: center; z-index: 0; }
.header-stats__inner { position: relative; z-index: 1; max-width: var(--page-width); margin-inline: auto; padding: 40px var(--page-margin) 44px; }
.header-stats__card {
	background: #fff;
	border-radius: 28px 28px 0 28px;
	box-shadow: var(--effect-shadow);
	padding: 40px 44px;
	max-width: 820px;
	position: relative;
	z-index: 2;
}
.header-stats__card h1 { margin-top: 0; }
.header-stats__card p { margin-bottom: 0; }
.header-stats__lower { margin: 36px 0 18px; }
.header-stats__stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
@media (max-width: 1000px) {
	.header-stats__media { width: 100%; opacity: .55; }
	.header-stats__card { max-width: 100%; }
	.header-stats__stats { grid-template-columns: repeat(2, 1fr); }
}

/* 50/50 content â€” image slider (dc/text-media) */
.split__slider { position: relative; }
.split__slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .5s ease; border-radius: inherit; }
.split__slide.is-active { opacity: 1; }
.split__slider-nav { position: absolute; right: 0; bottom: 0; z-index: 3; display: flex; border-top-left-radius: 14px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.split__arrow { width: 56px; height: 50px; border: 0; padding: 0; background: var(--color-green); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .15s ease; }
.split__arrow:hover, .split__arrow:focus-visible { background: var(--color-green-accessible); }
.split__arrow + .split__arrow { border-left: 1px solid rgba(255,255,255,.3); }
.split__arrow svg { width: 22px; height: 22px; }

/* Cards block (dc/cards) */
.cards { padding-block: 60px; }
.cards__head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.cards__head h2 { margin: 0 0 10px; }
.cards__intro { margin: 0; color: #5b5b5b; }
.cards__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; align-items: stretch; }
.cards__item { background: #fff; border-radius: 16px 16px 0 16px; box-shadow: var(--effect-shadow); overflow: hidden; display: flex; flex-direction: column; }
.cards__media { aspect-ratio: 3 / 2; background-size: cover; background-position: center; background-color: #e9e9e9; }
.cards__body { padding: 20px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.cards__title { margin: 0 0 14px; min-height: 2lh; }
.cards__rule { display: block; height: 2px; background: var(--card-accent, var(--color-green)); margin: 0 0 16px; }
.cards__text { margin: 0 0 22px; flex: 1 1 auto; }
.cards__link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--color-text-black, #1a1a1a); }

/* Grid mode: use subgrid so the title / divider / text / link rows line up across
   every card in a row, whatever the title length (dividers always align). */
@supports (grid-template-rows: subgrid) {
	.cards__grid { grid-template-rows: auto auto auto 1fr auto; }
	.cards__grid .cards__item { display: grid; grid-template-rows: subgrid; grid-row: span 5; }
	.cards__grid .cards__body { display: contents; }
	.cards__grid .cards__media { grid-row: 1; }
	.cards__grid .cards__title { grid-row: 2; margin: 0; min-height: 0; padding: 20px 24px 14px; }
	.cards__grid .cards__rule  { grid-row: 3; margin: 0 24px 16px; }
	.cards__grid .cards__text  { grid-row: 4; margin: 0 24px 22px; }
	.cards__grid .cards__link  { grid-row: 5; margin: 0 24px 26px; align-self: start; }
}
.cards__link .btn__arrow { width: 22px; height: 22px; color: var(--card-accent, var(--color-green)); }
.cards__item--green  { --card-accent: var(--color-green-accessible); }
.cards__item--blue   { --card-accent: var(--color-blue); }
.cards__item--purple { --card-accent: var(--color-purple); }
.cards__item--yellow { --card-accent: var(--color-yellow-accessible); }
.cards__item--teal   { --card-accent: var(--color-teal); }
.cards__item--pink   { --card-accent: var(--color-pink); }
@media (max-width: 1000px) { .cards__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .cards__grid { grid-template-columns: 1fr; } }

/* News block (dc/news) */
.news { padding-block: 60px; }
.news__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 40px; }
.news__headings { max-width: 760px; }
.news__headings h2 { margin: 0 0 10px; }
.news__intro { margin: 0; color: #5b5b5b; }
.news__btn { flex: 0 0 auto; margin-top: 6px; }
.news__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; align-items: stretch; }
.news-card { background: #fff; border-radius: 16px 16px 0 16px; box-shadow: var(--effect-shadow); overflow: hidden; display: flex; }
.news-card__link { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: var(--color-text-black, #1a1a1a); }
.news-card__media { aspect-ratio: 5 / 3; background-size: cover; background-position: center; background-color: #e9e9e9; }
.news-card__bar { display: block; height: 8px; background: var(--card-accent, var(--color-teal)); }
.news-card__body { padding: 18px 22px 26px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.news-card__title { margin: 0; font-size: var(--font-size-h3); font-weight: var(--font-weight-h3); }
.news-card__date { margin-top: auto; color: #5b5b5b; }
.news-card__link:hover .news-card__title { text-decoration: underline; }
.news-card--teal   { --card-accent: var(--color-teal); }
.news-card--green  { --card-accent: var(--color-green-accessible); }
.news-card--blue   { --card-accent: var(--color-blue); }
.news-card--purple { --card-accent: var(--color-purple); }
.news-card--yellow { --card-accent: var(--color-yellow-accessible); }
.news-card--pink   { --card-accent: var(--color-pink); }
@media (max-width: 1000px) { .news__grid { grid-template-columns: repeat(2, 1fr); } .news__head { flex-direction: column; } }
@media (max-width: 560px)  { .news__grid { grid-template-columns: 1fr; } }

/* Icon Block (dc/icons) */
.icons { padding-block: 60px; }
.icons__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 56px; }
.icons__headings { max-width: 760px; }
.icons__headings h2 { margin: 0 0 10px; }
.icons__intro { margin: 0; color: #5b5b5b; }
.icons__btn { flex: 0 0 auto; margin-top: 6px; }
.icons__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; align-items: stretch; }
.icard { position: relative; background: #fff; border-radius: 16px 16px 0 16px; box-shadow: var(--effect-shadow); padding: 54px 24px 28px; margin-top: 26px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.icard__icon { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); width: 52px; height: 52px; border-radius: 10px 10px 0 10px; display: grid; place-items: center; background: #eee; background: color-mix(in srgb, var(--icard-accent) 18%, #fff); color: var(--icard-accent); box-shadow: var(--effect-shadow); }
.icard__icon svg { width: 26px; height: 26px; }
.icard__text { margin: 0 0 24px; flex: 1 1 auto; }
.icard__btn { display: inline-block; border: 2px solid var(--icard-accent); color: var(--color-text-black, #1a1a1a); background: #fff; border-radius: 10px 10px 0 10px; padding: 8px 22px; font-weight: 700; text-decoration: none; transition: background .15s ease, color .15s ease; }
.icard__btn:hover, .icard__btn:focus-visible { background: var(--icard-accent); color: #fff; }
.icard--green  { --icard-accent: var(--color-green); }
.icard--blue   { --icard-accent: var(--color-blue); }
.icard--purple { --icard-accent: var(--color-purple); }
.icard--yellow { --icard-accent: var(--color-yellow); }
.icard--teal   { --icard-accent: var(--color-teal); }
.icard--pink   { --icard-accent: var(--color-pink); }
@media (max-width: 1000px) { .icons__grid { grid-template-columns: repeat(2, 1fr); } .icons__head { flex-direction: column; } }
@media (max-width: 560px)  { .icons__grid { grid-template-columns: 1fr; } }
.icard__icon img { width: 30px; height: 30px; object-fit: contain; }

/* Header / Header-stats background colour options */
.page-header--green  .page-header__panel { background: var(--color-green); }
.page-header--teal   .page-header__panel { background: var(--color-teal); }
.page-header--purple .page-header__panel { background: var(--color-purple); }
.page-header--pink   .page-header__panel { background: var(--color-pink); }
.page-header--blue   .page-header__panel { background: var(--color-blue); }
.page-header--yellow .page-header__panel { background: var(--color-yellow); }
.header-stats--green  { background: var(--color-green); }
.header-stats--teal   { background: var(--color-teal); }
.header-stats--purple { background: var(--color-purple); }
.header-stats--pink   { background: var(--color-pink); }
.header-stats--blue   { background: var(--color-blue); }
.header-stats--yellow { background: var(--color-yellow); }

/* Extra button colour variants */
.btn--teal   { --btn-c: var(--color-teal); }
.btn--pink   { --btn-c: var(--color-pink-accessible); }
.btn--yellow { --btn-c: var(--color-yellow-accessible); }

/* Accreditations block (dc/accreditations) */
.accreds { padding-block: 60px; }
.accreds__card { background: #fff; border-radius: 40px 40px 0 40px; box-shadow: var(--effect-shadow); padding: 44px 40px 48px; }
.accreds__title { text-align: center; margin: 0 0 34px; }
.accreds__viewport { overflow: hidden; }
.accreds__track { display: flex; align-items: center; justify-content: center; }
.accreds__track.is-scrolling { justify-content: flex-start; width: max-content; animation: accreds-scroll var(--accreds-dur, 20s) linear infinite; }
.accreds__viewport:hover .accreds__track.is-scrolling { animation-play-state: paused; }
.accreds__item { flex: 0 0 auto; margin-right: 72px; display: flex; align-items: center; justify-content: center; }
.accreds__track:not(.is-scrolling) .accreds__item:last-child { margin-right: 0; }
.accreds__item img { height: 92px; width: auto; max-width: 260px; object-fit: contain; display: block; }
@keyframes accreds-scroll { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--accreds-shift, 50%))); } }
@media (max-width: 700px) { .accreds__card { border-radius: 28px 28px 0 28px; padding: 32px 20px 36px; } .accreds__item { margin-right: 48px; } .accreds__item img { height: 68px; } }
@media (prefers-reduced-motion: reduce) { .accreds__track { animation: none !important; } .accreds__viewport { overflow-x: auto; } }

/* Member Form block (dc/member-form) */
.mform { background: #f4f4f5; padding-block: 64px; }
.mform__inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: start; }
.mform__text h2 { margin-top: 0; }
.mform__text p { margin-bottom: 0; max-width: 460px; }
.mform__form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.mform__field { display: block; }
.mform__field--full { grid-column: 1 / -1; }
.mform__label { display: block; font-weight: 700; margin-bottom: 8px; }
.mform__field input, .mform__field textarea { width: 100%; box-sizing: border-box; border: 1px solid #cfcfcf; border-radius: 4px; padding: 14px 16px; font: inherit; color: inherit; background: #fff; }
.mform__field textarea { resize: vertical; min-height: 120px; }
.mform__field input:focus, .mform__field textarea:focus { outline: 2px solid var(--color-purple); outline-offset: 1px; border-color: transparent; }
.mform__actions { margin-top: 4px; }
.mform__actions .btn { cursor: pointer; }
@media (max-width: 900px) {
	.mform__inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 520px) {
	.mform__form { grid-template-columns: 1fr; }
}

/* Map block (dc/map) */
.dc-map { padding-block: 50px; }
.dc-map__heading { margin: 0 0 6px; }
.dc-map__intro { margin: 0 0 28px; color: #5b5b5b; }
.dc-map__layout { display: grid; grid-template-columns: 1fr 260px; gap: 30px; align-items: start; }
.dc-map__searchlabel { display: block; margin-bottom: 12px; }
.dc-map__searchlabel > span { display: block; font-weight: 700; margin-bottom: 8px; }
.dc-map__search { width: 100%; box-sizing: border-box; border: 1px solid #cfcfcf; border-radius: 4px; padding: 12px 14px; font: inherit; }
.dc-map__canvas { width: 100%; border-radius: 8px; overflow: hidden; background: #dfe7e3; z-index: 0; }
.dc-map__canvas--placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #6a6a6a; border: 1px dashed #b7c3bd; }
.dc-map__side { display: flex; flex-direction: column; gap: 22px; }
.dc-map__count { text-align: left; }
.dc-map__count-num { display: block; font-size: 44px; font-weight: 900; line-height: 1; }
.dc-map__count-label { display: block; color: #5b5b5b; }
.dc-map__filters { display: flex; flex-direction: column; gap: 12px; }
.dc-map__district-row { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 18px; }
.dc-map__district-row input { width: 18px; height: 18px; }
.dc-map__legend { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.dc-map__legend-item { display: flex; align-items: center; gap: 10px; border: 1px solid #d8d8d8; border-radius: 6px; padding: 12px 16px; font-size: 14px; }
.dc-map__legend-item::before { content: ""; width: 14px; height: 14px; border-radius: 50%; flex: none; }
.dc-map__legend-item--created::before    { background: #3F5AA6; }
.dc-map__legend-item--development::before { background: #987200; }
.dc-map__legend-item--deleted::before     { background: #C0392B; }
.dc-map .leaflet-container { font: inherit; }
@media (max-width: 860px) {
	.dc-map__layout { grid-template-columns: 1fr; }
	.dc-map__side { flex-direction: row; flex-wrap: wrap; gap: 24px; }
	.dc-map__filters { flex: 1 1 200px; }
}

/* Events block (dc/events) */
.events { padding-block: 60px; }
.events__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 40px; }
.events__headings { max-width: 760px; }
.events__headings h2 { margin: 0 0 10px; }
.events__intro { margin: 0; color: #5b5b5b; }
.events__btn { flex: 0 0 auto; margin-top: 6px; }
.events__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; align-items: stretch; }
.event-card { background: #fff; border-radius: 16px 16px 0 16px; box-shadow: var(--effect-shadow); overflow: hidden; display: flex; flex-direction: column; }
.event-card__media { aspect-ratio: 2.6 / 1; background-size: cover; background-position: center; background-color: #e2e2e2; }
.event-card__body { padding: 22px 22px 26px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; flex: 1; }
.event-card__title { margin: 0; }
.event-card__date { color: #4a4a4a; }
.event-card__btn { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--color-green-accessible); color: var(--color-text-black, #1a1a1a); background: #fff; border-radius: 10px 10px 0 10px; padding: 8px 20px; font-weight: 700; text-decoration: none; transition: background .15s ease, color .15s ease; }
.event-card__btn:hover, .event-card__btn:focus-visible { background: var(--color-green-accessible); color: #fff; }
.event-card__btn .btn__arrow { width: 20px; height: 20px; }
.events__empty { color: #777; }
@media (max-width: 1000px) { .events__grid { grid-template-columns: repeat(2, 1fr); } .events__head { flex-direction: column; } }
@media (max-width: 560px)  { .events__grid { grid-template-columns: 1fr; } }

/* Meet the Team block (dc/team) */
.team { padding-block: 60px; }
.team__head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.team__heading { margin: 0 0 10px; }
.team__intro { margin: 0; color: #5b5b5b; }
.team__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; align-items: stretch; }
.team-card { background: #fff; border-radius: 16px 16px 0 16px; box-shadow: var(--effect-shadow); overflow: hidden; display: flex; flex-direction: column; }
.team-card__photo { aspect-ratio: 4 / 3; background-size: cover; background-position: center; background-color: #e2e2e2; }
.team-card__body { padding: 20px 22px 26px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; flex: 1; }
.team-card__name { margin: 0; }
.team-card__role { color: var(--color-green-accessible); font-weight: 700; }
.team-card__bio { margin: 0; color: #4a4a4a; flex: 1 1 auto; }
.team-card__btn { margin-top: auto; align-self: center; display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--color-green-accessible); color: var(--color-text-black, #1a1a1a); background: #fff; border-radius: 10px 10px 0 10px; padding: 8px 18px; font-weight: 700; text-decoration: none; transition: background .15s ease, color .15s ease; }
.team-card__btn:hover, .team-card__btn:focus-visible { background: var(--color-green-accessible); color: #fff; }
.team-card__mail { width: 18px; height: 18px; }
.team__empty { color: #777; text-align: center; }
@media (max-width: 1000px) { .team__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .team__grid { grid-template-columns: 1fr; } }

/* FAQ block (dc/faq) */
.faq { padding-block: 60px; }
.faq__title { text-align: left; margin: 0 0 30px; }
.faq__intro { text-align: left; color: #5b5b5b; margin: 0 0 34px; max-width: 720px; }
.faq__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; align-items: start; }
.faq--editor .faq__list { grid-template-columns: 1fr; }
@media (max-width: 720px) { .faq__list { grid-template-columns: 1fr; } }
.faq__item { background: #fff; border: 2px solid var(--faq-accent, var(--color-green)); border-radius: 12px 12px 0 12px; box-shadow: var(--effect-shadow); overflow: hidden; }
.faq__q { position: relative; padding: 18px 60px 14px 24px; cursor: pointer; list-style: none; font-weight: 700; }
.faq__q::-webkit-details-marker { display: none; }
.faq__qtext { display: block; }
.faq__icon { position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; color: var(--faq-accent, var(--color-green)); transition: transform .2s ease; }
.faq__item[open] .faq__icon { transform: rotate(180deg); }
.faq__a { padding: 0 22px 20px; }
.faq__a > :first-child { margin-top: 0; }
.faq__a > :last-child { margin-bottom: 0; }
.faq__item--green  { --faq-accent: var(--color-green-accessible); }
.faq__item--blue   { --faq-accent: var(--color-blue); }
.faq__item--purple { --faq-accent: var(--color-purple); }
.faq__item--yellow { --faq-accent: var(--color-yellow); }
.faq__item--teal   { --faq-accent: var(--color-teal); }
.faq__item--pink   { --faq-accent: var(--color-pink); }
/* editor: show items expanded for editing */
.faq--editor .faq__a { display: block; }
.faq--editor .faq__q { cursor: default; }
.faq--editor .faq__item { padding-bottom: 4px; }

/* Newsletter block (dc/newsletter) */
.newsletter { background: #eef4dd; background: color-mix(in srgb, var(--color-green) 12%, #fff); padding-block: 60px; }
.newsletter__inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.newsletter__text h2 { margin-top: 0; }
.newsletter__text p { margin-bottom: 0; max-width: 460px; }
.newsletter__form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.newsletter__field { display: block; }
.newsletter__label { display: block; font-weight: 700; margin-bottom: 8px; }
.newsletter__field input { width: 100%; box-sizing: border-box; border: 1px solid #cfcfcf; border-radius: 4px; padding: 13px 15px; font: inherit; color: inherit; background: #fff; }
.newsletter__field input:focus { outline: 2px solid var(--color-green-accessible); outline-offset: 1px; border-color: transparent; }
.newsletter__actions { grid-column: 1 / -1; margin-top: 2px; }
.newsletter__actions .btn { cursor: pointer; }
.newsletter__notice { grid-column: 1 / -1; padding: 12px 16px; border-radius: 8px; margin: 0 0 16px; font-weight: 600; }
.newsletter__notice--ok { background: #e3f2d6; color: #2f5311; border: 1px solid #b6d99a; }
.newsletter__notice--err { background: #fbe4e4; color: #7a1f1f; border: 1px solid #eab5b5; }
.newsletter__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 900px) {
	.newsletter__inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 520px) {
	.newsletter__form { grid-template-columns: 1fr; }
}

/* Village Hall Map block (dc/village-hall-map) */
.vhmap { padding-block: 44px; }
.vhmap__head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin-bottom: 26px; }
.vhmap__heading { margin: 0; }
.vhmap__intro { margin: 0; color: #444; }
.vhmap__embed { width: 100%; border-radius: 12px; overflow: hidden; background: #f4f4f5; box-shadow: var(--effect-shadow); }
.vhmap__embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.vhmap__placeholder { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 220px; padding: 24px; border: 1px dashed #c7c7c7; border-radius: 12px; color: #666; background: #fafafa; }
@media (max-width: 800px) {
	.vhmap__head { grid-template-columns: 1fr; gap: 14px; }
}
.dc-map__swatch { width: 13px; height: 13px; border-radius: 50%; flex: none; display: inline-block; }

/* CTA block (dc/cta) */
.cta { padding-block: 40px; }
.cta__card { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: stretch; border-radius: 36px 36px 0 36px; overflow: hidden; background: var(--cta-bg, #ece4f5); box-shadow: var(--effect-shadow); }
.cta__card--noimage { grid-template-columns: 1fr; }
.cta__text { padding: 48px 52px; align-self: center; }
.cta__heading { margin: 0 0 14px; }
.cta__intro { margin: 0 0 26px; color: #444; max-width: 520px; }
.cta__btn { border: 0; }
.cta__media { background-size: cover; background-position: center; background-color: #e9e9e9; min-height: 260px; }
.cta--purple { --cta-bg: #ece4f5; --cta-bg: color-mix(in srgb, var(--color-purple) 14%, #fff); }
.cta--green  { --cta-bg: #e6f0dc; --cta-bg: color-mix(in srgb, var(--color-green) 14%, #fff); }
.cta--blue   { --cta-bg: #e2e6f3; --cta-bg: color-mix(in srgb, var(--color-blue) 14%, #fff); }
.cta--teal   { --cta-bg: #dcefee; --cta-bg: color-mix(in srgb, var(--color-teal) 14%, #fff); }
.cta--pink   { --cta-bg: #f7e2ec; --cta-bg: color-mix(in srgb, var(--color-pink) 14%, #fff); }
.cta--yellow { --cta-bg: #f6efd8; --cta-bg: color-mix(in srgb, var(--color-yellow) 16%, #fff); }
@media (max-width: 820px) {
	.cta__card { grid-template-columns: 1fr; }
	.cta__text { padding: 32px 28px; }
	.cta__media { min-height: 200px; }
}

/* Icon Block category filters (dc/icons) */
.icons__filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 34px; }
.icons__filter { border: 2px solid #dcdcdc; background: #fff; color: #333; border-radius: 22px; padding: 8px 18px; font: inherit; font-weight: 600; cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.icons__filter:hover, .icons__filter:focus-visible { border-color: var(--color-green-accessible); }
.icons__filter.is-active { background: var(--color-green-accessible); border-color: var(--color-green-accessible); color: #fff; }


/* =========================================================
   Contact page: form + details (dc/contact)
   ========================================================= */
.contact { padding-block: 60px; }
.contact__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); justify-content: space-between; gap: 40px; align-items: start; }
.contact__title, .contact__details-title { margin: 0 0 24px; }
.contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact__field { display: block; margin-bottom: 18px; }
.contact__label { display: block; font-weight: 700; margin-bottom: 8px; color: var(--color-text-black); }
.contact__req { color: var(--color-pink-accessible); }
.contact__field input, .contact__field textarea { width: 100%; font: inherit; color: var(--color-text-black); background: #fff; border: 1px solid #cfcfcf; border-radius: 8px; padding: 12px 14px; box-sizing: border-box; }
.contact__field textarea { resize: vertical; min-height: 130px; }
.contact__field input:focus, .contact__field textarea:focus { outline: 2px solid var(--color-green-accessible); outline-offset: 1px; border-color: var(--color-green-accessible); }
.contact__field input::placeholder, .contact__field textarea::placeholder { color: #8a8a8a; }
.contact__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.contact__required { color: #666; }
.contact__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact__notice { border-radius: 8px; padding: 12px 16px; margin: 0 0 20px; font-weight: 600; }
.contact__notice--ok { background: color-mix(in srgb, var(--color-green) 16%, #fff); color: var(--color-green-accessible); }
.contact__notice--err { background: color-mix(in srgb, var(--color-pink) 14%, #fff); color: var(--color-pink-accessible); }

.contact__details { background: #f5f5f5; border-radius: 10px 10px 0 10px; padding: 30px; }
.contact__detail { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid #ececec; border-radius: 10px; padding: 18px 20px; margin-bottom: 16px; }
.contact__badge { flex: none; width: 45px; height: 45px; border-radius: 10px; background: var(--color-green); display: grid; place-items: center; }
.contact__badge svg { width: 20px; height: 20px; color: #fff; }
.contact__detail-body { display: block; min-width: 0; }
.contact__detail-label { display: block; font-weight: 700; color: var(--color-text-black); margin-bottom: 2px; }
.contact__detail-value { display: block; color: #444; text-decoration: none; word-break: break-word; }
a.contact__detail-value:hover, a.contact__detail-value:focus { text-decoration: underline; }
.contact__follow { background: #fff; border: 1px solid #ececec; border-radius: 10px; padding: 18px 20px; }
.contact__socials { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.contact__socials .soc svg { width: 24px; height: 24px; }

@media (max-width: 900px) {
	.contact__inner { grid-template-columns: 1fr; gap: 32px; }
	.contact__details { padding: 28px; }
}
@media (max-width: 480px) {
	.contact__row { grid-template-columns: 1fr; }
}

/* Find Us map (dc/find-us) */
.find-us { padding-block: 20px 60px; }
.find-us__head { margin-bottom: 20px; }
.find-us__head h2 { margin: 0 0 8px; }
.find-us__head p { margin: 0; }
.find-us__map { border-radius: 20px; overflow: hidden; box-shadow: var(--effect-shadow); background: #e9e9e9; }
.find-us__map iframe { display: block; width: 100%; height: var(--find-us-h, 520px); border: 0; }
.find-us__map--invalid { padding: 40px; text-align: center; }
.find-us__err { margin: 0; color: #666; }

/* Editor previews (dc/contact, dc/find-us) */
.contact-editor { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.contact-editor__col h2 { margin-top: 0; }
.contact-editor__details { background: #f5f5f5; border-radius: 10px 10px 0 10px; padding: 24px; }
.contact-editor__hint { color: #666; font-size: 15px; }
.find-us-editor__map { margin-top: 12px; border: 2px dashed #cfcfcf; border-radius: 12px; padding: 40px; text-align: center; color: #777; background: #f7f7f7; }


/* =========================================================
   Publications & Resources (dc/resources)
   ========================================================= */
.resources { padding-block: 50px 60px; }
.resources__layout { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: start; }

/* Sidebar */
.resources__sidebar { background: #f5f5f5; border-radius: 10px 10px 0 10px; padding: 26px 24px; }
.resources__ftitle { margin: 0 0 18px; font-size: 28px; }
.resources__slabel { display: block; font-weight: 700; margin: 0 0 10px; color: var(--color-text-black); }
.resources__searchbox { position: relative; }
.resources__searchinput { width: 100%; box-sizing: border-box; font: inherit; padding: 11px 42px 11px 16px; border: 1px solid #cfcfcf; border-radius: 8px; background: #fff; }
.resources__searchinput:focus { outline: 2px solid var(--color-green-accessible); border-color: var(--color-green-accessible); }
.resources__searchicon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #777; display: inline-flex; }
.resources__divider { border: 0; border-top: 1px solid #e0e0e0; margin: 20px 0; }
.resources__topics { border: 0; margin: 0; padding: 0; min-width: 0; }
.resources__topics legend { padding: 0; }
.resources__topic { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; cursor: pointer; line-height: 1.4; }
.resources__cat { width: 16px; height: 16px; margin: 3px 0 0; flex: none; accent-color: var(--color-green-accessible); cursor: pointer; }
.resources__clear { display: inline-block; background: none; border: 0; padding: 6px 0 0; font: inherit; color: var(--color-green-accessible); text-decoration: underline; cursor: pointer; }
.resources__clear:hover { text-decoration: none; }

/* Card grid */
.resources__grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 40px; row-gap: 60px; }
.resources__empty { grid-column: 1 / -1; color: #666; }
.resources__card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; background: #fff; border-radius: 10px 10px 0 10px; box-shadow: var(--effect-shadow); padding: 48px 26px 30px; min-height: 226px; }
.resources__card.is-hidden { display: none; }
.resources__icon { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); width: 60px; height: 60px; border-radius: 14px; display: grid; place-items: center; }
.resources__icon svg { width: 28px; height: 28px; }
.resources__title { margin: 0 0 22px; font-size: 18px; font-weight: 600; line-height: 1.4; color: var(--color-text-black); }
.resources__btn { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; padding: 9px 22px; border: 2.5px solid #ccc; border-radius: 10px 10px 0 10px; font-weight: 700; color: var(--color-text-black); background: #fff; text-decoration: none; transition: background .15s ease; }
.resources__btn:hover, .resources__btn:focus { text-decoration: none; }

/* Card colour themes: tinted icon square + full-colour icon + coloured button border */
.resources__card--green  .resources__icon { background: color-mix(in srgb, var(--color-green) 16%, #fff);  color: var(--color-green); }
.resources__card--blue   .resources__icon { background: color-mix(in srgb, var(--color-blue) 16%, #fff);   color: var(--color-blue); }
.resources__card--purple .resources__icon { background: color-mix(in srgb, var(--color-purple) 16%, #fff); color: var(--color-purple); }
.resources__card--teal   .resources__icon { background: color-mix(in srgb, var(--color-teal) 16%, #fff);   color: var(--color-teal); }
.resources__card--pink   .resources__icon { background: color-mix(in srgb, var(--color-pink) 16%, #fff);   color: var(--color-pink); }
.resources__card--yellow .resources__icon { background: color-mix(in srgb, var(--color-yellow) 18%, #fff); color: var(--color-yellow); }
.resources__card--green  .resources__btn { border-color: var(--color-green); }
.resources__card--blue   .resources__btn { border-color: var(--color-blue); }
.resources__card--purple .resources__btn { border-color: var(--color-purple); }
.resources__card--teal   .resources__btn { border-color: var(--color-teal); }
.resources__card--pink   .resources__btn { border-color: var(--color-pink); }
.resources__card--yellow .resources__btn { border-color: var(--color-yellow); }
.resources__card--green  .resources__btn:hover { background: color-mix(in srgb, var(--color-green) 12%, #fff); }
.resources__card--blue   .resources__btn:hover { background: color-mix(in srgb, var(--color-blue) 12%, #fff); }
.resources__card--purple .resources__btn:hover { background: color-mix(in srgb, var(--color-purple) 12%, #fff); }
.resources__card--teal   .resources__btn:hover { background: color-mix(in srgb, var(--color-teal) 12%, #fff); }
.resources__card--pink   .resources__btn:hover { background: color-mix(in srgb, var(--color-pink) 12%, #fff); }
.resources__card--yellow .resources__btn:hover { background: color-mix(in srgb, var(--color-yellow) 14%, #fff); }

/* Load more + accessibility note */
.resources__more-wrap { text-align: center; margin-top: 54px; }
.resources__more.is-hidden { display: none; }
.resources__note { margin: 40px 0 0; color: #444; line-height: 1.6; }

/* Editor preview */
.dc-resources-editor .dc-res-hint { color: #666; background: #f5f5f5; border-radius: 8px; padding: 12px 14px; }

@media (max-width: 1000px) {
	.resources__layout { grid-template-columns: 1fr; }
	.resources__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
	.resources__grid { grid-template-columns: 1fr; }
}


/* =========================================================
   News archive (dc/news-archive) — reuses .news__grid / .news-card
   ========================================================= */
.news-archive { padding-block: 44px 60px; }
.news-archive__toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.news-archive__cat { min-width: 320px; font: inherit; padding: 11px 18px; border: 2px solid var(--color-green); border-radius: 10px 10px 0 10px; background: #fff; color: var(--color-text-black); cursor: pointer; }
.news-archive__cat:focus { outline: 2px solid var(--color-green-accessible); }
.news-archive__search { display: flex; align-items: stretch; }
.news-archive__searchinput { font: inherit; padding: 11px 18px; border: 2px solid var(--color-green); border-right: 0; border-radius: 8px 0 0 8px; min-width: 260px; background: #fff; color: var(--color-text-black); }
.news-archive__searchinput:focus { outline: none; }
.news-archive__searchbtn { border: 0; border-radius: 0 8px 0 0; }
.news-archive__grid { align-items: stretch; }
.news-card.is-hidden { display: none !important; }
.news-archive__more-wrap { text-align: center; margin-top: 50px; }
.news-archive__more.is-hidden { display: none; }
.news-archive__noresults, .news-archive__empty { color: #666; text-align: center; margin: 24px 0; }
.news-archive__noresults.is-hidden { display: none; }
.dc-news-archive-editor .dc-res-hint { color: #666; background: #f5f5f5; border-radius: 8px; padding: 12px 14px; }

@media (max-width: 700px) {
	.news-archive__toolbar { flex-direction: column; align-items: stretch; }
	.news-archive__cat { min-width: 0; width: 100%; box-sizing: border-box; }
	.news-archive__search { width: 100%; }
	.news-archive__searchinput { flex: 1; min-width: 0; }
}


/* =========================================================
   Our Staff (dc/staff)
   ========================================================= */
.staff { padding-block: 44px 60px; }
.staff__toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 34px; }
.staff__filter-label { display: block; font-weight: 700; margin-bottom: 8px; color: var(--color-text-black); }
.staff__cat { min-width: 320px; font: inherit; padding: 11px 18px; border: 2px solid var(--color-green); border-radius: 10px 10px 0 10px; background: #fff; color: var(--color-text-black); cursor: pointer; }
.staff__cat:focus { outline: 2px solid var(--color-green-accessible); }
.staff__count { margin: 0 0 6px; color: #5b5b5b; }

.staff__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 40px; align-items: stretch; }
.staff-card { background: #fff; border-radius: 16px 16px 0 16px; box-shadow: var(--effect-shadow); overflow: hidden; display: flex; flex-direction: column; }
.staff-card.is-hidden { display: none; }
.staff-card__photo { aspect-ratio: 1 / 1; flex: none; background-size: cover; background-position: center; background-color: #e2e2e2; filter: grayscale(1); transition: filter .25s ease; }
.staff-card:hover .staff-card__photo { filter: grayscale(0); }
.staff-card__body { padding: 18px 20px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; flex: 1; }
.staff-card__name { margin: 0; color: var(--color-green-accessible); font-size: 20px; }
.staff-card__role { color: #4a4a4a; }
.staff-card__btn { margin-top: auto; align-self: center; display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--color-green); color: var(--color-text-black); background: #fff; border-radius: 10px 10px 0 10px; padding: 5px 18px; font: inherit; font-weight: 700; cursor: pointer; transition: background .15s ease, color .15s ease; }
.staff-card__btn:hover, .staff-card__btn:focus-visible { background: var(--color-green-accessible); color: #fff; }
.staff-card__btn .btn__arrow { width: 16px; height: 16px; transition: transform .2s ease; }
.staff-card__btn.is-open .btn__arrow { transform: rotate(-135deg); }
.staff-card__bio { margin-top: 10px; color: #4a4a4a; text-align: left; font-size: 15px; line-height: 1.5; }
.staff__empty { color: #777; text-align: center; }
.dc-staff-editor .dc-res-hint { color: #666; background: #f5f5f5; border-radius: 8px; padding: 12px 14px; }

@media (max-width: 1000px) { .staff__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
	.staff__grid { grid-template-columns: 1fr; }
	.staff__toolbar { flex-direction: column; align-items: stretch; }
	.staff__cat { min-width: 0; width: 100%; box-sizing: border-box; }
}


/* Our Staff — Read Bio modal (dc/staff) */
body.staff-modal-open { overflow: hidden; }
.staff-modal[hidden] { display: none; }
.staff-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.staff-modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.staff-modal__panel { position: relative; background: #fff; border-radius: 20px 20px 0 20px; max-width: 940px; width: 100%; max-height: 88vh; overflow: auto; padding: 44px 48px; box-shadow: var(--effect-shadow); }
.staff-modal__close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; color: #333; display: grid; place-items: center; border-radius: 50%; }
.staff-modal__close:hover { background: #f2f2f2; }
.staff-modal__close svg { width: 24px; height: 24px; }
.staff-modal__layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.staff-modal__photo { aspect-ratio: 1 / 1; background-size: cover; background-position: center; background-color: #e2e2e2; filter: grayscale(1); border-radius: 8px 8px 0 8px; }
.staff-modal__name { margin: 16px 0 4px; color: var(--color-green-accessible); text-align: center; font-size: 20px; }
.staff-modal__role { color: #4a4a4a; text-align: center; }
.staff-modal__body .staff-modal__section { margin-bottom: 26px; }
.staff-modal__body .staff-modal__section:last-child { margin-bottom: 0; }
.staff-modal__body h3 { margin: 0 0 12px; color: var(--color-green-accessible); }
.staff-modal__body p { margin: 0 0 14px; color: #333; line-height: 1.6; }
.staff-modal__body p:last-child { margin-bottom: 0; }
.staff-modal__soon { color: #777; }
@media (max-width: 700px) {
	.staff-modal__layout { grid-template-columns: 1fr; gap: 24px; }
	.staff-modal__aside { max-width: 240px; margin: 0 auto; }
	.staff-modal__panel { padding: 40px 22px 28px; }
}

/* Community Buildings (463): left-align Cards section titles */
.page-id-463 .cards__head { text-align: left; margin-left: 0; max-width: none; }

/* Cards slider (4 per view, arrows below) */
.cards__slider { position: relative; }
.cards__viewport { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; padding: 6px 2px 20px; }
.cards__viewport::-webkit-scrollbar { display: none; }
.cards--slider .cards__item { flex: 0 0 calc(25% - 24px); }
.cards__nav { display: flex; justify-content: flex-end; gap: 12px; margin-top: 6px; }
.cards__arrow { width: 46px; height: 46px; padding: 0; border: none; border-radius: 10px 10px 0 10px; background: var(--color-green); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: var(--effect-shadow); transition: opacity .2s, background .2s; }
.cards__arrow:hover:not(:disabled) { background: var(--color-green-accessible); }
.cards__arrow svg { width: 22px; height: 22px; }
.cards__arrow:disabled { opacity: .3; cursor: default; }
.cards__slider--static .cards__nav { display: none; }
@media (max-width: 1000px) { .cards--slider .cards__item { flex-basis: calc(50% - 20px); } }
@media (max-width: 560px)  { .cards--slider .cards__item { flex-basis: 84%; } }

/* Core buttons (wp-block-button) styled to match dc .btn, with hover states */
.wp-block-button__link { display: inline-flex; align-items: center; gap: 10px; padding: 8px 22px; border-radius: 10px 10px 0 10px; font-weight: 700; font-size: 18px; line-height: 1.1; text-decoration: none; background: var(--color-green-accessible); border: 2px solid var(--color-green-accessible); color: #fff; cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.wp-block-button__link:hover, .wp-block-button__link:focus-visible { background: #fff; color: var(--color-text-black); border-color: var(--color-green-accessible); text-decoration: none; }
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--color-text-black); border-color: var(--color-text-black); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover, .wp-block-button.is-style-outline > .wp-block-button__link:focus-visible { background: var(--color-green-accessible); color: #fff; border-color: var(--color-green-accessible); }

/* ---- single village hall (dc_hall) ---- */
/* Built to Figma "Village Hall / Single" (dLcEVPC4N1pXwl0SupuE9n 3108:3505). */
.vh-hero .page-header__panel { min-height: 246px; }
.vh { display: flex; flex-direction: column; gap: 90px; padding: 31px 0 90px; color: var(--color-text-black); }
.vh p { margin: 0; }
.vh-h2 { font-size: 34px; font-weight: 900; line-height: 1.2; margin: 0 0 28px; }
.vh-h2--centre { text-align: center; }

/* S1 summary: photo + key details */
.vh-summary__row { display: grid; grid-template-columns: 1fr 1fr; }
.vh-summary__photo { border-radius: 45px 0 0 45px; overflow: hidden; min-height: 479px; background: #e9e9e9; }
.vh-summary__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vh-summary__details { background: #ddecd3; border-radius: 0 45px 0 0; padding: 40px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px; min-height: 479px; }
.vh-summary__row--nophoto { grid-template-columns: 1fr; }
.vh-summary__row--nophoto .vh-summary__details { border-radius: 45px 45px 0 45px; min-height: 0; }
.vh-chip { background: #fff; border: 1px solid var(--color-green-accessible); border-radius: 20px; padding: 6px 16px; font-weight: 700; font-size: 18px; line-height: 26px; }
.vh-item__label { font-weight: 800; font-size: 18px; line-height: 26px; letter-spacing: .8px; }
.vh-item__value { font-size: 18px; line-height: 28px; margin-top: 2px !important; }
.vh-item__value a { color: inherit; }
.vh-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--outline { --btn-c: var(--color-green-accessible); background: #fff; color: var(--color-text-black); }
.btn--outline:hover, .btn--outline:focus-visible { background: var(--color-green-accessible); color: #fff; }

/* S2 about + find us */
.vh-about { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.vh-about--single { grid-template-columns: 1fr; }
.vh-about__text { font-size: 18px; line-height: 28px; }
.vh-about__text p + p { margin-top: 16px; }
.vh-findus__map { height: 360px; border-radius: 24px; overflow: hidden; background: #e9eee4; z-index: 0; }

/* S3 at a glance */
.vh-stats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.vh-stat { flex: 0 1 264px; min-height: 181px; background: #fff; border: 1px solid #e4e7de; border-radius: 20px; padding: 20px 15px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; box-sizing: border-box; }
.vh-stat__label { font-size: 20px; font-weight: 900; }
.vh-stat__value { font-size: 60px; font-weight: 900; line-height: 70px; }
.vh-stat__value--text { font-size: 34px; line-height: 44px; }
.vh-stat__value--green  { color: var(--color-green); }
.vh-stat__value--blue   { color: var(--color-blue); }
.vh-stat__value--purple { color: var(--color-purple); }
.vh-stat__value--pink   { color: var(--color-pink); }
.vh-stat__value--teal   { color: var(--color-teal); }
.vh-stat__sub { font-size: 18px; line-height: 28px; }

/* S4 what's at this hall */
.vh-what { display: flex; flex-direction: column; gap: 36px; }
.vh-what .vh-h2 { margin: 0; }
.vh-what__h3 { font-size: 26px; font-weight: 900; line-height: 1.2; margin: 0 0 16px; }
.vh-tiles { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; }
.vh-tile { flex: 0 1 264px; background: #fff; border: 1px solid #e4e7de; border-radius: 20px; padding: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; box-sizing: border-box; }
.vh-tile__icon { width: 52px; height: 52px; border-radius: 15px; display: flex; align-items: center; justify-content: center; flex: none; }
.vh-tile__label { font-size: 18px; font-weight: 700; line-height: 28px; }

@media (max-width: 860px) {
	.vh { gap: 56px; }
	.vh-h2 { font-size: 28px; margin-bottom: 20px; }
	.vh-summary__row { grid-template-columns: 1fr; }
	.vh-summary__photo { border-radius: 45px 45px 0 0; min-height: 240px; }
	.vh-summary__details { border-radius: 0 0 0 45px; min-height: 0; padding: 28px 24px; }
	.vh-summary__row--nophoto .vh-summary__details { border-radius: 45px 45px 0 45px; }
	.vh-about, .vh-about--single { grid-template-columns: 1fr; gap: 56px; }
	.vh-findus__map { height: 300px; }
	.vh-stat, .vh-tile { flex: 0 1 calc(50% - 10px); }
	.vh-stat__value { font-size: 48px; line-height: 56px; }
	.vh-stat__value--text { font-size: 26px; line-height: 34px; }
	.vh-what__h3 { font-size: 22px; }
}

/* ---- village halls map + listing (dc/village-hall-map, live data) ---- */
.dc-map--vhalls .dc-map__layout{grid-template-columns:280px 1fr;}
@media (max-width: 860px){.dc-map--vhalls .dc-map__layout{grid-template-columns:1fr;}.dc-map--vhalls .dc-map__side{flex-direction:column;}.dc-map--vhalls .dc-map__canvas{height:420px !important;}}
.dc-map__fgroup{display:block;}
.dc-map__flabel{display:block;font-weight:700;margin:0 0 8px;font-size:16px;}
.dc-map__select{width:100%;box-sizing:border-box;border:1px solid #cfcfcf;border-radius:4px;padding:10px 12px;font:inherit;background:#fff;}
.dc-map__check{display:flex;align-items:center;gap:10px;cursor:pointer;font-size:16px;margin:6px 0;}
.dc-map__check input{width:17px;height:17px;flex:none;}
.dc-map__details > summary{cursor:pointer;list-style:none;}
.dc-map__details > summary::-webkit-details-marker{display:none;}
.dc-map__details > summary::after{content:"+";float:right;font-weight:700;}
.dc-map__details[open] > summary::after{content:"\2013";}
.dc-map__reset{margin-top:4px;background:none;border:1px solid #cfcfcf;border-radius:4px;padding:9px 14px;font:inherit;cursor:pointer;}
.dc-map__reset:hover{border-color:#999;}
.dc-map__reset--inline{margin-left:8px;padding:5px 10px;}
.dc-vh__resultcount{margin:16px 0 10px;font-weight:700;color:#5b5b5b;}
.dc-vh__results{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px;}
.dc-vh-card{display:flex;text-decoration:none;color:inherit;border:1px solid #e2e2e2;border-radius:10px 10px 0 10px;overflow:hidden;background:#fff;transition:box-shadow .15s,border-color .15s;}
.dc-vh-card:hover{border-color:#cdd8c3;box-shadow:0 4px 14px rgba(0,0,0,.08);}
.dc-vh-card[hidden]{display:none;}
.dc-vh-card__swatch{flex:0 0 6px;}
.dc-vh-card__body{display:block;padding:14px 16px;}
.dc-vh-card__name{display:block;font-weight:700;font-size:17px;line-height:1.25;}
.dc-vh-card__district{display:block;color:#5b5b5b;font-size:14px;margin-top:2px;}
.dc-vh-card__facts{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px;}
.dc-vh-card__fact{background:#eef3e7;color:#3f5a1d;border-radius:6px;padding:3px 9px;font-size:12.5px;}
.dc-vh__empty{margin:20px 0;font-weight:700;}
@media(max-width:860px){.dc-vh__results{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));}}

/* VH list load-more (lisa 2026-10-26) */
.dc-vh__more{display:block;margin:20px auto 0;padding:12px 28px;font-weight:700;font-size:.95rem;color:#fff;background:var(--color-green-accessible);border:0;border-radius:999px;cursor:pointer;}
.dc-vh__more:hover,.dc-vh__more:focus-visible{background:var(--color-text-black);}
.dc-vh__more[hidden]{display:none;}

/* DCT highlights: all stat cards on one row on desktop (non-filterable icons only) 2026-10-26 */
@media (min-width: 1001px) {
  .icons:not(.icons--filterable) .icons__grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }
}

/* Get Involved mailing-list CF7 form styling 2026-10-26 */
.dc-mlform { max-width: 760px; margin: 0 auto; }
.dc-mlform > * { margin: 0 0 20px; }
.dc-mlform label { display: block; font-weight: 700; color: var(--color-text-black); margin-bottom: 8px; }
.dc-mlform input[type="text"],
.dc-mlform input[type="email"],
.dc-mlform input[type="tel"],
.dc-mlform textarea {
	width: 100%; box-sizing: border-box; font: inherit; color: var(--color-text-black);
	background: #fff; border: 1px solid #cfcfcf; border-radius: 8px; padding: 12px 14px;
	transition: border-color .15s ease;
}
.dc-mlform textarea { resize: vertical; min-height: 130px; }
.dc-mlform input:focus, .dc-mlform textarea:focus {
	outline: 2px solid var(--color-green-accessible); outline-offset: 1px; border-color: var(--color-green-accessible);
}
.dc-mlform input::placeholder, .dc-mlform textarea::placeholder { color: #8a8a8a; }

/* district checkboxes */
.dc-mlform .wpcf7-checkbox { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 8px; }
.dc-mlform .wpcf7-checkbox .wpcf7-list-item { margin: 0; }
.dc-mlform .wpcf7-checkbox .wpcf7-list-item label { display: flex; align-items: center; gap: 9px; font-weight: 400; margin: 0; cursor: pointer; }
.dc-mlform .wpcf7-checkbox input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--color-green-accessible); flex: none; margin: 0; }

/* GDPR acceptance */
.dc-mlform .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.dc-mlform .wpcf7-acceptance label { display: flex; align-items: flex-start; gap: 11px; font-weight: 400; margin: 0; cursor: pointer; }
.dc-mlform .wpcf7-acceptance input[type="checkbox"] { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--color-green-accessible); flex: none; }

/* submit button (match .btn--green) */
.dc-mlform .wpcf7-submit {
	display: inline-flex; align-items: center; cursor: pointer;
	background: var(--color-green-accessible); color: #fff; border: 2px solid var(--color-green-accessible);
	border-radius: 10px 10px 0 10px; padding: 13px 32px; font: inherit; font-weight: 700; line-height: 1.2;
	transition: background .15s ease, color .15s ease;
}
.dc-mlform .wpcf7-submit:hover, .dc-mlform .wpcf7-submit:focus-visible { background: #fff; color: var(--color-text-black); }
.dc-mlform .wpcf7-spinner { margin: 0 0 0 12px; }

/* two-column layout for the short text fields on desktop */
@media (min-width: 720px) {
	.dc-mlform { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; align-items: start; }
	.dc-mlform > *:nth-child(n+7) { grid-column: 1 / -1; }
}

/* Get Involved social icon row 2026-10-26 */
.dc-social-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; margin: 12px 0 0; }
.dc-social-row .soc { width: 48px; height: 48px; border-radius: 12px 12px 0 12px; background: color-mix(in srgb, currentColor 12%, #fff); box-shadow: var(--effect-shadow); transition: transform .15s ease, background .15s ease; }
.dc-social-row .soc svg { width: 26px; height: 26px; }
.dc-social-row .soc:hover, .dc-social-row .soc:focus-visible { transform: translateY(-3px); background: color-mix(in srgb, currentColor 22%, #fff); }

/* =========================================================
   Coloured band blocks (hero, feedback, stats) break out of the
   1400px content column to full viewport width. Inner .container
   keeps their content at 1400. Added 2026-10-29.
   ========================================================= */
.page-content > .page-header,
.page-content > .feedback,
.page-content > .header-stats {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}
/* =========================================================
   Feedback / testimonials slider (shown only when there are
   more than 4 reviews; 4 or fewer stay as the tidy grid). 2026-10-29
   ========================================================= */
.feedback__slider { position: relative; }
.feedback__viewport { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; padding: 24px 4px 16px; }
.feedback__viewport::-webkit-scrollbar { display: none; }
.feedback__item { flex: 0 0 calc(25% - 21px); }
.feedback__nav { display: flex; justify-content: center; gap: 12px; margin-top: 10px; }
.feedback__arrow { width: 46px; height: 46px; padding: 0; border: none; border-radius: 10px 10px 0 10px; background: #fff; color: var(--color-green-accessible); cursor: pointer; display: grid; place-items: center; box-shadow: var(--effect-shadow); transition: background .2s, color .2s, opacity .2s; }
.feedback__arrow:hover:not(:disabled) { background: var(--color-green-accessible); color: #fff; }
.feedback__arrow svg { width: 22px; height: 22px; }
.feedback__arrow:disabled { opacity: .35; cursor: default; }
.feedback__slider--static .feedback__nav { display: none; }
@media (max-width: 1000px) { .feedback__item { flex-basis: calc(50% - 14px); } }
@media (max-width: 560px)  { .feedback__item { flex-basis: 84%; } }

/* Useful-links style cards: smaller (h4-size) titles so page links sit at a similar weight to resources. 2026-11-02 */
.cards--title-sm .cards__title { font-size: 20px; }
/* =========================================================
   Global form field styling: one consistent look across every form
   (contact, member/support, newsletter, CF7 mailing list) and shorter
   fields (less vertical padding). 2026-11-02
   ========================================================= */
.contact__field input,
.contact__field textarea,
.mform__field input,
.mform__field textarea,
.newsletter__field input,
.dc-mlform input[type="text"],
.dc-mlform input[type="email"],
.dc-mlform input[type="tel"],
.dc-mlform textarea,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form textarea,
.wpcf7-form select {
	width: 100%;
	box-sizing: border-box;
	font: inherit;
	color: var(--color-text-black);
	background: #fff;
	border: 1px solid #cfcfcf;
	border-radius: 8px;
	padding: 9px 14px;
}
.contact__field textarea,
.mform__field textarea,
.dc-mlform textarea,
.wpcf7-form textarea { padding: 10px 14px; }
.contact__field input:focus,
.contact__field textarea:focus,
.mform__field input:focus,
.mform__field textarea:focus,
.newsletter__field input:focus,
.dc-mlform input:focus,
.dc-mlform textarea:focus,
.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
	outline: 2px solid var(--color-green-accessible);
	outline-offset: 1px;
	border-color: var(--color-green-accessible);
}

/* =========================================================
   Global dropdown (filter select) styling: one consistent branded look
   with a custom chevron kept clear of the border. Set here once so the
   stroke and appearance are controlled globally. 2026-11-02
   ========================================================= */
.news-archive__cat,
.staff__cat,
.dc-map__select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	font: inherit;
	color: var(--color-text-black);
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23709C35' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 18px center;
	background-size: 14px 14px;
	border: 2px solid var(--color-green);
	border-radius: 10px 10px 0 10px;
	padding: 11px 44px 11px 18px;
	cursor: pointer;
}
.news-archive__cat:focus,
.staff__cat:focus,
.dc-map__select:focus {
	outline: 2px solid var(--color-green-accessible);
	outline-offset: 1px;
}

/* All buttons use the theme font (covers plain <button> elements with no font rule). 2026-11-02 */
button { font-family: inherit; }
/* Top-level nav items: text and dropdown caret share one line and align with the other items. 2026-11-02 */
.main-navigation > ul > li > a { display: inline-flex; align-items: center; }
/* =========================================================
   Search results page: search bar + type-tagged results. 2026-11-02
   ========================================================= */
.search-results { padding-block: 44px 64px; }
.search-results__title { margin: 0 0 24px; }
.search-results__form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 640px; margin: 0 0 34px; }
.search-results__form input[type="search"] {
	flex: 1 1 240px; min-width: 0; box-sizing: border-box; font: inherit; color: var(--color-text-black);
	background: #fff; border: 1px solid #cfcfcf; border-radius: 8px; padding: 9px 14px;
}
.search-results__form input[type="search"]:focus { outline: 2px solid var(--color-green-accessible); outline-offset: 1px; border-color: var(--color-green-accessible); }
.search-results__count { color: #555; margin: 0 0 22px; }
.search-results__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.search-result { border-bottom: 1px solid #e7e7e7; padding-bottom: 22px; }
.search-result:last-child { border-bottom: 0; }
.search-result__tag { display: inline-block; font-size: 13px; font-weight: 700; line-height: 1; color: #fff; background: var(--color-green); border-radius: 6px; padding: 5px 11px; margin: 0 0 10px; }
.search-result__title { display: inline-block; font-size: 22px; font-weight: 900; color: var(--color-text-black); text-decoration: none; }
.search-result__title:hover, .search-result__title:focus { color: var(--color-green-accessible); text-decoration: underline; }
.search-result__excerpt { margin: 8px 0 0; color: #444; }
.search-result__tag--page        { background: var(--color-blue); }
.search-result__tag--post        { background: var(--color-green-accessible); }
.search-result__tag--dc-event    { background: var(--color-purple); }
.search-result__tag--dc-training { background: var(--color-yellow-accessible); }
.search-result__tag--dc-hall     { background: var(--color-teal); }
.search-result__tag--dc-team     { background: var(--color-pink-accessible); }
.search-results__pagination { margin-top: 36px; }
.search-results__pagination .nav-links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search-results__pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid #cfcfcf; border-radius: 8px; text-decoration: none; color: var(--color-text-black); }
.search-results__pagination .page-numbers.current { background: var(--color-green-accessible); border-color: var(--color-green-accessible); color: #fff; }
.search-results__pagination a.page-numbers:hover { border-color: var(--color-green-accessible); }

/* =========================================================
   Hero: subtle Ken Burns zoom on the active slide image.
   Only when the visitor has NOT asked for reduced motion
   (WCAG 2.2 AA friendly); the slider autoplay is also
   disabled under reduced-motion in blocks/hero/view.js. 2026-11-02
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
	.hero--block .hero__slide.is-active .hero__media,
	.hero:not(.hero--block) .hero__media {
		animation: dc-hero-zoom 14s ease-out both;
		transform-origin: center;
		will-change: transform;
	}
}
@keyframes dc-hero-zoom { from { transform: scale(1); } to { transform: scale(1.07); } }
/* Hero: content fades and rises in as each slide becomes active (reduced-motion safe). 2026-11-02 */
@media (prefers-reduced-motion: no-preference) {
	.hero--block .hero__slide.is-active .hero__card { animation: dc-hero-card-in 0.8s ease-out both; }
}
@keyframes dc-hero-card-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
/* Energy Advice (491) warm-pack banner: lower the crop so the Energy Champion's head isn't cut off */
.page-id-491 .cta__media { background-position: center 25%; }

/* B&ES 2025-2026 highlights: stats-only statistics panel — no empty vision half, so drop the impact top gap */
.page-id-1087 .vi__impact { margin-top: 0; }

/* dc/projects slider (more than 3 cards): one row of 3 + prev/next arrows, mirrors the cards slider */
.projects__slider { position: relative; }
.projects__viewport { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; padding: 6px 2px 20px; }
.projects__viewport::-webkit-scrollbar { display: none; }
.projects__viewport .project { flex: 0 0 calc(33.333% - 19px); }
.projects__nav { display: flex; justify-content: flex-end; gap: 12px; margin-top: 6px; }
.projects__arrow { width: 46px; height: 46px; padding: 0; border: none; border-radius: 10px 10px 0 10px; background: var(--color-green); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: var(--effect-shadow); transition: opacity .2s, background .2s; }
.projects__arrow:hover:not(:disabled) { background: var(--color-green-accessible); }
.projects__arrow svg { width: 22px; height: 22px; }
.projects__arrow:disabled { opacity: .3; cursor: default; }
.projects__slider--static .projects__nav { display: none; }
@media (max-width: 1000px) { .projects__viewport .project { flex-basis: calc(50% - 14px); } }
@media (max-width: 560px)  { .projects__viewport .project { flex-basis: 84%; } }

/* Single case study (dc_case_study) layout */
.cs-single__eyebrow { color: #fff; opacity: .92; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 13px; margin: 0 0 8px; }
.cs-single__body { padding: 56px 0 72px; }
.cs-single__inner { max-width: 820px; margin-inline: auto; padding-inline: var(--page-margin); }
.cs-single__prose > :first-child { margin-top: 0; }
.cs-single__prose h2, .cs-single__prose h3, .cs-single__prose h4 { margin-top: 1.6em; }
.cs-single__prose img { max-width: 100%; height: auto; border-radius: 12px; }
.cs-single__back { margin-top: 40px; }
.cs-single__back a { font-weight: 700; color: var(--color-green-accessible); text-decoration: none; }
.cs-single__back a:hover { text-decoration: underline; }

/* Core columns block (block-library CSS is dequeued) — give wp:columns a real multi-column layout */
.wp-block-columns { display: flex; flex-wrap: wrap; gap: var(--grid-gutter, 40px); align-items: flex-start; margin-block: 24px; }
.wp-block-columns > .wp-block-column { flex: 1 1 0; min-width: 0; }
.dc-links-cols h3 { margin-top: 0; }
@media (max-width: 781px) { .wp-block-columns { flex-direction: column; gap: 8px; } }

/* dc/cards: 2/3/4 columns + left/centre heading (defaults 4 + centre, so existing blocks are unchanged) */
.cards--cols-2 .cards__grid { grid-template-columns: repeat(2, 1fr); }
.cards--cols-3 .cards__grid { grid-template-columns: repeat(3, 1fr); }
.cards--head-left .cards__head { text-align: left; margin-left: 0; max-width: none; }
@media (max-width: 1000px) { .cards--cols-3 .cards__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards--cols-2 .cards__grid, .cards--cols-3 .cards__grid { grid-template-columns: 1fr; } }

/* Single training course */
.dc-course__date { color: #fff; opacity: .92; font-weight: 600; margin: 8px 0 0; }
.dc-course__book { margin-top: 28px; }

/* Digital Inclusion highlights: stats-only statistics panel, drop the impact top gap */
.page-id-1067 .vi__impact { margin-top: 0; }

/* dc/statistics: card columns follow the number of stats (fewer than 5 widen to fill the panel; 5+ stays 5-up) */
.vi__stats--cols-1 { grid-template-columns: 1fr; }
.vi__stats--cols-2 { grid-template-columns: repeat(2,1fr); }
.vi__stats--cols-3 { grid-template-columns: repeat(3,1fr); }
.vi__stats--cols-4 { grid-template-columns: repeat(4,1fr); }
.vi__stats--cols-5 { grid-template-columns: repeat(5,1fr); }
@media (max-width:1000px){ .vi__stats--cols-2,.vi__stats--cols-3,.vi__stats--cols-4,.vi__stats--cols-5 { grid-template-columns: repeat(2,1fr); } }
@media (max-width:560px){ .vi__stats--cols-1,.vi__stats--cols-2,.vi__stats--cols-3,.vi__stats--cols-4,.vi__stats--cols-5 { grid-template-columns: 1fr; } }

/* stats-only statistics panel (no vision text): drop the impact top gap */
.vi--no-vision .vi__impact { margin-top: 0; }

/* =========================================================
   Single event page (dc_event) — Figma "Event / Single" (3117:2379)
   ========================================================= */
.ev-detail__hero .page-header__panel { min-height: 246px; }
.ev-detail { padding-block: 56px 72px; }
.ev-detail__grid { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 42px; align-items: start; }
.ev-detail__main { min-width: 0; }
.ev-detail__h2 { margin: 0 0 20px; }
.ev-detail__prose > :first-child { margin-top: 0; }
.ev-detail__moreinfo { margin: 28px 0 0; }

/* Event Details panel */
.ev-detail__side { position: sticky; top: 140px; }
.ev-detail__card { background: #fff; border: 1.5px solid var(--color-green-accessible); border-radius: 8px; padding: 26px 32px 32px; display: flex; flex-direction: column; gap: 18px; }
.ev-detail__card-title { margin: 0; }
.ev-detail__field { display: flex; flex-direction: column; gap: 4px; }
.ev-detail__label { font-weight: 900; color: var(--color-green-accessible); font-size: 16px; }
.ev-detail__value { color: var(--color-text-black); font-size: var(--font-size-body); line-height: 1.55; }
.ev-detail__divider { height: 1px; background: #e4e4e4; }
.ev-detail__book { width: 100%; justify-content: center; }

/* Related events: column count follows how many there are, still collapses on small screens */
.ev-detail__related { padding-top: 8px; }
.ev-detail__related .events__grid { grid-template-columns: repeat(var(--rel-cols, 4), 1fr); }

@media (max-width: 1000px) {
	.ev-detail__grid { grid-template-columns: 1fr; gap: 32px; }
	.ev-detail__side { position: static; }
	.ev-detail__related .events__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.ev-detail__related .events__grid { grid-template-columns: 1fr; }
}

/* training / event single with no details panel (fewer than 2 fields): body goes full width */
.ev-detail--nopanel .ev-detail__grid { grid-template-columns: 1fr; }

/* =========================================================
   dc/details block — sticky key-details panel for project / service pages
   (reuses the .ev-detail__card styling; floats beside the page's intro text)
   ========================================================= */
.dc-details { position: sticky; top: 140px; width: 100%; }
/* two-column project intro: text left, sticky details panel right (place the dc/details block
   in the right column of a Columns row). The right column stretches so the panel can travel. */
.dc-project-intro.wp-block-columns { align-items: stretch; gap: 42px; margin-top: 40px; }
.dc-project-intro .wp-block-column > :first-child { margin-top: 0; }
@media (max-width: 781px) {
	.dc-details { position: static; }
	.dc-project-intro.wp-block-columns { gap: 0; }
}
/* editor preview */
.dc-details--editor { width: min(460px, 100%); }
.dc-details--editor .ev-detail__card { gap: 10px; }
.dc-details__hint { margin: 6px 0 0; font-size: 13px; color: #5b5b5b; font-style: italic; }
.dc-details__title-input input { font-weight: 900 !important; font-size: 20px !important; }

/* =========================================================
   Single post (news article) layout â€” lisa 2026-11-04
   Framework outputs .fw-post__* / .post-layout__main but neither
   theme styled them; content ran full 1400px width. Match the
   case-study single reading column.
   ========================================================= */
.single-post .entry-content--post { max-width: 820px; margin-inline: auto; }
.single-post .fw-post__header { margin-bottom: 24px; }
.single-post .fw-post__header h1 { margin: 0 0 10px; }
.single-post .fw-post__meta { color: var(--color-green-accessible); font-weight: 700; margin: 0; }
.single-post .fw-post__thumb { margin: 0 0 32px; }
.single-post .fw-post__thumb img { width: 100%; border-radius: 16px; display: block; }
.single-post .post-layout__main > p { line-height: 1.7; margin: 0 0 1.2em; }
.single-post .post-layout__main > h3 { font-size: 24px; line-height: 1.3; margin: 1.6em 0 .4em; color: var(--color-green-accessible); }
.single-post .post-layout__main > h3:first-child { margin-top: 0; }
.single-post .post-layout__main a { font-weight: 700; }
/* Mega-menu column titles: turn green on hover (titles only) — lisa 2026-11-04 */
.main-navigation .has-mega-menu > .sub-menu > li > a:hover { color: var(--color-green-accessible); }
/* Training cards: thinner image to match design (~2.6:1), applies only to training (not events) — lisa 2026-11-04 */
.events--training .event-card__media { aspect-ratio: 2.6 / 1; }
/* Meet the Team cards -> design 172 (white cards, edge-to-edge photo, dark role, no bio) — lisa 2026-11-04 */
.team-card__role { color: #3C3131; }
.team-card__bio { display: none; }
/* hide empty project date div so it adds no gap — lisa 2026-11-04 */
.project__date:empty { display: none; }

/* All card arrow-links sit bottom-right (match the project cards) — lisa 2026-11-04 */
.cards__link { align-self: flex-end; }
.cards__grid .cards__link { justify-self: end; }
/* Card dividers aligned across the row + arrows uniform — lisa 2026-11-04 */
/* fix the title to a 3-line block so the coloured line always sits at the same height (works in grid AND slider; long titles clamp with ellipsis) */
.cards__title { min-height: 3lh; } /* line-clamp removed for WCAG 1.4.12 text spacing */
.cards__grid .cards__title { min-height: 3lh; }
/* .project__body h3 line-clamp removed for WCAG 1.4.12 */
/* all card arrow-links the same size as the project cards (36px) */
/* Project cards: smaller arrows (~design) + shorter cards by clamping the description to 3 lines — lisa 2026-11-04 */
.project__link .btn__arrow, .cards__link .btn__arrow, .card__arrow .btn__arrow { width: 22px; height: 22px; }
/* .project__body p line-clamp removed for WCAG 1.4.12 */
/* News block (dc/news / news-card) -> design 181: thin image, compact (date under title), not tall — lisa 2026-11-04 */
.news__grid { align-items: stretch; }
.news-card__media { aspect-ratio: 5 / 2; }
.news-card__date { margin-top: 0; }

/* =========================================================
   Forminator forms, styled to the DCT theme (all forms use Forminator).
   Forms are set to Forminator's "none" design so these rules own the look.
   2026-11-09 (owen, membership form)
   ========================================================= */
.forminator-ui.forminator-custom-form { max-width: 860px; margin: 32px 0 0; color: var(--color-text-black); font: inherit; }
.forminator-ui.forminator-custom-form .forminator-row { margin-bottom: 22px; }
.forminator-ui.forminator-custom-form .forminator-row:last-child { margin-bottom: 0; }
.forminator-ui.forminator-custom-form .forminator-field { margin-bottom: 0; }
.forminator-ui.forminator-custom-form .forminator-label {
	display: block; font-weight: 700; color: var(--color-text-black); margin: 0 0 8px; font-size: 1rem; line-height: 1.4;
}
.forminator-ui.forminator-custom-form .forminator-required { color: var(--color-pink-accessible); margin-left: 2px; }
.forminator-ui.forminator-custom-form .forminator-description { display: block; font-size: .9rem; color: #5b5b5b; margin-top: 6px; }

.forminator-ui.forminator-custom-form input.forminator-input,
.forminator-ui.forminator-custom-form textarea.forminator-textarea,
.forminator-ui.forminator-custom-form select {
	width: 100%; box-sizing: border-box; font: inherit; color: var(--color-text-black);
	background: #fff; border: 1px solid #767676; border-radius: 8px; padding: 11px 14px; min-height: 48px;
	transition: border-color .15s ease;
}
.forminator-ui.forminator-custom-form select { appearance: auto; padding-right: 10px; }
.forminator-ui.forminator-custom-form input.forminator-input:focus,
.forminator-ui.forminator-custom-form textarea.forminator-textarea:focus,
.forminator-ui.forminator-custom-form select:focus {
	outline: 2px solid var(--color-green-accessible); outline-offset: 1px; border-color: var(--color-green-accessible);
}
.forminator-ui.forminator-custom-form input::placeholder { color: #8a8a8a; }

/* checkboxes and the privacy consent */
.forminator-ui.forminator-custom-form .forminator-checkbox {
	display: flex; align-items: flex-start; gap: 10px; margin: 0 0 10px; font-weight: 400; cursor: pointer; line-height: 1.45;
}
.forminator-ui.forminator-custom-form .forminator-checkbox-inline { display: inline-flex; margin-right: 26px; }
.forminator-ui.forminator-custom-form .forminator-checkbox input[type="checkbox"] {
	width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--color-green-accessible); position: static; opacity: 1;
}
.forminator-ui.forminator-custom-form .forminator-checkbox-box { display: none; }
.forminator-ui.forminator-custom-form .forminator-field-gdprcheckbox a { color: #4e7619; }

/* the Stripe card element sits in a field-styled box */
.forminator-ui.forminator-custom-form .forminator-stripe-element,
.forminator-ui.forminator-custom-form .StripeElement {
	background: #fff; border: 1px solid #cfcfcf; border-radius: 8px; padding: 13px 14px;
}

/* submit, matching .btn--green */
.forminator-ui.forminator-custom-form .forminator-button-submit {
	display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
	background: var(--color-green-accessible); color: #fff; border: 2px solid var(--color-green-accessible);
	border-radius: 10px 10px 0 10px; padding: 13px 32px; font: inherit; font-weight: 700; font-size: 18px; line-height: 1.2;
	transition: background .15s ease, color .15s ease;
}
.forminator-ui.forminator-custom-form .forminator-button-submit:hover,
.forminator-ui.forminator-custom-form .forminator-button-submit:focus-visible { background: #fff; color: var(--color-text-black); }

/* validation + response */
.forminator-ui.forminator-custom-form .forminator-error-message {
	display: block; color: var(--color-pink-accessible); font-size: .92rem; font-weight: 600; margin-top: 6px;
}
.forminator-ui.forminator-custom-form .forminator-has_error input.forminator-input,
.forminator-ui.forminator-custom-form .forminator-has_error select { border-color: var(--color-pink-accessible); }
.forminator-ui.forminator-custom-form .forminator-response-message:not(:empty) {
	border-radius: 10px 10px 0 10px; padding: 16px 20px; margin-bottom: 24px; background: #eef5e6; border: 1px solid var(--color-green-accessible);
}
.forminator-ui.forminator-custom-form .forminator-response-message.forminator-error { background: #fdecf3; border-color: var(--color-pink-accessible); }
.forminator-ui.forminator-custom-form .forminator-response-message p { margin: 0; }

@media (max-width: 782px) {
	.forminator-ui.forminator-custom-form .forminator-row { margin-bottom: 18px; }
	.forminator-ui.forminator-custom-form .forminator-col + .forminator-col { margin-top: 18px; }
}

/* a11y contrast fixes 2026-11-09 START */
.vi__vision p a { color: #fff; text-decoration: underline; }
.vi__vision p a:hover, .vi__vision p a:focus { color: #fff; text-decoration: none; }
.resources__clear { color: #000; text-decoration: underline; }
/* a11y contrast fixes 2026-11-09 END */

/* a11y mobile nav + skip link 2026-11-09 START */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: #fff; color: var(--color-green-accessible); padding: 10px 16px; border: 2px solid var(--color-green-accessible); border-radius: 0 0 6px 0; font-weight: 700; text-decoration: underline; }
.skip-link:focus { left: 0; }
.nav-toggle { display: none; }
@media (max-width: 900px) {
	.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-left: auto; background: transparent; border: 2px solid var(--color-green-accessible); border-radius: 8px; cursor: pointer; }
	.nav-toggle__bars { position: relative; width: 22px; height: 16px; }
	.nav-toggle__bars span { position: absolute; left: 0; width: 100%; height: 2.5px; background: var(--color-text-black); border-radius: 2px; transition: transform .2s, opacity .2s, top .2s; }
	.nav-toggle__bars span:nth-child(1) { top: 0; }
	.nav-toggle__bars span:nth-child(2) { top: 7px; }
	.nav-toggle__bars span:nth-child(3) { top: 14px; }
	.site-header__inner { flex-wrap: wrap; align-items: center; }
	.site-header__right { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 16px; padding: 16px 0 4px; }
	.site-header.is-open .site-header__right { display: flex; }
	.site-header.is-open .nav-toggle__bars span:nth-child(1) { top: 7px; transform: rotate(45deg); }
	.site-header.is-open .nav-toggle__bars span:nth-child(2) { opacity: 0; }
	.site-header.is-open .nav-toggle__bars span:nth-child(3) { top: 7px; transform: rotate(-45deg); }
	.header-cta { flex-direction: column; width: 100%; }
	.header-cta .btn { justify-content: center; }
	.header-nav { width: 100%; }
	.main-navigation ul { flex-direction: column; align-items: flex-start; gap: 6px; }
}
/* a11y mobile nav + skip link 2026-11-09 END */
/* page hero: pin card to centred 1400 column, bleed green+image beyond 1440 (2026-11-09) START */
@media (min-width: 1441px) {
	.page-header { grid-template-columns: max(43%, calc((100vw - var(--page-width)) / 2 + var(--page-margin) + min(800px, 55vw) + 40px)) 1fr; }
	.page-header__panel { padding-left: calc((100vw - var(--page-width)) / 2 + var(--page-margin)); }
	.page-header__card { margin-left: 0; }
}
/* page hero bleed (2026-11-09) END */
/* homepage hero + help-search mobile reflow fix (2026-11-09) START */
@media (max-width: 900px) {
	.hero--block .hero__slide { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.hero__card { padding: 32px 22px; }
	.help__search { flex-wrap: wrap; }
	.help__search input { width: 100%; min-width: 0; border-right: 2px solid var(--color-green-accessible); }
	.help__search .btn { width: 100%; }
}
/* homepage hero + help-search mobile reflow fix (2026-11-09) END */
/* mobile mega-menu: stack sub-menu to one column inside the open hamburger (2026-11-09) START */
@media (max-width: 600px) {
	.main-navigation .has-mega-menu.is-open > .sub-menu { grid-template-columns: 1fr; padding: 10px 0 10px 12px; gap: 14px; }
}
/* mobile mega-menu stack (2026-11-09) END */
/* mobile menu: make the open panel scroll instead of overflowing the sticky header (2026-11-09) START */
@media (max-width: 900px) {
	.site-header.is-open .site-header__right {
		max-height: calc(100vh - 148px);
		max-height: calc(100dvh - 148px);
		overflow-y: auto;
		overscroll-behavior: contain;
	}
}
/* mobile menu scroll (2026-11-09) END */
/* =========================================================
   Village halls map: every hall shown, members marked out (DCT, 9-10 Nov 2026).
   Star pin + "DCT member" badge for members, plain dot for other halls.
   2026-11-10 (owen, village-halls)
   ========================================================= */
.dc-map__count-sub { display: block; margin-top: 6px; font-weight: 700; color: var(--color-green-accessible); }
.dc-map__key { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; }
.dc-map__key-item { display: flex; align-items: center; gap: 10px; }
.dc-map__key .dc-map__pin { width: 20px; height: 27px; color: var(--color-text-black); flex: none; }
.dc-map__dot { width: 14px; height: 14px; border-radius: 50%; background: #8a8a8a; border: 2px solid #fff; box-shadow: 0 0 0 1px #8a8a8a; flex: none; }

.dc-map__pinicon { background: none; border: 0; }
.dc-map__pinicon > span { display: block; width: 26px; height: 34px; filter: drop-shadow( 0 2px 2px rgba( 0, 0, 0, .35 ) ); }
.dc-map__pinicon svg { display: block; width: 26px; height: 34px; }
.dc-map__pinicon:focus-visible { outline: 3px solid var(--color-text-black); outline-offset: 2px; border-radius: 4px; }

.dc-map .leaflet-popup-content { margin: 14px 16px; font-size: 14px; line-height: 1.45; }
.dc-vh-pop { display: flex; flex-direction: column; gap: 6px; }
.dc-vh-pop__img { width: 100%; height: 120px; object-fit: cover; border-radius: 6px; margin-bottom: 4px; }
.dc-vh-pop__badge,
.dc-vh-card__badge { align-self: flex-start; display: inline-block; background: var(--color-green-accessible); color: #fff; font-weight: 700; font-size: 12px; line-height: 1; letter-spacing: .02em; border-radius: 20px; padding: 5px 10px; }
.dc-vh-pop__name { font-size: 16px; line-height: 1.25; }
.dc-vh-pop__district { color: #5b5b5b; font-weight: 700; margin-top: -4px; }
.dc-vh-pop__contact a { color: var(--color-green-accessible); word-break: break-word; }
.dc-vh-pop__facts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.dc-vh-pop__facts > span { background: #eef3e7; color: #3f5a1d; border-radius: 6px; padding: 2px 8px; font-size: 12.5px; }
.dc-map .leaflet-popup-content a.dc-vh-pop__link { align-self: flex-start; margin-top: 6px; background: var(--color-green-accessible); color: #fff; font-weight: 700; text-decoration: none; border-radius: 10px 10px 0 10px; padding: 9px 16px; }
.dc-map .leaflet-popup-content a.dc-vh-pop__link:hover,
.dc-map .leaflet-popup-content a.dc-vh-pop__link:focus-visible { background: var(--color-text-black); }

/* non-member cards are buttons that show the hall on the map */
button.dc-vh-card { width: 100%; text-align: left; font: inherit; padding: 0; cursor: pointer; }
.dc-vh-card__badge { margin-bottom: 8px; }
.dc-vh-card--member { border-color: var(--color-green-accessible); }

/* single hall page: member chip beside the district */
.vh-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vh-chip--member { background: var(--color-green-accessible); color: #fff; }
/* village halls map members END */

/* =========================================================
   Village halls map: count and key boxed so they stand out (Monica, 10 Nov 2026).
   2026-11-10 (owen, village-halls)
   ========================================================= */
.dc-map--vhalls .dc-map__count { background: #eef4e3; border-radius: 10px 10px 0 10px; padding: 18px 20px; }
.dc-map--vhalls .dc-map__count-label { color: #3f3f3f; }
.dc-map__keybox { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; background: #f1f1f1; border-radius: 10px 10px 0 10px; padding: 12px 18px; margin: 0 0 14px; }
.dc-map__keytitle { margin: 0; font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; }
.dc-map__keybox .dc-map__key { margin: 0; }
.dc-map__keybox .dc-map__dot { border-color: #f1f1f1; }
/* village halls map boxes END */

/* dc/projects: 50px gap below the section title when there is no intro, and subgrid so the
   coloured rule sits tight under one-line titles but all titles in a row match height when one
   wraps - same behaviour as dc/cards. Seen on Grants and Funding. lisa 2026-11-10 START */
.projects__head + .projects__cards,
.projects__head + .projects__slider { margin-top: 50px; }

@supports (grid-template-rows: subgrid) {
	.projects__cards {
		grid-template-columns: repeat(3, 1fr);
		grid-template-rows: auto auto auto auto 1fr auto;
		column-gap: var(--grid-gutter);
		row-gap: 0;
	}
	.projects__cards .project { grid-column: auto; display: grid; grid-template-rows: subgrid; grid-row: span 6; }
	.projects__cards .project__body { display: contents; }
	.projects__cards .project__media { grid-row: 1; }
	.projects__cards .project__body h3 { grid-row: 2; min-height: 0; margin: 0; padding: 18px 14px 0; }
	.projects__cards .project__date { grid-row: 3; padding: 0 14px; }
	.projects__cards .project__body hr { grid-row: 4; margin: 10px 14px; width: auto; }
	.projects__cards .project__body p { grid-row: 5; margin: 0 14px; }
	.projects__cards .project__link { grid-row: 6; margin: 10px 14px 14px; align-self: start; justify-self: end; }
}
@media (max-width: 1000px) { @supports (grid-template-rows: subgrid) { .projects__cards { grid-template-columns: repeat(2, 1fr); } } }
@media (max-width: 560px)  { @supports (grid-template-rows: subgrid) { .projects__cards { grid-template-columns: 1fr; } } }
/* dc/projects head-gap + subgrid alignment. lisa 2026-11-10 END */

/* Village hall map: AA contrast fixes (TAE 10 Nov 2026). lisa 2026-11-10 START */
.dc-map--vhalls .dc-map__count-sub { color: #4e7619; } /* green #547e1d on #eef4e3 panel was 4.26:1, needs 4.5 */
.dc-map__search { border-color: #8c8c8c; }             /* field border was #cfcfcf 1.55:1, needs 3 */
/* Village hall map contrast. lisa 2026-11-10 END */

/* =========================================================
   Forminator forms everywhere (contact, enquiry, DSEN, mailing list, membership).
   Fields match the Contact page form; the submit takes the block's colour and the house arrow.
   2026-11-10 (owen, forms)
   ========================================================= */
.dc-fm .forminator-ui.forminator-custom-form { margin-top: 0; max-width: none; }
.contact__form-col .dc-fm { margin-top: 8px; }
.dc-fm--green  { --btn-c: var(--color-green-accessible); }
.dc-fm--purple { --btn-c: var(--color-purple); }
.dc-fm--blue   { --btn-c: var(--color-blue); }
.dc-fm--teal   { --btn-c: var(--color-teal); }
.dc-fm--pink   { --btn-c: var(--color-pink-accessible); }
.dc-fm--yellow { --btn-c: var(--color-yellow-accessible); }

.forminator-ui.forminator-custom-form input.forminator-input,
.forminator-ui.forminator-custom-form textarea.forminator-textarea { padding: 9px 14px; min-height: 0; }
.forminator-ui.forminator-custom-form textarea.forminator-textarea { resize: vertical; min-height: 130px; padding: 10px 14px; }
.forminator-ui.forminator-custom-form textarea::placeholder { color: #8a8a8a; }

.forminator-ui.forminator-custom-form .forminator-button-submit {
	background: var(--btn-c, var(--color-green-accessible)); border-color: var(--btn-c, var(--color-green-accessible));
}
.forminator-ui.forminator-custom-form .forminator-button-submit::after {
	content: ""; width: 20px; height: 20px; flex: none; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7 7L17 17M17 17V9M17 17H9' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7 7L17 17M17 17V9M17 17H9' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* radios, styled like the checkboxes */
.forminator-ui.forminator-custom-form .forminator-radio {
	display: flex; align-items: flex-start; gap: 10px; margin: 0 0 10px; font-weight: 400; cursor: pointer; line-height: 1.45;
}
.forminator-ui.forminator-custom-form .forminator-radio-inline { display: inline-flex; margin-right: 26px; }
.forminator-ui.forminator-custom-form .forminator-radio input[type="radio"] {
	width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--color-green-accessible); position: static; opacity: 1;
}
.forminator-ui.forminator-custom-form .forminator-radio-bullet { display: none; }
.forminator-ui.forminator-custom-form .forminator-field-checkbox .forminator-label,
.forminator-ui.forminator-custom-form .forminator-field-radio .forminator-label { margin-bottom: 12px; }

.dc-fm__missing { padding: 14px 18px; background: #fdecf3; border: 1px solid var(--color-pink-accessible); border-radius: 8px; }
/* the submit row keeps Forminator's 30px bottom margin, leaving more space below a form than above (Monica, 10 Nov) */
/* Forminator's grid sheet sets it with :not(.forminator-size--small)[data-grid], so match that and add body to win */
body .dc-fm .forminator-row-last,
body .forminator-ui.forminator-custom-form:not(.forminator-size--small)[data-grid] .forminator-row.forminator-row-last,
body .forminator-ui.forminator-custom-form .forminator-row.forminator-row-last { margin-bottom: 0; }
/* consent field (newsletter opt-in): tick box beside its text, like the privacy tick box */
.forminator-ui.forminator-custom-form .forminator-checkbox__wrapper { display: flex; align-items: flex-start; gap: 10px; }
.forminator-ui.forminator-custom-form .forminator-checkbox__wrapper .forminator-checkbox { margin: 0; flex: none; }
.forminator-ui.forminator-custom-form .forminator-consent__label { line-height: 1.45; }
.forminator-ui.forminator-custom-form .dc-fm__note { margin: 0; font-size: .95rem; }
/* forminator forms END */

/* A11y CSV fixes 10 Nov (TAE). lisa 2026-11-10 START */
.mform__field input, .mform__field textarea { border-color: #767676; } /* was #cfcfcf 1.41:1, needs 3 */
.cards__arrow:disabled { opacity: 1; background: #d3d3d3; color: #4a4a4a; box-shadow: none; transition: none; } /* faded white chevron on green failed 1.48:1 */
/* A11y CSV fixes. lisa 2026-11-10 END */

/* dc-fm (Forminator) field border contrast - TAE. lisa 2026-11-10 */
.dc-fm input, .dc-fm textarea, .dc-fm select, .dc-fm .forminator-input, .dc-fm .forminator-textarea, .dc-fm .forminator-select { border-color: #767676 !important; } /* dc-fm field border, beats Forminator CSS */

/* Forminator consent checkbox link contrast - TAE. lisa 2026-11-10 */
.forminator-checkbox-label a, .dc-fm .forminator-checkbox-label a { color: #4e7619; } /* consent checkbox link contrast, #547e1d on #f4f4f5 was 4.36:1 */

/* projects slider disabled arrow: match cards fix (no transition blend, dark chevron). lisa 2026-11-10 */
.projects__arrow:disabled { opacity: 1; background: #d3d3d3; color: #4a4a4a; box-shadow: none; transition: none; }

/* YouTube facade (click-to-load) - fills the same absolute-positioned embed box as the iframe did. lisa 2026-11-10 */
.dc-ytfacade { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; cursor: pointer; background: #000; display: block; overflow: hidden; }
.dc-ytfacade__thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.dc-ytfacade__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 68px; height: 48px; display: block; transition: transform .15s ease, opacity .15s ease; }
.dc-ytfacade__icon { width: 100%; height: 100%; display: block; filter: drop-shadow(0 1px 3px rgba(0,0,0,.4)); }
.dc-ytfacade:hover .dc-ytfacade__play, .dc-ytfacade:focus-visible .dc-ytfacade__play { transform: translate(-50%, -50%) scale(1.08); }
.dc-ytfacade:focus-visible { outline: 3px solid var(--color-green-accessible, #4e7619); outline-offset: 2px; }

/* Resources search field border contrast - TAE. lisa 2026-11-10 */
#dc-res-search { border-color: #767676; } /* was #cfcfcf 1.42:1 */

/* Editor teal TEXT colour is too light on tints (fails AA); use an accessible teal for text only - backgrounds keep brand teal. lisa 2026-11-10 */
.has-teal-color.has-text-color { color: #06866C !important; } /* accessible teal text, was #079E7F */

/* Newsletter note link (Brevo privacy policy) - green on the light-green panel fails AA. lisa 2026-11-10 */
.dc-fm__note a { color: #4e7619; } /* was #547e1d 4.24:1 on #eef3e7 */

/* Centre an incomplete bottom row of help cards (3-across desktop; grid is 12-col, cards span 4). lisa 2026-11-10 START */
@media (min-width: 783px) {
	/* last row has 2 cards (total = 3n+2): shift the first of the two inward by one card width */
	.help__cards .card:nth-child(3n+1):nth-last-child(2) { grid-column: 3 / span 4; }
	/* last row has 1 card (total = 3n+1): centre the single card */
	.help__cards .card:last-child:nth-child(3n+1) { grid-column: 5 / span 4; }
}
/* Centre incomplete help-card row. lisa 2026-11-10 END */

/* dc/icons slider (more than 4 resources, no filter): one row of 4 + prev/next arrows, mirrors dc/projects. lisa 2026-11-10 START */
.icons__slider { position: relative; }
.icons__viewport { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; padding: 34px 2px 20px; }
.icons__viewport::-webkit-scrollbar { display: none; }
.icons__viewport .icard { flex: 0 0 calc(25% - 21px); margin-top: 0; }
.icons__nav { display: flex; justify-content: flex-end; gap: 12px; margin-top: 6px; }
.icons__arrow { width: 46px; height: 46px; padding: 0; border: none; border-radius: 10px 10px 0 10px; background: var(--color-green); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: var(--effect-shadow); transition: background .2s; }
.icons__arrow:hover:not(:disabled) { background: var(--color-green-accessible); }
.icons__arrow svg { width: 22px; height: 22px; }
.icons__arrow:disabled { opacity: 1; background: #d3d3d3; color: #4a4a4a; box-shadow: none; transition: none; }
.icons__slider--static .icons__nav { display: none; }
@media (max-width: 1000px) { .icons__viewport .icard { flex-basis: calc(50% - 14px); } }
@media (max-width: 560px)  { .icons__viewport .icard { flex-basis: 84%; } }
/* dc/icons slider. lisa 2026-11-10 END */

/* Case Studies block title: left-aligned everywhere (was centred). lisa 2026-11-10 */
.dc-case-studies .cards__head { text-align: left; margin-left: 0; max-width: none; }

/* owen 2026-11-12: internal testing r66 r68 r69 r70 r72 r75 r77 r78, help-cards options, vision outro START */
/* r75 r77 r70: titles reserve no empty lines. Grids line up through subgrid; sliders through the theme.js title equaliser */
.cards__title, .cards__grid .cards__title { min-height: 0; }
/* r75: the card subgrid inherited the grid's 28px gap between title, line and text */
.cards__grid .cards__item { row-gap: 0; }
.project__body h3 { min-height: 0; }
/* r68: CTA body text as wide as the heading */
.cta__intro { max-width: none; }
/* r72: filter dropdown outline for keyboard focus only */
/* Chrome counts a mouse click on a <select> as :focus-visible, so theme.js marks mouse focus with .is-mouse-focus */
.news-archive__cat.is-mouse-focus:focus,
.staff__cat.is-mouse-focus:focus,
.dc-map__select.is-mouse-focus:focus { outline: none; }
/* r69: mega menu column titles with no link are labels, not controls */
.main-navigation .has-mega-menu > .sub-menu > li > a:not([href]),
.main-navigation .has-mega-menu > .sub-menu > li > a:not([href]):hover { color: var(--color-text-black); cursor: default; }
/* r66: page hero 5 columns colour, 7 columns image (Figma), at every desktop width */
@media (min-width: 901px) {
	.page-header { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
@media (min-width: 1441px) {
	.page-header { grid-template-columns: calc((100vw - var(--page-width)) / 2 + var(--page-margin) + (var(--page-width) - 2 * var(--page-margin)) * 5 / 12) minmax(0, 1fr); }
}
/* r78: what3words sits inside the Address card with its red logo badge */
.contact__detail--stack { flex-direction: column; align-items: stretch; gap: 18px; }
.contact__row { display: flex; align-items: center; gap: 16px; }
.contact__badge--w3w { background: #e11f26; color: #fff; font-weight: 800; font-size: 19px; letter-spacing: -1px; line-height: 1; }
/* help-cards: 2, 3 or 4 across, heading alignment, number or icon badges */
@media (min-width: 783px) {
	.help__cards.help__cards--cols-2 .card:nth-child(n) { grid-column: auto / span 6; }
	.help__cards.help__cards--cols-2 .card:last-child:nth-child(odd) { grid-column: 4 / span 6; }
	/* 4 across on an 8 column track (same card width as span 3 of 12) so a part row of 1, 2 or 3 can be centred */
	.help__cards.help__cards--cols-4 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
	.help__cards.help__cards--cols-4 .card:nth-child(n) { grid-column: auto / span 2; }
	.help__cards.help__cards--cols-4 .card:nth-child(4n+1):nth-last-child(3) { grid-column: 2 / span 2; }
	.help__cards.help__cards--cols-4 .card:nth-child(4n+1):nth-last-child(2) { grid-column: 3 / span 2; }
	.help__cards.help__cards--cols-4 .card:nth-child(4n+1):last-child { grid-column: 4 / span 2; }
}
.help--center .help__intro { justify-content: center; text-align: center; }
.help--center .help__intro > div { margin-inline: auto; }
.card__badge { width: 52px; height: 52px; border-radius: 12px 12px 0 12px; background: var(--card-accent, var(--color-green)); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 24px; line-height: 1; margin: 4px 0 14px; }
.card--yellow .card__badge { color: var(--color-text-black); }
.card__badge img { width: 30px; height: 30px; object-fit: contain; }
/* vision: closing text under the aims */
.vi__vision > .vi__outro { margin: 24px 0 0; }
/* 12px sideways scroll around 1000 to 1060px: flex images would not shrink below their natural width, so the footer logos overflowed */
.footer__accred img.accred-logo { min-width: 0; flex: 0 1 auto; }
/* r73 news article: standard hero, article left, sticky sidebar right */
.news-single__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 6px 0 0; color: var(--color-green-accessible); font-weight: 700; }
.news-single__meta time { margin-right: 6px; }
.news-single__tag { font-size: 14px; font-weight: 700; color: var(--color-text-black); background: #eef4e3; border-radius: 8px 8px 0 8px; padding: 4px 10px; text-decoration: none; }
.news-single__tag:hover, .news-single__tag:focus-visible { background: var(--color-green-accessible); color: #fff; }
.news-single__layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 60px; align-items: start; padding-block: 56px 72px; }
.single-post .news-single__main.entry-content--post { max-width: none; margin: 0; padding: 0; }
.news-single__main .post-layout__main > :first-child { margin-top: 0; }
.news-single__main img { max-width: 100%; height: auto; border-radius: 16px; }
.news-single__back { margin: 40px 0 0; }
.news-single__aside { position: sticky; top: 150px; display: flex; flex-direction: column; gap: 24px; }
.news-single__box { background: #fff; border: 1px solid #ececec; border-radius: 16px 16px 0 16px; box-shadow: var(--effect-shadow); padding: 24px; }
.news-single__h { font-size: 22px; margin: 0 0 16px; }
.news-single__share { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.news-single__share .soc { width: 44px; height: 44px; border-radius: 10px 10px 0 10px; display: grid; place-items: center; background: #f4f4f5; color: var(--color-text-black); border: 0; cursor: pointer; padding: 0; }
.news-single__share .soc svg { width: 22px; height: 22px; }
.news-single__share .soc:hover, .news-single__share .soc:focus-visible { background: var(--color-green-accessible); color: #fff; }
.news-single__share .soc--fb { color: #1877f2; } .news-single__share .soc--li { color: #0a66c2; }
.news-single__copied { margin: 8px 0 0; font-size: 14px; color: var(--color-green-accessible); min-height: 1lh; }
.news-single__rel { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.news-single__rel a { display: flex; gap: 14px; align-items: flex-start; text-decoration: none; color: var(--color-text-black); }
.news-single__thumb { flex: 0 0 84px; height: 64px; border-radius: 10px 10px 0 10px; background-size: cover; background-position: center; background-color: #e9e9e9; }
.news-single__reltitle { display: block; font-weight: 700; line-height: 1.3; }
.news-single__reldate { display: block; font-size: 14px; color: #5b5b5b; margin-top: 4px; }
.news-single__rel a:hover .news-single__reltitle, .news-single__rel a:focus-visible .news-single__reltitle { color: var(--color-green-accessible); text-decoration: underline; }
.news-single__box--signup { background: #eef4e3; border-color: #eef4e3; }
.news-single__box--signup p { margin: 0 0 16px; }
@media (max-width: 1000px) {
	.news-single__layout { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 40px 56px; }
	.news-single__aside { position: static; }
}
/* news article hero: same height as the home hero (626px at desktop, 300px image on mobile), image centred */
.news-single .page-header__media { min-height: 626px; background-position: center; }
.news-single__main { overflow-wrap: anywhere; } /* long pasted URLs wrap on mobile */
@media (max-width: 900px) { .news-single .page-header__media { min-height: 300px; } }
/* r76 Vacancies block (dc/vacancies) and single vacancy */
.vacancies { margin-block: 40px; }
.vacancies__heading { margin: 0 0 24px; }
.vacancies__list { display: flex; flex-direction: column; gap: 24px; }
.vacancy-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: end; background: #fff; border: 1px solid #ececec; border-radius: 16px 16px 0 16px; box-shadow: var(--effect-shadow); padding: 32px; }
.vacancy-card__title { margin: 0 0 18px; font-size: 26px; line-height: 1.25; }
.vacancy-card__title a { color: inherit; text-decoration: none; }
.vacancy-card__title a:hover, .vacancy-card__title a:focus-visible { color: var(--color-green-accessible); text-decoration: underline; }
.vacancy-card__meta { display: flex; flex-wrap: wrap; gap: 12px 36px; margin: 0; }
.vacancy-card__meta > div { display: flex; flex-direction: column; gap: 2px; }
.vacancy-card__meta dt { font-weight: 900; color: var(--color-green-accessible); font-size: 16px; }
.vacancy-card__meta dd { margin: 0; }
.vacancy-card__summary { margin: 18px 0 0; }
.vacancy-card__btn { white-space: nowrap; }
.vacancies__empty { margin: 0; font-weight: 700; }
.vacancy-single__closing { margin: 10px 0 0; font-weight: 700; color: var(--color-green-accessible); }
.vacancy-single__closed { margin: 0 0 28px; padding: 14px 18px; border-left: 4px solid var(--color-yellow); border-radius: 8px; background: #fdf3d8; font-weight: 700; }
@media (max-width: 700px) {
	.vacancy-card { grid-template-columns: minmax(0, 1fr); padding: 24px; }
	.vacancy-card__btn { justify-self: start; }
}
/* owen 2026-11-12 END */

/* mobile menu: search bar at the top of the nav, full width (was floating beside the stacked nav). lisa 2026-11-16 START */
@media (max-width: 900px) {
	.header-nav { flex-direction: column; align-items: stretch; gap: 16px; }
	.header-search { order: -1; width: 100%; }
	.header-search summary { justify-content: flex-start; }
}
/* mobile menu search to top. lisa 2026-11-16 END */

/* mobile nav: off-canvas drawer from the right + backdrop (was an inline push-down menu). lisa 2026-11-16 START */
.nav-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility .28s ease; z-index: 998; }
@media (min-width: 901px) { .nav-backdrop { display: none; } }
@media (max-width: 900px) {
	.nav-backdrop.is-visible { opacity: 1; visibility: visible; }
	.site-header__right {
		display: flex; position: fixed; top: 0; right: 0; height: 100vh; height: 100dvh;
		width: min(86vw, 360px); max-width: 360px; background: #fff;
		transform: translateX(100%); transition: transform .3s ease;
		overflow-y: auto; overscroll-behavior: contain;
		z-index: 999; box-shadow: -6px 0 28px rgba(0,0,0,.18);
		padding: 110px 20px 28px; align-items: stretch; gap: 16px;
	}
	.site-header.is-open .site-header__right { transform: translateX(0); max-height: none; }
	.nav-toggle { position: relative; z-index: 1001; }
}
/* mobile nav drawer. lisa 2026-11-16 END */

/* consent/privacy link in Forminator consent fields: accessible green that passes on the pale-green form background too (WCAG 1.4.3). lisa 2026-11-16 START */
.forminator-custom-form .forminator-field-consent a,
.forminator-custom-form .forminator-consent a { color: #4e7619; }
/* consent/privacy link END */

/* mobile nav refinements v2 (Lisa 2026-11-16): full-width drawer, solid white X, dropdown heading size, CTAs to bottom, shrink-on-scroll logo. START */
@media (max-width: 900px) {
	/* 2. full-width drawer so long nav labels (e.g. "Support for the Voluntary Sector") are not cramped */
	.site-header__right { width: 100vw; max-width: 100vw; box-shadow: none; }
	/* 1. solid white X close button */
	.site-header.is-open .nav-toggle { background: #fff; }
	/* 4. move the three CTA buttons to the bottom of the menu (below Contact) */
	.site-header__right .header-nav { order: 1; }
	.site-header__right .header-cta { order: 2; }
	/* 3. dropdown section headings: same size as the other menu options, kept extra bold */
	.main-navigation .has-mega-menu > .sub-menu > li > a { font-size: 17px; font-weight: 800; }
	/* 5. shrink the logo to the hamburger height once scrolled, so the sticky header stays compact */
	.site-branding .custom-logo,
	.site-branding img { transition: max-height .2s ease; }
	.site-header.is-scrolled .site-branding .custom-logo,
	.site-header.is-scrolled .site-branding img { max-height: 46px; }
}
/* mobile nav refinements v2 END */

/* homepage hero: reserve the tallest slide's height on mobile so changing slide message doesn't bump the page below (CLS). lisa 2026-11-16 START */
@media (max-width: 900px) {
	.hero--block { display: grid; }
	.hero--block .hero__slide { grid-area: 1 / 1; }
	.hero--block .hero__slide:not(.is-active) { display: grid; visibility: hidden; }
}
/* homepage hero fixed height END */

/* 'How can we help' search: keep the button inline inside the search box on mobile (was stacking full-width below). lisa 2026-11-16 START */
@media (max-width: 600px) {
	.help__search { flex-wrap: nowrap; width: 100%; max-width: 100%; }
	.help__search input { width: auto; flex: 1; min-width: 0; border-right: 0; }
	.help__search .btn { width: auto; white-space: nowrap; flex: 0 0 auto; }
}
/* help search inline button END */

/* 'Our Vision and Strategy' purple panel (dc/statistics) on mobile: image full-width at the top of the box + halve the panel padding (48->24). lisa 2026-11-16 START */
@media (max-width: 1000px) {
	.vi__panel { padding: 24px; }
	.vi__media { position: static; width: auto; margin: -24px -24px 20px; min-height: 300px; border-radius: 0; }
}
/* vision panel mobile END */

/* text/image (dc/text-media) blocks on mobile: always stack text first, image after — regardless of the desktop media side. Cards are a separate component and unaffected. lisa 2026-11-16 START */
@media (max-width: 1000px) {
	.split__inner .split__text { order: 1; }
	.split__inner .split__media { order: 2; }
}
/* text-media image-after-text mobile END */

/* testimonials: on mobile the 1-4 grid becomes a swipe slider with arrows (desktop grid unchanged). lisa 2026-11-16 START */
@media (max-width: 1000px) {
	.feedback__mslider .feedback__cards {
		display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
		scrollbar-width: none; -ms-overflow-style: none; padding: 24px 4px 8px;
	}
	.feedback__mslider .feedback__cards::-webkit-scrollbar { display: none; }
	.feedback__mslider .feedback__cards > .testimonial { flex: 0 0 85%; width: auto; scroll-snap-align: start; }
	.feedback__nav--m { display: flex; }
}
@media (min-width: 1001px) { .feedback__nav--m { display: none; } }
/* testimonials mobile slider END */

/* 'Our Current Projects' MOBILE ONLY: gap between stacked cards + 'View All' button moved below the cards. Desktop (>1000px) untouched. lisa 2026-11-16 START */
.projects__foot { display: none; }
@media (max-width: 1000px) {
	@supports (grid-template-rows: subgrid) {
		.projects__cards { row-gap: 32px; }
		.projects__cards .project { row-gap: 0; }
	}
}
@media (max-width: 640px) {
	.projects__head .btn { display: none; }
	.projects__foot { display: flex; justify-content: center; margin-top: 32px; }
}
/* projects mobile gap + button END */

/* generic page hero (.page-header) MOBILE ONLY: fit the box height to the copy, photo 180px, card overlaps the photo by 40px, 24px of colour below. Per Lisa's Figma mockup 16 Nov 2026. Desktop (>900px) untouched. lisa 2026-11-16 START */
@media (max-width: 900px) {
	.page-header__media { min-height: 0; width: 100%; aspect-ratio: var(--ph-ratio, 16 / 9); max-height: 340px; /* cap so portrait hero images don't run long on mobile (landscape unaffected). lisa 2026-11-18 */ }
	.page-header__panel { flex-direction: column; align-items: stretch; min-height: 0; padding: 0 0 24px; }
	.page-header__card { margin-top: -40px; }
	.page-header__card h1 { font-size: clamp(32px, 8.5vw, 36px); } /* keep hero H1 above the 28px/34px mobile H2. lisa 2026-11-18 */
}
/* page hero fit-to-copy mobile END */

/* accessibility errors from the 17 Nov editor scan (contrast + visibility). lisa 2026-11-17 START */
.cs-single__eyebrow { color: #767676; opacity: 1; } /* was #fff on #fff — invisible category label */
.testimonial--teal .testimonial__name { color: #06866c; } /* teal #079E7F 3.38:1 -> 4.53:1 */
.cta__intro a { color: #4c721a; } /* green link on lavender CTA panel 3.86:1 -> 4.54:1 */
.mform a { color: #4c721a; } /* green link on #f4f4f5 member-form area 4.36:1 -> passes */
/* a11y errors 17 Nov END */

/* green link on #f4f4f5 member-apply intro (contact block) 4.36:1 -> passes. lisa 2026-11-17 */
.contact__intro a { color: #4c721a; }

/* Mobile fixes from client feedback r89 to r93 (DCRF page). owen 2026-11-20 START */
/* dc/text-media "Show the whole image": no crop, the box takes the image's own proportions */
.split__media--contain { background-size: contain; background-repeat: no-repeat; background-color: transparent; min-height: 0; aspect-ratio: var(--split-ratio, 16 / 10); border-radius: 0; }
/* stacked 50/50 sections: smaller vertical padding so sections don't sit 140px apart */
@media (max-width: 1000px) { .split__inner { gap: 32px; padding-block: 44px; } }
/* dc/accreditations, 3 or fewer logos: wrap and centre rather than spill past the card */
.accreds__track--static { flex-wrap: wrap; gap: 28px 72px; }
.accreds__track--static .accreds__item { margin-right: 0; max-width: 100%; }
.accreds__track--static .accreds__item img { max-width: 100%; }
@media (max-width: 700px) { .accreds__track--static { gap: 24px 36px; } .accreds__track--static .accreds__item img { height: 60px; } }
/* dc/icons slider: snap to whole cards; on phones one full card per view, with room for the shadow */
.icons__viewport { scroll-snap-type: x mandatory; }
.icons__viewport .icard { scroll-snap-align: start; }
@media (max-width: 560px) {
	.icons__viewport { padding-inline: 12px; margin-inline: -12px; scroll-padding-inline: 12px; gap: 24px; }
	.icons__viewport .icard { flex-basis: 100%; }
}
/* owen 2026-11-20 END */

/* Stacked 50/50s on phones: consecutive sections share one gap instead of two paddings. owen 2026-11-20 */
@media (max-width: 1000px) { .split + .split { margin-top: 0; } .split + .split .split__inner { padding-top: 0; } .split:has(+ .split) { margin-bottom: 0; } .split:has(+ .split) .split__inner { padding-bottom: 32px; } }

/* Client sheet change requests. owen 2026-11-20 START */
/* r9: wider white on purple text in the vision panel */
.vi__vision > p { max-width: min(100%, 680px); }
/* r98 / r40 / r45: consecutive 50/50 sections share one gap on desktop too */
.split:has(+ .split) { margin-bottom: 0; }
.split + .split { margin-top: 0; }
.split + .split .split__inner { padding-top: 0; }
/* r40 / r45: listing blocks with a background colour become a full width band */
.wp-block-dc-news.has-background, .wp-block-dc-case-studies.has-background, .wp-block-dc-icons.has-background,
.wp-block-dc-training.has-background, .wp-block-dc-events.has-background, .wp-block-dc-projects.has-background { padding-block: 56px; margin-block: 0; }
.has-background + .has-background { margin-top: 0; }
/* r37 */
.vh-booking-note { margin: 0 0 16px; padding: 12px 16px; border-left: 4px solid var(--color-green); background: #EEF4E6; font-weight: 700; }
/* r36: sub filters inside the expandable groups */
.dc-map__fsub { display: block; margin: 10px 0 0; }
.dc-map__fsublabel { display: block; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
/* r88 */
.dc-map__legend-item--updated::before { background: #079E7F; }
/* r93 */
.accreds__item a { display: block; }
/* owen 2026-11-20 END */

/* dc/upcoming: all upcoming training and events with filters (r135). owen 2026-11-24 */
.upcoming { padding-block: 50px 60px; }
.upcoming__head { margin-bottom: 30px; }
.upcoming__head h2 { margin: 0 0 10px; }
.upcoming .is-hidden { display: none !important; }
.upcoming__grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1200px) { .upcoming__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .upcoming__grid { grid-template-columns: 1fr; } }

/* r188 mega menu: on shorter screens the open panel scrolls, so "View all of our work" at the bottom can be reached.
   The hover bridge moves from ::before (which overflow would clip) to a transparent top border. owen 2026-11-24 */
@media (min-width: 1101px) {
	.main-navigation .has-mega-menu.is-open > .sub-menu {
		max-height: calc(100vh - 110px);
		overflow-y: auto;
		overscroll-behavior: contain;
		border-top: 24px solid transparent;
		margin-top: -24px;
		background-clip: padding-box;
	}
	.main-navigation .has-mega-menu > .sub-menu::before { content: none; }
}

/* r138 contained image size control. owen 2026-11-24 */
.split__media--contain { width: var(--split-scale, 100%); justify-self: center; align-self: center; margin-inline: auto; }

/* r151 case study topic filter. owen 2026-11-24 */
.cs-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; }
.cs-filter__btn { font: inherit; font-size: 16px; padding: 8px 16px; border: 2px solid var(--color-green-accessible, #4a7a1f); border-radius: 999px; background: #fff; color: var(--color-text-black, #222); cursor: pointer; }
.cs-filter__btn:hover, .cs-filter__btn:focus-visible { background: color-mix(in srgb, var(--color-green, #6a9a30) 15%, #fff); }
.cs-filter__btn.is-active { background: var(--color-green-accessible, #4a7a1f); color: #fff; }
.dc-case-studies .cards__item[hidden] { display: none; }

/* Sliders: shadow room. Card shadows (1px 4px 20px) were clipped at the viewport edges. The viewport gets padding equal to
   the page margin and the same negative margin, so cards still line up with the page edge and their shadows show in full.
   owen 2026-11-24 */
:root { --shadow-room: 26px; }
/* The shadow room can reach past a 20px page gutter; clip (not hidden, which would break the sticky header) stops sideways page scroll. */
html, body { overflow-x: clip; }
@media (max-width: 600px) { :root { --shadow-room: var(--page-margin); } }
.cards__viewport, .projects__viewport, .icons__viewport, .feedback__viewport {
	padding-inline: var(--shadow-room); margin-inline: calc(-1 * var(--shadow-room)); scroll-padding-inline: var(--shadow-room);
	padding-bottom: 28px;
}
.cards__viewport, .projects__viewport { padding-top: 18px; }
@media (max-width: 1000px) {
	.feedback__mslider .feedback__cards { padding-inline: var(--shadow-room); margin-inline: calc(-1 * var(--shadow-room)); scroll-padding-inline: var(--shadow-room); padding-bottom: 28px; }
}

/* r196: the project intro columns sit straight in the page content, so give them the same side padding as other sections' containers. owen 2026-11-24 */
.dc-project-intro.wp-block-columns { padding-inline: var(--page-margin); }

/* r15 topic filters hide cards with [hidden]; .cards__item sets display:flex, so restate it. owen 2026-11-24 */
.cards__item[hidden] { display: none !important; }

/* 25 Nov sheet pass (r213 r214 r215 r218 r220 r223). owen 2026-11-25 START */
/* r213, r215: a card section straight after a 50/50 starts closer to it (the 50/50 already has 70px below). */
.split + .help:not(.has-background), .split + .projects:not(.has-background) { padding-top: 0; }
/* r214: YouTube click-to-load boxes keep their 16:9 shape when columns stack on phones. */
.wp-block-embed__wrapper:has(> .dc-ytfacade) { position: relative; aspect-ratio: 16 / 9; width: 100%; }
.wp-block-embed__wrapper:has(> .dc-ytfacade)::before { display: none; }
.wp-block-columns .wp-block-column:has(.dc-ytfacade) { min-width: 0; }
@media (max-width: 781px) { .wp-block-columns.wp-block-columns:has(.dc-ytfacade) { flex-shrink: 0; } .wp-block-columns.wp-block-columns:has(.dc-ytfacade) > .wp-block-column { flex: 0 0 auto !important; width: 100%; } } /* stacked video columns keep their full height on phones */
/* r218: hall photos in the map popup keep a sensible size, portrait photos included. */
.dc-vh-pop__img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; max-height: 200px; }
/* r220: member hall and event heroes on phones fit the title box, no extra green below. */
@media (max-width: 900px) { .vh-hero .page-header__panel, .ev-detail__hero .page-header__panel { min-height: 0; } }
/* r223: touch screens have no real hover, so a tapped button does not stay white after going back. */
@media (hover: none) {
	.btn:not(.btn--outline):hover:not(:focus-visible) { background: var(--btn-c, transparent); color: #fff; }
	.btn--outline:hover:not(:focus-visible) { background: #fff; color: var(--color-text-black); }
}
/* 25 Nov sheet pass END */

/* Light coloured bands (r40, r45) run the full page width, like every other coloured band in the design. The inner .container keeps the cards at 1400. owen 2026-11-25 */
.page-content > :is(.wp-block-dc-news, .wp-block-dc-case-studies, .wp-block-dc-icons, .wp-block-dc-training, .wp-block-dc-events, .wp-block-dc-projects).has-background {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}
/* Same in the block editor: the editor caps top level blocks at 1400, so let the coloured bands span the canvas. owen 2026-11-25 */
.block-editor-block-list__layout.is-root-container > :is(.wp-block-dc-news, .wp-block-dc-case-studies, .wp-block-dc-icons, .wp-block-dc-training, .wp-block-dc-events, .wp-block-dc-projects).has-background { max-width: none; }
/* Keep the band's content on the same left edge as the sections around it (the page column's own padding no longer applies once the band breaks out). owen 2026-11-25 */
.page-content > :is(.wp-block-dc-news, .wp-block-dc-case-studies, .wp-block-dc-icons, .wp-block-dc-training, .wp-block-dc-events, .wp-block-dc-projects).has-background > .container { padding-inline: calc(2 * var(--page-margin)); }
.block-editor-block-list__layout.is-root-container > :is(.wp-block-dc-news, .wp-block-dc-case-studies, .wp-block-dc-icons, .wp-block-dc-training, .wp-block-dc-events, .wp-block-dc-projects).has-background > .container { padding-inline: calc(var(--page-margin) + clamp(0px, (100% - 1400px) / 2, var(--page-margin))); }
/* Hall map popups on phones fit inside the map: narrower, shorter photo, and the details scroll if they are long. owen 2026-11-25 */
@media (max-width: 600px) {
	.dc-map__canvas .leaflet-popup-content { width: min(220px, calc(100vw - 170px)) !important; max-height: 240px; overflow-y: auto; margin: 14px 12px 12px; }
	.dc-map__canvas .dc-vh-pop__img { max-height: 110px; }
}

/* Admin audit 25 Nov: the project intro is a Columns style (Styles panel, "Project intro"), not a typed class. Old class kept working. owen 2026-11-25 */
.wp-block-columns.is-style-project-intro { align-items: stretch; gap: 42px; margin-top: 40px; padding-inline: var(--page-margin); }
.is-style-project-intro .wp-block-column > :first-child { margin-top: 0; }
@media (max-width: 781px) { .wp-block-columns.is-style-project-intro { gap: 0; } }
/* Contact block: optional intro text, and room for the sticky header when linked to by its anchor */
.contact__intro-text { margin: 0 0 24px; }
.contact[id] { scroll-margin-top: 120px; }
