/**
 * WehFiGO Event Calendar (WS-L) — v2.1.6
 *
 * Presentation layer for inc/wehfigo-calendar.php. Tokens only (see
 * wehfigo-tokens.css + the --color-page-* shell vars in wehfigo-theme.css,
 * which flip automatically in dark mode). This file is intentionally the
 * ONLY place the month grid is styled, so the grid can be reskinned or
 * replaced (Eventchamp v1 vs v2 open question) without touching shared CSS.
 */

/* =========================================================
   Edit 15 — one hero only (hide Listeo / beach titlebar)
   ========================================================= */

body.wehfigo-calendar-page #titlebar,
body.wehfigo-calendar-page #titlebar.wehfigo-page-hero {
	display: none !important;
}

/* Kill white hairline / padding between sticky header and nightlife hero */
body.wehfigo-calendar-page #wrapper,
body.wehfigo-calendar-page #main,
body.wehfigo-calendar-page .fs-container,
body.wehfigo-calendar-page .fullwidth-elementor-content,
body.wehfigo-calendar-page .elementor {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

body.wehfigo-calendar-page #header-container,
body.wehfigo-calendar-page #header {
	margin-bottom: 0 !important;
	border-bottom: none !important;
	box-shadow: none !important;
}

body.wehfigo-calendar-page .elementor-top-section:first-child,
body.wehfigo-calendar-page .elementor > .elementor-section:first-child,
body.wehfigo-calendar-page .elementor > .e-con:first-child,
body.wehfigo-calendar-page .elementor-element:first-child > .elementor-widget-container,
body.wehfigo-calendar-page .elementor-widget-wehfigo_calendar,
body.wehfigo-calendar-page .elementor-widget-wehfigo-calendar {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

body.wehfigo-calendar-page .wehfigo-section.wehfigo-calendar {
	margin-top: 0 !important;
	padding-top: 0 !important;
	width: 100%;
	max-width: none;
}

body.wehfigo-calendar-page .wehfigo-calendar-banner {
	margin-top: 0 !important;
	border-top: 0 !important;
}

/* Full-bleed: break out of Listeo / Elementor content boxes */
body.wehfigo-calendar-page #main,
body.wehfigo-calendar-page #main > .container,
body.wehfigo-calendar-page .content-area,
body.wehfigo-calendar-page .elementor-section,
body.wehfigo-calendar-page .elementor-container,
body.wehfigo-calendar-page .e-con,
body.wehfigo-calendar-page .elementor-widget-container,
body.wehfigo-calendar-page .elementor-widget-wehfigo_calendar .elementor-widget-container,
body.wehfigo-calendar-page .elementor-widget-wehfigo-calendar .elementor-widget-container {
	max-width: none !important;
	width: 100% !important;
}

body.wehfigo-calendar-page .wehfigo-calendar .container,
body.wehfigo-calendar-page .wehfigo-cal-stats-wrap .container {
	max-width: none !important;
	width: 100% !important;
	padding-left: clamp(1rem, 2.5vw, 2rem) !important;
	padding-right: clamp(1rem, 2.5vw, 2rem) !important;
}

/* Hero inner keeps a readable column; full-bleed rule above must not stretch it edge-to-edge */
body.wehfigo-calendar-page .wehfigo-calendar .container.wehfigo-calendar-banner__inner {
	max-width: min(52rem, 100%) !important;
	width: 100% !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

/* If a 1px body/page strip still peeks, match hero base */
body.wehfigo-calendar-page #main > .container:empty,
body.wehfigo-calendar-page .content-area {
	background-color: #0d0d0d;
}

/* =========================================================
   Calendar banner — auth-panel DNA (bold, speak-to-user)
   ========================================================= */

.wehfigo-calendar-banner {
	--wehfigo-cal-banner-red: var(--color-brand-red, #d6001c);
	--wehfigo-cal-banner-hot-red: #ff3048;
	--wehfigo-cal-banner-font: var(--font-accent, 'Space Grotesk', system-ui, sans-serif);
	--wehfigo-cal-banner-focal: 42% 32%;
	--wehfigo-cal-banner-eyebrow: clamp(1.3rem, 0.9vw + 1rem, 1.65rem);
	--wehfigo-cal-banner-title: clamp(3.5rem, 6.2vw + 1rem, 6.5rem);
	--wehfigo-cal-banner-lead: clamp(1.3rem, 1.65vw + 0.72rem, 1.9rem);
	--wehfigo-cal-banner-support: clamp(1.05rem, 1.05vw + 0.68rem, 1.4rem);
	--wehfigo-cal-banner-cta: clamp(1.05rem, 0.6vw + 0.92rem, 1.32rem);
	--wehfigo-cal-banner-pill: clamp(0.95rem, 0.4vw + 0.86rem, 1.06rem);
	--wehfigo-cal-banner-search: clamp(1.05rem, 0.5vw + 0.92rem, 1.18rem);
	--wehfigo-cal-banner-ghost-border: rgba(255, 255, 255, 0.82);
	--wehfigo-cal-banner-ghost-bg: rgba(0, 0, 0, 0.48);
	--wehfigo-cal-banner-ghost-shadow: 0 2px 12px rgba(0, 0, 0, 0.42);
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: clamp(18rem, 42vw, 28rem);
	padding: clamp(2.5rem, 5.5vw, 4.25rem) clamp(1.5rem, 4vw, 3rem) clamp(5.75rem, 11vw, 8.25rem);
	margin: 0;
	overflow: hidden;
	text-align: center;
	color: #fff;
	background-color: #0d0d0d;
	background-image:
		linear-gradient(
			180deg,
			rgba(0, 0, 0, 0.58) 0%,
			rgba(0, 0, 0, 0.66) 45%,
			rgba(0, 0, 0, 0.76) 100%
		),
		var(--wehfigo-cal-banner-bg, linear-gradient(145deg, #1a1a1a, #0a0a0a));
	background-size: cover, cover;
	background-position: center, var(--wehfigo-cal-banner-focal);
	background-repeat: no-repeat, no-repeat;
	border-radius: 0;
}

/* Full-bleed when Elementor boxes the widget */
.wehfigo-calendar > .wehfigo-calendar-banner {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	margin-bottom: 0;
}

/* No white strip between nightlife hero and calendar controls */
.wehfigo-calendar > .container {
	padding-top: 0 !important;
	margin-top: 0 !important;
	background: var(--color-page-bg, #fff);
	scroll-margin-top: 5.5rem;
}

.wehfigo-calendar-banner::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background: rgba(0, 0, 0, 0.34);
}

.wehfigo-calendar-banner__dots {
	position: absolute;
	top: clamp(1.5rem, 3.5vh, 2.5rem);
	left: 0;
	width: 4.75rem;
	height: 7.25rem;
	z-index: 2;
	pointer-events: none;
	background-image: radial-gradient(circle, var(--wehfigo-cal-banner-red) 3px, transparent 3.35px);
	background-size: 1.35rem 1.35rem;
	background-repeat: repeat;
	background-position: 1.15rem 0.85rem;
	filter: drop-shadow(0 0 4px rgba(214, 0, 28, 0.55));
}

.wehfigo-calendar-banner__wave {
	position: absolute;
	left: -1.5rem;
	bottom: -0.75rem;
	width: min(48vw, 26rem);
	height: auto;
	z-index: 1;
	pointer-events: none;
	color: var(--wehfigo-cal-banner-red);
	opacity: 0.9;
}

.wehfigo-calendar-banner__inner {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: min(52rem, 100%);
	margin: 0 auto;
	padding: 0 clamp(1rem, 3vw, 1.5rem) clamp(1.25rem, 2.5vh, 2rem);
	box-sizing: border-box;
	text-align: center;
}

.wehfigo-calendar-banner__eyebrow {
	display: inline-block;
	margin: 0 0 clamp(0.65rem, 1.2vh, 0.95rem);
	font-family: var(--wehfigo-cal-banner-font);
	font-size: var(--wehfigo-cal-banner-eyebrow);
	font-weight: 800;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: #fff;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.92);
}

.wehfigo-calendar-banner__title {
	margin: 0;
	font-family: var(--wehfigo-cal-banner-font);
	font-size: var(--wehfigo-cal-banner-title);
	font-weight: 800;
	line-height: 0.96;
	letter-spacing: -0.03em;
	color: #fff;
	text-transform: none;
	text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.wehfigo-calendar-banner__title-main {
	color: #fff;
}

.wehfigo-calendar-banner__title-accent {
	color: var(--wehfigo-cal-banner-hot-red);
}

.wehfigo-calendar-banner__lead {
	margin: clamp(1.15rem, 2.4vh, 1.75rem) auto 0;
	max-width: min(36rem, 96%);
	font-family: var(--wehfigo-cal-banner-font);
	font-size: var(--wehfigo-cal-banner-lead);
	font-weight: 600;
	line-height: 1.4;
	color: #fff;
}

.wehfigo-calendar-banner__lead-accent {
	color: #fff;
	text-decoration: underline;
	text-decoration-color: var(--wehfigo-cal-banner-red);
	text-decoration-thickness: 0.14em;
	text-underline-offset: 0.14em;
}

/* =========================================================
   Hero search — wide white pill + red circular submit
   ========================================================= */

.wehfigo-calendar-banner__search {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	width: 100%;
	padding: 0.55rem 0.55rem 0.55rem 1.15rem;
	background: #fff;
	border-radius: 999px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.wehfigo-calendar-banner__search-wrap {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: min(100%, 34rem);
	margin: clamp(1.35rem, 2.6vh, 1.9rem) auto 0;
	z-index: 12;
}

.wehfigo-calendar-banner__search-icon {
	flex-shrink: 0;
	color: #9a9a9a;
}

.wehfigo-calendar-banner__search-input,
body.wehfigo-calendar-page .wehfigo-calendar-banner__search input[type="search"],
body.wehfigo-v2 .wehfigo-calendar-banner__search input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	width: auto !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	border-radius: 0 !important;
	outline: none !important;
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	-webkit-box-shadow: none !important;
	font-family: var(--wehfigo-cal-banner-font);
	font-size: var(--wehfigo-cal-banner-search);
	font-weight: 500;
	line-height: 1.3 !important;
	color: #222;
	-webkit-appearance: none;
	appearance: none;
}

.wehfigo-calendar-banner__search-input:focus,
body.wehfigo-calendar-page .wehfigo-calendar-banner__search input[type="search"]:focus,
body.wehfigo-v2 .wehfigo-calendar-banner__search input[type="search"]:focus {
	outline: none !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
}

.wehfigo-calendar-banner__search-input::placeholder {
	color: #9a9a9a;
	font-size: var(--wehfigo-cal-banner-search);
}

.wehfigo-calendar-banner__search-input::-webkit-search-decoration,
.wehfigo-calendar-banner__search-input::-webkit-search-cancel-button,
.wehfigo-calendar-banner__search-input::-webkit-search-results-button,
.wehfigo-calendar-banner__search-input::-webkit-search-results-decoration {
	-webkit-appearance: none;
	appearance: none;
	display: none;
}

.wehfigo-calendar-banner__search-input:-webkit-autofill,
.wehfigo-calendar-banner__search-input:-webkit-autofill:hover,
.wehfigo-calendar-banner__search-input:-webkit-autofill:focus {
	-webkit-text-fill-color: #222;
	box-shadow: 0 0 0 1000px transparent inset !important;
	-webkit-box-shadow: 0 0 0 1000px transparent inset !important;
	transition: background-color 9999s ease-out 0s;
}

/* Hero search on white pill: beat Listeo body#dark-mode input { color: #fff } */
html[data-theme="dark"] .wehfigo-calendar-banner__search,
body#dark-mode .wehfigo-calendar-banner__search {
	background: #fff;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .wehfigo-calendar-banner__search-icon,
body#dark-mode .wehfigo-calendar-banner__search-icon {
	color: #64748b;
}

html[data-theme="dark"] .wehfigo-calendar-banner__search-input,
html[data-theme="dark"] body.wehfigo-calendar-page .wehfigo-calendar-banner__search input[type="search"],
html[data-theme="dark"] body.wehfigo-v2 .wehfigo-calendar-banner__search input[type="search"],
body#dark-mode .wehfigo-calendar-banner__search-input,
body#dark-mode.wehfigo-calendar-page .wehfigo-calendar-banner__search input[type="search"],
body#dark-mode.wehfigo-v2 .wehfigo-calendar-banner__search input[type="search"] {
	color: #12151a !important;
	-webkit-text-fill-color: #12151a !important;
	caret-color: #12151a;
}

html[data-theme="dark"] .wehfigo-calendar-banner__search-input::placeholder,
html[data-theme="dark"] body.wehfigo-calendar-page .wehfigo-calendar-banner__search input[type="search"]::placeholder,
html[data-theme="dark"] body.wehfigo-v2 .wehfigo-calendar-banner__search input[type="search"]::placeholder,
body#dark-mode .wehfigo-calendar-banner__search-input::placeholder,
body#dark-mode.wehfigo-calendar-page .wehfigo-calendar-banner__search input[type="search"]::placeholder,
body#dark-mode.wehfigo-v2 .wehfigo-calendar-banner__search input[type="search"]::placeholder {
	color: #64748b !important;
	opacity: 1;
}

html[data-theme="dark"] .wehfigo-calendar-banner__search-input:-webkit-autofill,
html[data-theme="dark"] .wehfigo-calendar-banner__search-input:-webkit-autofill:hover,
html[data-theme="dark"] .wehfigo-calendar-banner__search-input:-webkit-autofill:focus,
body#dark-mode .wehfigo-calendar-banner__search-input:-webkit-autofill,
body#dark-mode .wehfigo-calendar-banner__search-input:-webkit-autofill:hover,
body#dark-mode .wehfigo-calendar-banner__search-input:-webkit-autofill:focus {
	-webkit-text-fill-color: #12151a !important;
	box-shadow: 0 0 0 1000px #fff inset !important;
	-webkit-box-shadow: 0 0 0 1000px #fff inset !important;
}

.wehfigo-calendar-banner__search-btn {
	appearance: none;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.85rem;
	height: 2.85rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--wehfigo-cal-banner-red);
	color: #fff;
	cursor: pointer;
	transition: background-color 0.18s ease, transform 0.18s ease;
}

.wehfigo-calendar-banner__search-btn:hover {
	background: var(--color-brand-red-hover, #b00018);
	transform: translateY(-1px);
}

.wehfigo-calendar-banner__search-btn:focus-visible {
	outline: 2px solid var(--wehfigo-cal-banner-red);
	outline-offset: 2px;
}

/* Calendar hero search suggestions */
.wehfigo-calendar-suggest {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	width: 100%;
	box-sizing: border-box;
	z-index: 40;
	padding: 10px 8px 8px;
	background: #ffffff;
	border: 1px solid rgba(15, 23, 42, 0.12);
	border-radius: 16px;
	box-shadow:
		0 18px 40px rgba(0, 0, 0, 0.28),
		0 2px 8px rgba(0, 0, 0, 0.12);
	text-align: left;
	max-height: min(420px, 70vh);
	overflow-x: hidden;
	overflow-y: auto;
	background-clip: padding-box;
	-webkit-background-clip: padding-box;
	color: #0f172a;
}

.wehfigo-calendar-suggest[hidden] {
	display: none;
}

.wehfigo-calendar-suggest__label {
	display: block;
	padding: 10px 14px 6px;
	font-family: var(--wehfigo-cal-banner-font);
	font-size: clamp(0.78rem, 0.35vw + 0.72rem, 0.88rem);
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #64748b;
}

.wehfigo-calendar-suggest__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	margin: 2px 4px;
	border-radius: 12px;
	color: #0f172a;
	font-family: var(--font-family-body, 'Poppins', system-ui, sans-serif);
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.wehfigo-calendar-suggest__main {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	flex: 1 1 auto;
}

.wehfigo-calendar-suggest__title {
	display: block;
	font-family: var(--wehfigo-cal-banner-font);
	font-size: clamp(1rem, 0.45vw + 0.92rem, 1.12rem);
	font-weight: 700;
	line-height: 1.3;
	color: #0f172a;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wehfigo-calendar-suggest__sub {
	display: block;
	font-size: clamp(0.88rem, 0.35vw + 0.8rem, 0.98rem);
	font-weight: 500;
	line-height: 1.35;
	color: #64748b;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wehfigo-calendar-suggest__item mark {
	background: rgba(214, 0, 28, 0.14);
	color: inherit;
	border-radius: 3px;
	padding: 0 2px;
}

.wehfigo-calendar-suggest__item:hover,
.wehfigo-calendar-suggest__item[aria-selected="true"] {
	background: rgba(15, 23, 42, 0.06);
}

.wehfigo-calendar-suggest__item:hover .wehfigo-calendar-suggest__title,
.wehfigo-calendar-suggest__item[aria-selected="true"] .wehfigo-calendar-suggest__title {
	color: #0f172a;
}

.wehfigo-calendar-suggest__kind {
	flex-shrink: 0;
	padding: 4px 10px;
	border-radius: 999px;
	font-family: var(--wehfigo-cal-banner-font);
	font-size: clamp(0.78rem, 0.3vw + 0.72rem, 0.86rem);
	font-weight: 700;
	line-height: 1.2;
	color: #475569;
	background: rgba(15, 23, 42, 0.06);
}

.wehfigo-calendar-suggest__kind--event {
	color: #9f1239;
	background: rgba(214, 0, 28, 0.1);
}

.wehfigo-calendar-suggest__kind--category {
	color: #1e40af;
	background: rgba(59, 130, 246, 0.12);
}

.wehfigo-calendar-suggest__empty {
	margin: 0;
	padding: 12px 14px 10px;
	font-family: var(--wehfigo-cal-banner-font);
	font-size: clamp(0.95rem, 0.4vw + 0.88rem, 1.05rem);
	font-weight: 600;
	line-height: 1.4;
	color: #64748b;
}

.wehfigo-calendar-suggest__viewall {
	display: block;
	margin: 4px 4px 2px;
	padding: 12px 14px;
	border-radius: 12px;
	font-family: var(--wehfigo-cal-banner-font);
	font-size: clamp(0.95rem, 0.4vw + 0.88rem, 1.05rem);
	font-weight: 700;
	line-height: 1.35;
	color: var(--wehfigo-cal-banner-red);
	text-decoration: none;
}

.wehfigo-calendar-suggest__viewall:hover,
.wehfigo-calendar-suggest__viewall[aria-selected="true"] {
	background: rgba(214, 0, 28, 0.08);
}

html[data-theme="dark"] .wehfigo-calendar-suggest,
body#dark-mode .wehfigo-calendar-suggest {
	background: #12151a;
	border-color: rgba(255, 255, 255, 0.12);
	box-shadow:
		0 18px 40px rgba(0, 0, 0, 0.55),
		0 2px 8px rgba(0, 0, 0, 0.35);
	color: #f1f5f9;
	isolation: isolate;
	overflow-x: hidden;
	overflow-y: auto;
	background-clip: padding-box;
	-webkit-background-clip: padding-box;
	scrollbar-color: rgba(255, 255, 255, 0.22) #12151a;
}

html[data-theme="dark"] .wehfigo-calendar-suggest::before,
body#dark-mode .wehfigo-calendar-suggest::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: #12151a;
	z-index: -1;
	pointer-events: none;
}

html[data-theme="dark"] .wehfigo-calendar-suggest__label,
body#dark-mode .wehfigo-calendar-suggest__label {
	color: #94a3b8;
}

html[data-theme="dark"] .wehfigo-calendar-suggest__item,
body#dark-mode .wehfigo-calendar-suggest__item {
	color: #f1f5f9;
}

html[data-theme="dark"] .wehfigo-calendar-suggest__title,
body#dark-mode .wehfigo-calendar-suggest__title {
	color: #f8fafc;
}

html[data-theme="dark"] .wehfigo-calendar-suggest__sub,
body#dark-mode .wehfigo-calendar-suggest__sub {
	color: #94a3b8;
}

html[data-theme="dark"] .wehfigo-calendar-suggest__item:hover,
html[data-theme="dark"] .wehfigo-calendar-suggest__item[aria-selected="true"],
body#dark-mode .wehfigo-calendar-suggest__item:hover,
body#dark-mode .wehfigo-calendar-suggest__item[aria-selected="true"] {
	background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .wehfigo-calendar-suggest__kind,
body#dark-mode .wehfigo-calendar-suggest__kind {
	color: #cbd5e1;
	background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .wehfigo-calendar-suggest__kind--event,
body#dark-mode .wehfigo-calendar-suggest__kind--event {
	color: #fecdd3;
	background: rgba(214, 0, 28, 0.22);
}

html[data-theme="dark"] .wehfigo-calendar-suggest__kind--category,
body#dark-mode .wehfigo-calendar-suggest__kind--category {
	color: #bfdbfe;
	background: rgba(59, 130, 246, 0.2);
}

html[data-theme="dark"] .wehfigo-calendar-suggest__empty,
body#dark-mode .wehfigo-calendar-suggest__empty {
	color: #94a3b8;
}

html[data-theme="dark"] .wehfigo-calendar-suggest__viewall,
body#dark-mode .wehfigo-calendar-suggest__viewall {
	color: #ff6b7f;
}

html[data-theme="dark"] .wehfigo-calendar-suggest__viewall:hover,
html[data-theme="dark"] .wehfigo-calendar-suggest__viewall[aria-selected="true"],
body#dark-mode .wehfigo-calendar-suggest__viewall:hover,
body#dark-mode .wehfigo-calendar-suggest__viewall[aria-selected="true"] {
	background: rgba(214, 0, 28, 0.18);
}

/* =========================================================
   Hero popular pills — outline, on the dark photo
   ========================================================= */

.wehfigo-calendar-banner__pills {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	list-style: none;
	gap: 0.65rem;
	width: 100%;
	max-width: min(40rem, 100%);
	margin: clamp(1rem, 2vh, 1.4rem) auto 0;
	padding: 0;
}

.wehfigo-calendar-banner__pills::-webkit-scrollbar {
	display: none;
}

.wehfigo-calendar-banner__pills li {
	flex-shrink: 0;
}

.wehfigo-calendar-banner__pills a {
	display: inline-flex;
	align-items: center;
	padding: 0.55rem 1.15rem;
	border: 2px solid var(--wehfigo-cal-banner-ghost-border);
	border-radius: 999px;
	background: var(--wehfigo-cal-banner-ghost-bg);
	box-shadow: var(--wehfigo-cal-banner-ghost-shadow);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	font-family: var(--wehfigo-cal-banner-font);
	font-size: var(--wehfigo-cal-banner-pill);
	font-weight: 600;
	letter-spacing: 0.01em;
	color: #fff;
	text-decoration: none;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
	white-space: nowrap;
	transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.wehfigo-calendar-banner__pills a:hover {
	border-color: #fff;
	background: rgba(0, 0, 0, 0.62);
	box-shadow: 0 3px 14px rgba(0, 0, 0, 0.5);
}

/* Desktop: 5 pills fit on one line; the 6th (Soca) rides the mobile scroller. */
@media (min-width: 640px) {
	.wehfigo-calendar-banner__pills {
		flex-wrap: wrap;
		overflow-x: visible;
	}

	.wehfigo-calendar-banner__pills li:nth-child(6) {
		display: none;
	}
}

.wehfigo-calendar-banner__support {
	margin: clamp(0.55rem, 1.2vh, 0.85rem) 0 0;
	max-width: min(32rem, 94%);
	font-family: var(--wehfigo-cal-banner-font);
	font-size: var(--wehfigo-cal-banner-support);
	font-weight: 500;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.9);
}

/* Legacy class kept for any cached markup */
.wehfigo-calendar-banner__sub {
	margin: clamp(1.15rem, 2.4vh, 1.75rem) 0 0;
	max-width: min(36rem, 96%);
	font-family: var(--wehfigo-cal-banner-font);
	font-size: var(--wehfigo-cal-banner-lead);
	font-weight: 600;
	line-height: 1.4;
	color: #fff;
}

.wehfigo-calendar-banner__cta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: clamp(0.65rem, 1.5vw, 1.1rem) clamp(0.75rem, 1.8vw, 1.15rem);
	margin-top: clamp(1.45rem, 3vh, 2.2rem);
}

.wehfigo-calendar-banner__cta {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin: 0;
	padding: clamp(0.75rem, 1.35vh, 0.95rem) clamp(1.35rem, 2.1vw, 1.85rem);
	border-radius: 999px;
	font-family: var(--wehfigo-cal-banner-font);
	font-size: var(--wehfigo-cal-banner-cta);
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.wehfigo-calendar-banner__cta:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.wehfigo-calendar-banner__cta--primary {
	border: 0;
	background: var(--wehfigo-cal-banner-red);
	color: #fff;
}

.wehfigo-calendar-banner__cta--primary:hover {
	background: var(--color-brand-red-hover, #b00018);
	color: #fff;
	transform: translateY(-1px);
}

.wehfigo-calendar-banner__cta--ghost {
	border: 2px solid var(--wehfigo-cal-banner-ghost-border);
	background: var(--wehfigo-cal-banner-ghost-bg);
	box-shadow: var(--wehfigo-cal-banner-ghost-shadow);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: #fff;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}

.wehfigo-calendar-banner__cta--ghost:hover {
	border-color: #fff;
	background: rgba(0, 0, 0, 0.62);
	box-shadow: 0 3px 14px rgba(0, 0, 0, 0.5);
	color: #fff;
	transform: translateY(-1px);
}

.wehfigo-calendar-banner__cta .wehfigo-icon {
	display: inline-flex;
	flex-shrink: 0;
	width: 1.15em;
	height: 1.15em;
	color: inherit;
}

.wehfigo-calendar-banner__cta .wehfigo-icon svg {
	width: 100%;
	height: 100%;
}

.wehfigo-calendar-banner__cta-arrow {
	font-weight: 700;
	line-height: 1;
}

@media (min-width: 1024px) {
	.wehfigo-calendar-banner {
		--wehfigo-cal-banner-eyebrow: clamp(1.45rem, 1vw + 1.05rem, 1.85rem);
		--wehfigo-cal-banner-title: clamp(4.25rem, 6.75vw + 1rem, 7.1rem);
		--wehfigo-cal-banner-lead: clamp(1.45rem, 1.75vw + 0.68rem, 2.15rem);
		--wehfigo-cal-banner-support: clamp(1.15rem, 1.15vw + 0.62rem, 1.5rem);
		--wehfigo-cal-banner-cta: clamp(1.08rem, 0.65vw + 0.94rem, 1.38rem);
		--wehfigo-cal-banner-pill: clamp(1rem, 0.45vw + 0.88rem, 1.1rem);
		--wehfigo-cal-banner-search: clamp(1.08rem, 0.55vw + 0.94rem, 1.22rem);
		min-height: clamp(22rem, 36vw, 30rem);
		padding-top: clamp(2.25rem, 4.5vw, 3.75rem);
		padding-bottom: clamp(6.5rem, 12vw, 9rem);
	}

	body.wehfigo-calendar-page .wehfigo-calendar .container.wehfigo-calendar-banner__inner,
	.wehfigo-calendar-banner__inner {
		max-width: min(56rem, 100%) !important;
		margin-left: auto;
		margin-right: auto;
		padding-bottom: clamp(1.5rem, 2.75vh, 2.25rem);
	}

	.wehfigo-calendar-banner__dots {
		width: 5.5rem;
		height: 8.5rem;
		background-size: 1.55rem 1.55rem;
		background-position: 1.35rem 1rem;
		background-image: radial-gradient(circle, var(--wehfigo-cal-banner-red) 3.4px, transparent 3.8px);
	}
}

/* =========================================================
   Stats strip — white card floating over the hero/content seam
   ========================================================= */

.wehfigo-cal-stats-wrap {
	position: relative;
	z-index: 4;
	background: var(--color-page-bg, #fff);
	padding-bottom: clamp(1rem, 2vw, 1.75rem);
}

.wehfigo-cal-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	margin-top: clamp(-2.75rem, -4vw, -2rem);
	background: var(--color-page-bg, #fff);
	border: 1px solid var(--color-page-border, #ebebeb);
	border-radius: var(--radius-lg, 14px);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
	width: 100%;
	overflow: hidden;
}

.wehfigo-cal-stats__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: clamp(0.95rem, 1.6vw, 1.25rem) clamp(0.55rem, 1.1vw, 0.85rem);
	text-align: center;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	border-left: 1px solid var(--color-page-border, #ebebeb);
}

.wehfigo-cal-stats__item:first-child {
	border-left: 0;
}

.wehfigo-cal-stats__icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	height: auto;
	padding: 0;
	border-radius: 0;
	background: transparent;
	color: var(--color-brand-red, #d6001c);
}

.wehfigo-cal-stats__icon .wehfigo-icon {
	width: clamp(1.45rem, 2.4vw, 1.85rem);
	height: clamp(1.45rem, 2.4vw, 1.85rem);
}

.wehfigo-cal-stats__text {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.15rem;
	min-width: 0;
}

.wehfigo-cal-stats__num {
	font-family: var(--font-family-brand, 'Space Grotesk', sans-serif);
	font-size: clamp(1.35rem, 2.4vw, 2rem);
	font-weight: 800;
	line-height: 1.05;
	color: var(--color-page-heading, #1a1a1a);
}

.wehfigo-cal-stats__label {
	font-size: clamp(0.8125rem, 1.05vw, 0.9375rem);
	font-weight: 600;
	color: var(--color-page-muted, #707070);
	white-space: normal;
	line-height: 1.25;
}

@media (max-width: 767px) {
	.wehfigo-cal-stats {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 0;
		margin-top: -1.15rem;
		border-radius: 12px;
		box-shadow: 0 8px 20px rgba(0, 0, 0, 0.09);
	}

	.wehfigo-cal-stats__item {
		padding: 0.75rem 0.35rem 0.8rem;
		border-radius: 0;
		box-shadow: none;
	}

	.wehfigo-cal-stats__icon .wehfigo-icon {
		width: 1.3rem;
		height: 1.3rem;
	}

	.wehfigo-cal-stats__num {
		font-size: 1.1rem;
	}

	.wehfigo-cal-stats__label {
		font-size: 0.8125rem;
		line-height: 1.25;
	}
}

html[data-theme="dark"] .wehfigo-cal-stats,
body#dark-mode .wehfigo-cal-stats {
	background: #1e1e1e;
	border-color: rgba(255, 255, 255, 0.1);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

html[data-theme="dark"] .wehfigo-cal-stats__item,
body#dark-mode .wehfigo-cal-stats__item {
	border-left-color: rgba(255, 255, 255, 0.1);
}

/* =========================================================
   Shell + toolbar — WehfiGO red / white
   Card: white panel. Accent brand red (#d6001c).
   ========================================================= */

.wehfigo-cal {
	--wehfigo-cal-accent: var(--color-brand-red, #d6001c);
	--wehfigo-cal-accent-ink: #fff;
	--wehfigo-cal-ink: #222;
	--wehfigo-cal-muted: #9a9a9a;
	--wehfigo-cal-line: #e8e8e8;
	--wehfigo-cal-header: #333;
	--wehfigo-cal-lane-h: 18px;
	--wehfigo-cal-focus: var(--color-brand-red-muted, rgba(214, 0, 28, 0.35));
	--wehfigo-cal-text-ui: 0.9375rem;
	--wehfigo-cal-text-viewall: 0.875rem;
	--wehfigo-cal-text-chip-time: 0.8125rem;
	--wehfigo-cal-text-chip-title: 0.875rem;
	--wehfigo-cal-text-stats: 0.8125rem;
	--wehfigo-cal-text-btn: 1rem;
	position: relative;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: clamp(1.5rem, 2.5vw, 2.25rem) 0 clamp(2rem, 4vw, 3rem);
	background: transparent;
	border-radius: 0;
	box-shadow: none;
	color: var(--wehfigo-cal-ink);
}

.wehfigo-cal-months-head {
	max-width: none;
	margin: 0 0 clamp(1.75rem, 3vw, 2.5rem);
	text-align: center;
}

.wehfigo-cal-months-head__title {
	margin: 0;
	font-family: var(--font-family-brand, 'Space Grotesk', sans-serif);
	font-size: clamp(2rem, 3.5vw, 2.75rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--wehfigo-cal-ink);
}

.wehfigo-cal-months-head__sub {
	margin: 0.65rem 0 0;
	font-size: clamp(1rem, 1.4vw, 1.15rem);
	font-weight: 500;
	color: var(--wehfigo-cal-muted);
}

.wehfigo-cal__yeartoolbar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	margin: 1.35rem 0 0;
}

.wehfigo-cal__yeartitle {
	margin: 0;
	min-width: 5rem;
	text-align: center;
	font-family: var(--font-family-brand, 'Space Grotesk', sans-serif);
	font-size: clamp(1.65rem, 2.8vw, 2.1rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--wehfigo-cal-ink);
}

/* =========================================================
   Browse by Month — month cards (desktop 4x3 grid)
   ========================================================= */

.wehfigo-cal-months {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(1rem, 1.8vw, 1.5rem);
	margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

.wehfigo-cal-months__card {
	appearance: none;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.9rem;
	margin: 0;
	padding: clamp(1.25rem, 2vw, 1.65rem);
	border: 1.5px solid var(--wehfigo-cal-line);
	border-radius: var(--radius-lg, 14px);
	background: var(--color-page-bg, #fff);
	color: inherit;
	text-align: left;
	cursor: pointer;
	min-height: clamp(11rem, 16vw, 13.5rem);
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.wehfigo-cal-months__card:hover {
	border-color: rgba(214, 0, 28, 0.45);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.wehfigo-cal-months__card:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px var(--wehfigo-cal-focus);
}

.wehfigo-cal-months__card.is-current {
	border-color: var(--wehfigo-cal-accent);
	border-width: 2px;
	box-shadow: 0 0 0 2px rgba(214, 0, 28, 0.14);
	background: linear-gradient(180deg, var(--color-page-bg, #fff) 0%, rgba(214, 0, 28, 0.045) 100%);
}

.wehfigo-cal-months__row {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.wehfigo-cal-months__head {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex: 1 1 auto;
	min-width: 0;
}

.wehfigo-cal-months__name {
	font-family: var(--font-family-brand, 'Space Grotesk', sans-serif);
	font-size: clamp(1.1rem, 1.6vw, 1.35rem);
	font-weight: 700;
	letter-spacing: 0.01em;
	color: var(--wehfigo-cal-ink);
}

.wehfigo-cal-months__badge {
	flex-shrink: 0;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff;
	background: var(--wehfigo-cal-accent);
	border-radius: 999px;
	padding: 0.25rem 0.6rem;
}

.wehfigo-cal-months__count {
	flex-shrink: 0;
	font-size: clamp(0.88rem, 1.1vw, 1rem);
	font-weight: 600;
	color: var(--wehfigo-cal-muted);
}

.wehfigo-cal-months__chevron {
	display: none;
	flex-shrink: 0;
	color: var(--wehfigo-cal-muted);
}

.wehfigo-cal-months__teasers {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.wehfigo-cal-months__teaser {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	min-width: 0;
}

.wehfigo-cal-months__teaser-thumb {
	flex-shrink: 0;
	width: 2.1rem;
	height: 2.1rem;
	border-radius: 6px;
	background-color: var(--color-page-bg-alt, #f2f2f2);
	background-size: cover;
	background-position: center;
}

.wehfigo-cal-months__teaser-thumb--empty {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--wehfigo-cal-muted);
}

.wehfigo-cal-months__teaser-title {
	min-width: 0;
	font-size: clamp(0.88rem, 1.1vw, 0.98rem);
	font-weight: 500;
	color: var(--color-page-text, #555);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wehfigo-cal-months__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: auto;
	padding: 0.75rem 1.35rem;
	border: 1.5px solid var(--wehfigo-cal-accent);
	border-radius: 999px;
	font-family: var(--font-family-brand, 'Space Grotesk', sans-serif);
	font-size: clamp(0.9375rem, 1vw, 1rem);
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--wehfigo-cal-accent);
	background: transparent;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.wehfigo-cal-months__card:hover .wehfigo-cal-months__btn {
	background: rgba(214, 0, 28, 0.06);
}

.wehfigo-cal-months__btn--solid {
	color: #fff;
	background: var(--wehfigo-cal-accent);
}

.wehfigo-cal-months__card:hover .wehfigo-cal-months__btn--solid {
	background: var(--color-brand-red-hover, #b00018);
}

.wehfigo-cal-months__card.is-empty .wehfigo-cal-months__teasers {
	display: none;
}

.wehfigo-cal-months__viewall {
	display: none;
}

/* =========================================================
   Year-view promo (replaces category legend)
   ========================================================= */

.wehfigo-cal-year-promo-wrap {
	margin-top: clamp(2rem, 4vw, 3rem);
	padding-top: clamp(1.5rem, 3vw, 2rem);
	border-top: 1px solid var(--wehfigo-cal-line);
}

.wehfigo-cal-year-promo {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.85rem 1.25rem;
	padding: clamp(1.15rem, 2vw, 1.5rem) clamp(1.25rem, 2.2vw, 1.65rem);
	border-radius: var(--radius-lg, 12px);
	border: 1px solid var(--wehfigo-cal-line);
	background: var(--color-page-bg-alt, #f7f7f7);
}

.wehfigo-cal-year-promo__text {
	margin: 0;
	flex: 1 1 16rem;
	font-family: var(--font-family-brand, 'Space Grotesk', sans-serif);
	font-size: clamp(1rem, 0.55vw + 0.92rem, 1.15rem);
	font-weight: 500;
	line-height: 1.45;
	color: var(--wehfigo-cal-ink);
}

.wehfigo-cal-year-promo__brand {
	font-weight: 800;
	color: var(--wehfigo-cal-accent);
}

.wehfigo-cal-year-promo__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	padding: 0.8rem 1.5rem;
	border-radius: 999px;
	background: var(--wehfigo-cal-accent);
	color: #fff;
	font-family: var(--font-family-brand, 'Space Grotesk', sans-serif);
	font-size: clamp(1rem, 0.45vw + 0.92rem, 1.08rem);
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.15s ease;
	flex-shrink: 0;
}

.wehfigo-cal-year-promo__btn .wehfigo-icon {
	width: 1em;
	height: 1em;
	color: inherit;
}

.wehfigo-cal-year-promo__btn:hover {
	background: var(--color-brand-red-hover, #b00018);
	color: #fff;
}

.wehfigo-cal-year-promo__btn:focus-visible {
	outline: 2px solid var(--wehfigo-cal-accent);
	outline-offset: 3px;
}

@media (min-width: 900px) {
	.wehfigo-cal-year-promo-wrap {
		display: block;
	}
}

.wehfigo-cal__back {
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin: 0 0.35rem 0 0;
	padding: 0 1rem;
	min-height: 40px;
	border: 1.5px solid var(--wehfigo-cal-line);
	border-radius: 4px;
	background: #fff;
	color: var(--wehfigo-cal-ink);
	font-family: var(--font-family-brand, 'Space Grotesk', sans-serif);
	font-size: var(--wehfigo-cal-text-ui);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.wehfigo-cal__back:hover {
	border-color: var(--wehfigo-cal-accent);
	color: var(--wehfigo-cal-accent);
}

.wehfigo-cal__back:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px var(--wehfigo-cal-focus);
}

.wehfigo-cal.is-loading .wehfigo-cal__year,
.wehfigo-cal.is-loading .wehfigo-cal__body {
	opacity: 0.45;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

@media (max-width: 900px) {
	.wehfigo-cal-months {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Mobile: single-column month cards with event teasers on every row.
   Months 7+ collapse behind "View All Months"; expanding keeps previews. */
@media (max-width: 767px) {
	.wehfigo-cal-months {
		grid-template-columns: 1fr;
		gap: 0;
		margin-top: 1.25rem;
		border-top: 1px solid var(--wehfigo-cal-line);
	}

	.wehfigo-cal-months__card {
		gap: 0.65rem;
		padding: 1rem 0.15rem 1.1rem;
		border: 0;
		border-bottom: 1px solid var(--wehfigo-cal-line);
		border-radius: 0;
		background: transparent;
		text-align: left;
	}

	.wehfigo-cal-months__card:hover {
		transform: none;
		box-shadow: none;
	}

	.wehfigo-cal-months__card.is-current {
		margin: 0.35rem 0;
		padding: 1.1rem 0.9rem;
		border: 2px solid var(--wehfigo-cal-accent);
		border-radius: var(--radius-lg, 12px);
		background: linear-gradient(180deg, var(--color-page-bg, #fff) 0%, rgba(214, 0, 28, 0.045) 100%);
	}

	.wehfigo-cal-months__chevron {
		display: none;
	}

	.wehfigo-cal-months__teasers {
		display: flex;
		flex-direction: column;
		gap: 0.55rem;
	}

	.wehfigo-cal-months__btn {
		display: inline-flex;
		align-self: flex-start;
		margin-top: 0.15rem;
	}

	/* Collapsed by default past the 6th row; the current month always
	   stays visible even if it sits further down the year. */
	.wehfigo-cal-months:not(.is-expanded) .wehfigo-cal-months__card:nth-child(n + 7):not(.is-current) {
		display: none;
	}

	.wehfigo-cal-months__card.is-filtered-out {
		display: none !important;
	}

	.wehfigo-cal-months__viewall {
		display: block;
		width: 100%;
		margin-top: 1rem;
		padding: 0.85rem 1rem;
		border: 1.5px solid var(--wehfigo-cal-line);
		border-radius: 999px;
		background: transparent;
		font-family: var(--font-family-brand, 'Space Grotesk', sans-serif);
		font-size: 0.875rem;
		font-weight: 700;
		letter-spacing: 0.02em;
		color: var(--wehfigo-cal-ink);
		cursor: pointer;
	}

	.wehfigo-cal-months.is-expanded + .wehfigo-cal-months__viewall {
		display: none;
	}

	.wehfigo-cal-year-promo-wrap {
		display: none;
	}
}

.wehfigo-calendar > .container {
	padding-top: clamp(1rem, 2vw, 1.5rem) !important;
	margin-top: 0 !important;
	background: var(--color-page-bg, #fff);
	scroll-margin-top: 5.5rem;
}

.wehfigo-cal__toolbar {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 1rem;
	margin: 0 0 1.5rem;
}

.wehfigo-cal__nav {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	justify-self: start;
	min-width: 0;
}

.wehfigo-cal__navbtn,
.wehfigo-cal__today {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 37px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--wehfigo-cal-accent);
	color: var(--wehfigo-cal-accent-ink);
	font-family: var(--font-family-brand, 'Space Grotesk', sans-serif);
	font-weight: 500;
	font-size: 0.8rem;
	cursor: pointer;
	transition: filter 0.15s ease, background-color 0.15s ease;
}

.wehfigo-cal__viewbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 1.25rem;
	border: 1.5px solid var(--wehfigo-cal-line);
	border-radius: 999px;
	background: #fff;
	color: var(--wehfigo-cal-ink);
	font-family: var(--font-family-brand, 'Space Grotesk', sans-serif);
	font-weight: 600;
	font-size: var(--wehfigo-cal-text-ui);
	letter-spacing: 0.02em;
	text-transform: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.wehfigo-cal__navbtn {
	width: 37px;
}

.wehfigo-cal__navbtn svg,
.wehfigo-cal__navbtn .wehfigo-icon {
	width: 16px;
	height: 16px;
	fill: currentColor;
	color: inherit;
}

.wehfigo-cal__navbtn:hover,
.wehfigo-cal__today:hover {
	filter: brightness(0.96);
}

.wehfigo-cal__viewbtn:hover {
	border-color: rgba(214, 0, 28, 0.45);
	color: var(--wehfigo-cal-accent);
}

.wehfigo-cal__viewbtn[aria-pressed="true"],
.wehfigo-cal__viewbtn.is-active {
	background: var(--wehfigo-cal-accent);
	border-color: var(--wehfigo-cal-accent);
	color: #fff;
	opacity: 1;
}

.wehfigo-cal__viewbtn[aria-pressed="false"] {
	opacity: 1;
}

.wehfigo-cal__navbtn:focus-visible,
.wehfigo-cal__today:focus-visible,
.wehfigo-cal__viewbtn:focus-visible,
.wehfigo-cal__more:focus-visible,
.wehfigo-cal__span:focus-visible,
.wehfigo-cal__chip:focus-visible,
.wehfigo-cal-list__row:focus-visible,
.wehfigo-cal__daypanel-close:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px var(--wehfigo-cal-focus);
}

.wehfigo-cal__titleblock {
	justify-self: center;
	text-align: center;
	min-width: 0;
	position: relative;
}

.wehfigo-cal__title {
	margin: 0;
	font-family: var(--font-family-brand, 'Space Grotesk', sans-serif);
	font-size: clamp(1.35rem, 3vw, 1.75rem);
	font-weight: 700;
	letter-spacing: -0.01em;
	text-transform: none;
	color: var(--wehfigo-cal-ink);
	line-height: 1.1;
}

.wehfigo-cal.is-level-month .wehfigo-cal__jump {
	display: inline-flex;
}

.wehfigo-cal.is-level-month .wehfigo-cal__title {
	display: none;
}

.wehfigo-cal__titleblock:hover .wehfigo-cal__jump,
.wehfigo-cal__titleblock:focus-within .wehfigo-cal__jump {
	display: inline-flex;
}

.wehfigo-cal__titleblock:hover .wehfigo-cal__title,
.wehfigo-cal__titleblock:focus-within .wehfigo-cal__title {
	display: none;
}

.wehfigo-cal__mobtitle {
	display: none;
	margin: 0;
	font-family: var(--font-family-brand, 'Space Grotesk', sans-serif);
	font-size: 1.05rem;
	font-weight: 700;
	text-align: center;
	color: var(--wehfigo-cal-ink);
	line-height: 1.2;
}

.wehfigo-cal__jump {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-width: 0;
	margin: 0.35rem 0 0;
	cursor: pointer;
}

.wehfigo-cal__titleblock:hover .wehfigo-cal__jump,
.wehfigo-cal__titleblock:focus-within .wehfigo-cal__jump {
	display: inline-flex;
}

.wehfigo-cal__titleblock:hover .wehfigo-cal__title,
.wehfigo-cal__titleblock:focus-within .wehfigo-cal__title {
	display: none;
}

.wehfigo-cal__jump-field {
	display: inline-flex;
	margin: 0;
	min-width: 0;
	cursor: pointer;
}

.wehfigo-cal__jump--split .wehfigo-cal__jump-field:first-child {
	min-width: 8.5rem;
}

.wehfigo-cal__year-select {
	min-width: 5.5rem;
}

.wehfigo-cal__month-select {
	font-family: var(--font-family-brand, 'Space Grotesk', sans-serif);
	font-size: clamp(1.05rem, 2.5vw, 1.35rem);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 6px 28px 6px 8px;
	border: 1px solid var(--wehfigo-cal-line);
	border-radius: 4px;
	background-color: #fff !important;
	color: #222 !important;
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3' fill='none' stroke='%23222' stroke-width='1.75' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 8px center;
	max-width: 100%;
}

.wehfigo-cal__month-select:focus-visible {
	outline: none;
	border-color: var(--wehfigo-cal-accent);
	box-shadow: 0 0 0 3px var(--wehfigo-cal-focus);
}

.wehfigo-cal__views {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	justify-self: end;
	padding: 0.2rem;
	border-radius: 999px;
	background: var(--color-page-bg-alt, #f5f5f5);
}

.wehfigo-cal__viewbtn[aria-pressed="false"] {
	background: transparent;
	border-color: transparent;
}

.wehfigo-cal__grid-hint {
	margin: 0 0 1rem;
	padding: 0.85rem 1rem;
	border: 1px solid var(--wehfigo-cal-line);
	border-radius: 8px;
	background: rgba(214, 0, 28, 0.05);
	color: var(--wehfigo-cal-ink);
	font-family: var(--font-family-brand, 'Space Grotesk', sans-serif);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.45;
	text-align: center;
}

.wehfigo-cal__grid-hint[hidden] {
	display: none !important;
}

.wehfigo-cal.is-view-list .wehfigo-cal__grid-hint {
	display: none !important;
}

.wehfigo-cal__empty,
.wehfigo-cal__error,
.wehfigo-cal__filter-empty {
	margin: 0 0 1.25rem;
	padding: 1.25rem;
	border: 1px dashed var(--wehfigo-cal-line);
	border-radius: 4px;
	background: #fafafa;
	color: #444;
	font-size: 0.9375rem;
	line-height: 1.45;
	text-align: center;
}

.wehfigo-cal__filter-empty {
	margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
}

.wehfigo-cal__error {
	border-color: var(--color-primary, #d6001c);
	color: var(--color-primary, #d6001c);
}

.wehfigo-cal__listwrap { display: none; }
.wehfigo-cal.is-view-list .wehfigo-cal__listwrap { display: block; }
.wehfigo-cal.is-view-list .wehfigo-cal__month { display: none; }

.wehfigo-cal.is-view-auto .wehfigo-cal__month { display: none; }
.wehfigo-cal.is-view-auto .wehfigo-cal__listwrap { display: block; }

@media (min-width: 768px) {
	.wehfigo-cal.is-view-auto .wehfigo-cal__month { display: block; }
	.wehfigo-cal.is-view-auto .wehfigo-cal__listwrap { display: none; }
}

@media (max-width: 767px) {
	.wehfigo-cal {
		padding: 1rem 0 1.5rem;
		margin-left: 0;
		margin-right: 0;
	}

	.wehfigo-cal__toolbar {
		grid-template-columns: 1fr;
		justify-items: stretch;
		gap: 0.75rem;
	}

	/* Prev / Next at opposite corners; Today centered between them. */
	.wehfigo-cal__nav {
		display: grid;
		grid-template-columns: auto 1fr auto;
		align-items: center;
		justify-self: stretch;
		width: 100%;
		gap: 0.5rem;
	}

	.wehfigo-cal__navbtn[data-wehfigo-cal-prev] {
		grid-column: 1;
		grid-row: 1;
		justify-self: start;
	}

	.wehfigo-cal__navbtn[data-wehfigo-cal-next] {
		grid-column: 3;
		grid-row: 1;
		justify-self: end;
	}

	.wehfigo-cal__today {
		grid-column: 2;
		grid-row: 1;
		justify-self: center;
	}

	.wehfigo-cal__views {
		justify-self: stretch;
		justify-content: stretch;
		width: 100%;
	}

	/* Month is the default grid — hide the inert pressed Month control.
	   In list view, only show Month so users can switch back. */
	.wehfigo-cal.is-view-month .wehfigo-cal__viewbtn[data-wehfigo-cal-view="month"],
	.wehfigo-cal.is-view-auto .wehfigo-cal__viewbtn[data-wehfigo-cal-view="month"],
	.wehfigo-cal.is-view-list .wehfigo-cal__viewbtn[data-wehfigo-cal-view="list"] {
		display: none;
	}

	.wehfigo-cal__views .wehfigo-cal__viewbtn {
		flex: 1 1 auto;
		width: 100%;
	}

	.wehfigo-cal__jump {
		display: inline-flex;
		width: 100%;
		flex-wrap: nowrap;
		justify-content: center;
		gap: 0.5rem;
	}

	.wehfigo-cal__jump--split .wehfigo-cal__jump-field:first-child {
		min-width: 0;
		flex: 1 1 auto;
		max-width: 10rem;
	}

	.wehfigo-cal__year-select,
	.wehfigo-cal__jump-field:last-child {
		min-width: 6.25rem;
		width: 6.25rem;
		flex: 0 0 6.25rem;
	}

	.wehfigo-cal__month-select {
		width: 100%;
		font-size: 1rem;
		padding-right: 1.75rem;
		background-color: #fff !important;
		color: #222 !important;
	}

	.wehfigo-cal__year-select {
		font-size: 1rem;
	}

	.wehfigo-cal__title {
		display: none;
	}
}

/* =========================================================
   Month grid — Eventchamp calendar-v2 week lanes
   Year browse stays full width; month drill-in is a
   centered dashboard card with fixed cell sizing.
   ========================================================= */

.wehfigo-cal.is-level-month .wehfigo-cal__month {
	width: 100%;
	max-width: min(1080px, calc(100% - clamp(1.5rem, 4vw, 3rem)));
	margin-inline: auto;
	border: 1px solid var(--wehfigo-cal-line);
	border-radius: var(--radius-xl, 16px);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.07);
	background: #fff;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.wehfigo-cal.is-level-month .wehfigo-cal__grid {
	width: 100%;
	min-width: 0;
	margin: 0;
}

.wehfigo-cal.is-level-month .wehfigo-cal__week,
.wehfigo-cal.is-level-month .wehfigo-cal__week-bg,
.wehfigo-cal.is-level-month .wehfigo-cal__day {
	min-height: 132px;
}

@media (min-width: 900px) {
	.wehfigo-cal.is-level-month .wehfigo-cal__week,
	.wehfigo-cal.is-level-month .wehfigo-cal__week-bg,
	.wehfigo-cal.is-level-month .wehfigo-cal__day {
		min-height: 148px;
	}
}

.wehfigo-cal__month {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 0;
	background: #fff;
}

.wehfigo-cal__grid {
	width: 100%;
	min-width: 0;
	margin: 0;
}

.wehfigo-cal__dow {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	background: var(--wehfigo-cal-header);
}

.wehfigo-cal__dow-cell {
	font-family: var(--font-family-brand, 'Space Grotesk', sans-serif);
	font-weight: 600;
	font-size: clamp(0.72rem, 1vw, 0.85rem);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #fff;
	padding: clamp(0.85rem, 1.2vw, 1rem) 0.35rem;
	text-align: center;
}

.wehfigo-cal__week {
	position: relative;
	min-height: clamp(148px, 12vw, 172px);
	border-bottom: 1px solid var(--wehfigo-cal-line);
}

.wehfigo-cal__week-bg {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	min-height: clamp(148px, 12vw, 172px);
	height: 100%;
}

.wehfigo-cal__day {
	position: relative;
	min-height: clamp(148px, 12vw, 172px);
	border-right: 1px solid var(--wehfigo-cal-line);
	background: #fff;
	padding: 0;
}

.wehfigo-cal__day:last-child {
	border-right: 0;
}

.wehfigo-cal__day.is-other {
	background: #fcfcfc;
}

.wehfigo-cal__daynum {
	display: block;
	font-family: var(--font-family-brand, 'Space Grotesk', sans-serif);
	font-weight: 500;
	font-size: 0.8rem;
	color: #555;
	line-height: 1;
	text-align: right;
	padding: 7px 12px 4px;
}

.wehfigo-cal__day.is-other .wehfigo-cal__daynum {
	color: #c5c5c5;
}

.wehfigo-cal__day.is-today .wehfigo-cal__daynum {
	display: inline-block;
	float: right;
	margin: 4px 6px 0;
	padding: 5px 7px;
	border-radius: 4px;
	background: var(--wehfigo-cal-accent);
	color: #111;
	font-weight: 700;
}

.wehfigo-cal__day.is-today-focus {
	outline: 2px solid var(--wehfigo-cal-accent);
	outline-offset: -2px;
	box-shadow: inset 0 0 0 2px rgba(214, 0, 28, 0.25);
	animation: wehfigo-cal-today-pulse 1.1s ease-in-out 2;
}

@keyframes wehfigo-cal-today-pulse {
	0%, 100% { background-color: transparent; }
	50% { background-color: rgba(214, 0, 28, 0.08); }
}

.wehfigo-cal__chips[hidden] {
	display: none !important;
}

.wehfigo-cal__more {
	position: absolute;
	left: 8px;
	bottom: 4px;
	z-index: 3;
	font-family: var(--font-family-brand, 'Space Grotesk', sans-serif);
	font-weight: 700;
	font-size: var(--wehfigo-cal-text-viewall);
	color: var(--wehfigo-cal-accent);
	background: transparent;
	border: 0;
	padding: 0.15rem 0;
	cursor: pointer;
}

.wehfigo-cal__more:hover {
	color: var(--color-brand-red-hover, #b00018);
	text-decoration: underline;
}

.wehfigo-cal__week-lanes {
	position: absolute;
	left: 0;
	right: 0;
	top: 28px;
	bottom: 20px;
	pointer-events: none;
	z-index: 2;
}

.wehfigo-cal__span {
	position: absolute;
	left: calc(var(--cs) * 100% / 7);
	width: calc(var(--cw) * 100% / 7 - 4px);
	top: calc(var(--lane) * var(--wehfigo-cal-lane-h));
	height: 16px;
	margin-left: 2px;
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 0 8px;
	border-radius: 4px;
	background: rgba(214, 0, 28, 0.1);
	color: var(--wehfigo-cal-accent);
	text-decoration: none;
	overflow: hidden;
	pointer-events: auto;
	box-sizing: border-box;
}

.wehfigo-cal__span:hover {
	background: rgba(214, 0, 28, 0.16);
}

.wehfigo-cal__span-time {
	flex-shrink: 0;
	font-size: var(--wehfigo-cal-text-chip-time);
	font-weight: 700;
	line-height: 1.15;
	white-space: nowrap;
	color: var(--wehfigo-cal-accent);
}

.wehfigo-cal__span-title {
	font-size: var(--wehfigo-cal-text-chip-title);
	font-weight: 600;
	line-height: 1.15;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: var(--wehfigo-cal-accent);
}

.wehfigo-cal__span.is-featured {
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

/* Day panel chips (cloned from hidden lists) */
.wehfigo-cal__daypanel-body .wehfigo-cal__chips {
	display: flex !important;
	flex-direction: column;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.wehfigo-cal__daypanel-body .wehfigo-cal__chips[hidden] {
	display: flex !important;
}

.wehfigo-cal__daypanel-body .wehfigo-cal__chip {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding: 10px 12px;
	border-radius: 5px;
	background: rgba(214, 0, 28, 0.1);
	text-decoration: none;
}

.wehfigo-cal__daypanel-body .wehfigo-cal__chip-time {
	display: inline;
	font-weight: 700;
	font-size: var(--wehfigo-cal-text-chip-time);
	color: var(--wehfigo-cal-accent);
	white-space: nowrap;
}

.wehfigo-cal__daypanel-body .wehfigo-cal__chip-title {
	font-size: var(--wehfigo-cal-text-ui);
	font-weight: 600;
	color: var(--wehfigo-cal-accent);
	white-space: normal;
}

/* Dark mode calendar surface (year grid + month chrome). */
html[data-theme="dark"] .wehfigo-calendar > .container,
body#dark-mode .wehfigo-calendar > .container {
	background: #121212;
}

html[data-theme="dark"] .wehfigo-cal,
body#dark-mode .wehfigo-cal {
	--wehfigo-cal-ink: #f2f2f2;
	--wehfigo-cal-muted: #a8a8a8;
	--wehfigo-cal-line: rgba(255, 255, 255, 0.12);
	--wehfigo-cal-header: #2e2e32;
	--wehfigo-cal-focus: rgba(214, 0, 28, 0.45);
	--wehfigo-cal-accent: #ff2a3d;
	--wehfigo-cal-month-surface: #232326;
	--wehfigo-cal-month-cell: #2a2a2e;
	--wehfigo-cal-month-cell-other: #1e1e21;
	--wehfigo-cal-month-chip-bg: rgba(214, 0, 28, 0.14);
	--wehfigo-cal-month-chip-ink: #f0d0d4;
	--wehfigo-cal-month-chip-time: #ff8a96;
	background: transparent;
	color: #f2f2f2;
	box-shadow: none;
}

html[data-theme="dark"] .wehfigo-cal__title,
html[data-theme="dark"] .wehfigo-cal__month-select,
body#dark-mode .wehfigo-cal__title,
body#dark-mode .wehfigo-cal__month-select {
	color: #f2f2f2;
}

html[data-theme="dark"] .wehfigo-cal__grid-hint,
body#dark-mode .wehfigo-cal__grid-hint {
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.12);
	color: #f2f2f2;
}

html[data-theme="dark"] .wehfigo-cal__empty,
html[data-theme="dark"] .wehfigo-cal__filter-empty,
body#dark-mode .wehfigo-cal__empty,
body#dark-mode .wehfigo-cal__filter-empty {
	background: #222;
	color: #ccc;
}

/* Browse by Month cards + legend read their colors off --wehfigo-cal-ink /
   --wehfigo-cal-muted / --wehfigo-cal-accent / --color-page-* tokens, all
   of which already flip under html[data-theme="dark"] — no extra rules
   needed here beyond the current-month tint below. */
html[data-theme="dark"] .wehfigo-cal-months__card.is-current,
body#dark-mode .wehfigo-cal-months__card.is-current {
	background: linear-gradient(180deg, #221a1b 0%, #2a1518 100%);
}

html[data-theme="dark"] .wehfigo-cal-months__teaser-thumb,
body#dark-mode .wehfigo-cal-months__teaser-thumb {
	background-color: #2a2a2a;
}

html[data-theme="dark"] .wehfigo-cal.is-level-month .wehfigo-cal__month,
body#dark-mode .wehfigo-cal.is-level-month .wehfigo-cal__month {
	background: var(--wehfigo-cal-month-surface) !important;
	border-color: rgba(255, 255, 255, 0.1);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .wehfigo-cal__dow,
body#dark-mode .wehfigo-cal__dow {
	background: var(--wehfigo-cal-header);
}

html[data-theme="dark"] .wehfigo-cal__dow-cell,
body#dark-mode .wehfigo-cal__dow-cell {
	color: #f5f5f5;
}

html[data-theme="dark"] .wehfigo-cal__day,
body#dark-mode .wehfigo-cal__day {
	background: var(--wehfigo-cal-month-cell) !important;
	border-right-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .wehfigo-cal__week,
body#dark-mode .wehfigo-cal__week {
	border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .wehfigo-cal__day.is-other,
body#dark-mode .wehfigo-cal__day.is-other {
	background: var(--wehfigo-cal-month-cell-other) !important;
}

html[data-theme="dark"] .wehfigo-cal__daynum,
body#dark-mode .wehfigo-cal__daynum {
	color: #e0e0e0;
}

html[data-theme="dark"] .wehfigo-cal__day.is-other .wehfigo-cal__daynum,
body#dark-mode .wehfigo-cal__day.is-other .wehfigo-cal__daynum {
	color: #6a6a6e;
}

html[data-theme="dark"] .wehfigo-cal__day.is-today .wehfigo-cal__daynum,
body#dark-mode .wehfigo-cal__day.is-today .wehfigo-cal__daynum {
	background: var(--wehfigo-cal-accent);
	color: #fff;
}

html[data-theme="dark"] .wehfigo-cal__day.is-today-focus,
body#dark-mode .wehfigo-cal__day.is-today-focus {
	outline-color: var(--wehfigo-cal-accent);
	box-shadow: inset 0 0 0 2px rgba(255, 42, 61, 0.22);
}

html[data-theme="dark"] .wehfigo-cal__more,
body#dark-mode .wehfigo-cal__more {
	color: var(--wehfigo-cal-month-chip-time);
}

html[data-theme="dark"] .wehfigo-cal__more:hover,
body#dark-mode .wehfigo-cal__more:hover {
	color: #fff;
}

html[data-theme="dark"] .wehfigo-cal__yeartitle,
body#dark-mode .wehfigo-cal__yeartitle {
	color: #f2f2f2;
}

html[data-theme="dark"] .wehfigo-cal__year-select,
body#dark-mode .wehfigo-cal__year-select {
	background-color: #222 !important;
	color: #f2f2f2 !important;
	border-color: rgba(255, 255, 255, 0.16) !important;
}

/* Year back control: light mode uses white surface + ink token;
   dark ink token alone made white-on-white. Match year-select. */
html[data-theme="dark"] .wehfigo-cal__back,
body#dark-mode .wehfigo-cal__back {
	background-color: #222 !important;
	color: #f2f2f2 !important;
	border-color: rgba(255, 255, 255, 0.16) !important;
}

html[data-theme="dark"] .wehfigo-cal__back:hover,
body#dark-mode .wehfigo-cal__back:hover {
	border-color: var(--wehfigo-cal-accent) !important;
	color: #ff6b7a !important;
	background-color: #2a2a2a !important;
}

@media (max-width: 767px) {
	html[data-theme="dark"] .wehfigo-cal__year-select,
	body#dark-mode .wehfigo-cal__year-select,
	html[data-theme="dark"] .wehfigo-cal__back,
	body#dark-mode .wehfigo-cal__back {
		background-color: #222 !important;
		color: #f2f2f2 !important;
	}
}

/* =========================================================
   Day panel (View all dialog)
   ========================================================= */

.wehfigo-cal__overlay {
	position: fixed;
	inset: 0;
	z-index: var(--z-modal, 10000);
	background: var(--color-overlay, rgba(0, 0, 0, 0.55));
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

/* display:flex above would defeat the hidden attribute without this. */
.wehfigo-cal__overlay[hidden] {
	display: none;
}

/* =========================================================
   Desktop month modal (≥900px) — year browse stays behind
   ========================================================= */

.wehfigo-cal__detail-card {
	position: relative;
}

.wehfigo-cal__month-modal-close {
	display: none;
}

.wehfigo-cal__modal-stats {
	margin: 0 0 clamp(1rem, 2vw, 1.5rem);
}

.wehfigo-cal__modal-stats .wehfigo-cal-stats {
	margin: 0;
}

@media (min-width: 900px) {
	body.wehfigo-cal-month-modal-locked {
		overflow: hidden;
	}

	.wehfigo-cal {
		--wehfigo-cal-chrome-header: 5.5rem;
	}

	body.wehfigo-v2.admin-bar .wehfigo-cal {
		--wehfigo-cal-chrome-header: 7.25rem;
	}

	.wehfigo-cal.is-month-modal-open .wehfigo-cal__yearpane,
	.wehfigo-cal.is-month-modal-open .wehfigo-cal__yearpane[hidden] {
		display: block !important;
	}

	.wehfigo-cal.is-month-modal-open .wehfigo-cal__detail {
		--wehfigo-cal-modal-inset-top: max(
			calc(var(--wehfigo-cal-chrome-header, 5.5rem) + 1rem),
			calc(env(safe-area-inset-top, 0px) + 5rem)
		);
		position: fixed;
		inset: 0;
		z-index: 1200;
		display: flex !important;
		align-items: flex-start;
		justify-content: center;
		padding:
			var(--wehfigo-cal-modal-inset-top)
			clamp(0.75rem, 2vw, 1.5rem)
			max(1rem, env(safe-area-inset-bottom, 0px));
		background: var(--color-overlay, rgba(0, 0, 0, 0.55));
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		border: 0;
		margin: 0;
		max-width: none;
		box-sizing: border-box;
	}

	.wehfigo-cal.is-month-modal-open .wehfigo-cal__detail[hidden] {
		display: flex !important;
	}

	.wehfigo-cal.is-month-modal-open .wehfigo-cal__detail-card {
		position: relative;
		width: min(1100px, 94vw);
		margin: auto;
		padding: clamp(1.25rem, 2.5vw, 2rem);
		padding-top: clamp(3.25rem, 4.5vw, 3.75rem);
		max-height: calc(
			100dvh
			- var(--wehfigo-cal-modal-inset-top, 6.5rem)
			- max(1rem, env(safe-area-inset-bottom, 0px))
			- 1rem
		);
		overflow-x: hidden;
		overflow-y: auto;
		overscroll-behavior: contain;
		background: var(--color-page-bg, #fff);
		border: 1px solid var(--wehfigo-cal-line);
		border-radius: var(--radius-xl, 16px);
		box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
	}

	.wehfigo-cal.is-month-modal-open .wehfigo-cal__day[data-wehfigo-cal-day] {
		cursor: pointer;
	}

	.wehfigo-cal.is-month-modal-open .wehfigo-cal__day.is-selected {
		outline: 2px solid var(--wehfigo-cal-accent);
		outline-offset: -2px;
		box-shadow: inset 0 0 0 2px rgba(214, 0, 28, 0.12);
	}

	.wehfigo-cal.is-month-modal-open .wehfigo-cal__mobile-day {
		display: block;
		margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
		padding-top: clamp(1rem, 2vw, 1.35rem);
		border-top: 1px solid var(--wehfigo-cal-line);
	}

	.wehfigo-cal.is-month-modal-open .wehfigo-cal__mobile-day-list {
		max-height: min(38vh, 340px);
		overflow-y: auto;
		overscroll-behavior: contain;
		padding-right: 0.15rem;
		-webkit-overflow-scrolling: touch;
	}

	.wehfigo-cal.is-month-modal-open .wehfigo-cal__month-modal-close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		position: absolute;
		top: clamp(0.85rem, 1.5vw, 1.15rem);
		right: clamp(0.85rem, 1.5vw, 1.15rem);
		width: 40px;
		height: 40px;
		padding: 0;
		border: 1px solid var(--wehfigo-cal-line);
		border-radius: var(--radius-pill, 999px);
		background: var(--color-page-bg, #fff);
		color: var(--wehfigo-cal-ink);
		cursor: pointer;
		z-index: 2;
		transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
	}

	.wehfigo-cal.is-month-modal-open .wehfigo-cal__month-modal-close:hover {
		border-color: var(--wehfigo-cal-accent);
		color: var(--wehfigo-cal-accent);
	}

	.wehfigo-cal.is-month-modal-open .wehfigo-cal__month-modal-close:focus-visible {
		outline: none;
		box-shadow: 0 0 0 3px var(--wehfigo-cal-focus);
	}

	.wehfigo-cal.is-month-modal-open .wehfigo-cal__month {
		max-width: none;
		margin-inline: 0;
	}

	html[data-theme="dark"] .wehfigo-cal.is-month-modal-open .wehfigo-cal__detail-card,
	body#dark-mode .wehfigo-cal.is-month-modal-open .wehfigo-cal__detail-card {
		background: var(--wehfigo-cal-month-surface, #232326);
		border-color: rgba(255, 255, 255, 0.12);
	}

	html[data-theme="dark"] .wehfigo-cal.is-month-modal-open .wehfigo-cal__month-modal-close,
	body#dark-mode .wehfigo-cal.is-month-modal-open .wehfigo-cal__month-modal-close {
		background: #222;
		color: #f2f2f2;
		border-color: rgba(255, 255, 255, 0.16);
	}

	.wehfigo-cal.is-month-modal-open .wehfigo-cal__overlay {
		z-index: 1201;
	}
}

.wehfigo-cal__daypanel {
	width: min(440px, 100%);
	max-height: min(70vh, 560px);
	display: flex;
	flex-direction: column;
	background: var(--color-page-bg);
	border: 1px solid var(--color-page-border);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
}

.wehfigo-cal__daypanel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	padding: var(--space-4) var(--space-5);
	border-bottom: 1px solid var(--color-page-border);
}

.wehfigo-cal__daypanel-head h3 {
	font-family: var(--font-family-brand);
	font-weight: 700;
	font-size: var(--text-card-title);
	color: var(--color-page-heading);
	margin: 0;
}

.wehfigo-cal__daypanel-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border-radius: var(--radius-pill);
	border: 1px solid var(--color-page-border);
	background: var(--color-page-bg);
	color: var(--color-page-heading);
	cursor: pointer;
}

.wehfigo-cal__daypanel-close:hover {
	border-color: var(--color-primary);
	color: var(--color-primary);
}

.wehfigo-cal__daypanel-body {
	padding: var(--space-4) var(--space-5) var(--space-5);
	overflow-y: auto;
}

/* Inside the panel every chip shows (no truncation) and grows tap-size */
.wehfigo-cal__daypanel-body .wehfigo-cal__chips li:nth-child(n + 4) {
	display: block;
}

.wehfigo-cal__daypanel-body .wehfigo-cal__chip {
	padding: 10px 12px;
	border-radius: 6px;
	display: flex;
	align-items: baseline;
	gap: 8px;
	background: rgba(214, 0, 28, 0.1);
}

.wehfigo-cal__daypanel-body .wehfigo-cal__chip-time {
	display: inline;
	font-weight: 700;
	font-size: var(--wehfigo-cal-text-chip-time);
	color: var(--wehfigo-cal-accent);
	white-space: nowrap;
}

.wehfigo-cal__daypanel-body .wehfigo-cal__chip-title {
	font-size: var(--wehfigo-cal-text-ui);
	white-space: normal;
	color: var(--wehfigo-cal-accent);
}

/* =========================================================
   Event preview popup (Month + List)
   ========================================================= */

.wehfigo-cal__preview {
	width: min(440px, 100%);
	max-height: min(85vh, 640px);
	display: flex;
	flex-direction: column;
	background: var(--color-page-bg);
	border: 1px solid var(--color-page-border);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
}

.wehfigo-cal__preview[hidden] {
	display: none !important;
}

.wehfigo-cal__daypanel[hidden] {
	display: none !important;
}

.wehfigo-cal__preview-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--space-3);
	padding: var(--space-4) var(--space-5);
	border-bottom: 1px solid var(--color-page-border);
}

.wehfigo-cal__preview-head h3 {
	font-family: var(--font-family-brand);
	font-weight: 700;
	font-size: var(--text-card-title);
	color: var(--color-page-heading);
	margin: 0;
	line-height: 1.25;
}

.wehfigo-cal__preview-media {
	aspect-ratio: 16 / 10;
	background: var(--color-page-bg-alt);
	overflow: hidden;
}

.wehfigo-cal__preview-media[hidden] {
	display: none !important;
}

.wehfigo-cal__preview-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wehfigo-cal__preview-body {
	padding: 1rem 1.25rem 0.5rem;
	overflow-y: auto;
}

.wehfigo-cal__preview-when {
	margin: 0 0 0.75rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--wehfigo-cal-accent, var(--color-brand-red, #d6001c));
}

.wehfigo-cal__preview-when[hidden] {
	display: none !important;
}

.wehfigo-cal__preview-meta {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	border-top: 1px solid var(--wehfigo-cal-line, #e6e6e6);
}

.wehfigo-cal__preview-meta li {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.2rem;
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--wehfigo-cal-line, #e6e6e6);
	font-size: 0.95rem;
	color: var(--color-page-muted, #666);
}

.wehfigo-cal__preview-k {
	flex: none;
	font-weight: 700;
	font-size: 0.7rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #888;
}

.wehfigo-cal__preview-v {
	text-align: left;
	min-width: 0;
	font-weight: 600;
	color: var(--color-page-heading, #1a1a1a);
}

.wehfigo-cal__preview-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 1rem 1.25rem 1.25rem;
	border-top: 1px solid var(--wehfigo-cal-line, #e6e6e6);
}

.wehfigo-cal__preview-btn {
	flex: 1 1 140px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 16px;
	border-radius: 6px;
	font-family: var(--font-family-brand, 'Space Grotesk', sans-serif);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	border: 1px solid transparent;
	transition: filter 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.wehfigo-cal__preview-btn--ghost {
	background: var(--color-page-bg);
	border-color: var(--color-page-border);
	color: var(--color-page-heading);
}

.wehfigo-cal__preview-btn--ghost:hover {
	border-color: var(--color-primary);
	color: var(--color-primary);
}

.wehfigo-cal__preview-btn--primary {
	background: var(--wehfigo-cal-accent, var(--color-brand-red, #d6001c));
	border-color: var(--wehfigo-cal-accent, var(--color-brand-red, #d6001c));
	color: #fff;
}

.wehfigo-cal__preview-btn--primary:hover {
	filter: brightness(0.92);
	color: #fff;
}

/* =========================================================
   List view (accessible default on mobile)
   ========================================================= */

.wehfigo-cal-list {
	display: flex;
	flex-direction: column;
	gap: var(--space-5);
}

.wehfigo-cal-list__day {
	border: 1px solid var(--color-page-border);
	border-radius: var(--radius-lg);
	background: var(--color-page-bg);
	overflow: hidden;
}

.wehfigo-cal-list__day.is-today {
	border-color: var(--color-primary);
}

.wehfigo-cal-list__date {
	font-family: var(--font-family-brand);
	font-weight: 700;
	font-size: var(--text-card-title);
	color: var(--color-page-heading);
	margin: 0;
	padding: var(--space-4) var(--space-5);
	background: var(--color-page-bg-alt);
	border-bottom: 1px solid var(--color-page-border);
	display: flex;
	align-items: center;
	gap: var(--space-3);
}

.wehfigo-cal-list__today-tag {
	font-size: var(--text-chip);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--color-brand-white);
	background: var(--color-primary);
	border-radius: var(--radius-pill);
	padding: 3px 10px;
}

.wehfigo-cal-list__day ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wehfigo-cal-list__day li + li {
	border-top: 1px solid var(--color-page-border);
}

.wehfigo-cal-list__row {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	padding: var(--space-4) var(--space-5);
	text-decoration: none;
	transition: background var(--duration-fast) var(--ease-standard);
}

.wehfigo-cal-list__row:hover {
	background: var(--color-page-bg-alt);
}

.wehfigo-cal-list__row.is-featured {
	box-shadow: inset 3px 0 0 var(--color-accent-gold);
}

.wehfigo-cal-list__title {
	font-family: var(--font-family-brand);
	font-weight: 600;
	font-size: var(--text-label);
	color: var(--color-page-heading);
}

.wehfigo-cal-list__row:hover .wehfigo-cal-list__title {
	color: var(--color-primary);
}

.wehfigo-cal-list__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2) var(--space-4);
	font-size: var(--text-meta);
	color: var(--color-page-muted);
}

.wehfigo-cal-list__time,
.wehfigo-cal-list__parish {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.wehfigo-cal-list__cat {
	font-size: var(--text-chip);
	font-weight: 600;
	color: var(--color-page-text);
	border: 1px solid var(--color-page-border);
	border-radius: var(--radius-pill);
	padding: 2px 10px;
}

/* =========================================================
   Small screens
   ========================================================= */

@media (max-width: 767px) {
	.wehfigo-calendar-banner {
		min-height: 16rem;
		padding: 2.25rem 0 7.25rem;
		background-image:
			linear-gradient(
				180deg,
				rgba(0, 0, 0, 0.62) 0%,
				rgba(0, 0, 0, 0.72) 38%,
				rgba(0, 0, 0, 0.86) 72%,
				rgba(0, 0, 0, 0.94) 100%
			),
			var(--wehfigo-cal-banner-bg, linear-gradient(145deg, #1a1a1a, #0a0a0a));
	}

	.wehfigo-calendar-banner::after {
		background:
			linear-gradient(
				180deg,
				rgba(0, 0, 0, 0.28) 0%,
				rgba(0, 0, 0, 0.52) 52%,
				rgba(0, 0, 0, 0.82) 100%
			);
	}

	.wehfigo-calendar-banner__cta--ghost {
		border-width: 2px;
		background: rgba(0, 0, 0, 0.55);
		text-shadow: 0 1px 8px rgba(0, 0, 0, 0.72);
	}

	.wehfigo-calendar-banner__inner {
		margin-left: auto;
		margin-right: auto;
		padding: 0 1rem 0.5rem;
		max-width: 100%;
		transform: none;
	}

	.wehfigo-calendar-banner__cta-row {
		width: 100%;
		margin-top: clamp(1.25rem, 2.5vh, 1.75rem);
		margin-bottom: 0.35rem;
	}

	.wehfigo-calendar-banner__pills {
		justify-content: flex-start;
		max-width: 100%;
	}

	.wehfigo-calendar-banner__dots {
		width: 3.5rem;
		height: 5.5rem;
		background-size: 1.1rem 1.1rem;
	}

	.wehfigo-calendar-banner__wave {
		width: min(72vw, 18rem);
		opacity: 0.75;
	}

	.wehfigo-calendar-banner__cta {
		flex: 1 1 auto;
		min-width: min(100%, 12.5rem);
		padding-left: clamp(1.5rem, 2.5vw, 2rem);
		padding-right: clamp(1.5rem, 2.5vw, 2rem);
	}

	.wehfigo-cal__toolbar {
		flex-direction: column;
		align-items: stretch;
		margin-top: var(--space-3, 0.75rem);
	}

	.wehfigo-cal__nav {
		display: grid;
		grid-template-columns: auto 1fr auto;
		align-items: center;
		width: 100%;
		gap: 0.5rem;
	}

	.wehfigo-cal__navbtn[data-wehfigo-cal-prev] {
		grid-column: 1;
		justify-self: start;
	}

	.wehfigo-cal__navbtn[data-wehfigo-cal-next] {
		grid-column: 3;
		justify-self: end;
	}

	.wehfigo-cal__today {
		grid-column: 2;
		justify-self: center;
	}

	.wehfigo-cal__navbtn {
		width: 36px;
		height: 36px;
		flex: 0 0 36px;
	}

	.wehfigo-cal__jump,
	.wehfigo-cal__jump--split {
		flex: 1 1 auto;
		justify-content: center;
		gap: 6px;
		flex-wrap: nowrap;
		min-width: 0;
	}

	/* Month needs room for "September"; year stays compact */
	.wehfigo-cal__jump-field:first-child {
		flex: 1.55 1 0;
		min-width: 7.75rem;
	}

	.wehfigo-cal__jump-field:last-child {
		flex: 0 0 auto;
		min-width: 4.85rem;
		max-width: 5.5rem;
	}

	.wehfigo-cal__month-select--title {
		width: 100%;
		text-align: left;
		padding: 8px 28px 8px 10px;
		font-size: 0.95rem;
		line-height: 1.2;
		white-space: nowrap;
	}

	.wehfigo-cal__year-select {
		min-width: 0;
		padding-left: 10px;
		padding-right: 26px;
		text-align: center;
	}

	.wehfigo-cal__views {
		align-self: stretch;
		justify-content: stretch;
		width: 100%;
	}

	.wehfigo-cal.is-view-month .wehfigo-cal__viewbtn[data-wehfigo-cal-view="month"],
	.wehfigo-cal.is-view-auto .wehfigo-cal__viewbtn[data-wehfigo-cal-view="month"],
	.wehfigo-cal.is-view-list .wehfigo-cal__viewbtn[data-wehfigo-cal-view="list"] {
		display: none;
	}

	.wehfigo-cal__views .wehfigo-cal__viewbtn {
		flex: 1 1 auto;
		width: 100%;
	}

	.wehfigo-cal-list__date,
	.wehfigo-cal-list__row {
		padding-left: var(--space-4);
		padding-right: var(--space-4);
	}

	.wehfigo-cal__preview-actions {
		flex-direction: column;
	}

	.wehfigo-cal__preview-btn {
		flex: 1 1 auto;
		width: 100%;
	}
}

/* =========================================================
   Inside month view — category filters + footer CTA
   ========================================================= */

.wehfigo-cal.is-level-year .wehfigo-cal__filters,
.wehfigo-cal.is-level-year .wehfigo-cal__footer-cta,
.wehfigo-cal.is-level-year .wehfigo-cal__mobile-day,
.wehfigo-cal.is-level-year .wehfigo-cal__browse-months {
	display: none !important;
}

.wehfigo-cal__filters {
	margin-top: clamp(1.5rem, 3vw, 2rem);
	padding-top: clamp(1.25rem, 2.5vw, 1.75rem);
	border-top: 1px solid var(--wehfigo-cal-line);
}

.wehfigo-cal__filters-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 0.75rem;
	margin-bottom: clamp(0.85rem, 1.5vw, 1.15rem);
}

.wehfigo-cal__all-events {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 44px;
	padding: 0.7rem 1.35rem;
	border: 1.5px solid var(--wehfigo-cal-accent);
	border-radius: 999px;
	background: var(--wehfigo-cal-accent);
	color: #fff;
	font-family: var(--font-family-brand, 'Space Grotesk', sans-serif);
	font-size: var(--wehfigo-cal-text-btn);
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.wehfigo-cal__all-events .wehfigo-icon {
	width: 1.1em;
	height: 1.1em;
	color: inherit;
}

.wehfigo-cal__all-events:hover {
	background: var(--color-brand-red-hover, #b00018);
	border-color: var(--color-brand-red-hover, #b00018);
}

.wehfigo-cal__all-events.is-active,
.wehfigo-cal__all-events[aria-pressed="true"] {
	box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.14);
}

.wehfigo-cal__all-events:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px var(--wehfigo-cal-focus);
}

.wehfigo-cal__filters-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 0.65rem;
}

.wehfigo-cal__filter {
	appearance: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 5.75rem;
	padding: 0.85rem 0.65rem;
	border: 1.5px solid var(--wehfigo-cal-line);
	border-radius: var(--radius-lg, 12px);
	background: var(--color-page-bg, #fff);
	color: var(--wehfigo-cal-ink);
	font-family: var(--font-family-brand, 'Space Grotesk', sans-serif);
	font-size: var(--wehfigo-cal-text-ui);
	font-weight: 600;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.wehfigo-cal__filter-icon {
	display: inline-flex;
	color: var(--wehfigo-cal-accent);
}

.wehfigo-cal__filter-icon .wehfigo-icon {
	width: clamp(1.35rem, 1.4vw + 0.9rem, 1.65rem);
	height: clamp(1.35rem, 1.4vw + 0.9rem, 1.65rem);
}

.wehfigo-cal__filter.is-active,
.wehfigo-cal__filter[aria-pressed="true"] {
	border-color: var(--wehfigo-cal-accent);
	background: rgba(214, 0, 28, 0.06);
	color: var(--wehfigo-cal-accent);
}

.wehfigo-cal__filter:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px var(--wehfigo-cal-focus);
}

.wehfigo-cal__footer-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.25rem;
	margin-top: clamp(1.75rem, 3vw, 2.5rem);
	padding: clamp(1rem, 2vw, 1.35rem) clamp(1.15rem, 2vw, 1.5rem);
	border-radius: var(--radius-lg, 12px);
	background: var(--color-page-bg-alt, #f7f7f7);
	border: 1px solid var(--wehfigo-cal-line);
}

.wehfigo-cal__footer-cta-text {
	margin: 0;
	flex: 1 1 auto;
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--wehfigo-cal-ink);
	line-height: 1.45;
}

.wehfigo-cal__footer-cta-brand {
	font-weight: 800;
	color: var(--wehfigo-cal-accent);
}

.wehfigo-cal__footer-cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	padding: 0.8rem 1.5rem;
	border-radius: 999px;
	background: var(--wehfigo-cal-accent);
	color: #fff;
	font-family: var(--font-family-brand, 'Space Grotesk', sans-serif);
	font-size: var(--wehfigo-cal-text-btn);
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.15s ease;
	flex-shrink: 0;
}

.wehfigo-cal__footer-cta-btn .wehfigo-icon {
	width: 1em;
	height: 1em;
	color: inherit;
}

.wehfigo-cal__footer-cta-btn:hover {
	background: var(--color-brand-red-hover, #b00018);
	color: #fff;
}

.wehfigo-cal__browse-months {
	display: none;
}

.wehfigo-cal__mobile-day {
	display: none;
	margin-top: 1.25rem;
}

/* Day panel: always show full event list (no "View all N events" footer). */
.wehfigo-cal.is-level-month .wehfigo-cal__mobile-day-all,
.wehfigo-cal__day-panel-more {
	display: none !important;
}

.wehfigo-cal__mobile-day[hidden] {
	display: none !important;
}

.wehfigo-cal__mobile-day-title {
	margin: 0 0 0.85rem;
	font-family: var(--font-family-brand, 'Space Grotesk', sans-serif);
	font-size: var(--wehfigo-cal-text-ui, 1rem);
	font-weight: 700;
	color: var(--wehfigo-cal-ink);
}

.wehfigo-cal__mobile-day-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.wehfigo-cal__mobile-day-card {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: start;
	gap: 0.65rem;
	padding: 0.85rem 1rem;
	border: 1px solid var(--wehfigo-cal-line);
	border-radius: var(--radius-lg, 12px);
	background: var(--color-page-bg, #fff);
	text-decoration: none;
	color: inherit;
}

.wehfigo-cal__mobile-day-card-main {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	min-width: 0;
}

.wehfigo-cal__mobile-day-time {
	display: inline-flex;
	align-self: flex-start;
	padding: 0.25rem 0.6rem;
	border-radius: 999px;
	background: rgba(214, 0, 28, 0.1);
	color: var(--wehfigo-cal-accent);
	font-size: var(--wehfigo-cal-text-chip-time);
	font-weight: 700;
}

.wehfigo-cal__mobile-day-name {
	font-family: var(--font-family-brand, 'Space Grotesk', sans-serif);
	font-size: var(--wehfigo-cal-text-ui);
	font-weight: 700;
	color: var(--wehfigo-cal-ink);
	line-height: 1.25;
}

.wehfigo-cal__mobile-day-parish {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-size: var(--wehfigo-cal-text-ui);
	font-weight: 500;
	color: var(--wehfigo-cal-muted);
}

.wehfigo-cal__mobile-day-card--rich {
	grid-template-columns: auto 1fr auto;
	align-items: center;
}

.wehfigo-cal__day-event-thumb {
	flex-shrink: 0;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 8px;
	overflow: hidden;
	background: var(--color-page-bg-alt, #f2f2f2);
}

.wehfigo-cal__day-event-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wehfigo-cal__day-event-thumb--empty {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(214, 0, 28, 0.08);
}

.wehfigo-cal__mobile-bookmark {
	appearance: none;
	border: 0;
	background: transparent;
	padding: 0.15rem;
	font-size: 1.1rem;
	line-height: 1;
	color: var(--wehfigo-cal-accent);
	cursor: pointer;
}

.wehfigo-cal__mobile-day-all {
	appearance: none;
	display: block;
	width: 100%;
	margin-top: 0.85rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--wehfigo-cal-accent);
	font-family: var(--font-family-brand, 'Space Grotesk', sans-serif);
	font-size: var(--wehfigo-cal-text-viewall);
	font-weight: 700;
	text-align: center;
	cursor: pointer;
}

.wehfigo-cal__mobile-day-all:hover {
	text-decoration: underline;
}

.wehfigo-cal__span.is-filtered-out,
.wehfigo-cal-list__row.is-filtered-out,
.wehfigo-cal-months__card.is-filtered-out,
.wehfigo-cal__day.is-filter-empty .wehfigo-cal__more {
	display: none !important;
}

@media (max-width: 1100px) {
	.wehfigo-cal__filters-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.wehfigo-cal.is-level-month .wehfigo-cal__jump {
		display: none !important;
	}

	.wehfigo-cal__mobtitle {
		display: block;
		grid-column: 2;
		grid-row: 1;
		justify-self: center;
	}

	.wehfigo-cal__back {
		display: none;
	}

	.wehfigo-cal__titleblock {
		display: none;
	}

	.wehfigo-cal__nav {
		grid-template-columns: auto 1fr auto;
	}

	.wehfigo-cal__filters {
		display: none;
	}

	.wehfigo-cal__grid {
		min-width: 0;
	}

	.wehfigo-cal__week {
		min-height: auto;
		border-bottom: 0;
	}

	.wehfigo-cal__week-bg {
		min-height: auto;
	}

	.wehfigo-cal__day {
		min-height: 3.25rem;
		border-right: 0;
		border-bottom: 0;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
		padding-top: 0.35rem;
		cursor: pointer;
	}

	.wehfigo-cal__daynum {
		float: none;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 2rem;
		height: 2rem;
		margin: 0;
		padding: 0;
		text-align: center;
		font-size: 0.85rem;
		border-radius: 50%;
	}

	.wehfigo-cal__day.is-today .wehfigo-cal__daynum {
		float: none;
		margin: 0;
		padding: 0;
		background: transparent;
		color: var(--wehfigo-cal-accent);
		font-weight: 800;
	}

	.wehfigo-cal__day.is-selected .wehfigo-cal__daynum {
		background: rgba(214, 0, 28, 0.14);
		color: var(--wehfigo-cal-accent);
		font-weight: 700;
	}

	.wehfigo-cal__day.has-events::after {
		content: '';
		width: 5px;
		height: 5px;
		margin-top: 0.2rem;
		border-radius: 50%;
		background: var(--wehfigo-cal-accent);
	}

	.wehfigo-cal__week-lanes,
	.wehfigo-cal__more {
		display: none !important;
	}

	.wehfigo-cal__mobile-day {
		display: block;
	}

	.wehfigo-cal__footer-cta {
		display: none !important;
	}

	.wehfigo-cal__browse-months {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 0.5rem;
		position: sticky;
		bottom: 0.75rem;
		z-index: 5;
		width: 100%;
		min-width: min(100%, 14rem);
		margin-top: 1.25rem;
		padding: 0.95rem 1.75rem;
		border: 0;
		border-radius: 999px;
		background: var(--wehfigo-cal-accent);
		color: #fff;
		font-family: var(--font-family-brand, 'Space Grotesk', sans-serif);
		font-size: var(--wehfigo-cal-text-btn);
		font-weight: 700;
		cursor: pointer;
		box-shadow: 0 10px 24px rgba(214, 0, 28, 0.28);
	}

	.wehfigo-cal__browse-months .wehfigo-icon {
		width: 1.05em;
		height: 1.05em;
		color: inherit;
		flex-shrink: 0;
	}

	.wehfigo-cal__browse-months:hover {
		background: var(--color-brand-red-hover, #b00018);
	}
}

html[data-theme="dark"] .wehfigo-cal__all-events,
body#dark-mode .wehfigo-cal__all-events {
	background: var(--wehfigo-cal-accent);
	border-color: var(--wehfigo-cal-accent);
	color: #fff;
}

html[data-theme="dark"] .wehfigo-cal__day-event-thumb,
body#dark-mode .wehfigo-cal__day-event-thumb {
	background: #2a2a2a;
}

html[data-theme="dark"] .wehfigo-cal.is-month-modal-open .wehfigo-cal__mobile-day,
body#dark-mode .wehfigo-cal.is-month-modal-open .wehfigo-cal__mobile-day {
	border-top-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .wehfigo-cal__filter,
body#dark-mode .wehfigo-cal__filter {
	background: #222;
	border-color: rgba(255, 255, 255, 0.14);
	color: #f2f2f2;
}

html[data-theme="dark"] .wehfigo-cal__filter.is-active,
body#dark-mode .wehfigo-cal__filter.is-active {
	background: rgba(255, 42, 61, 0.12);
	border-color: var(--wehfigo-cal-accent);
	color: #ff6b7a;
}

html[data-theme="dark"] .wehfigo-cal-year-promo,
body#dark-mode .wehfigo-cal-year-promo {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .wehfigo-cal-year-promo__text,
body#dark-mode .wehfigo-cal-year-promo__text {
	color: #f2f2f2;
}

html[data-theme="dark"] .wehfigo-cal__footer-cta,
body#dark-mode .wehfigo-cal__footer-cta {
	background: #1e1e1e;
	border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .wehfigo-cal__mobile-day-card,
body#dark-mode .wehfigo-cal__mobile-day-card {
	background: #222;
	border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .wehfigo-cal__span,
body#dark-mode .wehfigo-cal__span {
	background: var(--wehfigo-cal-month-chip-bg);
	color: var(--wehfigo-cal-month-chip-ink);
}

html[data-theme="dark"] .wehfigo-cal__span:hover,
body#dark-mode .wehfigo-cal__span:hover {
	background: rgba(214, 0, 28, 0.22);
}

html[data-theme="dark"] .wehfigo-cal__span-time,
body#dark-mode .wehfigo-cal__span-time {
	color: var(--wehfigo-cal-month-chip-time);
}

html[data-theme="dark"] .wehfigo-cal__span-title,
body#dark-mode .wehfigo-cal__span-title {
	color: var(--wehfigo-cal-month-chip-ink);
}

html[data-theme="dark"] .wehfigo-cal__daypanel-body .wehfigo-cal__chip,
body#dark-mode .wehfigo-cal__daypanel-body .wehfigo-cal__chip {
	background: var(--wehfigo-cal-month-chip-bg);
}

html[data-theme="dark"] .wehfigo-cal__daypanel-body .wehfigo-cal__chip-time,
body#dark-mode .wehfigo-cal__daypanel-body .wehfigo-cal__chip-time {
	color: var(--wehfigo-cal-month-chip-time);
}

html[data-theme="dark"] .wehfigo-cal__daypanel-body .wehfigo-cal__chip-title,
body#dark-mode .wehfigo-cal__daypanel-body .wehfigo-cal__chip-title {
	color: var(--wehfigo-cal-month-chip-ink);
}

/* Motion restraint */
@media (prefers-reduced-motion: reduce) {
	.wehfigo-cal *,
	.wehfigo-cal *::before,
	.wehfigo-cal *::after {
		transition-duration: 0.01ms !important;
	}
}
