/* ==========================================================================
   Events & Outreach — register page + single event.
   ========================================================================== */

.jcu-ev {
	--jcue-purple: #68267e;
	--jcue-ink: #221024;
	--jcue-soft: rgba(104, 38, 126, 0.08);
	--jcue-line: #e8e2ec;
	background: #fff;
}

.jcu-ev__inner {
	max-width: 1250px;
	margin: 0 auto;
	padding: 0 1.25rem;
}

/* Hero */

.jcu-ev__hero {
	background:
		radial-gradient(800px 400px at 85% -20%, rgba(104, 38, 126, 0.35), transparent),
		linear-gradient(160deg, rgba(10, 10, 11, 0.93), rgba(22, 18, 26, 0.88) 60%, rgba(29, 21, 34, 0.92)),
		#0a0a0b url("footer-bg.jpg") center / cover no-repeat;
	color: #fff;
	padding: 4rem 0 4.5rem;
}

.jcu-ev__kicker {
	display: inline-block;
	color: #e3a3cd;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	margin-bottom: 0.8rem;
}

.jcu-ev__hero h1 {
	margin: 0 0 0.7rem;
	font-size: clamp(2.2rem, 5vw, 3.4rem);
	font-weight: 800;
	line-height: 1.08;
	color: #fff;
}

.jcu-ev__hero p {
	margin: 0;
	max-width: 680px;
	color: rgba(255, 255, 255, 0.82);
	font-size: 1.08rem;
	line-height: 1.65;
}

.jcu-ev__stats {
	display: flex;
	gap: 2.75rem;
	list-style: none;
	margin: 2.2rem 0 0;
	padding: 1.4rem 0 0;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	flex-wrap: wrap;
}

.jcu-ev__stats strong {
	display: block;
	font-size: 1.9rem;
	font-weight: 800;
	line-height: 1;
	color: #fff;
}

.jcu-ev__stats span {
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.65);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-weight: 600;
}

/* Sticky toolbar */

.jcu-ev__toolbar {
	position: sticky;
	top: 56px;
	z-index: 20;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	background: #fff;
	border-bottom: 1px solid #eee;
	padding: 0.85rem 1.25rem;
	max-width: 1250px;
	margin: 0 auto;
}

.jcu-ev__search {
	flex: 0 1 280px;
	min-width: 180px;
	border: 1px solid #d9d9d9;
	border-radius: 999px;
	padding: 0.55rem 1.2rem;
	font-family: inherit;
	font-size: 0.92rem;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.jcu-ev__search:focus {
	border-color: var(--jcue-purple);
	box-shadow: 0 0 0 3px var(--jcue-soft);
}

.jcu-ev__filters-wrap {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	flex: 1;
	min-width: 0;
}

.jcu-ev__filters {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.45rem;
	flex: 1;
	min-width: 0;
	overflow-x: auto;
	padding-bottom: 2px;
	scrollbar-width: none;
	scroll-behavior: smooth;
}

.jcu-ev__filters::-webkit-scrollbar {
	display: none;
}

.jcu-ev__filters .jcu-ev__filter,
.jcu-ev__filters .jcu-ev__filter:focus {
	flex-shrink: 0;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	background: var(--jcue-soft);
	border: 0;
	color: var(--jcue-purple);
	font-family: inherit;
	font-size: 0.84rem;
	font-weight: 700;
	letter-spacing: normal;
	text-transform: none;
	padding: 0.4rem 0.95rem;
	border-radius: 999px;
	box-shadow: none;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.jcu-ev__filters .jcu-ev__filter:hover,
.jcu-ev__filters .jcu-ev__filter.is-active,
.jcu-ev__filters .jcu-ev__filter.is-active:hover {
	background: var(--jcue-purple);
	color: #fff;
}

.jcu-ev__filters-wrap .jcu-ev__filters-arrow,
.jcu-ev__filters-wrap .jcu-ev__filters-arrow:focus {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	background: #fff;
	border: 1px solid #d9cfe0;
	border-radius: 50%;
	color: var(--jcue-purple);
	box-shadow: none;
	cursor: pointer;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.jcu-ev__filters-wrap .jcu-ev__filters-arrow:hover {
	background: var(--jcue-purple);
	border-color: var(--jcue-purple);
	color: #fff;
}

.jcu-ev__filters-wrap .jcu-ev__filters-arrow svg {
	width: 16px;
	height: 16px;
}

.jcu-ev__filters-wrap .jcu-ev__filters-arrow[hidden] {
	display: none;
}

/* Register */

.jcu-ev__section {
	padding-top: 2.6rem;
}

.jcu-ev__section:last-of-type {
	padding-bottom: 4rem;
}

.jcu-ev .jcu-ev__group-title {
	margin: 0 0 1rem;
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--jcue-ink);
	padding-bottom: 0.6rem;
	border-bottom: 2px solid var(--jcue-ink);
}

.jcu-ev__group-title small {
	font-size: 0.85rem;
	font-weight: 800;
	color: #b9a6c4;
	margin-left: 0.5rem;
}

.jcu-ev__register {
	margin: 0;
	padding: 0;
	list-style: none;
}

.jcu-ev__row[hidden] {
	display: none;
}

.jcu-ev .jcu-ev__row-link,
.jcu-ev .jcu-ev__row-link:visited {
	display: grid;
	grid-template-columns: 3.4rem 96px minmax(0, 1fr) auto;
	gap: 1.25rem;
	align-items: center;
	padding: 0.95rem 0;
	border-bottom: 1px solid var(--jcue-line);
	text-decoration: none;
	color: var(--jcue-ink);
	transition: background 0.15s;
}

.jcu-ev .jcu-ev__row-link:hover {
	background: #faf8fb;
}

.jcu-ev__row-date {
	text-align: center;
}

.jcu-ev__row-date strong {
	display: block;
	font-size: 1.35rem;
	font-weight: 800;
	line-height: 1;
	color: var(--jcue-ink);
}

.jcu-ev__row-date span {
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--jcue-purple);
}

.jcu-ev__row-thumb {
	display: block;
	width: 96px;
	height: 64px;
	border-radius: 4px;
	overflow: hidden;
	background: var(--jcue-soft);
}

.jcu-ev__row-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.jcu-ev__row-thumb span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-weight: 800;
	font-size: 0.9rem;
	color: var(--jcue-purple);
}

.jcu-ev__row-title {
	display: block;
	font-size: 1.05rem;
	font-weight: 800;
	line-height: 1.3;
	transition: color 0.15s;
}

.jcu-ev .jcu-ev__row-link:hover .jcu-ev__row-title {
	color: var(--jcue-purple);
}

.jcu-ev__row-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.35rem 0.8rem;
	margin-top: 0.3rem;
	font-size: 0.84rem;
	color: #7c6f83;
}

.jcu-ev__chip {
	display: inline-block;
	font-size: 0.74rem;
	font-weight: 700;
	color: var(--jcue-purple);
	background: var(--jcue-soft);
	padding: 0.18rem 0.6rem;
	border-radius: 999px;
	white-space: nowrap;
}

.jcu-ev__row-go {
	font-weight: 800;
	color: #b9a6c4;
	transition: color 0.15s, transform 0.15s;
}

.jcu-ev .jcu-ev__row-link:hover .jcu-ev__row-go {
	color: var(--jcue-purple);
	transform: translateX(3px);
}

.jcu-ev__register--upcoming .jcu-ev__row-link {
	background: #faf7fb;
	border-left: 3px solid var(--jcue-purple);
	padding-left: 0.9rem;
}

.jcu-ev__none {
	padding: 2.5rem 0 4rem;
	color: #7c6f83;
}

/* ==========================================================================
   Single event
   ========================================================================== */

.jcu-ev__topbar {
	border-bottom: 1px solid var(--jcue-line);
	padding: 0.9rem 0;
}

.jcu-ev__topbar .jcu-ev__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.jcu-ev a.jcu-ev__back,
.jcu-ev a.jcu-ev__back:visited {
	color: var(--jcue-purple);
	font-size: 0.86rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
}

.jcu-ev a.jcu-ev__back:hover {
	color: var(--jcue-ink);
}

.jcu-ev__badge {
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff;
	background: var(--jcue-purple);
	padding: 0.3rem 0.8rem;
	border-radius: 999px;
}

.jcu-ev-single__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 3.5rem;
	padding-top: 2.6rem;
	padding-bottom: 4rem;
	align-items: start;
}

.jcu-ev-single__kicker {
	display: inline-block;
	color: var(--jcue-purple);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	margin-bottom: 0.6rem;
}

.jcu-ev .jcu-ev-single__main h1 {
	margin: 0 0 0.6rem;
	font-size: clamp(1.9rem, 4vw, 2.8rem);
	font-weight: 800;
	line-height: 1.1;
	color: var(--jcue-ink);
}

.jcu-ev-single__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.4rem 0.9rem;
	margin: 0 0 1.6rem;
	color: #7c6f83;
	font-size: 0.92rem;
}

.jcu-ev-single__photo {
	margin: 0 0 1.8rem;
}

.jcu-ev-single__photo img {
	display: block;
	width: 100%;
	max-height: 480px;
	object-fit: cover;
	border-radius: 4px;
}

.jcu-ev-single__content {
	max-width: 62ch;
}

.jcu-ev-single__content p {
	margin: 0 0 1.1rem;
	font-size: 1rem;
	line-height: 1.75;
	color: #3c2f42;
	text-align: justify !important;
}

.jcu-ev-single__content > p:first-child {
	font-size: 1.18rem;
	line-height: 1.6;
	color: var(--jcue-ink);
	font-weight: 500;
	text-align: left !important;
}

/* Aside */

.jcu-ev-single__aside {
	position: sticky;
	top: 90px;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.jcu-ev-single__facts,
.jcu-ev-single__more {
	background: #faf8fb;
	border: 1px solid var(--jcue-line);
	border-radius: 4px;
	padding: 1.4rem 1.5rem;
}

.jcu-ev .jcu-ev-single__facts h2,
.jcu-ev .jcu-ev-single__more h2 {
	margin: 0 0 1rem;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--jcue-purple);
}

.jcu-ev-single__facts dl {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.jcu-ev-single__facts dt {
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #9c8fa3;
}

.jcu-ev-single__facts dd {
	margin: 0.15rem 0 0;
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--jcue-ink);
	line-height: 1.5;
}

.jcu-ev .jcu-ev-single__facts dd a,
.jcu-ev .jcu-ev-single__facts dd a:visited {
	color: var(--jcue-purple);
	font-weight: 800;
	text-decoration: none;
}

.jcu-ev .jcu-ev-single__facts dd a:hover {
	text-decoration: underline;
}

.jcu-ev-single__phones {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.8rem;
}

.jcu-ev-single__phones a {
	white-space: nowrap;
}

.jcu-ev-single__more ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
}

.jcu-ev .jcu-ev-single__more a,
.jcu-ev .jcu-ev-single__more a:visited {
	display: block;
	color: var(--jcue-ink);
	font-size: 0.92rem;
	font-weight: 800;
	line-height: 1.4;
	text-decoration: none;
	transition: color 0.15s;
}

.jcu-ev .jcu-ev-single__more a:hover {
	color: var(--jcue-purple);
}

.jcu-ev-single__more a small {
	display: block;
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #9c8fa3;
	margin-bottom: 0.1rem;
}

.jcu-ev-single__cta {
	background: var(--jcue-ink);
	color: #fff;
	border-radius: 4px;
	padding: 1.4rem 1.5rem;
}

.jcu-ev-single__cta span {
	display: block;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #e3a3cd;
	margin-bottom: 0.5rem;
}

.jcu-ev-single__cta p {
	margin: 0 0 0.8rem;
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.92rem;
	line-height: 1.55;
}

.jcu-ev .jcu-ev-single__cta a,
.jcu-ev .jcu-ev-single__cta a:visited {
	color: #fff;
	font-weight: 800;
	font-size: 0.9rem;
	text-decoration: none;
	border-bottom: 2px solid #e3a3cd;
	padding-bottom: 2px;
}

.jcu-ev .jcu-ev-single__cta a:hover {
	color: #e3a3cd;
}

/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 900px) {
	.jcu-ev-single__layout {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.jcu-ev-single__aside {
		position: static;
	}
}

@media (max-width: 640px) {
	.jcu-ev__hero {
		padding: 3rem 0;
	}

	.jcu-ev__stats {
		gap: 1.75rem;
	}

	.jcu-ev .jcu-ev__row-link {
		grid-template-columns: 2.6rem minmax(0, 1fr) auto;
	}

	.jcu-ev__row-thumb {
		display: none;
	}

	.jcu-ev-single__content p {
		text-align: left !important;
	}
}

/* Collapsible year groups — older years fold to a heading */

.jcu-ev .jcu-ev__group-title--toggle {
	padding-bottom: 0;
	border-bottom: 0;
}

.jcu-ev .jcu-ev__year-toggle,
.jcu-ev .jcu-ev__year-toggle:focus {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	width: 100%;
	background: transparent;
	border: 0;
	border-bottom: 2px solid var(--jcue-ink);
	border-radius: 0;
	padding: 0 0 0.6rem;
	box-shadow: none;
	font-family: inherit;
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: normal;
	text-transform: none;
	color: var(--jcue-ink);
	text-align: left;
	cursor: pointer;
	transition: color 0.15s;
}

.jcu-ev .jcu-ev__year-toggle:hover {
	background: transparent;
	color: var(--jcue-purple);
}

.jcu-ev__year-toggle small {
	font-size: 0.85rem;
	font-weight: 700;
	color: #b9a6c4;
}

.jcu-ev__year-toggle svg {
	width: 18px;
	height: 18px;
	margin-left: auto;
	align-self: center;
	transition: transform 0.2s;
}

.jcu-ev__year.is-collapsed .jcu-ev__year-toggle svg {
	transform: rotate(-90deg);
}

.jcu-ev__year.is-collapsed .jcu-ev__register {
	display: none;
}

/* Add-to-calendar (upcoming events only) — sits below the write-up */

.jcu-ev-single__addcal {
	margin-top: 1.2rem;
	padding-top: 1.1rem;
	border-top: 1px solid var(--jcue-line);
}

.jcu-ev-single__addcal--main {
	max-width: 62ch;
	margin-top: 2.2rem;
	padding-top: 1.4rem;
	border-top: 2px solid var(--jcue-ink);
}

.jcu-ev-single__addcal > span {
	display: block;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #9c8fa3;
	margin-bottom: 0.6rem;
}

.jcu-ev-single__addcal-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.jcu-ev .jcu-ev-single__addcal-btns a,
.jcu-ev .jcu-ev-single__addcal-btns a:visited {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.42rem 0.85rem;
	border: 1px solid #d9cfe0;
	border-radius: 999px;
	background: #fff;
	color: var(--jcue-purple);
	font-size: 0.82rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.jcu-ev .jcu-ev-single__addcal-btns a:hover {
	background: var(--jcue-purple);
	border-color: var(--jcue-purple);
	color: #fff;
}

.jcu-ev-single__addcal-btns svg {
	width: 15px;
	height: 15px;
}
