/*
Theme Name:  Childhood Matters
Theme URI:   https://childhood-matters.ie
Description: Childhood Matters — clinically led, not-for-profit organisation delivering integrated mental health, social care, childcare, education and family support services. Child theme of Speire Base.
Author:      Speire
Author URI:  https://speire.ie
Template:    speire-base
Version:     1.0.0
License:     Commercial
Text Domain: childhood-matters
Tags:        charity, not-for-profit, healthcare, childcare, education
*/

/* ==========================================================================
   DESIGN TOKENS — from the Childhood Matters Brand Guidelines
   Navy #19062D · Orange #ED6D2D · Yellow #FDCD00 · Cream #ECDFC3
   Headings: Mars Semi Condensed Black (licensed) · Body: Rethink Sans (Google)
   ========================================================================== */
:root {
    /* Brand colours */
    --color-primary:          #19062D; /* Navy — Pantone 275 */
    --color-primary-dark:     #12041F;
    --color-primary-light:    #2A0F45;

    --color-accent:           #ED6D2D; /* Orange — Pantone 151 */
    --color-accent-dark:      #C8541A;
    --color-accent-light:     #F4894F;

    --color-highlight:        #FDCD00; /* Yellow — Pantone 116 */

    /* Backgrounds — aligned to the Figma Home colour schemes */
    --color-bg:               #FBF8F3; /* Warm off-white (Figma Scheme 4 / page) */
    --color-bg-alt:           #ECDFC3; /* Cream — Pantone 7500 (brand alt band) */
    --color-bg-dark:          #140424; /* Figma Scheme 1 (dark sections) */
    --color-bg-muted:         #5E506C; /* Figma Scheme 3 (muted purple sections) */

    /* Text */
    --color-text:             #0D0A00; /* Warm near-black (Figma body text) */
    --color-text-muted:       #5A4F66;
    --color-text-inverse:     #FFFFFF;

    /* Lines / borders */
    --color-border:           #E4DAC8;
    --light-border:           rgba(13, 10, 0, 0.15);
    --offwhite-border:        rgba(255, 255, 255, 0.20);

    /* Typography */
    --font-heading: "Anton", "Barlow Condensed", "Arial Narrow", sans-serif;
    --font-body:    "Rethink Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

    /* Radius (brand: rounded 8–12px) */
    --radius-sm: 8px;
    --radius:    12px;
    --radius-pill: 999px;

    /* Elevation (subtle shadow per brand) */
    --shadow-card: 0 4px 20px rgba(25, 6, 45, 0.08);
    --shadow-lift: 0 10px 30px rgba(25, 6, 45, 0.14);
}


/* Body / headings use the brand fonts. Detailed component styles live in
   assets/css/ and are built out from the Figma design. */
body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 900;
}
.ev-cta__media { aspect-ratio: auto!important; }
@media (min-width: 1024px) {
	.ev-cta__media img {
		width: 60%!important;
		margin: auto;
	}
}
.anchor-section {
	height: 0px !important;
	padding: 0 !important;
	margin: 0 !important;
	background-color: transparent !important;
}
.light .btn--outline:hover, .break_off_bg .btn--outline:hover { color: var(--color-white)!important;}

.break_off_bg { background-color: var(--color-bg); }

section.alt-3 {
    background-color: var(--color-bg);
    color: #0d0a00;
    font-family: "Rethink Sans", sans-serif;
}
.ev-cta__inner { gap: var(--space-1)!important; }
/* Footer policies list - inline display */

section.footer { padding-top: 0 !important;}
/* Restore the native <details> closed state */
.layout-faq__item:not([open]) .layout-faq__body {
    display: none!important;
}
.contact_details{
	text-align: right;
    padding-top: 2em;
    margin-bottom: -3em;
    margin-top: 2em;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.policies {
	display: flex;
  justify-content: space-between;
  align-items: center;           
  list-style: none;             
  padding: 0;                   
  margin: 0;                     
  width: 100%; 
}

.policies > li {
	display: inline-block;
}

/* Separator between items */
.policies > li:not(:last-child)::after {
	margin-left: 15px;
}

/* Inline widget styles */
.footer-inline-widget {
	display: inline-block;
}

.footer-inline-widget .widget,
.footer-inline-widget .menu,
.footer-inline-widget .menu-item {
	display: inline-block;
	margin: 0;
	padding: 0;
}

.footer-inline-widget .menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-inline-widget .menu-item {
	margin-right: 10px;
}

.footer-inline-widget .menu-item:not(:last-child)::after {
	content: "|";
	margin-left: 10px;
}
#menu-footer-inline 
{vertical-align: middle}
/* Remove separator from menu items if they're inside the widget */
.footer-inline-widget .menu-item:last-child::after {
	content: "";
	margin: 0;
}

/* Override the main separator for the widget wrapper */
.policies > li.footer-inline-widget:not(:last-child)::after {

	margin-left: 15px;
}

/* Responsive - stack on mobile if needed */
@media (max-width: 768px) {
	.policies {
		flex-direction: column;
		align-items: flex-start;
	}
	
	.policies > li:not(:last-child)::after {
		content: "";
		margin: 0;
	}
	
	.policies > li {
		margin-bottom: 5px;
	}
}

@media (max-width: 1024px)
{
	.dcb-grid-cols-3 { 
    grid-template-columns: repeat(2, minmax(0, 1fr))!important;
	}
}

@media (max-width: 640px)
{
	.dcb-grid-cols-3 { 
    grid-template-columns: repeat(1, minmax(0, 1fr))!important;
	}
}


@media (max-width: 1024px) {
    .nav--mobile .nav { display: block!important; margin-top: 20px!important;}
}
.nav-toggle.is-active .nav-toggle__bar:nth-child(1) { transform: translateY(2px) rotate(45deg) !important; }
.nav-toggle.is-active .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-active .nav-toggle__bar:nth-child(3) { transform: translateY(-2px) rotate(-45deg)!important; }

@media (max-width: 900px) {
    .layout-tabbed__media-col {
        position: static;
        order: 1 !important;
    }
}
/* Override SINGLE PRACTICE AREA*/
.single-cm_practice_area .layout-features__item-icon {
    width: 100%;
    aspect-ratio: auto!important;
}



iframe {
    max-width: 100%;
    height: auto;
}


.layout-tabbed__tab { padding: 1em!important;   }
.layout-tabbed__tablist .layout-tabbed__tab.is-active { background-color: #fff!important;  }


@media (max-width: 640px)
{
	.hero-story__img--main {
		left: 1%!important; 
		right: 1%!important; 
	}
}

.ev-cv__list {
	list-style: disc!important; 
	margin-left: 1em!important; 
}

.dark .gform_wrapper .gfield_label { color: #fff}
.dark .gform_heading {display: none;}

.dark .gform_button { border: 1px solid #fff !important }
.dark .gform_button:hover { border: 1px solid #fff; background-color:#fff!important; color: #140424 !important;}
.gform_wrapper input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), .gform_wrapper select {text-align: left!important; background-color:#fff!important;}

@media (min-width: 640px) {
    .gform-theme--foundation .gform_fields {
        row-gap: var(--gf-form-gap-x)!important;
    }
}
.gform_wrapper input::placeholder,
.gform_wrapper textarea::placeholder {
	opacity: 0.5
}
/**SERVICE PAGE FEATURES***/
/* Expanded state: removes line clamp */
.layout-features__item-desc--clamp { transition: all 0.3s ease; }
.layout-features__item-desc--clamp.is-expanded {
    display: block;
    -webkit-line-clamp: none;
    overflow: visible;
}
.ft-related__actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--space-4);
    margin-top: var(--space-10);
}

/* Container Flexbox Layout */

.service-resources-list .resource-title {
    font-family: var(--dcb-card-title-font);
    font-weight: 400;
    font-size: 1.375rem;
    line-height: 1.364;
    color: var(--dcb-card-title-color);
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.service-resources-list .resource-title a {
        color: var(--dcb-card-title-color, #19062D) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}



.service-resources-list .resource-size {
    display: block;
	 font-family: var(--dcb-card-body-font);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--dcb-card-body-color);
    margin-top: 0.6em;
}

.service-resources-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 24px;
}
/* Base Card Style (Desktop: 3 Columns) */
.service-resources-list .resource-simple-item {
    flex: 0 0 calc(33.333% - 14px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}



/* Tablet Layout (2 Columns) */
@media screen and (max-width: 991px) {
    .service-resources-list .resource-simple-item {
        flex: 0 0 calc(50% - 10px);
    }
}



/**HEADER TITLE***/
.layout-tabbed__header {
    max-width: 68ch !important;
}
.layout-split__title {
    max-width: 22ch !important;
}

/*******************************************/
/******** PARTNERS SECTION LAYOUT ********/
/*******************************************/
.service-partners {
    padding: 60px 0;
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.service-partners h2 {
    font-family: "Anton", sans-serif;
    font-size: 52px;
    font-weight: 400;
    margin-bottom: 25px;
}

/* Logos Grid Layout */
.service-partners__grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 32px 48px;
}

.service-partners__item a {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.service-partners__item a:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.service-partners__item img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    filter: grayscale(20%); /* Optional: subtle monochrome look until hover */
    transition: filter 0.2s ease;
}

.service-partners__item a:hover img {
    filter: grayscale(0%);
}

/* Mobile Responsiveness */
@media screen and (max-width: 640px) {
    .service-partners__grid {
        gap: 24px;
    }
    .service-partners__item img {
        max-height: 45px;
    }
}



/*********************/
/***STEPS*****/
/****************/
.referral-process {
    padding: 60px 0;
    background-color: #ffffff;
}

/* 2-Column Flexbox Layout */
.referral-process__container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.referral-process__header {
    flex: 1;
    max-width: 450px;
}

.referral-process__title {
    font-size: 2.5rem;
    font-weight: 400;
    color: #111827;
    line-height: 1.2;
}

/* Timeline Container */
.referral-process__timeline {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    max-width: 600px;
}

/* Connecting Vertical Line */
.referral-process__timeline::before {
    content: '';
    position: absolute;
    top: 24px;   /* Centers line vertically with first circle badge */
    bottom: 40px;/* Stops line at center of last circle badge */
    left: 24px;  /* Centers line with 48px badge (48px / 2) */
    width: 2px;
    background-color: #e65c00;
    z-index: 1;
}

/* Step Item Row */
.referral-process__step {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    position: relative;
    z-index: 2; /* Keeps badge above line */
    padding-bottom: 32px;
}

.referral-process__step:last-child {
    padding-bottom: 0;
}

/* Orange Numbered Badge */
.referral-process__badge {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #e65c00;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Content Container */
.referral-process__content {
    display: flex;
    flex-direction: column;
    padding-top: 4px;
}

.referral-process__step-title {
    font-size: 1.25rem;
    font-weight: 400;
    color: #111827;
    margin: 0 0 4px 0;
}

section.dark h3.referral-process__step-title  {
    font-size: 1.25rem;
    font-weight: 400;
    color: #fff;
	margin: 0 0 4px 0;
}

.referral-process__step-desc {
    font-size: 0.95rem;
    color: #4b5563;
    margin: 0;
    line-height: 1.5;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .referral-process__container {
        flex-direction: column;
    }
    
    .referral-process__header {
        max-width: 100%;
        margin-bottom: 30px;
    }
}

/*****SERVICES****/
.dcb-card-standard:not(:has(.dcb-card-read-more--link)) .dcb-card-title, .dcb-card-standard:not(:has(.dcb-card-read-more--link)) .dcb-card-title a {
    transform: translateZ(0) !important;
}
div.dcb-card-read-more {
    pointer-events: all!important;
	display: flex!important;    
	flex-wrap: nowrap;    
	gap: 1.7rem;
    justify-content: flex-start;
}
.dcb-card-read-more > a{
    display: flex!important;  
    align-items: center;
	transform: none!important;  
}
.layout-dgrid .dcb-card-insight {
	overflow: auto !important; 
}

.dcb-card-eyebrow {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;    
	font-weight: 700;
    font-size: 0.65rem;
}
.dcb-card-eyebrow-pill {
    background: #e7e7e7;
    padding: 5px 8px;
    /* margin-right: 5px; */
    white-space: nowrap;
	color: #19062D;
    flex-shrink: 0;
}

.cr-quickfacts__item:nth-child(odd):last-child {
    grid-column: 1 / -1; /* or grid-column: span 2; */
}
.single--room .cr-quickfacts__value {
    font-size: var(--text-xl);
    font-weight: 400;
}

.hero_top_banner {
    display: flex;
    flex-direction: row;
    /* gap: 6em; */
    justify-content: space-between;
    align-items: flex-start;
}
.hero_top_logo img {max-width: 380px;}
@media screen and (max-width: 991px) {
    .hero_top_logo {
        display: none !important;
    }
}

section.hero-story--collage.dark{
	background-image:url('https://childhoodm.wpenginepowered.com/wp-content/uploads/2026/10/hero-bg.png');
	background-position: bottom right;
	background-repeat:no-repeat;
	background-size:425px;
}

section.srv-referral{
	background:url('https://childhoodm.wpenginepowered.com/wp-content/uploads/2026/10/white-bg.png');
	background-position: top left;
	background-repeat:no-repeat;
	background-size:cover;
}

section.hero-story--collage.dark img{
	border-bottom-left-radius:40%;
}

section.media-text--left img{
	border-bottom-left-radius:40%;
}

section.media-text--left .image-wrapper{
	background:url(https://childhoodm.wpenginepowered.com/wp-content/uploads/2026/10/img-border-left.png) bottom left no-repeat;
	padding-bottom: 73px;
    background-size: 220px;
    padding-left: 29px;
}


section.media-text--right img{
	border-bottom-right-radius:40%;
}

section.media-text--right .image-wrapper{
	background:url(https://childhoodm.wpenginepowered.com/wp-content/uploads/2026/10/img-border.png) bottom right no-repeat;
	padding-bottom: 73px;
    background-size: 220px;
    padding-right: 29px;
}

section.dark.srv-cta{
	background:url('https://childhoodm.wpenginepowered.com/wp-content/uploads/2026/10/cta-bg.jpg');
	background-position:center center;
	background-repeat:no-repeat;
	padding-top: 110px;
    padding-bottom: 80px;
	background-size:cover;
}

.has-purple-bg{
	background:url('https://childhoodm.wpenginepowered.com/wp-content/uploads/2026/10/cta-bg.jpg');
	background-position:center center;
	background-repeat:no-repeat;
	padding-top: 110px;
    padding-bottom: 80px;
	background-size:cover;
}

.has-hero-bg{
	background-image:url('https://childhoodm.wpenginepowered.com/wp-content/uploads/2026/10/hero-bg.png');
	background-position: bottom right;
	background-repeat:no-repeat;
	background-size:425px;
}

.has-floral-bg{
	background:url('https://childhoodm.wpenginepowered.com/wp-content/uploads/2026/10/white-bg.png');
	background-position: top left;
	background-repeat:no-repeat;
	background-size:cover;
}

.has-image-curve-left img{
	border-bottom-left-radius:40%;
}

.has-image-curve-right img{
	border-bottom-right-radius:40%;
}


.has-image-curve-right .image-wrapper{
	background:url(https://childhoodm.wpenginepowered.com/wp-content/uploads/2026/10/img-border.png) bottom right no-repeat;
	padding-bottom: 73px;
    background-size: 220px;
    padding-right: 29px;
}

.has-image-curve-left .image-wrapper{
	background:url(https://childhoodm.wpenginepowered.com/wp-content/uploads/2026/10/img-border-left.png) bottom left no-repeat;
	padding-bottom: 73px;
    background-size: 220px;
    padding-left: 29px;
}

/* =========================================================
   Home pathways hero - option C (Speire, Oct 2026) v2
   Scoped to .home-pathways-hero-custom only.
   To roll back, delete from here to "END home pathways hero".
   ========================================================= */
.home-pathways-hero-custom{position:relative;overflow:hidden;isolation:isolate;padding:96px 0 104px;color:#fff;background:radial-gradient(ellipse 70% 60% at 50% 0%,rgba(122,104,214,.28) 0%,rgba(30,22,71,0) 70%),#1E1647}
.home-pathways-hero-custom::after{content:"";position:absolute;z-index:-1;width:425px;height:315px;right:0;bottom:0;background:url("/wp-content/uploads/2026/10/hero-bg.png") right bottom/contain no-repeat;pointer-events:none}
.home-pathways-hero-custom .layout-features__upper{display:block;max-width:980px;margin:0 auto 48px;text-align:center}
.home-pathways-hero-custom .layout-features__heading,.home-pathways-hero-custom .layout-features__body{max-width:none;width:auto;margin:0}
.home-pathways-hero-custom .layout-features__title{color:#fff;font-size:clamp(48px,5.8vw,88px);line-height:1;margin:0 auto 24px;max-width:none;text-wrap:balance}
.home-pathways-hero-custom .layout-features__desc,.home-pathways-hero-custom .layout-features__desc *{color:rgba(255,255,255,.82);font-size:18px;line-height:1.6;margin:0}
.home-pathways-hero-custom .layout-features__strip{border-top:0;padding-top:0;margin-top:0;gap:28px;align-items:stretch}
.home-pathways-hero-custom .layout-features__item{position:relative;display:flex;flex-direction:column;justify-content:flex-end;min-height:380px;padding:28px 22% 28px 28px;border:0;border-radius:12px 12px 40% 12px;overflow:hidden;background:#2a2160;isolation:isolate;cursor:pointer;box-shadow:0 18px 40px -20px rgba(0,0,0,.55);transition:transform .35s ease,box-shadow .35s ease}
.home-pathways-hero-custom .layout-features__item::before{display:none}
.home-pathways-hero-custom .layout-features__item:hover{transform:translateY(-6px);box-shadow:0 28px 50px -22px rgba(0,0,0,.7)}
.home-pathways-hero-custom .layout-features__item-icon{position:absolute;inset:0;height:100%;aspect-ratio:auto;max-height:none;margin:0;z-index:-2}
.home-pathways-hero-custom .layout-features__item-icon img{position:absolute;inset:0;width:100%;height:100%;max-height:none;object-fit:cover;object-position:center 20%;transition:transform .6s ease}
.home-pathways-hero-custom .layout-features__item:hover .layout-features__item-icon img{transform:scale(1.05)}
.home-pathways-hero-custom .layout-features__item::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(to top,rgba(30,22,71,.97) 0%,rgba(30,22,71,.88) 32%,rgba(30,22,71,.25) 62%,rgba(30,22,71,0) 78%);pointer-events:none}
.home-pathways-hero-custom .layout-features__item-title,.home-pathways-hero-custom .layout-features__item-desc,.home-pathways-hero-custom .layout-features__item-link{position:relative;padding:0;color:#fff;text-align:left}
.home-pathways-hero-custom .layout-features__item-title,.home-pathways-hero-custom .layout-features__item-desc{align-self:stretch;margin-left:0;margin-right:0}
.home-pathways-hero-custom .layout-features__item-title{font-size:30px;line-height:1.08;margin:0 0 4px}
.home-pathways-hero-custom .layout-features__item-desc{margin-top:0;padding-top:0}
.home-pathways-hero-custom .layout-features__item-desc p{color:rgba(255,255,255,.82);font-size:15px;line-height:1.5;margin:0 0 20px;min-height:3em}
.home-pathways-hero-custom .layout-features__item-link{align-self:flex-start;display:inline-flex;align-items:center;gap:8px;padding:11px 20px;border-radius:6px;background:#fdcd00;color:#1E1647;font-weight:700;font-size:15px;text-decoration:none;transition:background .25s ease}
.home-pathways-hero-custom .layout-features__item:hover .layout-features__item-link{background:#fff}
.home-pathways-hero-custom .layout-features__item-link svg{stroke:currentColor}
.home-pathways-hero-custom .layout-features__item-link::before{content:"";position:absolute;inset:-1000px;z-index:3}
@media (max-width:991px){
.home-pathways-hero-custom{padding:80px 0 90px}
.home-pathways-hero-custom::after{width:240px;height:178px}
.home-pathways-hero-custom .layout-features__upper{margin-bottom:40px}
.home-pathways-hero-custom .layout-features__strip{grid-template-columns:1fr;gap:20px}
.home-pathways-hero-custom .layout-features__item{min-height:340px;padding:26px 24px 24px}
.home-pathways-hero-custom .layout-features__item-title{font-size:26px}
}
/* END home pathways hero */

/* ===== Kids pathway (Speire, Oct 2026) - scoped to .cm-kids-* blocks. Delete to "END kids pathway" to roll back ===== */
html:has(.cm-kids-choices){scroll-behavior:smooth}
body:has(.cm-kids-choices) .anchor-section{scroll-margin-top:100px}
/* Hero */
.cm-kids-hero2{position:relative;overflow:hidden;isolation:isolate;background:radial-gradient(ellipse 60% 70% at 10% 0%,rgba(122,104,214,.28) 0%,rgba(30,22,71,0) 70%),#1E1647;padding:100px 0 130px;color:#fff}
.cm-kids-hero2::after{content:"";position:absolute;z-index:-1;right:0;bottom:0;width:290px;height:215px;background:url("/wp-content/uploads/2026/10/hero-bg.png") right bottom/contain no-repeat;pointer-events:none}
.cm-kids-hero2 .hero-story__split{display:grid;grid-template-columns:1.05fr .95fr;gap:64px;align-items:center}
.cm-kids-hero2 .hero-story__heading{color:#fff;font-size:clamp(44px,5.4vw,76px);line-height:1;margin:0;max-width:14ch}
.cm-kids-hero2 .eyebrow{display:inline-block;width:fit-content;align-self:flex-start;background:#fdcd00;color:#1E1647;padding:6px 14px;border-radius:999px;font-weight:700;text-transform:none;letter-spacing:0;font-size:14px;margin-bottom:18px}
.cm-kids-hero2 .hero-story__desc p{color:rgba(255,255,255,.88);font-size:18px;line-height:1.6;margin:0 0 12px;max-width:520px}
.cm-kids-hero2 .hero-story__desc p:nth-child(3){color:#fff;font-weight:700;font-size:20px;border-left:4px solid #fdcd00;padding:2px 0 2px 16px;margin:18px 0 22px}
.cm-kids-hero2 .hero-story__desc p:last-child{display:flex;align-items:center;gap:12px;margin:0;padding:14px 18px;border-radius:12px;background:#fff5cf;color:#1E1647;font-weight:600;font-size:16px}
.cm-kids-hero2 .hero-story__desc p:last-child::before{content:"";flex:0 0 10px;height:10px;border-radius:50%;background:#ed6d2d;box-shadow:0 0 0 5px rgba(237,109,45,.25)}
@media (max-width:991px){.cm-kids-hero2{padding:64px 0 90px}.cm-kids-hero2 .hero-story__split{grid-template-columns:1fr;gap:28px}.cm-kids-hero2::after{width:220px;height:163px}}
/* 3 choices */
.cm-kids-choices{background:#fbf8f3;padding:80px 0 90px}
.cm-kids-choices .layout-features__header{display:block;width:100%;max-width:none;text-align:center;margin:0 auto 40px}
.cm-kids-choices .layout-features__strip{gap:24px;border:0;padding:0}
.cm-kids-choices .layout-features__item{position:relative;display:flex;flex-direction:column;min-height:270px;padding:32px 30px 92px;border:0;border-top:6px solid #ed6d2d;border-radius:12px;background:#fff;cursor:pointer;box-shadow:0 14px 30px -22px rgba(30,22,71,.45);transition:transform .3s ease,box-shadow .3s ease}
.cm-kids-choices .layout-features__item:nth-child(2){border-top-color:#fdcd00}
.cm-kids-choices .layout-features__item:nth-child(3){border-top-color:#1E1647}
.cm-kids-choices .layout-features__item::before{display:none}
.cm-kids-choices .layout-features__item:hover{transform:translateY(-4px);box-shadow:0 22px 40px -22px rgba(30,22,71,.55)}
.cm-kids-choices .layout-features__item-title{font-size:28px;line-height:1.12;margin:0 0 12px}
.cm-kids-choices .layout-features__item-desc p{font-size:16px;line-height:1.5}
.cm-kids-choices .layout-features__item-link{position:absolute;left:30px;bottom:28px;display:inline-flex;align-items:center;gap:8px;padding:11px 20px;border-radius:6px;background:#1E1647;color:#fff;font-weight:700;font-size:15px;text-decoration:none}
.cm-kids-choices .layout-features__item:hover .layout-features__item-link{background:#ed6d2d}
.cm-kids-choices .layout-features__item-link::before{content:"";position:absolute;inset:-1000px}
.cm-kids-choices .layout-features__item-link svg{stroke:currentColor}
/* Something doesn't feel right */
.cm-kids-safe .media-text__text h3{font-size:28px;margin:28px 0 10px}
.cm-kids-safe .media-text__text p:not(.cm-callout):has(> strong:only-child){background:#fbf8f3;border-radius:12px;padding:16px 20px;border-left:5px solid #ed6d2d}
.cm-kids-safe .cm-callout{background:#1E1647;color:#fff;border-radius:12px;padding:20px 24px}
.cm-kids-safe .cm-callout strong{color:#fdcd00}
.cm-kids-safe .media-text__text blockquote{margin:24px 0 6px;padding:18px 22px;background:#fff6cc;border:0;border-left:5px solid #fdcd00;border-radius:12px;color:#1E1647;font-size:19px;font-weight:600;font-style:normal;line-height:1.4}
.cm-kids-safe .media-text__text blockquote p{margin:0;color:inherit}
.cm-kids-safe .media-text__text blockquote + p{font-size:14px;opacity:.75}
/* You don't have to wait for a crisis */
.cm-kids-situations{background:#fbf8f3}
.cm-kids-situations .layout-features__desc p{max-width:760px}
.cm-kids-situations .layout-features__strip{gap:16px;border:0;padding:0}
.cm-kids-situations .layout-features__item{display:flex;align-items:center;min-height:0;background:#fff;border:0;border-left:6px solid #ed6d2d;border-radius:12px;padding:22px 24px}
.cm-kids-situations .layout-features__item:nth-child(3n+2){border-left-color:#fdcd00}
.cm-kids-situations .layout-features__item:nth-child(3n){border-left-color:#1E1647}
.cm-kids-situations .layout-features__item::before{display:none}
.cm-kids-situations .layout-features__item-title{font-size:21px;line-height:1.2;margin:0}
.cm-kids-situations .layout-features__item-desc:empty,.cm-kids-situations .layout-features__item-desc:not(:has(*:not(:empty))){display:none}
/* Coming here */
.cm-kids-coming .cm-option{background:#fbf8f3;border-radius:12px;padding:16px 20px;margin:0 0 12px}
.cm-kids-coming .cm-option br{display:none}
.cm-kids-coming .cm-option strong{display:block;font-size:18px;color:#1E1647;margin-bottom:4px}
.cm-kids-coming .media-text__text h3{font-size:26px;margin:26px 0 12px}
.cm-kids-coming .cm-bubbles{list-style:none;padding:0;margin:0 0 16px;display:flex;flex-wrap:wrap;gap:10px}
.cm-kids-coming .cm-bubbles li{margin:0;padding:10px 16px;border-radius:18px 18px 18px 4px;background:#1E1647;color:#fff;font-weight:600;font-size:15px}
.cm-kids-coming .cm-bubbles li::before{display:none}
/* FAQ */
.cm-kids-faq .layout-faq__item{overflow:hidden}
.cm-kids-faq .layout-faq__question{font-size:18px;font-weight:700}
@media (max-width:991px){
.cm-kids-choices{padding:60px 0}
.cm-kids-choices .layout-features__strip{grid-template-columns:1fr}
.cm-kids-choices .layout-features__item{min-height:220px}
}
/* Calem call 16 Oct: danger line as its own strip above "What would help you today?"; Childline clearly credited */
.cm-kids-hero2 .hero-story__desc p:nth-child(3){color:rgba(255,255,255,.88);font-weight:400;font-size:18px;border:0;padding:0;margin:0 0 12px}
.cm-kids-hero2 .hero-story__desc p:last-child{display:block;background:none;color:#fff;font-weight:700;font-size:20px;border-left:4px solid #fdcd00;border-radius:0;padding:2px 0 2px 16px;margin:18px 0 0}
.cm-kids-hero2 .hero-story__desc p:last-child::before{display:none}
.cm-kids-choices .layout-features__header .eyebrow{display:flex;align-items:center;justify-content:center;gap:12px;width:fit-content;max-width:100%;margin:0 auto 40px;padding:18px 28px;background:#fff5cf;border:1.5px solid #fdcd00;border-radius:12px;color:#1E1647;font-size:19px;font-weight:700;letter-spacing:0;text-transform:none;line-height:1.4}
.cm-kids-choices .layout-features__header .eyebrow::before{content:"";flex:0 0 10px;height:10px;border-radius:50%;background:#ed6d2d;box-shadow:0 0 0 5px rgba(237,109,45,.25)}
.cm-kids-safe .cm-callout{background:#fff;color:#2b2540;border:1.5px solid #d9d3e6;border-radius:12px;padding:18px 22px}
.cm-kids-safe .cm-callout strong{color:#1E1647}
.cm-kids-safe .cm-callout .cm-callout-label{display:inline-block;margin:0 0 8px;padding:3px 10px;border-radius:999px;background:#ece6f7;color:#1E1647;font-size:13px;font-weight:700;letter-spacing:.02em}
.cm-kids-safe .cm-callout .cm-callout-label + br{display:none}
.cm-kids-safe .cm-callout .cm-callout-label{display:table}
.cm-kids-safe .cm-callout small{display:block;margin-top:8px;font-size:13px;color:#6b6480}
@media (max-width:767px){.cm-kids-choices .layout-features__header .eyebrow{font-size:15px;padding:12px 16px;justify-content:flex-start}}
/* END kids pathway */
/* ===== Kids pathway v3 - joined-up journey (Spéire, Oct 2026). Remove this block to roll back. ===== */
/* 1. Choices straddle the hero: navy continues behind the danger strip and title */
html body .cm-kids-choices{background:linear-gradient(#1E1647 0,#1E1647 290px,#fbf8f3 290px)!important;padding-top:8px}
.cm-kids-hero2{padding-bottom:40px}
.cm-kids-choices .layout-features__title{color:#fff!important}
.cm-kids-choices .layout-features__header .eyebrow{box-shadow:0 10px 30px -12px rgba(0,0,0,.45)}
.cm-kids-choices .layout-features__item{counter-increment:kidstep;position:relative;box-shadow:0 18px 40px -24px rgba(30,22,71,.55)}
.cm-kids-choices .layout-features__strip,.cm-kids-choices .layout-features__grid{counter-reset:kidstep}
.cm-kids-choices .layout-features__item::after{content:counter(kidstep);position:absolute;top:22px;right:22px;width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;font:400 18px/1 Anton,sans-serif;color:#fff;background:#ed6d2d}
.cm-kids-choices .layout-features__item:nth-child(2)::after{background:#fdcd00;color:#1E1647}
.cm-kids-choices .layout-features__item:nth-child(3)::after{background:#1E1647}
.cm-kids-choices .layout-features__item-title{padding-right:44px}
/* 2. Each answer section carries the same number and colour as its card */
:is(.cm-kids-safe,.cm-kids-situations,.cm-kids-coming){position:relative}
:is(.cm-kids-safe,.cm-kids-situations,.cm-kids-coming)::before{content:"";position:absolute;top:0;left:0;right:0;height:6px;background:#ed6d2d}
.cm-kids-situations::before{background:#fdcd00}
.cm-kids-coming::before{background:#1E1647}
:is(.cm-kids-safe,.cm-kids-situations,.cm-kids-coming) h2:first-of-type::before{content:"1";display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;margin:0 14px 0 0;border-radius:50%;vertical-align:.18em;font:400 22px/1 Anton,sans-serif;color:#fff;background:#ed6d2d}
.cm-kids-situations h2:first-of-type::before{content:"2";background:#fdcd00;color:#1E1647}
.cm-kids-coming h2:first-of-type::before{content:"3";background:#1E1647}
/* 3. Services grid: lighter and calmer for children */
html body.page-id-3592 section.layout-dgrid.dark{background:#fbf8f3!important}
body.page-id-3592 .layout-dgrid.dark :is(h2,h3,p){color:#1E1647}
body.page-id-3592 .layout-dgrid .dcb-card{background:#fff;border:0;border-radius:12px;box-shadow:0 14px 30px -22px rgba(30,22,71,.45)}
body.page-id-3592 .layout-dgrid .dcb-card img{aspect-ratio:16/9;height:auto;object-fit:cover}
body.page-id-3592 .layout-dgrid .dcb-card :is(h3,.dcb-card-title,.dcb-card-title a){color:#1E1647}
/* 4. Questions: soft lilac instead of a big orange block */
html body section.cm-kids-faq{background:#ece6f7!important}
.cm-kids-faq :is(h2,h3,summary,button,p,span,a:not(.btn)){color:#1E1647!important}
.cm-kids-faq :is(.faq-item,details,.layout-faq__item){border-color:rgba(30,22,71,.15)!important}
@media (max-width:767px){
html body .cm-kids-choices{background:linear-gradient(#1E1647 0,#1E1647 260px,#fbf8f3 260px)!important}
:is(.cm-kids-safe,.cm-kids-situations,.cm-kids-coming) h2:first-of-type::before{width:34px;height:34px;font-size:18px;margin-right:10px}
}

/* 5. Long answer sections: photo stays in view while reading (desktop) */
@media (min-width:992px){:is(.cm-kids-safe,.cm-kids-coming) .media-text__inner{align-items:start}:is(.cm-kids-safe,.cm-kids-coming) .media-text__media{position:sticky;top:120px}}
:is(.cm-kids-safe,.cm-kids-situations,.cm-kids-coming) :is(h2,h3){color:#1E1647}
/* END kids pathway v3 */


/* ===== Governance page (Speire, Oct 2026) - scoped to .cm-gov-* blocks. Delete to "END governance" to roll back ===== */
.cm-gov-hero{position:relative;overflow:hidden;isolation:isolate;background:radial-gradient(ellipse 60% 70% at 15% 0%,rgba(122,104,214,.25) 0%,rgba(30,22,71,0) 70%),#1E1647;padding:110px 0 120px;color:#fff}
.cm-gov-hero::after{content:"";position:absolute;z-index:-1;right:0;bottom:0;width:260px;height:193px;background:url("/wp-content/uploads/2026/10/hero-bg.png") right bottom/contain no-repeat;pointer-events:none}
.cm-gov-hero .hero-story__heading{color:#fff}
section.cm-gov-hero.hero-story{padding:120px 0 140px}
.cm-gov-hero .hero-story__desc,.cm-gov-hero .hero-story__desc *{color:rgba(255,255,255,.85)}
.cm-gov-board{padding-top:90px}
.cm-gov-board .media-text__inner{border-top:0!important;padding-top:0}
@media (max-width:991px){.cm-gov-hero{padding:70px 0 90px}.cm-gov-hero::after{width:220px;height:163px}}
.cm-gov-hero .hero-story__split{align-items:end}
.cm-gov-board{padding:20px 0 100px}
.cm-gov-board .media-text__inner{display:grid;grid-template-columns:260px 1fr;gap:48px;align-items:center;padding-top:56px;border-top:1px solid #e4dac8}
.cm-gov-board .media-text__media{width:auto;max-width:none}
.cm-gov-board .media-text__media img{width:260px;height:320px;object-fit:cover;border-radius:12px 12px 12px 40%;background:#1E1647}
.cm-gov-board .media-text__body{width:auto;max-width:none;padding:0}
.cm-gov-board .media-text__text{display:grid;grid-template-columns:minmax(220px,1fr) 1.4fr;gap:48px;align-items:center}
.cm-gov-board .cm-gov-chair h3{font-size:clamp(36px,3.4vw,48px);line-height:1;margin:0 0 10px;color:#1E1647}
.cm-gov-board .cm-gov-role{font-size:18px;font-weight:600;color:#1E1647;margin:0 0 18px}
.cm-gov-board .cm-gov-role::after{content:"";display:block;width:48px;height:5px;border-radius:3px;background:#fdcd00;margin-top:18px}
.cm-gov-board .cm-gov-sub{font-size:15px;color:#6b6480;margin:0}
.cm-gov-board .cm-gov-directors{background:#fbf8f3;border-radius:12px;padding:30px 32px}
.cm-gov-board .cm-gov-directors h3{font-size:26px;margin:0 0 20px;color:#1E1647}
.cm-gov-board .cm-gov-directors ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:20px 28px}
.cm-gov-board .cm-gov-directors li{margin:0;padding:0 0 0 14px;border-left:4px solid #ed6d2d;line-height:1.3}
.cm-gov-board .cm-gov-directors li:nth-child(2n){border-left-color:#fdcd00}
.cm-gov-board .cm-gov-directors li::before{display:none}
.cm-gov-board .cm-gov-directors li strong{font-size:17px;color:#1E1647}
.cm-gov-board .cm-gov-directors li small{font-size:14px;color:#6b6480}
.cm-gov-works{background:#fff;padding:20px 0 90px}
.cm-gov-works .layout-features__header{max-width:none;text-align:left;margin:0;background:#f3effa;border-radius:12px;padding:44px 48px}
.cm-gov-works .layout-features__title{font-size:clamp(30px,3vw,42px);margin:0 0 18px;text-align:left}
.cm-gov-works .layout-features__desc{max-width:900px;margin:0;text-align:left}
.cm-gov-works .layout-features__desc p{font-size:17px;line-height:1.65;color:#3d3557;margin:0 0 14px}
.cm-gov-works .layout-features__desc p:last-child{margin:0}
.cm-gov-quality .layout-features__desc p:last-child{font-weight:700;color:#fff;margin-top:22px}
@media (max-width:767px){.cm-gov-works .layout-features__header{padding:30px 24px}}
@media (max-width:991px){
.cm-gov-board .media-text__inner{grid-template-columns:1fr;gap:28px;padding-top:36px}
.cm-gov-board .media-text__media img{width:200px;height:240px}
.cm-gov-board .media-text__text{grid-template-columns:1fr;gap:28px}
.cm-gov-board .cm-gov-directors ul{grid-template-columns:1fr}
}
/* END governance */

/* ===== Service template - light feature rows (Speire, Oct 2026). Delete to "END service light rows" to roll back ===== */
.single-cm_service .pa-feature.dark{background:#fff;color:#1E1647}
.single-cm_service .pa-feature.dark.media-text--right{background:#fbf8f3}
.single-cm_service .pa-feature.dark :is(h2,h3,h4,p,li,strong,summary,span),.single-cm_service .pa-feature.dark .media-text__heading{color:#1E1647}
.single-cm_service .pa-feature.dark .media-text__text p,.single-cm_service .pa-feature.dark .media-text__text li{color:#3d3557}
.single-cm_service .pa-feature.dark a:not(.btn){color:#ed6d2d}
.single-cm_service .pa-feature.dark .btn--outline.btn--inverse{color:#1E1647;border-color:#1E1647}
.single-cm_service .pa-feature.dark + .pa-feature.dark{border-top:0}
.single-cm_service .pa-feature .media-text__media{position:relative;isolation:isolate}
.single-cm_service .pa-feature .media-text__media img{position:relative;z-index:1}
.single-cm_service .pa-feature .media-text__media::before{content:"";position:absolute;z-index:0;width:190px;height:190px;left:-62px;bottom:-58px;background:url("/wp-content/uploads/2026/10/img-border.png") center/contain no-repeat;opacity:.55;pointer-events:none}
.single-cm_service .pa-feature.media-text--right .media-text__media::before{left:auto;right:-62px;transform:scaleX(-1)}
.single-cm_service .srv-focus{position:relative;overflow:hidden;background:#fbf8f3;padding-top:100px;padding-bottom:100px}
.single-cm_service .srv-focus::after{content:"";position:absolute;top:0;right:0;width:300px;height:222px;background:url("/wp-content/uploads/2026/10/hero-bg.png") right bottom/contain no-repeat;transform:scaleY(-1);pointer-events:none}
.single-cm_service .srv-focus .container{position:relative;z-index:1}
.single-cm_service .srv-focus__quote{position:relative;padding-top:58px;text-align:center}
.single-cm_service .srv-focus__quote::before{content:"";position:absolute;top:0;left:50%;width:30px;height:36px;transform:translateX(-50%);background:url("/wp-content/uploads/2026/07/orange-Flower-icon.png") center/contain no-repeat}
.single-cm_service .srv-cta{position:relative;overflow:hidden}
.single-cm_service .srv-cta::after{content:"";position:absolute;right:0;bottom:0;width:340px;height:252px;background:url("/wp-content/uploads/2026/10/hero-bg.png") right bottom/contain no-repeat;pointer-events:none}
.single-cm_service .srv-cta .container{position:relative;z-index:1}
@media (max-width:767px){.single-cm_service .pa-feature .media-text__media::before{width:120px;height:120px;left:-30px;bottom:-30px}.single-cm_service .pa-feature.media-text--right .media-text__media::before{right:-30px}.single-cm_service .srv-focus::after{width:170px;height:126px}.single-cm_service .srv-cta::after{width:200px;height:148px}}
.single-cm_service .srv-focus__quote p{font-style:normal;color:#1E1647}

/* Service rows v2: flower sits behind the image curve, same treatment as the theme's media-text blocks */
.single-cm_service .pa-feature .media-text__media::before{display:none!important}
.single-cm_service .pa-feature.media-text--left .media-text__media{background:url("/wp-content/uploads/2026/10/img-border-left.png") left bottom/220px auto no-repeat;padding:0 0 73px 29px}
.single-cm_service .pa-feature.media-text--right .media-text__media{background:url("/wp-content/uploads/2026/10/img-border.png") right bottom/220px auto no-repeat;padding:0 29px 73px 0}
@media (max-width:767px){.single-cm_service .pa-feature .media-text__media{background-size:150px auto;padding-bottom:50px}}
/* END service light rows */

/* ===== Spéire blocks - consistent headings (Oct 2026) ===== */
:is(.home-pathways-hero-custom,.cm-kids-hero2,.cm-kids-choices,.cm-kids-safe,.cm-kids-situations,.cm-kids-coming,.cm-kids-faq,.cm-gov-hero,.cm-gov-board,.cm-gov-works,.cm-gov-quality) :is(h1,h2,h3,h4){font-family:"Anton",sans-serif;font-weight:400;font-synthesis:none;letter-spacing:.01em}
:is(.cm-kids-safe,.cm-kids-coming) .media-text__text h3{color:#1E1647}
@media (max-width:767px){
.home-pathways-hero-custom .layout-features__item{padding:24px 24px 26px}
.home-pathways-hero-custom::after{width:200px;height:148px}
.cm-kids-hero2{padding:56px 0 80px}
.cm-kids-hero2::after{width:160px;height:119px}
.cm-kids-hero2 .hero-story__heading{font-size:44px}
.cm-kids-choices{padding:56px 0}
.cm-kids-choices .layout-features__header{margin-bottom:28px}
.cm-kids-situations .layout-features__item{padding:18px 20px}
.cm-kids-situations .layout-features__item-title{font-size:19px}
.cm-gov-hero::after{width:160px;height:119px}
section.cm-gov-hero.hero-story{padding:64px 0 90px}
.cm-gov-board{padding:48px 0 56px}
.cm-gov-works{padding:0 0 56px}
.cm-gov-works .layout-features__header{padding:28px 22px}
.single-cm_service .srv-focus{padding-top:64px;padding-bottom:64px}
}
/* hide empty hero sub-logo slot (shows a broken image icon when no logo is set) */
.hero_top_logo:has(img:not([src])),.hero_top_logo:has(img[src=""]){display:none}
/* END consistent headings */

/* ===== Early Years (creche) look - Speire, Oct 2026 =====
   Opt-in only: nothing changes until a class is added to a block's classes field.
   cm-ey-hero (hero), cm-ey-cards (location/room grids), cm-ey-soft (feature/info blocks).
   To reverse: remove the class from the block, or delete this block. */
.cm-ey-hero{position:relative;overflow:hidden;isolation:isolate;background:#fff4c7!important;min-height:0}
.cm-ey-hero .hero__overlay{display:none}
.cm-ey-hero .hero__media{position:absolute;z-index:0;top:56px;bottom:56px;left:auto;right:max(40px,calc((100vw - 1200px)/2));width:44%;height:auto;border-radius:12px 12px 40% 12px;overflow:hidden}
.cm-ey-hero .hero__media img{width:100%;height:100%;object-fit:cover}
.cm-ey-hero::after{content:"";position:absolute;z-index:1;right:0;bottom:0;width:300px;height:222px;background:url("/wp-content/uploads/2026/10/hero-bg.png") right bottom/contain no-repeat;pointer-events:none}
.cm-ey-hero .hero__inner{position:relative;z-index:2}
.cm-ey-hero .hero_top_text{max-width:48%}
.cm-ey-hero :is(.hero__title,.hero__eyebrow){color:#1E1647}
.cm-ey-hero .hero__eyebrow{display:inline-block;background:#fdcd00;padding:6px 14px;border-radius:999px;font-weight:700;text-transform:none;letter-spacing:0;font-size:14px}
.cm-ey-hero .hero__body,.cm-ey-hero .hero__body p{color:#2b2540}
.cm-ey-hero .hero__actions .btn--outline{color:#1E1647;border-color:#1E1647}
.cm-ey-hero .hero_top_logo{display:none}
.cm-ey-cards .dcb-card{border-radius:12px;overflow:hidden;background:#fff;border:0;border-top:6px solid #fdcd00;box-shadow:0 14px 30px -20px rgba(30,22,71,.4)}
.cm-ey-cards .dcb-card:nth-child(3n+2){border-top-color:#ed6d2d}
.cm-ey-cards .dcb-card:nth-child(3n){border-top-color:#9ec08f}
.cm-ey-cards .dcb-card img{border-radius:0}
.cm-ey-soft{position:relative;overflow:hidden;background:#fbf8f3!important}
.cm-ey-soft::before{content:"";position:absolute;left:-110px;top:-110px;width:300px;height:300px;background:url("/wp-content/uploads/2026/10/img-border.png") center/contain no-repeat;opacity:.22;pointer-events:none}
.cm-ey-soft .container{position:relative;z-index:1}
.cm-ey-soft .layout-features__item{background:#fff;border:0;border-radius:12px;padding:28px 24px}
.cm-ey-soft .layout-features__item::before{display:none}
.cm-ey-soft .layout-features__item-icon{width:56px;height:56px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#fff4c7}
.cm-ey-soft .layout-features__item:nth-child(4n+2) .layout-features__item-icon{background:#fde3d3}
.cm-ey-soft .layout-features__item:nth-child(4n+3) .layout-features__item-icon{background:#e5efe0}
.cm-ey-soft .layout-features__item:nth-child(4n) .layout-features__item-icon{background:#ece6f7}
.cm-ey-soft .layout-features__item-icon img{width:30px;height:30px;object-fit:contain}
.cm-ey-soft :is(h2,h3){font-weight:400;font-synthesis:none}
@media (max-width:991px){
.cm-ey-hero .hero__media{position:relative;top:auto;bottom:auto;right:auto;width:auto;height:260px;margin:0 20px 24px}
.cm-ey-hero .hero_top_text{max-width:none}
.cm-ey-hero::after{width:170px;height:126px}
}
/* v2 fixes + warm band */
section.cm-ey-soft .layout-features__item .layout-features__item-icon{width:64px!important;height:64px!important;border-radius:50%!important;display:flex;align-items:center;justify-content:center;overflow:hidden;margin-bottom:16px}
section.cm-ey-soft .layout-features__item .layout-features__item-icon img{width:100%!important;height:100%!important;object-fit:cover}
.cm-ey-hero::after{z-index:0;width:240px;height:178px}
.cm-ey-hero .hero__media{z-index:1}
.cm-ey-warm{position:relative;overflow:hidden;isolation:isolate;background:#fff4c7!important}
.cm-ey-warm::after{content:"";position:absolute;z-index:-1;right:0;bottom:0;width:260px;height:193px;background:url("/wp-content/uploads/2026/10/hero-bg.png") right bottom/contain no-repeat;pointer-events:none}
.cm-ey-warm :is(h2,h3,h4){color:#1E1647}
.cm-ey-warm .layout-reviews__card{background:#fff!important;border-color:transparent!important;border-radius:12px;box-shadow:0 14px 30px -20px rgba(30,22,71,.4)}
.cm-ey-warm .layout-reviews__card :is(p,span,div,strong,cite){color:#2b2540}
.cm-ey-warm .layout-reviews__card .layout-reviews__star--filled{color:#ed6d2d}
.cm-ey-warm .layout-reviews__btn{border-color:#1E1647!important;color:#1E1647}
.cm-ey-warm .layout-reviews__btn svg{stroke:#1E1647}
section.cm-ey-soft.layout-faq :is(h2,.layout-faq__question,.layout-faq__answer,.layout-faq__answer *,p){color:#1E1647}
section.cm-ey-soft.layout-faq .layout-faq__item{background:#fff;border-radius:12px;border-color:transparent}
section.cm-ey-soft.layout-faq .layout-faq__summary svg{stroke:#ed6d2d}

section.cm-ey-soft .layout-features__item .layout-features__item-icon:has(img[src$=".png"],img[src$=".svg"],img[src$=".webp"]) img{width:62%!important;height:62%!important;object-fit:contain}
/* v3 - layout + tidy */
section.cm-ey-hero{display:grid!important;grid-template-columns:minmax(24px,1fr) minmax(0,666px) minmax(0,666px) minmax(24px,1fr);align-items:center;padding:0!important;min-height:0!important;height:auto!important}
section.cm-ey-hero .hero__inner{grid-column:2;grid-row:1;position:relative;z-index:2;width:auto!important;max-width:none!important;margin:0!important;padding:72px 56px 72px 0!important}
section.cm-ey-hero .hero_top_banner{display:block;padding:0;margin:0}
section.cm-ey-hero .hero_top_text{max-width:none!important;padding:0}
section.cm-ey-hero .hero__media{position:relative!important;inset:auto!important;grid-column:3;grid-row:1;z-index:1;width:100%!important;height:420px!important;margin:56px 0;border-radius:12px 12px 40% 12px;overflow:hidden}
section.cm-ey-hero .hero__title{font-size:clamp(44px,4.6vw,68px);line-height:1.02;margin-bottom:18px}
section.cm-ey-hero .hero__body p{font-size:18px;line-height:1.6}
:is(.cm-ey-hero,.cm-ey-cards,.cm-ey-soft,.cm-ey-warm) :is(h1,h2,h3,h4){color:#1E1647}
.cm-ey-cards .dcb-card{display:flex;flex-direction:column}
.cm-ey-cards .dcb-card .dcb-card-media,.cm-ey-cards .dcb-card .dcb-card-media img,.cm-ey-cards .dcb-card img.dcb-card-image{border-radius:0!important}
.cm-ey-cards .dcb-card .dcb-card-content{padding:22px 24px 26px!important;text-align:left}
.cm-ey-cards .dcb-card :is(.dcb-card-title,.dcb-card-excerpt){text-align:left}
.cm-ey-soft::before{top:-60px}
/* tabs */
section.cm-ey-soft.layout-svctabs{background:#fff!important}
section.cm-ey-soft.layout-svctabs::before{display:none}
.cm-ey-soft .layout-svctabs__box{background:#fbf8f3;border:0;border-radius:12px;overflow:hidden}
.cm-ey-soft .layout-svctabs__tab{background:transparent;border:0;color:#1E1647}
.cm-ey-soft .layout-svctabs__tab.is-active{background:#fdcd00;color:#1E1647}
.cm-ey-soft .layout-svctabs__pane{background:transparent}
.cm-ey-soft .layout-svctabs__pane :is(p,li){font-size:16px;line-height:1.65}
/* schemes (3-column content pod) */
.pod.cm-ey-cards .col-md-4.middle .content-wrap,.pod.cm-ey-cards .col-md-4.right .content-wrap{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 14px 30px -20px rgba(30,22,71,.4);border-top:6px solid #fdcd00;height:100%}
.pod.cm-ey-cards .col-md-4.right .content-wrap{border-top-color:#ed6d2d}
.pod.cm-ey-cards .content-wrap img{display:block;width:100%;height:200px;object-fit:cover;border-radius:0}
.pod.cm-ey-cards .col-md-4:not(.left) .content-wrap p{padding:0 22px;font-size:16px;font-weight:600;color:#1E1647}
.pod.cm-ey-cards .col-md-4:not(.left) .content-wrap p:last-child{padding-bottom:20px}
@media (max-width:991px){
section.cm-ey-hero{grid-template-columns:20px 1fr 20px}
section.cm-ey-hero .hero__inner{grid-column:2;grid-row:1;padding:48px 0 24px!important}
section.cm-ey-hero .hero__media{grid-column:2;grid-row:2;height:240px!important;margin:0 0 48px}
}
.pod.cm-ey-cards .col-md-4:not(.left) .content-wrap p:has(img){padding:0!important;margin:0 0 16px}
/* END early years */

/* ===== Vibrant navy site-wide (Calem approved 16 Oct 2026) =====
   Swaps the darker brand navy (#140424 / #19062D) for the more vibrant #1E1647.
   To roll back, delete from here to "END vibrant navy". */
:root{--color-primary:#1E1647;--color-primary-dark:#160F38;--color-primary-light:#2E2466;--color-bg-dark:#1E1647;--dcb-card-title-color:#1E1647}
html body :is(section.dark,section.footer,section.cm-top-footer,footer.footer){background-color:#1E1647}
html body .dcb-card-eyebrow-pill{color:#1E1647;border-color:#1E1647}
/* END vibrant navy */

/* ===== Careers header - matches Governance (Speire, Oct 2026). Delete to END careers header ===== */
.page-id-3168 .cm-gov-hero + section{padding-top:90px}
/* END careers header */

/* ===== Practice areas tidy (Speire, Oct 2026). Delete to END practice areas ===== */
.single-cm_practice_area .pa-body__content{max-width:860px;margin-left:auto;margin-right:auto}
.single-cm_practice_area .pa-body__content :is(h2,h3){color:#1E1647;font-weight:400;font-synthesis:none}
.single-cm_practice_area .pa-body__content h3{font-size:22px;margin:28px 0 6px}
.single-cm_practice_area .pa-highlights .layout-tabbed__panel{background:#fbf8f3;border-radius:12px;padding:28px 32px}
.single-cm_practice_area .pa-highlights .layout-tabbed__tab.is-active{background:#fdcd00;color:#1E1647;border-radius:6px}
.single-cm_practice_area .pa-feature .media-text__media::before{display:none!important}
.single-cm_practice_area .pa-feature.media-text--left .media-text__media{background:url("/wp-content/uploads/2026/10/img-border-left.png") left bottom/220px auto no-repeat;padding:0 0 73px 29px}
.single-cm_practice_area .pa-feature.media-text--right .media-text__media{background:url("/wp-content/uploads/2026/10/img-border.png") right bottom/220px auto no-repeat;padding:0 29px 73px 0}
@media (max-width:767px){.single-cm_practice_area .pa-feature .media-text__media{background-size:150px auto;padding-bottom:50px}.single-cm_practice_area .pa-highlights .layout-tabbed__panel{padding:20px 16px}}
/* END practice areas */

/* ===== About page refresh (Speire, Oct 2026). Delete to END about refresh ===== */
/* Mission & Vision: two bold statement panels instead of icon cards */
body.page-id-3172 .layout-features.border-box .layout-features__item-icon{display:none}
body.page-id-3172 .layout-features.border-box .layout-features__strip{gap:24px;border:0;padding-top:0}
body.page-id-3172 .layout-features.border-box .layout-features__item{position:relative;overflow:hidden;isolation:isolate;border:0;border-radius:12px;padding:44px 40px 52px;background:#1E1647;text-align:left;box-shadow:none}
body.page-id-3172 .layout-features.border-box .layout-features__item::before{display:none}
body.page-id-3172 .layout-features.border-box .layout-features__item:nth-child(2){background:#fdcd00}
body.page-id-3172 .layout-features.border-box .layout-features__item::after{content:"";position:absolute;z-index:-1;right:-30px;bottom:-30px;width:190px;height:150px;background:url("/wp-content/uploads/2026/10/hero-bg.png") right bottom/contain no-repeat;opacity:.9}
body.page-id-3172 .layout-features.border-box .layout-features__item:nth-child(2)::after{background-image:url("/wp-content/uploads/2026/10/img-border.png");opacity:.35}
body.page-id-3172 .layout-features.border-box .layout-features__item-title{display:block;width:fit-content;margin:0 0 22px;padding:5px 14px;border-radius:999px;background:#fdcd00;color:#1E1647;font:700 14px/1.2 "Rethink Sans",sans-serif;letter-spacing:.02em;text-transform:uppercase}
body.page-id-3172 .layout-features.border-box .layout-features__item:nth-child(2) .layout-features__item-title{background:#1E1647;color:#fff}
body.page-id-3172 .layout-features.border-box .layout-features__item-desc,body.page-id-3172 .layout-features.border-box .layout-features__item-desc p{color:#fff;font-size:clamp(20px,2vw,26px);line-height:1.4;font-weight:600;max-width:30ch;margin:0}
body.page-id-3172 .layout-features.border-box .layout-features__item:nth-child(2) :is(.layout-features__item-desc,.layout-features__item-desc p){color:#1E1647}
/* Photo band between the heavier text sections */
.cm-photo-band{background:#fbf8f3;padding:64px 0}
.cm-photo-band .ev-gallery__grid{display:grid;grid-template-columns:1fr 1.25fr 1fr;gap:20px;align-items:center}
.cm-photo-band .ev-gallery__grid{height:auto!important}
.cm-photo-band .ev-gallery__thumb{position:static!important;transform:none!important;width:auto!important;height:auto!important;pointer-events:none;padding:0;border:0;background:none;display:block;width:100%}
.cm-photo-band .ev-gallery__thumb img{width:100%;height:300px;object-fit:cover;border-radius:12px;display:block}
.cm-photo-band .ev-gallery__thumb:nth-child(2) img{height:360px}
.cm-photo-band .ev-gallery__thumb:first-child img{border-radius:12px 12px 12px 40%}
.cm-photo-band .ev-gallery__thumb:last-child img{border-radius:12px 12px 40% 12px}
@media (max-width:767px){
body.page-id-3172 .layout-features.border-box .layout-features__item{padding:32px 24px 40px}
.cm-photo-band{padding:40px 0}
.cm-photo-band .ev-gallery__grid{grid-template-columns:1fr 1fr;gap:12px}
.cm-photo-band .ev-gallery__thumb img,.cm-photo-band .ev-gallery__thumb:nth-child(2) img{height:180px}
.cm-photo-band .ev-gallery__thumb:nth-child(2){grid-column:1/-1;order:-1}
.cm-photo-band .ev-gallery__thumb:nth-child(2) img{height:220px;border-radius:12px}
}
/* END about refresh */

/* ===== Mobile fixes 20 Oct (Speire). Delete to END mobile fixes 20 Oct ===== */
@media (max-width:767px){
.layout-features--split-icon .layout-features__split{grid-template-columns:minmax(0,1fr)!important}
.layout-features--split-icon .layout-features__strip{grid-template-columns:minmax(0,1fr)!important;gap:24px!important}
.cm-photo-band .ev-gallery__grid{display:grid!important;grid-template-columns:1fr 1fr!important}
}
@media (max-width:767px){
.media-text__inner,.cr-location__inner{grid-template-columns:minmax(0,1fr)!important}
.media-text__inner>*,.cr-location__inner>*{min-width:0}
.layout-features__ctas{flex-wrap:wrap}
.layout-features__ctas .btn{white-space:normal;max-width:100%;text-align:left}
}
@media (max-width:767px){main .btn,.page .section .btn{white-space:normal!important;max-width:100%;height:auto;line-height:1.3}}
@media (max-width:767px){.hero--layout-full :is(h1,.hero__title){overflow-wrap:anywhere;hyphens:auto}.hero--layout-full .hero__inner,.hero--layout-full .hero__inner>*{min-width:0;max-width:100%}}
/* END mobile fixes 20 Oct */

/* ===== Home hero logo (Calem, 20 Oct). Delete to END home hero logo ===== */
.home-pathways-hero-custom .layout-features__heading{display:flex;justify-content:center;width:100%;max-width:none;margin:-24px auto 0}
.home-pathways-hero-custom .layout-features__heading::before{content:"";display:block;margin:0 auto;width:clamp(260px,36vw,450px);aspect-ratio:269/150;background:url("/wp-content/uploads/2026/07/Company-Logo-1.svg") center center/contain no-repeat}
.home-pathways-hero-custom .layout-features__title{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;margin:0;padding:0}
.home-pathways-hero-custom .layout-features__body,.home-pathways-hero-custom .layout-features__desc{margin-top:0;padding-top:0}
.home-pathways-hero-custom .layout-features__upper{row-gap:0;gap:0}
.home-pathways-hero-custom .layout-features__heading::before{margin-bottom:calc(clamp(260px,36vw,450px) * -0.1)}
/* hero tagline size (Dave 20 Oct) */
html body .home-pathways-hero-custom :is(.layout-features__desc,.layout-features__desc *){font-size:28px}
@media (max-width:767px){html body .home-pathways-hero-custom :is(.layout-features__desc,.layout-features__desc *){font-size:20px;line-height:1.2}}
/* END home hero logo */

/* ===== Creche photo cards (20 Oct): 'What's Important To Us' images as full card headers. Delete to END creche photo cards ===== */
html body section.cm-ey-soft.cm-ey-photos.cm-ey-photos.cm-ey-photos .layout-features__item{padding:0 0 28px!important;overflow:hidden}
html body section.cm-ey-soft.cm-ey-photos.cm-ey-photos.cm-ey-photos .layout-features__item-icon{display:block!important;width:100%!important;height:auto!important;aspect-ratio:4/3;margin:0 0 22px!important;border-radius:0!important;background:none!important;padding:0!important;overflow:hidden}
html body section.cm-ey-soft.cm-ey-photos.cm-ey-photos.cm-ey-photos .layout-features__item-icon img{width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;border-radius:0!important}
html body section.cm-ey-soft.cm-ey-photos.cm-ey-photos.cm-ey-photos .layout-features__item>:not(.layout-features__item-icon){padding-left:24px;padding-right:24px}
html body section.cm-ey-soft.cm-ey-photos.cm-ey-photos.cm-ey-photos .layout-features__strip{border-top:0}
@media (max-width:991px){html body section.cm-ey-soft.cm-ey-photos.cm-ey-photos.cm-ey-photos .layout-features__strip{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media (max-width:575px){html body section.cm-ey-soft.cm-ey-photos.cm-ey-photos.cm-ey-photos .layout-features__strip{grid-template-columns:minmax(0,1fr)!important}html body section.cm-ey-soft.cm-ey-photos.cm-ey-photos.cm-ey-photos .layout-features__item-icon{aspect-ratio:16/10}}
/* END creche photo cards */

/* ===== Creche FAQ same cream as section (21 Oct). Delete to END creche faq cream ===== */
html body.page-id-3169 section.layout-faq.cm-ey-soft .layout-faq__item{background:transparent!important;box-shadow:none!important;border:0!important;border-bottom:1px solid rgba(30,22,71,.15)!important;border-radius:0!important}
html body.page-id-3169 section.layout-faq.cm-ey-soft .layout-faq__item:first-child{border-top:1px solid rgba(30,22,71,.15)!important}
/* END creche faq cream */

/* ===== Team cards show full bio (21 Oct): removes the 3-line clamp; full text also needs the template excerpt limit lifted (Jim/Michel). Delete to END team full bio ===== */
.dcb-card-team .dcb-card-excerpt{-webkit-line-clamp:unset!important;line-clamp:unset!important;display:block!important;overflow:visible!important;max-height:none!important}
/* END team full bio */
