/**
 * Events Page
 *
 * Covers:
 *   .pjcs-events-listing          — page section wrapper
 *   .pjcs-events-grid             — card grid (2-up desktop, 1-up mobile)
 *   .pjcs-event-card              — individual event card
 *   .pjcs-event-card__date-badge  — navy date badge (Mon / DD)
 *   .pjcs-events-empty            — fallback when no events published
 *
 * Note: page header uses shared .pjcs-page-header (page-header.css).
 * .pjcs-btn base + .pjcs-btn--red from hero.css.
 */

/* =========================================================
   Listing Section
   White background, generous padding.
   ========================================================= */

.pjcs-events-listing {
	background-color: #ffffff;
	padding-block: 96px;
}

.pjcs-events-listing__inner {
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 64px;
}

/* =========================================================
   Event Card Grid
   2-column desktop; 1-column mobile.
   ========================================================= */

.pjcs-events-grid {
	display: grid;
	grid-template-columns: repeat( 2, 1fr );
	gap: 32px;
}

/* =========================================================
   Event Card
   Off-white background, 3px red top border.
   Flex row: date badge left + body right.
   ========================================================= */

.pjcs-event-card {
	display: flex;
	gap: 0;
	background-color: #F7F4EF; /* off-white */
	border-top: 3px solid #CF3223; /* red */
	border-radius: 2px;
	overflow: hidden;
}

/* Date Badge — left column */
.pjcs-event-card__date-badge {
	flex-shrink: 0;
	width: 72px;
	background-color: #273965; /* navy */
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding-block: 20px;
	gap: 2px;
}

.pjcs-event-card__date-month {
	font-family: 'DM Sans', sans-serif;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba( 255, 255, 255, 0.65 );
}

.pjcs-event-card__date-day {
	font-family: 'Fraunces', serif;
	font-size: 32px;
	font-weight: 400;
	line-height: 1;
	color: #ffffff;
}

/* Card body — right column */
.pjcs-event-card__body {
	flex: 1;
	min-width: 0;
	padding: 28px 28px 24px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* Event type eyebrow */
.pjcs-event-card__type {
	margin: 0;
	font-family: 'DM Sans', sans-serif;
	font-size: 9px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #CF3223; /* red */
}

/* Card title */
.pjcs-event-card__title {
	margin: 0;
	font-family: 'Fraunces', serif;
	font-size: 22px;
	font-weight: 400;
	line-height: 1.15;
	color: #273965; /* navy */
}

/* Date + time line */
.pjcs-event-card__datetime {
	margin: 0;
	font-family: 'DM Sans', sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: #2E2820; /* charcoal */
}

/* Location */
.pjcs-event-card__location {
	margin: 0;
	font-family: 'DM Sans', sans-serif;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
	color: rgba( 46, 40, 32, 0.65 ); /* charcoal 65% */
}

.pjcs-event-card__location strong {
	font-weight: 600;
	color: #2E2820;
}

/* Excerpt */
.pjcs-event-card__excerpt {
	margin: 4px 0 0;
	font-family: 'Libre Caslon Text', serif;
	font-size: 15px;
	line-height: 1.6;
	color: #2E2820; /* charcoal */
}

/* Footer row — RSVP button or details link */
.pjcs-event-card__footer {
	margin-top: 12px;
}

.pjcs-event-card__details-link {
	font-family: 'DM Sans', sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	color: #273965; /* navy */
	text-decoration: none;
	border-bottom: 1px solid rgba( 39, 57, 101, 0.30 );
	padding-bottom: 1px;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.pjcs-event-card__details-link:hover,
.pjcs-event-card__details-link:focus {
	color: #CF3223; /* red */
	border-color: #CF3223;
}

/* =========================================================
   Empty State
   Centered fallback — no events published yet.
   ========================================================= */

.pjcs-events-empty {
	text-align: center;
	max-width: 540px;
	margin-inline: auto;
	padding-block: 32px;
}

.pjcs-events-empty__icon {
	margin: 0 0 24px;
	font-size: 48px;
	line-height: 1;
}

.pjcs-events-empty__heading {
	margin: 0 0 16px;
	font-family: 'Fraunces', serif;
	font-size: 36px;
	font-weight: 400;
	color: #273965; /* navy */
}

.pjcs-events-empty__body {
	margin: 0;
	font-family: 'Libre Caslon Text', serif;
	font-size: 17px;
	line-height: 1.7;
	color: #2E2820; /* charcoal */
}

.pjcs-events-empty__body a {
	color: #CF3223; /* red */
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* =========================================================
   Responsive — Tablet ( ≤ 1024px )
   ========================================================= */

@media ( max-width: 1024px ) {
	.pjcs-events-listing__inner {
		padding-inline: 40px;
	}

	.pjcs-events-grid {
		gap: 24px;
	}
}

/* =========================================================
   Responsive — Mobile ( ≤ 768px )
   ========================================================= */

@media ( max-width: 768px ) {
	.pjcs-events-listing {
		padding-block: 64px;
	}

	.pjcs-events-listing__inner {
		padding-inline: 24px;
	}

	/* Stack to single column */
	.pjcs-events-grid {
		grid-template-columns: 1fr;
	}

	.pjcs-event-card__title {
		font-size: 20px;
	}

	/* Slightly wider date badge on narrow cards */
	.pjcs-event-card__date-badge {
		width: 64px;
	}

	.pjcs-event-card__date-day {
		font-size: 28px;
	}
}
