/**
 * MBF Events & Membership - public styles.
 *
 * Every selector is scoped to an .mbf- component, so nothing here can affect
 * the rest of the site. No global element selectors, no !important.
 *
 * Colour and type come from Elementor's global kit variables where they exist,
 * with sensible fallbacks for a site running without Elementor. That means the
 * event pages adopt the site palette the moment it is configured, instead of
 * carrying a second design language of their own.
 */

.mbf-page,
.mbf-home,
.mbf-event,
.mbf-registration,
.mbf-memberships,
.mbf-account {
	--mbf-accent: var(--e-global-color-primary, #1f5f8b);
	--mbf-heading: var(--e-global-color-secondary, #22303c);
	--mbf-text: var(--e-global-color-text, #55606b);
	--mbf-font-heading: var(--e-global-typography-secondary-font-family, inherit);
	--mbf-font-body: var(--e-global-typography-text-font-family, inherit);

	--mbf-surface: #fff;
	--mbf-line: rgba(34, 48, 60, .14);
	--mbf-muted: rgba(34, 48, 60, .06);
	--mbf-radius: 8px;
	--mbf-gap: 24px;
	--mbf-max: var(--container-max-width, 1140px);

	color: var(--mbf-text);
	font-family: var(--mbf-font-body);
}

/* --- Page shell --------------------------------------------------------- */

.mbf-page {
	box-sizing: border-box;
	max-width: var(--mbf-max);
	margin: 0 auto;
	padding: 48px 20px 64px;
}

.mbf-page *,
.mbf-page *::before,
.mbf-page *::after {
	box-sizing: border-box;
}

.mbf-page__header {
	margin-bottom: 32px;
}

.mbf-page__title {
	font-family: var(--mbf-font-heading);
	color: var(--mbf-heading);
	margin: 0 0 8px;
	line-height: 1.15;
}

.mbf-page__intro {
	margin: 0;
	max-width: 60ch;
}

/* --- Buttons ------------------------------------------------------------ */

.mbf-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	border: 1px solid var(--mbf-accent);
	border-radius: var(--mbf-radius);
	background: var(--mbf-accent);
	color: #fff;
	font-family: var(--mbf-font-body);
	font-size: .95rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}

.mbf-button:hover,
.mbf-button:focus {
	background: transparent;
	color: var(--mbf-accent);
	text-decoration: none;
}

.mbf-button--ghost {
	background: transparent;
	color: var(--mbf-accent);
}

.mbf-button--ghost:hover,
.mbf-button--ghost:focus {
	background: var(--mbf-accent);
	color: #fff;
}

.mbf-memberships a:focus-visible,
.mbf-memberships button:focus-visible,
.mbf-page a:focus-visible,
.mbf-page button:focus-visible,
.mbf-page input:focus-visible,
.mbf-page textarea:focus-visible,
.mbf-registration a:focus-visible,
.mbf-registration button:focus-visible,
.mbf-registration input:focus-visible,
.mbf-registration textarea:focus-visible {
	outline: 3px solid var(--mbf-accent);
	outline-offset: 2px;
}

/* --- Events archive ----------------------------------------------------- */
/*
 * The /event/ listing follows the site's Figma design: Inter body text,
 * Times New Roman headings and the brand greens used by the header button.
 * The Elementor kit defines no global colours or fonts yet, so the archive
 * sets its own tokens here, scoped to the archive only.
 */

.mbf-events-archive__banner {
	width: 100%;
}

.mbf-page.mbf-events-archive__body {
	--mbf-accent: #369a32;
	--mbf-accent-light: #9ec828;
	--mbf-heading: #292929;
	--mbf-text: #4a5565;
	--mbf-strong: #292929;
	--mbf-subtle: #717680;
	--mbf-line: #e9eaeb;
	--mbf-field-line: #d5d7da;
	--mbf-muted: #f5f5f5;
	--mbf-font-heading: "Times New Roman", Times, serif;
	--mbf-font-body: "Inter", var(--e-global-typography-text-font-family, sans-serif), sans-serif;
	/* Full width with the same 40px gutters as the site header and the
	   banner template, so every block shares one left edge. */
	--mbf-max: none;

	padding: 56px 40px 120px;
}

/* --- Toolbar: type tabs and search -------------------------------------- */

.mbf-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	margin: 0 0 40px;
}

.mbf-filters {
	min-width: 0;
	max-width: 100%;
}

.mbf-filters__list {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 4px;
	border: 1px solid var(--mbf-line);
	border-radius: 10px;
	background: #fafafa;
}

.mbf-filters__list li {
	margin: 0;
	padding: 0;
}

.mbf-filters__link {
	display: inline-block;
	padding: 8px 12px;
	border: 1px solid transparent;
	border-radius: 6px;
	color: var(--mbf-subtle);
	font-family: var(--mbf-font-body);
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.mbf-filters__link:hover,
.mbf-filters__link:focus {
	color: var(--mbf-strong);
	text-decoration: none;
}

.mbf-filters__link.is-current {
	border-color: var(--mbf-field-line);
	background: #fff;
	color: var(--mbf-strong);
	box-shadow: 0 1px 2px rgba(10, 13, 18, .05);
}

.mbf-search {
	position: relative;
	flex: 0 1 320px;
	margin: 0;
}

.mbf-search__icon {
	position: absolute;
	top: 50%;
	left: 14px;
	color: var(--mbf-subtle);
	transform: translateY(-50%);
	pointer-events: none;
}

.mbf-page .mbf-search__input {
	display: block;
	width: 100%;
	height: 44px;
	margin: 0;
	padding: 10px 14px 10px 42px;
	border: 1px solid var(--mbf-field-line);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(10, 13, 18, .05);
	color: var(--mbf-strong);
	font-family: var(--mbf-font-body);
	font-size: 15px;
	line-height: 24px;
}

.mbf-page .mbf-search__input::placeholder {
	color: var(--mbf-strong);
	opacity: .85;
}

.mbf-page .mbf-search__input:focus {
	border-color: var(--mbf-accent);
	outline: none;
	box-shadow: 0 0 0 3px rgba(54, 154, 50, .18);
}

/* --- Sections and list -------------------------------------------------- */

.mbf-section + .mbf-section {
	margin-top: 72px;
	padding-top: 48px;
	border-top: 1px solid var(--mbf-line);
}

.mbf-section__title {
	font-family: var(--mbf-font-heading);
	color: var(--mbf-heading);
	margin: 0 0 32px;
	font-size: 36px;
	font-weight: 400;
	line-height: 1.2;
}

.mbf-section__empty {
	margin: 0;
	padding: 32px;
	border: 1px dashed var(--mbf-field-line);
	border-radius: var(--mbf-radius);
	font-size: 16px;
}

.mbf-list {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

/* Optional link under a list, e.g. "View All Events" on the homepage. */
.mbf-section__more {
	margin: 32px 0 0;
}

.mbf-section__more-link {
	color: var(--mbf-accent);
	font-weight: 600;
	text-decoration: none;
}

.mbf-section__more-link:hover,
.mbf-section__more-link:focus {
	text-decoration: underline;
}

/* --- Homepage featured event -------------------------------------------- */
/* Structure only; the visual design is a later phase. */

.mbf-featured__heading {
	font-family: var(--mbf-font-heading);
	color: var(--mbf-heading);
	margin: 0 0 24px;
}

.mbf-featured__event {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: var(--mbf-gap);
}

.mbf-featured--plain .mbf-featured__event {
	grid-template-columns: minmax(0, 1fr);
}

.mbf-featured__image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--mbf-radius);
}

.mbf-featured__labels {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
}

.mbf-featured__title {
	font-family: var(--mbf-font-heading);
	color: var(--mbf-heading);
	margin: 0 0 16px;
}

.mbf-featured__title a {
	color: inherit;
	text-decoration: none;
}

.mbf-featured__facts {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
}

.mbf-featured__summary,
.mbf-featured__price {
	margin: 0 0 16px;
}

.mbf-featured__action {
	margin: 0;
}

/* --- Homepage events block ([mbf_upcoming_events]) ---------------------- */
/* Spotlight card on the left, list on the right. The section header lives
   in Elementor around the shortcode. */

.mbf-home-events {
	--mbf-accent: #369a32;
	--mbf-heading: #292929;
	--mbf-text: #414651;
	--mbf-line: #e9eaeb;
	--mbf-font-heading: "Times New Roman", Times, serif;
	--mbf-font-body: "DM Sans", var(--e-global-typography-text-font-family, sans-serif), sans-serif;
	--mbf-home-current: #1c7a45;
	--mbf-home-current-bg: #f1f6f3;
}

.mbf-home-events__heading {
	font-family: var(--mbf-font-heading);
	color: var(--mbf-heading);
	font-weight: 400;
	margin: 0 0 32px;
}

.mbf-home-events__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 36px;
	align-items: start;
}

/* Spotlight card */

.mbf-spotlight {
	position: relative;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 32px;
	min-height: 352px;
	padding: 28px;
	border-radius: 14px;
	overflow: hidden;
	color: #fff;
	background:
		radial-gradient(85% 60% at 5% 105%, rgba(116, 168, 44, .95) 0%, rgba(70, 132, 38, .65) 35%, rgba(3, 32, 14, 0) 75%),
		radial-gradient(70% 50% at 100% 105%, rgba(54, 154, 50, .55) 0%, rgba(3, 32, 14, 0) 70%),
		#021a0c;
}

/* One card per list row; only the chosen one shows. */
.mbf-spotlight[hidden] {
	display: none;
}

/* Switching cards through the list tabs. */
[data-mbf-ready] .mbf-spotlight:not([hidden]) {
	animation: mbf-spotlight-in .2s ease-out;
}

@keyframes mbf-spotlight-in {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	[data-mbf-ready] .mbf-spotlight:not([hidden]) {
		animation: none;
	}
}

.mbf-spotlight__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.mbf-spotlight__highlights {
	list-style: none;
	margin: 0;
	padding: 0;
	font-family: var(--mbf-font-body);
	font-size: 16px;
	line-height: 1.4;
}

.mbf-spotlight__highlight {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.mbf-spotlight__highlight + .mbf-spotlight__highlight {
	margin-top: 12px;
}

.mbf-spotlight__check {
	flex: none;
}

.mbf-spotlight__mark {
	flex: none;
	margin-left: auto;
	color: #fff;
}

.mbf-spotlight__mark-shape {
	fill: #021a0c;
}

.mbf-spotlight__notice {
	display: inline-block;
	margin: 0 0 12px;
	padding: 2px 10px;
	border: 1px solid rgba(255, 255, 255, .6);
	border-radius: 999px;
	font-family: var(--mbf-font-body);
	font-size: 13px;
}

.mbf-spotlight__title {
	margin: 0 0 14px;
	font-family: var(--mbf-font-heading);
	font-size: 30px;
	font-weight: 400;
	line-height: 1.2;
	color: #fff;
}

.mbf-home-events a.mbf-spotlight__link,
.mbf-home-events a.mbf-spotlight__link:hover,
.mbf-home-events a.mbf-spotlight__link:focus {
	color: inherit;
	text-decoration: none;
}

/* The whole card is the link's hit area. */
.mbf-spotlight__link::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.mbf-spotlight__link:focus-visible {
	outline: none;
}

.mbf-spotlight__link:focus-visible::after {
	outline: 2px solid #fff;
	outline-offset: -5px;
}

.mbf-spotlight__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-family: var(--mbf-font-body);
	font-size: 18px;
	line-height: 1.3;
}

.mbf-spotlight__fact {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0;
}

.mbf-spotlight__icon {
	flex: none;
}

/* The list */

.mbf-upnext {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mbf-upnext__item {
	margin: 0;
	border-bottom: 1px solid var(--mbf-line);
}

.mbf-upnext__item:last-child {
	border-bottom: 0;
}

.mbf-home-events a.mbf-upnext__link {
	display: block;
	padding: 22px 20px 20px 17px;
	border-left: 3px solid transparent;
	color: var(--mbf-heading);
	text-decoration: none;
	transition: background-color .15s ease;
}

.mbf-home-events a.mbf-upnext__link:hover,
.mbf-home-events a.mbf-upnext__link:focus-visible {
	background: var(--mbf-home-current-bg);
	color: var(--mbf-heading);
	text-decoration: none;
}

.mbf-upnext__link:focus-visible {
	outline: 2px solid var(--mbf-home-current);
	outline-offset: -2px;
}

.mbf-home-events .mbf-upnext__item.is-current a.mbf-upnext__link {
	border-left-color: var(--mbf-home-current);
	background: var(--mbf-home-current-bg);
}

.mbf-upnext__title {
	display: block;
	font-family: var(--mbf-font-heading);
	font-size: 20px;
	line-height: 1.3;
}

.mbf-upnext__meta {
	display: block;
	margin-top: 6px;
	font-family: var(--mbf-font-body);
	font-size: 13px;
	line-height: 1.4;
	color: var(--mbf-text);
}

.mbf-upnext__notice {
	margin-left: 6px;
	font-weight: 600;
	color: #b42318;
}

/* Live filtering: fade the old results while the new ones load. */
.mbf-results {
	transition: opacity .15s ease;
}

.mbf-events-archive__body.is-loading .mbf-results {
	opacity: .45;
	pointer-events: none;
}

/* --- Card: one event row ------------------------------------------------ */

.mbf-card {
	display: grid;
	grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
	align-items: start;
	gap: 32px;
}

.mbf-card--muted .mbf-card__media {
	opacity: .7;
}

.mbf-card__media {
	display: block;
	aspect-ratio: 400 / 260;
	background: var(--mbf-muted);
	overflow: hidden;
}

.mbf-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s ease;
}

.mbf-card:hover .mbf-card__image,
.mbf-card:focus-within .mbf-card__image {
	transform: scale(1.03);
}

.mbf-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #0d2b17 0%, #1b4d23 60%, #369a32 100%);
}

.mbf-card__placeholder-mark {
	font-family: var(--mbf-font-heading);
	font-size: 64px;
	line-height: 1;
	color: var(--mbf-accent-light);
}

.mbf-card__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding-top: 20px;
}

.mbf-card__labels {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
}

.mbf-card__type {
	display: inline-block;
	padding: 2px 8px;
	border: 1px solid var(--mbf-line);
	border-radius: 6px;
	background: #fafafa;
	color: #414651;
	font-size: 12px;
	font-weight: 500;
	line-height: 18px;
}

.mbf-card__labels .mbf-badge {
	padding: 2px 8px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	line-height: 16px;
}

.mbf-card__title {
	font-family: var(--mbf-font-heading);
	color: var(--mbf-heading);
	margin: 0 0 12px;
	font-size: 30px;
	font-weight: 400;
	line-height: 1.25;
}

.mbf-card__title a {
	color: inherit;
	text-decoration: none;
	transition: color .15s ease;
}

.mbf-card__title a:hover,
.mbf-card__title a:focus {
	color: var(--mbf-accent);
}

.mbf-card__summary {
	margin: 0 0 20px;
	font-size: 15px;
	line-height: 22px;
	color: var(--mbf-text);
}

.mbf-card__facts {
	display: flex;
	flex-direction: column;
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.mbf-card__fact {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	color: var(--mbf-strong);
	font-size: 15px;
	font-weight: 500;
	line-height: 20px;
}

.mbf-card__icon {
	flex: 0 0 auto;
	color: #a4a7ae;
}

.mbf-card__sep {
	margin: 0 4px;
}

/* --- Badges ------------------------------------------------------------- */
/* Text carries the meaning; colour only reinforces it. */

.mbf-badge {
	display: inline-block;
	padding: 3px 10px;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	line-height: 1.5;
}

.mbf-badge--free { color: #1d6b3f; }
.mbf-badge--paid { color: #1f5f8b; }
.mbf-badge--limited { color: #8a5b00; }
.mbf-badge--full,
.mbf-badge--closed,
.mbf-badge--cancelled { color: #a32724; }
.mbf-badge--past { color: #5b6770; }

/* --- Single event hero -------------------------------------------------- */

.mbf-hero {
	margin-bottom: 32px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--mbf-line);
}

.mbf-hero__labels {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
}

.mbf-hero__type {
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--mbf-accent);
	text-decoration: none;
}

.mbf-hero__type:hover,
.mbf-hero__type:focus {
	text-decoration: underline;
}

.mbf-hero__title {
	font-family: var(--mbf-font-heading);
	color: var(--mbf-heading);
	margin: 0 0 12px;
	line-height: 1.12;
}

.mbf-hero__summary {
	margin: 0 0 16px;
	max-width: 62ch;
	font-size: 1.1rem;
	line-height: 1.55;
}

.mbf-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: .95rem;
	font-weight: 600;
	color: var(--mbf-heading);
}

.mbf-single-event__media {
	margin: 0 0 32px;
	border-radius: var(--mbf-radius);
	overflow: hidden;
}

.mbf-single-event__image {
	display: block;
	width: 100%;
	height: auto;
}

.mbf-prose {
	max-width: 70ch;
	line-height: 1.65;
}

.mbf-prose > :first-child { margin-top: 0; }
.mbf-prose > :last-child { margin-bottom: 0; }

.mbf-single-event__back {
	margin: 40px 0 0;
	padding-top: 24px;
	border-top: 1px solid var(--mbf-line);
}

/* --- Event details ------------------------------------------------------ */

.mbf-event__section + .mbf-event__section {
	margin-top: 40px;
}

.mbf-event {
	margin-top: 40px;
}

.mbf-event__heading {
	font-family: var(--mbf-font-heading);
	color: var(--mbf-heading);
	margin: 0 0 20px;
	font-size: 1.35rem;
	line-height: 1.25;
}

.mbf-event__facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin: 0;
	padding: 24px;
	border: 1px solid var(--mbf-line);
	border-radius: var(--mbf-radius);
	background: var(--mbf-muted);
}

.mbf-event__fact-label {
	margin: 0 0 4px;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--mbf-heading);
}

.mbf-event__fact-value {
	margin: 0;
	line-height: 1.5;
}

.mbf-event__fact-value--limited { color: #8a5b00; font-weight: 600; }
.mbf-event__fact-value--full { color: #a32724; font-weight: 600; }

/* --- Single event page -------------------------------------------------- */
/*
 * The designed event page: full-width bands, each with a centred 1216px
 * container. Brand tokens are set here, as on the archive, so the registration
 * form and notices inside the page pick up the same greens and type without
 * rules of their own.
 */

/* The registration form and the details wrapper declare the kit tokens on
   themselves, so the page's tokens are repeated on them to reach inside. */
.mbf-page.mbf-single-event,
.mbf-single-event .mbf-event,
.mbf-single-event .mbf-registration {
	--mbf-accent: #369a32;
	--mbf-accent-light: #9ec828;
	--mbf-heading: #181d27;
	--mbf-text: #535862;
	--mbf-strong: #181d27;
	--mbf-line: #e9eaeb;
	--mbf-muted: #f9fafb;
	--mbf-font-heading: "Times New Roman", Times, serif;
	--mbf-font-body: "Inter", var(--e-global-typography-text-font-family, sans-serif), sans-serif;
	--mbf-max: none;
	--mbf-page-green: #217a3c;
	--mbf-page-body: #414651;
	--mbf-page-gradient: linear-gradient(90deg, #80ba2b 0%, #4da42f 100%);
}

.mbf-page.mbf-single-event {
	padding: 0;
	overflow-x: clip;
}

.mbf-event-page__container {
	box-sizing: border-box;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 32px;
}

.mbf-event-page__section {
	padding: 70px 0;
	background: #fff;
}

.mbf-event-page__section--muted {
	background: var(--mbf-muted);
}

/* Two white bands in a row read as one; the second loses its top padding. */
.mbf-event-page__section:not(.mbf-event-page__section--muted) + .mbf-event-page__section:not(.mbf-event-page__section--muted) {
	padding-top: 0;
}

.mbf-event-page__eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 12px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--mbf-page-green);
}

.mbf-event-page__eyebrow::before {
	content: "";
	flex: 0 0 32px;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--mbf-accent-light), var(--mbf-page-green));
}

.mbf-event-page__title {
	margin: 0 0 40px;
	font-family: var(--mbf-font-heading);
	font-size: 34px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--mbf-heading);
}

.mbf-event-page__check {
	flex: 0 0 22px;
	color: #58a930;
}

.mbf-event-page__button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border: 0;
	border-radius: 8px;
	background: var(--mbf-page-gradient);
	box-shadow: 0 1px 2px rgba(10, 13, 18, .05), inset 0 -2px 0 rgba(10, 13, 18, .08);
	color: #fff;
	font-family: var(--mbf-font-body);
	font-size: 15px;
	font-weight: 600;
	line-height: 24px;
	text-decoration: none;
	white-space: nowrap;
	transition: filter .15s ease;
}

.mbf-event-page__button:hover,
.mbf-event-page__button:focus {
	color: #fff;
	filter: brightness(.94);
	text-decoration: none;
}

.mbf-event-page__notice {
	margin-top: 32px;
}

/* Hero. */
.mbf-hero.mbf-event-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 470px;
	margin: 0;
	padding: 96px 0;
	border: 0;
	background: #0b2416;
	overflow: hidden;
	isolation: isolate;
}

.mbf-event-hero--plain {
	background: radial-gradient(120% 120% at 50% 0%, #1f5a33 0%, #0b2416 60%, #00120b 100%);
}

.mbf-event-hero__image {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mbf-event-hero:not(.mbf-event-hero--plain)::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .45) 50%, rgba(0, 0, 0, .6) 100%);
}

.mbf-event-hero__inner {
	text-align: center;
}

.mbf-event-hero__type {
	margin: 0 0 16px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #fff;
}

.mbf-event-hero .mbf-hero__title {
	max-width: 820px;
	margin: 0 auto;
	font-family: var(--mbf-font-heading);
	font-size: 48px;
	font-weight: 400;
	line-height: 1.2;
	color: #fff;
	text-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}

.mbf-event-hero__statuses {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

.mbf-event-hero__status {
	margin: 0;
	padding: 4px 12px;
	border: 1px solid rgba(255, 255, 255, .6);
	border-radius: 999px;
	background: rgba(0, 0, 0, .35);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
}

/* Date and place bar. */
.mbf-event-infobar {
	border-bottom: 1px solid var(--mbf-line);
	background: var(--mbf-muted);
}

.mbf-event-infobar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
	padding-top: 36px;
	padding-bottom: 36px;
}

.mbf-event-infobar__facts {
	display: flex;
	/* Takes the room beside the button and wraps inside it, so the button
	   stays on the right however long the date and place are. */
	flex: 1 1 0%;
	flex-wrap: wrap;
	gap: 12px 56px;
	width: auto;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mbf-event-infobar__cta {
	margin-left: auto;
}

.mbf-event-infobar__fact {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--mbf-heading);
}

.mbf-event-infobar__icon {
	flex: 0 0 24px;
	color: #a4a7ae;
}

/* About and Event Information. */
.mbf-event-about__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 575px);
	align-items: start;
	gap: 40px 72px;
}

.mbf-event-about--info-only .mbf-event-about__grid {
	grid-template-columns: minmax(0, 575px);
}

.mbf-event-about__title {
	margin-bottom: 20px;
}

.mbf-event-about__body {
	font-size: 16px;
	line-height: 1.85;
	color: var(--mbf-text);
}

.mbf-event-about__body > * {
	margin: 0 0 18px;
}

.mbf-event-about__body > :last-child {
	margin-bottom: 0;
}

.mbf-event-info {
	border: 1px solid var(--mbf-line);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 4px 12px rgba(10, 13, 18, .08), 0 1px 3px rgba(10, 13, 18, .06);
	overflow: hidden;
}

.mbf-event-info__title {
	margin: 0;
	padding: 18px 24px;
	background: var(--mbf-page-gradient);
	font-family: var(--mbf-font-heading);
	font-size: 21px;
	font-weight: 400;
	line-height: 1.3;
	color: #fff;
}

.mbf-event-info__rows {
	margin: 0;
}

.mbf-event-info__row {
	display: grid;
	grid-template-columns: 152px minmax(0, 1fr);
	gap: 24px;
	padding: 17px 24px;
}

.mbf-event-info__row + .mbf-event-info__row {
	border-top: 1px solid #f0f1f3;
}

.mbf-event-info__label {
	margin: 0;
	padding-top: 2px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--mbf-page-green);
}

.mbf-event-info__value {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--mbf-heading);
}

/* Highlights. */
.mbf-event-highlights__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mbf-event-highlights__item {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 20px;
	border: 1px solid var(--mbf-line);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(10, 13, 18, .06);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.45;
	color: var(--mbf-page-body);
}

/* The agenda keeps its own component styles; the band supplies the spacing. */
.mbf-event-page__section--agenda .mbf-event-agenda {
	margin: 0;
}

/* Speakers. */
.mbf-event-speakers__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 48px 86px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mbf-event-speakers__card {
	margin: 0;
}

.mbf-event-speakers__photo {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 341 / 370;
	background: linear-gradient(180deg, rgba(249, 250, 251, 1) 0%, #cfe6c1 40%, #58a930 100%);
	overflow: hidden;
}

.mbf-event-speakers__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.mbf-event-speakers__initial {
	font-family: var(--mbf-font-heading);
	font-size: 96px;
	line-height: 1;
	color: #fff;
}

.mbf-event-speakers__name {
	margin: 20px 0 10px;
	font-family: var(--mbf-font-heading);
	font-size: 28px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--mbf-heading);
}

.mbf-event-speakers__role {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--mbf-text);
}

/* Who should attend, what you'll learn, registration includes. */
.mbf-event-lists__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 48px 64px;
}

.mbf-event-lists__grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mbf-event-lists__grid--1 {
	grid-template-columns: minmax(0, 1fr);
}

.mbf-event-lists__title {
	margin: 0 0 24px;
	font-family: var(--mbf-font-heading);
	font-size: 26px;
	font-weight: 400;
	line-height: 1.25;
	color: var(--mbf-heading);
}

.mbf-event-lists__intro {
	margin: 0 0 16px;
	font-size: 15px;
	color: var(--mbf-text);
}

.mbf-event-lists__items {
	display: grid;
	gap: 13px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mbf-event-lists__item {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 15px;
	line-height: 1.45;
	color: var(--mbf-page-body);
}

/* Registration area: the registration component's own markup, framed. */
.mbf-event-attend__panel.mbf-event {
	max-width: 820px;
	margin: 0;
}

/* "Tickets" reads as the section's eyebrow and the form heading as its title,
   the same pairing every other section uses. */
.mbf-event-attend .mbf-event__heading {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 12px;
	font-family: var(--mbf-font-body);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--mbf-page-green);
}

.mbf-event-attend .mbf-event__heading::before {
	content: "";
	flex: 0 0 32px;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--mbf-accent-light), var(--mbf-page-green));
}

.mbf-event-attend .mbf-registration__heading {
	margin: 0 0 16px;
	font-family: var(--mbf-font-heading);
	font-size: 34px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--mbf-heading);
}

/* Registration form, sign-in gate and confirmation, restyled for the page.
   Every rule is scoped to the single event page and prefixed with the page
   class, so it outranks the theme's own input and button rules there and
   leaves the registration shortcode elsewhere on the site untouched. The
   renderer's markup is not changed. */
.mbf-single-event .mbf-registration {
	--mbf-reg-border: #d5d7da;
	--mbf-reg-card: 0 4px 12px rgba(10, 13, 18, .06), 0 1px 3px rgba(10, 13, 18, .05);
	--mbf-reg-ring: 0 0 0 4px rgba(88, 169, 48, .18);

	font-family: var(--mbf-font-body);
}

.mbf-single-event .mbf-registration__heading {
	margin: 0 0 24px;
}

.mbf-single-event .mbf-registration__form {
	gap: 20px 24px;
	margin: 0;
	padding: 32px;
	border: 1px solid var(--mbf-line);
	border-radius: 12px;
	background: #fff;
	box-shadow: var(--mbf-reg-card);
}

.mbf-single-event .mbf-registration__required-note {
	font-size: 14px;
	color: #717680;
}

.mbf-single-event .mbf-registration__field {
	gap: 6px;
}

.mbf-single-event .mbf-registration__field label {
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	color: #414651;
}

.mbf-single-event .mbf-registration__required {
	margin-left: 2px;
	color: var(--mbf-accent);
}

.mbf-single-event .mbf-registration__field input,
.mbf-single-event .mbf-registration__field textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid var(--mbf-reg-border);
	border-radius: 8px;
	outline: none;
	background: #fff;
	box-shadow: 0 1px 2px rgba(10, 13, 18, .05);
	font-family: var(--mbf-font-body);
	font-size: 16px;
	line-height: 24px;
	color: var(--mbf-heading);
	transition: border-color .15s ease, box-shadow .15s ease;
}

.mbf-single-event .mbf-registration__field textarea {
	min-height: 128px;
	resize: vertical;
}

.mbf-single-event .mbf-registration__field input::placeholder,
.mbf-single-event .mbf-registration__field textarea::placeholder {
	color: #717680;
}

.mbf-single-event .mbf-registration__field input:hover,
.mbf-single-event .mbf-registration__field textarea:hover {
	border-color: #a4a7ae;
}

.mbf-single-event .mbf-registration__field input:focus,
.mbf-single-event .mbf-registration__field textarea:focus {
	border-color: #58a930;
	outline: none;
	box-shadow: 0 1px 2px rgba(10, 13, 18, .05), var(--mbf-reg-ring);
}

.mbf-single-event .mbf-registration__field input:user-invalid {
	border-color: #f04438;
}

.mbf-single-event .mbf-registration__actions {
	margin-top: 4px;
}

.mbf-single-event .mbf-registration .mbf-registration__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	margin: 0;
	padding: 12px 24px;
	border: 0;
	border-radius: 8px;
	background: var(--mbf-page-gradient);
	box-shadow: 0 1px 2px rgba(10, 13, 18, .05), inset 0 -2px 0 rgba(10, 13, 18, .08);
	color: #fff;
	font-family: var(--mbf-font-body);
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	transition: filter .15s ease;
}

.mbf-single-event .mbf-registration .mbf-registration__submit:hover,
.mbf-single-event .mbf-registration .mbf-registration__submit:focus {
	border: 0;
	background: var(--mbf-page-gradient);
	color: #fff;
	filter: brightness(.94);
	text-decoration: none;
}

.mbf-single-event .mbf-registration .mbf-registration__submit:focus-visible,
.mbf-single-event .mbf-registration .mbf-registration__secondary:focus-visible {
	outline: 0;
	box-shadow: 0 1px 2px rgba(10, 13, 18, .05), var(--mbf-reg-ring);
}

.mbf-single-event .mbf-registration .mbf-registration__secondary {
	min-height: 48px;
	padding: 12px 24px;
	border: 1px solid var(--mbf-reg-border);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(10, 13, 18, .05);
	color: #414651;
	font-size: 16px;
	line-height: 24px;
}

.mbf-single-event .mbf-registration .mbf-registration__secondary:hover,
.mbf-single-event .mbf-registration .mbf-registration__secondary:focus {
	border-color: #58a930;
	background: #fff;
	color: var(--mbf-page-green);
}

.mbf-single-event .mbf-registration__errors {
	margin: 0 0 20px;
	padding: 14px 18px;
	border: 1px solid #fda29b;
	border-left: 4px solid #d92d20;
	border-radius: 8px;
	background: #fef3f2;
	color: #912018;
	font-size: 15px;
}

.mbf-single-event .mbf-registration__note {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: #717680;
}

/* The checkout note sits between the summary and the form when they stack. */
.mbf-single-event .mbf-registration--form > .mbf-registration__note {
	margin-bottom: 20px;
}

.mbf-single-event .mbf-registration__note--editing {
	margin: 0 0 16px;
	padding: 12px 16px;
	border: 1px solid #dcebc7;
	border-left: 4px solid var(--mbf-accent);
	border-radius: 8px;
	background: #f3f9ea;
	color: var(--mbf-page-body);
}

/* Price and totals: a summary card. */
.mbf-single-event .mbf-registration__pricing {
	gap: 0;
	margin: 0 0 16px;
	padding: 8px 20px;
	border: 1px solid var(--mbf-line);
	border-radius: 12px;
	background: #fff;
	box-shadow: var(--mbf-reg-card);
}

.mbf-single-event .mbf-registration__pricing .mbf-registration__price {
	justify-content: space-between;
	padding: 12px 0;
	border: 0;
	border-radius: 0;
	background: none;
}

.mbf-single-event .mbf-registration__pricing .mbf-registration__price + .mbf-registration__price {
	border-top: 1px solid #f0f1f3;
}

.mbf-single-event .mbf-registration__price-label,
.mbf-single-event .mbf-registration__total-label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	color: var(--mbf-page-green);
}

.mbf-single-event .mbf-registration__price-value {
	font-size: 18px;
	font-weight: 600;
}

.mbf-single-event .mbf-registration__totals {
	margin: 0 0 16px;
	padding: 20px;
	border: 1px solid #dcebc7;
	border-radius: 12px;
	background: linear-gradient(135deg, #f3f9ea 0%, #eaf5dc 100%);
}

.mbf-single-event .mbf-registration__total-value {
	font-family: var(--mbf-font-heading);
	font-size: 30px;
	font-weight: 400;
	color: var(--mbf-page-green);
}

.mbf-single-event .mbf-registration__member-note {
	margin: 0 0 12px;
	padding: 12px 16px;
	border: 1px solid #dcebc7;
	border-radius: 8px;
	background: #f3f9ea;
	color: var(--mbf-page-body);
	font-size: 14px;
}

/* Paid events: form on the left, the summary beside it. The last row is
   flexible, so a tall form never pushes the summary cards apart. */
@media (min-width: 900px) {
	.mbf-event-attend__panel.mbf-event:has(.mbf-registration__pricing) {
		max-width: none;
	}

	.mbf-single-event .mbf-registration--form:has(.mbf-registration__pricing) {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
		grid-template-rows: auto auto auto auto auto 1fr;
		column-gap: 32px;
		align-items: start;
	}

	.mbf-single-event .mbf-registration--form:has(.mbf-registration__pricing) > * {
		grid-column: 2;
	}

	.mbf-single-event .mbf-registration--form:has(.mbf-registration__pricing) > .mbf-registration__heading {
		grid-column: 1 / -1;
		grid-row: 1;
	}

	.mbf-single-event .mbf-registration--form:has(.mbf-registration__pricing) > .mbf-registration__form {
		grid-column: 1;
		grid-row: 2 / -1;
	}

	.mbf-single-event .mbf-registration--form:has(.mbf-registration__pricing):has(> .mbf-registration__errors) > .mbf-registration__errors {
		grid-column: 1;
		grid-row: 2;
	}

	.mbf-single-event .mbf-registration--form:has(.mbf-registration__pricing):has(> .mbf-registration__errors) > .mbf-registration__form {
		grid-row: 3 / -1;
	}
}

/* Pricing card beside the sign-in box, for visitors who are not signed in. */
.mbf-event-attend__panel--pricing.mbf-event {
	display: grid;
	gap: 24px 32px;
	max-width: none;
}

@media (min-width: 900px) {
	.mbf-event-attend__panel--pricing.mbf-event {
		grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
		align-items: start;
	}

	/* Line the card up with the sign-in box, below the "Tickets" eyebrow. */
	.mbf-event-attend__pricing {
		margin-top: calc(11px * 1.4 + 12px);
	}
}

.mbf-event-attend__pricing {
	padding: 24px;
	border: 1px solid var(--mbf-line);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 4px 12px rgba(10, 13, 18, .06), 0 1px 3px rgba(10, 13, 18, .05);
}

.mbf-event-attend__pricing-title {
	margin: 0 0 8px;
	font-family: var(--mbf-font-heading);
	font-size: 24px;
	font-weight: 400;
	line-height: 1.25;
	color: var(--mbf-heading);
}

.mbf-event-attend__rows {
	margin: 0 0 16px;
}

.mbf-event-attend__row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 16px;
	padding: 14px 0;
}

.mbf-event-attend__row + .mbf-event-attend__row {
	border-top: 1px solid #f0f1f3;
}

.mbf-event-attend__row dt {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--mbf-page-green);
}

.mbf-event-attend__row dd {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	color: var(--mbf-heading);
}

.mbf-event-attend__row--member dd {
	color: var(--mbf-page-green);
}

.mbf-event-attend__per {
	font-size: 13px;
	font-weight: 400;
	color: #717680;
}

.mbf-event-attend__badge {
	padding: 2px 8px;
	border: 1px solid #c7e3a4;
	border-radius: 999px;
	background: #f3f9ea;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	color: var(--mbf-page-green);
}

.mbf-event-attend__pricing-note {
	margin: 0;
	padding: 12px 16px;
	border-radius: 8px;
	background: #f3f9ea;
	font-size: 14px;
	line-height: 1.6;
	color: var(--mbf-page-body);
}

/* Sign-in gate and closed notice: the same card as the form. */
.mbf-single-event .mbf-registration--login,
.mbf-single-event .mbf-registration--closed .mbf-registration__closed-message {
	padding: 32px;
	border: 1px solid var(--mbf-line);
	border-radius: 12px;
	background: #fff;
	box-shadow: var(--mbf-reg-card);
}

.mbf-single-event .mbf-registration--closed .mbf-registration__closed-message {
	border-left: 4px solid #d92d20;
	font-size: 16px;
	color: var(--mbf-page-body);
}

.mbf-single-event .mbf-registration--login .mbf-registration__heading {
	margin-bottom: 12px;
}

.mbf-single-event .mbf-registration__login-message {
	margin: 0 0 20px;
	font-size: 16px;
	color: var(--mbf-text);
}

.mbf-single-event .mbf-registration--login .mbf-registration__actions {
	margin: 0 0 12px;
}

/* Confirmation. */
.mbf-single-event .mbf-registration--confirmed {
	padding: 32px;
	border: 1px solid #dcebc7;
	border-radius: 12px;
	background: #fff;
	box-shadow: var(--mbf-reg-card);
}

.mbf-single-event .mbf-registration--confirmed .mbf-registration__summary {
	margin: 0 0 20px;
	border: 1px solid var(--mbf-line);
	border-radius: 8px;
	overflow: hidden;
}

.mbf-single-event .mbf-registration__reference {
	padding: 2px 8px;
	border-radius: 6px;
	background: #f3f9ea;
	color: var(--mbf-page-green);
	font-weight: 600;
}

@media (max-width: 560px) {
	.mbf-single-event .mbf-registration__form {
		grid-template-columns: minmax(0, 1fr);
		padding: 20px;
	}

	.mbf-single-event .mbf-registration--login,
	.mbf-single-event .mbf-registration--confirmed {
		padding: 20px;
	}

	.mbf-single-event .mbf-registration .mbf-registration__submit,
	.mbf-single-event .mbf-registration .mbf-registration__secondary {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mbf-single-event .mbf-registration__field input,
	.mbf-single-event .mbf-registration__field textarea,
	.mbf-single-event .mbf-registration .mbf-registration__submit {
		transition: none;
	}
}

/* Location. */
.mbf-event-location__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 583px);
	align-items: start;
	gap: 40px 72px;
}

.mbf-event-location .mbf-event-page__title {
	margin-bottom: 20px;
}

.mbf-event-location__venue {
	margin: 0 0 12px;
	font-family: var(--mbf-font-heading);
	font-size: 23px;
	line-height: 1.3;
	color: var(--mbf-page-green);
}

.mbf-event-location__region {
	margin: 0 0 20px;
	font-size: 15px;
	color: var(--mbf-text);
}

.mbf-event-location__description {
	max-width: 540px;
	margin: 0;
	font-size: 16px;
	line-height: 1.75;
	color: var(--mbf-text);
}

.mbf-event-location__map {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 360px;
	padding: 32px;
	border: 1px solid #e3eed3;
	border-radius: 12px;
	background: linear-gradient(135deg, #f3f9ea 0%, #e8f4d0 100%);
	box-shadow: 0 4px 12px rgba(10, 13, 18, .08);
	text-align: center;
	text-decoration: none;
	transition: box-shadow .15s ease, transform .15s ease;
}

a.mbf-event-location__map:hover,
a.mbf-event-location__map:focus {
	box-shadow: 0 8px 20px rgba(10, 13, 18, .12);
	text-decoration: none;
	transform: translateY(-2px);
}

.mbf-event-location__pin {
	margin-bottom: 20px;
	color: #8cc59a;
}

.mbf-event-location__map-venue {
	font-family: var(--mbf-font-heading);
	font-size: 20px;
	line-height: 1.3;
	color: var(--mbf-page-green);
}

.mbf-event-location__map-address {
	font-size: 14px;
	color: #717680;
}

/* FAQ. */
.mbf-event-faq__list {
	border-top: 1px solid var(--mbf-line);
}

.mbf-event-faq__item {
	border-bottom: 1px solid var(--mbf-line);
}

.mbf-event-faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 22px 0;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.45;
	color: var(--mbf-heading);
	list-style: none;
	cursor: pointer;
}

.mbf-event-faq__question::-webkit-details-marker {
	display: none;
}

.mbf-event-faq__question:focus-visible {
	outline: 3px solid var(--mbf-accent);
	outline-offset: 4px;
}

.mbf-event-faq__chevron {
	flex: 0 0 20px;
	color: #717680;
	transition: transform .2s ease;
}

.mbf-event-faq__item[open] .mbf-event-faq__chevron {
	transform: rotate(180deg);
}

.mbf-event-faq__answer {
	padding: 0 44px 22px 0;
	font-size: 16px;
	line-height: 1.75;
	color: var(--mbf-text);
}

.mbf-event-faq__answer p {
	margin: 0;
}

@media (max-width: 1100px) {
	.mbf-event-highlights__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.mbf-event-speakers__grid {
		gap: 40px 32px;
	}
}

@media (max-width: 900px) {
	.mbf-event-about__grid,
	.mbf-event-location__grid,
	.mbf-event-lists__grid,
	.mbf-event-lists__grid--2 {
		grid-template-columns: minmax(0, 1fr);
	}

	.mbf-event-speakers__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mbf-event-location__map {
		min-height: 260px;
	}
}

@media (max-width: 782px) {
	.mbf-event-page__container {
		padding: 0 20px;
	}

	.mbf-event-page__section {
		padding: 64px 0;
	}

	.mbf-event-page__title {
		margin-bottom: 28px;
		font-size: 28px;
	}

	.mbf-hero.mbf-event-hero {
		min-height: 340px;
		padding: 72px 0;
	}

	.mbf-event-hero .mbf-hero__title {
		font-size: 34px;
	}

	.mbf-event-infobar__fact {
		font-size: 17px;
	}

	.mbf-event-infobar__facts {
		flex-basis: 100%;
		gap: 8px 32px;
	}

	.mbf-event-highlights__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.mbf-event-highlights__grid,
	.mbf-event-speakers__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.mbf-event-info__row {
		grid-template-columns: minmax(0, 1fr);
		gap: 2px;
	}

	.mbf-event-infobar__cta {
		width: 100%;
		justify-content: center;
	}

	.mbf-event-hero .mbf-hero__title {
		font-size: 30px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mbf-event-faq__chevron,
	.mbf-event-location__map,
	.mbf-event-page__button {
		transition: none;
	}
}

/* --- Conference Agenda -------------------------------------------------- */
/* A vertical timeline: time, marker on the line, then the session card. The
   component carries the brand tokens itself, like the archive does, because
   the Elementor kit defines no global colours yet. */

.mbf-event-agenda {
	--mbf-agenda-green: #217a3c;
	--mbf-agenda-lime: #9ec828;
	--mbf-agenda-time: #467c1b; /* the design's lime, darkened to 5:1 for small text */
	--mbf-agenda-heading: #181d27;
	--mbf-agenda-text: #535862;
	--mbf-agenda-card: #f8f9fb;
	--mbf-agenda-line: #e9eaeb;
	--mbf-agenda-time-col: 72px;
	--mbf-agenda-marker: 14px;
	--mbf-agenda-col-gap: 10px;

	margin: 56px 0;
	font-family: "Inter", var(--e-global-typography-text-font-family, sans-serif), sans-serif;
	color: var(--mbf-agenda-text);
}

.mbf-event-agenda__eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 12px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--mbf-agenda-green);
}

.mbf-event-agenda__eyebrow::before {
	content: "";
	flex: 0 0 32px;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--mbf-agenda-lime), var(--mbf-agenda-green));
}

.mbf-event-agenda__title {
	margin: 0 0 40px;
	font-family: "Times New Roman", Times, serif;
	font-size: 34px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--mbf-agenda-heading);
}

.mbf-event-agenda__timeline {
	position: relative;
	display: grid;
	gap: 40px;
	margin: 0;
	padding: 16px 0 32px;
	list-style: none;
}

/* The line runs through the centre of every marker. */
.mbf-event-agenda__timeline::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: calc(var(--mbf-agenda-time-col) + var(--mbf-agenda-col-gap) + var(--mbf-agenda-marker) / 2 - 1px);
	width: 2px;
	background: linear-gradient(180deg, var(--mbf-agenda-lime), var(--mbf-agenda-green));
}

.mbf-event-agenda__item {
	position: relative;
	display: grid;
	grid-template-columns: var(--mbf-agenda-time-col) var(--mbf-agenda-marker) minmax(0, 1fr);
	column-gap: var(--mbf-agenda-col-gap);
	align-items: start;
	margin: 0;
}

.mbf-event-agenda__time {
	margin: 4px 0 0;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	text-align: right;
	color: var(--mbf-agenda-time);
	overflow-wrap: anywhere;
}

.mbf-event-agenda__marker {
	position: relative;
	z-index: 1;
	width: var(--mbf-agenda-marker);
	height: var(--mbf-agenda-marker);
	margin-top: 6px;
	border: 2px solid var(--mbf-agenda-lime);
	border-radius: 50%;
	background: #fff;
}

.mbf-event-agenda__card {
	padding: 17px 20px;
	border: 1px solid var(--mbf-agenda-line);
	border-radius: 10px;
	background: var(--mbf-agenda-card);
}

.mbf-event-agenda__session {
	margin: 0;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
	color: var(--mbf-agenda-heading);
}

.mbf-event-agenda__description {
	margin: 8px 0 0;
	font-size: 14px;
	line-height: 1.6;
}

.mbf-event-agenda__details {
	display: grid;
	gap: 6px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.mbf-event-agenda__detail {
	position: relative;
	margin: 0;
	padding-left: 14px;
	font-size: 14px;
	line-height: 1.5;
}

.mbf-event-agenda__detail::before {
	content: "";
	position: absolute;
	top: .6em;
	left: 0;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--mbf-agenda-lime);
}

/* Narrow screens: the time moves above its card, beside the marker. */
@media (max-width: 560px) {
	.mbf-event-agenda {
		margin: 40px 0;
	}

	.mbf-event-agenda__title {
		margin-bottom: 28px;
		font-size: 28px;
	}

	.mbf-event-agenda__timeline {
		gap: 28px;
	}

	.mbf-event-agenda__timeline::before {
		left: calc(var(--mbf-agenda-marker) / 2 - 1px);
	}

	.mbf-event-agenda__item {
		grid-template-columns: var(--mbf-agenda-marker) minmax(0, 1fr);
		row-gap: 8px;
	}

	.mbf-event-agenda__marker {
		grid-column: 1;
		grid-row: 1;
		margin-top: 2px;
	}

	.mbf-event-agenda__time {
		grid-column: 2;
		grid-row: 1;
		margin: 0;
		text-align: left;
	}

	.mbf-event-agenda__card {
		grid-column: 2;
		grid-row: 2;
		padding: 14px 16px;
	}
}

/* --- Notices ------------------------------------------------------------ */

.mbf-notice {
	padding: 16px 20px;
	border: 1px solid var(--mbf-line);
	border-left-width: 4px;
	border-radius: var(--mbf-radius);
	background: var(--mbf-muted);
}

.mbf-notice p { margin: 0; }
.mbf-notice p + p { margin-top: 8px; }

.mbf-notice--info { border-left-color: var(--mbf-accent); }
.mbf-notice--closed { border-left-color: #a32724; }

/* --- Registration form -------------------------------------------------- */

.mbf-registration {
	margin: 0;
}

.mbf-registration__heading {
	font-family: var(--mbf-font-heading);
	color: var(--mbf-heading);
	margin: 0 0 20px;
	font-size: 1.35rem;
	line-height: 1.25;
}

.mbf-registration__form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	padding: 24px;
	border: 1px solid var(--mbf-line);
	border-radius: var(--mbf-radius);
	background: var(--mbf-surface);
}

.mbf-registration__required-note,
.mbf-registration__actions,
.mbf-registration__field--wide {
	grid-column: 1 / -1;
}

.mbf-registration__required-note {
	margin: 0;
	font-size: .88rem;
}

.mbf-registration__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
}

.mbf-registration__field label {
	font-size: .88rem;
	font-weight: 600;
	color: var(--mbf-heading);
}

.mbf-registration__field input,
.mbf-registration__field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--mbf-line);
	border-radius: var(--mbf-radius);
	background: #fff;
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.4;
	color: var(--mbf-heading);
}

.mbf-registration__field input:focus,
.mbf-registration__field textarea:focus {
	border-color: var(--mbf-accent);
}

.mbf-registration__field textarea {
	resize: vertical;
	min-height: 90px;
}

.mbf-registration__required {
	color: #a32724;
	margin-left: 2px;
}

.mbf-registration__actions {
	margin: 0;
}

.mbf-registration__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 28px;
	border: 1px solid var(--mbf-accent);
	border-radius: var(--mbf-radius);
	background: var(--mbf-accent);
	color: #fff;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}

.mbf-registration__submit:hover,
.mbf-registration__submit:focus {
	background: transparent;
	color: var(--mbf-accent);
}

/* Sign-in gate. The primary action reuses the submit button so the two
   states of the registration area look like one thing. */
.mbf-registration--login .mbf-registration__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.mbf-registration--login .mbf-registration__submit {
	text-decoration: none;
}

.mbf-registration__secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 28px;
	border: 1px solid var(--mbf-line);
	border-radius: var(--mbf-radius);
	background: transparent;
	color: var(--mbf-heading);
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: border-color .15s ease, color .15s ease;
}

.mbf-registration__secondary:hover,
.mbf-registration__secondary:focus {
	border-color: var(--mbf-accent);
	color: var(--mbf-accent);
}

.mbf-registration__login-message {
	margin: 0 0 4px;
	color: var(--mbf-text);
}

/* Printed above the WooCommerce account forms when a visitor arrives from an
   event, so they can see which booking they are returning to. */
.mbf-account-prompt {
	margin: 0 0 18px;
	font-weight: 600;
}

.mbf-registration__errors {
	grid-column: 1 / -1;
	padding: 14px 18px;
	border: 1px solid #a32724;
	border-left-width: 4px;
	border-radius: var(--mbf-radius);
	color: #7d1d1b;
	background: rgba(163, 39, 36, .06);
}

.mbf-registration__errors ul {
	margin: 0;
	padding-left: 20px;
}

.mbf-registration--closed .mbf-registration__closed-message {
	margin: 0;
	padding: 16px 20px;
	border: 1px solid var(--mbf-line);
	border-left: 4px solid #a32724;
	border-radius: var(--mbf-radius);
	background: var(--mbf-muted);
}

/* --- Registration confirmation ------------------------------------------ */

.mbf-registration--confirmed {
	padding: 28px;
	border: 1px solid var(--mbf-line);
	border-left: 4px solid #1d6b3f;
	border-radius: var(--mbf-radius);
	background: var(--mbf-muted);
}

.mbf-registration__summary {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
	margin: 20px 0;
}

.mbf-registration__summary dt {
	margin: 0 0 4px;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--mbf-heading);
}

.mbf-registration__summary dd {
	margin: 0;
}

.mbf-registration__reference {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 4px;
	background: rgba(34, 48, 60, .08);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: .04em;
}

.mbf-registration__note {
	margin: 0;
	font-size: .92rem;
}

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 782px) {
	.mbf-page {
		padding: 32px 16px 48px;
	}

	.mbf-registration__form {
		grid-template-columns: 1fr;
		padding: 20px;
	}

	.mbf-event__facts {
		padding: 20px;
	}
}

@media (max-width: 1024px) {
	.mbf-card {
		grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
		gap: 24px;
	}

	.mbf-card__body {
		padding-top: 4px;
	}

	.mbf-card__title {
		font-size: 26px;
	}
}

@media (max-width: 782px) {
	.mbf-page.mbf-events-archive__body {
		padding: 40px 20px 72px;
	}

	.mbf-toolbar {
		flex-direction: column;
		align-items: stretch;
		margin-bottom: 32px;
	}

	/* The tabs scroll sideways rather than wrapping into a ragged block. */
	.mbf-filters {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.mbf-filters__list {
		flex-wrap: nowrap;
	}

	.mbf-search {
		flex-basis: auto;
	}

	.mbf-card {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.mbf-card__body {
		padding-top: 0;
	}

	.mbf-list {
		gap: 40px;
	}

	.mbf-featured__event {
		grid-template-columns: minmax(0, 1fr);
	}

	.mbf-home-events__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.mbf-spotlight {
		min-height: 300px;
		padding: 24px;
	}

	.mbf-spotlight__title {
		font-size: 26px;
	}

	.mbf-spotlight__facts {
		font-size: 16px;
	}
}

@media (max-width: 560px) {
	.mbf-card__title {
		font-size: 24px;
	}

	.mbf-section__title {
		font-size: 28px;
	}

	.mbf-registration__submit {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mbf-button,
	.mbf-results,
	.mbf-filters__link,
	.mbf-registration__submit {
		transition: none;
	}

	.mbf-card__image,
	.mbf-card__title a {
		transition: none;
	}

	.mbf-card:hover .mbf-card__image,
	.mbf-card:focus-within .mbf-card__image {
		transform: none;
	}
}

/* --- Paid registration -------------------------------------------------- */

.mbf-registration__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	grid-column: 1 / -1;
	margin: 0;
	padding: 12px 16px;
	border: 1px solid var(--mbf-line);
	border-radius: var(--mbf-radius);
	background: var(--mbf-muted);
}

.mbf-registration__price-label {
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--mbf-heading);
}

.mbf-registration__price-value {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--mbf-heading);
}

.mbf-registration__form .mbf-registration__note {
	grid-column: 1 / -1;
	margin: 0;
}

/* --- Order confirmation ------------------------------------------------- */

.mbf-order-registrations {
	margin-top: 32px;
}

.mbf-order-registrations__note {
	margin-top: 12px;
}

/* Returning from the cart to amend an attempt. */
.mbf-registration__note--editing {
	grid-column: 1 / -1;
	padding: 10px 14px;
	border-left: 4px solid var(--mbf-accent);
	background: var(--mbf-muted);
}

.mbf-cart-edit a {
	font-size: .85em;
}

/* ---------------------------------------------------------------------------
   Membership purchase surface, laid out to the Figma pricing strip. Scoped
   to .mbf-memberships so it never reaches the event pages.
   --------------------------------------------------------------------------- */

.mbf-memberships {
	--mbf-plan-line: #e9eaeb;
	--mbf-plan-heading: #181d27;
	--mbf-plan-text: #535862;
	--mbf-plan-price: #2b6a1f;
	--mbf-plan-gradient: linear-gradient(90deg, #80ba2b 0%, #4da42f 100%);

	box-sizing: border-box;
	font-family: "Inter", var(--e-global-typography-text-font-family, sans-serif), sans-serif;
}

.mbf-memberships *,
.mbf-memberships *::before,
.mbf-memberships *::after {
	box-sizing: border-box;
}

/* One bordered strip with hairline dividers between plans. Each card draws
   its own right and bottom edge and the grid draws the top and left, so a
   wrapped row keeps its lines without an empty cell turning grey. */
.mbf-memberships__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 0;
	margin: 0;
	border-top: 1px solid var(--mbf-plan-line);
	border-left: 1px solid var(--mbf-plan-line);
}

.mbf-membership-card {
	display: flex;
	flex-direction: column;
	gap: 28px;
	padding: 32px 20px 28px;
	border-right: 1px solid var(--mbf-plan-line);
	border-bottom: 1px solid var(--mbf-plan-line);
	background: #fff;
}

.mbf-membership-card__header {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.mbf-memberships .mbf-membership-card__title {
	margin: 0;
	font-family: "Times New Roman", Times, serif;
	font-size: 24px;
	font-weight: 400;
	line-height: 1.25;
	color: var(--mbf-plan-heading);
}

.mbf-membership-card__summary {
	font-size: 14px;
	line-height: 1.7;
	color: var(--mbf-plan-text);
	padding-top: 10px;
}

.mbf-membership-card__summary p {
	margin: 0 0 8px;
}

.mbf-membership-card__summary p:last-child {
	margin-bottom: 0;
}

.mbf-membership-card__pricing {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: auto;
}

.mbf-membership-card__price {
	margin: 0;
	font-family: "Times New Roman", Times, serif;
	font-size: 48px;
	font-weight: 400;
	line-height: 1;
	color: var(--mbf-plan-price);
}

.mbf-membership-card__price .woocommerce-Price-currencySymbol {
	margin-right: 2px;
	font-size: .55em;
}

.mbf-membership-card__price del {
	margin-right: 8px;
	font-size: .5em;
	color: var(--mbf-plan-text);
}

.mbf-membership-card__price ins {
	text-decoration: none;
}

/* Dated launch offer: Early Bird, then Half-Price. */
.mbf-membership-card__offer {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	margin: 0;
}

.mbf-membership-card__offer-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--mbf-plan-gradient);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.mbf-membership-card__offer-message {
	font-size: 13px;
	line-height: 1.45;
	color: var(--mbf-plan-price);
}

.mbf-membership-card__term {
	margin: 0;
	font-size: 14px;
	line-height: 1.4;
	color: var(--mbf-plan-text);
}

.mbf-membership-card__note {
	margin: 0;
	padding: 10px 12px;
	border-radius: 6px;
	background: #f9fafb;
	font-size: 13px;
	line-height: 1.45;
	color: var(--mbf-plan-text);
}

.mbf-membership-card__form {
	margin: 0;
}

.mbf-memberships .mbf-membership-card__form .mbf-registration__submit {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	padding: 10px 16px;
	border: 0;
	border-radius: 6px;
	background: var(--mbf-plan-gradient);
	box-shadow: 0 1px 2px rgba(10, 13, 18, .05), inset 0 -2px 0 rgba(10, 13, 18, .08);
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: filter .2s ease;
}

.mbf-memberships .mbf-membership-card__form .mbf-registration__submit:hover,
.mbf-memberships .mbf-membership-card__form .mbf-registration__submit:focus {
	border: 0;
	background: var(--mbf-plan-gradient);
	color: #fff;
	filter: brightness(.94);
	text-decoration: none;
}

/* Shown instead of the purchase button to somebody who already holds a membership. */
.mbf-memberships .mbf-membership-card__form .mbf-registration__submit--secondary,
.mbf-memberships .mbf-membership-card__form .mbf-registration__submit--secondary:hover,
.mbf-memberships .mbf-membership-card__form .mbf-registration__submit--secondary:focus {
	border: 1.5px solid #4da42f;
	background: #fff;
	box-shadow: none;
	color: var(--mbf-plan-price);
}

.mbf-memberships .mbf-membership-card__form .mbf-registration__submit--secondary:hover,
.mbf-memberships .mbf-membership-card__form .mbf-registration__submit--secondary:focus {
	background: #f6fbef;
	filter: none;
}

.mbf-membership-card__signin {
	margin: -16px 0 0;
	font-size: 12px;
	line-height: 1.4;
	text-align: center;
	color: var(--mbf-plan-text);
}

@media (max-width: 767px) {
	.mbf-membership-card {
		gap: 22px;
		padding: 24px 20px;
	}

	.mbf-memberships .mbf-membership-card__title {
		font-size: 22px;
	}

	.mbf-membership-card__price {
		font-size: 42px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mbf-memberships .mbf-membership-card__form .mbf-registration__submit {
		transition: none;
	}
}

/* Member pricing on the event registration area. The struck regular price and
   the member price sit as two rows, so the saving is obvious without colour
   doing the work. */

.mbf-registration__price-value--struck {
	text-decoration: line-through;
	opacity: .7;
}

.mbf-registration__member-price .mbf-registration__price-value {
	font-weight: 700;
	color: var(--mbf-accent);
}

.mbf-registration__member-note {
	margin: 0;
	padding: 10px 14px;
	border-radius: var(--mbf-radius);
	background: var(--mbf-muted);
	font-size: .9rem;
}

/* Membership discount transparency. The rows are stacked so the regular price,
   the saving and the member price read in that order on every width, and the
   totals block below repeats the same three figures for the whole party. */

.mbf-registration__pricing {
	display: grid;
	gap: 8px;
	grid-column: 1 / -1;
}

.mbf-registration__pricing .mbf-registration__price {
	grid-column: auto;
}

.mbf-registration__member-discount .mbf-registration__price-value--saving {
	font-size: 1rem;
	font-weight: 600;
	color: var(--mbf-accent);
}

.mbf-registration__totals {
	grid-column: 1 / -1;
	margin: 0;
	padding: 14px 16px;
	border: 1px solid var(--mbf-line);
	border-radius: var(--mbf-radius);
	background: var(--mbf-muted);
}

.mbf-registration__total-line {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	margin: 0;
}

.mbf-registration__total-label {
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--mbf-heading);
}

.mbf-registration__total-value {
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--mbf-heading);
}

.mbf-registration__total-note {
	margin: 6px 0 0;
	font-size: .9rem;
}

/* The classic cart and checkout totals table. Blocks render the same figures
   on the line itself, so nothing here applies to them. */

.mbf-cart-discount th,
.mbf-cart-discount td {
	font-size: .92rem;
	font-weight: 400;
}

/* --- Member account area ------------------------------------------------ */
/* Sits inside WooCommerce My Account, so it styles only its own .mbf-account
   subtree and leaves the account shell, navigation and tables to the theme. */

.mbf-account {
	box-sizing: border-box;
}

.mbf-account *,
.mbf-account *::before,
.mbf-account *::after {
	box-sizing: border-box;
}

.mbf-account__section + .mbf-account__section {
	margin-top: 32px;
}

.mbf-account__heading {
	font-family: var(--mbf-font-heading);
	color: var(--mbf-heading);
	margin: 0 0 16px;
	font-size: 1.15rem;
	line-height: 1.3;
}

/* How to cancel: an aside under the current memberships, not an action. */
.mbf-account__support {
	margin: 20px 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--mbf-line);
	color: var(--mbf-text);
	font-size: .92rem;
	line-height: 1.6;
}

.mbf-account__support a {
	color: var(--mbf-accent);
}

.mbf-account__back {
	margin: 0 0 20px;
	font-size: .92rem;
}

.mbf-account__cards {
	display: grid;
	gap: var(--mbf-gap);
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.mbf-account-card {
	padding: 20px;
	border: 1px solid var(--mbf-line);
	border-radius: var(--mbf-radius);
	background: var(--mbf-surface);
}

.mbf-account-card--detail {
	grid-column: 1 / -1;
}

.mbf-account-card__header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 16px;
}

.mbf-account-card__title {
	font-family: var(--mbf-font-heading);
	color: var(--mbf-heading);
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.3;
}

.mbf-account-card__subheading {
	font-family: var(--mbf-font-heading);
	color: var(--mbf-heading);
	margin: 24px 0 12px;
	font-size: .95rem;
}

.mbf-account-card__facts {
	display: grid;
	grid-template-columns: minmax(0, auto) minmax(0, 1fr);
	gap: 6px 16px;
	margin: 0;
}

.mbf-account-card__facts dt {
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--mbf-heading);
}

.mbf-account-card__facts dd {
	margin: 0;
	overflow-wrap: anywhere;
}

.mbf-account-card__reference {
	font-size: .92em;
}

.mbf-account-card__note {
	margin: 16px 0 0;
	padding: 10px 14px;
	border-radius: var(--mbf-radius);
	background: var(--mbf-muted);
	font-size: .9rem;
}

.mbf-account-card__action {
	margin: 16px 0 0;
	font-size: .92rem;
}

/* Status badges the account area needs beyond the event ones. Scoped to
   .mbf-account so the event listing keeps its own meaning for "paid", which
   there describes a ticket price rather than a settled payment. Text carries
   the meaning; colour only reinforces it. */

.mbf-account .mbf-badge--active,
.mbf-account .mbf-badge--confirmed,
.mbf-account .mbf-badge--paid { color: #1d6b3f; }

.mbf-account .mbf-badge--pending { color: #8a5b00; }

.mbf-account .mbf-badge--expired,
.mbf-account .mbf-badge--refunded { color: #5b6770; }

.mbf-account .mbf-badge--failed { color: #a32724; }

@media (max-width: 480px) {
	.mbf-account-card__facts {
		grid-template-columns: 1fr;
		gap: 2px 0;
	}

	.mbf-account-card__facts dd + dt {
		margin-top: 10px;
	}
}
