/* RPCN Event Bar. Everything is scoped to .rpcn-eventbar. */

.rpcn-eventbar-host.elementor-widget,
.elementor-widget:has(.rpcn-eventbar) {
	border-top: 0 !important;
	margin-bottom: 0 !important;
}

.rpcn-eventbar {
	--rpcn-eb-teal: #007f7b;
	--rpcn-eb-ink: #333;
	--rpcn-eb-text: #5f5f5f;
	--rpcn-eb-line: #eceae4;
	--rpcn-eb-cream: #f8f7f3;
	width: 100%;
	font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 15px;
	line-height: 1.45;
	color: var(--rpcn-eb-text);
}

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

.rpcn-eventbar__inner {
	display: grid;
	grid-template-columns: 132px minmax(0, 1fr) 236px 188px;
	min-height: 168px;
	background: #fff;
}

/* Date block */
.rpcn-eventbar__date {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	padding: 20px 8px;
	background: var(--rpcn-eb-teal);
	color: #fff;
	text-align: center;
}

.rpcn-eventbar__when {
	padding: 3px 10px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.2);
	font-family: "Roboto Condensed", Roboto, Arial, sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.rpcn-eventbar__daynum {
	margin-top: 6px;
	font-size: 54px;
	font-weight: 400;
	line-height: 1;
}

.rpcn-eventbar__month {
	font-family: "Roboto Condensed", Roboto, Arial, sans-serif;
	font-size: 15px;
	letter-spacing: 2px;
	text-transform: uppercase;
}

/* Featured event */
.rpcn-eventbar__main {
	display: flex;
	gap: 18px;
	align-items: center;
	min-width: 0;
	padding: 22px 26px;
	border-right: 1px solid var(--rpcn-eb-line);
}

.rpcn-eventbar__thumb {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 80px;
	height: 80px;
	border: 1px solid var(--rpcn-eb-line);
	border-radius: 6px;
	background: #fff;
	overflow: hidden;
}

.rpcn-eventbar__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.rpcn-eventbar__body {
	min-width: 0;
}

.rpcn-eventbar__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 8px;
}

.rpcn-eventbar__pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 10px;
	border-radius: 30px;
	font-family: "Roboto Condensed", Roboto, Arial, sans-serif;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	white-space: nowrap;
}

.rpcn-eventbar__pill--on {
	background: #e6f4ea;
	color: #1e6b2e;
}

.rpcn-eventbar__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #2e7d32;
	box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.2);
}

@media (prefers-reduced-motion: no-preference) {
	.rpcn-eventbar__dot {
		animation: rpcn-eventbar-pulse 2s ease-in-out infinite;
	}
}

@keyframes rpcn-eventbar-pulse {
	50% {
		box-shadow: 0 0 0 6px rgba(46, 125, 50, 0.05);
	}
}

.rpcn-eventbar .rpcn-eventbar__title {
	margin: 0;
	padding: 0;
	border: 0;
	font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 22px;
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: 0;
	text-transform: none;
	color: var(--rpcn-eb-ink);
}

.rpcn-eventbar .rpcn-eventbar__title a {
	color: var(--rpcn-eb-teal);
	text-decoration: none;
}

.rpcn-eventbar .rpcn-eventbar__title a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.rpcn-eventbar__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 18px;
	margin-top: 8px;
	font-size: 14px;
	color: var(--rpcn-eb-text);
}

.rpcn-eventbar__meta > span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.rpcn-eventbar__icon {
	flex: none;
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Also on today and next */
.rpcn-eventbar__more {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 14px;
	min-width: 0;
	padding: 20px 22px;
	border-right: 1px solid var(--rpcn-eb-line);
}

.rpcn-eventbar__row {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	min-width: 0;
}

.rpcn-eventbar__row > div {
	min-width: 0;
}

.rpcn-eventbar__swatch {
	flex: none;
	width: 9px;
	height: 9px;
	margin-top: 5px;
	border-radius: 50%;
}

.rpcn-eventbar__key {
	display: block;
	font-family: "Roboto Condensed", Roboto, Arial, sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	color: #707070;
}

.rpcn-eventbar .rpcn-eventbar__rowtitle {
	display: block;
	font-size: 15px;
	line-height: 1.3;
	color: var(--rpcn-eb-ink);
	text-decoration: none;
}

.rpcn-eventbar .rpcn-eventbar__rowtitle:hover {
	color: var(--rpcn-eb-teal);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.rpcn-eventbar__rowtime {
	display: block;
	font-size: 13px;
	color: var(--rpcn-eb-text);
}

.rpcn-eventbar .rpcn-eventbar__quiet {
	margin: 0;
	font-size: 14px;
}

/* Countdown */
.rpcn-eventbar__units {
	display: flex;
	gap: 6px;
	margin-top: 8px;
}

.rpcn-eventbar__unit {
	flex: 1;
	padding: 8px 0 6px;
	border: 1px solid var(--rpcn-eb-line);
	border-radius: 6px;
	background: var(--rpcn-eb-cream);
	text-align: center;
}

.rpcn-eventbar__unit b {
	display: block;
	font-family: "Roboto Condensed", Roboto, Arial, sans-serif;
	font-size: 26px;
	font-weight: 500;
	line-height: 1;
	color: var(--rpcn-eb-teal);
}

.rpcn-eventbar__unit small {
	display: block;
	margin-top: 3px;
	font-family: "Roboto Condensed", Roboto, Arial, sans-serif;
	font-size: 10px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #707070;
}

/* Buttons */
.rpcn-eventbar__actions {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 10px;
	padding: 20px 22px;
	background: var(--rpcn-eb-cream);
}

.rpcn-eventbar .rpcn-eventbar__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 16px;
	border-radius: 3px;
	background: var(--rpcn-eb-teal);
	box-shadow: inset 0 0 0 2px var(--rpcn-eb-teal);
	font-family: "Roboto Condensed", Roboto, Arial, sans-serif;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 1.2px;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	color: #fff;
	white-space: nowrap;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.rpcn-eventbar .rpcn-eventbar__btn:hover {
	background: #005f5c;
	box-shadow: inset 0 0 0 2px #005f5c;
	color: #fff;
}

.rpcn-eventbar .rpcn-eventbar__btn--ghost {
	background: #fff;
	color: var(--rpcn-eb-teal);
}

.rpcn-eventbar .rpcn-eventbar__btn--ghost:hover {
	background: var(--rpcn-eb-teal);
	box-shadow: inset 0 0 0 2px var(--rpcn-eb-teal);
	color: #fff;
}

.rpcn-eventbar .rpcn-eventbar__save {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 4px 0;
	font-size: 14px;
	color: var(--rpcn-eb-teal);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.rpcn-eventbar a:focus-visible {
	outline: 3px solid #f2b705;
	outline-offset: 2px;
}

/* Tablet: date, event and buttons on one row, the side list below */
@media (max-width: 1024px) {
	.rpcn-eventbar__inner {
		grid-template-columns: 116px minmax(0, 1fr) 190px;
	}

	.rpcn-eventbar__more {
		grid-column: 1 / -1;
		grid-row: 2;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: flex-start;
		gap: 12px 28px;
		border-top: 1px solid var(--rpcn-eb-line);
		border-right: 0;
	}

	.rpcn-eventbar__row {
		flex: 1 1 240px;
	}

	.rpcn-eventbar__count {
		flex: 1 1 100%;
		max-width: 420px;
	}

	.rpcn-eventbar__main {
		border-right: 0;
	}
}

/* Phone: date beside the event, then the list, then the buttons */
@media (max-width: 767px) {
	.rpcn-eventbar__inner {
		grid-template-columns: 88px minmax(0, 1fr);
		min-height: 0;
	}

	.rpcn-eventbar__date {
		padding: 14px 4px;
	}

	.rpcn-eventbar__when {
		padding: 2px 7px;
		font-size: 10px;
		letter-spacing: 1.2px;
	}

	.rpcn-eventbar__daynum {
		font-size: 40px;
	}

	.rpcn-eventbar__month {
		font-size: 12px;
		letter-spacing: 1.2px;
	}

	.rpcn-eventbar__main {
		gap: 12px;
		padding: 14px 16px;
	}

	.rpcn-eventbar__thumb {
		display: none;
	}

	.rpcn-eventbar .rpcn-eventbar__title {
		font-size: 19px;
	}

	.rpcn-eventbar__more {
		flex-direction: column;
		padding: 14px 16px;
	}

	.rpcn-eventbar__row {
		flex: none;
	}

	.rpcn-eventbar__actions {
		grid-column: 1 / -1;
		grid-row: 3;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px;
		padding: 14px 16px 16px;
	}

	.rpcn-eventbar__save {
		grid-column: 1 / -1;
	}

	.rpcn-eventbar--empty .rpcn-eventbar__actions {
		grid-template-columns: 1fr;
	}
}
