/*
 * MCS PSEO 0.1.0 — facet pages and the event link row.
 *
 * Deliberately small. Typography, link colors, headings and the page frame come
 * from the theme; this file only makes the facet column full-width and gives the
 * event list a calm, flat rhythm (no gradients, one accent, hairline dividers
 * that read on light and dark themes).
 *
 * Selectors that must beat a theme rule are compound (0,2,0 or higher) on
 * purpose: plugins can load before the theme stylesheet, so equal specificity
 * would lose the cascade.
 */

/* ---------------------------------------------------------------------------
 * Page frame
 * ------------------------------------------------------------------------ */

/*
 * The theme reserves a 245px left column for its mini sidebar, which this
 * template does not render; scope the reset to facet pages only (body class
 * added by MCS_PSEO_Template::body_class()).
 */
body.mcs-pseo .wrap-template-1 {
	margin-left: 0;
}

.content-wrap.mcs-pseo-wrap {
	width: 100%;
	float: none;
	border-right: 0;
	padding: 45px 45px 60px;
}

body .mcs-pseo-header {
	margin: 0 0 28px;
}

body .mcs-pseo-title {
	font-size: 28px;
	line-height: 1.25;
	font-weight: 700;
	margin: 0 0 10px;
	letter-spacing: -0.01em;
}

body .mcs-pseo-title .mcs-pseo-title-page {
	display: block;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0;
	opacity: 0.6;
	margin-top: 4px;
}

body .mcs-pseo-intro {
	font-size: 16px;
	line-height: 1.6;
	margin: 0 0 16px;
	max-width: 62ch;
	opacity: 0.85;
}

body .mcs-pseo-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
}

.mcs-pseo-action {
	display: inline-block;
	padding: 9px 16px;
	border-radius: 7px;
	background: #d40e67;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
}

.mcs-pseo-action:hover,
.mcs-pseo-action:focus {
	background: #b80c59;
	color: #fff;
}

.mcs-pseo-action--ghost {
	background: transparent;
	color: inherit;
	border: 1px solid rgba(128, 128, 128, 0.4);
}

.mcs-pseo-action--ghost:hover,
.mcs-pseo-action--ghost:focus {
	background: transparent;
	color: inherit;
	border-color: currentColor;
}

/* ---------------------------------------------------------------------------
 * Sections
 * ------------------------------------------------------------------------ */

body .mcs-pseo-section {
	margin: 0 0 8px;
}

body .mcs-pseo-section-title {
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.02em;
	margin: 34px 0 4px;
}

body .mcs-pseo-section-note {
	font-size: 13px;
	margin: 0 0 10px;
	opacity: 0.6;
}

/* ---------------------------------------------------------------------------
 * Event list
 * ------------------------------------------------------------------------ */

ol.mcs-pseo-events {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid rgba(128, 128, 128, 0.25);
}

li.mcs-pseo-event {
	display: grid;
	grid-template-columns: 62px minmax(0, 1fr) auto;
	gap: 4px 16px;
	align-items: start;
	padding: 16px 0;
	border-bottom: 1px solid rgba(128, 128, 128, 0.25);
	margin: 0;
}

.mcs-pseo-event-date {
	display: block;
	text-align: center;
	text-decoration: none;
	color: inherit;
	border: 1px solid rgba(128, 128, 128, 0.3);
	border-radius: 7px;
	padding: 6px 0 7px;
}

.mcs-pseo-event-date:hover {
	border-color: rgba(128, 128, 128, 0.6);
}

.mcs-pseo-event-day {
	display: block;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.1;
}

.mcs-pseo-event-month {
	display: block;
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.7;
}

body .mcs-pseo-event-title {
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
	margin: 0 0 4px;
}

.mcs-pseo-event-title a {
	text-decoration: none;
}

.mcs-pseo-event-title a:hover,
.mcs-pseo-event-title a:focus {
	text-decoration: underline;
}

body .mcs-pseo-event-meta {
	font-size: 14px;
	line-height: 1.5;
	margin: 0;
	opacity: 0.72;
}

.mcs-pseo-event-status {
	margin: 1px 0 0;
	padding: 2px 8px;
	border: 1px solid rgba(128, 128, 128, 0.35);
	border-radius: 5px;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.05em;
	line-height: 1.7;
	text-transform: uppercase;
	white-space: nowrap;
}

.mcs-pseo-event-status--soldout,
.mcs-pseo-event-status--cancelled {
	opacity: 0.6;
}

.mcs-pseo-event-status--onsale {
	border-color: #d40e67;
	color: #d40e67;
}

/* ---------------------------------------------------------------------------
 * Pagination and month navigation
 * ------------------------------------------------------------------------ */

body .mcs-pseo-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 22px 0 0;
	font-size: 14px;
}

.mcs-pseo-pagination .mcs-pseo-page-info {
	opacity: 0.6;
}

.mcs-pseo-adjacent {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	margin: 26px 0 0;
	font-size: 14px;
}

/* ---------------------------------------------------------------------------
 * Facet browse block (facet pages and the /events/ archive)
 * ------------------------------------------------------------------------ */

body .mcs-pseo-browse {
	margin: 38px 0 0;
	padding: 22px 0 0;
	border-top: 1px solid rgba(128, 128, 128, 0.25);
}

/* Inside the theme's archive column, which carries no horizontal padding. */
.mcs-pseo-browse--archive {
	padding: 0 45px 34px;
}

body .mcs-pseo-browse-title {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 12px;
}

body .mcs-pseo-browse-row {
	font-size: 14px;
	line-height: 1.95;
	margin: 0 0 4px;
}

.mcs-pseo-browse-label {
	font-weight: 600;
	margin-right: 6px;
}

.mcs-pseo-sep {
	opacity: 0.45;
}

/* ---------------------------------------------------------------------------
 * Link row appended to single event content
 * (compound selectors: the theme styles .single-content descendants)
 * ------------------------------------------------------------------------ */

.single-content .mcs-pseo-links {
	margin: 30px 0 0;
	padding-top: 18px;
	border-top: 1px solid rgba(128, 128, 128, 0.25);
}

.single-content .mcs-pseo-links .mcs-pseo-links-row {
	margin: 0 0 6px;
	font-size: 15px;
	line-height: 1.9;
}

.single-content .mcs-pseo-links .mcs-pseo-links-label {
	font-weight: 600;
	margin-right: 6px;
}

.single-content .mcs-pseo-links .mcs-pseo-links-row-dates {
	font-size: 14px;
	opacity: 0.8;
}

/* ---------------------------------------------------------------------------
 * Small screens
 * ------------------------------------------------------------------------ */

@media (max-width: 780px) {
	.content-wrap.mcs-pseo-wrap {
		padding: 30px 0 45px;
	}

	body .mcs-pseo-title {
		font-size: 23px;
	}

	.mcs-pseo-browse--archive {
		padding: 0 0 30px;
	}

	li.mcs-pseo-event {
		grid-template-columns: 56px minmax(0, 1fr);
	}

	.mcs-pseo-event-status {
		grid-column: 2;
		justify-self: start;
		margin-top: 8px;
	}
}
