/* BMMA class pages (inc/bmma-classes.php) — timetable cards + venue map.
 * Layout follows the UKTC region pages; colours are the BMMA site's (dark ground, cream text, red CTA). */

.bmma-cl {
	--bmma-cl-red: #c8102e;
	--bmma-cl-red-dark: #a00c25;
	--bmma-cl-ink: #f3f1ea;
	--bmma-cl-muted: #b5b2a7;
	--bmma-cl-card: #1c1f1a;
	--bmma-cl-line: #33372f;
	--bmma-cl-head: "Barlow Condensed", sans-serif;
	--bmma-cl-gold: #d9c28a;
	/* Own dark band so it reads the same whatever the page background is; content capped at 1180px. */
	padding: 48px max(20px, calc((100% - 1180px) / 2));
	background: #121410;
	color: var(--bmma-cl-ink);
	font-family: Barlow, Montserrat, sans-serif !important;
}

/* style.css forces Montserrat !important on p/a/li/h1–h6; these sections use the homepage's Barlow.
 * (Heading-font rules below are also !important and more specific, so they still win.) */
.bmma-cl :is(p, a, li),
.bmma-hero :is(p, a, li) {
	font-family: Barlow, Montserrat, sans-serif !important;
}

/* …except links inside headings (venue / town names), which keep the heading font */
.bmma-cl :is(h1, h2, h3, h4) a {
	font-family: inherit !important;
}

/* Small gold label above headings, as on the homepage ("WHY BMMA") */
.bmma-eyebrow,
.bmma-cl .bmma-eyebrow,
.bmma-hero .bmma-eyebrow {
	margin: 0 0 10px;
	color: #d9c28a;
	font-family: "Barlow Condensed", sans-serif !important;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 3px;
	line-height: 1.2;
	text-transform: uppercase;
}

.bmma-cl__section-head {
	margin-bottom: 20px;
	scroll-margin-top: 120px; /* clear the sticky header when jumping to #class-times */
}

.bmma-cl__section-head .bmma-cl__heading {
	margin: 0;
	font-size: clamp(2.2rem, 4.5vw, 3.6rem);
	line-height: 0.95;
}

/* ---- School hero (render_school_hero) — matches the homepage hero */

.bmma-hero {
	position: relative;
	padding: 72px max(20px, calc((100% - 1180px) / 2)) 56px;
	background:
		linear-gradient(90deg, rgba(18, 20, 16, 0.96) 0%, rgba(18, 20, 16, 0.82) 45%, rgba(18, 20, 16, 0.45) 100%),
		var(--bmma-hero-image) center / cover no-repeat,
		#121410;
	color: #f3f1ea;
	font-family: Barlow, Montserrat, sans-serif !important;
}

.bmma-hero__inner {
	max-width: 760px;
}

.bmma-hero .bmma-hero__title {
	margin: 0 0 14px;
	color: #f3f1ea;
	font-family: "Barlow Condensed", sans-serif !important;
	font-size: clamp(2.8rem, 7vw, 5.5rem);
	font-weight: 800;
	line-height: 0.9;
	text-transform: uppercase;
}

.bmma-hero .bmma-hero__address {
	margin: 0 0 26px;
	color: #d8d6cc;
	font-size: 1.2rem;
	line-height: 1.5;
}

/* Town with several schools: numbered list matching the map pins */
.bmma-hero .bmma-hero__venues-label {
	margin: 0 0 10px;
	color: #d8d6cc;
	font-size: 1.05rem;
}

.bmma-hero__venues {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
}

.bmma-hero__venues li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 14px 8px 8px;
	background: rgba(18, 20, 16, 0.75);
	border: 1px solid #3a3d34;
}

.bmma-hero__venues .bmma-cl__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #c8102e;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}

.bmma-hero .bmma-hero__venues a {
	color: #f3f1ea;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
}

.bmma-hero .bmma-hero__venues a:hover,
.bmma-hero .bmma-hero__venues a:focus-visible {
	color: #d9c28a;
}

.bmma-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 22px;
	margin-bottom: 40px;
}

.bmma-hero a.bmma-btn {
	display: inline-block;
	padding: 15px 28px;
	border: 2px solid transparent;
	border-radius: 0;
	font-family: "Barlow Condensed", sans-serif !important;
	font-size: 1.1rem;
	font-weight: 700;
	letter-spacing: 1.5px;
	line-height: 1.1;
	text-decoration: none;
	text-transform: uppercase;
}

.bmma-hero a.bmma-btn--primary {
	background: #c8102e;
	color: #fff;
}

.bmma-hero a.bmma-btn--primary:hover,
.bmma-hero a.bmma-btn--primary:focus {
	background: #a00c25;
	color: #fff;
}

.bmma-hero a.bmma-btn--ghost {
	border-color: #f3f1ea;
	color: #f3f1ea;
}

.bmma-hero a.bmma-btn--ghost:hover,
.bmma-hero a.bmma-btn--ghost:focus {
	background: #f3f1ea;
	color: #121410;
}

.bmma-hero a.bmma-hero__link {
	color: #f3f1ea;
	font-family: "Barlow Condensed", sans-serif !important;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 1.8px;
	text-decoration: none;
	text-transform: uppercase;
}

.bmma-hero a.bmma-hero__link:hover {
	color: #d9c28a;
}

/* Stats strip, like the homepage's "30+ / 2,000+ / 100%" boxes */
.bmma-hero__stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 1px;
	max-width: 760px;
	margin: 0;
	padding: 0;
	background: #2a2c25;
	border: 1px solid #2a2c25;
	list-style: none;
}

.bmma-hero__stats li {
	padding: 18px 20px;
	background: rgba(18, 20, 16, 0.92);
}

.bmma-hero__stats strong {
	display: block;
	color: #f3f1ea;
	font-family: "Barlow Condensed", sans-serif !important;
	font-size: 2.1rem;
	font-weight: 800;
	line-height: 1;
}

.bmma-hero__stats span {
	display: block;
	margin-top: 6px;
	color: #d9c28a;
	font-family: "Barlow Condensed", sans-serif !important;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
}

@media (max-width: 767px) {
	.bmma-hero { padding: 44px 16px 36px; }
	.bmma-hero__actions { gap: 12px 18px; margin-bottom: 28px; }
	.bmma-hero a.bmma-btn { flex: 1 1 auto; text-align: center; }
	.bmma-hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bmma-hero__stats strong { font-size: 1.7rem; }
}

/* /locations/: the page's Elementor search hero, made compact (Elementor sets a 326px min-height + 71px heading). */
.bmma-loc-hero .elementor-section > .elementor-container {
	min-height: 0 !important;
	padding: 36px 20px 40px;
}

.bmma-loc-hero .elementor-widget-heading {
	margin-bottom: 14px !important;
}

.bmma-loc-hero .elementor-heading-title {
	font-size: clamp(2.2rem, 4.5vw, 3.4rem) !important;
	line-height: 1.05 !important;
}

.bmma-loc-hero + .bmma-cl {
	padding-top: 36px;
}

@media (max-width: 767px) {
	.bmma-loc-hero .elementor-section > .elementor-container {
		padding: 28px 16px 30px;
	}
}

.bmma-cl *,
.bmma-cl *::before,
.bmma-cl *::after {
	box-sizing: border-box;
}

.bmma-cl [hidden] {
	display: none !important;
}

.bmma-cl .bmma-cl__heading {
	margin: 0 0 6px;
	color: var(--bmma-cl-ink);
	font-family: var(--bmma-cl-head) !important;
	font-size: 2.2em;
	font-weight: 800;
	line-height: 1.1;
	text-transform: uppercase;
}

.bmma-cl--school .bmma-cl__heading {
	margin-bottom: 20px;
}

.bmma-cl__count {
	margin: 0 0 20px;
}

.bmma-cl .bmma-cl__count-sub {
	margin: 0;
	color: var(--bmma-cl-muted);
}

/* ---- Layouts */

/* School page: shorter map across the top */
.bmma-cl--school .bmma-cl__map {
	height: 340px;
}

.bmma-cl__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

/* Directory: towns flow in columns, each town's schools stacked under its name */
.bmma-cl__groups {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px 24px;
	align-items: start;
}

.bmma-cl__stack {
	display: grid;
	gap: 16px;
}

.bmma-cl .bmma-cl__city {
	margin: 0 0 12px;
	padding-bottom: 6px;
	border-bottom: 2px solid var(--bmma-cl-red);
	font-family: var(--bmma-cl-head) !important;
	font-size: 1.6em;
	font-weight: 800;
	text-transform: uppercase;
}

.bmma-cl .bmma-cl__city a {
	color: var(--bmma-cl-ink);
	text-decoration: none;
}

.bmma-cl .bmma-cl__city a:hover {
	color: var(--bmma-cl-red);
}

/* ---- Card */

.bmma-cl__card {
	container-type: inline-size;
	display: flex;
	flex-direction: column;
	padding: 22px 24px;
	background: var(--bmma-cl-card);
	border: 1px solid var(--bmma-cl-line);
	border-top: 3px solid var(--bmma-cl-red);
	border-radius: 2px;
}

.bmma-cl__card-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 6px;
}

.bmma-cl__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--bmma-cl-red);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}

.bmma-cl__area {
	color: var(--bmma-cl-red);
	font-family: var(--bmma-cl-head) !important;
	font-size: 1.1em;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.bmma-cl .bmma-cl__title {
	margin: 0 0 4px;
	color: var(--bmma-cl-ink);
	font-family: var(--bmma-cl-head) !important;
	font-size: 1.6em;
	font-weight: 700;
	line-height: 1.15;
}

.bmma-cl .bmma-cl__title a {
	color: inherit;
	text-decoration: none;
}

.bmma-cl .bmma-cl__title a:hover {
	color: var(--bmma-cl-red);
}

.bmma-cl .bmma-cl__address {
	margin: 0 0 14px;
	color: var(--bmma-cl-muted);
	font-size: 0.9em;
	line-height: 1.4;
}

.bmma-cl__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.bmma-cl__tag {
	padding: 3px 9px;
	border: 1px solid var(--bmma-cl-line);
	border-radius: 2px;
	color: var(--bmma-cl-muted);
	font-size: 0.78em;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.bmma-cl__tag--age {
	border-color: var(--bmma-cl-ink);
	color: var(--bmma-cl-ink);
}

/* ---- Timetable: classes grouped under day headings — day | (time | class | button) rows */

.bmma-cl__timetable {
	margin-bottom: 8px;
}

/* Age filter buttons */
.bmma-cl__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 18px;
}

.bmma-cl button.bmma-cl__filter {
	margin: 0;
	padding: 9px 16px;
	background: transparent;
	border: 1px solid var(--bmma-cl-line);
	border-radius: 0;
	color: var(--bmma-cl-ink);
	font-family: var(--bmma-cl-head) !important;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 1.2px;
	line-height: 1.2;
	text-transform: uppercase;
	cursor: pointer;
}

.bmma-cl button.bmma-cl__filter:hover,
.bmma-cl button.bmma-cl__filter:focus-visible {
	background: transparent;
	border-color: var(--bmma-cl-gold);
	color: var(--bmma-cl-ink);
}

.bmma-cl button.bmma-cl__filter.is-active {
	background: var(--bmma-cl-gold);
	border-color: var(--bmma-cl-gold);
	color: #121410;
}

.bmma-cl .bmma-cl__filter-empty {
	margin: 12px 0 0;
	color: var(--bmma-cl-muted);
}

.bmma-cl .bmma-cl__filter-empty a {
	color: var(--bmma-cl-ink);
	font-weight: 700;
}

.bmma-cl__day {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	gap: 0 20px;
	padding: 6px 0;
	border-top: 1px solid var(--bmma-cl-line);
}

.bmma-cl .bmma-cl__day-name {
	margin: 0;
	padding-top: 14px;
	color: var(--bmma-cl-gold);
	font-family: var(--bmma-cl-head) !important;
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: 1.5px;
	line-height: 1.2;
	text-transform: uppercase;
}

.bmma-cl__lessons {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bmma-cl__lesson {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr) auto;
	align-items: center;
	gap: 16px;
	padding: 12px 0;
}

.bmma-cl__lesson + .bmma-cl__lesson {
	border-top: 1px solid rgba(243, 241, 234, 0.07);
}

.bmma-cl__lesson-time {
	font-family: var(--bmma-cl-head) !important;
	font-size: 1.15em;
	font-weight: 600;
	white-space: nowrap;
}

.bmma-cl__lesson-name {
	display: block;
	font-family: var(--bmma-cl-head) !important;
	font-size: 1.15em;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
}

.bmma-cl__lesson-ages {
	display: block;
	margin-top: 2px;
	color: var(--bmma-cl-muted);
	font-size: 0.9em;
}

.bmma-cl a.bmma-cl__button {
	display: inline-block;
	padding: 10px 18px;
	background: var(--bmma-cl-red);
	color: #fff;
	border-radius: 2px;
	font-family: var(--bmma-cl-head) !important;
	font-size: 1em;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}

.bmma-cl a.bmma-cl__button:hover,
.bmma-cl a.bmma-cl__button:focus {
	background: var(--bmma-cl-red-dark);
	color: #fff;
}

.bmma-cl .bmma-cl__empty {
	margin: 0 0 14px;
	color: var(--bmma-cl-muted);
}

.bmma-cl__empty + .bmma-cl__button {
	align-self: flex-start;
}

.bmma-cl__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	margin-top: auto;
}

.bmma-cl a.bmma-cl__venue-link {
	margin-top: auto;
	padding-top: 6px;
	color: var(--bmma-cl-ink);
	font-size: 0.9em;
	font-weight: 700;
	text-decoration: none;
}

.bmma-cl__actions a.bmma-cl__venue-link {
	margin-top: 0;
	padding-top: 0;
}

.bmma-cl a.bmma-cl__venue-link:hover {
	color: var(--bmma-cl-red);
}

.bmma-cl a.bmma-cl__button--lg {
	padding: 16px 32px;
	font-size: 1.25em;
}

/* ---- Directory footer: "Can't see a school near you?" */

.bmma-cl__cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 32px;
	margin-top: 48px;
	padding: 32px 36px;
	background: var(--bmma-cl-card);
	border: 1px solid var(--bmma-cl-line);
	border-left: 6px solid var(--bmma-cl-red);
}

.bmma-cl__cta .bmma-cl__heading {
	font-size: 1.9em;
}

/* School page: the card starts with the instructors (no venue header — the hero has it) */
.bmma-cl__card > .bmma-cl__team:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
	margin-bottom: 18px;
}

/* ---- Instructors */

.bmma-cl__team {
	margin: 8px 0 12px;
	padding-top: 14px;
	border-top: 1px solid var(--bmma-cl-line);
}

.bmma-cl .bmma-cl__team-heading {
	margin: 0 0 10px;
	color: var(--bmma-cl-muted);
	font-family: var(--bmma-cl-head) !important;
	font-size: 1em;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.bmma-cl__team ul {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bmma-cl__team li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
}

.bmma-cl__team img {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
}

/* ---- Map */

.bmma-cl__map-wrap {
	margin-bottom: 28px;
}

.bmma-cl__map {
	height: 420px;
	background: #2a2d27;
	border: 1px solid var(--bmma-cl-line);
}

/* "Show map +" button — mobile only (see media query). Selectors carry ".bmma-cl button" so they
 * beat Hello Elementor's reset.css [type="button"] rule, which loads later and sets display + pink colours. */
.bmma-cl button.bmma-cl__map-toggle {
	display: none;
	width: 100%;
	padding: 14px 16px;
	background: transparent;
	border: 1px solid var(--bmma-cl-ink);
	border-radius: 2px;
	color: var(--bmma-cl-ink);
	font: inherit;
	font-family: var(--bmma-cl-head) !important;
	font-size: 1.15em;
	font-weight: 700;
	text-transform: uppercase;
	cursor: pointer;
}

.bmma-cl button.bmma-cl__map-toggle:hover,
.bmma-cl button.bmma-cl__map-toggle:focus,
.bmma-cl button.bmma-cl__map-toggle:focus-visible {
	background: rgba(243, 241, 234, 0.08);
	border-color: var(--bmma-cl-ink);
	color: var(--bmma-cl-ink);
}

.bmma-cl__map-toggle-icon {
	margin-left: 8px;
}

/* InfoWindow sits on Google's white bubble, so dark text here. */
.bmma-cl__info {
	color: #1d1c1c;
	font-size: 13px;
	line-height: 1.5;
}

.bmma-cl__info-links {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	margin-top: 6px;
}

.bmma-cl__info a {
	color: #c8102e;
	font-weight: 700;
}

.bmma-cl__lesson-info {
	min-width: 0;
	overflow-wrap: anywhere;
}

/* Medium card (town page cards): day name as a heading above its classes */
@container (max-width: 640px) {
	.bmma-cl__day {
		grid-template-columns: minmax(0, 1fr);
	}

	.bmma-cl .bmma-cl__day-name {
		padding-top: 10px;
	}

	.bmma-cl__lesson {
		grid-template-columns: 90px minmax(0, 1fr) auto;
	}
}

/* Narrow card (phone): time, then the class, then a full-width button */
@container (max-width: 480px) {
	.bmma-cl__lesson {
		grid-template-columns: minmax(0, 1fr);
		gap: 4px;
	}

	.bmma-cl .bmma-cl__lesson a.bmma-cl__button {
		margin-top: 4px;
		grid-column: 1 / -1;
		display: block;
		padding: 13px 16px;
	}
}

@media (max-width: 1024px) {
	.bmma-cl__groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
	.bmma-cl { padding: 32px 16px; }
	.bmma-cl .bmma-cl__heading { font-size: 1.8em; }

	.bmma-cl__grid,
	.bmma-cl__groups { grid-template-columns: minmax(0, 1fr); }

	.bmma-cl--school .bmma-cl__map { height: 240px; }

	.bmma-cl .bmma-cl__map-wrap--collapsible button.bmma-cl__map-toggle { display: block; }
	.bmma-cl__map-wrap--collapsible .bmma-cl__map { display: none; margin-top: 12px; height: 320px; }
	.bmma-cl__map-wrap--collapsible.is-open .bmma-cl__map { display: block; }

	.bmma-cl__card { padding: 18px 16px; }

}

/* ---- Related venues on town pages (render_related): same school elsewhere, then nearby */

.bmma-cl.bmma-related {
	padding-top: 8px;
}

.bmma-related__block + .bmma-related__block {
	margin-top: 40px;
}

.bmma-related__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
}

.bmma-cl__distance {
	margin-left: auto;
	color: var(--bmma-cl-gold);
	font-family: var(--bmma-cl-head) !important;
	font-size: 0.95em;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
}

/* ---- About (render_about): text beside a "Why train with us" panel */

.bmma-about {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
	gap: 40px;
	align-items: start;
	padding-top: 24px;
}

.bmma-about .bmma-about__title {
	margin: 0 0 20px;
	font-size: clamp(2.2rem, 4.5vw, 3.6rem);
	line-height: 0.95;
}

.bmma-about__content {
	color: #c9c7bc;
	font-size: 1.1rem;
	line-height: 1.65;
}

.bmma-about__content p {
	margin: 0 0 1em;
	color: inherit;
	font-size: inherit;
	line-height: inherit;
}

.bmma-about__panel {
	position: sticky;
	top: 120px; /* below the sticky site header */
	padding: 28px;
	background: var(--bmma-cl-card);
	border: 1px solid #2a2c25;
	border-top: 3px solid var(--bmma-cl-gold);
}

.bmma-about__benefits {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 16px;
	margin: 0 0 26px;
	padding: 0;
	list-style: none;
}

.bmma-cl .bmma-about__benefits li {
	position: relative;
	padding-left: 26px;
	color: var(--bmma-cl-ink);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.35;
}

/* Gold tick */
.bmma-about__benefits li::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 2px;
	width: 7px;
	height: 13px;
	border: solid var(--bmma-cl-gold);
	border-width: 0 3px 3px 0;
	transform: rotate(45deg);
}

.bmma-cl a.bmma-about__cta {
	display: block;
}

/* ---- The homepage's three coloured boxes (render_cta_tiles) */

.bmma-tiles {
	padding-top: 16px;
	padding-bottom: 64px;
}

.bmma-tiles__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2px;
}

.bmma-cl a.bmma-tile {
	display: flex;
	flex-direction: column;
	min-height: 200px;
	padding: 26px 26px 24px;
	color: #fff;
	text-decoration: none;
	transition: filter 0.15s;
}

.bmma-cl a.bmma-tile:hover,
.bmma-cl a.bmma-tile:focus-visible {
	color: #fff;
	filter: brightness(1.1);
}

.bmma-tile--red   { --bmma-tile: #c8102e; --bmma-tile-label: #f6c9d0; background: #c8102e; }
.bmma-tile--green { --bmma-tile: #4b5a2a; --bmma-tile-label: #d9e0b8; background: #4b5a2a; }
.bmma-tile--navy  { --bmma-tile: #1f2f4a; --bmma-tile-label: #c3d0e6; background: #1f2f4a; }

.bmma-tile__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: auto;
	padding-bottom: 28px;
}

.bmma-tile__label {
	color: var(--bmma-tile-label);
	font-family: "Barlow Condensed", sans-serif !important;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 2.8px;
	text-transform: uppercase;
}

.bmma-tile__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: #fff;
	color: var(--bmma-tile);
	font-size: 20px;
	font-weight: 700;
	transition: transform 0.15s;
}

a.bmma-tile:hover .bmma-tile__arrow {
	transform: translateX(3px);
}

.bmma-tile__title {
	margin-bottom: 6px;
	font-family: "Barlow Condensed", sans-serif !important;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.05;
	text-transform: uppercase;
}

.bmma-tile__text {
	font-size: 15px;
	line-height: 1.45;
}

@media (max-width: 1024px) {
	.bmma-about { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.bmma-about__panel { position: static; }
	.bmma-tiles__grid { grid-template-columns: minmax(0, 1fr); }
	.bmma-cl a.bmma-tile { min-height: 0; }
}

@media (max-width: 480px) {
	.bmma-about__panel { padding: 22px 18px; }
	.bmma-about__benefits { grid-template-columns: minmax(0, 1fr); }
	.bmma-tile__title { font-size: 26px; }
}

/* ---- [bmma_towns]: town links on the /classes/ page (style.css forces Montserrat on a, hence !important) */

.bmma-towns {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 2px;
}

a.bmma-towns__item {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-rows: auto auto;
	align-items: center;
	gap: 4px 12px;
	padding: 18px 20px;
	background: #1c1f1a;
	color: #f3f1ea !important;
	font-family: Barlow, Montserrat, sans-serif !important;
	text-decoration: none !important;
	transition: background-color 0.15s;
}

a.bmma-towns__item:hover,
a.bmma-towns__item:focus-visible {
	background: #23261e;
}

.bmma-towns__name {
	color: #f3f1ea;
	font-family: "Barlow Condensed", sans-serif !important;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.1;
	text-transform: uppercase;
}

.bmma-towns__count {
	grid-row: 2;
	color: #d9c28a;
	font-family: "Barlow Condensed", sans-serif !important;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.bmma-towns__arrow {
	grid-row: 1 / span 2;
	grid-column: 2;
	color: #d9c28a;
	font-size: 20px;
	transition: transform 0.15s;
}

a.bmma-towns__item:hover .bmma-towns__arrow {
	transform: translateX(3px);
}

@media (max-width: 1024px) {
	.bmma-towns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
	.bmma-towns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bmma-towns__name { font-size: 19px; }
	a.bmma-towns__item { padding: 14px 14px; }
}
