/* wp-content/plugins/ceca-widgets/widgets/event-feed/event-feed.css */
/* Event Feed (Figma 90:19): 40/50 Bold heading with an 18px archive link,
   flat-colour 396×387 cards (design 416 fits the 1296 box exactly 3-up — no
   peek — so the default is 396 for a 36px sliver), date pill white@50%
   r300, 30/35 Bold title, 16/20 meta stack anchored to the card foot, and
   an 86×40 #E8E8E8 arrow pill. Upcoming cards are full colour (.is-bright,
   server-rendered); past cards are the colour at 80% on white (user,
   2026-11-18). */

.ceca-ef {
	--ceca-ef-bright: #5fafc4;
	--ceca-ef-card-w: 396px;
	--ceca-ef-card-h: 387px;
	--ceca-ef-gap: 24px;
	--ceca-ef-link: #fff;
	--ceca-ef-arrow: #000;
	--ceca-ef-arrow-off: #b0b0b0;

	/* Design rhythm: 100px from the arrows to whatever follows (the next
	   feed's title, when instances stack). Elementor control overrides. */
	padding-bottom: 100px;
}

/* --- heading row --------------------------------------------------------- */

.ceca-ef__head {
	display: flex;
	align-items: baseline;
	gap: 24px;
	margin-bottom: 17px;
}

.ceca-ef .ceca-ef__heading {
	margin: 0;
	font-size: 40px;
	line-height: 50px;
	font-weight: 700;
	color: #000;
}

/* Design (90:19): the archive link is a colour pill matching its feed —
   teal / yellow / purple — with a black circle-arrow. Text colour is the
   Button text control (past feed uses white); the icon stays black. */
.ceca-ef a.ceca-ef__all {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
	padding: 5px 16px 6px;
	border-radius: 300px;
	/* CECA plum, white text (user, 2026-11-18); the Button colour control
	   overrides. */
	background: var(--ceca-ef-pill-btn, #411024);
	font-size: 16px;
	line-height: 20px;
	color: var(--ceca-ef-link);
	text-decoration: none;
	white-space: nowrap;
	transition: filter 0.2s ease;
}

.ceca-ef a.ceca-ef__all:hover,
.ceca-ef a.ceca-ef__all:focus-visible {
	filter: brightness(0.9);
}

/* Circle in the text colour; its chevron is cut out (SVG mask), so the
   button colour shows through. */
.ceca-ef__all svg {
	width: 13px;
	height: 13px;
	display: block;
	color: inherit;
}

/* --- track & cards -------------------------------------------------------- */

.ceca-ef__track {
	display: flex;
	gap: var(--ceca-ef-gap);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	/* card snapping off: ceca-slider.js settles onto PAGE positions now */
	scroll-snap-type: none;
	scrollbar-width: none;
	cursor: grab;
}

/* Full-bleed scroller (user request 2026-09-25): the track spans the whole
   viewport — the peeking card is cut by the viewport's right edge, and
   scrolled-past cards bleed off the left edge — while the resting first
   card still lines up with the content box (same bleed-pad formula as the
   footer). Snap points respect the inset via scroll-padding. Mobile keeps
   the stacked list, so desktop/tablet only. */
@media (min-width: 768px) {
	.ceca-ef__track {
		--ceca-ef-bleed: max(var(--ceca-gutter, 72px), calc(50vw - var(--ceca-site-width, 1440px) / 2 + var(--ceca-gutter, 72px)));

		margin-inline: calc(50% - 50vw);
		padding-inline: var(--ceca-ef-bleed);
		scroll-padding-left: var(--ceca-ef-bleed);
	}

	.ceca-ef__track:focus-visible {
		outline-offset: -2px;
	}
}

.ceca-ef__track::-webkit-scrollbar {
	display: none;
}

.ceca-ef__track.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
	user-select: none;
}

.ceca-ef__track:focus-visible {
	outline: 2px solid var(--ceca-ef-bright);
	outline-offset: 4px;
}

.ceca-ef a.ceca-ef__card {
	flex: 0 0 var(--ceca-ef-card-w);
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	min-height: var(--ceca-ef-card-h);
	padding: 30px 20px 20px;
	background: var(--ceca-ef-faint, color-mix(in srgb, var(--ceca-ef-bright) 80%, #fff));
	color: #000;
	text-decoration: none;
	transition: background-color 0.4s ease;
}

.ceca-ef a.ceca-ef__card.is-bright {
	background: var(--ceca-ef-bright);
}

/* Event colour coding (user, 2026-11-18): the Colour picked on the event
   replaces the listing's own colour, from the CECA palette. The past-event
   tint is re-derived on the card because a listing may pin its own faint
   colour on the wrapper. Black text on all five: each clears 5:1 against it, where
   white on pink or purple only reaches about 4:1. One --ceca-ef-card-text
   per colour, so any pairing can change in one place. The text colour sits
   on the card's children: a listing's own "Card text" control targets the
   card at higher specificity, and this must win over it. */
.ceca-ef a.ceca-ef__card[class*="ceca-ef__card--"] {
	--ceca-ef-faint: color-mix(in srgb, var(--ceca-ef-bright) 80%, #fff);
}

.ceca-ef a.ceca-ef__card[class*="ceca-ef__card--"] > * {
	color: var(--ceca-ef-card-text, #000);
}

.ceca-ef a.ceca-ef__card.ceca-ef__card--hsw {
	--ceca-ef-bright: #c65a93;
	--ceca-ef-card-text: #000;
}

.ceca-ef a.ceca-ef__card.ceca-ef__card--skills {
	--ceca-ef-bright: #f0b43c;
	--ceca-ef-card-text: #000;
}

.ceca-ef a.ceca-ef__card.ceca-ef__card--careers {
	--ceca-ef-bright: #7e7bb0;
	--ceca-ef-card-text: #000;
}

.ceca-ef a.ceca-ef__card.ceca-ef__card--clients {
	--ceca-ef-bright: #5fafc4;
	--ceca-ef-card-text: #000;
}

.ceca-ef a.ceca-ef__card.ceca-ef__card--sustainability {
	--ceca-ef-bright: #8cc078;
	--ceca-ef-card-text: #000;
}

.ceca-ef__pill {
	align-self: flex-start;
	padding: 4px 12px;
	border-radius: 300px;
	background: rgba(255, 255, 255, 0.5);
	font-size: 16px;
	line-height: 17px;
	white-space: nowrap;
}

.ceca-ef .ceca-ef__title {
	display: block;
	margin-top: 10px;
	font-size: 30px;
	line-height: 35px;
	font-weight: 700;
}

.ceca-ef__meta {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin-top: auto;
	font-size: 16px;
	line-height: 20px;
}

/* --- arrows --------------------------------------------------------------- */

.ceca-ef__nav {
	display: inline-flex;
	margin-top: 10px;
	width: 86px;
	height: 40px;
	border-radius: 300px;
	background: #e8e8e8;
}

/* Explicit states at double specificity so Elementor kit button globals
   (pink hover/focus backgrounds) cannot repaint the arrows. */
.ceca-ef .ceca-ef__arrow,
.ceca-ef .ceca-ef__arrow:hover,
.ceca-ef .ceca-ef__arrow:focus,
.ceca-ef .ceca-ef__arrow:active {
	flex: 1 1 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: var(--ceca-ef-arrow);
	cursor: pointer;
}

.ceca-ef .ceca-ef__arrow:focus-visible {
	outline: 2px solid var(--ceca-ef-arrow);
	outline-offset: -4px;
	border-radius: 300px;
}

.ceca-ef__arrow svg {
	width: 9px;
	height: 18px;
	display: block;
}

.ceca-ef__arrow--prev svg {
	transform: scaleX(-1);
}

.ceca-ef .ceca-ef__arrow:disabled {
	color: var(--ceca-ef-arrow-off);
	cursor: default;
}

.ceca-ef__arrow:not(:disabled):hover svg,
.ceca-ef__arrow:not(:disabled):focus svg {
	transform: translateX(2px);
}

.ceca-ef__arrow--prev:not(:disabled):hover svg,
.ceca-ef__arrow--prev:not(:disabled):focus svg {
	transform: scaleX(-1) translateX(2px);
}

/* --- reveal ---------------------------------------------------------------- */
/* Same stagger pattern as the LinkedIn feed / region-nav drawer. JS adds
   .is-revealed when the widget scrolls into view; guarded so cards are never
   hidden without JS or for reduced-motion users. */

@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
	.ceca-ef .ceca-ef__card {
		opacity: 0;
		translate: 0 -34px;
		rotate: -2.5deg;
	}

	.ceca-ef.is-revealed .ceca-ef__card {
		opacity: 1;
		translate: 0 0;
		rotate: 0deg;
		transition:
			opacity 0.45s ease-out,
			translate 0.65s cubic-bezier(0.22, 1, 0.36, 1),
			rotate 0.65s cubic-bezier(0.22, 1, 0.36, 1),
			background-color 0.4s ease;
		transition-delay: calc(var(--ceca-i, 0) * 90ms), calc(var(--ceca-i, 0) * 90ms), calc(var(--ceca-i, 0) * 90ms), 0s;
	}
}

/* --- editor ---------------------------------------------------------------- */

.ceca-ef__empty {
	padding: 24px;
	background: #f7f7f7;
	border: 1px dashed #c4c4c4;
	border-radius: 8px;
	font-size: 14px;
	color: #666;
}

/* --- small screens ---------------------------------------------------------- */

@media (max-width: 767px) {
	.ceca-ef {
		--ceca-ef-card-w: 300px;
		--ceca-ef-card-h: 340px;
	}

	.ceca-ef .ceca-ef__heading {
		font-size: 30px;
		line-height: 38px;
	}

	.ceca-ef .ceca-ef__title {
		font-size: 25px;
		line-height: 30px;
	}
}

/* --- mobile listing (Figma 2372:8240 / 9602 / 9442) ----------------------- */
@media (max-width: 767px) {
	/* Stacked full-width cards, all at full brightness; slider chrome off. */
	.ceca-ef__head .ceca-ef__all,
	.ceca-ef__nav {
		display: none;
	}

	.ceca-ef__track {
		display: flex;
		flex-direction: column;
		gap: 10px;
		overflow: visible;
		transform: none !important;
	}

	.ceca-ef__card {
		width: 100%;
		min-height: 387px;
		opacity: 1 !important;
		filter: none !important;
	}

	.ceca-ef .ceca-ef__title {
		font-size: 22px;
		line-height: 30px;
	}

	.ceca-ef .ceca-ef__region,
	.ceca-ef .ceca-ef__venue,
	.ceca-ef .ceca-ef__format {
		font-size: 16px;
		line-height: 20px;
	}

	/* Tabs replace the per-section headings. */
	.ceca-ef-tabs ~ * .ceca-ef__heading,
	.ceca-ef-tabs ~ .elementor-widget-ceca-event-feed .ceca-ef__heading {
		display: none;
	}

	.elementor-widget-ceca-event-feed.is-tab-hidden {
		display: none;
	}

	/* Matches the card's own `.ceca-ef a.ceca-ef__card` display:flex —
	   the bare class lost to it, so filtering never hid anything. */
	.ceca-ef a.ceca-ef__card.is-filtered-out {
		display: none;
	}
}

.ceca-ef-tabs {
	display: flex;
	gap: 40px;
	width: 100%;
	margin-bottom: 20px;
	border-bottom: 1px solid #e3e3e3;
}

.ceca-ef-tabs .ceca-ef-tabs__tab,
.ceca-ef-tabs .ceca-ef-tabs__tab:hover,
.ceca-ef-tabs .ceca-ef-tabs__tab:focus {
	padding: 0 0 10px;
	border: 0;
	border-bottom: 3px solid transparent;
	background: none;
	box-shadow: none;
	font-size: 20px;
	line-height: 30px;
	font-weight: 700;
	color: #767676;
	cursor: pointer;
}

.ceca-ef-tabs .ceca-ef-tabs__tab.is-active {
	color: #000;
	border-bottom-color: #000;
}

/* Floating Filter pill — fixed centre-bottom, phones only (JS unhides). */
.ceca-ef-filter__open,
.ceca-ef-filter__open:hover,
.ceca-ef-filter__open:focus {
	position: fixed;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	z-index: 9990;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 22px;
	border: 0;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
	font-size: 18px;
	line-height: 24px;
	color: #000;
	cursor: pointer;
}

.ceca-ef-filter__open[hidden] {
	display: none;
}

.ceca-ef-filter__open svg {
	width: 22px;
	height: 22px;
}

/* Full-screen filter sheet: close pinned top, options scroll, the Update /
   Clear all bar pinned to the bottom (user, 2026-10-02). */
.ceca-ef-filter {
	position: fixed;
	inset: 0;
	z-index: 99990;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 20px 20px 0;
	background: #fff;
}

.ceca-ef-filter[hidden] {
	display: none;
}

body.ceca-ef-filter-open {
	overflow: hidden;
}

.ceca-ef-filter .ceca-ef-filter__close,
.ceca-ef-filter .ceca-ef-filter__close:hover,
.ceca-ef-filter .ceca-ef-filter__close:focus {
	position: sticky;
	top: 0;
	z-index: 2;
	flex: none;
	align-self: flex-end;
	display: block;
	margin: 0 0 20px;
	padding: 4px;
	border: 0;
	background: none;
	box-shadow: none;
	color: #000;
	cursor: pointer;
}

.ceca-ef-filter__close svg {
	width: 24px;
	height: 24px;
	display: block;
}

.ceca-ef-filter .ceca-ef-filter__search {
	width: 100%;
	height: 40px;
	margin-bottom: 20px;
	padding: 0 20px;
	border: 1px solid #e3e3e3;
	border-radius: 300px;
	background: #fff;
	font-size: 14px;
	color: #000;
}

.ceca-ef-filter .ceca-ef-filter__search:focus {
	outline: none;
	border-color: #c65a93;
}

.ceca-ef-filter__group {
	border-bottom: 1px solid #e3e3e3;
}

.ceca-ef-filter .ceca-ef-filter__toggle,
.ceca-ef-filter .ceca-ef-filter__toggle:hover,
.ceca-ef-filter .ceca-ef-filter__toggle:focus {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 18px 0;
	border: 0;
	background: none;
	box-shadow: none;
	font-size: 20px;
	line-height: 28px;
	font-weight: 700;
	color: #000;
	text-align: left;
	cursor: pointer;
}

.ceca-ef-filter__chev {
	width: 14px;
	height: 7px;
	flex: none;
	transition: transform 0.25s ease;
}

.ceca-ef-filter__toggle[aria-expanded='true'] .ceca-ef-filter__chev {
	transform: rotate(180deg);
}

.ceca-ef-filter__body {
	padding: 0 0 18px;
}

.ceca-ef-filter__check {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 7px 0;
	font-size: 17px;
	line-height: 24px;
	color: #000;
	cursor: pointer;
}

/* Round design checks: grey dot, accent-filled when ticked. */
.ceca-ef-filter__check input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.ceca-ef-filter__dot {
	width: 20px;
	height: 20px;
	flex: none;
	border-radius: 50%;
	background: #d9d9d9;
	transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.ceca-ef-filter__check input:checked + .ceca-ef-filter__dot {
	background: #c65a93;
	box-shadow: inset 0 0 0 4px #f3cfe1;
}

/* Bottom bar: full-width black Update pill, "Clear all" centred under it. */
.ceca-ef-filter__actions {
	position: sticky;
	bottom: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	margin: auto -20px 0;
	padding: 16px 20px max(16px, env(safe-area-inset-bottom));
	border-top: 1px solid #e3e3e3;
	background: #fff;
}

.ceca-ef-filter .ceca-ef-filter__update,
.ceca-ef-filter .ceca-ef-filter__update:hover,
.ceca-ef-filter .ceca-ef-filter__update:focus {
	width: 100%;
	min-height: 50px;
	padding: 10px 28px;
	border: 0;
	border-radius: 300px;
	background: #000;
	color: #fff;
	font-family: inherit;
	font-size: 18px;
	line-height: 30px;
	cursor: pointer;
}

.ceca-ef-filter .ceca-ef-filter__clear,
.ceca-ef-filter .ceca-ef-filter__clear:hover,
.ceca-ef-filter .ceca-ef-filter__clear:focus {
	padding: 8px 12px;
	border: 0;
	background: none;
	box-shadow: none;
	color: #000;
	font-family: inherit;
	font-size: 16px;
	line-height: 24px;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.ceca-ef-filter__count[hidden] {
	display: none;
}

.ceca-ef-filter__none {
	margin: 0 0 16px;
	font-size: 14px;
	color: #767676;
}

/* Tab bar refinements: three labels don't fit 400px — scroll them; and
   the "All …" link needs the stronger selector to actually hide. */
@media (max-width: 767px) {
	.ceca-ef .ceca-ef__all,
	.ceca-ef a.ceca-ef__all {
		display: none;
	}

	.ceca-ef-tabs {
		overflow-x: auto;
		scrollbar-width: none;
		gap: 32px;
		flex-wrap: nowrap;
	}

	.ceca-ef-tabs::-webkit-scrollbar {
		display: none;
	}

	.ceca-ef-tabs .ceca-ef-tabs__tab {
		flex: none;
		white-space: nowrap;
	}
}

/* Critic pass: the emptied section head was still holding ~38px of the
   tab-to-card gap — drop it entirely on phones (tabs replace it); card
   gap 11px and checklist rows on a 31px pitch per the design. */
@media (max-width: 767px) {
	.ceca-ef__head {
		display: none;
	}

	.ceca-ef-tabs {
		margin-bottom: 22px;
	}

	.ceca-ef__track {
		gap: 11px;
	}

	.ceca-ef__card {
		margin: 0;
	}

	.ceca-ef-filter__check {
		padding: 3px 0;
	}
}

/* The listing container contributes a 20px flex gap below the injected
   tab bar — 2px here lands the design's 22px tab-to-card distance. */
@media (max-width: 767px) {
	.ceca-ef-tabs {
		margin-bottom: 2px;
	}
}

/* The listing container's flex gap is 20px; 2px nets the design's 22. */
@media (max-width: 767px) {
	.ceca-ef-tabs {
		margin-bottom: 2px;
	}
}

/* Options no event carries, and groups left with none, are hidden by
   event-feed.js — restate [hidden] over the flex display above. */
.ceca-ef-filter__check[hidden],
.ceca-ef-filter__group[hidden],
.ceca-ef-filter__no-results[hidden],
.ceca-ef__no-results[hidden] {
	display: none;
}

/* "No results found" in the sheet, above the Update button. */
.ceca-ef-filter__no-results {
	margin: 0 0 4px;
	font-size: 16px;
	line-height: 24px;
	color: #c65a93;
	text-align: center;
}

/* Empty list after Update: message + Clear filters in place of the cards. */
.ceca-ef__no-results {
	padding: 40px 0;
	text-align: center;
}

.ceca-ef__no-results p {
	margin: 0 0 16px;
	font-size: 18px;
	line-height: 28px;
	color: #000;
}

.ceca-ef__no-results button,
.ceca-ef__no-results button:hover,
.ceca-ef__no-results button:focus {
	min-height: 40px;
	padding: 5px 28px;
	border: 0;
	border-radius: 300px;
	background: #000;
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	line-height: 30px;
	cursor: pointer;
}

/* Options no event carries yet: greyed and unclickable (event-feed.js). */
.ceca-ef-filter__check.is-unavailable {
	color: #b3b3b3;
	cursor: default;
}

.ceca-ef-filter__check.is-unavailable .ceca-ef-filter__dot {
	background: #efefef;
}

.ceca-ef-filter__empty-note {
	margin: 0 0 8px;
	font-size: 15px;
	line-height: 22px;
	color: #767676;
}

/* Nothing to clear: Clear all greys out (event-feed.js disables it). */
.ceca-ef-filter .ceca-ef-filter__clear:disabled {
	color: #b3b3b3;
	text-decoration: none;
	cursor: default;
}

/* The floating pill sits above page content, which also put it above the
   open mobile menu — hide it while the drawer is open (user, 2026-10-05). */
body.ceca-drawer-open .ceca-ef-filter__open {
	display: none !important;
}
