/* Whole schemes, derived only from theme.json. No independent unsafe foreground. */
[data-c4c-scheme="white"]{--c4c-ground:var(--wp--preset--color--white);--c4c-foreground:var(--wp--preset--color--ink);--c4c-emphasis:var(--wp--preset--color--shield-blue)}
[data-c4c-scheme="ink"]{--c4c-ground:var(--wp--preset--color--ink);--c4c-foreground:var(--wp--preset--color--white);--c4c-emphasis:var(--wp--preset--color--champagne)}
[data-c4c-scheme="medal-navy"]{--c4c-ground:var(--wp--preset--color--medal-navy);--c4c-foreground:var(--wp--preset--color--white);--c4c-emphasis:var(--wp--preset--color--champagne)}
[data-c4c-scheme="shield-blue"]{--c4c-ground:var(--wp--preset--color--shield-blue);--c4c-foreground:var(--wp--preset--color--white);--c4c-emphasis:var(--wp--preset--color--champagne)}
[data-c4c-scheme="wave-teal"]{--c4c-ground:var(--wp--preset--color--wave-teal);--c4c-foreground:var(--wp--preset--color--white);--c4c-emphasis:var(--wp--preset--color--white)}
[data-c4c-scheme="water-aqua"]{--c4c-ground:var(--wp--preset--color--water-aqua);--c4c-foreground:var(--wp--preset--color--ink);--c4c-emphasis:var(--wp--preset--color--ink)}
[data-c4c-scheme="champagne"]{--c4c-ground:var(--wp--preset--color--champagne);--c4c-foreground:var(--wp--preset--color--ink);--c4c-emphasis:var(--wp--preset--color--medal-navy)}
[data-c4c-scheme="parchment"]{--c4c-ground:var(--wp--preset--color--parchment);--c4c-foreground:var(--wp--preset--color--ink);--c4c-emphasis:var(--wp--preset--color--medal-navy)}
[data-c4c-scheme]:not([data-c4c-scheme="inherit"]){
  --section-ground:var(--c4c-ground);--section-text:var(--c4c-foreground);--section-muted:var(--c4c-foreground);--section-accent:var(--c4c-emphasis);--section-rule:color-mix(in srgb,var(--c4c-foreground) 35%,transparent);
  background-color:var(--c4c-ground)!important;color:var(--c4c-foreground)!important;
}
[data-c4c-scheme]:not([data-c4c-scheme="inherit"]) :is(.eyebrow,.section-label){color:var(--c4c-emphasis)}
[data-c4c-scheme]:not([data-c4c-scheme="inherit"]) :focus-visible{outline:3px solid var(--c4c-emphasis);outline-offset:5px}
.c4c-design [data-c4c-scheme] :is(.source-figures strong,.framework-list li>span,.evidence-chain li>span){color:var(--section-accent,var(--teal))}
.c4c-design{width:100%;max-width:none;margin:0}
.c4c-design :is(.c4c-layout-split,.c4c-layout-grid){display:grid;gap:var(--gap);grid-template-columns:repeat(2,minmax(0,1fr))}
.c4c-design .c4c-layout-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))}
.c4c-design .c4c-layout-stacked{display:flex;flex-direction:column;gap:var(--gap)}
.c4c-design .c4c-layout-stacked>*{width:100%;min-width:0}
.c4c-design .wp-block-c4c-design-text{overflow-wrap:anywhere}
.c4c-design .wp-block-c4c-design-link{max-width:100%;overflow-wrap:anywhere}
.c4c-design .wp-block-c4c-design-container:empty{display:none}
.c4c-design .hero>video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:none;opacity:1}
.c4c-design .hero :is(h1,.hero-support,.hero-foot p,.hero-foot .link){background:transparent}
.c4c-design .hero-video-wash{display:none}
.c4c-design .concept-ripple{background:var(--wp--preset--color--white);color:var(--wp--preset--color--ink)}
.c4c-design .logo img{object-fit:contain!important}
.c4c-design .wp-block-c4c-impact-dashboard{max-width:100%;width:100%;margin:32px 0}
.c4c-design .wp-block-c4c-partner-enquiry{max-width:100%}
.c4c-design .hero-evidence .wp-block-c4c-impact-dashboard{padding:0}
/* The live dashboard needs a panel layout when embedded beside hero copy. */
:is(.c4c-site,.editor-styles-wrapper){
.c4c-design .hero-layout-dashboard.has-visual .inner-hero-composition{grid-template-columns:minmax(0,2fr) minmax(0,3fr);align-items:start}
.c4c-design .hero-layout-dashboard .inner-hero-composition>*{min-width:0}
.c4c-design .hero-layout-dashboard .wp-block-c4c-impact-dashboard{margin:0;padding:var(--wp--preset--spacing--md);border:1px solid var(--wp--preset--color--champion-gold)}
.c4c-design .hero-layout-dashboard .wp-block-c4c-impact-dashboard>.wrap{padding:0;max-width:none}
.c4c-design .hero-layout-dashboard .dashboard-heading{display:block;margin-bottom:24px}
.c4c-design .hero-layout-dashboard .dashboard-heading h2{font-size:clamp(28px,2.8vw,40px);line-height:1.1}
.c4c-design .hero-layout-dashboard .publication-status{margin-top:24px}
.c4c-design .hero-layout-dashboard .metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 24px}
.c4c-design .hero-layout-dashboard .metrics.c4c-metric-columns-1{grid-template-columns:minmax(0,1fr)}
.c4c-design .hero-layout-dashboard .metrics article{padding:0!important;border:0;min-width:0}
.c4c-design .hero-layout-dashboard .metrics h3{font-size:22px;line-height:1.25;overflow-wrap:normal}
.c4c-design .hero-layout-dashboard .metrics .metric-kind{white-space:nowrap}
.c4c-design .hero-layout-dashboard .metrics .metric-value{font-size:24px;min-height:0;margin-top:16px}
.c4c-design .hero-layout-dashboard .deployment{grid-template-columns:1fr;margin-top:32px}
.c4c-design .hero-layout-dashboard .deployment-overview{padding:0 0 24px}
.c4c-design .hero-layout-dashboard .map-panel,.c4c-design .hero-layout-dashboard .list-panel{margin-inline:0;border:0;min-height:240px;padding:20px}
.c4c-design .hero-layout-dashboard .dashboard-toolbar,.c4c-design .hero-layout-dashboard .dashboard-footer{flex-wrap:wrap;gap:16px}
@media(max-width:1199px){.c4c-design .hero-layout-dashboard.has-visual .inner-hero-composition{grid-template-columns:minmax(0,1fr)}}
@media(max-width:480px){.c4c-design .hero-layout-dashboard .metrics{grid-template-columns:minmax(0,1fr)}}
}
.c4c-design .wp-block-c4c-design-media{max-width:100%}
.c4c-design .c4c-captioned-media{margin:0;min-width:0}
.c4c-design .c4c-captioned-media>img{width:100%;height:auto}
.c4c-design .c4c-captioned-media>figcaption{margin-top:1em;font-size:var(--wp--preset--font-size--small);line-height:1.5}
.c4c-design .hero :is(.hero-support,.hero-foot p){max-width:60ch}
.c4c-editor-hidden{opacity:.45;outline:1px dashed currentColor}
.editor-styles-wrapper .c4c-design:not(.c4c-v5){font-family:var(--wp--preset--font-family--body)} /* v5 pages keep their own type in the canvas */
.editor-styles-wrapper .c4c-design .hero{height:auto;min-height:600px}
.editor-styles-wrapper .c4c-design .hero-content{position:relative}
.editor-styles-wrapper .c4c-design .hero>video{pointer-events:none}
@media(max-width:767px){.c4c-design .c4c-layout-split{grid-template-columns:1fr}}
.c4c-revised-header{max-width:none;background:var(--wp--preset--color--medal-navy);color:var(--wp--preset--color--white)}
.c4c-revised-header .header-actions{margin-left:auto}
.c4c-revised-header .c4c-header-cta a{background:var(--wp--preset--color--white);color:var(--wp--preset--color--medal-navy)}
.c4c-revised-header :focus-visible{outline-color:var(--wp--preset--color--champagne)}
/* Section-level controls retain the approved design, with bounded alternatives. */
.c4c-design .c4c-structured-section.c4c-section-compact{padding-block:var(--wp--preset--spacing--lg)}
.c4c-design .c4c-section-compact .inner-hero-composition{padding-block:var(--wp--preset--spacing--lg);min-height:0}
.c4c-design .c4c-section-narrow :is(.inner-heading>p,.inner-hero-intro,.section-media-copy>p){max-width:52ch}
.c4c-design .c4c-section-stacked :is(.section-media-layout,.inner-hero-composition,.split-statistic){display:flex;flex-direction:column;align-items:stretch}
.c4c-design .c4c-section-stacked :is(.section-media-layout,.inner-hero-composition,.split-statistic)>*{width:100%}
.c4c-design :is(.capability-strip,.hero-capabilities).c4c-structured-repeater{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))}
.c4c-design .c4c-structured-repeater:empty{display:none}
.c4c-design .concept-ripple.ripple-labels-below .ripple-composition{display:flex;flex-direction:column}
.c4c-design .concept-ripple.ripple-standard{max-width:720px}
.c4c-structured-item{padding:16px 0;border-block-start:1px solid currentColor}
.c4c-section-field+.c4c-section-field{margin-top:24px;padding-top:16px;border-top:1px solid currentColor}
.c4c-structured-item .block-editor-rich-text__editable{min-height:36px;border:1px solid currentColor;padding:8px}
