/**
 * Community Events Hub - Front-End Stylesheet
 * Editorial / Graphic / Neo-Brutalist Layout matching the Mockup
 */

:root {
	--ceh-black: #000000;
	--ceh-white: #ffffff;
	--ceh-gray-light: #f5f5f5;
	--ceh-gray-border: #e0e0e0;
	--ceh-gray-text: #444444;
	--ceh-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--ceh-font-impact: Impact, "Arial Black", "Trebuchet MS", sans-serif;

	/* Customizable via the Gutenberg block settings */
	--ceh-accent: #000000;
	--ceh-on-accent: #ffffff;
	--ceh-text: #000000;
	--ceh-card-bg: #ffffff;
	--ceh-cols: 4;
	--ceh-cols-tablet: 3;
	--ceh-cols-small: 2;
	--ceh-gap: 22px;
	--ceh-border-w: 2px;
	--ceh-radius: 0px;
	--ceh-title-size: 14px;
	--ceh-image-h: 195px;
}

/* Base Wrapper */
.ceh-calendar-wrapper {
	font-family: var(--ceh-font-sans);
	color: var(--ceh-black);
	line-height: 1.5;
	width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
}

.ceh-submission-wrapper,
.ceh-block-submission-form {
	font-family: var(--ceh-font-sans);
	color: var(--ceh-black);
	line-height: 1.5;
	width: 100%;
	box-sizing: border-box;
}

.ceh-calendar-wrapper *,
.ceh-submission-wrapper *,
.ceh-block-submission-form * {
	box-sizing: border-box;
}

/* ----------------------------------------------------
   1. CALENDAR HEADER & FILTER NAVIGATION
---------------------------------------------------- */
.ceh-calendar-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
	flex-wrap: wrap;
	border-bottom: 2px solid var(--ceh-accent);
	padding-bottom: 16px;
}

.ceh-calendar-title {
	font-size: clamp(24px, 3.5vw, 34px);
	font-weight: 900;
	margin: 0 0 6px 0;
	color: var(--ceh-text);
	letter-spacing: -0.02em;
	text-transform: uppercase;
}

.ceh-calendar-subtitle {
	font-size: 15px;
	color: var(--ceh-gray-text);
	margin: 0;
}

.ceh-event-counter-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--ceh-accent);
	color: var(--ceh-on-accent);
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.ceh-event-counter-pill .dashicons {
	font-size: 15px;
	width: 15px;
	height: 15px;
	color: var(--ceh-on-accent);
}

/* Category Filter Navigation */
.ceh-filter-nav {
	margin-bottom: 32px;
}

.ceh-filter-buttons-list {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.ceh-filter-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--ceh-card-bg);
	border: 2px solid var(--ceh-accent);
	border-radius: 0;
	padding: 8px 16px;
	font-size: 12.5px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--ceh-text);
	cursor: pointer;
	transition: all 0.15s ease;
	outline: none;
	user-select: none;
}

.ceh-filter-btn:hover {
	background: var(--ceh-accent);
	color: var(--ceh-on-accent);
}

.ceh-filter-btn.is-active {
	background: var(--ceh-accent);
	color: var(--ceh-on-accent);
	border-color: var(--ceh-accent);
	box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.4);
}

.ceh-filter-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	display: inline-block;
	flex-shrink: 0;
	border: 1px solid rgba(0, 0, 0, 0.3);
}

.ceh-filter-count {
	font-size: 11px;
	opacity: 0.8;
}

/* ----------------------------------------------------
   2. EVENTS GRID & MOCKUP CARDS LAYOUT
---------------------------------------------------- */
.ceh-events-grid {
	display: grid;
	grid-template-columns: repeat(var(--ceh-cols), minmax(0, 1fr));
	gap: var(--ceh-gap);
	position: relative;
	min-height: 200px;
}

/* Fallback responsive grid */
@media (max-width: 1200px) {
	.ceh-events-grid {
		grid-template-columns: repeat(var(--ceh-cols-tablet), minmax(0, 1fr));
	}
}

@media (max-width: 880px) {
	.ceh-events-grid {
		grid-template-columns: repeat(var(--ceh-cols-small), minmax(0, 1fr));
	}
}

@media (max-width: 580px) {
	.ceh-events-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* The Event Card (Strict Black Border & Sharp Corners) */
.ceh-event-card {
	min-width: 0;
	background: var(--ceh-card-bg);
	color: var(--ceh-text);
	border: var(--ceh-border-w) solid var(--ceh-accent);
	border-radius: var(--ceh-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	position: relative;
	transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ceh-event-card:hover {
	transform: translateY(-3px);
	box-shadow: 4px 4px 0px var(--ceh-accent);
}

.ceh-no-hover .ceh-event-card:hover {
	transform: none;
	box-shadow: none;
}

.ceh-no-hover .ceh-event-card:hover .ceh-banner-thumb {
	transform: none;
}

/* 1. TOP BANNER / POSTER (Dynamic Pastel Color + Big Headline + Line Art) */
.ceh-card-top-banner {
	width: 100%;
	height: var(--ceh-image-h);
	min-height: var(--ceh-image-h);
	border-bottom: var(--ceh-border-w) solid var(--ceh-accent);
	background: #ffffff;
	position: relative;
	overflow: hidden;
}

.ceh-banner-link {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 100%;
	height: 100%;
	text-decoration: none;
	color: #000000;
}

.ceh-banner-image-wrap {
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: #ffffff;
}

.ceh-banner-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.ceh-event-card:hover .ceh-banner-thumb {
	transform: scale(1.04);
}

.ceh-banner-content {
	padding: 16px 18px;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	position: relative;
}

.ceh-banner-headings {
	z-index: 2;
	position: relative;
}

.ceh-banner-title {
	font-family: var(--ceh-font-impact);
	font-size: 24px;
	line-height: 1.05;
	font-weight: 900;
	letter-spacing: -0.5px;
	text-transform: uppercase;
	color: #000000;
	margin: 0 0 6px 0;
	max-width: 90%;
	word-break: break-word;
}

.ceh-banner-pill-tag {
	display: inline-block;
	background: #000000;
	color: #ffffff;
	padding: 3px 12px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	margin-top: 4px;
	width: fit-content;
}

/* 2. CARD BODY (White Background) */
.ceh-card-body {
	padding: 22px 18px 20px 18px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	background: var(--ceh-card-bg);
}

/* Event Title in uppercase black bold */
.ceh-card-title {
	font-family: var(--ceh-title-ff, inherit);
	font-size: var(--ceh-title-size);
	font-weight: var(--ceh-title-fw, 900);
	text-transform: var(--ceh-title-tt, uppercase);
	letter-spacing: 0.4px;
	color: var(--ceh-text);
	margin: 0 0 12px 0;
	line-height: 1.35;
}

.ceh-card-title a {
	color: inherit;
	text-decoration: none;
	transition: opacity 0.15s ease;
}

.ceh-card-title a:hover {
	opacity: 0.75;
}

/* Date & Time + Organizer */
.ceh-card-meta-block {
	margin-bottom: 14px;
	font-family: var(--ceh-meta-ff, inherit);
	text-transform: var(--ceh-meta-tt, none);
}

.ceh-card-date-time {
	font-size: var(--ceh-meta-fs, 13.5px);
	font-weight: var(--ceh-meta-fw, 800);
	color: var(--ceh-text);
	line-height: 1.3;
	margin-bottom: 2px;
}

.ceh-card-organizer {
	font-size: var(--ceh-meta-fs, 13px);
	color: var(--ceh-text);
	opacity: 0.75;
	font-weight: var(--ceh-meta-fw, 500);
	line-height: 1.3;
}

/* Subtle divider line */
.ceh-card-divider {
	width: 100%;
	height: 1px;
	background-color: #ebebeb;
	margin-bottom: 14px;
}

/* Excerpt Text */
.ceh-card-excerpt {
	font-family: var(--ceh-text-ff, inherit);
	font-size: var(--ceh-text-fs, 13px);
	font-weight: var(--ceh-text-fw, inherit);
	text-transform: var(--ceh-text-tt, none);
	line-height: 1.48;
	color: var(--ceh-text);
	margin-bottom: 22px;
	flex-grow: 1;
	word-break: break-word;
}

/* 3. ACTION BUTTONS: "RÉSERVER" & "EN SAVOIR +" */
.ceh-card-actions {
	margin-top: auto;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: stretch;
}

/* Each button reads its own color (set from the block, else the style default). */
.ceh-btn-reserve {
	--ceh-b: var(--ceh-btn-reserve, var(--ceh-accent));
	--ceh-on-b: var(--ceh-on-btn-reserve, var(--ceh-on-accent));
	--ceh-tx: var(--ceh-tx-reserve);
}

.ceh-btn-more {
	--ceh-b: var(--ceh-btn-more, var(--ceh-accent));
	--ceh-on-b: var(--ceh-on-btn-more, var(--ceh-on-accent));
	--ceh-tx: var(--ceh-tx-more);
}

.ceh-btn-card {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--ceh-card-bg);
	color: var(--ceh-tx, var(--ceh-text)) !important;
	border: 2px solid var(--ceh-b);
	border-radius: var(--ceh-radius) !important;
	padding: 9px 10px;
	font-family: var(--ceh-btn-ff, inherit);
	font-size: var(--ceh-btn-fs, 11px);
	font-weight: var(--ceh-btn-fw, 900);
	text-transform: var(--ceh-btn-tt, uppercase);
	letter-spacing: 0.6px;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	line-height: 1.2;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
	white-space: nowrap;
}

.ceh-btn-card:hover {
	background: var(--ceh-b);
	color: var(--ceh-on-b) !important;
}

.ceh-btn-card:active {
	transform: scale(0.98);
}

/* Empty States */
.ceh-no-events-notice,
.ceh-empty-filter-state {
	text-align: center;
	padding: 48px 24px;
	background: #ffffff;
	border: 2px dashed #000000;
	grid-column: 1 / -1;
}

.ceh-no-events-notice .dashicons,
.ceh-empty-filter-state .dashicons {
	font-size: 40px;
	width: 40px;
	height: 40px;
	color: #000000;
	margin-bottom: 12px;
}

.ceh-no-events-notice h3,
.ceh-empty-filter-state h3 {
	font-size: 18px;
	font-weight: 800;
	text-transform: uppercase;
	margin: 0 0 8px 0;
	color: #000000;
}

.ceh-no-events-notice p,
.ceh-empty-filter-state p {
	font-size: 14px;
	color: #555555;
	margin: 0 0 16px 0;
}

.ceh-reset-filter-btn {
	display: inline-block;
	background: #000000;
	color: #ffffff;
	border: 2px solid #000000;
	padding: 10px 20px;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	cursor: pointer;
}

.ceh-reset-filter-btn:hover {
	background: #ffffff;
	color: #000000;
}

/* Search & filters bar */
.ceh-filter-bar {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 28px;
	font-family: var(--ceh-general-ff, inherit);
}

.ceh-filter-search,
.ceh-filter-select-wrap {
	position: relative;
	display: flex;
	align-items: center;
	background: var(--ceh-card-bg);
	border: 1px solid var(--ceh-gray-border);
	border-radius: var(--ceh-radius, 8px);
	color: var(--ceh-text);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ceh-filter-search {
	width: 100%;
	max-width: none;
}

.ceh-filter-search:focus-within,
.ceh-filter-select-wrap:focus-within {
	border-color: var(--ceh-accent);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--ceh-accent) 25%, transparent);
}

.ceh-filter-search .dashicons,
.ceh-filter-select-wrap > .dashicons {
	position: absolute;
	left: 14px;
	pointer-events: none;
	color: var(--ceh-accent);
}

.ceh-filter-search-input,
.ceh-filter-select {
	width: 100%;
	height: 46px;
	margin: 0;
	padding: 0 14px 0 44px;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-family: var(--ceh-general-ff, inherit);
	font-size: var(--ceh-general-fs, 14px);
	font-weight: var(--ceh-general-fw, inherit);
	text-transform: var(--ceh-general-tt, none);
	box-shadow: none;
	outline: none;
}

.ceh-filter-select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 38px;
	cursor: pointer;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
	background-repeat: no-repeat;
	background-position: right 14px center;
}

.ceh-filter-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.ceh-filter-select-wrap {
	flex: 0 1 260px;
	min-width: 190px;
}

.ceh-filter-reset {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 12px;
	background: transparent;
	border: 0;
	color: var(--ceh-text);
	font-family: var(--ceh-general-ff, inherit);
	font-size: var(--ceh-general-fs, 14px);
	font-weight: var(--ceh-general-fw, 600);
	text-transform: var(--ceh-general-tt, none);
	cursor: pointer;
}

.ceh-filter-reset:hover {
	color: var(--ceh-accent);
}

.ceh-filter-reset .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

@media (max-width: 580px) {
	.ceh-filter-select-wrap {
		flex: 1 1 100%;
	}
}

/* ----------------------------------------------------
   3b. CARD STYLE PRESETS
   Each preset only sets *defaults* on the wrapper; values chosen in the
   block settings are written inline on the same element and always win.
   "editorial" is the original look (defaults declared on :root).
---------------------------------------------------- */

/* Elements only used by some presets are hidden by default. */
.ceh-card-cat-pill,
.ceh-card-meta-icons {
	display: none;
}

/* White background shown when an event has no photo and no category image. */
.ceh-banner-placeholder,
.ceh-style-poster .ceh-banner-placeholder {
	background: #ffffff;
}

.ceh-card-meta-icons .dashicons {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	font-size: 16px;
	color: var(--ceh-accent);
}

/* ---- Shared by classic / poster / horizontal ---- */
.ceh-style-classic,
.ceh-style-poster,
.ceh-style-horizontal {
	--ceh-border-w: 1px;
	--ceh-radius: 12px;
	--ceh-gap: 24px;
	--ceh-title-size: 18px;
	--ceh-image-h: 190px;
	--ceh-cols-tablet: 3;
	--ceh-cols-small: 2;
	--ceh-rest-shadow: 0 2px 12px rgba(15, 23, 42, 0.07);
}

.ceh-style-classic .ceh-event-card,
.ceh-style-poster .ceh-event-card,
.ceh-style-horizontal .ceh-event-card {
	box-shadow: var(--ceh-rest-shadow);
}

.ceh-style-classic .ceh-event-card:hover,
.ceh-style-poster .ceh-event-card:hover,
.ceh-style-horizontal .ceh-event-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.ceh-style-classic .ceh-card-title,
.ceh-style-poster .ceh-card-title,
.ceh-style-horizontal .ceh-card-title {
	text-transform: var(--ceh-title-tt, none);
	letter-spacing: 0;
	font-weight: var(--ceh-title-fw, 700);
	line-height: 1.25;
	margin-bottom: 10px;
}

.ceh-style-classic .ceh-card-meta-block,
.ceh-style-poster .ceh-card-meta-block,
.ceh-style-horizontal .ceh-card-meta-block,
.ceh-style-classic .ceh-card-divider,
.ceh-style-poster .ceh-card-divider,
.ceh-style-horizontal .ceh-card-divider {
	display: none;
}

.ceh-style-classic .ceh-card-meta-icons,
.ceh-style-poster .ceh-card-meta-icons,
.ceh-style-horizontal .ceh-card-meta-icons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	margin-bottom: 12px;
	font-family: var(--ceh-meta-ff, inherit);
	font-size: var(--ceh-meta-fs, 13px);
	font-weight: var(--ceh-meta-fw, inherit);
	text-transform: var(--ceh-meta-tt, none);
	line-height: 1.3;
	color: var(--ceh-text);
}

.ceh-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.ceh-style-classic .ceh-card-excerpt,
.ceh-style-poster .ceh-card-excerpt,
.ceh-style-horizontal .ceh-card-excerpt {
	font-size: var(--ceh-text-fs, 14px);
	line-height: 1.5;
	margin-bottom: 18px;
	opacity: 0.85;
}

.ceh-style-classic .ceh-card-cat-pill,
.ceh-style-poster .ceh-card-cat-pill,
.ceh-style-horizontal .ceh-card-cat-pill,
.ceh-style-editorial .ceh-card-cat-pill {
	display: inline-block;
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 3;
	padding: 4px 14px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	background: var(--ceh-cat, #1f3a5f);
	color: var(--ceh-cat-text, #ffffff);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.ceh-card-cat-pill-wrap {
	margin-bottom: 12px;
}

.ceh-card-cat-pill-wrap .ceh-card-cat-pill {
	display: inline-block;
	position: static;
	padding: 4px 14px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	background: var(--ceh-cat, #1f3a5f);
	color: var(--ceh-cat-text, #ffffff);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.ceh-banner-placeholder .ceh-card-cat-pill {
	border: 1px solid rgba(0, 0, 0, 0.15);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.ceh-style-classic .ceh-card-top-banner,
.ceh-style-horizontal .ceh-card-top-banner {
	border-bottom: 0;
}

/* Buttons: filled primary + outlined secondary. */
.ceh-style-classic .ceh-btn-card,
.ceh-style-poster .ceh-btn-card,
.ceh-style-horizontal .ceh-btn-card {
	border: 1.5px solid var(--ceh-b);
	border-radius: 8px !important;
	padding: 10px 12px;
	font-size: var(--ceh-btn-fs, 12px);
	background: transparent;
	color: var(--ceh-tx, var(--ceh-b)) !important;
}

.ceh-style-classic .ceh-btn-reserve,
.ceh-style-poster .ceh-btn-reserve,
.ceh-style-horizontal .ceh-btn-reserve {
	background: var(--ceh-b);
	color: var(--ceh-tx, var(--ceh-on-b)) !important;
}

.ceh-style-classic .ceh-btn-card:hover,
.ceh-style-poster .ceh-btn-card:hover,
.ceh-style-horizontal .ceh-btn-card:hover {
	background: var(--ceh-b);
	color: var(--ceh-on-b) !important;
	opacity: 0.9;
}

/* ---- CLASSIC (default): white card, soft shadow, image on top ---- */
.ceh-style-classic {
	--ceh-accent: #1f3a5f;
	--ceh-on-accent: #ffffff;
	--ceh-text: #1f2937;
	--ceh-cols: 3;
}

.ceh-style-classic .ceh-event-card {
	border-color: #e5e7eb;
}

.ceh-style-classic .ceh-card-body {
	padding: 20px;
}

/* ---- POSTER: colored banner, rounded white body overlapping it ---- */
.ceh-style-poster {
	--ceh-accent: #0f4a68;
	--ceh-on-accent: #ffffff;
	--ceh-text: #1f2937;
	--ceh-cols: 3;
	--ceh-radius: 14px;
	--ceh-image-h: 210px;
}

.ceh-style-poster .ceh-event-card {
	border: 0;
}

.ceh-style-poster .ceh-card-top-banner {
	border-bottom: 0;
	background: #ffffff;
}

.ceh-banner-cat-image-wrap,
.ceh-banner-default-image-wrap {
	background: #ffffff;
}

.ceh-style-poster .ceh-card-cat-pill {
	box-shadow: none;
}

.ceh-style-poster .ceh-card-body {
	position: relative;
	z-index: 2;
	/* Side margins so the banner shows on both sides of the overlapping text block */
	margin: -18px 12px 0;
	padding: 18px 8px 20px;
	border-radius: var(--ceh-radius) var(--ceh-radius) 0 0;
}

.ceh-style-poster .ceh-event-card:not(:has(.ceh-card-top-banner)) .ceh-card-body {
	margin: 0;
	padding: 18px 20px 20px;
	border-radius: 0;
}

.ceh-style-poster .ceh-btn-reserve::after,
.ceh-style-poster .ceh-btn-more::after {
	content: "\2192";
	margin-left: 6px;
}

/* ---- EDITORIAL: original neo-brutalist look (no overrides needed) ---- */

/* ---- HORIZONTAL: image on the left, content on the right ---- */
.ceh-style-horizontal {
	--ceh-accent: #1f3a5f;
	--ceh-on-accent: #ffffff;
	--ceh-text: #1f2937;
	--ceh-cols: 2;
	--ceh-cols-tablet: 2;
	--ceh-cols-small: 1;
}

.ceh-style-horizontal .ceh-event-card {
	flex-direction: row;
	border-color: #e5e7eb;
}

.ceh-style-horizontal .ceh-card-top-banner {
	flex: 0 0 38%;
	width: 38%;
	min-height: var(--ceh-image-h);
	height: auto;
}

.ceh-style-horizontal .ceh-banner-link,
.ceh-style-horizontal .ceh-banner-image-wrap {
	height: 100%;
}

.ceh-style-horizontal .ceh-banner-thumb {
	position: absolute;
	inset: 0;
}

.ceh-style-horizontal .ceh-card-body {
	flex: 1 1 auto;
	min-width: 0;
	padding: 18px 20px;
}

.ceh-style-horizontal .ceh-card-actions {
	flex-wrap: wrap;
}

@media (max-width: 580px) {
	.ceh-style-horizontal .ceh-event-card {
		flex-direction: column;
	}

	.ceh-style-horizontal .ceh-card-top-banner {
		flex: none;
		width: 100%;
		height: var(--ceh-image-h);
		min-height: var(--ceh-image-h);
	}
}

/* Disabled hover effect always wins over the presets above. */
.ceh-calendar-wrapper.ceh-no-hover .ceh-event-card:hover {
	transform: none;
	box-shadow: var(--ceh-rest-shadow, none);
}

/* ----------------------------------------------------
   4. SUBMISSION FORM STYLES
---------------------------------------------------- */
.ceh-submission-wrapper {
	width: 100%;
	box-sizing: border-box;
	container-type: inline-size;
}

.ceh-submission-trigger {
	display: flex;
	width: 100%;
}

.ceh-submission-trigger[hidden],
.ceh-form-card[hidden] {
	display: none;
}

.ceh-submission-trigger.ceh-align-left {
	justify-content: flex-start;
}

.ceh-submission-trigger.ceh-align-center {
	justify-content: center;
}

.ceh-submission-trigger.ceh-align-right {
	justify-content: flex-end;
}

.ceh-form-card {
	width: 100%;
	background: var(--ceh-form-bg, #ffffff);
	border: var(--ceh-form-border-w, 1px) solid var(--ceh-form-border-c, #e2e8f0);
	border-radius: var(--ceh-form-radius, 16px);
	padding: var(--ceh-form-padding, 44px);
	box-shadow: var(--ceh-form-shadow, 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02));
	box-sizing: border-box;
}

/* Notice Banners */
.ceh-notice {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 18px;
	border-radius: 10px;
	margin-bottom: 24px;
	font-size: 14px;
	line-height: 1.5;
}

.ceh-notice-success {
	background: #f0fdf4;
	color: #166534;
	border: 1px solid #bbf7d0;
}

.ceh-notice-error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.ceh-notice-icon .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
}

/* Form Groups & Inputs */
.ceh-form-group {
	margin-bottom: 22px;
}

.ceh-form-row-2col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.ceh-form-row-2col:has(> .ceh-form-group:only-child) {
	grid-template-columns: 1fr;
}

.ceh-label {
	display: block;
	font-family: var(--ceh-form-label-ff, inherit);
	font-size: var(--ceh-form-label-fs, 14px);
	font-weight: var(--ceh-form-label-fw, 600);
	margin-bottom: 7px;
	color: var(--ceh-form-label-c, #334155);
	text-transform: var(--ceh-form-label-tt, none);
	letter-spacing: normal;
}

.ceh-field-hint {
	display: block;
	font-family: var(--ceh-form-hint-ff, inherit);
	font-size: var(--ceh-form-hint-fs, 12.5px);
	font-weight: var(--ceh-form-hint-fw, inherit);
	text-transform: var(--ceh-form-hint-tt, none);
	color: #64748b;
	margin-top: 5px;
	line-height: 1.4;
}

.ceh-input,
.ceh-textarea,
.ceh-select {
	width: 100%;
	background: var(--ceh-form-input-bg, #ffffff);
	border: 1px solid var(--ceh-form-input-border, #cbd5e1);
	border-radius: var(--ceh-form-input-radius, 8px);
	padding: 11px 14px;
	font-family: var(--ceh-form-input-ff, inherit);
	font-size: var(--ceh-form-input-fs, 14.5px);
	font-weight: var(--ceh-form-input-fw, inherit);
	text-transform: var(--ceh-form-input-tt, none);
	color: #1e293b;
	outline: none;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.ceh-input::placeholder,
.ceh-textarea::placeholder {
	color: #94a3b8;
}

.ceh-input:hover,
.ceh-textarea:hover,
.ceh-select:hover {
	border-color: #94a3b8;
}

.ceh-input:focus,
.ceh-textarea:focus,
.ceh-select:focus {
	border-color: #475569;
	background-color: var(--ceh-form-input-bg, #ffffff);
	box-shadow: 0 0 0 3px rgba(71, 85, 105, 0.12);
}

.ceh-select-wrap {
	position: relative;
}

.ceh-select {
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 14px;
	cursor: pointer;
}

.ceh-textarea {
	resize: vertical;
	min-height: 110px;
}

/* File Dropzone */
.ceh-file-dropzone {
	border: 1.5px dashed var(--ceh-form-input-border, #cbd5e1);
	border-radius: var(--ceh-form-input-radius, 10px);
	padding: 28px 20px;
	text-align: center;
	background: #f8fafc;
	cursor: pointer;
	position: relative;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ceh-file-dropzone:hover {
	border-color: #94a3b8;
	background: #f1f5f9;
}

.ceh-file-input {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
	width: 100%;
	height: 100%;
}

.ceh-dropzone-icon {
	font-size: 32px;
	width: 32px;
	height: 32px;
	color: #64748b;
	margin-bottom: 8px;
}

.ceh-dropzone-title {
	display: block;
	font-family: var(--ceh-form-label-ff, inherit);
	font-size: var(--ceh-form-label-fs, 14px);
	font-weight: var(--ceh-form-label-fw, 600);
	color: #1e293b;
	text-transform: var(--ceh-form-label-tt, none);
}

.ceh-dropzone-hint {
	display: block;
	font-family: var(--ceh-form-hint-ff, inherit);
	font-size: var(--ceh-form-hint-fs, 12.5px);
	font-weight: var(--ceh-form-hint-fw, inherit);
	text-transform: var(--ceh-form-hint-tt, none);
	color: #64748b;
	margin-top: 4px;
}

.ceh-file-preview-wrap {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 8px 14px;
	max-width: 400px;
	margin: 0 auto;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ceh-file-preview-img {
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid #e2e8f0;
}

.ceh-file-name {
	font-size: 13.5px;
	font-weight: 500;
	color: #334155;
	flex-grow: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	text-align: left;
}

.ceh-remove-file-btn {
	background: #f1f5f9;
	border: none;
	border-radius: 50%;
	width: 26px;
	height: 26px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	color: #64748b;
	cursor: pointer;
	padding: 0;
	line-height: 1;
	font-weight: 600;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.ceh-remove-file-btn:hover {
	background: #fee2e2;
	color: #dc2626;
}

/* Buttons */
.ceh-form-actions {
	margin-top: 28px;
	display: flex;
	width: 100%;
}

.ceh-form-actions.ceh-align-left {
	justify-content: flex-start;
}

.ceh-form-actions.ceh-align-center {
	justify-content: center;
}

.ceh-form-actions.ceh-align-right {
	justify-content: flex-end;
}

.ceh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: var(--ceh-form-btn-radius, 8px);
	font-family: var(--ceh-form-btn-ff, inherit);
	font-size: var(--ceh-form-btn-fs, 14px);
	font-weight: var(--ceh-form-btn-fw, 600);
	text-transform: var(--ceh-form-btn-tt, none);
	letter-spacing: normal;
	cursor: pointer;
	text-decoration: none;
	border: 1px solid transparent;
	transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease, opacity 0.15s ease;
	outline: none;
}

.ceh-btn-block {
	width: 100%;
}

.ceh-btn-primary {
	background: var(--ceh-form-btn-bg, #0f172a);
	color: var(--ceh-form-btn-text, #ffffff);
	border-color: var(--ceh-form-btn-border, var(--ceh-form-btn-bg, #0f172a));
}

.ceh-btn-primary:hover {
	opacity: 0.92;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.ceh-btn-primary:active {
	transform: translateY(1px);
}

.ceh-btn-arrow {
	transition: transform 0.18s ease;
}

.ceh-btn:hover .ceh-btn-arrow {
	transform: translateX(3px);
}

.ceh-btn-lg {
	width: 100%;
	padding: 14px 28px;
	font-size: var(--ceh-form-btn-fs, 15px);
}

.ceh-btn .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

/* Container query responsiveness for forms embedded in narrow columns */
@container (max-width: 600px) {
	.ceh-form-card {
		padding: 24px 18px;
	}

	.ceh-form-row-2col {
		grid-template-columns: 1fr;
		gap: 0;
	}
}

/* ----------------------------------------------------
   5. RESPONSIVE BREAKPOINTS
---------------------------------------------------- */
@media (max-width: 768px) {
	.ceh-form-card {
		padding: 24px 18px;
		border-radius: 12px;
	}

	.ceh-form-row-2col {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.ceh-calendar-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.ceh-card-top-banner {
		height: 180px;
		min-height: 180px;
	}
}

/* ----------------------------------------------------
   6. COMPACT EVENTS LIST BLOCK (MOCKUP STYLE)
---------------------------------------------------- */
.ceh-events-list-wrapper,
.ceh-block-events-list {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0;
	font-family: var(--ceh-font-sans);
}

.ceh-events-list-wrapper *,
.ceh-events-list-wrapper *::before,
.ceh-events-list-wrapper *::after {
	box-sizing: border-box;
}

.ceh-events-list-card {
	background: var(--ceh-list-bg, #ffffff);
	border: 1px solid var(--ceh-list-border-c, #eef2f6);
	border-radius: var(--ceh-list-radius, 14px);
	overflow: hidden;
}

.ceh-events-list-card.has-shadow {
	box-shadow: 0 2px 14px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02);
}

.ceh-events-list-items {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
}

.ceh-events-list-row {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: subgrid;
	align-items: center;
	padding: 16px 24px;
	border-bottom: 1px solid var(--ceh-list-border-c, #f1f5f9);
	transition: background-color 0.18s ease;
}

.ceh-events-list-row:last-child {
	border-bottom: none;
}

.ceh-events-list-row.has-hover:hover {
	background-color: #fafbfc;
}

.ceh-list-left-col {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.ceh-list-date-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	text-align: center;
}

.ceh-list-date-day {
	font-family: var(--ceh-list-day-ff, inherit);
	font-size: var(--ceh-list-day-fs, 26px);
	font-weight: var(--ceh-list-day-fw, 800);
	line-height: 1;
	color: var(--ceh-list-date-c, var(--ceh-list-title-c, #003C46));
	letter-spacing: -0.02em;
}

.ceh-list-date-month {
	font-family: var(--ceh-list-month-ff, inherit);
	font-size: var(--ceh-list-month-fs, 11px);
	font-weight: var(--ceh-list-month-fw, 800);
	text-transform: var(--ceh-list-month-tt, uppercase);
	letter-spacing: 0.06em;
	color: var(--ceh-list-date-c, var(--ceh-list-title-c, #003C46));
	opacity: 0.85;
	margin-top: 3px;
	line-height: 1;
}

.ceh-list-v-sep {
	width: 1px;
	height: 38px;
	background: var(--ceh-list-border-c, #e2e8f0);
	margin: 0 22px 0 18px;
	display: inline-block;
}

.ceh-list-cat-wrap {
	display: inline-flex;
	margin-right: 22px;
}

.ceh-list-cat-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 5px 16px;
	border-radius: 999px;
	font-family: var(--ceh-list-cat-ff, inherit);
	font-size: var(--ceh-list-cat-fs, 13px);
	font-weight: var(--ceh-list-cat-fw, 600);
	text-transform: var(--ceh-list-cat-tt, none);
	background-color: var(--ceh-cat-bg, #fef3c7);
	color: var(--ceh-cat-color, #78350f);
	white-space: nowrap;
	line-height: 1.25;
}

.ceh-list-content-col {
	flex: 1;
	min-width: 0;
	padding-right: 16px;
}

.ceh-list-title {
	font-family: var(--ceh-list-title-ff, inherit);
	font-size: var(--ceh-list-title-fs, 16px);
	font-weight: var(--ceh-list-title-fw, 700);
	text-transform: var(--ceh-list-title-tt, none);
	margin: 0 0 5px 0;
	line-height: 1.35;
	color: var(--ceh-list-title-c, #003C46);
}

.ceh-list-title-link {
	color: inherit;
	text-decoration: none;
	transition: color 0.15s ease;
}

.ceh-list-title-link:hover {
	color: var(--ceh-list-link-c, #003C46);
	opacity: 0.85;
}

.ceh-list-meta-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-family: var(--ceh-list-meta-ff, inherit);
	font-size: var(--ceh-list-meta-fs, 13.5px);
	font-weight: var(--ceh-list-meta-fw, 400);
	text-transform: var(--ceh-list-meta-tt, none);
	color: #64748b;
	line-height: 1.4;
}

.ceh-list-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.ceh-meta-icon {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	color: #64748b;
}

.ceh-meta-bullet {
	color: #cbd5e1;
	font-size: 11px;
}

.ceh-meta-price {
	color: #475569;
	font-weight: var(--ceh-list-meta-fw, 500);
}

.ceh-list-action-col {
	flex-shrink: 0;
	margin-left: auto;
}

.ceh-list-action-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-family: var(--ceh-list-link-ff, inherit);
	font-size: var(--ceh-list-link-fs, 14px);
	font-weight: var(--ceh-list-link-fw, 700);
	text-transform: var(--ceh-list-link-tt, none);
	color: var(--ceh-list-link-c, #003C46);
	text-decoration: none;
	border-bottom: 1.5px solid currentColor;
	padding-bottom: 2px;
	white-space: nowrap;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.ceh-list-action-link:hover {
	opacity: 0.75;
}

.ceh-list-action-arrow {
	transition: transform 0.18s ease;
}

.ceh-list-action-link:hover .ceh-list-action-arrow {
	transform: translateX(3px);
}

.ceh-events-list-empty {
	padding: 40px 24px;
	text-align: center;
	color: #64748b;
	font-size: 15px;
}

@media (max-width: 768px) {
	.ceh-events-list-items {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.ceh-events-list-row {
		padding: 18px 18px;
		gap: 12px 0;
	}

	.ceh-list-left-col {
		width: auto;
	}

	.ceh-list-content-col {
		padding-right: 0;
	}

	.ceh-list-action-col {
		grid-column: 1 / -1;
		width: 100%;
		margin-left: 0;
		padding-top: 4px;
		display: flex;
		justify-content: flex-end;
	}
}

@media (max-width: 580px) {
	.ceh-events-list-items {
		display: block;
	}

	.ceh-events-list-row {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		padding: 16px;
		gap: 0;
	}

	.ceh-list-left-col {
		width: 100%;
		justify-content: space-between;
		margin-bottom: 8px;
	}

	.ceh-list-v-sep {
		display: none;
	}

	.ceh-list-cat-wrap {
		margin-right: 0;
	}

	.ceh-list-content-col {
		width: 100%;
		flex-basis: auto;
		margin-bottom: 8px;
	}

	.ceh-list-action-col {
		width: 100%;
		justify-content: flex-start;
	}
}

/* ---- VIEW SWITCHER (next to the search bar) ---- */
.ceh-filter-top {
	display: flex;
	align-items: stretch;
	gap: 12px;
}

.ceh-filter-top .ceh-filter-search {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
}

.ceh-view-toggle {
	display: inline-flex;
	flex: 0 0 auto;
	border: 1px solid var(--ceh-gray-border);
	border-radius: var(--ceh-radius, 8px);
	background: var(--ceh-card-bg);
	overflow: hidden;
}

.ceh-view-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0 16px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--ceh-text);
	font: inherit;
	font-family: var(--ceh-general-ff, inherit);
	font-size: var(--ceh-general-fs, 14px);
	font-weight: var(--ceh-general-fw, 600);
	text-transform: var(--ceh-general-tt, none);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.ceh-view-btn + .ceh-view-btn {
	border-left: 1px solid var(--ceh-gray-border);
}

.ceh-view-btn:hover {
	background: color-mix(in srgb, var(--ceh-accent) 10%, transparent);
}

.ceh-view-btn.is-active {
	background: var(--ceh-accent);
	color: var(--ceh-on-accent, #fff);
}

.ceh-view-btn:focus-visible {
	outline: 2px solid var(--ceh-accent);
	outline-offset: -2px;
}

.ceh-view-btn .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
}

@media (max-width: 520px) {
	.ceh-view-btn-label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}

	.ceh-view-btn {
		padding: 0 12px;
	}
}

/* ---- MONTH VIEW ---- */
.ceh-month-view {
	display: none;
	color: var(--ceh-text);
}

.ceh-view-calendar .ceh-month-view {
	display: block;
}

.ceh-view-calendar .ceh-events-grid,
.ceh-view-calendar .ceh-empty-filter-state {
	display: none !important;
}

.ceh-month-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.ceh-month-title {
	margin: 0;
	font-size: var(--ceh-month-title-fs, 1.35rem);
	text-transform: capitalize;
}

.ceh-month-navs {
	display: inline-flex;
	gap: 6px;
}

.ceh-month-nav {
	min-width: 38px;
	height: 38px;
	margin: 0;
	padding: 0 12px;
	border: 1px solid var(--ceh-month-line, var(--ceh-gray-border));
	border-radius: var(--ceh-radius, 8px);
	background: var(--ceh-card-bg);
	color: var(--ceh-text);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
}

.ceh-month-nav:hover {
	border-color: var(--ceh-accent);
	color: var(--ceh-accent);
}

.ceh-month-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	border-top: 1px solid var(--ceh-month-line, var(--ceh-gray-border));
	border-left: 1px solid var(--ceh-month-line, var(--ceh-gray-border));
	background: var(--ceh-card-bg);
}

.ceh-month-dow {
	padding: 8px 6px;
	border-right: 1px solid var(--ceh-month-line, var(--ceh-gray-border));
	border-bottom: 1px solid var(--ceh-month-line, var(--ceh-gray-border));
	font-size: 12px;
	font-weight: 700;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	background: var(--ceh-month-head-bg, color-mix(in srgb, var(--ceh-accent) 8%, var(--ceh-card-bg)));
}

.ceh-month-day {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-height: var(--ceh-day-h, 112px);
	min-width: 0;
	padding: 6px;
	border-right: 1px solid var(--ceh-month-line, var(--ceh-gray-border));
	border-bottom: 1px solid var(--ceh-month-line, var(--ceh-gray-border));
}

.ceh-month-day.is-outside {
	background: color-mix(in srgb, var(--ceh-text) 4%, transparent);
	opacity: 0.55;
}

.ceh-month-daynum {
	align-self: flex-start;
	min-width: 24px;
	padding: 2px 6px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	text-align: center;
}

.ceh-month-day.is-today .ceh-month-daynum {
	background: var(--ceh-today-c, var(--ceh-accent));
	color: var(--ceh-on-accent, #fff);
}

.ceh-month-events {
	display: flex;
	flex-direction: column;
	gap: 3px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ceh-month-event.is-extra {
	display: none;
}

.ceh-month-day.is-expanded .ceh-month-event.is-extra {
	display: block;
}

.ceh-month-chip {
	--chip-bg: var(--ceh-chip-color, var(--chip-c, var(--ceh-accent)));
	--chip-fg: var(--ceh-chip-text, var(--chip-t, var(--ceh-on-accent, #fff)));
	display: flex;
	align-items: baseline;
	gap: 4px;
	padding: 2px 6px;
	border-radius: var(--ceh-chip-radius, 4px);
	font-size: var(--ceh-chip-fs, 12px);
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
	overflow: hidden;
	background: var(--chip-bg);
	color: var(--chip-fg);
}

/* Chip styles */
.ceh-chip-soft .ceh-month-chip {
	background: color-mix(in srgb, var(--chip-bg) 18%, transparent);
	color: var(--ceh-text);
	border-left: 3px solid var(--chip-bg);
}

.ceh-chip-outline .ceh-month-chip {
	background: transparent;
	color: var(--ceh-text);
	box-shadow: inset 0 0 0 1.5px var(--chip-bg);
}

.ceh-chip-dot .ceh-month-chip {
	background: transparent;
	color: var(--ceh-text);
	padding-left: 2px;
	align-items: center;
}

.ceh-chip-dot .ceh-month-chip::before {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--chip-bg);
}

.ceh-month-day.is-blank {
	background: transparent;
	opacity: 1;
}

.ceh-month-chip:hover,
.ceh-month-chip:focus-visible {
	filter: brightness(0.92);
	text-decoration: underline;
}

.ceh-month-chip-time {
	flex: none;
	font-weight: 700;
	opacity: 0.85;
}

.ceh-month-chip-title {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ceh-month-more {
	align-self: flex-start;
	margin: 0;
	padding: 0 4px;
	border: 0;
	background: transparent;
	color: var(--ceh-accent);
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: underline;
}

.ceh-month-empty {
	margin: 14px 0 0;
	text-align: center;
	opacity: 0.7;
}

/* Small screens: show only the days that have events, as a list. */
@media (max-width: 680px) {
	.ceh-month-grid {
		display: block;
		border-left: 0;
	}

	.ceh-month-dow,
	.ceh-month-day:not(.has-events) {
		display: none;
	}

	.ceh-month-day {
		min-height: 0;
		border-left: 1px solid var(--ceh-month-line, var(--ceh-gray-border));
	}

	.ceh-month-daynum::after {
		content: " " attr(data-long);
		font-weight: 600;
		text-transform: capitalize;
	}

	.ceh-month-daynum {
		font-size: 0;
	}

	.ceh-month-daynum::after {
		font-size: 14px;
	}
}
