/* IGBG Events — matches the kit: Slate #4C505E, Red #C02D33, Gold #F6A727, Green #009449,
   Cool Grey #DEE0D5, Half Slate #A1A3B1. Labels DIN 1451, body Georgia, headings Helvetica. */

.igbg-ev-filter, .igbg-ev-feature, .igbg-ev-rows, .igbg-ev-recent, .igbg-ev-grid, .igbg-ev-head, .igbg-ev-panel, .igbg-ev-body, .igbg-ev-count, .igbg-ev-pages, .igbg-ev-empty {
	--ev-slate: #4C505E; --ev-red: #C02D33; --ev-gold: #F6A727; --ev-green: #009449;
	--ev-grey: #DEE0D5; --ev-line: #C9CCC0; --ev-half: #A1A3B1;
	--ev-label: din-1451-lt-pro, "DIN 1451", "Arial Narrow", sans-serif;
	--ev-serif: Georgia, "Times New Roman", serif;
	--ev-sans: Helvetica, Arial, sans-serif;
	color: var(--ev-slate);
}

/* Shared bits ------------------------------------------------------------ */
.igbg-ev-eyebrow, .igbg-ev-showing, .igbg-ev-count, .igbg-ev-more, .igbg-ev-link, .igbg-ev-row__venue,
.igbg-ev-facts dt, .igbg-ev-head__eyebrow, .igbg-ev-cal span, .igbg-ev-recent__meta {
	font-family: var(--ev-label); font-size: 13px; line-height: 1.3; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 400;
}
.igbg-ev-eyebrow { margin: 0; color: var(--ev-slate); }
.igbg-ev-more, .igbg-ev-link { color: var(--ev-red); text-decoration: none; }
.igbg-ev-link:hover, .igbg-ev-link:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

.igbg-ev-badge {
	display: inline-block; vertical-align: middle; margin-left: 12px; padding: 4px 10px;
	font-family: var(--ev-label); font-size: 12px; line-height: 1.3; letter-spacing: 1.2px; text-transform: uppercase;
	background: var(--ev-slate); color: #fff;
}
.igbg-ev-badge--open { background: var(--ev-green); }
.igbg-ev-badge--held { background: var(--ev-half); color: var(--ev-slate); }
.igbg-ev-feature__tags .igbg-ev-badge { margin: 0 14px 0 0; }

.igbg-ev-btn {
	display: inline-block; padding: 16px 28px; font-family: var(--ev-label); font-size: 13px; line-height: 1.3;
	letter-spacing: 1.2px; text-transform: uppercase; text-decoration: none; border: 1px solid var(--ev-slate);
	transition: background-color .15s, color .15s, border-color .15s;
}
.igbg-ev-btn--primary { background: var(--ev-red); border-color: var(--ev-red); color: #fff; }
.igbg-ev-btn--primary:hover, .igbg-ev-btn--primary:focus-visible { background: var(--ev-slate); border-color: var(--ev-slate); color: #fff; }
.igbg-ev-btn--outline { background: transparent; color: var(--ev-slate); }
.igbg-ev-btn--outline:hover, .igbg-ev-btn--outline:focus-visible { background: var(--ev-slate); color: #fff; }

.igbg-ev-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.igbg-ev-img--none {
	display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; box-sizing: border-box;
	background: var(--ev-slate); color: #fff; border-top: 3px solid var(--ev-red);
}
.igbg-ev-img__day { font-family: var(--ev-sans); font-weight: 500; font-size: 72px; line-height: 1; }
.igbg-ev-img__my { font-family: var(--ev-label); font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ev-gold); margin-top: 6px; }

.igbg-ev-empty { padding: 32px; background: #fff; border-left: 3px solid var(--ev-gold); }
.igbg-ev-empty p { margin: 0 0 8px; font-family: var(--ev-serif); font-size: 17px; line-height: 1.65; }
.igbg-ev-empty p:last-child { margin: 0; }

/* Filter ------------------------------------------------------------------ */
.igbg-ev-filter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.igbg-ev-chips ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.igbg-ev-chip {
	display: inline-block; padding: 8px 14px; border: 1px solid var(--ev-slate); color: var(--ev-slate); text-decoration: none;
	font-family: var(--ev-label); font-size: 13px; line-height: 1.3; letter-spacing: 1.2px; text-transform: uppercase;
	transition: background-color .15s, color .15s;
}
.igbg-ev-chip:hover, .igbg-ev-chip:focus-visible, .igbg-ev-chip[aria-current] { background: var(--ev-slate); color: #fff; }
.igbg-ev-showing { margin: 0; color: var(--ev-slate); }

.igbg-ev-year { display: flex; align-items: center; gap: 10px; margin: 0; }
.igbg-ev-year label { margin: 0; font-family: var(--ev-label) !important; font-size: 13px !important; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ev-slate); }
.igbg-ev-year select {
	min-width: 140px; height: 37px; padding: 0 32px 0 12px; border: 1px solid var(--ev-slate); border-radius: 0; background-color: #fff;
	font-family: var(--ev-serif); font-size: 15px; color: var(--ev-slate);
}
.igbg-ev-year button {
	height: 37px; padding: 0 16px !important; border: 1px solid var(--ev-slate) !important; border-radius: 0 !important;
	background: var(--ev-slate) !important; color: #fff !important; cursor: pointer;
	font-family: var(--ev-label) !important; font-size: 13px !important; letter-spacing: 1.2px !important; text-transform: uppercase !important;
}
.igbg-ev-year button:hover, .igbg-ev-year button:focus-visible { background: var(--ev-red) !important; border-color: var(--ev-red) !important; }

/* Featured (next event) ---------------------------------------------------- */
.igbg-ev-feature { display: grid; grid-template-columns: minmax(0, 47fr) minmax(0, 53fr); gap: 40px; align-items: start; }
.igbg-ev-feature__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ev-grey); }
.igbg-ev-feature__media .igbg-ev-img--none { padding: 40px; }
.igbg-ev-feature__media .igbg-ev-img__day { font-size: 120px; }
.igbg-ev-feature__body { display: flex; flex-direction: column; gap: 14px; }
.igbg-ev-feature__tags { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0; }
.igbg-ev-feature__title { margin: 0; font-family: var(--ev-sans); font-weight: 500; font-size: 36px; line-height: 1.15; }
.igbg-ev-feature__title a { color: inherit; text-decoration: none; }
.igbg-ev-feature__title a:hover, .igbg-ev-feature__title a:focus-visible { color: var(--ev-red); }
.igbg-ev-feature__text { margin: 0; font-family: var(--ev-serif); font-size: 17px; line-height: 1.65; }
.igbg-ev-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0 0; }

.igbg-ev-facts { margin: 0; padding: 0; }
.igbg-ev-facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--ev-grey); }
.igbg-ev-facts > div:first-child { border-top: 1px solid var(--ev-grey); }
.igbg-ev-facts dt { flex: 0 0 auto; margin: 0; }
.igbg-ev-facts dd { margin: 0; text-align: right; font-family: var(--ev-serif); font-size: 15px; line-height: 1.5; }

/* Rows (also coming up) --------------------------------------------------- */
.igbg-ev-rows { display: flex; flex-direction: column; gap: 12px; }
.igbg-ev-row {
	position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 28px; align-items: start;
	padding: 28px 32px; background: #fff; transition: box-shadow .15s;
}
.igbg-ev-row:hover, .igbg-ev-row:focus-within { box-shadow: inset 4px 0 0 var(--ev-red); }
.igbg-ev-date { display: flex; flex-direction: column; gap: 4px; padding-top: 10px; border-top: 3px solid var(--ev-red); }
.igbg-ev-date__day { font-family: var(--ev-sans); font-weight: 500; font-size: 36px; line-height: 1.1; white-space: nowrap; }
.igbg-ev-date__my { font-family: var(--ev-label); font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; }
.igbg-ev-row__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.igbg-ev-row__title { margin: 0; font-family: var(--ev-sans); font-weight: 500; font-size: 26px; line-height: 1.2; }
.igbg-ev-row__title a { color: inherit; text-decoration: none; }
.igbg-ev-row__title a::after { content: ""; position: absolute; inset: 0; }
.igbg-ev-row__title a:focus-visible { outline: none; }
.igbg-ev-row:focus-within { outline: 2px solid var(--ev-slate); outline-offset: 2px; }
.igbg-ev-row:hover .igbg-ev-row__title a { color: var(--ev-red); }
.igbg-ev-row__when { margin: 0; font-family: var(--ev-serif); font-size: 15px; font-style: italic; line-height: 1.5; }
.igbg-ev-row__text { margin: 0; font-family: var(--ev-serif); font-size: 17px; line-height: 1.65; }
.igbg-ev-row__venue { margin: 0; color: var(--ev-slate); }
.igbg-ev-row .igbg-ev-more { align-self: center; white-space: nowrap; }

/* Recently held ----------------------------------------------------------- */
.igbg-ev-recent { margin: 0; padding: 0; list-style: none; }
.igbg-ev-recent li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--ev-line); }
.igbg-ev-recent li:first-child { border-top: 1px solid var(--ev-line); }
.igbg-ev-recent a { font-family: var(--ev-serif); font-size: 17px; line-height: 1.5; color: var(--ev-slate); text-decoration: none; }
.igbg-ev-recent a:hover, .igbg-ev-recent a:focus-visible { color: var(--ev-red); text-decoration: underline; text-underline-offset: 3px; }
.igbg-ev-recent__meta { flex: 0 0 auto; }

/* Past grid ----------------------------------------------------------------- */
.igbg-ev-count { margin: 0 0 20px; }
.igbg-ev-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.igbg-ev-card { position: relative; display: flex; flex-direction: column; background: #fff; transition: box-shadow .15s; }
.igbg-ev-card:hover, .igbg-ev-card:focus-within { box-shadow: inset 0 -4px 0 var(--ev-red); }
.igbg-ev-card:focus-within { outline: 2px solid var(--ev-slate); outline-offset: 2px; }
.igbg-ev-card__media { height: 200px; overflow: hidden; background: var(--ev-grey); }
.igbg-ev-card__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 24px; }
.igbg-ev-card__title { margin: 0; font-family: var(--ev-sans); font-weight: 500; font-size: 24px; line-height: 1.2; }
.igbg-ev-card__title a { color: inherit; text-decoration: none; }
.igbg-ev-card__title a::after { content: ""; position: absolute; inset: 0; }
.igbg-ev-card__title a:focus-visible { outline: none; }
.igbg-ev-card:hover .igbg-ev-card__title a { color: var(--ev-red); }
.igbg-ev-card__text { margin: 0; font-family: var(--ev-serif); font-size: 16px; line-height: 1.6; }
.igbg-ev-card .igbg-ev-more { margin-top: auto; padding-top: 6px; }

.igbg-ev-pages ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 40px 0 0; padding: 0; list-style: none; }
.igbg-ev-pages a, .igbg-ev-pages__gap {
	display: inline-block; min-width: 40px; padding: 8px 12px; box-sizing: border-box; text-align: center;
	font-family: var(--ev-label); font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; line-height: 1.3;
	color: var(--ev-slate); text-decoration: none; border: 1px solid var(--ev-slate); background: #fff;
}
.igbg-ev-pages__gap { border-color: transparent; background: none; }
.igbg-ev-pages a:hover, .igbg-ev-pages a:focus-visible, .igbg-ev-pages a[aria-current] { background: var(--ev-slate); color: #fff; }

/* Single event ------------------------------------------------------------ */
.igbg-ev-head { display: flex; flex-direction: column; gap: 14px; max-width: 980px; }
.igbg-ev-head__eyebrow { display: flex; align-items: center; gap: 12px; margin: 0; }
.igbg-ev-head__eyebrow a { color: var(--ev-gold); text-decoration: none; }
.igbg-ev-head__eyebrow a:hover, .igbg-ev-head__eyebrow a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.igbg-ev-head__eyebrow .igbg-ev-badge { margin: 0; }
.igbg-ev-head__title { margin: 0; font-family: var(--ev-sans); font-weight: 700; font-size: 56px; line-height: 1.05; letter-spacing: .5px; color: #fff; }
.igbg-ev-head__when { margin: 0; font-family: var(--ev-serif); font-size: 22px; line-height: 1.5; color: #fff; }

.igbg-ev-body { display: flex; flex-direction: column; gap: 28px; }
.igbg-ev-note { margin: 0; padding: 16px 20px; background: var(--ev-grey); border-left: 3px solid var(--ev-gold); font-family: var(--ev-serif); font-size: 16px; }
.igbg-ev-note a { color: var(--ev-red); }
.igbg-ev-body__img { margin: 0; }
.igbg-ev-body__img img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; }
.igbg-ev-prose { font-family: var(--ev-serif); font-size: 17px; line-height: 1.7; max-width: 72ch; overflow-wrap: anywhere; }
.igbg-ev-prose > *:first-child { margin-top: 0; }
.igbg-ev-prose p { margin: 0 0 1.1em; }
.igbg-ev-prose a { color: var(--ev-red); text-underline-offset: 3px; }
.igbg-ev-prose img { max-width: 100%; height: auto; }
.igbg-ev-prose h2, .igbg-ev-prose h3, .igbg-ev-prose h4 { font-family: var(--ev-sans); font-weight: 500; color: var(--ev-slate); margin: 1.6em 0 .5em; line-height: 1.2; }
.igbg-ev-prose h2 { font-size: 30px; } .igbg-ev-prose h3 { font-size: 24px; } .igbg-ev-prose h4 { font-size: 20px; }
.igbg-ev-prose ul, .igbg-ev-prose ol { margin: 0 0 1.1em 1.2em; padding: 0; }

.igbg-ev-panel { padding: 28px; background: #fff; border: 1px solid var(--ev-grey); border-top: 3px solid var(--ev-red); }
.igbg-ev-panel .igbg-ev-facts > div { flex-direction: column; gap: 6px; padding: 14px 0; }
.igbg-ev-panel .igbg-ev-facts > div:first-child { border-top: 0; padding-top: 0; }
.igbg-ev-panel .igbg-ev-facts dd { text-align: left; font-size: 17px; }
.igbg-ev-panel .igbg-ev-facts dd a:not(.igbg-ev-link) { color: var(--ev-slate); }
.igbg-ev-facts__sub { display: block; font-size: 15px; color: var(--ev-slate); opacity: .85; margin: 2px 0 6px; }
.igbg-ev-panel__actions { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.igbg-ev-panel__actions .igbg-ev-btn { text-align: center; }
.igbg-ev-cal { margin: 0; font-family: var(--ev-serif); font-size: 15px; line-height: 1.6; }
.igbg-ev-cal span:first-child { display: block; margin-bottom: 4px; }
.igbg-ev-cal a { color: var(--ev-red); }
.igbg-ev-panel__back { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--ev-grey); }
@media (min-width: 1025px) {
	.igbg-ev-sticky { position: sticky; top: 24px; }
	.admin-bar .igbg-ev-sticky { top: 56px; }
}

/* Responsive ---------------------------------------------------------------- */
@media (max-width: 1024px) {
	.igbg-ev-feature { grid-template-columns: 1fr; gap: 28px; }
	.igbg-ev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.igbg-ev-head__title { font-size: 44px; }
}
@media (max-width: 767px) {
	.igbg-ev-filter { flex-direction: column; align-items: flex-start; }
	.igbg-ev-chips { max-width: 100%; }
	.igbg-ev-chips ul { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
	.igbg-ev-chip { white-space: nowrap; }
	.igbg-ev-feature__title { font-size: 28px; }
	.igbg-ev-feature__media .igbg-ev-img__day { font-size: 80px; }
	.igbg-ev-row { grid-template-columns: 72px minmax(0, 1fr); gap: 18px; padding: 22px 20px; }
	.igbg-ev-row .igbg-ev-more { display: none; }
	.igbg-ev-date__day { font-size: 28px; }
	.igbg-ev-row__title { font-size: 21px; }
	.igbg-ev-row__title .igbg-ev-badge { margin: 8px 0 0; display: table; }
	.igbg-ev-grid { grid-template-columns: 1fr; }
	.igbg-ev-recent li { flex-direction: column; gap: 4px; }
	.igbg-ev-head__title { font-size: 34px; }
	.igbg-ev-head__when { font-size: 18px; }
	.igbg-ev-panel { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
	.igbg-ev-row, .igbg-ev-card, .igbg-ev-chip, .igbg-ev-btn { transition: none; }
}
/* Kit link colour (.elementor-kit-4 a) beats single-class rules: restate link colours with higher specificity. */
.elementor .igbg-ev-chip { color: var(--ev-slate); }
.elementor .igbg-ev-chip:hover, .elementor .igbg-ev-chip:focus-visible, .elementor .igbg-ev-chip[aria-current] { color: #fff; }
.elementor .igbg-ev-btn--primary, .elementor .igbg-ev-btn--primary:hover, .elementor .igbg-ev-btn--primary:focus-visible { color: #fff; }
.elementor .igbg-ev-btn--outline { color: var(--ev-slate); }
.elementor .igbg-ev-btn--outline:hover, .elementor .igbg-ev-btn--outline:focus-visible { color: #fff; }
.elementor .igbg-ev-feature__title a, .elementor .igbg-ev-row__title a, .elementor .igbg-ev-card__title a, .elementor .igbg-ev-recent a { color: var(--ev-slate); }
.elementor .igbg-ev-feature__title a:hover, .elementor .igbg-ev-feature__title a:focus-visible, .elementor .igbg-ev-row:hover .igbg-ev-row__title a, .elementor .igbg-ev-card:hover .igbg-ev-card__title a, .elementor .igbg-ev-recent a:hover, .elementor .igbg-ev-recent a:focus-visible { color: var(--ev-red); }
.elementor .igbg-ev-pages a { color: var(--ev-slate); }
.elementor .igbg-ev-pages a:hover, .elementor .igbg-ev-pages a:focus-visible, .elementor .igbg-ev-pages a[aria-current] { color: #fff; }
.elementor .igbg-ev-head__eyebrow a { color: var(--ev-gold); }
.elementor .igbg-ev-panel .igbg-ev-facts dd a:not(.igbg-ev-link) { color: var(--ev-slate); }
.elementor .igbg-ev-link, .elementor .igbg-ev-prose a, .elementor .igbg-ev-cal a, .elementor .igbg-ev-note a { color: var(--ev-red); }
.elementor .igbg-ev-head__title, .elementor .igbg-ev-head__when { color: #fff; }
.elementor .igbg-ev-feature__title, .elementor .igbg-ev-row__title, .elementor .igbg-ev-card__title { color: var(--ev-slate); }
.igbg-ev-crumbs a { color: inherit; text-underline-offset: 3px; }

@media (max-width: 767px) { .igbg-ev-chips ul { flex-wrap: wrap; overflow: visible; padding-bottom: 0; } .igbg-ev-chip { white-space: normal; padding: 7px 11px; } .igbg-ev-year { flex-wrap: wrap; } }

.elementor .igbg-ev-card__media img.igbg-ev-img, .elementor .igbg-ev-feature__media img.igbg-ev-img { width: 100%; height: 100%; max-width: none; object-fit: cover; }

/* Compact list (home page "Guild events") ------------------------------- */
.igbg-ev-compact {
	--ev-slate: #4C505E; --ev-red: #C02D33; --ev-line: #C9CCC0;
	margin: 0; padding: 0; list-style: none; color: var(--ev-slate);
}
.igbg-ev-compact li { position: relative; display: flex; gap: 24px; padding: 18px 0; border-top: 1px solid var(--ev-line); }
.igbg-ev-compact__date {
	flex: 0 0 120px; font-family: din-1451-lt-pro, "DIN 1451", "Arial Narrow", sans-serif; font-size: 13px; line-height: 1.3;
	letter-spacing: 1.2px; text-transform: uppercase; color: var(--ev-red);
}
.igbg-ev-compact__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.elementor .igbg-ev-compact__title { font-family: Helvetica, Arial, sans-serif; font-weight: 500; font-size: 17px; line-height: 1.15; color: var(--ev-slate); text-decoration: none; }
.igbg-ev-compact__title::after { content: ""; position: absolute; inset: 0; }
.elementor .igbg-ev-compact li:hover .igbg-ev-compact__title { color: var(--ev-red); }
.igbg-ev-compact li:focus-within { outline: 2px solid var(--ev-slate); outline-offset: 2px; }
.igbg-ev-compact__title:focus-visible { outline: none; }
.igbg-ev-compact__venue { font-family: Georgia, "Times New Roman", serif; font-size: 14px; line-height: 1.6; }
@media (max-width: 767px) { .igbg-ev-compact__date { flex-basis: 96px; } .igbg-ev-compact li { gap: 16px; } }