/* Event grid + card — see web/style-guide/DESIGN_SYSTEM.md.
   Filter chips come from campaigns.css (.gcf-campaign-filter); this file
   only adds what events need on top. */

.gcf-event-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 24px;
}

.gcf-event-toolbar .gcf-campaign-filter {
	margin-bottom: 0;
}

.gcf-segmented {
	display: inline-flex;
	background: #f3f6f9;
	border-radius: 8px;
	padding: 3px;
	gap: 2px;
}

/* Two-class guard: the Elementor kit's `.elementor-kit-* button` rule (0-1-1)
   ties a single-class selector, so double up to win regardless of load order. */
div.gcf-segmented button {
	border: none;
	background: transparent;
	padding: 8px 16px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 500;
	font-family: inherit;
	color: #5c6270;
	cursor: pointer;
	box-shadow: none;
}

div.gcf-segmented button.is-active {
	background: #ffffff;
	color: #21293b;
	box-shadow: 0 1px 3px rgba(33, 41, 59, 0.12);
}

.gcf-event-grid {
	display: grid;
	grid-template-columns: repeat(var(--gcf-grid-columns, 3), 1fr);
	gap: 24px;
}

.gcf-event-card.gcf-filter-hide {
	display: none;
}

.gcf-event-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid #21293b1a;
	border-radius: 16px;
	overflow: hidden;
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.gcf-event-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 40px rgba(33, 41, 59, 0.14);
}

.gcf-event-card__link {
	display: flex;
	flex-direction: column;
	flex: 1;
	text-decoration: none;
	color: inherit;
}

.gcf-event-card__media {
	position: relative;
	height: 180px;
	overflow: hidden;
	flex: none;
}

.gcf-event-card__img,
.gcf-event-card__media img {
	height: 100%;
	width: 100%;
	object-fit: cover;
	display: block;
}

.gcf-event-card__media--fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #e5f4fb;
	color: #0093d0;
	font-size: 40px;
}

.gcf-event-card__date {
	position: absolute;
	top: 14px;
	left: 14px;
	background: #ffffff;
	border-radius: 10px;
	padding: 8px 12px;
	text-align: center;
	box-shadow: 0 6px 24px rgba(33, 41, 59, 0.14);
}

.gcf-event-card__date-day {
	display: block;
	font-size: 18px;
	font-weight: 700;
	color: #21293b;
	line-height: 1;
}

.gcf-event-card__date-month {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #5c6270;
	margin-top: 3px;
}

.gcf-event-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px;
	flex: 1;
}

.gcf-event-card__type {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #0093d0;
}

.gcf-event-card__title {
	margin: 0;
	font-size: 19px;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.3;
	color: #21293b;
}

.gcf-event-card__meta {
	font-size: 14px;
	color: #5c6270;
}

.gcf-event-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	border-top: 1px solid #21293b1a;
	padding-top: 12px;
	margin-top: auto;
}

.gcf-event-card__price {
	font-size: 13px;
	color: #5c6270;
}

.gcf-event-card__cta {
	font-size: 14px;
	font-weight: 600;
	color: #0093d0;
	white-space: nowrap;
}

/* ---------- Single event (tribe-events/single-event.php) ---------- */

.gcf-event-single {
	max-width: 1280px;
	margin: 0 auto;
	/* Giveon's header is absolutely positioned over the page (bottom edge
	   ~120px on desktop) — clear it, plus breathing room. */
	padding: 150px 24px 64px;
}

.gcf-event-single__crumb {
	font-size: 13px;
	color: #5c6270;
	margin-bottom: 16px;
}

.gcf-event-single__crumb a {
	color: #5c6270;
	text-decoration: none;
}

.gcf-event-single__crumb a:hover {
	color: #0093d0;
}

.gcf-event-single__hero {
	height: min(44vw, 400px);
	margin-bottom: 36px;
}

.gcf-event-single__hero img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 16px;
}

.gcf-event-single__layout {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	align-items: flex-start;
}

.gcf-event-single__article {
	flex: 1 1 560px;
	min-width: 300px;
}

.gcf-event-single__metaline {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-bottom: 14px;
}

.gcf-event-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 14px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	color: #21293b;
	background: #eaf6fc;
}

.gcf-event-single__when {
	font-size: 14px;
	color: #5c6270;
}

.gcf-event-single__title {
	margin: 0 0 16px;
	font-size: clamp(30px, 3.6vw, 40px);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.2;
	color: #21293b;
}

.gcf-event-single__content {
	margin-bottom: 8px;
}

.gcf-event-single__calendar-links {
	margin-bottom: 28px;
}

.gcf-event-single .gcf-section-heading {
	margin: 28px 0 14px;
	font-size: 22px;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: #21293b;
}

.gcf-event-agenda {
	background: #ffffff;
	border: 1px solid rgba(33, 41, 59, 0.12);
	border-radius: 12px;
}

.gcf-event-agenda__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 14px 20px;
}

.gcf-event-agenda__row + .gcf-event-agenda__row {
	border-top: 1px solid rgba(33, 41, 59, 0.12);
}

.gcf-event-agenda__title {
	font-size: 15px;
	font-weight: 600;
	color: #21293b;
}

.gcf-event-agenda__subtitle {
	font-size: 13px;
	color: #5c6270;
	margin-top: 2px;
}

.gcf-event-agenda__time {
	font-size: 14px;
	font-weight: 600;
	color: #0093d0;
	white-space: nowrap;
}

.gcf-event-speakers {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
}

.gcf-event-speakers__card {
	display: flex;
	align-items: center;
	gap: 14px;
	background: #ffffff;
	border: 1px solid rgba(33, 41, 59, 0.12);
	border-radius: 12px;
	padding: 20px;
}

.gcf-event-speakers__photo {
	width: 52px;
	height: 52px;
	flex: none;
	object-fit: cover;
	border-radius: 999px;
}

.gcf-event-speakers__name {
	display: block;
	font-size: 14px;
	color: #21293b;
}

.gcf-event-speakers__role {
	font-size: 12px;
	color: #5c6270;
}

.gcf-event-single__venue {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 14px;
	color: #5c6270;
}

.gcf-event-single__venue strong {
	color: #21293b;
}

.gcf-event-single__map {
	margin-top: 12px;
}

.gcf-event-single__map iframe {
	width: 100%;
	border: 0;
	border-radius: 12px;
	display: block;
}

.gcf-event-single__sidebar {
	flex: 1 1 340px;
	min-width: 300px;
	max-width: 440px;
	position: sticky;
	top: 100px;
}

.gcf-event-tickets-card {
	background: #ffffff;
	border: 1px solid rgba(33, 41, 59, 0.12);
	border-radius: 16px;
	padding: 28px;
	box-shadow: 0 6px 24px rgba(33, 41, 59, 0.08);
}

.gcf-event-tickets-card__heading {
	margin: 0 0 16px;
	font-size: 22px;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: #21293b;
}

.gcf-event-tickets-card__note {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: #5c6270;
}

.gcf-event-tickets-card__capacity {
	margin-bottom: 20px;
}

.gcf-event-tickets-card__capacity-line {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	color: #5c6270;
	margin-bottom: 8px;
}

/* Brand the embedded Event Tickets v2 form: accent + flatten its outer
   chrome so it sits inside our card instead of drawing its own. */
.gcf-event-tickets-card .tribe-common {
	--tec-color-accent-primary: #0093d0;
	--tec-color-button-primary: #0093d0;
	--tec-color-button-primary-hover: #0074a5;
	--tec-font-family-sans-serif: inherit;
}

.gcf-event-tickets-card .tribe-tickets__tickets-wrapper,
.gcf-event-tickets-card .tribe-tickets__rsvp-wrapper {
	margin: 0;
}

.gcf-event-tickets-card .tribe-tickets__tickets-form,
.gcf-event-tickets-card .tribe-tickets__rsvp {
	box-shadow: none;
	border: 0;
	padding: 0;
	margin: 0;
}

/* Our card already has a "Tickets" heading — hide the form's duplicate. */
.gcf-event-tickets-card .tribe-tickets__tickets-title {
	display: none;
}

/* RSVP block: flatten ET's own bordered box and side-by-side layout into a
   compact stacked section that reads as part of our card. */
div.gcf-event-tickets-card .tribe-tickets__rsvp-wrapper {
	border: 0;
	padding: 0;
}

div.gcf-event-tickets-card .tribe-tickets__rsvp {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
}

div.gcf-event-tickets-card .tribe-tickets__rsvp-details-wrapper,
div.gcf-event-tickets-card .tribe-tickets__rsvp-actions-wrapper {
	padding: 0;
	border: 0;
	max-width: none;
	flex: none;
	width: 100%;
}

div.gcf-event-tickets-card .tribe-tickets__rsvp-title {
	font-size: 15px;
	font-weight: 600;
	color: #21293b;
	margin: 0 0 4px;
}

div.gcf-event-tickets-card .tribe-tickets__rsvp-details {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

div.gcf-event-tickets-card .tribe-tickets__rsvp-attendance {
	display: flex;
	flex-direction: row;
	align-items: baseline;
	gap: 5px;
	margin: 0;
}

/* Doubled class mirrors ET's own (0,3,0) modifier rule so ours outranks it. */
div.gcf-event-tickets-card .tribe-tickets__rsvp-attendance-number,
div.gcf-event-tickets-card .tribe-tickets__rsvp-attendance-number.tribe-tickets__rsvp-attendance-number--no-description {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: #21293b;
}

div.gcf-event-tickets-card .tribe-tickets__rsvp-attendance-going {
	display: inline;
	font-size: 13px;
	text-transform: none;
	color: #5c6270;
}

div.gcf-event-tickets-card .tribe-tickets__rsvp-availability {
	font-size: 13px;
	color: #5c6270;
	margin: 0;
}

/* "RSVP Here" label is redundant next to our card heading + the button. */
div.gcf-event-tickets-card .tribe-tickets__rsvp-actions-rsvp > span {
	display: none;
}

div.gcf-event-tickets-card .tribe-tickets__rsvp-actions,
div.gcf-event-tickets-card .tribe-tickets__rsvp-actions-rsvp,
div.gcf-event-tickets-card .tribe-tickets__rsvp-actions-rsvp-going {
	display: block;
	border: 0;
	padding: 0;
	margin: 0;
}

div.gcf-event-tickets-card .tribe-tickets__rsvp-actions-button-going {
	width: 100%;
	background: #0093d0;
	border-radius: 8px;
	padding: 12px 16px;
	font-weight: 600;
}

div.gcf-event-tickets-card .tribe-tickets__rsvp-actions-button-going:hover {
	background: #0074a5;
}

/* The form's desktop 3-column ticket row (title | price | stepper) cramps in
   the ~390px sidebar (ET's own breakpoint classes don't apply inside a custom
   container) — restack as title over price, stepper on the right. */
.gcf-event-tickets-card .event-tickets .tribe-tickets__tickets-item {
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-areas:
		"title quantity"
		"extra quantity";
	column-gap: 12px;
}

.gcf-event-tickets-card .event-tickets .tribe-tickets__tickets-item-content-title-container {
	grid-area: title;
}

.gcf-event-tickets-card .event-tickets .tribe-tickets__tickets-item-extra {
	grid-area: extra;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
}

.gcf-event-tickets-card .event-tickets .tribe-tickets__tickets-item-quantity {
	grid-area: quantity;
	align-self: center;
}

/* List view — one horizontal row per event, media on the left. */
.gcf-event-grid--list {
	grid-template-columns: 1fr;
}

.gcf-event-grid--list .gcf-event-card__link {
	flex-direction: row;
}

.gcf-event-grid--list .gcf-event-card__media {
	width: 260px;
	height: auto;
	min-height: 160px;
}

@media (max-width: 640px) {
	.gcf-event-grid--list .gcf-event-card__link {
		flex-direction: column;
	}

	.gcf-event-grid--list .gcf-event-card__media {
		width: 100%;
		height: 180px;
	}
}
