/* ──────────────────────────────────────────────────────────────────────────
   Content Block
   Six image + text layouts: expandable (accordion), image-text (+bullets),
   image-text-v2 (heading top), image-text-v3 (watermark), image-text-cta (card),
   image-text-v4 (watermark, style 2 — icy/blush).
   Tokens only — no raw hex.
   ────────────────────────────────────────────────────────────────────────── */

.uw-cb {
	color: var(--wp--preset--color--deep-navy);
    background: var(--wp--preset--color--porcelain);
}
/* image-text: optional background colour (default porcelain, matches .uw-cb above). */
.uw-cb--bg-parchment { background: var(--wp--preset--color--parchment); }
.uw-cb__inner {
	position: relative;
	padding-top: clamp(64px, 9vw, 120px);
	padding-bottom: clamp(64px, 9vw, 120px);
}
/* image-text / image-text-v2: optional per-instance padding removal. */
.uw-cb--no-top-pad .uw-cb__inner { padding-top: 0; }
.uw-cb--no-bottom-pad .uw-cb__inner { padding-bottom: 0; }
/* image-text / image-text-v2: optional top border, matching the content width only — excludes the left/right padding. */
.uw-cb--top-border .uw-cb__inner::before {
	content: '';
	position: absolute;
	top: 0;
	left: clamp(24px, 4.94vw, 80px);
	right: clamp(24px, 4.94vw, 80px);
	height: 1px;
	background: color-mix(in srgb, var(--wp--preset--color--deep-navy) 10%, transparent);
}

/* ── Shared atoms ── */
.uw-cb__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	font-family: var(--wp--preset--font-family--marr-sans-cond);
	font-weight: 600;
	font-size: 20px;
	line-height: 1;
	text-transform: uppercase;
	color: var(--wp--preset--color--deep-navy);
}
.uw-cb__eyebrow-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--wp--preset--color--red); flex: none; }

.uw-cb--v3-cobalt .uw-cb__eyebrow {
	color: var(--wp--preset--color--icy-blue);
}

.uw-cb--v3-cobalt .uw-cb__eyebrow-dot {
	background: var(--wp--preset--color--icy-blue);
}

.uw-cb--exp-icy .uw-cb__eyebrow-dot {
	background: var(--wp--preset--color--cobalt-blue);
}

/* Inline (inner-block) eyebrow. A core/paragraph cannot carry the dot <span>, so
   the dot is drawn instead — which also means it cannot be deleted by accident
   and screen readers do not announce it. :has() keeps it off the legacy markup,
   which would otherwise get a second dot and an extra 12px of flex gap. */
.uw-cb__eyebrow:not(:has(> .uw-cb__eyebrow-dot))::before {
	content: "";
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--wp--preset--color--red);
	flex: none;
}
.uw-cb--v3-cobalt .uw-cb__eyebrow:not(:has(> .uw-cb__eyebrow-dot))::before { background: var(--wp--preset--color--icy-blue); }
.uw-cb--exp-icy .uw-cb__eyebrow:not(:has(> .uw-cb__eyebrow-dot))::before { background: var(--wp--preset--color--cobalt-blue); }

.uw-cb__heading {
	margin: 0;
	font-family: var(--wp--preset--font-family--marr-sans-cond);
	font-weight: 500;
	font-size: 80px;
	line-height: 0.95;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--deep-navy);
	padding-bottom: 12px;
	margin-bottom: -12px;
}
/* Small heading option (any layout) — overrides the per-layout sizes below/the
   mobile clamp via the extra .uw-cb class instead of !important. */
.uw-cb.uw-cb--heading-sm .uw-cb__heading {
	font-size: clamp(32px, 5vw, 60px);
}
/* Legacy emits <div class="uw-cb__body"> (wysiwyg); the inline path emits
   <p class="uw-cb__body"> per paragraph, inside a .uw-cb__body-box group that
   plays the wrapper's part. Every rule here applies to both — the
   margin reset is a no-op on the <div> and cancels the <p>'s UA margins so the
   text column's flex gap stays the single source of vertical rhythm. */
.uw-cb__body,
.uw-cb__body-box > p {
	margin: 0;
	font-family: var(--wp--preset--font-family--pp-mori);
	font-weight: 400;
	font-size: var(--wp--preset--font-size--body-small);
	line-height: 1.5;
	color: var(--wp--preset--color--deep-navy);
}

/* The box inherits the body's type. */
.uw-cb__body-box {
	font-family: var(--wp--preset--font-family--pp-mori);
	font-size: var(--wp--preset--font-size--body-small);
	line-height: 1.5;
	margin: 0;
}
/* Legacy only — inert once the body is a <p> with no children of its own. */
.uw-cb__body p { margin: 0 0 1rem; }
.uw-cb__body p:last-child { margin-bottom: 0; }
/* Inline path: a multi-paragraph body is consecutive core/paragraph blocks inside
   the box, so they take the same 1rem rhythm the legacy inner <p>s had. */
.uw-cb__body-box > p { margin: 0 0 1rem; }
.uw-cb__body-box > p:last-child { margin-bottom: 0; }

/* .uw-cb__cta shape only — colour/arrow handled by the shared uw-pill-btn*
   system (unitedway_cb_cta()); see custom-styles.css. */
/* The pill itself is .uw-pill-btn (custom-styles.css); only its placement in the
   text column is this block's business. */
.uw-cb__cta { align-self: flex-start; }
/* image-text layout: up to 3 CTAs (cta_label/url, cta2_*, cta3_*) */
.uw-cb__ctas {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
}


/* ── Image ── */
.uw-cb__figure { margin: 0; border-radius: 12px; overflow: hidden; position: relative; }
.uw-cb__figure .uw-cb__img,
.uw-cb__figure img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 12px;
}
.uw-cb__img--ph { background: color-mix(in srgb, var(--wp--preset--color--deep-navy) 8%, transparent); aspect-ratio: 718 / 580; }

/* ── Video (poster + play button → modal) ── */
.uw-cb__figure--video { position: relative; }
.uw-cb__poster { position: absolute; inset: 0; display: block; }
.uw-cb__figure--video .uw-cb__poster:before {
	content: '';
	position: absolute;
	left: 0;
	width: 100%;
	bottom: 0;
	height: 30%;
	background: rgba(0, 0, 0, 0.1);
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%);
	z-index: 1;
}
.uw-cb__poster .screen-reader-text, .uw-cb__poster .uw-cb__play-bar { z-index: 2; }

/* play circle */
.uw-cb__play {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--wp--preset--color--icy-blue);
	color: var(--wp--preset--color--deep-navy);
	box-shadow: 0 8px 24px color-mix(in srgb, var(--wp--preset--color--deep-navy) 30%, transparent);
	transition: transform 0.2s ease;
	flex: none;
}
.uw-cb__play svg { margin: 1px 0 0 4px; }

/* play bar (circle + title + duration) */
.uw-cb__play-bar {
	position: absolute;
	left: clamp(16px, 2.5vw, 32px);
	bottom: clamp(16px, 2.5vw, 32px);
	display: inline-flex;
	align-items: center;
	gap: 14px;
	z-index: 2;
}
/* standalone play circle (no title) */
.uw-cb__poster > .uw-cb__play {
	position: absolute;
	left: clamp(16px, 2.5vw, 32px);
	bottom: clamp(16px, 2.5vw, 32px);
}
.uw-cb__play-info {
	display: flex; 
	gap: 2px;
	font-size: var(--wp--preset--font-size--body);
	line-height: 1.1;
	color: var(--wp--preset--color--white); 
	font-family: var(--wp--preset--font-family--test-national-2-condensed);
}
.uw-cb__play-title { 
	font-weight: 700;  
	text-transform: uppercase; 
}
 
.uw-cb__poster:hover .uw-cb__play,
.uw-cb__poster:focus-visible .uw-cb__play { transform: scale(1.06); }

/* ── Video modal ── */
.uw-cb-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	background: color-mix(in srgb, var(--wp--preset--color--deep-navy) 50%, transparent);
	opacity: 0;
	transition: opacity 0.2s ease;
}
.uw-cb-modal.is-visible { display: flex; }
.uw-cb-modal.is-open { opacity: 1; }
.uw-cb-modal__inner {
	position: relative;
	width: min(90vw, 1100px);
	aspect-ratio: 16 / 9;
}
.uw-cb-modal__inner iframe,
.uw-cb-modal__inner video {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
	border-radius: 8px;
}
.uw-cb-modal__close {
	position: absolute;
	top: -48px;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--wp--preset--color--cobalt-blue);
	color: var(--wp--preset--color--white);
	border: none;
	cursor: pointer;
	transition: background 0.15s ease;
}
.uw-cb-modal__close:hover,
.uw-cb-modal__close:focus-visible { background: rgba(255,255,255,0.3); outline: none; }
.uw-cb-modal__close svg { width: 20px; height: 20px; display: block; }

/* Watermark (v3 + expandable). */
.uw-cb__card-wm {
	position: absolute;
	right: -4%;
	top: 50%;
	transform: translateY(-50%);
	width: min(46%, 700px);
	z-index: 0;
	opacity: 0.5;
	pointer-events: none;
}
.uw-cb__card-wm svg, .uw-cb__card-wm img { width: 100%; height: auto; display: block; }
/* Expandable watermarks — positioned absolutely inside .uw-cb__card */
.uw-cb__card-wm { position: absolute; z-index: 0; pointer-events: none; }
.uw-cb__card-wm svg { display: block; }
.uw-cb--expandable .uw-cb__card-wm { opacity: 1; }

/* Soft-blush: single shape top-right */
.uw-cb__card-wm--blush-tr { 
	bottom: 0;
    right: 0;
    width: 526px;
    height: 530px;
    transform: none; 
	top: auto;
}

/* Icy-blue: large shape bottom-left, small shape top-right */
.uw-cb__card-wm--icy-bl { bottom: 0; left: 0; width: clamp(200px, 40%, 617px); transform: none; top: auto; }
.uw-cb__card-wm--icy-tr { top: 0; right: 0; width: clamp(120px, 22%, 343px); transform: none; }
.uw-cb--exp-icy .uw-cb__card-wm.uw-cb__card-wm--icy-tr *, .uw-cb--exp-icy .uw-cb__card-wm.uw-cb__card-wm--icy-bl * { fill: #fff; }
 


/* ────────────────────────── image-text + image-text-v3 ────────────────────── */
.uw-cb__row {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: flex-start;
	gap: clamp(2rem, 3.6vw, 148px);
}
.uw-cb--img-right .uw-cb__row { flex-direction: row-reverse; justify-content: space-between; }
.uw-cb__row .uw-cb__figure { flex: 0 1 50%; aspect-ratio: 718 / 580; }
.uw-cb__row .uw-cb__text {
	flex: 1 1 0;
	min-width: 0;
	max-width: 470px;
	display: flex;
	flex-direction: column;
	gap: clamp(1.5rem, 2.5vw, 40px);
	align-items: flex-start;
	width: 50%;
}

/* image-text / image-text-v3 / image-text-cta / expandable: the figure
   renders twice (render.php) — once as .uw-cb__row's (or .uw-cb__cta-card's
   or .uw-cb__card's) own child (desktop, beside the text), once inside
   .uw-cb__text right after the heading (mobile). Only one is ever visible;
   the mobile media query below swaps which. */
.uw-cb--expandable .uw-cb__text > .uw-cb__figure,
.uw-cb--image-text .uw-cb__text > .uw-cb__figure,
.uw-cb--image-text-v3 .uw-cb__text > .uw-cb__figure,
.uw-cb--image-text-v4 .uw-cb__text > .uw-cb__figure,
.uw-cb--image-text-cta .uw-cb__text > .uw-cb__figure { display: none; }

/* image-text-v3: cobalt full-bleed, white text, bigger heading, portrait image */
.uw-cb--image-text-v3 { background: var(--wp--preset--color--cobalt-blue); color: var(--wp--preset--color--white); overflow: hidden; position: relative; }
.uw-cb--image-text-v3 .uw-cb__heading,
.uw-cb--image-text-v3 .uw-cb__body,
.uw-cb--image-text-v3 .uw-cb__body-box > p { color: var(--wp--preset--color--icy-blue); }
.uw-cb--image-text-v3 .uw-cb__row .uw-cb__figure { flex: 0 1 50%; aspect-ratio: 777 / 800; }
.uw-cb--image-text-v3 .uw-cb__row .uw-cb__text { max-width: 554px; align-self: center; }
.uw-cb--image-text-v3 .uw-cb__heading { font-size: clamp(48px, 6.9vw, var(--wp--preset--font-size--heading-1)); line-height: 0.95; }
.uw-cb--image-text-v3 .uw-cb__inner { padding-top: 15px; padding-bottom: 15px; }

/* v3 decorative shape — always bottom-right, outside uw-cb__inner */
.uw-cb__deco {
	position: absolute;
	bottom: 0;
	right: 0;
	pointer-events: none;
	z-index: 0;
}
.uw-cb__deco svg { display: block; }

/* v3 theme: blush — soft-blush BG, deep-navy text, red CTA, navy watermark */
.uw-cb--image-text-v3.uw-cb--v3-blush { background: var(--wp--preset--color--soft-blush); color: var(--wp--preset--color--deep-navy); }
.uw-cb--image-text-v3.uw-cb--v3-blush .uw-cb__eyebrow,
.uw-cb--image-text-v3.uw-cb--v3-blush .uw-cb__heading,
.uw-cb--image-text-v3.uw-cb--v3-blush .uw-cb__body,
.uw-cb--image-text-v3.uw-cb--v3-blush .uw-cb__body-box > p { color: var(--wp--preset--color--deep-navy); }

/* v3 theme: icy — icy-blue BG, deep-navy text, cobalt CTA, cobalt watermark */
.uw-cb--image-text-v3.uw-cb--v3-icy { background: var(--wp--preset--color--icy-blue); color: var(--wp--preset--color--deep-navy); }
.uw-cb--image-text-v3.uw-cb--v3-icy .uw-cb__eyebrow,
.uw-cb--image-text-v3.uw-cb--v3-icy .uw-cb__heading,
.uw-cb--image-text-v3.uw-cb--v3-icy .uw-cb__body,
.uw-cb--image-text-v3.uw-cb--v3-icy .uw-cb__body-box > p { color: var(--wp--preset--color--deep-navy); }
/* Long unbroken links (URLs) in the body copy wrap instead of overflowing. */
.uw-cb--image-text-v3 .uw-cb__body-box > p a { word-break: break-all; }

/* ── Bullet list (image-text) ── */
.uw-cb__bullets {
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
}
/* Two forms, one box. Legacy: <li class="uw-cb__bullet"> with a dot <span> and a
   text <span>. Inline (core/list-item): a bare <li>. The extra element selector
   takes specificity from 0,1,0 to 0,1,1 — still above theme.json's :where() and
   still below the editor's own .has-* !important declarations. */
.uw-cb__bullet,
.uw-cb__bullets li {
	position: relative;
	padding: 20px 0 20px 30px;
	border-top: 1px dashed color-mix(in srgb, var(--wp--preset--color--deep-navy) 12%, transparent);
	font-family: var(--wp--preset--font-family--pp-mori);
	font-weight: 400;
	font-size: 18px;
	line-height: 1.3;
	color: var(--wp--preset--color--deep-navy);
}
/* Legacy dot (typed markup). */
.uw-cb__bullet-dot { position: absolute; left: 0; top: 29px; display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--wp--preset--color--red); }
/* Inline dot (drawn), for list items that carry no dot <span>. */
.uw-cb__bullets li:not(:has(> .uw-cb__bullet-dot))::before {
	content: "";
	position: absolute;
	left: 0;
	top: 29px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--wp--preset--color--red);
}

/* ──────────────── image-text: inline (inner-block) path ───────────────────────
   Only the image-text layout is converted; the other five keep their ACF markup,
   so nothing below can match them.

   <InnerBlocks class="uw-cb__flow"> wraps eyebrow/heading/body/bullets in one
   element. Making that element transparent hands its children straight to
   .uw-cb__text's flex box, so the existing clamp(1.5rem, 2.5vw, 40px) gap keeps
   spacing them exactly as it spaced the ACF markup — and so `order` can
   interleave the mobile figure duplicate between them. */
.uw-cb__flow { display: contents; }
/* Editor bridge: in the canvas the region is wrapped again by Gutenberg's own
   two divs. Same treatment, or the flex layout collapses into a single item. */
.uw-cb__flow > .block-editor-inner-blocks,
.uw-cb__flow > .block-editor-inner-blocks > .block-editor-block-list__layout { display: contents; }
.uw-cb__flow p.wp-block-paragraph { margin: 0; }

/* Empty state. Gutenberg materializes the template into every freshly inserted
   block, and an untouched core block still serializes and renders as an empty
   element - which the rules above would otherwise decorate with a stray red dot
   or an empty dashed bullet row, and which would put an empty heading into the
   accessibility tree. The legacy markup never emits these elements empty (every
   one is behind a trim() guard in render.php), so these rules are inert for it.

   NOT scoped to a layout. All six layouts run the inline path now, and every one
   of them draws the eyebrow dot on the element itself, so an untouched eyebrow
   paints a bare red circle on the page - which is what a layout-scoped version of
   this rule left on image-text-v3, v2, v4, cta and expandable.

   `:not([contenteditable])` is what keeps this off the editor canvas, where an
   empty block is precisely what the author has to be able to click into: Gutenberg
   marks every RichText element contenteditable there and nothing on the front end
   carries the attribute. It replaces the .editor-styles-wrapper restores this rule
   used to need, which had to name a display value per element and so could not be
   widened without guessing one for every layout. */
.uw-cb__eyebrow:empty:not([contenteditable]),
.uw-cb__heading:empty:not([contenteditable]),
.uw-cb__body:empty:not([contenteditable]),
.uw-cb__body-box > p:empty:not([contenteditable]) { display: none; }
/* Bullets stay scoped: they are inner blocks on image-text only. */
.uw-cb--image-text .uw-cb__bullets li:empty:not([contenteditable]) { display: none; }
.uw-cb--image-text .uw-cb__bullets:not(:has(li:not(:empty))) { display: none; }
.editor-styles-wrapper .uw-cb--image-text .uw-cb__bullets:not(:has(li:not(:empty))) { display: block; }

/* ────────────────── image-text-v4 (watermark, style 2) ─────────────────────── */
.uw-cb--image-text-v4 { overflow: hidden; position: relative; }
.uw-cb--image-text-v4.uw-cb--v4-icy { background: var(--wp--preset--color--icy-blue); }
.uw-cb--image-text-v4.uw-cb--v4-blush { background: var(--wp--preset--color--soft-blush); }
.uw-cb--image-text-v4 .uw-cb__row { justify-content: space-between; }
.uw-cb--image-text-v4 .uw-cb__row .uw-cb__figure { flex: 0 1 600px; aspect-ratio: 5 / 6; }
.uw-cb--image-text-v4 .uw-cb__row .uw-cb__text { max-width: 560px; align-self: center; }

/* Same watermark shapes for both colour options, bled to the full section edges
   instead of clipped inside a card. */
.uw-cb__wm { position: absolute; z-index: 0; pointer-events: none; }
.uw-cb__wm svg { display: block; }
.uw-cb__wm--tl { top: 0; left: 0; width: clamp(220px, 41%, 594px); }
.uw-cb__wm--br { bottom: 0; right: 0; width: clamp(140px, 24%, 352px); }
/* Image on the right sits over the top-left watermark — hide it in that position. */
.uw-cb--image-text-v4.uw-cb--img-right .uw-cb__wm--tl { display: none; }

/* ────────────────────────── image-text-v2 (heading on top) ────────────────── */
.uw-cb--image-text-v2 .uw-cb__top {
	display: flex;
	flex-direction: column;
	gap: clamp(1rem, 1.7vw, 24px);
	max-width: 783px;
	margin-bottom: clamp(2rem, 4vw, 48px);
}
.uw-cb--image-text-v2 .uw-cb__heading { font-size: clamp(44px, 6vw, var(--wp--preset--font-size--heading-3)); }
.uw-cb--image-text-v2 .uw-cb__row .uw-cb__text { align-self: flex-start; }
/* Untouched by the block-wide .uw-cb__body line clamp — this layout runs full text. */
.uw-cb--image-text-v2 .uw-cb__body,
.uw-cb--image-text-v2 .uw-cb__body-box {
	display: block;
	-webkit-line-clamp: unset;
	overflow: visible;
	max-height: none;
}

/* ────────────────────────── image-text-cta (card) ────────────────────────── */
.uw-cb__cta-card {
	display: flex;
	align-items: stretch;
	gap: clamp(2rem, 7vw, 110px);
	background: var(--wp--preset--color--parchment);
	border-radius: 20px;
	padding: 20px;
}
/* Article "211 data" report card (article-default pattern) — pixel-matched to
   Figma 1404-2387. Applied via the pattern's is-report-card className on the
   image-text-cta layout: soft-blush card, 338x300 image left, red "Report" pill,
   40px title, 18px body, and a "View all posts" text link + navy circle arrow. */
.uw-cb.is-report-card { padding: 0; }
.uw-cb.is-report-card .uw-cb__inner { padding: 0; max-width: none; }
.uw-cb.is-report-card .uw-cb__cta-card {
	background: var(--wp--preset--color--soft-blush);
	gap: 24px;
	padding: 16px;
	border-radius: 12px;
	align-items: stretch;
}
.uw-cb.is-report-card .uw-cb__cta-card .uw-cb__figure {
	flex: 0 0 338px;
	width: 338px;
	max-width: 40%;
	aspect-ratio: auto;
	height: 300px;
	align-self: stretch;
	border-radius: 8px;
}
.uw-cb.is-report-card .uw-cb__text {
	padding: 12px 0;
	justify-content: flex-start;
	align-items: flex-start;
	gap: 20px;
	text-align: left;
}
.uw-cb.is-report-card .uw-cb__eyebrow {
	gap: 0;
	background: var(--wp--preset--color--red);
	color: var(--wp--preset--color--white);
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 18px;
	line-height: 1;
	text-transform: none;
}
/* The report card's eyebrow is a filled badge, not a dotted label, so it hides
   the dot. The inline path draws that dot as a pseudo-element instead of a
   <span>, so it needs the same suppression - without it the badge kept a
   12px circle in its own red, invisible against the fill but 12px wider than
   live. */
.uw-cb.is-report-card .uw-cb__eyebrow-dot,
.uw-cb.is-report-card .uw-cb__eyebrow::before { display: none; }
.uw-cb.is-report-card .uw-cb__heading {
	font-size: 40px;
	line-height: 1;
	letter-spacing: -0.8px;
	padding-bottom: 0;
	margin-bottom: 0;
}
.uw-cb.is-report-card .uw-cb__body,
.uw-cb.is-report-card .uw-cb__body-box > p {
	font-size: 18px;
	line-height: 1.3;
	letter-spacing: -0.18px;
	color: color-mix(in srgb, var(--wp--preset--color--deep-navy) 80%, transparent);
}
.uw-cb.is-report-card .uw-cb__text > .uw-pill-btn { margin-top: auto; }
.uw-cb.is-report-card .uw-pill-btn {
	background: none;
	border: 0;
	padding: 0;
	gap: 12px;
	color: var(--wp--preset--color--deep-navy);
	font-family: var(--wp--preset--font-family--marr-sans-cond);
	font-weight: 600;
	font-size: 18px;
}
.uw-cb.is-report-card .uw-pill-btn:hover,
.uw-cb.is-report-card .uw-pill-btn:focus-visible { background: none; color: var(--wp--preset--color--deep-navy); }
.uw-cb.is-report-card .uw-pill-btn :is(.uw-cb__arrow, .uw-arrow) {
	background: var(--wp--preset--color--deep-navy);
	color: var(--wp--preset--color--white);
	width: 30px;
	height: 30px;
}
@media (max-width: 781px) {
	.uw-cb.is-report-card .uw-cb__cta-card .uw-cb__figure { flex: none; width: 100%; max-width: none; height: 240px; }
}
.uw-cb__cta-card .uw-cb__figure { flex: 0 0 46%; aspect-ratio: 594 / 620; border-radius: 16px; }
.uw-cb__cta-card .uw-cb__text {
	flex: 1 1 0;
	min-width: 0;
	display: flex; 
	flex-wrap: wrap;
	justify-content: center;
	gap: clamp(1.25rem, 2vw, 28px);
	padding: clamp(1.5rem, 4vw, 68px) clamp(1rem, 3vw, 44px) clamp(1.5rem, 4vw, 68px) 0;
	max-width: 560px;
	justify-content: flex-start;
	align-items: center;
	align-content: center;
}

/* ────────────────────────── expandable (accordion card) ───────────────────── */
.uw-cb__card {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: stretch;
	gap: clamp(2rem, 6vw, 96px);
	background: #FDEBEA;
	border-radius: 20px;
	padding: clamp(28px, 4vw, 60px);
}
/* Expandable card colour variants */
.uw-cb--exp-icy .uw-cb__card {
	background: #DEF5FF;
}
.uw-cb--exp-icy .uw-cb__card-wm * { fill: var(--wp--preset--color--cobalt-blue); }
.uw-cb--exp-icy .uw-cb__acc-item { border-color: color-mix(in srgb, var(--wp--preset--color--deep-navy) 15%, transparent); }
.uw-cb--exp-parchment .uw-cb__card {
	background: var(--wp--preset--color--parchment);
}
.uw-cb--img-left .uw-cb__card { flex-direction: row-reverse; }
.uw-cb__card .uw-cb__figure { flex: 0 0 41%; max-height: 660px; position: relative; z-index: 1; }
.uw-cb__card .uw-cb__text {
	flex: 1 1 0;
	min-width: 0;
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: clamp(2rem, 4vw, 60px);
}
.uw-cb__card .uw-cb__head {
	display: flex;
	flex-direction: column;
	gap: clamp(1.25rem, 2.5vw, 40px);
}
.uw-cb__card .uw-cb__heading { font-size: clamp(40px, 5vw, var(--wp--preset--font-size--heading-3)); line-height: 0.95; }

.uw-cb__accordion { display: flex; flex-direction: column; }
.uw-cb__acc-item {
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--deep-navy) 10%, transparent);
}
 
.uw-cb__acc-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 20px 0;
	cursor: pointer;
	list-style: none;
}
.uw-cb__acc-head::-webkit-details-marker { display: none; }
.uw-cb__acc-label { display: inline-flex; align-items: center; gap: 16px; }
.uw-cb__acc-icon { color: var(--wp--preset--color--red); flex: none; }
.uw-cb__acc-icon svg { width: 30px; height: 30px; display: block; }
.uw-cb__acc-title {
	font-family: var(--wp--preset--font-family--marr-sans-cond);
	font-weight: 600;
	font-size: 30px;
	letter-spacing: -0.02em;
	line-height: 1;
	color: var(--wp--preset--color--deep-navy);
}
.uw-cb__acc-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--deep-navy);
	flex: none;
}
.uw-cb__acc-toggle svg { width: 24px; height: 24px; }
.uw-cb__acc-plus { display: block; }
.uw-cb__acc-minus { display: none; }
.uw-cb__acc-item[open] .uw-cb__acc-toggle {
	background: var(--wp--preset--color--deep-navy);
	color: var(--wp--preset--color--white);
}
.uw-cb__acc-item[open] .uw-cb__acc-plus { display: none; }
.uw-cb__acc-item[open] .uw-cb__acc-minus { display: block; }

.uw-cb__acc-panel {
	display: flex; 
	flex-wrap: wrap;
	gap: 20px;
	padding: 0 0 20px;
}
.uw-cb__acc-body {
	margin: 0;
	font-family: var(--wp--preset--font-family--pp-mori);
	font-weight: 400;
	font-size: var(--wp--preset--font-size--body-small);
	line-height: 1.3;
	color: var(--wp--preset--color--deep-navy);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	overflow: hidden;
}
/* Accordion panel link — text + arrow icon; only the icon animates on hover */
.uw-cb__acc-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	font-family: var(--wp--preset--font-family--test-national-2-condensed);
	font-weight: 500;
	font-size: 20px;
	line-height: 1;
	color: var(--wp--preset--color--deep-navy);
}
.uw-cb__acc-link-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid var(--wp--preset--color--deep-navy);
	flex: none;
	transition: background 0.2s ease, color 0.2s ease;
}
.uw-cb__acc-link-icon svg {
	width: 18px;
	height: 18px;
	display: block;
	transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.uw-cb__acc-link:hover .uw-cb__acc-link-icon,
.uw-cb__acc-link:focus-visible .uw-cb__acc-link-icon {
	background: var(--wp--preset--color--deep-navy);
	color: var(--wp--preset--color--white);
}
.uw-cb__acc-link:hover .uw-cb__acc-link-icon svg,
.uw-cb__acc-link:focus-visible .uw-cb__acc-link-icon svg {
	transform: translateX(3px);
}

.uw-cb--exp-icy .uw-cb__acc-icon svg, .uw-cb--exp-icy .uw-cb__acc-icon svg * { fill: var(--wp--preset--color--cobalt-blue); }
.uw-cb--exp-soft-blush .uw-cb__acc-icon svg, .uw-cb--exp-soft-blush .uw-cb__acc-icon svg * { fill: var(--wp--preset--color--red); }
.uw-cb--exp-parchment .uw-cb__acc-icon svg, .uw-cb--exp-parchment .uw-cb__acc-icon svg * { fill: var(--wp--preset--color--red); }

/* ── Mobile ── */
@media (max-width: 900px) {
	.uw-cb__row,
	.uw-cb__card,
	.uw-cb__cta-card { flex-direction: column !important; gap: clamp(2.5rem, 5vw, 2.5rem); }
	.uw-cb__row .uw-cb__figure,
	.uw-cb__card .uw-cb__figure,
	.uw-cb__cta-card .uw-cb__figure { flex: none; width: 100%; }
	.uw-cb__row .uw-cb__text,
	.uw-cb__cta-card .uw-cb__text { max-width: 100%; }
	.uw-cb--image-text-v3 .uw-cb__row { flex-direction: row-reverse !important; }
	.uw-cb--image-text-v3 .uw-cb__row .uw-cb__figure { max-height: 390px; }
	/* image-text / image-text-v3 / image-text-cta / expandable: swap which of
	   the two figure copies is visible — see the default (desktop) rule above
	   style.css:270. cta's desktop copy is a .uw-cb__cta-card child, expandable's
	   a .uw-cb__card child; neither is .uw-cb__row's. */
	.uw-cb--expandable .uw-cb__card > .uw-cb__figure,
	.uw-cb--image-text .uw-cb__row > .uw-cb__figure,
	.uw-cb--image-text-v3 .uw-cb__row > .uw-cb__figure,
	.uw-cb--image-text-v4 .uw-cb__row > .uw-cb__figure,
	.uw-cb--image-text-cta .uw-cb__cta-card > .uw-cb__figure { display: none; }
	.uw-cb--image-text .uw-cb__text > .uw-cb__figure,
	.uw-cb--image-text-v3 .uw-cb__text > .uw-cb__figure,
	.uw-cb--image-text-v4 .uw-cb__text > .uw-cb__figure,
	.uw-cb--image-text-cta .uw-cb__text > .uw-cb__figure { display: block; }
	/* expandable's duplicate keeps the same sizing .uw-cb__card's figure used
	   to get here (pre-duplicate), so the mobile card stays the same size. */
	.uw-cb--expandable .uw-cb__text > .uw-cb__figure {
		display: block;
		aspect-ratio: 16 / 11;
		min-height: 320px;
	}
	.uw-cb__cta-card .uw-cb__text { padding: 0 clamp(0.5rem, 3vw, 1.5rem) clamp(1.5rem, 5vw, 2rem); }
	.uw-cb__acc-title { font-size: 24px; }
	.uw-cb__heading { font-size: clamp(36px, 9vw, 52px); } 
	.uw-cb__deco { width: 260px; overflow: hidden; }
	.uw-cb__deco svg {
		width: 140%;
    	height: auto;
	}
	.uw-cb--image-text-v3 .uw-cb__deco svg {
		width: 100%;
	}
	.uw-cb__card-wm--blush-tr {  width: 276px; height: 270px; }
	.uw-cb__row .uw-cb__text { width: 100%; }
	.uw-cb__eyebrow { margin-bottom: 15px; }
	.uw-cb--image-text-v4 .uw-cb__row .uw-cb__figure { flex: 0 1 420px; }
	.uw-cb--image-text-v3 .uw-cb__inner {
		padding-top: 30px;
		padding-bottom: 30px;
	}

	/* image-text only: on the inline path the mobile figure duplicate has to sit
	   at the end of .uw-cb__text, because a flat inner-block list cannot be
	   interrupted. `order` puts it back between the heading and the body.
	   Declaring an order for every child is deliberate — the sequence matches the
	   legacy DOM order exactly, so the same rules are inert for legacy instances
	   and no :has() scoping is needed. (`.uw-cb--image-text` is a whole class
	   token; it does not match uw-cb--image-text-v2/v3/v4/cta.) */
	/* Every layout that emits the mobile figure duplicate needs this, not just
	   image-text. `.uw-cb--image-text` is a whole class token and does NOT match
	   uw-cb--image-text-v3 / -v4 / -cta, so those three layouts lost the ordering
	   when their inline branch started emitting the duplicate after the region -
	   a mobile-only regression that no desktop pixel diff can see. */
	.uw-cb--image-text .uw-cb__eyebrow,
	.uw-cb--image-text-v4 .uw-cb__eyebrow,
	.uw-cb--image-text-cta .uw-cb__eyebrow { order: 1; }
	.uw-cb--image-text .uw-cb__heading,
	.uw-cb--image-text-v4 .uw-cb__heading,
	.uw-cb--image-text-cta .uw-cb__heading { order: 2; }
	/* Watermark (v3), every colour theme: the eyebrow takes order 2 and the heading order 3. */
	body .uw-cb--image-text-v3 p.uw-cb__eyebrow { order: 2; }
	.uw-cb--image-text-v3 .uw-cb__heading { order: 3; }
	.uw-cb--image-text .uw-cb__text > .uw-cb__figure,
	.uw-cb--image-text-v3 .uw-cb__text > .uw-cb__figure,
	.uw-cb--image-text-v4 .uw-cb__text > .uw-cb__figure,
	.uw-cb--image-text-cta .uw-cb__text > .uw-cb__figure { order: 3; }
	/* Both shapes: the legacy <div class="uw-cb__body"> and the inline
	   .uw-cb__body-box that now holds the paragraphs. Without the box here it
	   kept the default order 0 and the body copy rendered ABOVE the eyebrow. */
	.uw-cb--image-text .uw-cb__body,
	.uw-cb--image-text-v3 .uw-cb__body,
	.uw-cb--image-text-v4 .uw-cb__body,
	.uw-cb--image-text-cta .uw-cb__body,
	.uw-cb--image-text .uw-cb__body-box,
	.uw-cb--image-text-v3 .uw-cb__body-box,
	.uw-cb--image-text-v4 .uw-cb__body-box,
	.uw-cb--image-text-cta .uw-cb__body-box { order: 4; }
	.uw-cb--image-text .uw-cb__bullets { order: 5; }
	.uw-cb--image-text .uw-cb__ctas,
	.uw-cb--image-text-v3 .uw-cb__ctas,
	.uw-cb--image-text-v4 .uw-cb__ctas,
	.uw-cb--image-text-cta .uw-cb__ctas { order: 6; }
	/* Some layouts render their CTA as a bare .uw-pill-btn rather than a
	   .uw-cb__ctas wrapper - the report card does, and so does image-text-v3 -
	   so none of the rules above reach it: it kept the default order 0 and jumped
	   to the TOP of the section on mobile, above the eyebrow. Match the button
	   itself, in every layout that takes the ordering, so a layout that switches
	   between the two shapes cannot lose its place again. */
	.uw-cb--image-text .uw-cb__text > .uw-pill-btn,
	.uw-cb--image-text-v3 .uw-cb__text > .uw-pill-btn,
	.uw-cb--image-text-v4 .uw-cb__text > .uw-pill-btn,
	.uw-cb--image-text-cta .uw-cb__text > .uw-pill-btn { order: 6; }

	/* Inline (inner-block) path: the image comes first, then the whole text flow
	   (eyebrow, heading, body, bullets), then the buttons. The flow is
	   `display: contents` on desktop, which has no box to order, so on mobile it
	   becomes a column of its own, with the same gap and alignment its children
	   had as direct children of .uw-cb__text. Legacy markup has no flow, so it
	   keeps the per-element ordering above. */
	.uw-cb--image-text .uw-cb__text:has(> .uw-cb__flow) > .uw-cb__figure,
	.uw-cb--image-text-v3 .uw-cb__text:has(> .uw-cb__flow) > .uw-cb__figure,
	.uw-cb--image-text-v4 .uw-cb__text:has(> .uw-cb__flow) > .uw-cb__figure,
	.uw-cb--image-text-cta .uw-cb__text:has(> .uw-cb__flow) > .uw-cb__figure { order: 1; }
	.uw-cb--image-text .uw-cb__text > .uw-cb__flow,
	.uw-cb--image-text-v4 .uw-cb__text > .uw-cb__flow,
	.uw-cb--image-text-cta .uw-cb__text > .uw-cb__flow {
		display: flex;
		flex-direction: column;
		gap: inherit;
		align-items: inherit;
		flex: 1 1 100%;
		width: 100%;
		order: 2;
	}
	.uw-cb__flow p.wp-block-paragraph:not(.uw-cb__eyebrow) { order: 5; }
	.uw-cb__flow p.wp-block-paragraph + .uw-cb__body-box { order: 6; }
}