/* ===========================================================================
   EVENTS — Calendar of Events additions (BC #10093974057)

   Card grids reuse the measured .hodc-upcoming-events / .hodc-featured-events-
   4up components (their CSS ships separately and carries the Figma-measured
   values). This file only adds what the events system introduces: the date/
   schedule line, the location line, the category tabs, the View All Events
   button row, and the single-event details card.

   --- FIGMA MEASUREMENTS ---
   NOT IN FIGMA — no Figma frames exist for the Events Calendar, category
   views, or single event pages (post-launch scope; M Creative proceeding
   without a design round while Stephanie is out — BC 7/29). Every value in
   this file is therefore proposed pending review. Type/color tokens come
   from theme.json + the global is-style-eyebrow token; no new primitives.
   --- END MEASUREMENTS --- */

/* --------------------------------------------------------------------------
   Card additions — date/schedule line + location line.
   Order in card: photo → meta → title → where → copy → CTA.
   The is-style-eyebrow token supplies font/color for __meta (Source Serif
   16/21 600 +2% UPPER terracotta); only spacing + size trim is local.
   ------------------------------------------------------------------------ */
.hodc-events-card__meta {
	margin: 0 0 8px;
	font-size: 14px;              /* eyebrow token is 16px — card-scale trim */
	line-height: 19px;
}

.hodc-events-card__where {
	margin: -4px 0 12px;          /* tucks under the 12px title margin */
	font-family: "mreavesxlmodotheavy", system-ui, sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 24px;
	color: var(--wp--preset--color--primary);
}

/* Bound paragraphs render empty when an event has no value for the field
   (e.g. no location on a virtual session) — collapse them. */
.hodc-events-card__meta:empty,
.hodc-events-card__where:empty,
.hodc-events-single__details p:empty {
	display: none;
}

/* Events without a featured image: the linked featured-image block renders
   nothing, the measured 32px photo→content gap disappears with it, and the
   card text starts at the grid top — acceptable (mirrors HoP text cards). */

/* Card CTA (read-more) — keep the label white inside groups that set an
   elements.link color (News & Events page: WP emits
   `.wp-elements-x a:where(:not(.wp-element-button))` at (0,1,1), beating the
   single-class white rule). Doubled class = (0,2,0), wins regardless of
   stylesheet order. */
.wp-block-read-more.hodc-upcoming-events__cta,
.wp-block-read-more.hodc-upcoming-events__cta:visited,
.wp-block-read-more.hodc-upcoming-events__cta:hover,
.wp-block-read-more.hodc-upcoming-events__cta:focus-visible,
.wp-block-read-more.hodc-featured-events-4up__cta,
.wp-block-read-more.hodc-featured-events-4up__cta:visited,
.wp-block-read-more.hodc-featured-events-4up__cta:hover,
.wp-block-read-more.hodc-featured-events-4up__cta:focus-visible {
	color: var(--wp--preset--color--white);
}

/* Empty states — the query-no-results message when a section (or category
   view) has nothing to list. Centered lead-size line, calm spacing. */
.hodc-upcoming-events__empty,
.hodc-featured-events-4up__empty {
	text-align: center;
	font-family: "mreavesxlmodotheavy", system-ui, sans-serif;
	font-weight: 400;
	font-size: 18px;
	line-height: 28px;
	color: var(--wp--preset--color--primary);
	max-width: 640px;
	margin: 8px auto 8px;
	padding: 24px 0;
}

/* --------------------------------------------------------------------------
   Category tabs — All Events + one link per event_category term.
   Label-button token (Mr Eaves 800 12px +6% UPPER); teal at rest, terracotta
   + 2px underline when current. Centered under the page intro.
   ------------------------------------------------------------------------ */
.wp-block-group.hodc-events-tabs {
	padding: 0 24px 16px;
}

.hodc-events-tabs__nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px 32px;
	max-width: 1200px;
	margin-inline: auto;
}

.hodc-events-tabs__link {
	font-family: "mreavesxlmodotheavy", system-ui, sans-serif;
	font-weight: 800;
	font-size: 13px;
	line-height: 16px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--wp--preset--color--primary);
	padding-bottom: 6px;
	border-bottom: 2px solid transparent;
	transition: color 160ms ease, border-color 160ms ease;
}

.hodc-events-tabs__link:hover,
.hodc-events-tabs__link:focus-visible {
	color: var(--wp--preset--color--accent-text);
}

.hodc-events-tabs__link.is-current {
	color: var(--wp--preset--color--accent);
	border-bottom-color: var(--wp--preset--color--accent);
}

/* --------------------------------------------------------------------------
   Section spacing on the calendar templates. The base .hodc-upcoming-events
   component carries 80px block padding; when Upcoming + Ongoing stack, halve
   the seam so the two sections read as one page.
   ------------------------------------------------------------------------ */
.wp-block-group.hodc-events-section--upcoming {
	padding-bottom: 40px;
}

.wp-block-group.hodc-events-section--ongoing {
	padding-top: 64px;
}

/* Calendar lists can wrap to multiple rows (base component is a single-row
   3-up with row-gap 0) — give wrapped rows breathing room. */
.hodc-events-section .hodc-upcoming-events__list {
	row-gap: 64px;
}

/* View All Events button row (News & Events page section). */
.hodc-upcoming-events__viewall {
	margin-top: 48px;
	justify-content: center;
}

/* --------------------------------------------------------------------------
   Single event — details card under the title.
   ------------------------------------------------------------------------ */
.hodc-events-single__back {
	margin: 0 0 8px;
	font-family: "mreavesxlmodotheavy", system-ui, sans-serif;
	font-weight: 800;
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.hodc-events-single__back a {
	color: var(--wp--preset--color--accent);
	text-decoration: none;
}
.hodc-events-single__back a:hover,
.hodc-events-single__back a:focus-visible {
	text-decoration: underline;
}

.hodc-events-single__details {
	margin-top: 24px;
	padding: 24px 32px;
	background-color: var(--wp--preset--color--primary-10);
	border-radius: 0 24px 0 24px;
}

.hodc-events-single__meta {
	margin: 0 0 8px;
}

.hodc-events-single__where {
	margin: 0;
	font-family: "mreavesxlmodotheavy", system-ui, sans-serif;
	font-weight: 800;
	font-size: 18px;
	line-height: 28px;
	color: var(--wp--preset--color--primary);
}

.hodc-events-single__address {
	margin: 0;
	font-family: "mreavesxlmodotheavy", system-ui, sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 24px;
	color: var(--wp--preset--color--primary);
}

.hodc-events-single__details .hodc-events-register {
	margin-top: 16px;
}

/* Register button inherits the theme.json default button (filled accent). */

@media (max-width: 600px) {
	.hodc-events-single__details {
		padding: 20px 20px;
		border-radius: 0 16px 0 16px;
	}
}
