/**
 * Single Event Detail
 *
 * Styles the markup produced by
 * plugins/events-manager/formats/single_event_format.php.
 *
 * Events Manager wraps its output in .em.pixelbones markup, but the plugin's own
 * stylesheet is switched off site-wide via the dbem_css_limit option (set in
 * 6-post-import-fixups.sh, matching the legacy site), so there is nothing to
 * override here — these are the only rules styling this markup.
 *
 * The .calendar-detail, .content-main__inner and .events-detail wrappers emitted
 * by the format need no styling of their own — they are structural only.
 */

/* ==========================================================================
   Back link
   ========================================================================== */

/**
 * .to-archive
 * Returns to the agenda overview. The legacy theme drew the chevron with an
 * icomoon glyph; this theme uses masked inline SVG throughout (see
 * sidebar-nav.css), so the same approach is used here.
 */
.single-event .to-archive {
	display: block;
	color: var(--color-black);
	margin-bottom: 37.5px;
	text-decoration: none;
}

.single-event .to-archive:hover {
	color: var(--color-primary);
}

.single-event .to-archive::before {
	content: "";
	display: inline-block;
	width: 0.75em;
	height: 0.75em;
	margin-right: 1em;
	background-color: var(--color-primary);
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'%3E%3C/polyline%3E%3C/svg%3E");
	mask-size: contain;
	mask-repeat: no-repeat;
	mask-position: center;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'%3E%3C/polyline%3E%3C/svg%3E");
	-webkit-mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
}

/* ==========================================================================
   Event header
   ========================================================================== */

/**
 * Date block and event info sit side by side.
 * The gap lives on the column, not on .dateblock — same as production.
 */
.single-event .content-header {
	display: flex;
	margin: 0 0 50px;
}

.single-event .content-header__col:first-of-type {
	margin: 0 10px 0 0;
}

/* ==========================================================================
   Event info list
   ========================================================================== */

/**
 * Date, time, location and calendar link.
 * Reset rather than styled — the list carries no bullets or indentation.
 */
.single-event .content-header .info-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.single-event .content-header .info-list__item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.single-event .content-header .info-list__item--icallink a {
	color: var(--color-secondary);
}
