/*
 * United Way Theme — Supplemental Styles
 *
 * This file is intentionally lean. Brand tokens (colors, fonts, type scales,
 * button components) live in theme.json > styles.css so the block editor has
 * full visibility of them.
 *
 * NOTE: @font-face is generated by theme.json (settings.typography.fontFamilies
 * fontFace src). Required files in /assets/fonts/ — exact names must match:
 *   • MarrSansCondensed-Semibold-Web.woff2   (present)
 *   • PPMori-Regular.woff2 / PPMori-Semibold.woff2   (present)
 *   • TestNational2Condensed-Medium.woff2   (LICENSED — supply this file; it 404s
 *     until added, falling back to a system font)
 */

/* ─── Base ─────────────────────────────────────────────────────────────────── */

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

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

/*
 * `100vw` (used by full-bleed .alignfull sections below) includes the
 * vertical scrollbar's width, so it is always slightly wider than the
 * visible page. That overshoot is symmetric and off-screen by design (see
 * --uw-article-w below) — this just clips it silently instead of letting it
 * render as a few px of real horizontal scroll.
 */
html { overflow-x: hidden; }

/* ─── Full-bleed sections sit flush ────────────────────────────────────────── */

/*
 * theme.json blockGap (1.5rem) makes WordPress add margin-block-start to every
 * top-level and constrained child — which inserts a gap above/below each
 * full-width section/pattern. Drop it for top-level blocks and full-bleed
 * sections so they butt together; each section owns its own vertical padding.
 * Constrained in-content blocks (paragraphs, headings) keep their blockGap.
 */
.wp-site-blocks > * { margin-block-start: 0; }
.wp-block-post-content > .alignfull,
.entry-content > .alignfull { margin-block: 0; }

/* ─── Shared block layout ──────────────────────────────────────────────────── */

/*
 * Common max-width wrapper for the `__inner` div every content block renders
 * directly inside its outer <section>. Centralized here so the 1620px content
 * cap and the left/right gutter are a single source of truth instead of being
 * redeclared per block. Each block keeps its own padding-top/padding-bottom
 * (vertical rhythm differs per block) but not padding-left/right.
 */
.uw-container {
	max-width: 1620px;
	margin: 0 auto;
	padding-left: clamp(24px, 4.94vw, 80px);
	padding-right: clamp(24px, 4.94vw, 80px);
}

/*
 * Rendered height of the fixed site nav (logo height + its own vertical
 * padding). The nav is position:fixed (site-nav.css) and out of document
 * flow, so anything that used to rely on the nav's in-flow height reserves
 * this same amount via padding-top instead — single source of truth.
 */
:root {
	--uw-nav-height: 110px;
}

/*
 * Keep focused and anchor-targeted elements clear of the fixed nav (WCAG 2.4.11
 * Focus Not Obscured). The browser scrolls a newly focused element into view
 * below this inset. --uw-nav-height covers desktop; the mobile bar is shorter
 * (60px logo), so the same value leaves a little extra room there.
 */
html {
	scroll-padding-top: calc(var(--uw-nav-height) + 16px);
}

/* The skip link focuses <main> itself (tabindex="-1", inc/site-nav.php). It is a container, not a
   control, so no ring around the whole page; the next Tab lands on the first
   link or button inside it, which shows its own focus. */
main[tabindex="-1"]:focus {
	outline: none;
}

/* ─── Site header ──────────────────────────────────────────────────────────── */

.site-header a            { color: var(--wp--preset--color--white); text-decoration: none; }
.site-header a:hover      { color: var(--wp--preset--color--yellow); }

/* ─── Navigation ───────────────────────────────────────────────────────────── */

.wp-block-navigation a {
	font-family: var(--wp--preset--font-family--pp-mori);
	font-size: 16px;
}

/* ─── Site footer ──────────────────────────────────────────────────────────── */

.site-footer a       { color: var(--wp--preset--color--icy-blue); text-decoration: none; }
.site-footer a:hover { color: var(--wp--preset--color--yellow); }

/* The footer donate pill is a button, not a footer link — keep its own white
   label instead of the icy-blue / yellow link colours above (Figma). Scope the
   span rule to the LABEL only: a bare `span` would also match .uw-cb__arrow and
   paint the arrow glyph white on its white circle, hiding it. */
.site-footer a.uw-pill-btn,
.site-footer a.uw-pill-btn:hover,
.site-footer a.uw-pill-btn:focus-visible,
.site-footer a.uw-pill-btn > span:not(.uw-cb__arrow):not(.uw-arrow) { color: var(--wp--preset--color--white); }

/* ─── Core button block ────────────────────────────────────────────────────── */

.wp-block-button__link {
	font-family: var(--wp--preset--font-family--pp-mori);
	border-radius: 0;
	transition: background-color .2s ease, color .2s ease;
}

/* ─── CTA buttons: arrow hover + colour protection (Figma 1830-2101) ────── */

.uw-roll-arrow__track {
  position: relative;
  display: inline-flex;
  overflow: hidden;
}

.uw-roll-arrow__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.uw-roll-arrow__icon:first-child {
  transform: translateX(0);
  opacity: 1;
}

.uw-roll-arrow__icon:last-child {
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  opacity: 0;
}
 
.uw-pill-btn:hover .uw-roll-arrow__icon:first-child, .uw-cb__acc-link:hover .uw-roll-arrow__icon:first-child, .uw-ap__page-arrow:hover .uw-roll-arrow__icon:first-child, .uw-sr__page-arrow:hover .uw-roll-arrow__icon:first-child, .uw-rc__viewall:hover .uw-roll-arrow__icon:first-child {
  transform: translateX(100%);
  opacity: 0;
}

.uw-pill-btn:hover .uw-roll-arrow__icon:last-child, .uw-cb__acc-link:hover .uw-roll-arrow__icon:last-child, .uw-ap__page-arrow:hover .uw-roll-arrow__icon:last-child, .uw-sr__page-arrow:hover .uw-roll-arrow__icon:last-child, .uw-rc__viewall:hover .uw-roll-arrow__icon:last-child {
  transform: translateX(0);
  opacity: 1;
}

/*
 * Arrow circle — geometry only (Figma: 36px circle, 18px glyph). Its background
 * and glyph colour come from the button's variant, below, so the same markup
 * serves primary (inverted circle) and secondary (accent circle).
 *
 * Two class names, one circle. `.uw-cb__arrow` is what unitedway_cb_cta() emits.
 * `.uw-arrow` is the name used by button markup that lives in the database
 * (templates customised in the Site Editor, and page content), which the theme
 * cannot rewrite — so it is supported here rather than left unstyled.
 */
.uw-cb__arrow,
.uw-arrow {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	flex: none;
	overflow: hidden;
}
.uw-cb__arrow svg,
.uw-arrow svg { width: 18px; height: 18px; display: block; }

/* ─── Pill button system (Figma 1830-10425 / 10426 / 10434) ────────────────── */

/*
 * ONE component, two axes. Every pill CTA in the theme is `.uw-pill-btn` plus a
 * variant and a colour; nothing else sets a button's background, border, or
 * arrow fill.
 *
 *   variant  --primary   filled pill, arrow circle in the "on-accent" colour
 *            --secondary transparent pill, hairline border, arrow circle in the accent
 *   colour   --cobalt --red --navy --icy --white   (sets --uw-btn-accent)
 *   context  --on-dark   light-on-dark treatment for use over photo/navy heroes
 *
 * Both variants share one geometry (below) because Figma draws them identically:
 * only the fill, the border, and which element carries the accent change.
 *
 * Markup comes from unitedway_cb_cta() — <a class="uw-pill-btn …"><span>label
 * </span><span class="uw-cb__arrow">…</span></a> — so the label-roll and
 * arrow-slide hovers above apply to every button for free.
 */

/* Accent defaults to cobalt; a colour modifier overrides it. */
.uw-pill-btn {
	--uw-btn-accent: var(--wp--preset--color--cobalt-blue);
	--uw-btn-on-accent: var(--wp--preset--color--white);
	--uw-btn-hover: var(--wp--preset--color--deep-navy);
	--uw-btn-ink: var(--wp--preset--color--deep-navy);
	--uw-btn-hairline: color-mix(in srgb, var(--wp--preset--color--deep-navy) 20%, transparent);

	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 8px 8px 8px 20px;
	border: 1px solid transparent;
	border-radius: 100px;
	font-family: var(--wp--preset--font-family--test-national-2-condensed);
	font-weight: 500;
	font-size: 20px;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
a.uw-pill-btn > span:not(.uw-cb__arrow) { margin-top: -3px; }

/*
 * ── Colour axis ──
 *
 * The compound names (`--primary-cobalt`, `--secondary-red`, …) are the same
 * choice spelled as one class. Button markup lives in the database as well as in
 * this repo — Site Editor templates and page content the theme cannot rewrite —
 * so both spellings must resolve to the same tokens. They set the accent here
 * and pick up their fill from the variant groups below.
 */
.uw-pill-btn--cobalt,
.uw-pill-btn--primary-cobalt,
.uw-pill-btn--secondary-cobalt { --uw-btn-accent: var(--wp--preset--color--cobalt-blue); --uw-btn-on-accent: var(--wp--preset--color--white); --uw-btn-hover: var(--wp--preset--color--deep-navy); }
.uw-pill-btn--red,
.uw-pill-btn--primary-red,
.uw-pill-btn--secondary-red    { --uw-btn-accent: var(--wp--preset--color--red-text-safe, #DB382E); --uw-btn-on-accent: var(--wp--preset--color--white); --uw-btn-hover: var(--wp--preset--color--red2-hover, #B52E26); }
.uw-pill-btn--navy,
.uw-pill-btn--primary-navy,
.uw-pill-btn--secondary-navy   { --uw-btn-accent: var(--wp--preset--color--deep-navy);   --uw-btn-on-accent: var(--wp--preset--color--white); --uw-btn-hover: var(--wp--preset--color--cobalt-blue); }
.uw-pill-btn--icy    { --uw-btn-accent: var(--wp--preset--color--icy-blue);    --uw-btn-on-accent: var(--wp--preset--color--deep-navy); --uw-btn-hover: var(--wp--preset--color--white); }
.uw-pill-btn--white  { --uw-btn-accent: var(--wp--preset--color--white);       --uw-btn-on-accent: var(--wp--preset--color--deep-navy); --uw-btn-hover: var(--wp--preset--color--icy-blue); }

/* ── Context: over a dark hero, the ink and hairline flip to white ── */
.uw-pill-btn--on-dark {
	--uw-btn-ink: var(--wp--preset--color--white);
	--uw-btn-hairline: color-mix(in srgb, var(--wp--preset--color--white) 20%, transparent);
}

/*
 * Variant: primary — accent fills the pill, arrow circle inverts.
 *
 * A bare `.uw-pill-btn` (no variant class) IS primary: several blocks call
 * unitedway_cb_cta() without a modifier and expect the filled cobalt default.
 * Secondary/outline are declared after this at equal specificity, so they win
 * on elements that carry both.
 */
.uw-pill-btn,
.uw-pill-btn--primary,
.uw-pill-btn--primary-cobalt,
.uw-pill-btn--primary-red,
.uw-pill-btn--primary-navy {
	background: var(--uw-btn-accent);
	border-color: var(--uw-btn-accent);
	color: var(--uw-btn-on-accent);
}
.uw-pill-btn :is(.uw-cb__arrow, .uw-arrow),
.uw-pill-btn--primary :is(.uw-cb__arrow, .uw-arrow),
.uw-pill-btn--primary-cobalt :is(.uw-cb__arrow, .uw-arrow),
.uw-pill-btn--primary-red :is(.uw-cb__arrow, .uw-arrow),
.uw-pill-btn--primary-navy :is(.uw-cb__arrow, .uw-arrow) {
	background: var(--uw-btn-on-accent);
	color: var(--wp--preset--color--deep-navy);
}
.uw-pill-btn:hover,
.uw-pill-btn:focus-visible,
.uw-pill-btn--primary:hover,
.uw-pill-btn--primary:focus-visible,
.uw-pill-btn--primary-cobalt:hover,
.uw-pill-btn--primary-cobalt:focus-visible,
.uw-pill-btn--primary-red:hover,
.uw-pill-btn--primary-red:focus-visible,
.uw-pill-btn--primary-navy:hover,
.uw-pill-btn--primary-navy:focus-visible {
	background: var(--uw-btn-hover);
	border-color: var(--uw-btn-hover);
	color: var(--uw-btn-on-accent);
}

/* ── Variant: secondary — transparent pill, accent moves to the arrow circle ── */
.uw-pill-btn--secondary,
.uw-pill-btn--secondary-cobalt,
.uw-pill-btn--secondary-red,
.uw-pill-btn--secondary-navy {
	background: transparent;
	border-color: var(--uw-btn-hairline);
	color: var(--uw-btn-ink);
}
.uw-pill-btn--secondary :is(.uw-cb__arrow, .uw-arrow),
.uw-pill-btn--secondary-cobalt :is(.uw-cb__arrow, .uw-arrow),
.uw-pill-btn--secondary-red :is(.uw-cb__arrow, .uw-arrow),
.uw-pill-btn--secondary-navy :is(.uw-cb__arrow, .uw-arrow) {
	background: var(--uw-btn-accent);
	color: var(--uw-btn-on-accent);
}
.uw-pill-btn--secondary:hover,
.uw-pill-btn--secondary:focus-visible,
.uw-pill-btn--secondary-cobalt:hover,
.uw-pill-btn--secondary-cobalt:focus-visible,
.uw-pill-btn--secondary-red:hover,
.uw-pill-btn--secondary-red:focus-visible,
.uw-pill-btn--secondary-navy:hover,
.uw-pill-btn--secondary-navy:focus-visible {
	background: transparent;
	border-color: var(--uw-btn-accent);
	color: var(--uw-btn-ink);
}

/*
 * Legacy aliases. The eight block render.php call sites still pass the original
 * suffix names; each one is just a (variant + colour) pair, so map it onto the
 * axes above rather than restating any colour values. New code should use the
 * `--variant --colour` classes directly.
 */
.uw-st__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--deep-navy);
	flex: none;
}
.uw-st__arrow svg { width: 18px; height: 18px; display: block; }

.uw-pill-btn-blue,
.uw-pill-btn-red,
.uw-pill-btn-navy,
.uw-pill-btn-icy {
	background: var(--uw-btn-accent);
	border-color: var(--uw-btn-accent);
	color: var(--uw-btn-on-accent);
}
.uw-pill-btn-navy :is(.uw-cb__arrow, .uw-arrow),
.uw-pill-btn-icy :is(.uw-cb__arrow, .uw-arrow) {
	background: var(--uw-btn-on-accent);
	color: var(--uw-btn-accent);
}

.uw-pill-btn-blue:hover, .uw-pill-btn-blue:focus-visible,
.uw-pill-btn-red:hover, .uw-pill-btn-red:focus-visible,
.uw-pill-btn-navy:hover, .uw-pill-btn-navy:focus-visible,
.uw-pill-btn-icy:hover, .uw-pill-btn-icy:focus-visible {
	background: var(--uw-btn-hover);
	border-color: var(--uw-btn-hover);
}
.uw-pill-btn-red    { --uw-btn-accent: var(--wp--preset--color--red-text-safe, #DB382E); --uw-btn-on-accent: var(--wp--preset--color--white); --uw-btn-hover: var(--wp--preset--color--red2-hover, #B52E26); }
.uw-pill-btn-navy   { --uw-btn-accent: var(--wp--preset--color--deep-navy); --uw-btn-on-accent: var(--wp--preset--color--white); --uw-btn-hover: var(--wp--preset--color--cobalt-blue); }
.uw-pill-btn-icy    { --uw-btn-accent: var(--wp--preset--color--icy-blue);  --uw-btn-on-accent: var(--wp--preset--color--deep-navy); --uw-btn-hover: var(--wp--preset--color--white); }

.uw-pill-btn-outline,
.uw-pill-btn-outline-white,
.uw-pill-btn-outline-white2,
.uw-pill-btn-outline-white-red {
	background: transparent;
	border-color: var(--uw-btn-hairline);
	color: var(--uw-btn-ink);
}
.uw-pill-btn-outline :is(.uw-cb__arrow, .uw-arrow),
.uw-pill-btn-outline-white :is(.uw-cb__arrow, .uw-arrow),
.uw-pill-btn-outline-white2 :is(.uw-cb__arrow, .uw-arrow),
.uw-pill-btn-outline-white-red :is(.uw-cb__arrow, .uw-arrow) {
	background: var(--uw-btn-accent);
	color: var(--uw-btn-on-accent);
}
.uw-pill-btn-outline:hover, .uw-pill-btn-outline:focus-visible,
.uw-pill-btn-outline-white:hover, .uw-pill-btn-outline-white:focus-visible,
.uw-pill-btn-outline-white2:hover, .uw-pill-btn-outline-white2:focus-visible,
.uw-pill-btn-outline-white-red:hover, .uw-pill-btn-outline-white-red:focus-visible {
	border-color: var(--uw-btn-accent);
}
.uw-pill-btn-outline-white,
.uw-pill-btn-outline-white2,
.uw-pill-btn-outline-white-red {
	--uw-btn-ink: var(--wp--preset--color--white);
	--uw-btn-hairline: color-mix(in srgb, var(--wp--preset--color--white) 20%, transparent);
}
.uw-pill-btn-outline-white     { --uw-btn-accent: var(--wp--preset--color--icy-blue); --uw-btn-on-accent: var(--wp--preset--color--deep-navy); }
.uw-pill-btn-outline-white2    { --uw-btn-accent: var(--wp--preset--color--white);    --uw-btn-on-accent: var(--wp--preset--color--deep-navy); }
.uw-pill-btn-outline-white-red { --uw-btn-accent: var(--wp--preset--color--red-text-safe, #DB382E); --uw-btn-on-accent: var(--wp--preset--color--white); }
.uw-pill-btn-outline-white-red:hover,
.uw-pill-btn-outline-white-red:focus-visible { border-color: var(--wp--preset--color--red2-hover, #B52E26); }

.uw-pill-btn-outline-white:hover,
.uw-pill-btn-outline-white2:hover { color: var(--wp--preset--color--white); }

.uw-cb__acc-link :is(.uw-cb__arrow, .uw-arrow) { background: var(--wp--preset--color--deep-navy); color: var(--wp--preset--color--white); }

/* ─── Read More link — line animation (shared component) ───────────────────── */

/*
 * All "Read more" links share one animation: the underline is VISIBLE at rest
 * (page-load state), then on hover the line exits to the RIGHT while a fresh
 * line enters from the LEFT (two-pseudo technique — ::before exits, ::after
 * enters with a delay equal to the exit duration).
 *
 * Elements covered:
 *   .uw-read-more          — standalone <a> via unitedway_read_more_link()
 *   .uw-se__more           — span inside stories-events featured card / list row
 *   .uw-card__more         — span inside the shared .uw-card grid-card component
 *                            (used by both Related Content and Stories & Events)
 *   .uw-nav__feature-link  — span inside nav feature <a>
 *   .uw-lh__read-more      — standalone <a> in listing-hero
 *   .uw-hero-news-card__link — span inside hero news-card <a>
 *   .uw-pcar__more         — span/.uw-read-more in partner carousel card
 *   .uw-ef__panel-more     — span inside expandable-features panel <a>
 *
 * Each element's own block CSS sets font / color / layout. Only the animation
 * lives here so there is one place to tune timing.
 */

/* ── Shared base (position + no native decoration) ── */
.uw-read-more,
.uw-se__more,
.uw-card__more,
.uw-nav__feature-link,
.uw-lh__read-more,
.uw-hero-news-card__link,
.uw-ef__panel-more,
.uw-btn-tertiary {
	position: relative;
	display: inline-block;
	text-decoration: none;
	padding-bottom: 3px;
	font-size: 18px;
	font-weight: 600;
	font-family: var(--wp--preset--font-family--marr-sans-cond);
}

/*
 * Tertiary button (Figma 1830-10434) — the design-system's third button. It is
 * this same sweep-underline link, drawn in the button face: deep navy, Test
 * National 2 Condensed Medium 20px. Only the type differs, so it reuses the
 * animation above rather than redefining an underline.
 */
.uw-btn-tertiary {
	color: var(--wp--preset--color--deep-navy);
	font-family: var(--wp--preset--font-family--test-national-2-condensed);
	font-weight: 500;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	background: none;
	border: 0;
	padding: 0 0 4px;
}

/* ── ::before — visible at rest; exits RIGHT on hover ── */
.uw-read-more::before,
.uw-se__more::before,
.uw-card__more::before,
.uw-nav__feature-link::before,
.uw-lh__read-more::before,
.uw-hero-news-card__link::before,
.uw-ef__panel-more::before,
.uw-btn-tertiary::before {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 1px;
	background: currentColor;
	transform: scaleX(1);
	transform-origin: right;
	transition: transform 0.35s cubic-bezier(0.6, 0, 0.2, 1);
}

/* ── ::after — hidden at rest; enters from LEFT on hover ── */
.uw-read-more::after,
.uw-se__more::after,
.uw-card__more::after,
.uw-nav__feature-link::after,
.uw-lh__read-more::after,
.uw-hero-news-card__link::after,
.uw-ef__panel-more::after,
.uw-btn-tertiary::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.35s cubic-bezier(0.6, 0, 0.2, 1) 0.35s;
}

/* ── Hover triggers ── */

/* Standalone <a> (.uw-read-more, .uw-lh__read-more, .uw-btn-tertiary) */
.uw-read-more:hover::before,
.uw-read-more:focus-visible::before,
.uw-lh__read-more:hover::before,
.uw-lh__read-more:focus-visible::before,
.uw-btn-tertiary:hover::before,
.uw-btn-tertiary:focus-visible::before { transform: scaleX(0); }

.uw-read-more:hover::after,
.uw-read-more:focus-visible::after,
.uw-lh__read-more:hover::after,
.uw-lh__read-more:focus-visible::after,
.uw-btn-tertiary:hover::after,
.uw-btn-tertiary:focus-visible::after { transform: scaleX(1); }

/* Stories-events featured card + list row spans — triggered by parent hover */
.uw-se__featured:hover .uw-se__more::before,
.uw-se__featured:focus-visible .uw-se__more::before,
.uw-se__row:hover .uw-se__more::before,
.uw-se__row:focus-visible .uw-se__more::before { transform: scaleX(0); }

.uw-se__featured:hover .uw-se__more::after,
.uw-se__featured:focus-visible .uw-se__more::after,
.uw-se__row:hover .uw-se__more::after,
.uw-se__row:focus-visible .uw-se__more::after { transform: scaleX(1); }

/* Shared .uw-card grid-card (Related Content + Stories & Events) — triggered by parent card hover */
.uw-card:hover .uw-card__more::before,
.uw-card:focus-visible .uw-card__more::before { transform: scaleX(0); }

.uw-card:hover .uw-card__more::after,
.uw-card:focus-visible .uw-card__more::after { transform: scaleX(1); }

/* Nav feature span — triggered by parent feature link hover */
.uw-nav__feature:hover .uw-nav__feature-link::before,
.uw-nav__feature:focus-visible .uw-nav__feature-link::before { transform: scaleX(0); }

.uw-nav__feature:hover .uw-nav__feature-link::after,
.uw-nav__feature:focus-visible .uw-nav__feature-link::after { transform: scaleX(1); }

/* Homepage hero news-card span — triggered by parent card hover */
.uw-hero-news-card:hover .uw-hero-news-card__link::before,
.uw-hero-news-card:focus-visible .uw-hero-news-card__link::before { transform: scaleX(0); }

.uw-hero-news-card:hover .uw-hero-news-card__link::after,
.uw-hero-news-card:focus-visible .uw-hero-news-card__link::after { transform: scaleX(1); }

/* Expandable-features panel span — triggered by parent panel hover/focus/open */
.uw-ef__panel:hover .uw-ef__panel-more::before,
.uw-ef__panel:focus-visible .uw-ef__panel-more::before { transform: scaleX(0); }

.uw-ef__panel:hover .uw-ef__panel-more::after,
.uw-ef__panel:focus-visible .uw-ef__panel-more::after { transform: scaleX(1); }

/* ── Colour overrides: neutralise the global a:hover recolour ── */
/* theme.json elements.link[:hover] would push all <a> to deep-navy.
   Lock each context's intended colour so currentColor stays correct. */
.uw-pcar .uw-read-more         { color: var(--wp--preset--color--white); }
.uw-pcar .uw-read-more:hover,
.uw-pcar .uw-read-more:focus-visible { color: var(--wp--preset--color--icy-blue); }

/* Light variant (white "Read more" on dark backgrounds). */
.uw-se__more--light { color: var(--wp--preset--color--white); }
.uw-card__more--light { color: var(--wp--preset--color--white); }

/* Tertiary button holds deep navy through hover — the sweeping line, drawn with
   currentColor, is the whole hover state (Figma 1830-10434). */
.uw-btn-tertiary:hover,
.uw-btn-tertiary:focus-visible { color: var(--wp--preset--color--deep-navy); }

/* ─── Caption (Figma 1970-3515) ────────────────────────────────────────────── */

/*
 * The section eyebrow: a red dot, then the label in Marr Sans Cond Semibold,
 * uppercase. A paragraph block style (`is-style-caption`), not a block — the
 * editor types the words and picks the style, and the dot is drawn here rather
 * than pasted in as a "●" character, so it cannot be deleted or restyled by
 * accident and screen readers never announce it.
 */
.is-style-caption {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	color: var(--wp--preset--color--deep-navy);
	font-family: var(--wp--preset--font-family--marr-sans-cond);
	font-weight: 600;
	font-size: 20px;
	line-height: 1;
	letter-spacing: 0;
	text-transform: uppercase;
}
.is-style-caption::before {
	content: '';
	flex: none;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--wp--preset--color--red);
}

/* ─── Breadcrumb (shared component) ────────────────────────────────────────── */

/*
 * The house-icon breadcrumb from the Figma type page (1830-8820, "Link" row).
 * Defined once here rather than inside a block: Text Over Image Hero renders it
 * (adding only its own top margin via .uw-toi__breadcrumb), and it is the
 * canonical markup for a link-with-context anywhere else.
 *
 * Markup comes from unitedway_breadcrumb() — a <nav class="uw-crumb"> holding
 * an SVG home link, "/" separators, optional parent link, and current page.
 * Colour is inherited, so it works on light and dark backgrounds alike.
 */
.uw-crumb {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--wp--preset--font-family--pp-mori);
	font-size: 15px;
	line-height: 1.1;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--deep-navy);
}
.uw-crumb__home { display: inline-flex; color: inherit; }
.uw-crumb__home svg { width: 18px; height: 18px; display: block; transition: transform 0.2s ease; }
.uw-crumb__home:hover svg { transform: scale(1.15); }
.uw-crumb__sep { opacity: 0.6; }
.uw-crumb__link { color: inherit; text-decoration: none; }
.uw-crumb__link:hover { color: inherit; text-decoration: underline; }
.uw-crumb__current { font-weight: 600; }

/* ─── Shared card component (Related Content + Stories & Events grid cards) ── */

/*
 * .uw-card is ONE component with ONE set of class names, used verbatim by
 * both blocks' grid cards: Related Content (wrapped additionally in
 * .uw-rc__card) and Stories & Events' bottom 3-up grid (wrapped additionally
 * in .uw-se__card). Both render.php templates emit the exact same
 * .uw-card__* markup — this is not two parallel per-block class sets, it's
 * one design defined once. Three interchangeable formats: --light (icy-blue +
 * watermark, no image), --cobalt (cobalt bg, text top + image bottom),
 * --image (full-bleed photo + gradient, text pinned to the bottom).
 *
 * Each block's own style.css keeps only what's genuinely unique to it
 * (min-height, outer grid/header layout).
 */

/* ── Card shape + hover motion ── */
.uw-card {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	border-radius: 12px;
	text-decoration: none;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	justify-content: space-between;
}
.uw-card:hover,
.uw-card:focus-visible {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px color-mix(in srgb, var(--wp--preset--color--deep-navy) 12%, transparent);
}

/* ── Content wrapper (meta + bottom stack) ── */
.uw-card__content {
	padding: clamp(28px, 3vw, 30px);
	display: flex;
	flex-direction: column; 
	position: relative;
	z-index: 1;
	justify-content: space-between;
	min-height: 290px;
}
 
.uw-card--image  .uw-card__content { flex: 1 1 auto; }

/* ── Meta row: border-top + tag/dot + date ── */
.uw-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-top: clamp(14px, 1.5vw, 20px);
	border-top: 4px solid var(--wp--preset--color--white);
}
.uw-card--light .uw-card__meta {
	border-top-color: var(--wp--preset--color--deep-navy);
}

/* ── Category tag + dot (.uw-se__tag/.uw-se__dot are the same look, reused
   bare by stories-events list rows which don't use the card markup) ── */
.uw-card__tag,
.uw-se__tag {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--wp--preset--font-family--marr-sans-cond);
	font-weight: 600;
	font-size: 18px;
	line-height: 1;
	text-transform: uppercase;
	color: var(--wp--preset--color--deep-navy);
	letter-spacing: 0.02em;
}
.uw-card__tag--light { color: var(--wp--preset--color--white); }
.uw-se__tag--light { color: var(--wp--preset--color--white); }

.uw-card__dot,
.uw-se__dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--wp--preset--color--red);
	flex: none;
}
/* Dot flips white/deep-navy inside the card to stay readable on each format's background. */
.uw-card .uw-card__dot { background: var(--wp--preset--color--white); }
.uw-card--light .uw-card__dot { background: var(--wp--preset--color--deep-navy); }

.uw-card__date {
	font-family: var(--wp--preset--font-family--pp-mori);
	font-weight: 600;
	font-size: 15px;
	line-height: 0.9;
	white-space: nowrap;
}
.uw-card__date--light { color: var(--wp--preset--color--white); }

/* ── Title + bottom stack ── */
.uw-card__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--marr-sans-cond);
	font-weight: 600;
	font-size: clamp(22px, 2.5vw, var(--wp--preset--font-size--heading-5));
	line-height: 1.04;
	letter-spacing: -0.01em;
	/* At most two lines; a longer title ends in an ellipsis. */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	/* Room for descenders (g, y, p) on the second line, which the tight
	   line-height and overflow: hidden would otherwise clip. */
	padding-bottom: 3px;
}
.uw-card__bottom {
	display: flex;
	flex-direction: column;
	gap: clamp(12px, 1.5vw, 18px);
	margin-top: clamp(20px, 2vw, 32px);
}
.uw-card__more {
	align-self: flex-start;
}

/* ── Split format only (cobalt/text-top + real image-bottom): meta+title
   cluster in .uw-card__top instead of .uw-card__bottom, which then holds
   only "Read more" — spaced with the tighter title-to-more gap instead of
   the larger meta-to-title gap above. ── */
.uw-card__top {
	display: flex;
	flex-direction: column;
	gap: clamp(20px, 2vw, 32px);
}
.uw-card__top + .uw-card__bottom {
	margin-top: clamp(12px, 1.5vw, 18px);
}

/* ── Bottom image slot (cobalt format) ── */
.uw-card__img { 
	height: 290px;
	overflow: hidden;
}
.uw-card__img-el {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.uw-card__img-el--ph {
	background: color-mix(in srgb, var(--wp--preset--color--deep-navy) 15%, transparent);
}

/* ── Watermark (light format) ── */
.uw-card__wm {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 80%;
	z-index: 0;
	opacity: 1;
	pointer-events: none;
}
.uw-card__wm svg, .uw-card__wm img {
	width: 100%;
	height: auto;
	display: block;
}
.uw-card--light .uw-card__wm * { fill: #ADDCFA; }

/* Watermark tone-on-tone tints for colours that can also carry a .uw-card__wm
   (All Posts uses .uw-card__wm on colours beyond --light: cobalt/red/yellow). */
.uw-card--cobalt .uw-card__wm * { fill: #1458C9; }
.uw-card--red .uw-card__wm *    { fill: color-mix(in srgb, var(--wp--preset--color--white) 25%, var(--wp--preset--color--red-text-safe, #DB382E)); }
.uw-card--yellow .uw-card__wm * { fill: #F3BC4B; }

/* ── Format: light (icy-blue + watermark, no image) ── */
.uw-card--light {
	background: var(--wp--preset--color--icy-blue);
	color: var(--wp--preset--color--deep-navy);
}

/* ── Format: cobalt (cobalt bg, text top + image bottom) ── */
.uw-card--cobalt {
	background: var(--wp--preset--color--cobalt-blue);
	color: var(--wp--preset--color--white);
}
.uw-card--cobalt:hover,
.uw-card--cobalt:focus-visible {
	color: var(--wp--preset--color--white);
}

/* ── Colour: red (dark bg, white text — same treatment as cobalt/image; All
   Posts uses this on either the watermark or bottom-image structure) ── */
.uw-card--red {
	background: var(--wp--preset--color--red-text-safe, #DB382E);
	color: var(--wp--preset--color--white);
}
.uw-card--red:hover,
.uw-card--red:focus-visible {
	color: var(--wp--preset--color--white);
}

/* ── Colour: yellow (light bg, dark text — same treatment as light/icy) ── */
.uw-card--yellow {
	background: #FFC857;
	color: var(--wp--preset--color--deep-navy);
}
.uw-card--yellow .uw-card__meta { border-top-color: var(--wp--preset--color--deep-navy); }
.uw-card--yellow .uw-card__dot { background: var(--wp--preset--color--deep-navy); }

/* ── Format: image (full-bleed photo + gradient, text at bottom) ── */
.uw-card--image {
	background-color: var(--wp--preset--color--deep-navy);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	color: var(--wp--preset--color--white);
}
.uw-card--image:hover,
.uw-card--image:focus-visible {
	color: var(--wp--preset--color--white);
}
.uw-card--image::before {
	content: "";
	position: absolute;
	inset: 0;
	background: color-mix(in srgb, var(--wp--preset--color--deep-navy) 30%, transparent);
	z-index: 0;
}

@media (max-width: 700px) {
	.uw-card__title { font-size: 32px; }
	.uw-card__wm { max-width: 240px; }
	.uw-card__img { flex: none; height: 260px; }
}

/* ─── News archive / index listing (home, archive, index templates) ────────── */

.uw-archive__title {
	font-family: var(--wp--preset--font-family--marr-sans-cond);
	font-weight: 600;
	font-size: clamp(36px, 5vw, 64px);
	line-height: 1;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--deep-navy);
}
.uw-archive__desc {
	font-family: var(--wp--preset--font-family--pp-mori);
	color: var(--wp--preset--color--deep-navy);
	max-width: 60ch;
}
.uw-archive__grid { gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 2vw, 2rem); }

.uw-archive__card { gap: 0.75rem; }
.uw-archive__card .uw-archive__media img,
.uw-archive__card .wp-block-post-featured-image img {
	border-radius: 14px;
	width: 100%;
	object-fit: cover;
}
.uw-archive__eyebrow,
.uw-archive__eyebrow a {
	font-family: var(--wp--preset--font-family--marr-sans-cond);
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--cobalt-blue);
	text-decoration: none;
}
.uw-archive__post-title { margin: 0; }
.uw-archive__post-title a {
	font-family: var(--wp--preset--font-family--marr-sans-cond);
	font-weight: 600;
	font-size: clamp(20px, 1.8vw, 26px);
	line-height: 1.05;
	color: var(--wp--preset--color--deep-navy);
	text-decoration: none;
}
.uw-archive__post-title a:hover,
.uw-archive__post-title a:focus-visible { color: var(--wp--preset--color--cobalt-blue); }
.uw-archive__card .wp-block-post-excerpt {
	font-family: var(--wp--preset--font-family--pp-mori);
	font-size: 15px;
	line-height: 1.45;
	color: color-mix(in srgb, var(--wp--preset--color--deep-navy) 82%, transparent);
}
.uw-archive__date {
	font-family: var(--wp--preset--font-family--pp-mori);
	font-size: 13px;
	color: color-mix(in srgb, var(--wp--preset--color--deep-navy) 60%, transparent);
}

@media (max-width: 781px) {
	.uw-archive__grid { grid-template-columns: 1fr !important; }
}

/* ─── Single-post layout: sticky rail + full-bleed-capable body ────────────── */

/*
 * Content-grid: the whole grid is capped at 1620px + centred (same as
 * .uw-container) so the 842px content track lines up with every other
 * uw-container-based section on the page, not just the true viewport. The
 * post content sits in that centred 842px track (the Figma article measure),
 * the Article Rail sits in the left gutter as a sticky sidebar, and blocks set
 * to Wide or Full break out — Wide to 1200px, Full past the 1620px cap to the
 * true viewport edge (via --uw-article-w, see .alignfull below). At/below
 * 1280px the gutter is too narrow for the rail, so the whole thing stacks
 * (rail on top, content full width).
 */
.single main.uw-article > .uw-article__inner {
	/* Same 1620px cap + margin:auto as .uw-container, so the rail/content
	   gutter lines up with the header/hero and every other uw-container-based
	   section instead of being centred against the true (uncapped) viewport,
	   which pushed the rail further left than the rest of the page on wide
	   screens. --uw-article-w mirrors the cap for .alignfull below, so
	   full-bleed blocks in the body can still reach the true viewport edge. */
	max-width: 1620px;
	margin-inline: auto;
	--uw-article-w: min(100vw, 1620px);
	--uw-content: 842px;
	--uw-wide: 1200px;
	/* Matches .uw-container's own padding-left/right so the edge gutter is
	   identical to every other section's inset. */
	--uw-pad: clamp(24px, 4.94vw, 80px);
	--uw-rail: 280px;
	--uw-gap: clamp(1.5rem, 6vw, 5.8rem);
	/* Reserve room for the rail + gap on each side so it always fits the gutter;
	   the content shrinks from 842 on narrower desktops rather than the rail
	   overflowing. */
	--uw-side: calc(var(--uw-rail) + var(--uw-gap) + var(--uw-pad));
	display: grid;
	grid-template-columns:
		[full-start] minmax(var(--uw-pad), 1fr)
		[wide-start] minmax(0, calc((var(--uw-wide) - var(--uw-content)) / 2))
		[content-start] min(var(--uw-content), 100% - 2 * var(--uw-side))
		[content-end] minmax(0, calc((var(--uw-wide) - var(--uw-content)) / 2))
		[wide-end] minmax(var(--uw-pad), 1fr)
		[full-end];
	padding-block: clamp(2.5rem, 4vw, 4rem);
	row-gap: 0;
}
/* Direct children (tags, comments, separators) sit in the centred content track. */
.single main.uw-article > .uw-article__inner > * {
	grid-column: content-start / content-end;
	min-width: 0;
}

/*
 * Post content spans every track and mirrors them with subgrid, so its own
 * blocks place against the SAME lines: default -> centred 842, Wide -> 1200,
 * Full -> the whole viewport. This is what lets an author drop a full-width
 * section into the body while the rail keeps its gutter.
 *
 * Pinned to grid-row 1 so it shares the first (tall) row with the rail. Because
 * it spans the rail's gutter columns (full-start..content-start), the two can
 * only coexist in one row by BOTH being explicitly placed there; otherwise the
 * post-content is auto-flowed to row 2 and the rail is left alone in a short
 * row 1. Trailing siblings (separator/tags/comments) auto-flow to rows 2+.
 */
.single main.uw-article > .uw-article__inner > .wp-block-post-content {
	grid-column: full-start / full-end;
	grid-row: 1;
	display: grid;
	grid-template-columns: subgrid;
	row-gap: 0;
	margin: 0;
}
.single main.uw-article > .uw-article__inner > .wp-block-post-content > * {
	grid-column: content-start / content-end;
	min-width: 842px;
	/* post-content keeps WP's is-layout-constrained layout on top of this
	   subgrid. That layout centres children (max-width + auto margins). On a grid
	   item, justify-self:stretch does NOT reliably fill a short block (an H2
	   stayed at its content width while paragraphs filled), so set an explicit
	   width:100% to make every child fill and left-align at the content track. */
	justify-self: stretch;
	width: 100%;
	margin-inline: 0;
	max-width: none;
	/* Figma 1404-2217 uses ~40px between article body blocks (the theme blockGap
	   is 24px). Set it here uniformly; the callout/pull-quote zero their own
	   margins (below) so gaps do not double up. */
	margin-block-start: 40px;
}
.single main.uw-article > .uw-article__inner > .wp-block-post-content > *:first-child { margin-block-start: 0; }
.single main.uw-article > .uw-article__inner > .wp-block-post-content > .alignwide {
	grid-column: wide-start / wide-end;
	max-width: none;
	width: 100%;
}
.single main.uw-article > .uw-article__inner > .wp-block-post-content > .alignfull {
	grid-column: full-start / full-end;
	max-width: none;
	/* .uw-article is now capped at 1620px (see above) so its own grid area
	   stops there too; expand symmetrically past that cap to the true
	   viewport edge instead of stopping at 1620px like the rest of the page. */
	width: 100vw;
	margin-inline: calc((var(--uw-article-w) - 100vw) / 2);
}

/*
 * 211 "report" section: a full-width band with its own (white) background that
 * covers the sticky rail's gutter at its scroll position, so the Page Contents
 * no longer overlaps it. z-index lifts it above the position:sticky rail; its
 * constrained layout centres the content at 966px (Figma 1404-2387).
 */
.single main.uw-article > .uw-article__inner > .wp-block-post-content > .is-report-section {
	position: relative;
	z-index: 1;
	padding-block: clamp(2.5rem, 5vw, 4rem);
}

/*
 * Rail: left gutter, beside the article body. Placed in row 1 alongside the
 * post-content (which owns that tall row); align-self:stretch makes it match
 * the post-content height so its inner .uw-rail__sticky can travel the whole
 * body. NOT `grid-row: 1 / -1`; with this grid's implicit rows, `-1` resolves
 * to the start line and collapses the rail to a short box (verified in browser).
 */
.single main.uw-article > .uw-article__inner > .uw-rail {
	grid-column: full-start / content-start;
	grid-row: 1;
	justify-self: end;
	align-self: stretch;
	width: var(--uw-rail);
	margin-right: var(--uw-gap);
}



/* Mobile / narrow: the gutter can't hold the rail — stack it above, full width. */
@media (max-width: 1280px) {
	.single main.uw-article > .uw-article__inner {
		display: block;
		max-width: var(--uw-content);
		margin: 0 auto;
		padding-inline: var(--uw-pad);
		padding-block: clamp(2rem, 4vw, 3rem);
	}
	.single main.uw-article > .uw-article__inner > .wp-block-post-content { display: block; }
	.single main.uw-article > .uw-article__inner > .uw-rail {
		grid-column: auto;
		grid-row: auto;
		justify-self: stretch;
		width: 100%;
		margin: 0 0 2rem;
	}
	.single main.uw-article .uw-rail__sticky { position: static; }
	/* Full-width blocks still bleed edge-to-edge on mobile. */
	.single main.uw-article > .uw-article__inner > .wp-block-post-content > .alignfull {
		width: 100vw;
		margin-left: calc(50% - 50vw);
		margin-right: calc(50% - 50vw);
	}
	.single main.uw-article > .uw-article__inner > .wp-block-post-content > * {
		min-width: 0;
	}
}

/*
 * DB-shadowed single template fallback. Some single posts render from a
 * Site-Editor-customised template that lays the rail + content out as a core
 * Columns block instead of this theme's `.uw-article` grid (so the grid rules
 * above never match). There the flex row already stretches the rail's column to
 * the article height, but the rail keeps its own short height, leaving its
 * sticky TOC nothing to travel. Fill the column so the sticky rail follows the
 * scroll, matching the grid layout. Scoped to a rail inside a column, so it
 * never touches the grid layout (where the rail is a direct grid child).
 * Verified against the live DB template (rail 219px -> full column height).
 */
.single .wp-block-column > .uw-rail { height: 100%; }

/* ─── Article body elements (single post content) ──────────────────────────── */

/*
 * Article body type scale (single posts) — Figma 1404-2217. These sizes are
 * the article context's own scale, distinct from the branding type presets, so
 * everything here is scoped to `.single ...` and cannot touch the branding page
 * (a page, not a single post). Sizes with a matching preset use the var; the
 * article-only 64/56/19px values have no preset and stay literal.
 */

/*
 * Story section (imported legacy stories, scripts/legacy-stories): a group whose
 * left-aligned images sit in a 40% column beside the text, stacked, with the
 * text flowing on beneath them as on the legacy site. flow-root contains the
 * floats so the next section starts below them. Phones drop the float.
 */
.single .uw-story-section {
	display: flow-root;
}
.single .uw-story-section > .wp-block-image.alignleft {
	width: 40%;
	clear: left;
	margin-block: 0.35em 1.5rem;
	margin-inline: 0 2.5rem;
}
.single .uw-story-section > .wp-block-image.alignleft img {
	width: 100%;
	height: auto;
}
/* The callout and pull quote zero their own margins and rely on the 40px gap
   between top-level article blocks; inside a section they need it back. */
.single .uw-story-section > .is-style-uw-callout,
.single .uw-story-section > .uw-pq {
	margin-block: 40px;
}
@media (max-width: 600px) {
	.single .uw-story-section > .wp-block-image.alignleft {
		float: none;
		width: auto;
		margin-inline: 0;
	}
}

/* Lead / intro statement + the divider rule beneath it. */
.single .wp-block-post-content .is-style-lead,
.entry-content .is-style-lead {
	font-family: var(--wp--preset--font-family--marr-sans-cond);
	font-weight: 600;
	font-size: clamp(36px, 5vw, 64px);
	line-height: 1;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--deep-navy);
	padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--deep-navy) 10%, transparent);
	margin-bottom: clamp(1.5rem, 3vw, 1.5rem);
}

/* Section headings — 56px in the article (the global H2 preset is 90px).
   Excludes headings owned by a custom block, for the same reason the paragraph
   rule below does: this selector (0,3,1) outranks a block's own
   `.uw-cb.is-report-card .uw-cb__heading` (0,3,0) and restyled a Content Block's
   card title to 56px/600 where the card asks for 40px/500. Before block copy
   moved into the post content a card title was never a `wp-block-heading` here,
   so the exclusion was not needed; now it is. */
.single .wp-block-post-content h2.wp-block-heading:not([class*="uw-"]) {
	font-family: var(--wp--preset--font-family--marr-sans-cond);
	font-weight: 600;
	font-size: clamp(32px, 4.5vw, 56px);
	line-height: 1;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--deep-navy);
}

/* Body copy, 19px, links red. Descendant `p` (not just direct children) so
   paragraphs nested in groups/columns still get the article body type, but
   NOT paragraphs owned by a custom block (pull-quote, gallery caption, etc.):
   those carry a `uw-` class and keep their own type. Without the exclusion this
   rule (0,2,1) outranks a block's own `.uw-pq__text` (0,1,0) and shrank it. */
.single .wp-block-post-content p:not([class*="uw-"]):not(.is-style-lead) {
	font-family: var(--wp--preset--font-family--pp-mori);
	font-size: 19px;
	line-height: 1.4;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--deep-navy);
}
/* Live parity for a Content Block body inside an article. The legacy markup
   nests an unclassed <p> inside <div class="uw-cb__body">, so the rule above
   matches it and the article's body type reaches the block: 19px/1.4, solid
   navy. On the inline path the paragraph carries .uw-cb__body itself, the
   exclusion skips it, and the block's own 18px/1.3 at 80% navy applies instead -
   which is the card's Figma spec (1404-2387) but not what the live site renders,
   and at 390px it makes the card 36px shorter. Restate the article's values so
   the page matches live. Delete this rule if the live site is ever corrected to
   the card spec, and let the block's own type apply. */
.single .wp-block-post-content p.uw-cb__body {
	font-size: 19px;
	line-height: 1.4;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--deep-navy);
}

.single .wp-block-post-content p:not([class*="uw-"]) a {
	color: var(--wp--preset--color--cobalt-blue);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Lead image — a 12px rounded rectangle (never the pill/ellipse rounded style). */
.single .wp-block-post-content .wp-block-image img {
	border-radius: 12px;
}
.single .wp-block-post-content .wp-block-image .wp-element-caption {
	font-family: var(--wp--preset--font-family--pp-mori);
	font-size: var(--wp--preset--font-size--extra-small);
	line-height: 1;
	letter-spacing: -0.01em;
	color: color-mix(in srgb, var(--wp--preset--color--deep-navy) 80%, transparent);
	margin-top: 0.75rem;
}

/* Pull quote — large statement + attribution, cobalt quote mark. */
.wp-block-post-content .wp-block-pullquote,
.entry-content .wp-block-pullquote {
	border: 0;
	margin: clamp(2rem, 4vw, 3.5rem) 0;
	padding: 0 0 0 clamp(2.5rem, 4vw, 4rem);
	position: relative;
	text-align: left;
}
.wp-block-post-content .wp-block-pullquote::before,
.entry-content .wp-block-pullquote::before {
	content: "\201C";
	position: absolute;
	left: -0.1rem;
	top: -0.5rem;
	font-family: var(--wp--preset--font-family--marr-sans-cond);
	font-weight: 700;
	font-size: 4rem;
	line-height: 1;
	color: var(--wp--preset--color--cobalt-blue);
}
.wp-block-post-content .wp-block-pullquote p,
.entry-content .wp-block-pullquote p {
	font-family: var(--wp--preset--font-family--marr-sans-cond);
	font-weight: 600;
	font-size: clamp(24px, 2.6vw, var(--wp--preset--font-size--heading-5));
	line-height: 1.12;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--deep-navy);
	margin: 0;
}
.wp-block-post-content .wp-block-pullquote cite,
.entry-content .wp-block-pullquote cite {
	display: block;
	margin-top: 1.25rem;
	font-style: normal;
	font-family: var(--wp--preset--font-family--pp-mori);
	font-size: 14px;
	color: color-mix(in srgb, var(--wp--preset--color--deep-navy) 70%, transparent);
}

/* Callout / highlight box — tinted note inside the article. */
.wp-block-post-content .wp-block-quote.is-style-uw-callout,
.entry-content .wp-block-quote.is-style-uw-callout {
	border: 0;
	border-radius: 12px;
	/* Gaps come from the 40px article blockGap above; keep none of our own. */
	margin: 0;
	padding: clamp(1.5rem, 2.4vw, 2rem);
	background: #F1F0ED;
}
.wp-block-post-content .wp-block-quote.is-style-uw-callout p,
.entry-content .wp-block-quote.is-style-uw-callout p {
	font-family: var(--wp--preset--font-family--pp-mori);
	font-weight: 400;
	font-size: clamp(18px, 1.8vw, 19px);
	line-height: 1.2;
	color: var(--wp--preset--color--deep-navy);
	margin: 0;
}

.uw-gss + .wp-block-group { margin-block-start: clamp(32px, 4.5vw, 80px) !important; }
main.wp-block-group, .wp-block-post-content, .uw-nm { background: #fff; }

@media (max-width: 767px) {
    :root {
		--wp--preset--font-size--heading-1 : 52px;
		--wp--preset--font-size--heading-2 : 40px;
	}
	.uw-card__content { min-height: 260px; }
}

/* ─── Pricing / benefits table patterns ────────────────────────────────────── */

/*
 * Layout for the uw-tables-pricing patterns lives here rather than in inline
 * block styles the block schema cannot round-trip (per-column dividers, per-cell
 * table styling, shorthand padding). Keeping it in CSS is what stops the editor
 * flagging these patterns for block recovery.
 */

/* Event Pricing: dividers between tier columns (all but the last). */
.uw-pe__cols > .wp-block-column:not(:last-child) {
	padding-right: 2rem;
	border-right: 1px solid color-mix(in srgb, var(--wp--preset--color--deep-navy) 12%, transparent);
}
/* 4px cobalt accent bar above each tier. */
.uw-pe__accent { min-height: 4px; margin: 0 0 1.25rem; }
/* Price rows: hairline-separated label + value stack. */
.uw-pe__row {
	padding: 1rem 0;
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--deep-navy) 12%, transparent);
}

/* Benefits table: cobalt date cell in the first column (core/table has no
   per-cell style slot, so it is styled here by position). */
.uw-tbl-benefits tbody td:first-child {
	background-color: var(--wp--preset--color--cobalt-blue);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--marr-sans-cond);
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
}

/* Article post-info bar, full-bleed. Written directly on the staging server and
   never committed; recovered from that host on 2026-09-01 and preserved here
   verbatim so the theme deploy (rsync --delete) cannot destroy it. The
   !important is the server author's; it is load-bearing against the constrained
   article grid and is left as-is rather than silently retuned. */
.single main.uw-article > .uw-article__inner > .wp-block-post-content > .post-info-bottom {
	grid-column: full-start / full-end;
	max-width: none;
	min-width: 100%;
	width: 100vw;
	margin: 0 calc((var(--uw-article-w) - 100vw) / 2) !important; 
	background: var(--wp--preset--color--white);
	padding: 40px 0;
}

/* Donation form section: full-width porcelain band with the form centered. */
.donationform-section {
	background: var(--wp--preset--color--porcelain);
	margin: 0 !important;
	width: 100%;
	display: flex;
	max-width: none;
	justify-content: center;
	padding: 50px 0;
}

/* Inline text colour (editor "Text colour" on a span): no background behind it. */
.has-inline-color {
	background: none !important;
}
