/*
Theme Name: Hello Elementor Child - CECA
Theme URI: https://ceca-rebuild.uats1.co.uk
Description: Hello Elementor child theme for the CECA rebuild. All custom PHP, styles and template overrides live here so the parent theme stays updatable.
Author: CECA
Template: hello-elementor
Version: 1.2.38
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: hello-elementor-child
*/

/* ---------------------------------------------------------------------------
   Site layout (per Figma): 1440px site width, content inset 72px each side,
   so the boxed content area is 1296px. Enforced in code so it can't drift
   per-page; mirror it in Elementor Site Settings → Layout (Content Width
   1296px) so the editor previews match.
   ------------------------------------------------------------------------ */

:root {
	--ceca-site-width: 1440px;
	--ceca-gutter: 72px;

	/* Brand colour tokens — widgets use these (with fallbacks) for hover,
	   focus and accent states instead of Elementor kit defaults. */
	--ceca-plum: #411024;
	--ceca-pink: #C65A93;
	--ceca-teal: #5FAFC4;
	--ceca-green: #8CC078;
	--ceca-yellow: #F0B43C;
	--ceca-hairline: #CDCDCD;
	--ceca-border: #D4D4D4;

	/* Body-copy links. Change these two to restyle every plain text link on
	   the site (user, 2026-09-29: plum, not the parent theme's pink). */
	--ceca-link: var(--ceca-plum);
	--ceca-link-hover: #7A2A4B;
}

/* Hello Elementor's reset paints every link #c36 (pink) with a #336 (blue)
   hover. Widgets style their own links with classes, so this only reaches
   plain links — body text, editor content. */
a {
	color: var(--ceca-link);
}

a:hover,
a:active {
	color: var(--ceca-link-hover);
}

/* Brand typography: Adobe Fonts "aptos-narrow" (Typekit kit wyd4xla, 400/700 + italics; the design's Aptos Narrow — plain "aptos" was the wide family, corrected 2026-09-10;
   the Figma files call it Aptos Narrow). Form controls don't inherit fonts,
   hence the explicit list. */
body,
button,
input,
select,
textarea {
	font-family: 'aptos-narrow', sans-serif;
}

/* Full-bleed bars (e.g. the CECA header) break out with 50vw margins; vw
   ignores the scrollbar, so clip the few px of resulting right-edge overflow. */
html {
	overflow-x: clip;
}

/* Flex/grid containers (current Elementor). Top-level containers carry the
   gutters; nested containers must not re-apply them. */
body .e-con {
	--content-width: calc(var(--ceca-site-width) - 2 * var(--ceca-gutter));
}

/* Cap AND center every top-level container: without the max-width, a
   full-width container lets content run wider than the navbar's 1440px box
   on large screens. Full-bleed backgrounds are the widget's job (50vw
   breakout), never the container's. */
body .e-con.e-parent {
	max-width: var(--ceca-site-width);
	margin-inline: auto;
	padding-inline: var(--ceca-gutter);
}

/* Elementor 3.30 marks EVERY container e-parent (nested included), so the
   rule above started re-applying gutters/centering inside layouts — columns
   drifted off the grid (What-we-do sidebar at x=191 instead of 72). Nested
   containers get none of it; per-instance Elementor padding still wins
   because post CSS loads later at equal specificity. */
.e-con .e-con.e-parent {
	max-width: none;
	margin-inline: 0;
	padding-inline: 0;
}

/* ---------------------------------------------------------------------------
   Page rhythm (user, 2026-10-02 — "consistent spacing top and bottom of the
   page from header and footer"): one value each, set here.
     top    header → first content   50px desktop / 30px mobile
     bottom last content → footer    80px desktop / 50px mobile
   (30px is also the design's mobile gap below a hero; 50px its desktop
   one.) Pages that open on a full-bleed band (page hero, intro band, video
   panel, CTA / contact banner) sit flush under the header by design.
   ------------------------------------------------------------------------ */
:root {
	--ceca-page-top: 50px;
	--ceca-page-bottom: 80px;
}

@media (max-width: 767px) {
	:root {
		--ceca-page-top: 30px;
		--ceca-page-bottom: 50px;
	}
}

.elementor:not(.elementor-location-header, .elementor-location-footer, .elementor-location-popup, .elementor .elementor) > .e-con:first-child {
	padding-block-start: var(--ceca-page-top) !important;
	margin-block-start: 0 !important;
}

/* Boxed containers carry their padding on .e-con-inner, and a nested first
   container would add its own — the outer one owns the gap. */
.elementor:not(.elementor-location-header, .elementor-location-footer, .elementor-location-popup, .elementor .elementor) > .e-con:first-child > .e-con-inner,
.elementor:not(.elementor-location-header, .elementor-location-footer, .elementor-location-popup, .elementor .elementor) > .e-con:first-child > .e-con:first-child,
.elementor:not(.elementor-location-header, .elementor-location-footer, .elementor-location-popup, .elementor .elementor) > .e-con:first-child > .e-con-inner > .e-con:first-child {
	padding-block-start: 0 !important;
	margin-block-start: 0 !important;
}

.elementor:not(.elementor-location-header, .elementor-location-footer, .elementor-location-popup, .elementor .elementor) > .e-con:first-child:has(
	> .elementor-widget:first-child:is(.elementor-widget-ceca-page-hero, .elementor-widget-ceca-intro-band, .elementor-widget-ceca-video-panel, .elementor-widget-ceca-cta-banner, .elementor-widget-ceca-contact-cta, .elementor-widget-ceca-event-hero),
	> .e-con-inner > .elementor-widget:first-child:is(.elementor-widget-ceca-page-hero, .elementor-widget-ceca-intro-band, .elementor-widget-ceca-video-panel, .elementor-widget-ceca-cta-banner, .elementor-widget-ceca-contact-cta, .elementor-widget-ceca-event-hero)
) {
	padding-block-start: 0 !important;
}

/* ---------------------------------------------------------------------------
   Space above the footer: exactly 80px on every page (user, 2026-09-29 —
   "spacing to footer must always be consistent"). Set once here on the
   page's last top-level container, so per-page Elementor padding can't make
   it drift; boxed containers carry their padding on .e-con-inner, so that
   is zeroed and the outer container takes the 80px.
   Pages that finish on a full-bleed band (CTA banner, contact CTA, video
   panel) sit flush on the footer by design and get no gap.
   The page document is the outermost .elementor that isn't a Theme Builder
   header/footer/popup (a single template's post content is a nested
   .elementor, hence the :not(.elementor .elementor)).
   ------------------------------------------------------------------------ */
/* A trailing container with nothing in it (e.g. the event template's
   Materials row when an event has none — Elementor drops the empty widget)
   is removed, and the container before it counts as the last one. */
.elementor:not(.elementor-location-header, .elementor-location-footer, .elementor-location-popup, .elementor .elementor) > .e-con:last-child:is(:empty, :has(> .e-con-inner:empty)) {
	display: none;
}

.elementor:not(.elementor-location-header, .elementor-location-footer, .elementor-location-popup, .elementor .elementor) > .e-con:is(:last-child, :has(+ .e-con:last-child:empty), :has(+ .e-con:last-child > .e-con-inner:empty)) {
	padding-block-end: var(--ceca-page-bottom, 80px) !important;
	margin-block-end: 0 !important;
}

.elementor:not(.elementor-location-header, .elementor-location-footer, .elementor-location-popup, .elementor .elementor) > .e-con:is(:last-child, :has(+ .e-con:last-child:empty), :has(+ .e-con:last-child > .e-con-inner:empty)) > .e-con-inner {
	padding-block-end: 0 !important;
}

.elementor:not(.elementor-location-header, .elementor-location-footer, .elementor-location-popup, .elementor .elementor) > .e-con:is(:last-child, :has(+ .e-con:last-child:empty), :has(+ .e-con:last-child > .e-con-inner:empty)):has(
	> .elementor-widget:last-child:is(.elementor-widget-ceca-cta-banner, .elementor-widget-ceca-contact-cta, .elementor-widget-ceca-video-panel),
	> .e-con-inner > .elementor-widget:last-child:is(.elementor-widget-ceca-cta-banner, .elementor-widget-ceca-contact-cta, .elementor-widget-ceca-video-panel)
) {
	padding-block-end: 0 !important;
}

/* Nested last containers would add their own bottom padding to the
   page-bottom gap (the event template's body row added 42px) — the outer
   container owns it, mirroring the top rule. */
.elementor:not(.elementor-location-header, .elementor-location-footer, .elementor-location-popup, .elementor .elementor) > .e-con:is(:last-child, :has(+ .e-con:last-child:empty), :has(+ .e-con:last-child > .e-con-inner:empty)) > .e-con:last-child,
.elementor:not(.elementor-location-header, .elementor-location-footer, .elementor-location-popup, .elementor .elementor) > .e-con:is(:last-child, :has(+ .e-con:last-child:empty), :has(+ .e-con:last-child > .e-con-inner:empty)) > .e-con-inner > .e-con:last-child {
	padding-block-end: 0 !important;
	margin-block-end: 0 !important;
}

/* On phones the event feeds become tabs (event-feed.js) and the visible
   feed isn't necessarily the last widget — drop the feed's own 100px in
   the page's last section whenever the tab bar is there. */
.elementor:not(.elementor-location-header, .elementor-location-footer, .elementor-location-popup, .elementor .elementor) > .e-con:is(:last-child, :has(+ .e-con:last-child:empty), :has(+ .e-con:last-child > .e-con-inner:empty)):has(.ceca-ef-tabs) .ceca-ef {
	padding-block-end: 0 !important;
}

/* Widgets that pad their own top (members listing 67px) give it up when
   they open the page — the page-top gap owns it. */
.elementor:not(.elementor-location-header, .elementor-location-footer, .elementor-location-popup, .elementor .elementor) > .e-con:first-child .elementor-widget:first-child .ceca-members-listing {
	padding-top: 0 !important;
}

/* Widgets that space themselves from whatever follows them (event slider
   and events grid 100px, search results 100px, news archive 80px) drop that
   when they are the page's last widget — the 80px above owns it there. */
.elementor:not(.elementor-location-header, .elementor-location-footer, .elementor-location-popup, .elementor .elementor) > .e-con:is(:last-child, :has(+ .e-con:last-child:empty), :has(+ .e-con:last-child > .e-con-inner:empty)) > .elementor-widget:last-child :is(.ceca-ef, .ceca-sr, .ceca-news-archive),
.elementor:not(.elementor-location-header, .elementor-location-footer, .elementor-location-popup, .elementor .elementor) > .e-con:is(:last-child, :has(+ .e-con:last-child:empty), :has(+ .e-con:last-child > .e-con-inner:empty)) > .e-con-inner > .elementor-widget:last-child :is(.ceca-ef, .ceca-sr, .ceca-news-archive) {
	padding-block-end: 0 !important;
}

/* Pages not built in Elementor (WooCommerce cart/checkout, plain pages)
   render inside the parent theme's <main class="site-main">: same 80px. */
main.site-main:not(:has(.elementor)) {
	padding-block-start: var(--ceca-page-top, 50px);
	padding-block-end: var(--ceca-page-bottom, 80px);
}

/* Trailing margins inside the content (WooCommerce blocks stack 16px ones)
   would add to it, and so would the title's when the page has no content. */
main.site-main:not(:has(.elementor)) .page-content :last-child,
main.site-main:not(:has(.elementor)) > .page-header:has(+ .page-content:not(:has(*))) {
	margin-block-end: 0 !important;
}

/* Legacy boxed sections, in case any get created. */
body .elementor-section.elementor-section-boxed > .elementor-container {
	max-width: calc(var(--ceca-site-width) - 2 * var(--ceca-gutter));
}

/* Large-screen scale-up (2026-09-25): the 1440 box grows to 1600 once the
   viewport reaches 1600px and to 2100 from 2100px. Every widget keys off
   --ceca-site-width / --ceca-gutter, so heroes, header, footer, feeds and
   the full-bleed formulas follow automatically. */
@media (min-width: 1600px) {
	:root {
		--ceca-site-width: 1600px;
	}
}

@media (min-width: 2100px) {
	:root {
		--ceca-site-width: 2100px;
	}
}

/* 72px gutters are a desktop measure; ease off on smaller screens until the
   design-tokens sprint defines the full spacing scale. */
@media (max-width: 1024px) {
	:root {
		--ceca-gutter: 32px;
	}
}

@media (max-width: 767px) {
	:root {
		--ceca-gutter: 20px;
	}

	/* Long unbroken strings — pasted "_____" rules, URLs, emails, long words
	   at heading sizes — must wrap inside the 20px gutters, not push the page
	   sideways (several migrated pages overflowed by up to 476px). Widget
	   content only; nowrap UI (pills, nav) is unaffected. */
	.elementor-widget {
		overflow-wrap: anywhere;
	}

	/* Pages rendered by the Hello theme itself (no Elementor layout — e.g.
	   WooCommerce's stock pages) get the same 20px gutter as the rest. */
	body:not(.elementor-page) main.site-main {
		padding-inline: var(--ceca-gutter, 20px);
	}

	/* Text runs gutter to gutter on phones. A desktop custom width on a text
	   or heading widget (e.g. 63% on Who we are) otherwise carries down and
	   leaves a 150px hole at the right. !important: Elementor's per-widget
	   width rules are ID-specific. */
	.e-con > .elementor-widget-text-editor,
	.e-con > .elementor-widget-heading,
	.e-con > .elementor-widget-theme-post-content,
	.e-con > .e-con-inner > .elementor-widget-text-editor,
	.e-con > .e-con-inner > .elementor-widget-heading,
	.e-con > .e-con-inner > .elementor-widget-theme-post-content {
		width: 100% !important;
		max-width: 100% !important;
	}
}

/* --- Single post body (Figma 200:788) ------------------------------------ */
/* The article body renders through Elementor's Post Content widget, so its
   type is set here: 18/30 body with the design's 30/40 bold lead paragraph. */
body.single-post .elementor-widget-theme-post-content,
body.single-ceca_news .elementor-widget-theme-post-content {
	font-size: 18px;
	line-height: 30px;
	color: #1a1a1a;
}

/* Optimized-DOM Elementor drops .elementor-widget-container — cover both. */
body.single-post .elementor-widget-theme-post-content > p:first-child,
body.single-post .elementor-widget-theme-post-content .elementor-widget-container > p:first-child,
body.single-ceca_news .elementor-widget-theme-post-content > p:first-child,
body.single-ceca_news .elementor-widget-theme-post-content .elementor-widget-container > p:first-child {
	font-size: 30px;
	line-height: 40px;
	font-weight: 700;
}

@media (max-width: 767px) {
	body.single-post .elementor-widget-theme-post-content > p:first-child,
	body.single-post .elementor-widget-theme-post-content .elementor-widget-container > p:first-child,
	body.single-ceca_news .elementor-widget-theme-post-content > p:first-child,
	body.single-ceca_news .elementor-widget-theme-post-content .elementor-widget-container > p:first-child {
		font-size: 24px;
		line-height: 32px;
	}
}

/* Topic chips appended under the article body (Figma 200:788) —
   markup from CECA_News_Chips in inc/. */
.ceca-news-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 30px;
}

.ceca-news-chips a,
.ceca-news-chips a:visited {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 3px 14px;
	border-radius: 300px;
	border: 1px solid #cdcdcd;
	background: #ffffff;
	color: #000000;
	font-size: 14px;
	line-height: 20px;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.ceca-news-chips a:hover,
.ceca-news-chips a:focus {
	border-color: #411024;
	background: #411024;
	color: #ffffff;
}

/* --- Sticky header ------------------------------------------------------- */
/* Applied to Elementor's header LOCATION rather than the widget, so the
   global header and the region bar beneath it stick as one block — sticking
   only the widget would let the region bar slide up underneath it. */
.elementor-location-header {
	position: sticky;
	top: 0;
	z-index: 500;
	background: #ffffff;
	transition: box-shadow 0.25s ease;
}

/* Elevation only once it is actually stuck (class set in ceca-header.js). */
.elementor-location-header.is-stuck {
	box-shadow: 0 6px 20px rgba(65, 16, 36, 0.12);
}

/* Region pages: on scroll down ceca-header.js slides the block up by the
   height of the top bar + main nav (--ceca-header-hide) so only the Region
   Nav stays pinned; scroll up slides it back. The transform exists ONLY
   while collapsed — a transform on this ancestor would re-anchor the
   position:fixed mobile drawer inside it. */
.elementor-location-header {
	transition: box-shadow 0.25s ease, transform 0.3s ease;
}

.elementor-location-header.is-collapsed {
	transform: translateY(calc(-1 * var(--ceca-header-hide, 0px)));
}

@media (prefers-reduced-motion: reduce) {
	.elementor-location-header {
		transition: none;
	}
}

/* The admin bar is fixed above everything, so the header parks below it. */
body.admin-bar .elementor-location-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .elementor-location-header {
		top: 46px;
	}
}

/* At 600px and below WordPress un-fixes the admin bar (it scrolls away with
   the page), so the header must stick to the very top — at the top of the
   page it still sits below the bar, which is in the page flow there. A 46px
   offset left a white band above the logo once scrolled (user, 2026-10-06). */
@media screen and (max-width: 600px) {
	body.admin-bar .elementor-location-header {
		top: 0;
	}
}

/* Where the stuck header ends — sticky sidebars park below it. ceca-header.js
   overwrites this with the measured value; these are the pre-JS fallbacks
   (125px desktop header, plus the 32px admin bar when logged in). */
body {
	--ceca-header-offset: 125px;
}

body.admin-bar {
	--ceca-header-offset: 157px;
}

/* ---------------------------------------------------------------------------
   Section heading motif (Who we are template, Figma 216:1660): 22/29 bold
   with a short accent underline. Apply via the "CSS Classes" field on a
   core Heading widget; the team-list widget bakes the same style itself.
   ------------------------------------------------------------------------ */
.ceca-section-heading .elementor-heading-title,
h2.ceca-section-heading,
h3.ceca-section-heading {
	font-size: 22px;
	line-height: 29px;
	font-weight: 700;
	color: #000;
}

.ceca-section-heading .elementor-heading-title::after,
h2.ceca-section-heading::after,
h3.ceca-section-heading::after {
	content: '';
	display: block;
	width: 45px;
	height: 5px;
	margin-top: 8px;
	border-radius: 3px;
	background: #c65a93;
}

/* --- Tap & focus feedback (user: no pink focus states, no blue tap flash) --
   Mobile browsers paint a translucent highlight over anything tapped —
   killed globally. Keyboard focus keeps a visible cue, but in brand plum
   rather than any component/kit accent. */
* {
	-webkit-tap-highlight-color: transparent;
}

:focus-visible {
	outline-color: #411024;
}

/* ---------------------------------------------------------------------------
   Event body copy (single ceca_event): black text and headings. The Post
   Content widget otherwise picks up the Elementor kit's default "Text"
   global (#7A7A7A grey), and headings inside it inherit that. Scoped to
   events rather than changing the kit, which would restyle every default
   widget site-wide.
   ------------------------------------------------------------------------ */
.single-ceca_event .elementor-widget-theme-post-content,
.single-ceca_event .elementor-widget-theme-post-content :is(h1, h2, h3, h4, h5, h6, strong, b) {
	color: #000;
}

/* ---------------------------------------------------------------------------
   Body-content H3s (Text Editor widget + article Post Content): 25px bold
   (user, 2026-09-29). Scoped to those widgets so widget headings keep their
   own styles; .elementor prefix outranks kit heading globals.
   ------------------------------------------------------------------------ */
.elementor .elementor-widget-text-editor h3,
.elementor .elementor-widget-theme-post-content h3 {
	font-size: 25px;
	font-weight: 700;
}

/* ---------------------------------------------------------------------------
   Body copy default (Text Editor widget): 18/30 black, matching the reference
   page /regions/north-west/what-we-do/ (user, 2026-09-29 — copy must be
   consistent across pages). Without it an unstyled Text Editor falls back to
   Elementor's kit "Text" grey and default size. A block with its own saved
   typography/colour still wins (Elementor's per-element selectors are more
   specific than this).
   ------------------------------------------------------------------------ */
.elementor .elementor-widget-text-editor {
	color: #000;
	font-size: 18px;
	line-height: 30px;
}

/* Paragraphs and lists in body copy share one gap after them: 20px (user,
   2026-09-29 — the parent theme's 0.9rem p margin was too tight, and its
   reset zeroes list margins so text after a list sat on the last bullet). */
.elementor .elementor-widget-text-editor :is(p, ul, ol),
.elementor .elementor-widget-theme-post-content :is(p, ul, ol) {
	margin-block-end: 20px;
}

/* Images in body copy: migrated <figure>s kept the browser's 40px side
   margins, leaving photos inset and floating mid-column. Full content width,
   left-aligned; the figcaption is untouched (user, 2026-09-29). */
.elementor .elementor-widget-text-editor figure,
.elementor .elementor-widget-theme-post-content figure {
	margin: 0 0 20px;
	max-width: 100%;
}

.elementor .elementor-widget-text-editor figure img,
.elementor .elementor-widget-theme-post-content figure img {
	width: 100%;
	height: auto;
}

/* A blank line (one 30px body line) above every H3 in body copy — except a
   leading one, which already sits under its section's spacing (user,
   2026-09-29). H2s unchanged. */
.elementor .elementor-widget-text-editor h3:not(:first-child),
.elementor .elementor-widget-theme-post-content h3:not(:first-child),
.elementor .elementor-widget-image + .elementor-widget-text-editor h3:first-child {
	margin-block-start: 30px;
}

/* Numbered lists in body copy: no indent — the number sits on the text's
   left edge, wrapped lines hang in line with the item text — and each item
   gets the same 30px lines and 20px gap below as the bulleted items (user,
   2026-09-29). Drawn with a counter because an outside marker can't be
   pinned to the left edge. */
.elementor .elementor-widget-text-editor ol,
.elementor .elementor-widget-theme-post-content ol {
	padding-inline-start: 0;
	list-style: none;
	counter-reset: ceca-ol;
}

.elementor .elementor-widget-text-editor ol > li,
.elementor .elementor-widget-theme-post-content ol > li {
	position: relative;
	padding-inline-start: 20px;
	line-height: 30px;
	counter-increment: ceca-ol;
}

/* Ten items or more: "10." doesn't fit the 20px gutter, so the whole list
   steps in to 30px (keeps every item's text aligned). */
.elementor .elementor-widget-text-editor ol:has(> li:nth-child(10)) > li,
.elementor .elementor-widget-theme-post-content ol:has(> li:nth-child(10)) > li {
	padding-inline-start: 30px;
}

.elementor .elementor-widget-text-editor ol > li:not(:last-child),
.elementor .elementor-widget-theme-post-content ol > li:not(:last-child) {
	margin-block-end: 20px;
}

.elementor .elementor-widget-text-editor ol > li::before,
.elementor .elementor-widget-theme-post-content ol > li::before {
	content: counter(ceca-ol) ".";
	position: absolute;
	left: 0;
	top: 0;
}

/* Bulleted lists: text 20px in, the bullet in that gutter — the same inset
   as numbered items (user, 2026-09-29; was the browser's 40px). */
.elementor .elementor-widget-text-editor ul,
.elementor .elementor-widget-theme-post-content ul {
	padding-inline-start: 20px;
}

/* No italics anywhere on the site (user, 2026-09-29) — covers <em>/<i> in
   migrated content as well as any Elementor typography set to italic. */
*,
*::before,
*::after {
	font-style: normal !important;
}

/* ---------------------------------------------------------------------------
   Dotted underline for links in body copy (user, 2026-09-29).
   Drawn as a dotted background on the baseline rather than an ::after line:
   a pseudo-element is positioned from the link's box, which breaks when a
   link wraps onto a second line — the background follows every line
   fragment (box-decoration-break: clone). Dot size / spacing / offset are
   the three tokens below. Plain text links only: buttons and image links
   (anything with a class, or wrapping an <img>) keep their own styling.
   ------------------------------------------------------------------------ */
:root {
	--ceca-link-dot: 1px;     /* dot size — square 1px dots, the thinnest crisp line (user, 2026-09-29) */
	--ceca-link-dot-gap: 3px; /* dot pitch: 1px dot + 2px gap */
	--ceca-link-dot-offset: 2px; /* distance below the text */
}

.elementor .elementor-widget-text-editor a:not([class]):not(:has(img)),
.elementor .elementor-widget-theme-post-content a:not([class]):not(:has(img)) {
	text-decoration: none;
	padding-bottom: var(--ceca-link-dot-offset);
	background-image: linear-gradient(90deg, currentColor var(--ceca-link-dot), transparent var(--ceca-link-dot));
	background-size: var(--ceca-link-dot-gap) var(--ceca-link-dot);
	background-repeat: repeat-x;
	background-position: 0 100%;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

/* Event single: the template's body container carries 10px padding all
   round, putting the event description at 30px on phones instead of the
   20px gutter everything else on the page uses (QA, 2026-10-02). */
@media (max-width: 767px) {
	body.single-ceca_event .e-con:has(> .elementor-widget-theme-post-content) {
		padding-inline: 0 !important;
	}
}

/* Event single: the same body container's 10px bottom padding and the last
   paragraph's margin stacked ~32px onto the page-bottom gap — the page
   rhythm owns that space (2026-10-02). */
body.single-ceca_event .e-con:has(> .elementor-widget-theme-post-content) {
	padding-block-end: 0 !important;
}

body.single-ceca_event .elementor-widget-theme-post-content :is(p, ul, ol, figure, div):last-child {
	margin-block-end: 0;
}

/* Post/event body images sit on the text baseline by default, leaving ~6px
   of descender space under an image that ends the article — enough to push
   the page-bottom gap off the 50/80px rhythm (QA, 2026-10-02). */
.elementor-widget-theme-post-content img {
	vertical-align: bottom;
}

/* Event single, desktop: when the sidebar column is taller than the body,
   its own bottom padding (and the sidebar widget's) stacked ~20px onto the
   80px page-bottom gap — both columns give it up (QA, 2026-10-02). */
body.single-ceca_event .e-con:has(> .e-con > .elementor-widget-theme-post-content) > .e-con,
body.single-ceca_event .e-con:has(> .e-con-inner > .e-con > .elementor-widget-theme-post-content) > .e-con-inner > .e-con {
	padding-block-end: 0 !important;
}

body.single-ceca_event .e-con:has(> .e-con > .elementor-widget-theme-post-content) > .e-con > .elementor-widget:last-child {
	margin-block-end: 0 !important;
}

body.single-ceca_event .ceca-event-sidebar > :last-child {
	margin-block-end: 0;
}
