/** Events page. */
.ych-events {
	overflow: hidden;
	background: var(--ych-bg-primary);
	color: var(--ych-text-primary);
	font-family: var(--ych-font-body);
}

.ych-events__container {
	width: min(calc(100% - (var(--page-gutter) * 2)), var(--content-max-width));
	margin-inline: auto;
}

.ych-events__intro {
	position: relative;
	padding: clamp(4.75rem, 8vw, 7.5rem) 0 clamp(2.75rem, 5vw, 4.5rem);
	background:
		radial-gradient(circle at 84% 15%, rgba(154, 114, 208, 0.18), transparent 30rem),
		radial-gradient(circle at 12% 86%, rgba(120, 169, 228, 0.12), transparent 26rem),
		var(--ych-bg-primary);
}

.ych-events__intro::after {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 0.0625rem;
	background: linear-gradient(90deg, transparent, var(--ych-border-strong), transparent);
	content: "";
}

.ych-events__eyebrow {
	margin: 0 0 0.75rem;
	color: var(--ych-accent-blue);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	line-height: 1.4;
	text-transform: uppercase;
}

.ych-events__intro h1,
.ych-featured-event h2,
.ych-upcoming-events h2,
.ych-events__empty h2 {
	margin: 0;
	color: var(--ych-text-primary);
	font-family: var(--ych-font-heading);
	font-weight: 700;
	letter-spacing: -0.035em;
}

.ych-events__intro h1 {
	max-width: 56rem;
	font-size: clamp(2.7rem, 6vw, 5.7rem);
	line-height: 0.98;
}

.ych-events__intro > .ych-events__container > p:last-child {
	max-width: 47rem;
	margin: 1.5rem 0 0;
	color: var(--ych-text-secondary);
	font-size: clamp(1rem, 1.6vw, 1.25rem);
	line-height: 1.7;
}

.ych-events__showcase {
	padding: clamp(3.5rem, 7vw, 7rem) 0;
	background: var(--ych-bg-secondary);
}

.ych-events__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(25rem, 0.92fr);
	gap: clamp(2rem, 4.5vw, 5rem);
	align-items: start;
}

.ych-featured-event {
	overflow: hidden;
	border: 0.0625rem solid var(--ych-border);
	border-radius: var(--ych-radius-panel);
	background: var(--ych-bg-card);
	box-shadow: var(--ych-shadow-large);
	transition: border-color var(--ych-transition), box-shadow var(--ych-transition), transform var(--ych-transition);
}

.ych-featured-event:hover {
	border-color: var(--ych-border-strong);
	box-shadow: 0 1.75rem 4.5rem rgba(0, 0, 0, 0.32);
	transform: translateY(-0.25rem);
}

.ych-featured-event__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: var(--ych-bg-primary);
}

.ych-featured-event__image,
.ych-featured-event__image-fallback {
	width: 100%;
	height: 100%;
}

.ych-featured-event__image {
	display: block;
	object-fit: cover;
	transition: transform 600ms ease;
}

.ych-featured-event:hover .ych-featured-event__image {
	transform: scale(1.025);
}

.ych-featured-event__image-fallback {
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, rgba(120, 169, 228, 0.22), rgba(154, 114, 208, 0.28)), var(--ych-bg-primary);
	color: rgba(244, 246, 251, 0.72);
	font-family: var(--ych-font-heading);
	font-size: clamp(1.5rem, 4vw, 3rem);
	letter-spacing: -0.03em;
}

.ych-featured-event__category {
	position: absolute;
	bottom: 1.25rem;
	left: 1.25rem;
	padding: 0.5rem 0.75rem;
	border: 0.0625rem solid rgba(255, 255, 255, 0.2);
	border-radius: 999px;
	background: rgba(9, 19, 34, 0.84);
	backdrop-filter: blur(0.65rem);
	color: var(--ych-text-primary);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.05em;
}

.ych-featured-event__content {
	padding: clamp(1.5rem, 3.5vw, 2.75rem);
}

.ych-featured-event h2 {
	font-size: clamp(2rem, 3.3vw, 3.25rem);
	line-height: 1.08;
}

.ych-featured-event__description {
	margin: 1.1rem 0 0;
	color: var(--ych-text-secondary);
	font-size: 1rem;
	line-height: 1.7;
}

.ych-featured-event__details {
	display: grid;
	gap: 0.7rem;
	margin: 1.5rem 0 1.75rem;
	padding: 0;
	list-style: none;
}

.ych-featured-event__details li {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	color: var(--ych-text-secondary);
	font-size: 0.9rem;
	line-height: 1.5;
}

.ych-event-icon {
	flex: 0 0 auto;
	color: var(--ych-accent-purple);
	font-size: 0.55rem;
	line-height: 1.6rem;
}

.ych-featured-event__button {
	gap: 0.65rem;
}

.ych-upcoming-events {
	min-width: 0;
	padding-top: 0.25rem;
}

.ych-upcoming-events__header {
	display: flex;
	gap: 1.5rem;
	align-items: end;
	justify-content: space-between;
	margin-bottom: 1.5rem;
}

.ych-upcoming-events h2 {
	font-size: clamp(2rem, 3.4vw, 3rem);
	line-height: 1.05;
}

.ych-upcoming-events__header > a {
	display: inline-flex;
	flex: 0 0 auto;
	min-height: 2.75rem;
	align-items: center;
	margin-bottom: 0.2rem;
	color: var(--ych-text-primary);
	font-size: 0.86rem;
	font-weight: 700;
	text-decoration-color: var(--ych-accent-purple);
	text-underline-offset: 0.35rem;
	transition: color var(--ych-transition);
}

.ych-upcoming-events__header > a:hover {
	color: var(--ych-accent-blue);
}

.ych-upcoming-events__list {
	display: grid;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ych-event-row {
	border: 0.0625rem solid var(--ych-border);
	border-radius: var(--ych-radius-card);
	background: rgba(16, 32, 51, 0.72);
	transition: background var(--ych-transition), border-color var(--ych-transition), transform var(--ych-transition);
}

.ych-event-row--forum {
	margin-bottom: 0.75rem;
	border-color: rgba(154, 114, 208, 0.55);
	background: linear-gradient(105deg, rgba(120, 169, 228, 0.14), rgba(154, 114, 208, 0.16)), rgba(16, 32, 51, 0.84);
}

.ych-event-row:hover,
.ych-event-row:focus-within {
	border-color: var(--ych-border-strong);
	background: var(--ych-bg-card-hover);
	transform: translateX(0.25rem);
}

.ych-event-row__link {
	display: grid;
	grid-template-columns: 4.35rem minmax(0, 1fr) auto;
	gap: 1rem;
	align-items: center;
	padding: 1rem;
	color: inherit;
	text-decoration: none;
}

.ych-event-row__link:focus-visible {
	border-radius: var(--ych-radius-card);
	outline: 0.1875rem solid var(--ych-focus);
	outline-offset: 0.2rem;
}

.ych-event-date {
	display: grid;
	width: 4.35rem;
	min-height: 4.35rem;
	align-content: center;
	border: 0.0625rem solid var(--ych-border-strong);
	border-radius: 0.875rem;
	background: var(--ych-bg-primary);
	text-align: center;
}

.ych-event-date span {
	color: var(--ych-accent-blue);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.2;
	text-transform: uppercase;
}

.ych-event-date strong {
	color: var(--ych-text-primary);
	font-family: var(--ych-font-heading);
	font-size: 1.8rem;
	font-weight: 700;
	line-height: 1;
}

.ych-event-row__content {
	display: grid;
	min-width: 0;
	gap: 0.28rem;
}

.ych-event-row__schedule,
.ych-event-row__location {
	color: var(--ych-text-muted);
	font-size: 0.76rem;
	line-height: 1.4;
}

.ych-event-row__title {
	overflow: hidden;
	color: var(--ych-text-primary);
	font-size: 1rem;
	line-height: 1.35;
	text-overflow: ellipsis;
}

.ych-event-row__arrow {
	color: var(--ych-accent-purple);
	font-size: 1.25rem;
	transition: transform var(--ych-transition);
}

.ych-event-row:hover .ych-event-row__arrow {
	transform: translateX(0.2rem);
}

.ych-events__empty {
	border: 0.0625rem solid var(--ych-border);
	border-radius: var(--ych-radius-panel);
	background: linear-gradient(145deg, rgba(120, 169, 228, 0.08), rgba(154, 114, 208, 0.08)), var(--ych-bg-card);
}

.ych-events__empty--featured {
	display: flex;
	min-height: 35rem;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding: clamp(2rem, 5vw, 4rem);
	box-shadow: var(--ych-shadow-medium);
}

.ych-events__empty--featured h2 {
	max-width: 30rem;
	font-size: clamp(2.25rem, 4.5vw, 4rem);
	line-height: 1.06;
}

.ych-events__empty--featured > p:not(.ych-events__eyebrow) {
	max-width: 34rem;
	margin: 1.25rem 0 1.75rem;
	color: var(--ych-text-secondary);
	line-height: 1.7;
}

.ych-events__empty--upcoming {
	padding: 2rem;
	color: var(--ych-text-secondary);
	line-height: 1.65;
}

.ych-events__empty--upcoming p {
	margin: 0;
}

@media (max-width: 64rem) {
	.ych-events__layout {
		grid-template-columns: 1fr;
		gap: 4rem;
	}

	.ych-featured-event {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.ych-featured-event__media {
		height: 100%;
		aspect-ratio: auto;
	}

	.ych-events__empty--featured {
		min-height: 25rem;
	}
}

@media (max-width: 47.9375rem) {
	.ych-events__intro {
		padding-top: 4rem;
	}

	.ych-events__showcase {
		padding: 3.25rem 0 4.5rem;
	}

	.ych-events__layout {
		gap: 3.25rem;
	}

	.ych-featured-event {
		display: block;
	}

	.ych-featured-event__media {
		aspect-ratio: 4 / 3;
	}

	.ych-upcoming-events__header {
		align-items: flex-start;
	}

	.ych-event-row__link {
		grid-template-columns: 3.8rem minmax(0, 1fr);
		gap: 0.85rem;
		padding: 0.85rem;
	}

	.ych-event-date {
		width: 3.8rem;
		min-height: 3.8rem;
	}

	.ych-event-date strong {
		font-size: 1.55rem;
	}

	.ych-event-row__arrow {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ych-featured-event,
	.ych-featured-event__image,
	.ych-event-row,
	.ych-event-row__arrow {
		transition: none;
	}
}

/*
 * Native event archive and event detail presentation.
 * These selectors are intentionally scoped to the custom post type so the
 * editorial treatment does not alter standard posts or pages.
 */
.post-type-archive-ych_event,
.single-ych_event {
	background: var(--ych-bg-primary);
	color: var(--ych-text-primary);
}

.post-type-archive-ych_event #inner-wrap,
.single-ych_event #inner-wrap {
	background:
		radial-gradient(circle at 82% 8%, rgba(154, 114, 208, 0.12), transparent 28rem),
		var(--ych-bg-primary);
}

.post-type-archive-ych_event .ych_event-archive-hero-section {
	min-height: 0;
	border-bottom: 0.0625rem solid var(--ych-border);
	background:
		radial-gradient(circle at 78% 24%, rgba(154, 114, 208, 0.16), transparent 25rem),
		linear-gradient(150deg, #0b1829, var(--ych-bg-primary));
}

.post-type-archive-ych_event .ych_event-archive-hero-section .entry-hero-container-inner {
	min-height: clamp(16rem, 24vw, 19rem);
}

.post-type-archive-ych_event .ych_event-archive-title {
	max-width: 78rem;
	margin-inline: auto;
}

.post-type-archive-ych_event .archive-title {
	margin: 0;
	color: var(--ych-text-primary);
	font-family: var(--ych-font-heading);
	font-size: clamp(3rem, 5.5vw, 4.75rem);
	font-weight: 700;
	letter-spacing: -0.045em;
	line-height: 0.98;
}

.post-type-archive-ych_event .archive-description {
	max-width: 43rem;
	margin-top: 1rem;
	color: var(--ych-text-secondary);
	font-size: clamp(1rem, 1.4vw, 1.15rem);
	line-height: 1.65;
}

.post-type-archive-ych_event #primary {
	margin: 0;
	padding-block: clamp(4rem, 6vw, 6rem);
}

.post-type-archive-ych_event #archive-container {
	gap: clamp(1.25rem, 2.5vw, 2rem);
}

.post-type-archive-ych_event .loop-entry {
	overflow: hidden;
	border: 0.0625rem solid var(--ych-border);
	border-radius: var(--ych-radius-card);
	background: rgba(16, 32, 51, 0.84);
	box-shadow: var(--ych-shadow-medium);
	transition: border-color var(--ych-transition), box-shadow var(--ych-transition), transform var(--ych-transition);
}

.post-type-archive-ych_event .loop-entry:hover,
.post-type-archive-ych_event .loop-entry:focus-within {
	border-color: var(--ych-border-strong);
	box-shadow: var(--ych-shadow-large);
	transform: translateY(-0.25rem);
}

.post-type-archive-ych_event .post-thumbnail {
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: linear-gradient(135deg, rgba(120, 169, 228, 0.18), rgba(154, 114, 208, 0.2));
}

.post-type-archive-ych_event .post-thumbnail-inner,
.post-type-archive-ych_event .post-thumbnail img {
	width: 100%;
	height: 100%;
}

.post-type-archive-ych_event .post-thumbnail img {
	object-fit: cover;
	transition: transform 600ms ease;
}

.post-type-archive-ych_event .loop-entry:hover .post-thumbnail img {
	transform: scale(1.025);
}

.post-type-archive-ych_event .loop-entry .entry-content-wrap {
	display: flex;
	min-height: 17rem;
	flex-direction: column;
	padding: clamp(1.35rem, 2.5vw, 2rem);
}

.post-type-archive-ych_event .loop-entry .entry-title {
	margin-bottom: 0.85rem;
	font-family: var(--ych-font-heading);
	font-size: clamp(1.5rem, 2.25vw, 2rem);
	letter-spacing: -0.025em;
	line-height: 1.1;
}

.post-type-archive-ych_event .loop-entry .entry-title a,
.post-type-archive-ych_event .loop-entry .entry-footer a {
	color: var(--ych-text-primary);
}

.post-type-archive-ych_event .loop-entry .entry-summary {
	color: var(--ych-text-secondary);
	line-height: 1.65;
}

.post-type-archive-ych_event .loop-entry .entry-footer {
	margin-top: auto;
	padding-top: 1.25rem;
}

.post-type-archive-ych_event .loop-entry .more-link-wrap {
	margin: 0;
}

.post-type-archive-ych_event .loop-entry .post-more-link {
	color: var(--ych-accent-blue);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-underline-offset: 0.3rem;
}

.single-ych_event #primary {
	margin: 0;
	padding-block: clamp(4rem, 7vw, 7rem);
}

.single-ych_event .content-container {
	width: min(calc(100% - (var(--page-gutter) * 2)), 78rem);
	max-width: none;
}

.single-ych_event .single-entry {
	overflow: hidden;
	border: 0.0625rem solid var(--ych-border);
	border-radius: var(--ych-radius-panel);
	background:
		radial-gradient(circle at 90% 5%, rgba(154, 114, 208, 0.12), transparent 26rem),
		var(--ych-bg-secondary);
	box-shadow: var(--ych-shadow-large);
}

.single-ych_event .single-entry .entry-content-wrap {
	padding: clamp(1.5rem, 4vw, 3.5rem);
}

.single-ych_event .ych_event-title {
	max-width: 60rem;
	margin-bottom: clamp(2rem, 4vw, 3rem);
}

.single-ych_event .entry-title {
	margin: 0;
	color: var(--ych-text-primary);
	font-family: var(--ych-font-heading);
	font-size: clamp(3rem, 5.5vw, 4.75rem);
	font-weight: 700;
	letter-spacing: -0.045em;
	line-height: 0.98;
}

.single-ych_event .single-content {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
	align-items: center;
	gap: clamp(2rem, 5vw, 4.5rem);
}

.single-ych_event .single-content > * {
	margin: 0;
}

.single-ych_event .single-content .wp-block-image {
	overflow: hidden;
	border-radius: calc(var(--ych-radius-panel) - 0.5rem);
	box-shadow: var(--ych-shadow-medium);
}

.single-ych_event .single-content .wp-block-image img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 11;
	object-fit: cover;
}

.single-ych_event .single-content > p {
	color: var(--ych-text-secondary);
	font-size: clamp(1.05rem, 1.6vw, 1.22rem);
	line-height: 1.75;
}

.post-type-archive-ych_event :where(a, button):focus-visible,
.single-ych_event :where(a, button):focus-visible {
	outline: 0.1875rem solid var(--ych-focus);
	outline-offset: 0.25rem;
}

@media (max-width: 48rem) {
	.post-type-archive-ych_event .ych_event-archive-hero-section .entry-hero-container-inner {
		min-height: 15rem;
	}

	.post-type-archive-ych_event #primary,
	.single-ych_event #primary {
		padding-block: 3.5rem;
	}

	.single-ych_event .single-content {
		grid-template-columns: minmax(0, 1fr);
	}

	.single-ych_event .single-content > p {
		max-width: 39rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.post-type-archive-ych_event .loop-entry,
	.post-type-archive-ych_event .post-thumbnail img {
		transition: none;
	}
}
