/* Queen Bee Events – front end
   Black, white & Queen Bee yellow · serif headings · honeycomb accents */

.qbe {
	--qbe-accent: #F5C400;
	--qbe-accent-dark: #D9AD00;
	--qbe-ink: #111111;
	--qbe-text: #2a2a2a;
	--qbe-muted: #6a6a6a;
	--qbe-line: #ebe6d8;
	--qbe-cream: #fbf7ea;
	--qbe-white: #ffffff;
	--qbe-radius: 14px;
	--qbe-radius-sm: 8px;
	--qbe-shadow: 0 1px 2px rgba(17, 17, 17, .05), 0 8px 24px rgba(17, 17, 17, .07);
	--qbe-shadow-hover: 0 2px 4px rgba(17, 17, 17, .06), 0 16px 36px rgba(17, 17, 17, .12);
	--qbe-heading-font: "Playfair Display", Georgia, "Times New Roman", serif;
	--qbe-honey: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cpath fill='%23F5C400' d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/svg%3E");
	color: var(--qbe-text);
	font-size: 16px;
	line-height: 1.6;
	box-sizing: border-box;
}
.qbe *, .qbe *::before, .qbe *::after { box-sizing: border-box; }
.qbe-events { max-width: 1200px; margin: 0 auto; padding: 8px 0 24px; }
.qbe .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.qbe [hidden] { display: none !important; }
.qbe-icon { flex: 0 0 auto; width: 1.1em; height: 1.1em; vertical-align: -0.18em; }

/* ---------- Header ---------- */
.qbe-head { margin: 0 0 28px; }
.qbe .qbe-eyebrow {
	margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .22em;
	text-transform: uppercase; color: var(--qbe-muted);
}
.qbe .qbe-title, .qbe .qbe-form-title, .qbe-dialog .qbe-form-title {
	margin: 0; font-family: var(--qbe-heading-font); font-weight: 700;
	font-size: clamp(30px, 4.2vw, 44px); line-height: 1.15; color: var(--qbe-ink); letter-spacing: -.01em;
}
.qbe-bar { display: block; width: 46px; height: 4px; border-radius: 4px; background: var(--qbe-accent); margin: 14px 0 16px; }
.qbe .qbe-intro { margin: 0; max-width: 720px; color: var(--qbe-muted); font-size: 17px; }

/* ---------- Buttons ---------- */
.qbe .qbe-btn, .qbe-dialog .qbe-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .45em;
	min-height: 46px; padding: 11px 22px; border-radius: 6px; border: 2px solid transparent;
	font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none !important;
	cursor: pointer; transition: background-color .18s, border-color .18s, color .18s, transform .18s, box-shadow .18s;
	box-shadow: none; text-transform: none; letter-spacing: 0; white-space: nowrap;
}
.qbe .qbe-btn--sm, .qbe-dialog .qbe-btn--sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.qbe .qbe-btn--primary, .qbe-dialog .qbe-btn--primary, .qbe .qbe-btn--primary:focus, .qbe-dialog .qbe-btn--primary:focus { background: var(--qbe-accent); color: var(--qbe-ink) !important; border-color: var(--qbe-accent); }
.qbe .qbe-btn--primary:hover, .qbe-dialog .qbe-btn--primary:hover { background: var(--qbe-ink); border-color: var(--qbe-ink); color: var(--qbe-accent) !important; }
.qbe .qbe-btn--ghost, .qbe-dialog .qbe-btn--ghost { background: var(--qbe-white); color: var(--qbe-ink) !important; border-color: #dcd7c9; }
.qbe .qbe-btn--ghost:hover, .qbe-dialog .qbe-btn--ghost:hover { border-color: var(--qbe-ink); }
.qbe .qbe-btn--link, .qbe-dialog .qbe-btn--link { background: none; color: var(--qbe-ink) !important; padding-left: 4px; padding-right: 4px; text-decoration: underline !important; text-underline-offset: 3px; text-decoration-color: var(--qbe-accent) !important; text-decoration-thickness: 2px !important; }
.qbe .qbe-btn:focus-visible, .qbe-dialog .qbe-btn:focus-visible,
.qbe a:focus-visible, .qbe button:focus-visible, .qbe summary:focus-visible,
.qbe input:focus-visible, .qbe select:focus-visible, .qbe textarea:focus-visible,
.qbe-dialog a:focus-visible, .qbe-dialog button:focus-visible, .qbe-dialog summary:focus-visible {
	outline: 3px solid var(--qbe-ink); outline-offset: 2px; box-shadow: 0 0 0 6px rgba(245, 196, 0, .45);
}
.qbe .qbe-btn[disabled], .qbe-dialog .qbe-btn[disabled] { opacity: .65; cursor: progress; }
.qbe .qbe-link, .qbe-dialog .qbe-link { color: var(--qbe-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--qbe-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.qbe .qbe-link:hover, .qbe-dialog .qbe-link:hover { text-decoration-color: var(--qbe-ink); }

/* ---------- Toolbar ---------- */
.qbe-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 0 0 24px; }
.qbe-tabs { display: inline-flex; padding: 4px; background: var(--qbe-cream); border: 1px solid var(--qbe-line); border-radius: 999px; }
.qbe .qbe-tab {
	display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 18px; margin: 0;
	border: 0; border-radius: 999px; background: transparent; color: var(--qbe-ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: none;
}
.qbe .qbe-tab:hover { background: rgba(245, 196, 0, .25); color: var(--qbe-ink); }
.qbe .qbe-tab:focus, .qbe .qbe-tab:active { background: transparent; color: var(--qbe-ink); }
.qbe .qbe-tab.is-active, .qbe .qbe-tab.is-active:hover, .qbe .qbe-tab.is-active:focus, .qbe .qbe-tab.is-active:active { background: var(--qbe-ink); color: var(--qbe-white); }
.qbe button, .qbe-dialog button { -webkit-tap-highlight-color: transparent; }
.qbe-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.qbe .qbe-filter__btn {
	min-height: 36px; padding: 6px 14px; margin: 0; border: 1px solid #dcd7c9; border-radius: 999px; background: var(--qbe-white);
	color: var(--qbe-ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: none;
}
.qbe .qbe-filter__btn:hover { border-color: var(--qbe-ink); background: var(--qbe-white); color: var(--qbe-ink); }
.qbe .qbe-filter__btn:focus { background: var(--qbe-white); color: var(--qbe-ink); }
.qbe .qbe-filter__btn.is-active, .qbe .qbe-filter__btn.is-active:focus { background: var(--qbe-accent); border-color: var(--qbe-accent); color: var(--qbe-ink); }

/* ---------- Cards ---------- */
.qbe-grid { display: grid; gap: 28px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.qbe-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qbe-card {
	position: relative; display: flex; flex-direction: column; min-width: 0;
	background: var(--qbe-white); border: 1px solid var(--qbe-line); border-radius: var(--qbe-radius);
	box-shadow: var(--qbe-shadow); overflow: visible; transition: box-shadow .2s, transform .2s;
}
.qbe-card:hover { box-shadow: var(--qbe-shadow-hover); transform: translateY(-2px); }
.qbe-card__media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--qbe-radius) var(--qbe-radius) 0 0; overflow: hidden; background: var(--qbe-ink); }
.qbe-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; }
.qbe-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.qbe .qbe-chip {
	display: inline-block; align-self: flex-start; margin: 0 0 10px; padding: 4px 10px; border-radius: 999px;
	background: rgba(245, 196, 0, .2); color: #5c4a00; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1.4;
}
.qbe .qbe-card__title { margin: 0 0 12px; font-family: var(--qbe-heading-font); font-size: 22px; font-weight: 700; line-height: 1.25; color: var(--qbe-ink); }
.qbe .qbe-card__title a { color: inherit; text-decoration: none; background-image: linear-gradient(var(--qbe-accent), var(--qbe-accent)); background-size: 0 3px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .25s; }
.qbe .qbe-card__title a:hover { background-size: 100% 3px; }
.qbe .qbe-meta { list-style: none; margin: 0 0 14px; padding: 0; font-size: 15px; }
.qbe .qbe-meta li { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 7px; padding: 0; }
.qbe .qbe-meta li::before { display: none; }
.qbe .qbe-meta .qbe-icon { color: var(--qbe-accent-dark); margin-top: .22em; }
.qbe .qbe-meta strong { color: var(--qbe-ink); font-weight: 700; }
.qbe .qbe-card__excerpt { margin: 0 0 16px; color: var(--qbe-muted); font-size: 15px; }
.qbe-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }

/* Date badge on images */
.qbe-datebadge {
	position: absolute; top: 14px; left: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center;
	min-width: 58px; padding: 6px 8px 8px; border-radius: 10px; background: var(--qbe-white); color: var(--qbe-ink);
	box-shadow: 0 4px 14px rgba(0, 0, 0, .18); line-height: 1; text-align: center;
}
.qbe-datebadge span { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--qbe-muted); }
.qbe-datebadge strong { margin-top: 4px; font-family: var(--qbe-heading-font); font-size: 26px; }

/* Status badge */
.qbe-status {
	position: absolute; top: 14px; right: 14px; padding: 5px 12px; border-radius: 999px;
	background: var(--qbe-ink); color: var(--qbe-white); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.qbe-status--cancelled { background: #b42318; }
.qbe-status--postponed { background: var(--qbe-ink); color: var(--qbe-accent); }
.qbe-status--inline { position: static; display: inline-block; }
.qbe-card--cancelled .qbe-card__title a { text-decoration: line-through; text-decoration-color: rgba(17, 17, 17, .45); }

/* Placeholder when no flyer has been uploaded yet: honeycomb + date */
.qbe-ph {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%;
	background-color: var(--qbe-ink); background-image: var(--qbe-honey); background-size: 34px auto; color: var(--qbe-white); text-align: center;
	isolation: isolate;
}
.qbe-ph::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: radial-gradient(ellipse at center, rgba(17, 17, 17, .55) 0%, rgba(17, 17, 17, .92) 62%, rgba(17, 17, 17, .98) 100%);
}
.qbe-ph::after {
	content: ""; position: absolute; left: 50%; top: 50%; width: 168px; height: 168px; transform: translate(-50%, -50%); z-index: -1;
	clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%); background: rgba(245, 196, 0, .12); border: 0;
}
.qbe-ph__month { font-size: 15px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--qbe-accent); padding-left: .3em; }
.qbe-ph__day { font-family: var(--qbe-heading-font); font-size: 76px; font-weight: 700; line-height: 1; margin: 4px 0 6px; }
.qbe-ph__weekday { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; opacity: .8; padding-left: .2em; }

/* Single upcoming event: featured horizontal card */
.qbe-grid--1 { grid-template-columns: minmax(0, 1fr); }
.qbe-grid--1 .qbe-card { flex-direction: row; }
.qbe-grid--1 .qbe-card__media { flex: 0 0 44%; aspect-ratio: auto; min-height: 340px; border-radius: var(--qbe-radius) 0 0 var(--qbe-radius); }
.qbe-grid--1 .qbe-card__body { padding: 34px 38px; justify-content: center; }
.qbe-grid--1 .qbe-card__title { font-size: clamp(26px, 3vw, 34px); }
.qbe-grid--1 .qbe-meta { font-size: 16px; }
.qbe-grid--1 .qbe-card__actions { margin-top: 10px; }
.qbe-grid--1 .qbe-ph__day { font-size: 104px; }
.qbe-grid--1 .qbe-ph::after { width: 220px; height: 220px; }

/* Add to calendar menu */
.qbe-addcal { position: relative; display: inline-block; }
.qbe-addcal > summary { list-style: none; }
.qbe-addcal > summary::-webkit-details-marker { display: none; }
.qbe-addcal > summary::marker { content: ""; }
.qbe-addcal__menu {
	position: absolute; z-index: 30; left: 0; top: calc(100% + 6px); min-width: 200px; padding: 6px;
	background: var(--qbe-white); border: 1px solid var(--qbe-line); border-radius: 10px; box-shadow: var(--qbe-shadow-hover);
}
.qbe-addcal__menu a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--qbe-ink) !important; font-size: 14px; font-weight: 600; text-decoration: none !important; }
.qbe-addcal__menu a:hover, .qbe-addcal__menu a:focus-visible { background: var(--qbe-cream); }

/* Empty state */
.qbe-empty {
	padding: 48px 24px; text-align: center; border: 2px dashed var(--qbe-line); border-radius: var(--qbe-radius);
	background: var(--qbe-cream);
}
.qbe-empty__icon { display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: 50%; background: var(--qbe-accent); color: var(--qbe-ink); font-size: 24px; margin-bottom: 10px; }
.qbe .qbe-empty__title { margin: 0 0 4px; font-family: var(--qbe-heading-font); font-size: 22px; font-weight: 700; color: var(--qbe-ink); }
.qbe-empty p { margin: 0; color: var(--qbe-muted); }

/* ---------- Calendar ---------- */
.qbe-cal { background: var(--qbe-white); border: 1px solid var(--qbe-line); border-radius: var(--qbe-radius); box-shadow: var(--qbe-shadow); overflow: hidden; }
.qbe-cal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; background: var(--qbe-ink); color: var(--qbe-white); }
.qbe .qbe-cal__month { margin: 0; font-family: var(--qbe-heading-font); font-size: 24px; font-weight: 700; color: var(--qbe-white); }
.qbe .qbe-cal__nav {
	display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin: 0; padding: 0;
	border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; background: transparent; color: var(--qbe-white); cursor: pointer; box-shadow: none;
}
.qbe .qbe-cal__nav:hover { background: var(--qbe-accent); border-color: var(--qbe-accent); color: var(--qbe-ink); }
.qbe .qbe-cal__nav .qbe-icon { width: 22px; height: 22px; }
.qbe-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.qbe-cal__wd { padding: 10px 6px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-align: center; color: var(--qbe-muted); background: var(--qbe-cream); border-bottom: 1px solid var(--qbe-line); }
.qbe-cal__day { min-height: 100px; padding: 8px; border-right: 1px solid var(--qbe-line); border-bottom: 1px solid var(--qbe-line); }
.qbe-cal__day:nth-child(7n) { border-right: 0; }
.qbe-cal__day.is-out { background: #fcfbf7; }
.qbe-cal__day.is-out .qbe-cal__num { color: #c4c0b4; }
.qbe-cal__num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; font-size: 13px; font-weight: 600; color: var(--qbe-ink); }
.qbe-cal__day.is-today .qbe-cal__num { background: var(--qbe-ink); color: var(--qbe-white); }
.qbe-cal__day.has-events { background: #fffbea; }
.qbe .qbe-cal__ev {
	display: block; width: 100%; margin: 4px 0 0; padding: 6px 8px; border: 0; border-left: 3px solid var(--qbe-ink); border-radius: 6px;
	background: var(--qbe-accent); color: var(--qbe-ink); font: inherit; font-size: 12px; font-weight: 700; line-height: 1.3; text-align: left; cursor: pointer;
	box-shadow: none; white-space: normal;
}
.qbe-cal__evt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qbe .qbe-cal__ev:hover { background: var(--qbe-ink); color: var(--qbe-accent); }
.qbe .qbe-cal__ev.is-cancelled { background: #f3f1ea; text-decoration: line-through; color: var(--qbe-muted); border-left-color: #b42318; }
.qbe .qbe-cal__ev small { display: block; font-weight: 500; opacity: .85; }
.qbe-cal__dot { display: none; }
.qbe-cal__agenda { padding: 16px 18px 18px; border-top: 1px solid var(--qbe-line); }
.qbe .qbe-cal__agenda h4 { margin: 0 0 10px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--qbe-muted); font-family: inherit; font-weight: 700; }
.qbe .qbe-cal__agenda ul { list-style: none; margin: 0; padding: 0; }
.qbe .qbe-cal__agenda li { margin: 0; padding: 0; }
.qbe .qbe-cal__agenda li::before { display: none; }
.qbe .qbe-cal__item {
	display: flex; gap: 14px; align-items: center; width: 100%; margin: 0 0 8px; padding: 10px 12px; border: 1px solid var(--qbe-line); border-radius: 10px;
	background: var(--qbe-white); color: var(--qbe-text); font: inherit; text-align: left; cursor: pointer; box-shadow: none;
}
.qbe .qbe-cal__item:hover { border-color: var(--qbe-ink); background: var(--qbe-white); color: var(--qbe-text); }
.qbe-cal__itemdate { flex: 0 0 52px; padding: 6px 0; border-radius: 8px; background: var(--qbe-accent); color: var(--qbe-ink); text-align: center; line-height: 1.1; }
.qbe-cal__itemdate span { display: block; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.qbe-cal__itemdate strong { display: block; font-family: var(--qbe-heading-font); font-size: 22px; }
.qbe-cal__itemtext { min-width: 0; font-size: 14px; }
.qbe-cal__itemtext strong { display: block; color: var(--qbe-ink); font-size: 15px; font-weight: 700; }
.qbe-cal__itemtext em { display: block; }
.qbe-cal__itemtext em { font-style: normal; color: var(--qbe-muted); }
.qbe-cal__empty { margin: 0; color: var(--qbe-muted); }
.qbe .qbe-cal__jump { margin-top: 8px; }

/* ---------- Past events ---------- */
.qbe-past { margin-top: 40px; }
.qbe .qbe-subtitle { margin: 0 0 12px; font-family: var(--qbe-heading-font); font-size: 24px; font-weight: 700; color: var(--qbe-ink); }
.qbe .qbe-past__list { margin: 0; padding: 0; list-style: none; }
.qbe .qbe-past__list li { padding: 10px 0; border-bottom: 1px solid var(--qbe-line); margin: 0; }
.qbe .qbe-past__list a { color: var(--qbe-ink); text-decoration: none; margin-right: 8px; }
.qbe .qbe-past__list span { color: var(--qbe-muted); font-size: 14px; }

/* ---------- Signup band ---------- */
.qbe-signup {
	position: relative;
	margin: 48px 0 0; padding: 36px 40px; border-radius: var(--qbe-radius); overflow: hidden; isolation: isolate;
}
.qbe-signup--dark { background-color: var(--qbe-ink); color: rgba(255, 255, 255, .85); }
.qbe-signup--dark::before {
	content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--qbe-honey); background-size: 30px auto; opacity: .16;
	-webkit-mask-image: linear-gradient(100deg, transparent 0%, transparent 35%, #000 100%); mask-image: linear-gradient(100deg, transparent 0%, transparent 35%, #000 100%);
}
.qbe-signup--light { background: var(--qbe-cream); border: 1px solid var(--qbe-line); }
.qbe-signup__text { display: flex; gap: 16px; align-items: flex-start; }
.qbe-signup__icon { display: inline-flex; flex: 0 0 52px; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 50%; background: var(--qbe-accent); color: var(--qbe-ink); }
.qbe-signup__icon .qbe-icon { width: 24px; height: 24px; }
.qbe .qbe-signup__title { margin: 0 0 6px; font-family: var(--qbe-heading-font); font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; line-height: 1.2; }
.qbe-signup--dark .qbe-signup__title { color: var(--qbe-white); }
.qbe-signup--light .qbe-signup__title { color: var(--qbe-ink); }
.qbe-signup__text p { margin: 0; }
.qbe-signup__fields { display: flex; gap: 10px; }
.qbe .qbe-signup__fields input {
	flex: 1 1 0; min-width: 0; height: 50px; margin: 0; padding: 0 16px; border: 1px solid #d8d3c4; border-radius: 6px;
	background: var(--qbe-white); color: var(--qbe-ink); font: inherit; font-size: 15px; box-shadow: none;
}
.qbe .qbe-signup__fields input[name="qbe_name"] { flex: 0 1 38%; }
.qbe .qbe-signup__fields .qbe-btn { flex: 0 0 auto; min-height: 50px; }
.qbe-signup--dark .qbe-btn--primary:hover { background: var(--qbe-white); border-color: var(--qbe-white); color: var(--qbe-ink) !important; }
.qbe .qbe-signup__msg { min-height: 0; margin: 10px 0 0; font-size: 14px; font-weight: 600; }
.qbe .qbe-signup__msg:empty { display: none; }
.qbe-signup--dark .qbe-signup__msg { color: var(--qbe-accent); }
.qbe-signup--light .qbe-signup__msg { color: #3d6b00; }
.qbe .qbe-signup__msg.is-error { color: #ffb4ab; }
.qbe-signup--light .qbe-signup__msg.is-error { color: #b42318; }
.qbe .qbe-signup__fine { margin: 8px 0 0; font-size: 12px; opacity: .7; }
.qbe-signup .qbe-signup__fields input[aria-invalid="true"] { border-color: #e5484d; box-shadow: 0 0 0 3px rgba(229, 72, 77, .25); }

/* ---------- CTA cards ---------- */
.qbe-ctas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 28px; }
.qbe-cta {
	position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 34px 34px 32px; border-radius: var(--qbe-radius);
	background: var(--qbe-cream); border: 1px solid var(--qbe-line); overflow: hidden; isolation: isolate;
}
.qbe-cta::after {
	content: ""; position: absolute; right: -40px; bottom: -40px; width: 200px; height: 200px; z-index: -1; opacity: .35;
	background-image: var(--qbe-honey); background-size: 28px auto; -webkit-mask-image: radial-gradient(circle at 70% 70%, #000 0%, transparent 70%); mask-image: radial-gradient(circle at 70% 70%, #000 0%, transparent 70%);
}
.qbe-cta--dark { background: var(--qbe-white); border-color: var(--qbe-line); box-shadow: var(--qbe-shadow); }
.qbe-cta__icon { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 14px; background: var(--qbe-ink); color: var(--qbe-accent); margin-bottom: 16px; }
.qbe-cta__icon .qbe-icon { width: 26px; height: 26px; }
.qbe .qbe-cta__title { margin: 0 0 10px; font-family: var(--qbe-heading-font); font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; line-height: 1.2; color: var(--qbe-ink); }
.qbe .qbe-cta p { margin: 0 0 14px; color: var(--qbe-text); }
.qbe .qbe-cta .qbe-cta__note { font-size: 14px; color: var(--qbe-muted); }
.qbe-cta .qbe-btn { margin-top: auto; }

/* ---------- Dialogs ---------- */
.qbe-dialog {
	width: min(920px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0;
	border: 0; border-radius: 18px; background: var(--qbe-white); color: var(--qbe-text); box-shadow: 0 24px 80px rgba(0, 0, 0, .35); overflow: hidden;
	font-size: 16px; line-height: 1.6;
}
.qbe-dialog--form { width: min(760px, calc(100vw - 32px)); }
.qbe-dialog::backdrop { background: rgba(17, 17, 17, .62); backdrop-filter: blur(3px); }
.qbe-dialog[open] { animation: qbe-pop .22s ease-out; }
@keyframes qbe-pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.qbe-dialog__inner { position: relative; max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }
.qbe-dialog--form .qbe-dialog__inner { padding: 36px 40px 34px; }
.qbe-dialog .qbe-dialog__close {
	position: absolute; z-index: 5; top: 14px; right: 14px; display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: var(--qbe-white); color: var(--qbe-ink); cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
.qbe-dialog .qbe-dialog__close:hover { background: var(--qbe-accent); color: var(--qbe-ink); }
.qbe-dialog .qbe-dialog__close .qbe-icon { width: 22px; height: 22px; }
html.qbe-lock, html.qbe-lock body { overflow: hidden; }

/* Event detail (modal + single page) */
.qbe-detail { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.qbe-detail__media { background: var(--qbe-ink); min-height: 100%; }
.qbe-detail__flyer { display: block; height: 100%; }
.qbe-detail__media img { display: block; width: 100%; height: 100%; max-height: none; object-fit: cover; margin: 0; border-radius: 0; }
.qbe-detail .qbe-ph--detail { min-height: 320px; }
.qbe-detail .qbe-ph__day { font-size: 96px; }
.qbe-detail .qbe-ph::after { width: 210px; height: 210px; }
.qbe-detail__body { padding: 36px 38px 34px; min-width: 0; }
.qbe-detail__tags { margin: 0 0 12px; }
.qbe-dialog .qbe-detail__title, .qbe .qbe-detail__title { margin: 0; padding-right: 36px; font-family: var(--qbe-heading-font); font-size: clamp(26px, 3vw, 34px); font-weight: 700; line-height: 1.2; color: var(--qbe-ink); }
.qbe-facts { margin: 0 0 18px; padding: 0; display: grid; gap: 14px; }
.qbe-fact { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--qbe-line); }
.qbe-fact:last-child { border-bottom: 0; padding-bottom: 0; }
.qbe-facts dt { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--qbe-muted); }
.qbe-facts dt .qbe-icon { color: var(--qbe-accent-dark); width: 16px; height: 16px; }
.qbe-facts dd { margin: 0; padding-left: 24px; color: var(--qbe-ink); font-size: 16px; }
.qbe-detail__desc { margin: 0 0 18px; color: var(--qbe-text); }
.qbe-detail__desc > :first-child { margin-top: 0; }
.qbe-detail__desc > :last-child { margin-bottom: 0; }
.qbe-detail__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* Single event page */
.qbe-single { margin: 0 0 24px; }
.qbe-single .qbe-detail { border: 1px solid var(--qbe-line); border-radius: var(--qbe-radius); overflow: visible; box-shadow: var(--qbe-shadow); background: var(--qbe-white); }
.qbe-single .qbe-detail__media { border-radius: var(--qbe-radius) 0 0 var(--qbe-radius); overflow: hidden; }
.qbe .qbe-notice { margin: 0 0 16px; padding: 12px 16px; border-left: 4px solid var(--qbe-accent); background: var(--qbe-cream); border-radius: 6px; }
.qbe .qbe-back { margin: 18px 0 0; }

/* ---------- Forms ---------- */
.qbe-form-wrap { max-width: 860px; }
.qbe-dialog .qbe-form-wrap { max-width: none; }
.qbe .qbe-form-intro { margin: 0 0 22px; color: var(--qbe-muted); }
.qbe-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.qbe-field { display: flex; flex-direction: column; min-width: 0; }
.qbe-field--wide { grid-column: 1 / -1; }
.qbe .qbe-form-sub { margin: 10px 0 -4px; padding-top: 14px; border-top: 1px solid var(--qbe-line); font-family: var(--qbe-heading-font); font-size: 19px; font-weight: 700; color: var(--qbe-ink); }
.qbe .qbe-form-sub:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.qbe .qbe-field > label:not(.qbe-choice), .qbe .qbe-field legend { display: block; margin: 0 0 6px; padding: 0; font-size: 14px; font-weight: 600; color: var(--qbe-ink); }
.qbe .qbe-field fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.qbe .qbe-req { color: #b42318; }
.qbe .qbe-field input[type="text"], .qbe .qbe-field input[type="email"], .qbe .qbe-field input[type="tel"], .qbe .qbe-field input[type="url"],
.qbe .qbe-field input[type="date"], .qbe .qbe-field input[type="number"], .qbe .qbe-field select, .qbe .qbe-field textarea {
	width: 100%; min-height: 48px; margin: 0; padding: 11px 14px; border: 1px solid #d8d3c4; border-radius: 8px;
	background: var(--qbe-white); color: var(--qbe-ink); font: inherit; font-size: 16px; line-height: 1.4; box-shadow: none; transition: border-color .15s, box-shadow .15s;
}
.qbe .qbe-field textarea { min-height: 110px; resize: vertical; }
.qbe .qbe-field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23111' d='M6 8 0 1.4 1.3 0 6 5.2 10.7 0 12 1.4z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.qbe .qbe-field input:focus, .qbe .qbe-field select:focus, .qbe .qbe-field textarea:focus { border-color: var(--qbe-ink); box-shadow: 0 0 0 3px rgba(245, 196, 0, .45); outline: none; }
.qbe .qbe-field.has-error input, .qbe .qbe-field.has-error select, .qbe .qbe-field.has-error textarea { border-color: #b42318; box-shadow: 0 0 0 3px rgba(180, 35, 24, .12); }
.qbe .qbe-field-err { display: none; margin-top: 5px; font-size: 13px; font-weight: 600; color: #b42318; }
.qbe .qbe-field.has-error .qbe-field-err { display: block; }
.qbe .qbe-help { margin-top: 5px; font-size: 13px; color: var(--qbe-muted); }
.qbe-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.qbe .qbe-choice {
	position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; padding: 9px 14px; border: 1px solid #d8d3c4; border-radius: 999px;
	background: var(--qbe-white); color: var(--qbe-ink); font-size: 15px; font-weight: 500; cursor: pointer; transition: border-color .15s, background-color .15s;
}
.qbe .qbe-choice:hover { border-color: var(--qbe-ink); }
.qbe .qbe-choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--qbe-ink); flex: 0 0 auto; }
.qbe .qbe-choice:has(input:checked) { background: rgba(245, 196, 0, .22); border-color: var(--qbe-accent-dark); }
.qbe .qbe-choice--single { border-radius: 10px; align-items: flex-start; padding: 12px 14px; background: var(--qbe-cream); }
.qbe .qbe-choice--single input { margin-top: 3px; }
.qbe .qbe-field.has-error .qbe-choice { border-color: #b42318; }
.qbe-form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 24px 0 0; }
.qbe .qbe-req-note { font-size: 13px; color: var(--qbe-muted); }
.qbe .qbe-req-note span { color: #b42318; }
.qbe .qbe-form-error { margin: 0 0 16px; padding: 12px 16px; border-radius: 8px; background: #fef3f2; border: 1px solid #fecdca; color: #912018; font-weight: 600; }
.qbe-form-success { display: flex; gap: 14px; align-items: flex-start; padding: 22px; border-radius: 12px; background: #fffbea; border: 1px solid #f3e3a1; }
.qbe-form-success p { margin: 0; color: var(--qbe-ink); font-size: 16px; font-weight: 500; }
.qbe-check { display: inline-flex; flex: 0 0 44px; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; background: var(--qbe-accent); color: var(--qbe-ink); }
.qbe-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.qbe-btn.is-loading .qbe-btn__label::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 8px; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: qbe-spin .7s linear infinite; }
@keyframes qbe-spin { to { transform: rotate(360deg); } }

/* ---------- Responsive ----------
   Layout reacts to the width of the block itself (container queries), so it looks right
   in a full-width Elementor section, a narrow theme column, or a pop-up. */
.qbe-events, .qbe-signup, .qbe-form-wrap, .qbe-single, .qbe-dialog__inner { container-type: inline-size; }
.qbe-signup { display: block; }
.qbe-signup__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px 40px; align-items: center; }

@container (max-width: 980px) {
	.qbe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
	.qbe-grid--1 { grid-template-columns: minmax(0, 1fr); }
	.qbe-grid--1 .qbe-card__media { flex-basis: 42%; min-height: 300px; }
	.qbe-grid--1 .qbe-card__body { padding: 28px; }
	.qbe-ctas { gap: 20px; }
	.qbe-cta { padding: 28px; }
	.qbe-cal__day { min-height: 92px; }
}
@container (max-width: 860px) {
	.qbe-signup__inner { grid-template-columns: minmax(0, 1fr); }
}
@container (max-width: 700px) {
	.qbe-grid, .qbe-grid--2 { grid-template-columns: minmax(0, 1fr); }
	.qbe-grid--1 .qbe-card { flex-direction: column; }
	.qbe-grid--1 .qbe-card__media { flex-basis: auto; min-height: 0; aspect-ratio: 16 / 10; border-radius: var(--qbe-radius) var(--qbe-radius) 0 0; }
	.qbe-grid--1 .qbe-card__body { padding: 22px; }
	.qbe-grid--1 .qbe-ph__day { font-size: 80px; }
	.qbe-ctas { grid-template-columns: minmax(0, 1fr); }
	.qbe-detail { grid-template-columns: minmax(0, 1fr); }
	.qbe-detail__media img { height: auto; max-height: 56vh; object-fit: contain; }
	.qbe-detail .qbe-ph--detail { min-height: 220px; }
	.qbe-detail .qbe-ph__day { font-size: 72px; }
	.qbe-detail__body { padding: 26px 22px 24px; }
	.qbe-single .qbe-detail__media { border-radius: var(--qbe-radius) var(--qbe-radius) 0 0; }
	.qbe-form-grid { grid-template-columns: minmax(0, 1fr); }
	.qbe-cal__day { min-height: 0; padding: 6px 2px; text-align: center; }
	.qbe .qbe-cal__ev { display: none; }
	.qbe-cal__dot { display: block; width: 7px; height: 7px; margin: 3px auto 0; border-radius: 50%; background: var(--qbe-accent-dark); }
	.qbe-cal__day.has-events .qbe-cal__num { background: var(--qbe-accent); color: var(--qbe-ink); }
	.qbe-cal__day.has-events.is-today .qbe-cal__num { background: var(--qbe-ink); color: var(--qbe-accent); }
	.qbe-cal__wd { letter-spacing: .04em; padding: 8px 2px; }
}
@container (max-width: 520px) {
	.qbe-head { margin-bottom: 20px; }
	.qbe-toolbar { margin-bottom: 18px; }
	.qbe-tabs { width: 100%; }
	.qbe .qbe-tab { flex: 1; justify-content: center; }
	.qbe-filter { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; width: 100%; scrollbar-width: none; }
	.qbe .qbe-filter__btn { flex: 0 0 auto; }
	.qbe-card__body { padding: 18px; }
	.qbe .qbe-card__title { font-size: 21px; }
	.qbe-card__actions .qbe-btn, .qbe-card__actions .qbe-addcal { flex: 1 1 auto; }
	.qbe-card__actions .qbe-addcal > summary { width: 100%; }
	.qbe-signup__fields { flex-direction: column; }
	.qbe .qbe-signup__fields input, .qbe .qbe-signup__fields input[name="qbe_name"] { flex: 1 1 auto; width: 100%; }
	.qbe .qbe-signup__fields .qbe-btn { width: 100%; }
	.qbe-cta { padding: 24px 20px; }
	.qbe-cta .qbe-btn { width: 100%; }
	.qbe-cal__head { padding: 12px; }
	.qbe .qbe-cal__month { font-size: 20px; }
	.qbe-cal__wd { font-size: 10px; }
	.qbe-detail__actions .qbe-btn, .qbe-detail__actions .qbe-addcal { flex: 1 1 100%; }
	.qbe-detail__actions .qbe-addcal > summary { width: 100%; }
	.qbe-addcal__menu { left: 0; right: 0; }
	.qbe-form-foot .qbe-btn { width: 100%; }
}
/* The signup box itself is the container, so its padding uses the viewport. */
@media (max-width: 1024px) { .qbe-signup { padding: 32px; } }
@media (max-width: 560px) {
	.qbe { font-size: 15px; }
	.qbe-signup { padding: 26px 20px; margin-top: 36px; }
	.qbe-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 14px; }
	.qbe-dialog__inner { max-height: calc(100dvh - 16px); }
	.qbe-dialog--form .qbe-dialog__inner { padding: 28px 20px 24px; }
}
@media (prefers-reduced-motion: reduce) {
	.qbe *, .qbe-dialog, .qbe-dialog * { animation: none !important; transition: none !important; }
	.qbe-card:hover { transform: none; }
}
