/*
Theme Name: Bamboo Mobility Academy
Theme URI: https://bamboobicycleclub.org/
Author: Bamboo Mobility Project CIC
Description: Block theme for the Bamboo Mobility Academy public website. Core blocks and reusable patterns only, so every page is edited in the block editor. Tokens come from BBC design system v3.1 and the 25–26 November 2026 brand proposal (Academy sky on forest and bone, Atkinson Hyperlegible Next).
Version: 0.1.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bma
*/

/* ------------------------------------------------------------------
   1. Type scale. Design system v3: sizes step at Carbon's breakpoints
      (phone under 672px, tablet 672–1055px, desktop 1056px and over).
      Never fluid, so every rendered size is on the scale.
   ------------------------------------------------------------------ */
body {
	--bma-h1: 84px;
	--bma-h2: 68px;
	--bma-h3: 36px;
	--bma-lede: 24px;
	--bma-body: 20px;
	--bma-small: 18px;
	--bma-caption: 16px;
	--bma-gutter: 32px;
	--bma-section: 96px;
	--bma-line: 2.5px;
	--bma-hair: 1.5px;
	--bma-forest: #003C32;
	--bma-forest-700: #002A23;
	--bma-bone: #E6DCC8;
	--bma-paper: #F1E9D8;
	--bma-sky: #8FD0FF;
	--bma-sky-tint: #E0F1FF;
	--bma-deep-sky: #17456E;
	--bma-lime: #D4FD62;
	--bma-ink: #0E1A17;
	--bma-charcoal: #2A332F;
	--bma-mist: #CFC5B0;
	--bma-muted-on-forest: #C4CFC9;
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}

@media (max-width: 1055px) {
	body {
		--bma-h1: 68px;
		--bma-h2: 54px;
		--bma-h3: 32px;
		--bma-section: 64px;
	}
}

@media (max-width: 671px) {
	body {
		--bma-h1: 48px;
		--bma-h2: 42px;
		--bma-h3: 28px;
		--bma-lede: 20px;
		--bma-body: 18px;
		--bma-gutter: 20px;
		--bma-section: 48px;
	}
}

h1, h2 { letter-spacing: -0.02em; }
h1, h2, h3, h4 { text-wrap: balance; }
p, li { text-wrap: pretty; }

a { text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 2.5px; }
:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 3px solid var(--bma-deep-sky);
	outline-offset: 3px;
}

/* The accent phrase: the last phrase of a heading in the Academy colour.
   In the editor: select the words, Highlight, pick "Deep sky" (or "Academy sky" on forest). */
mark.has-inline-color { background: none; display: inline-block; }

/* ------------------------------------------------------------------
   2. Sections. Group block styles: pick one in the Styles panel.
   ------------------------------------------------------------------ */
.wp-block-post-content > .alignfull,
.wp-block-post-content > .wp-block-group { margin-block: 0; }

.wp-block-group[class*="is-style-section"] {
	padding-top: var(--bma-section);
	padding-bottom: var(--bma-section);
}
.wp-block-group.is-style-section-paper { background: var(--bma-paper); }
.wp-block-group.is-style-section-sky { background: var(--bma-sky-tint); }
.wp-block-group.is-style-section-forest { background: var(--bma-forest); color: var(--bma-bone); }
.wp-block-group.is-style-section-lime { background: var(--bma-lime); color: var(--bma-forest); }

/* Strip: the slim sky band of route links under the home hero. */
.wp-block-group.is-style-strip {
	background: var(--bma-sky-tint);
	padding-top: 20px;
	padding-bottom: 20px;
	margin-block: 0;
}
.wp-block-group.is-style-strip .wp-block-columns { margin: 0; gap: 8px 32px; }
.wp-block-group.is-style-strip p { margin: 0; font-size: var(--bma-lede); line-height: 1.2; }
.wp-block-group.is-style-strip a { color: var(--bma-deep-sky); text-decoration: none; }
.wp-block-group.is-style-strip a:hover { text-decoration: underline; }

/* Keep running text to a readable measure and on the content column's left edge. */
.wp-block-group[class*="is-style-section"].is-layout-constrained > :is(p, .wp-block-heading, .wp-block-list, .wp-block-quote, .wp-block-buttons, .wp-block-details) {
	max-width: 880px;
	margin-left: max(0px, calc((100% - 1200px) / 2)) !important;
	margin-right: auto !important;
}
.wp-block-group[class*="is-style-section"].is-layout-constrained > .wp-block-heading { max-width: 1000px; }

.wp-block-group[class*="is-style-section"] > .wp-block-heading + * { margin-top: 32px; }
.wp-block-group[class*="is-style-section"] > * + .wp-block-columns,
.wp-block-group[class*="is-style-section"] > * + .wp-block-group { margin-top: 48px; }

/* Sky sections: deep sky headings, as on the proposal's tint strip. */
.is-style-section-sky :is(h1, h2, h3, h4),
.is-style-section-sky a:not(.wp-block-button__link) { color: var(--bma-deep-sky); }

/* Forest sections. */
.is-style-section-forest :is(h1, h2, h3, h4),
.is-style-hero :is(h1, h2, h3, h4) { color: var(--bma-bone); }
.is-style-section-forest a:not(.wp-block-button__link),
.is-style-hero a:not(.wp-block-button__link) { color: var(--bma-sky); }
.is-style-section-forest .has-deep-sky-color,
.is-style-hero .has-deep-sky-color { color: var(--bma-sky) !important; }

.is-style-section-lime :is(h1, h2, h3, h4),
.is-style-section-lime a:not(.wp-block-button__link) { color: var(--bma-forest); }

/* ------------------------------------------------------------------
   3. Hero: forest text panel beside a full-height photo.
   ------------------------------------------------------------------ */
.wp-block-group.is-style-hero {
	background: var(--bma-forest);
	color: var(--bma-bone);
	padding: 0;
}
.is-style-hero > .wp-block-columns {
	gap: 0;
	margin: 0;
	align-items: stretch !important;
}
.is-style-hero > .wp-block-columns > .wp-block-column:first-child {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 80px 64px 80px max(var(--bma-gutter), calc((100vw - 1200px) / 2));
}
.is-style-hero > .wp-block-columns > .wp-block-column:first-child > * { margin-block: 0; }
.is-style-hero > .wp-block-columns > .wp-block-column:first-child > * + * { margin-top: 24px; }
.is-style-hero > .wp-block-columns > .wp-block-column:first-child > .wp-block-buttons { margin-top: 32px; }
.is-style-hero > .wp-block-columns > .wp-block-column:last-child {
	position: relative;
	min-height: 600px;
}
.is-style-hero > .wp-block-columns > .wp-block-column:last-child .wp-block-image {
	position: absolute;
	inset: 0;
	margin: 0;
}
.is-style-hero > .wp-block-columns > .wp-block-column:last-child img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.is-style-hero .wp-block-image figcaption {
	position: absolute;
	left: 0;
	bottom: 0;
	margin: 0;
	padding: 8px 16px;
	max-width: 100%;
	background: rgba(0, 60, 50, 0.94);
	color: var(--bma-bone);
	font-size: var(--bma-caption);
	text-align: left;
}
.is-style-hero p { max-width: 30em; }

/* Keep the whole balance bike visible, including the wheels and handlebars. */
.is-style-hero.bma-hero-product > .wp-block-columns > .wp-block-column:last-child .wp-block-image {
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto;
	background: var(--bma-paper);
}
.is-style-hero.bma-hero-product > .wp-block-columns > .wp-block-column:last-child img {
	min-height: 0;
	object-fit: contain;
}
.is-style-hero.bma-hero-product .wp-block-image figcaption {
	position: static;
	background: var(--bma-forest);
}

@media (max-width: 1055px) {
	.is-style-hero > .wp-block-columns > .wp-block-column:first-child {
		padding: 64px 40px 64px var(--bma-gutter);
	}
	.is-style-hero > .wp-block-columns > .wp-block-column:last-child { min-height: 480px; }
}
@media (max-width: 781px) {
	.is-style-hero > .wp-block-columns > .wp-block-column:first-child {
		padding: 48px var(--bma-gutter);
	}
	.is-style-hero > .wp-block-columns > .wp-block-column:last-child {
		min-height: 0;
		aspect-ratio: 3 / 2;
	}
}
@media (max-width: 671px) {
	.is-style-hero.bma-hero-product > .wp-block-columns > .wp-block-column:last-child { aspect-ratio: 1 / 1; }
}

/* ------------------------------------------------------------------
   4. Text styles (paragraph block styles).
   ------------------------------------------------------------------ */
p.is-style-lede { font-size: var(--bma-lede); line-height: 1.35; }
p.is-style-photo-line,
p.is-style-source {
	font-size: var(--bma-caption);
	line-height: 1.3;
	color: var(--bma-charcoal);
}
.is-style-section-forest p.is-style-photo-line,
.is-style-section-forest p.is-style-source,
.is-style-hero p.is-style-photo-line { color: var(--bma-muted-on-forest); }
.is-style-section-sky p.is-style-source,
.is-style-section-sky p.is-style-photo-line { color: var(--bma-deep-sky); }

p.is-style-stat-number {
	font-size: var(--bma-h2);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--bma-forest);
	margin-bottom: 0;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.is-style-section-forest p.is-style-stat-number { color: var(--bma-sky); }
.is-style-section-sky p.is-style-stat-number { color: var(--bma-deep-sky); }

/* A marked gap: something James still has to confirm. Dashed means not final. */
p.is-style-gap {
	display: inline-block;
	border: var(--bma-hair) dashed currentColor;
	border-radius: 4px;
	padding: 4px 10px;
}

/* ------------------------------------------------------------------
   5. Cards, stats, steps (group block styles).
   ------------------------------------------------------------------ */
.wp-block-group.is-style-card,
.wp-block-group.is-style-card-sky {
	background: var(--bma-paper);
	border: var(--bma-line) solid var(--bma-ink);
	border-radius: 8px;
	padding: 32px;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
}
/* A card alone in its column fills the column, so a row of cards lines up. */
.wp-block-column > .wp-block-group:is(.is-style-card, .is-style-card-sky, .is-style-card-dashed):only-child { height: 100%; }
.wp-block-column > .wp-block-group:is(.is-style-card, .is-style-card-sky) + .wp-block-group { margin-top: 24px; }
.is-style-section-paper .wp-block-group.is-style-card { background: var(--bma-bone); }
.wp-block-group.is-style-card-sky {
	background: var(--bma-sky-tint);
	border-color: var(--bma-deep-sky);
}
.is-style-card-sky :is(h2, h3, h4) { color: var(--bma-deep-sky); }
.is-style-section-forest .wp-block-group.is-style-card {
	background: var(--bma-forest-700);
	border-color: rgba(230, 220, 200, 0.16);
}
.wp-block-group:is(.is-style-card, .is-style-card-sky) > * { margin-block: 0; }
.wp-block-group:is(.is-style-card, .is-style-card-sky) > * + * { margin-top: 16px; }
.wp-block-group:is(.is-style-card, .is-style-card-sky) > .wp-block-buttons {
	margin-top: auto;
	padding-top: 24px;
}
.wp-block-group:is(.is-style-card, .is-style-card-sky) > .wp-block-image:first-child {
	margin: -32px -32px 8px;
	max-width: none;
}
.wp-block-group:is(.is-style-card, .is-style-card-sky) > .wp-block-image:first-child img {
	border-radius: 5px 5px 0 0;
	width: 100%;
	display: block;
}
.wp-block-group.is-style-card p,
.wp-block-group.is-style-card-sky p { font-size: var(--bma-small); line-height: 1.45; }
.wp-block-group.is-style-card p.is-style-source,
.wp-block-group.is-style-card p.is-style-photo-line { font-size: var(--bma-caption); }

/* Dashed card: in development or proposed (deck v45: solid means running today). */
.wp-block-group.is-style-card-dashed {
	border: var(--bma-line) dashed var(--bma-ink);
	border-radius: 8px;
	padding: 32px;
	box-sizing: border-box;
}
.is-style-section-forest .wp-block-group.is-style-card-dashed { border-color: var(--bma-bone); }
.wp-block-group.is-style-card-dashed > * { margin-block: 0; }
.wp-block-group.is-style-card-dashed > * + * { margin-top: 16px; }
.wp-block-group.is-style-card-dashed p { font-size: var(--bma-small); line-height: 1.45; }

.wp-block-group.is-style-stat {
	border-top: var(--bma-line) solid currentColor;
	padding-top: 16px;
}
.wp-block-group.is-style-stat > * { margin-block: 0; }
.wp-block-group.is-style-stat > * + * { margin-top: 8px; }
.wp-block-group.is-style-stat > p:not([class]) { font-weight: 700; line-height: 1.3; }

/* Numbered steps: an ordered list drawn as a row of steps. */
ol.wp-block-list.is-style-steps {
	list-style: none;
	padding: 0;
	counter-reset: bma-step;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
	gap: 32px;
	max-width: var(--wp--style--global--content-size, 1200px) !important;
}
ol.wp-block-list.is-style-steps > li {
	counter-increment: bma-step;
	border-top: var(--bma-line) solid currentColor;
	padding-top: 16px;
	font-size: var(--bma-small);
	line-height: 1.45;
}
ol.wp-block-list.is-style-steps > li::before {
	content: counter(bma-step, decimal-leading-zero);
	display: block;
	font-size: var(--bma-lede);
	font-weight: 700;
	margin-bottom: 8px;
	color: var(--bma-deep-sky);
	font-variant-numeric: tabular-nums;
}
.is-style-section-forest ol.wp-block-list.is-style-steps > li::before { color: var(--bma-sky); }
ol.wp-block-list.is-style-steps > li strong { display: block; font-size: var(--bma-lede); line-height: 1.2; margin-bottom: 4px; }

/* Tick list. */
ul.wp-block-list.is-style-ticks { list-style: none; padding-left: 0; }
ul.wp-block-list.is-style-ticks > li {
	position: relative;
	padding-left: 32px;
	margin-bottom: 12px;
}
ul.wp-block-list.is-style-ticks > li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.5em;
	width: 16px;
	height: 5px;
	background: var(--bma-deep-sky);
}
.is-style-section-forest ul.wp-block-list.is-style-ticks > li::before { background: var(--bma-sky); }

/* ------------------------------------------------------------------
   6. Images, quotes, buttons, details.
   ------------------------------------------------------------------ */
.wp-block-image img { height: auto; max-width: 100%; }
.wp-block-image.is-style-rounded img,
.wp-block-image.is-style-photo img { border-radius: 12px; }
.wp-block-image figcaption {
	text-align: left;
	margin-top: 8px;
	margin-bottom: 0;
}
.is-style-section-forest .wp-block-image figcaption { color: var(--bma-muted-on-forest); }

.wp-block-quote { margin-inline: 0; }
.wp-block-quote p {
	font-size: var(--bma-h3);
	line-height: 1.2;
	font-weight: 700;
	color: var(--bma-forest);
	text-wrap: balance;
}
.wp-block-quote cite {
	display: block;
	margin-top: 16px;
	font-style: normal;
	font-size: var(--bma-small);
	color: var(--bma-deep-sky);
	font-weight: 700;
}
.is-style-section-forest .wp-block-quote p { color: var(--bma-bone); }
.is-style-section-forest .wp-block-quote cite { color: var(--bma-sky); }
.wp-block-quote.is-style-plain p { font-size: var(--bma-lede); font-weight: 400; line-height: 1.35; }

.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	box-sizing: border-box;
	text-decoration: none;
	transition: box-shadow 110ms cubic-bezier(0.2, 0, 0.38, 0.9);
}
.wp-block-button__link:hover { box-shadow: 0 0 0 3px var(--bma-forest); }
.is-style-section-forest .wp-block-button__link:hover,
.is-style-hero .wp-block-button__link:hover,
.bma-footer .wp-block-button__link:hover,
.bma-utility .wp-block-button__link:hover { box-shadow: 0 0 0 3px var(--bma-bone); }
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--bma-forest);
	border: var(--bma-line) solid var(--bma-forest);
	padding: 11.5px 22px;
}
.is-style-section-forest .wp-block-button.is-style-outline > .wp-block-button__link,
.is-style-hero .wp-block-button.is-style-outline > .wp-block-button__link {
	color: var(--bma-bone);
	border-color: var(--bma-bone);
}
/* The way across to the Club is always the Club's colour. */
.wp-block-button.is-style-club > .wp-block-button__link {
	background: var(--bma-lime);
	color: var(--bma-forest);
}
.wp-block-button.is-style-forest > .wp-block-button__link {
	background: var(--bma-forest);
	color: var(--bma-bone);
}
.wp-block-buttons { gap: 16px; }

.wp-block-details {
	border-top: var(--bma-hair) solid var(--bma-ink);
	padding: 16px 0;
	margin: 0;
}
.wp-block-details + .wp-block-details { margin-top: 0 !important; }
.wp-block-details summary { font-weight: 700; cursor: pointer; }
.wp-block-details > :not(summary) { margin-top: 12px; }

/* ------------------------------------------------------------------
   7. Header.
   ------------------------------------------------------------------ */
.wp-site-blocks > * { margin-block-start: 0; }

.bma-utility {
	background: var(--bma-forest);
	color: var(--bma-bone);
	padding: 8px max(var(--bma-gutter), calc((100vw - 1200px) / 2));
	gap: 24px;
	margin: 0;
}
.bma-utility p { margin: 0; font-size: var(--bma-caption); font-weight: 700; }
.bma-utility a:not(.wp-block-button__link) { color: var(--bma-bone); }
.bma-utility .wp-block-button__link {
	min-height: 32px;
	padding: 4px 14px;
	font-size: var(--bma-caption);
}
.bma-header {
	background: var(--bma-paper);
	padding: 16px max(var(--bma-gutter), calc((100vw - 1200px) / 2));
	gap: 24px;
	margin: 0;
	border-bottom: var(--bma-hair) solid var(--bma-mist);
}
.bma-header .bma-logo { margin: 0; flex-shrink: 0; }
.bma-header .bma-logo img { height: 52px; width: auto; display: block; }
.bma-header .wp-block-navigation { gap: 4px 26px; }
.bma-header .wp-block-navigation a { color: var(--bma-forest); text-decoration: none; white-space: nowrap; }
.bma-header .wp-block-navigation .wp-block-navigation-item__content { padding: 6px 0; }
.bma-header .wp-block-navigation .wp-block-navigation-item__content:hover,
.bma-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content {
	box-shadow: 0 3px 0 var(--bma-deep-sky);
}
.bma-header .wp-block-navigation-item.bma-nav-cta > .wp-block-navigation-item__content {
	background: var(--bma-sky);
	border-radius: 999px;
	padding: 8px 18px;
}
.bma-header .wp-block-navigation-item.bma-nav-cta > .wp-block-navigation-item__content:hover {
	box-shadow: 0 0 0 3px var(--bma-forest);
}
/* Shown only inside the phone menu: the utility bar carries it on wider screens. */
.bma-header .wp-block-navigation__responsive-container:not(.is-menu-open) .bma-nav-mobile-only { display: none; }
.bma-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--bma-paper);
	color: var(--bma-forest);
	padding: 24px var(--bma-gutter);
}
.bma-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	box-sizing: border-box;
	min-height: 44px;
	display: flex;
	align-items: center;
	font-size: var(--bma-lede);
	padding: 6px 0;
}
.bma-header .wp-block-navigation__responsive-container.is-menu-open :is(.wp-block-navigation__responsive-container-content, .wp-block-navigation__container) {
	align-items: flex-start;
}
.bma-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 0; }
.bma-header .wp-block-navigation__responsive-container.is-menu-open .bma-nav-cta > .wp-block-navigation-item__content { padding-inline: 20px; }
.bma-header .wp-block-navigation__responsive-container-open,
.bma-header .wp-block-navigation__responsive-container-close {
	color: var(--bma-forest);
	min-width: 44px;
	min-height: 44px;
	align-items: center;
	justify-content: center;
}
.bma-header .wp-block-navigation__responsive-container-open svg,
.bma-header .wp-block-navigation__responsive-container-close svg { width: 32px; height: 32px; }

/* Collapse to the menu button below 1280px: seven links do not fit a tablet. */
@media (min-width: 600px) and (max-width: 1279px) {
	.bma-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.bma-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
@media (max-width: 671px) {
	.bma-header .bma-logo { flex-shrink: 1; min-width: 0; }
	.bma-header .bma-logo img { height: auto; width: 264px; max-width: 100%; }
	.bma-header { padding-block: 12px; gap: 12px; }
	.bma-utility { justify-content: space-between; }
}

/* ------------------------------------------------------------------
   8. Footer.
   ------------------------------------------------------------------ */
.bma-footer {
	background: var(--bma-forest);
	color: var(--bma-bone);
	padding-top: 64px;
	padding-bottom: 40px;
	margin: 0;
}
.bma-footer :is(h2, h3, h4) { color: var(--bma-bone); font-size: var(--bma-small); margin-bottom: 12px; }
.bma-footer a { color: var(--bma-bone); }
.bma-footer a:hover { color: var(--bma-sky); }
.bma-footer p, .bma-footer li { font-size: var(--bma-small); line-height: 1.45; }
.bma-footer ul { list-style: none; padding: 0; margin: 0; }
.bma-footer li + li { margin-top: 8px; }
.bma-footer .bma-footer__logo img { width: 280px; max-width: 100%; height: auto; }
.bma-footer .bma-legal {
	border-top: var(--bma-hair) solid rgba(230, 220, 200, 0.3);
	margin-top: 48px;
	padding-top: 24px;
}
.bma-footer .bma-legal p { font-size: var(--bma-caption); line-height: 1.5; color: var(--bma-muted-on-forest); max-width: 62em; }
@media (min-width: 672px) and (max-width: 1055px) {
	.bma-footer > .wp-block-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.bma-footer .bma-legal p.is-style-gap { color: var(--bma-sky); }

/* ------------------------------------------------------------------
   9. Enquiry form.
   ------------------------------------------------------------------ */
.bma-form { display: grid; gap: 20px; max-width: 640px; }
.bma-form label { display: block; font-weight: 700; font-size: var(--bma-small); margin-bottom: 6px; }
.bma-form :is(input, select, textarea) {
	width: 100%;
	box-sizing: border-box;
	font: inherit;
	font-size: var(--bma-small);
	color: var(--bma-ink);
	background: #fff;
	border: var(--bma-line) solid var(--bma-ink);
	border-radius: 4px;
	padding: 10px 12px;
	min-height: 48px;
}
.bma-form textarea { min-height: 160px; resize: vertical; }
.bma-form button {
	font: inherit;
	font-weight: 700;
	font-size: var(--bma-body);
	background: var(--bma-sky);
	color: var(--bma-forest);
	border: 0;
	border-radius: 999px;
	padding: 14px 24px;
	min-height: 48px;
	cursor: pointer;
	justify-self: start;
}
.bma-form button:hover { box-shadow: 0 0 0 3px var(--bma-forest); }
.bma-form .bma-form__note { font-size: var(--bma-caption); color: var(--bma-charcoal); margin: 0; }
.bma-form .bma-form__status {
	font-size: var(--bma-small);
	font-weight: 700;
	margin: 0;
	padding: 12px 16px;
	border: var(--bma-hair) dashed var(--bma-deep-sky);
	border-radius: 4px;
	color: var(--bma-deep-sky);
	background: var(--bma-sky-tint);
}

/* ------------------------------------------------------------------
   10. Small screens and motion.
   ------------------------------------------------------------------ */
@media (max-width: 781px) {
	.wp-block-columns { gap: 32px; }
	.wp-block-group.is-style-card,
	.wp-block-group.is-style-card-sky,
	.wp-block-group.is-style-card-dashed { padding: 24px; }
	.wp-block-group:is(.is-style-card, .is-style-card-sky) > .wp-block-image:first-child { margin: -24px -24px 8px; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------------
   11. Diagrams. All built from core blocks, so editors can change the
       words. Solid outline = running today; dashed = in development.
   ------------------------------------------------------------------ */

/* Stats read as dimension lines from a drawing: a rule with a tick at each end. */
.wp-block-group.is-style-stat { position: relative; }
.wp-block-group.is-style-stat::before,
.wp-block-group.is-style-stat::after {
	content: "";
	position: absolute;
	top: -8px;
	height: 14px;
	border-left: var(--bma-line) solid currentColor;
}
.wp-block-group.is-style-stat::before { left: 0; }
.wp-block-group.is-style-stat::after { right: 0; }

/* Club and Academy: two cards joined by what they share. */
.wp-block-columns.bma-relation { gap: 0; align-items: stretch !important; }
.wp-block-group.is-style-link {
	position: relative;
	align-self: center;
	margin: 0 28px;
	padding: 16px;
	background: var(--bma-forest);
	color: var(--bma-bone);
	border-radius: 8px;
	text-align: center;
}
.bma-relation > .wp-block-column:has(> .is-style-link) { display: flex; flex-direction: column; justify-content: center; }
.wp-block-group.is-style-link > * { margin: 0; font-size: var(--bma-small); line-height: 1.3; }
.wp-block-group.is-style-link > * + * { margin-top: 6px; }
.wp-block-group.is-style-link p.is-style-source { color: var(--bma-muted-on-forest); font-size: var(--bma-caption); }
.wp-block-group.is-style-link::before,
.wp-block-group.is-style-link::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 28px;
	border-top: var(--bma-line) solid var(--bma-ink);
}
.wp-block-group.is-style-link::before { left: -28px; }
.wp-block-group.is-style-link::after { right: -28px; }

/* Pathway: linked boxes with an arrow between each. */
.wp-block-columns.bma-pathway { gap: 40px; align-items: stretch !important; }
.wp-block-group.is-style-path,
.wp-block-group.is-style-path-dashed {
	position: relative;
	height: 100%;
	box-sizing: border-box;
	padding: 24px;
	border: var(--bma-line) solid var(--bma-ink);
	border-radius: 8px;
	background: var(--bma-bone);
}
.wp-block-group.is-style-path-dashed { border-style: dashed; background: transparent; }
.is-style-section .wp-block-group.is-style-path { background: var(--bma-paper); }
:is(.is-style-path, .is-style-path-dashed) > * { margin-block: 0; }
:is(.is-style-path, .is-style-path-dashed) > * + * { margin-top: 12px; }
:is(.is-style-path, .is-style-path-dashed) > h3 { font-size: var(--bma-lede); line-height: 1.2; }
:is(.is-style-path, .is-style-path-dashed) > p { font-size: var(--bma-small); line-height: 1.45; }
:is(.is-style-path, .is-style-path-dashed) > p.is-style-source { font-size: var(--bma-caption); font-weight: 700; color: var(--bma-deep-sky); }
.bma-pathway > .wp-block-column:not(:last-child) > .wp-block-group::after {
	content: "\2192";
	position: absolute;
	right: -33px;
	top: 28px;
	width: 26px;
	text-align: center;
	font-size: var(--bma-lede);
	line-height: 1;
	color: var(--bma-deep-sky);
}

/* Ladder: programmes as rising steps. The rise shows order, not a measurement. */
.wp-block-columns.bma-ladder { gap: 20px; align-items: flex-end !important; }
.wp-block-group.is-style-ladder-step,
.wp-block-group.is-style-ladder-step-dashed {
	box-sizing: border-box;
	padding: 20px;
	border: var(--bma-line) solid var(--bma-ink);
	border-radius: 8px;
	background: var(--bma-paper);
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}
.wp-block-group.is-style-ladder-step-dashed { border-style: dashed; background: transparent; }
:is(.is-style-ladder-step, .is-style-ladder-step-dashed) > * { margin-block: 0; }
:is(.is-style-ladder-step, .is-style-ladder-step-dashed) > * + * { margin-top: 10px; }
:is(.is-style-ladder-step, .is-style-ladder-step-dashed) > p.is-style-stat-number { font-size: var(--bma-h3); color: var(--bma-deep-sky); }
:is(.is-style-ladder-step, .is-style-ladder-step-dashed) > h3 { font-size: var(--bma-lede); line-height: 1.15; }
:is(.is-style-ladder-step, .is-style-ladder-step-dashed) > p { font-size: var(--bma-caption); line-height: 1.35; }
@media (min-width: 1056px) {
	.bma-ladder > .wp-block-column:nth-child(1) > .wp-block-group { min-height: 250px; }
	.bma-ladder > .wp-block-column:nth-child(2) > .wp-block-group { min-height: 290px; }
	.bma-ladder > .wp-block-column:nth-child(3) > .wp-block-group { min-height: 330px; }
	.bma-ladder > .wp-block-column:nth-child(4) > .wp-block-group { min-height: 370px; }
	.bma-ladder > .wp-block-column:nth-child(5) > .wp-block-group { min-height: 410px; }
}

/* Weeks: one block is one week, both courses on the same six-week scale. */
ul.wp-block-list:is(.is-style-weeks, .is-style-weeks-sky) {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 8px;
	max-width: var(--wp--style--global--content-size, 1200px) !important;
}
ul.wp-block-list:is(.is-style-weeks, .is-style-weeks-sky) > li {
	background: var(--bma-forest);
	color: var(--bma-bone);
	border-radius: 4px;
	padding: 14px 8px;
	font-size: var(--bma-caption);
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	white-space: nowrap;
}
ul.wp-block-list.is-style-weeks-sky > li { background: var(--bma-sky); color: var(--bma-forest); }
.wp-block-columns.bma-weeks { gap: 24px; margin-top: 24px !important; }
.wp-block-columns.bma-weeks + .wp-block-columns.bma-weeks { margin-top: 12px !important; }
.bma-weeks p { margin: 0; font-size: var(--bma-small); line-height: 1.3; }
.bma-weeks p.is-style-source { font-size: var(--bma-caption); margin-top: 4px; }

/* Flow: a chain of chevrons (theory of change). Works on a bulleted or a numbered list. */
:is(ul, ol).wp-block-list.is-style-flow {
	list-style: none;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 0;
	max-width: var(--wp--style--global--content-size, 1200px) !important;
}
:is(ul, ol).wp-block-list.is-style-flow > li {
	display: flex;
	align-items: center;
	min-height: 64px;
	box-sizing: border-box;
	padding: 12px 32px 12px 40px;
	margin-left: -8px;
	background: var(--bma-forest);
	color: var(--bma-bone);
	font-weight: 700;
	font-size: var(--bma-small);
	line-height: 1.2;
	clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%, 20px 50%);
}
:is(ul, ol).wp-block-list.is-style-flow > li:first-child {
	margin-left: 0;
	padding-left: 24px;
	clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%);
}
:is(ul, ol).wp-block-list.is-style-flow > li::after { content: none !important; }
.is-style-section-forest :is(ul, ol).wp-block-list.is-style-flow > li { background: var(--bma-sky); color: var(--bma-forest); }

/* Numbers grouped by where they come from. */
.wp-block-group[class*="is-style-card"] p.is-style-stat-number {
	font-size: var(--bma-h2);
	line-height: 1;
	margin-top: 28px;
	padding-top: 16px;
	border-top: var(--bma-hair) solid var(--bma-mist);
}
.wp-block-group[class*="is-style-card"] > p.is-style-source:first-child + p.is-style-stat-number { margin-top: 8px; padding-top: 0; border-top: 0; }
.wp-block-group[class*="is-style-card"] p.is-style-stat-number + p + p.is-style-source { margin-top: 6px; }
.wp-block-group[class*="is-style-card"] p.is-style-stat-number + p { margin-top: 4px; }
.bma-numbers .wp-block-group[class*="is-style-card"] > p.is-style-source:first-child { font-weight: 700; color: var(--bma-deep-sky); }

/* One step per card so both roles remain visible on small screens. */
.wp-block-columns.bma-roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.bma-roles .wp-block-group.is-style-card > :is(h3, p) { margin-block: 0; }
.bma-roles .wp-block-group.is-style-card > h3 { font-size: var(--bma-lede); }
.bma-roles .wp-block-group.is-style-card > p { font-size: var(--bma-small); }
.bma-roles .wp-block-group.is-style-card > * + p { margin-block-start: 16px; }

/* Preserve the table style for pages that already use it. */
.wp-block-table.is-style-who-does-what { overflow-x: auto; margin-inline: 0; }
.wp-block-table.is-style-who-does-what table {
	min-width: 760px;
	border-collapse: collapse;
	border: var(--bma-line) solid var(--bma-ink);
	background: var(--bma-bone);
}
.wp-block-table.is-style-who-does-what :is(th, td) {
	border: var(--bma-hair) solid var(--bma-ink);
	padding: 16px;
	text-align: left;
	vertical-align: top;
	font-size: var(--bma-small);
	line-height: 1.4;
	word-break: normal;
}
.wp-block-table.is-style-who-does-what thead { border-bottom: 0; }
.wp-block-table.is-style-who-does-what th { background: var(--bma-forest); color: var(--bma-bone); font-weight: 700; }
.wp-block-table.is-style-who-does-what td:first-child { width: 7.5em; font-weight: 700; background: var(--bma-sky-tint); color: var(--bma-deep-sky); }
.wp-block-table.is-style-who-does-what figcaption { text-align: left; font-size: var(--bma-caption); color: var(--bma-charcoal); margin-top: 8px; }

@media (max-width: 1055px) {
	/* Pathway: two by two on a tablet. Ladder and number cards: one column, read top to bottom. */
	.wp-block-columns.bma-pathway { flex-wrap: wrap !important; gap: 24px; }
	.wp-block-columns.bma-pathway > .wp-block-column { flex-basis: calc(50% - 12px) !important; flex-grow: 0; }
	.wp-block-columns.bma-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bma-pathway > .wp-block-column:not(:last-child) > .wp-block-group::after { content: none; }
	.wp-block-columns:is(.bma-ladder, .bma-numbers) { flex-wrap: wrap !important; gap: 16px; }
	.wp-block-columns:is(.bma-ladder, .bma-numbers) > .wp-block-column { flex-basis: 100% !important; }
	.bma-ladder > .wp-block-column:nth-child(2) > .wp-block-group { margin-left: 12px; }
	.bma-ladder > .wp-block-column:nth-child(3) > .wp-block-group { margin-left: 24px; }
	.bma-ladder > .wp-block-column:nth-child(4) > .wp-block-group { margin-left: 36px; }
	.bma-ladder > .wp-block-column:nth-child(5) > .wp-block-group { margin-left: 48px; }
}
@media (max-width: 781px) {
	.wp-block-columns.bma-relation { gap: 0; }
	.wp-block-group.is-style-link { margin: 28px 0; align-self: stretch; }
	.wp-block-group.is-style-link::before,
	.wp-block-group.is-style-link::after {
		top: auto;
		left: 50%;
		right: auto;
		width: 0;
		height: 28px;
		border-top: 0;
		border-left: var(--bma-line) solid var(--bma-ink);
	}
	.wp-block-group.is-style-link::before { top: -28px; }
	.wp-block-group.is-style-link::after { bottom: -28px; }
	.wp-block-columns.bma-weeks { gap: 8px; }
}
@media (min-width: 672px) and (max-width: 1055px) {
	:is(ul, ol).wp-block-list.is-style-flow { gap: 4px; flex-wrap: nowrap; }
	:is(ul, ol).wp-block-list.is-style-flow > li,
	:is(ul, ol).wp-block-list.is-style-flow > li:first-child {
		flex: 1 1 0;
		min-width: 0;
		margin-left: 0;
		padding: 10px 16px;
		justify-content: center;
		text-align: center;
		clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%);
	}
	:is(ul, ol).wp-block-list.is-style-flow > li:first-child {
		clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
	}
}
@media (max-width: 671px) {
	.wp-block-columns.bma-pathway > .wp-block-column { flex-basis: 100% !important; }
	.wp-block-columns.bma-roles { grid-template-columns: minmax(0, 1fr); }
	ul.wp-block-list:is(.is-style-weeks, .is-style-weeks-sky) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	:is(ul, ol).wp-block-list.is-style-flow { flex-direction: column; gap: 4px; }
	:is(ul, ol).wp-block-list.is-style-flow > li,
	:is(ul, ol).wp-block-list.is-style-flow > li:first-child {
		margin-left: 0;
		padding: 12px 20px 22px;
		min-height: 0;
		clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), 50% 100%, 0 calc(100% - 12px));
	}
}

/* ------------------------------------------------------------------
   12. News: index, topic pages and a single post.
   ------------------------------------------------------------------ */
.bma-page-head > * { margin-block: 0; }
.bma-page-head > * + * { margin-top: 20px !important; }
.bma-page-head .wp-block-term-description p { font-size: var(--bma-lede); line-height: 1.35; margin: 0; }
p.bma-back { font-size: var(--bma-small); font-weight: 700; margin: 0; }
p.bma-back a { text-decoration: none; }
p.bma-back a::before { content: "\2190\00a0"; }
p.bma-back a:hover { text-decoration: underline; }

.bma-topics nav { gap: 8px 10px; align-items: center; }
.bma-topics p, .bma-topics li { margin: 0; font-size: var(--bma-small) !important; font-weight: 700; line-height: 1.2; }
.bma-topics ul.wp-block-categories { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.bma-topics a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	box-sizing: border-box;
	padding: 6px 16px;
	border: var(--bma-line) solid var(--bma-deep-sky);
	border-radius: 999px;
	color: var(--bma-deep-sky);
	text-decoration: none;
}
.bma-topics a:hover { text-decoration: underline; }
.bma-topics .current-cat > a,
body.blog .bma-topics__all a { background: var(--bma-deep-sky); color: #fff; }

.bma-news .wp-block-post-template { gap: 32px; margin: 0; padding: 0; }
.wp-block-group.is-style-card.bma-post-card { padding: 0; overflow: hidden; height: 100%; }
.wp-block-group.bma-post-card > * { margin: 0 24px; }
.wp-block-group.bma-post-card > * + * { margin-top: 10px; }
.wp-block-group.bma-post-card > :last-child { margin-bottom: 24px; }
.wp-block-group.bma-post-card > .wp-block-post-featured-image { margin: 0 0 14px; }
.wp-block-group.bma-post-card > .wp-block-post-featured-image img { display: block; width: 100%; }
/* A post with no cleared picture gets a forest panel with the Academy symbol, never a stand-in photo. */
.wp-block-group.bma-post-card:not(:has(> .wp-block-post-featured-image))::before {
	content: "";
	display: block;
	aspect-ratio: 3 / 2;
	margin-bottom: 14px;
	background: var(--bma-forest) url("assets/logos/academy-symbol-colour-on-forest.svg") center / 88px auto no-repeat;
}
.bma-post-meta { gap: 4px 12px; font-size: var(--bma-caption); font-weight: 700; color: var(--bma-deep-sky); line-height: 1.3; }
.bma-post-meta a { color: inherit; text-decoration: none; }
.bma-post-meta a:hover { text-decoration: underline; }
.bma-post-meta .wp-block-post-date { color: var(--bma-charcoal); }
.bma-post-card .wp-block-post-title { font-size: var(--bma-lede); line-height: 1.15; }
.bma-post-card .wp-block-post-title a { color: var(--bma-forest); text-decoration: none; }
.bma-post-card .wp-block-post-title a:hover { text-decoration: underline; }
.bma-post-card .wp-block-post-excerpt p { font-size: var(--bma-small); line-height: 1.45; margin: 0; }
.bma-post-card .wp-block-post-excerpt__more-text { display: none; }
.wp-block-query-pagination { margin-top: 48px; font-weight: 700; gap: 16px; }
.wp-block-query-pagination a { color: var(--bma-deep-sky); }
.wp-block-query-pagination-numbers { display: flex; flex-wrap: wrap; gap: 4px; }
.wp-block-query-pagination-numbers .page-numbers,
.wp-block-query-pagination > a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	min-width: 44px;
}
.wp-block-query-pagination-numbers .page-numbers.current {
	background: var(--bma-deep-sky);
	color: #fff;
	border-radius: 4px;
}

.bma-post-head { padding-bottom: 32px !important; }
.bma-post-head > * { margin-block: 0; }
.bma-post-head > * + * { margin-top: 20px !important; }
.bma-post-head .wp-block-post-title { font-size: var(--bma-h2); line-height: 1.05; }
.bma-post-head .bma-post-meta { font-size: var(--bma-small); }
.bma-post-body { padding-top: 0 !important; }
.bma-post-body .wp-block-post-content > * {
	margin-left: max(0px, calc((100% - 1200px) / 2)) !important;
	margin-right: auto !important;
}
.bma-post-body .wp-block-post-content > * + * { margin-top: 24px; }
.bma-post-body .wp-block-post-content > :is(h2, h3) { margin-top: 40px; }
.bma-post-body .wp-block-post-content h2 { font-size: var(--bma-h3); line-height: 1.15; }
.bma-post-body .wp-block-post-content h3 { font-size: var(--bma-lede); line-height: 1.2; }
.bma-post-body .wp-block-post-content > .wp-block-image:first-child { max-width: 1000px; margin-bottom: 40px; }
.bma-post-body .wp-block-post-content .wp-block-image img { border-radius: 12px; display: block; }
.bma-post-body .wp-block-post-content figcaption { font-size: var(--bma-caption); color: var(--bma-charcoal); }
.bma-post-body .wp-block-quote { border-left: 5px solid var(--bma-deep-sky); padding-left: 24px; }
.bma-post-body .wp-block-quote p { font-size: var(--bma-lede); line-height: 1.35; }

/* ------------------------------------------------------------------
   13. Contact page, utility bar links, focus and button edges.
   ------------------------------------------------------------------ */
.bma-contact h2 { font-size: var(--bma-h3); line-height: 1.15; }
.bma-contact .wp-block-column > h2 { margin-top: 48px; }
.wp-block-group[class*="is-style-card"] > h2 { font-size: var(--bma-h3); line-height: 1.15; }

.bma-utility .bma-utility__links { gap: 24px; margin: 0; }
.bma-utility .bma-utility__links p { margin: 0; }
@media (max-width: 1279px) {
	.bma-utility .bma-utility__more { display: none; }
	.bma-utility { justify-content: flex-end; }
}

/* Focus ring: deep sky on light grounds, Academy sky on forest. */
:is(.is-style-section-forest, .is-style-hero, .bma-footer, .bma-utility, .bma-page-head) :where(a, button, input, select, textarea, summary):focus-visible {
	outline-color: var(--bma-sky);
}
/* Sky buttons on bone and paper get a forest edge so the shape reads without relying on the fill. */
.wp-block-button:not(.is-style-outline):not(.is-style-club):not(.is-style-forest) > .wp-block-button__link,
.bma-form button {
	border: var(--bma-line) solid var(--bma-forest);
	padding: 11.5px 22px;
}
:is(.is-style-section-forest, .is-style-hero) .wp-block-button:not(.is-style-outline):not(.is-style-club):not(.is-style-forest) > .wp-block-button__link {
	border-color: var(--bma-sky);
}
.bma-header .wp-block-navigation-item.bma-nav-cta > .wp-block-navigation-item__content { box-shadow: inset 0 0 0 var(--bma-line) var(--bma-forest); }
/* In the open phone menu, long labels wrap instead of running off the screen. */
.bma-header .wp-block-navigation__responsive-container.is-menu-open a { white-space: normal; }

/* ------------------------------------------------------------------
   14. Fixes found by looking at the pages at real size (26 Nov 2026).
   ------------------------------------------------------------------ */
.wp-block-group.bma-post-card > .wp-block-post-title { font-size: var(--bma-lede); line-height: 1.15; }
.bma-topics ul.wp-block-categories { display: contents; }
.bma-topics nav { list-style: none; }
.wp-block-group[class*="is-style-card"] li { font-size: var(--bma-small); line-height: 1.45; }
.wp-block-group.is-style-card-sky p.is-style-source,
.wp-block-group.is-style-card-dashed p.is-style-source { font-size: var(--bma-caption); }

/* A post: heading, picture and text share one left edge. */
.bma-post > .wp-block-group { margin-block: 0; }
.bma-post-head > * {
	margin-left: max(0px, calc((100% - 1200px) / 2)) !important;
	margin-right: auto !important;
}
.bma-post-head .wp-block-post-title { max-width: 1000px; }
.bma-post-body .wp-block-post-content > .wp-block-image img {
	max-height: 640px;
	width: auto;
}
@media (max-width: 671px) {
	.bma-post-head .wp-block-post-title { font-size: var(--bma-h3); text-wrap: wrap; }
}
/* WordPress core lets these break in the middle of a word; wrap whole words and only split one that cannot fit. */
.wp-block-button__link, .wp-block-column, .wp-block-post-title,
.wp-block-table td, .wp-block-table th { word-break: normal; overflow-wrap: break-word; }

/* ------------------------------------------------------------------
   15. Layouts taken from the team's decks (overview v45, Chris's
       Intro to Service, Vicky's Bamboo Works). November 2026.
   ------------------------------------------------------------------ */

/* Doors: who are you? Four routes under the home hero. */
.wp-block-group.is-style-strip.bma-doors { padding-top: 28px; padding-bottom: 28px; }
.bma-doors .wp-block-columns { gap: 0 !important; }
.bma-doors .wp-block-column { padding: 2px 28px; border-left: var(--bma-hair) solid var(--bma-deep-sky); }
.bma-doors .wp-block-column:first-child { padding-left: 0; border-left: 0; }
.wp-block-group.is-style-strip p.is-style-source {
	font-size: var(--bma-caption);
	line-height: 1.4;
	font-weight: 400;
	color: var(--bma-charcoal);
	margin-top: 6px;
}

/* Rail: points on one line. Solid runs today, dashed is in development. */
ol.wp-block-list.is-style-rail {
	list-style: none;
	padding: 0;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	gap: 0 28px;
	max-width: var(--wp--style--global--content-size, 1200px) !important;
}
ol.wp-block-list.is-style-rail > li {
	position: relative;
	padding-top: 38px;
	font-size: var(--bma-small);
	line-height: 1.45;
}
ol.wp-block-list.is-style-rail > li::before {
	content: "";
	position: absolute;
	top: 9px;
	left: 0;
	right: -28px;
	border-top: var(--bma-line) solid currentColor;
}
ol.wp-block-list.is-style-rail > li:last-child::before { right: 0; }
ol.wp-block-list.is-style-rail > li::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 20px;
	height: 20px;
	box-sizing: border-box;
	border-radius: 50%;
	border: var(--bma-line) solid currentColor;
	background: var(--bma-sky);
}
ol.wp-block-list.is-style-rail > li.is-dashed::before { border-top-style: dashed; }
ol.wp-block-list.is-style-rail > li.is-dashed::after { border-style: dashed; background: var(--bma-paper); }
.is-style-section ol.wp-block-list.is-style-rail > li.is-dashed::after { background: var(--bma-bone); }
.is-style-section-forest ol.wp-block-list.is-style-rail > li.is-dashed::after { background: var(--bma-forest); }
ol.wp-block-list.is-style-rail > li strong { display: block; font-size: var(--bma-lede); line-height: 1.2; margin-bottom: 6px; }
ol.wp-block-list.is-style-rail > li a { display: block; margin-top: 8px; font-weight: 700; }

/* Facts: label and value rows (cohort, format, duration). */
ul.wp-block-list.is-style-facts {
	list-style: none;
	padding: 0;
	border-top: var(--bma-hair) solid currentColor;
}
ul.wp-block-list.is-style-facts > li {
	display: grid;
	grid-template-columns: 8em minmax(0, 1fr);
	gap: 16px;
	padding: 10px 0;
	border-bottom: var(--bma-hair) solid var(--bma-mist);
	font-size: var(--bma-small);
	line-height: 1.4;
}
.is-style-section-forest ul.wp-block-list.is-style-facts > li { border-bottom-color: rgba(230, 220, 200, 0.3); }
ul.wp-block-list.is-style-facts.bma-facts-wide > li { grid-template-columns: 10.5em minmax(0, 1fr); }

/* Specification table: what you build, with what, and what it teaches. */
.wp-block-table.is-style-spec { margin-inline: 0; }
.wp-block-table.is-style-spec table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: var(--bma-hair) solid var(--bma-ink);
	border-radius: 8px;
	overflow: hidden;
	font-size: var(--bma-small);
	line-height: 1.35;
}
.wp-block-table.is-style-spec :is(td, th) { padding: 11px 16px; border: 0; border-bottom: var(--bma-hair) solid var(--bma-mist); vertical-align: top; text-align: left; }
.wp-block-table.is-style-spec tr:last-child :is(td, th) { border-bottom: 0; }
.wp-block-table.is-style-spec :is(td, th):first-child { width: 6.5em; font-weight: 700; background: var(--bma-sky-tint); color: var(--bma-deep-sky); }

/* What comes next: the forest box at the foot of a programme panel. */
.wp-block-group:is(.is-style-next, .is-style-next-dashed) {
	border-radius: 8px;
	padding: 16px 20px;
	background: var(--bma-forest);
	color: var(--bma-bone);
}
.wp-block-group:is(.is-style-next, .is-style-next-dashed) p { margin: 0; font-size: var(--bma-small); line-height: 1.4; }
.wp-block-group.is-style-next strong { color: var(--bma-sky); }
.wp-block-group.is-style-next-dashed { background: transparent; color: inherit; border: var(--bma-line) dashed var(--bma-ink); }
.wp-block-group.is-style-next-dashed strong { color: var(--bma-deep-sky); }

/* Programme panel: text and facts beside the thing you make. */
.wp-block-columns.bma-panel { gap: 48px; align-items: flex-start !important; padding-top: 40px; border-top: var(--bma-line) solid var(--bma-ink); }
.wp-block-columns.bma-panel + .wp-block-columns.bma-panel { margin-top: 56px !important; }
.bma-panel > .wp-block-column > * { margin-block: 0; }
.bma-panel > .wp-block-column > * + * { margin-top: 20px; }
.bma-panel > .wp-block-column > p.is-style-source:first-child { font-weight: 700; color: var(--bma-deep-sky); }
.bma-panel > .wp-block-column > p.is-style-source:first-child + .wp-block-heading { margin-top: 8px; }

/* Timetable. */
.wp-block-table.is-style-timetable { margin-inline: 0; overflow-x: auto; }
.wp-block-table.is-style-timetable table {
	width: 100%;
	min-width: 620px;
	border-collapse: collapse;
	font-size: var(--bma-small);
	line-height: 1.35;
}
.wp-block-table.is-style-timetable thead { border-bottom: 0; }
.wp-block-table.is-style-timetable th {
	background: var(--bma-forest);
	color: var(--bma-bone);
	text-align: left;
	font-weight: 700;
	padding: 12px 16px;
	border: 0;
}
.wp-block-table.is-style-timetable td { padding: 12px 16px; border: 0; border-bottom: var(--bma-hair) solid var(--bma-mist); vertical-align: top; }
.wp-block-table.is-style-timetable td:first-child { font-weight: 700; white-space: nowrap; }
.wp-block-table:is(.is-style-timetable, .is-style-spec) figcaption { text-align: left; font-size: var(--bma-caption); color: var(--bma-charcoal); margin-top: 10px; }

/* Photo strip: four pictures, each with a word and a sentence. */
.wp-block-columns.bma-photostrip { gap: 24px; align-items: flex-start !important; }
.bma-photostrip .wp-block-image { margin: 0; }
.bma-photostrip .wp-block-image img { width: 100%; display: block; }
.bma-photostrip h3 { font-size: var(--bma-lede); line-height: 1.2; margin: 16px 0 6px; }
.bma-photostrip p { font-size: var(--bma-small); line-height: 1.45; margin: 0; }

/* Qualities: a ruled grid of short headed notes. */
.wp-block-columns.bma-notes { gap: 32px; }
.wp-block-columns.bma-notes + .wp-block-columns.bma-notes { margin-top: 32px !important; }
.bma-notes > .wp-block-column { border-top: var(--bma-line) solid currentColor; padding-top: 16px; }
.bma-notes h3 { font-size: var(--bma-lede); line-height: 1.2; margin: 0 0 6px; }
.bma-notes p { font-size: var(--bma-small); line-height: 1.45; margin: 0; }
.bma-notes p + p { margin-top: 10px; }

/* Site list: one box for each prison site. */
.wp-block-columns.bma-sites { gap: 20px; align-items: stretch !important; }

/* Film: our own poster picture until the visitor presses play. */
.bma-film { margin: 0; }
.bma-film__box { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--bma-forest); }
.bma-film__play { display: block; height: 100%; }
.bma-film__play img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bma-film__button {
	position: absolute;
	left: 20px;
	bottom: 20px;
	display: inline-flex;
	gap: 10px;
	align-items: center;
	min-height: 48px;
	box-sizing: border-box;
	padding: 10px 22px;
	border-radius: 999px;
	background: var(--bma-sky);
	color: var(--bma-forest);
	font-weight: 700;
	font-size: var(--bma-small);
	border: var(--bma-line) solid var(--bma-forest);
}
.bma-film__play:hover .bma-film__button, .bma-film__play:focus-visible .bma-film__button { box-shadow: 0 0 0 3px var(--bma-bone); }
.bma-film__frame { width: 100%; height: 100%; border: 0; display: block; }
.bma-film figcaption { font-size: var(--bma-caption); line-height: 1.45; margin-top: 10px; color: var(--bma-charcoal); }
.is-style-section-forest .bma-film figcaption { color: var(--bma-muted-on-forest); }

/* Logo rows: other organisations' marks, shown in one tone. */
.bma-logos { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 24px 44px; }
.bma-logos li { margin: 0; }
.bma-logos img { height: 28px; width: auto; max-width: 180px; object-fit: contain; display: block; filter: grayscale(1) contrast(1.15); mix-blend-mode: multiply; opacity: 0.82; }
.bma-logos--museums img { height: 52px; max-width: 220px; }
.is-style-section-forest .bma-logos img { filter: grayscale(1) invert(1) brightness(1.8); mix-blend-mode: screen; opacity: 0.9; }

/* Screenshots of the instructor app. */
.wp-block-image.is-style-screen img { border: var(--bma-hair) solid var(--bma-ink); border-radius: 10px; display: block; }
.wp-block-columns.bma-app { gap: 48px; align-items: center !important; margin-top: 40px; }
.wp-block-image.is-style-screen { margin-inline: 0; }

/* A portrait card keeps the face in frame. */
.bma-people .wp-block-image img { object-position: 50% 22%; }

/* Type-led page opener (no photo). */
.wp-block-group.bma-opener { padding-bottom: 32px; }

@media (max-width: 1055px) {
	.wp-block-columns.bma-photostrip { flex-wrap: wrap !important; }
	.wp-block-columns.bma-photostrip > .wp-block-column { flex-basis: calc(50% - 12px) !important; flex-grow: 0; }
	.wp-block-columns.bma-sites { flex-wrap: wrap !important; }
	.wp-block-columns.bma-sites > .wp-block-column { flex-basis: calc(50% - 10px) !important; flex-grow: 0; }
	.wp-block-columns.bma-panel { gap: 32px; }
	.bma-doors .wp-block-columns { flex-wrap: wrap !important; gap: 20px 0 !important; }
	.bma-doors .wp-block-columns > .wp-block-column.wp-block-column { flex-basis: 50% !important; flex-grow: 0; box-sizing: border-box; }
	.bma-doors .wp-block-column:nth-child(odd) { padding-left: 0; border-left: 0; }
}
@media (max-width: 781px) {
	ol.wp-block-list.is-style-rail { grid-auto-flow: row; gap: 0; }
	ol.wp-block-list.is-style-rail > li { padding: 0 0 28px 40px; }
	ol.wp-block-list.is-style-rail > li:last-child { padding-bottom: 0; }
	ol.wp-block-list.is-style-rail > li::before,
	ol.wp-block-list.is-style-rail > li:last-child::before {
		top: 10px;
		bottom: -10px;
		left: 9px;
		right: auto;
		border-top: 0;
		border-left: var(--bma-line) solid currentColor;
	}
	ol.wp-block-list.is-style-rail > li.is-dashed::before { border-left-style: dashed; }
	ol.wp-block-list.is-style-rail > li:last-child::before { content: none; }
	.bma-notes > .wp-block-column + .wp-block-column { margin-top: 8px; }
}
@media (max-width: 671px) {
	.wp-block-columns.bma-photostrip > .wp-block-column,
	.wp-block-columns.bma-sites > .wp-block-column { flex-basis: 100% !important; }
	.bma-doors .wp-block-columns > .wp-block-column.wp-block-column { flex-basis: 100% !important; padding-left: 0; border-left: 0; }
	ul.wp-block-list.is-style-facts > li,
	ul.wp-block-list.is-style-facts.bma-facts-wide > li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
	.bma-logos { gap: 20px 28px; }
	.bma-logos img { height: 22px; max-width: 130px; }
	.bma-logos--museums img { height: 40px; }
}

/* ==========================================================================
   16. Corrections made after looking at the rebuilt pages (November 2026)
   ========================================================================== */

/* A photo that opens a card: its photo line sits inside the card's padding. */
.wp-block-group:is(.is-style-card, .is-style-card-sky) > .wp-block-image:first-child figcaption {
	margin: 0;
	padding: 8px 32px 0;
	text-align: left;
}

/* Site boxes on the forest band. */
.is-style-section-forest .bma-sites .wp-block-group.is-style-path {
	background: var(--bma-bone);
	border-color: var(--bma-bone);
	color: var(--bma-forest);
}
.is-style-section-forest .bma-sites .wp-block-group.is-style-path :is(h3, p) { color: var(--bma-forest); }
.is-style-section-forest .bma-sites .wp-block-group.is-style-path-dashed { border-color: var(--bma-bone); }
.is-style-section-forest .bma-sites .wp-block-group.is-style-path-dashed h3 { color: var(--bma-bone); }
.is-style-section-forest .bma-sites .wp-block-group.is-style-path-dashed p.is-style-source { color: var(--bma-sky); }
.is-style-section-forest .wp-block-columns.bma-sites + p.is-style-source { margin-bottom: 40px; }

/* Room between a row of cards and the numbered steps or button that follow it. */
.wp-block-columns + ol.wp-block-list.is-style-steps { margin-top: 48px; }
ol.wp-block-list.is-style-steps + .wp-block-buttons { margin-top: 40px; }
.wp-block-columns + .wp-block-heading { margin-top: 48px; }

/* Play sits clear of the title that is part of each film's poster. */
.bma-film__button { left: auto; right: 20px; }

/* An enquiry form placed straight in a section lines up with the heading above it. */
.wp-block-group[class*="is-style-section"] > .bma-form,
.wp-block-group[class*="is-style-section"] > .bma-enquiry { margin-left: 0 !important; margin-right: auto !important; }

/* Product hero: the picture sits on paper as a framed photo, not a letterbox. */
.is-style-hero.bma-hero-product > .wp-block-columns > .wp-block-column:last-child .wp-block-image {
	grid-template-rows: auto auto;
	align-content: center;
	padding: 40px;
	box-sizing: border-box;
}
.is-style-hero.bma-hero-product > .wp-block-columns > .wp-block-column:last-child img {
	height: auto;
	border-radius: 12px;
}
.is-style-hero.bma-hero-product .wp-block-image figcaption {
	background: transparent;
	color: var(--bma-charcoal);
	padding: 12px 0 0;
}


@media (max-width: 781px) {
	.is-style-hero.bma-hero-product > .wp-block-columns > .wp-block-column:last-child .wp-block-image { padding: 24px; }
	.wp-block-group:is(.is-style-card, .is-style-card-sky) > .wp-block-image:first-child figcaption { padding: 8px 24px 0; }
}

/* A text page (privacy): headed paragraphs with room between them. */

/* A timetable beside other content fits its column instead of scrolling sideways. */
.wp-block-column .wp-block-table.is-style-timetable table { min-width: 0; }

/* Timetables on a phone: each row becomes a short block, so nothing is hidden off to the side. */
@media (max-width: 615px) {
	.wp-block-table.is-style-timetable { overflow-x: visible; }
	.wp-block-table.is-style-timetable table { min-width: 0; table-layout: auto; }
	.wp-block-table.is-style-timetable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.wp-block-table.is-style-timetable :is(tbody, tr, td) { display: block; width: auto; }
	.wp-block-table.is-style-timetable tr { padding: 12px 0; border-bottom: var(--bma-hair) solid var(--bma-mist); }
	.wp-block-table.is-style-timetable tbody tr:first-child { border-top: 2px solid var(--bma-forest); }
	.wp-block-table.is-style-timetable td { padding: 0; border: 0; }
	.wp-block-table.is-style-timetable td + td { margin-top: 4px; }
	.wp-block-table.is-style-timetable td:first-child { white-space: normal; }
}

/* ------------------------------------------------------------------
   Review round, 26 November 2026 (design review 2).
   ------------------------------------------------------------------ */
/* Running text: about 70 characters a line. Headings keep the wider measure. */
.wp-block-group[class*="is-style-section"].is-layout-constrained > :is(p, .wp-block-list:not([class*="is-style-"]), .wp-block-details) { max-width: 720px; }
.wp-block-image figcaption, p.is-style-source, p.is-style-photo-line { text-wrap: pretty; }
.wp-block-post-date, .wp-block-post-date time { white-space: nowrap; }

/* Hero: the caption band runs the width of the picture on every page. */
.is-style-hero .wp-block-image figcaption { right: 0; }

/* Hero: from a small laptop down, the picture goes above the words at full width,
   so the first screen has a person and the promise in it, not a sliver of photo. */
@media (max-width: 959px) {
	.is-style-hero > .wp-block-columns { flex-wrap: wrap !important; }
	.is-style-hero > .wp-block-columns > .wp-block-column { flex-basis: 100% !important; }
	.is-style-hero > .wp-block-columns > .wp-block-column:first-child { padding: 48px var(--bma-gutter) 56px; }
	.is-style-hero > .wp-block-columns > .wp-block-column:last-child { order: -1; min-height: 0; aspect-ratio: 16 / 9; }
	.is-style-hero.bma-hero-product > .wp-block-columns > .wp-block-column:last-child { aspect-ratio: 3 / 2; }
}
@media (max-width: 671px) {
	.is-style-hero > .wp-block-columns > .wp-block-column:first-child { padding: 32px var(--bma-gutter) 40px; }
	.is-style-hero > .wp-block-columns > .wp-block-column:last-child { aspect-ratio: 3 / 2; }
	.is-style-hero > .wp-block-columns > .wp-block-column:first-child > * + * { margin-top: 16px; }
	.is-style-hero > .wp-block-columns > .wp-block-column:first-child > .wp-block-buttons { margin-top: 24px; }
}

/* Rail: the upright version from 959px down, where four across would squeeze the words. */
@media (min-width: 782px) and (max-width: 959px) {
	ol.wp-block-list.is-style-rail { grid-auto-flow: row; gap: 0; }
	ol.wp-block-list.is-style-rail > li { padding: 0 0 28px 40px; }
	ol.wp-block-list.is-style-rail > li:last-child { padding-bottom: 0; }
	ol.wp-block-list.is-style-rail > li::before,
	ol.wp-block-list.is-style-rail > li:last-child::before {
		top: 22px; bottom: 0; left: 10px; right: auto; width: 0; height: auto;
		border-top: 0; border-left: var(--bma-line) solid var(--bma-forest);
	}
	ol.wp-block-list.is-style-rail > li.is-dashed::before { border-left-style: dashed; }
	ol.wp-block-list.is-style-rail > li:last-child::before { content: none; }
	ol.wp-block-list.is-style-rail > li::after { top: 0; left: 0; }
}

/* Figures: two by two on a tablet, and the source lines share one baseline on a desktop. */
.wp-block-group.is-style-stat { display: flex; flex-direction: column; height: 100%; box-sizing: border-box; }
.wp-block-group.is-style-stat > p.is-style-source { margin-top: auto; padding-top: 8px; }
@media (min-width: 782px) and (max-width: 1055px) {
	.wp-block-columns:has(> .wp-block-column > .wp-block-group.is-style-stat) { flex-wrap: wrap !important; gap: 32px 24px; }
	.wp-block-columns:has(> .wp-block-column > .wp-block-group.is-style-stat) > .wp-block-column { flex-basis: calc(50% - 12px) !important; flex-grow: 0; }
}

/* Two cards that each hold a table need the full width before a phone does. */
@media (min-width: 782px) and (max-width: 959px) {
	.wp-block-columns:has(> .wp-block-column > .wp-block-group[class*="is-style-card"] .wp-block-table) { flex-wrap: wrap !important; }
	.wp-block-columns:has(> .wp-block-column > .wp-block-group[class*="is-style-card"] .wp-block-table) > .wp-block-column { flex-basis: 100% !important; }
}
/* Cards in a row are the same height. */
.wp-block-columns > .wp-block-column > .wp-block-group[class*="is-style-card"]:only-child { height: 100%; box-sizing: border-box; }

/* Ladder below a desktop: one tidy list, no stagger. Number on the left, words on the right. */
@media (max-width: 1055px) {
	.wp-block-columns.bma-ladder { gap: 10px; }
	.bma-ladder > .wp-block-column:nth-child(n) > .wp-block-group { margin-left: 0; }
	.wp-block-group:is(.is-style-ladder-step, .is-style-ladder-step-dashed) {
		display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; row-gap: 4px; padding: 14px 16px; align-items: baseline;
	}
	:is(.is-style-ladder-step, .is-style-ladder-step-dashed) > * + * { margin-top: 0; }
	:is(.is-style-ladder-step, .is-style-ladder-step-dashed) > p.is-style-stat-number { grid-row: 1 / span 3; }
	:is(.is-style-ladder-step, .is-style-ladder-step-dashed) > :not(.is-style-stat-number) { grid-column: 2; }
}

/* Weeks: always six across, so one block is still one week on a phone. */
@media (max-width: 671px) {
	ul.wp-block-list:is(.is-style-weeks, .is-style-weeks-sky) { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
	ul.wp-block-list:is(.is-style-weeks, .is-style-weeks-sky) > li { padding: 12px 0; font-size: 0; }
	ul.wp-block-list:is(.is-style-weeks, .is-style-weeks-sky) > li::after { content: counter(list-item); font-size: var(--bma-caption); }
}

/* Stacked timetable rows on a phone say what each line is. */
@media (max-width: 615px) {
	.wp-block-table.is-style-timetable td[data-label]::before {
		content: attr(data-label) ": "; font-weight: 700; color: var(--bma-deep-sky);
	}
}

/* Touch: links people tap with a thumb are at least 44px tall. */
.wp-block-details { padding: 4px 0; }
.wp-block-details summary { padding: 12px 0; }
.wp-block-details > :not(summary) { margin-top: 0; padding-bottom: 12px; }
@media (max-width: 781px) {
	.bma-footer li + li { margin-top: 0; }
	.bma-footer li a { display: inline-block; padding: 11px 0; }
	.bma-utility a:not(.wp-block-button__link) { display: inline-block; padding: 12px 0; }
	.bma-utility { padding-block: 0; }
	.bma-doors .wp-block-column p:first-child a { display: block; padding: 10px 0 2px; }
	ol.wp-block-list.is-style-rail > li a { padding: 10px 0; margin-top: 0; }
	.bma-post-meta a { display: inline-block; padding: 6px 0; }
}

/* News topics on a phone: one row that scrolls sideways, so the stories start sooner. */
@media (max-width: 671px) {
	.bma-topics nav {
		flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none;
		margin-right: calc(-1 * var(--bma-gutter)); padding: 4px var(--bma-gutter) 4px 0;
	}
	.bma-topics nav::-webkit-scrollbar { display: none; }
	.bma-topics nav > *, .bma-topics li { flex: 0 0 auto; }
	.bma-topics a { white-space: nowrap; }
}

/* A story without a cleared picture is a text card with a forest rule, not an empty panel. */
.wp-block-group.bma-post-card:not(:has(> .wp-block-post-featured-image))::before {
	aspect-ratio: auto; height: 6px; margin-bottom: 20px; background: var(--bma-forest);
}
.wp-block-group.is-style-card.bma-post-card:not(:has(> .wp-block-post-featured-image)) { background: var(--bma-sky-tint, #E0F1FF); }
.wp-block-group.bma-post-card:not(:has(> .wp-block-post-featured-image)) > .wp-block-post-title { font-size: var(--bma-h3); line-height: 1.1; }

/* Footer: the shop button stays on one line. */
.bma-footer .wp-block-button__link { text-wrap: balance; }
.bma-footer .wp-block-button, .bma-footer .wp-block-button__link { max-width: 100%; box-sizing: border-box; }
.bma-footer .wp-block-button__link { font-size: var(--bma-caption); padding-inline: 16px; }
@media (min-width: 400px) and (max-width: 781px), (min-width: 1280px) {
	.bma-footer .wp-block-button__link { white-space: nowrap; }
}

/* Enquiry form: what to check, beside the field it is about. */
.bma-form .bma-form__status > * { margin: 0; }
.bma-form .bma-form__status ul { margin: 8px 0 0; padding-left: 20px; font-weight: 400; }
.bma-form .bma-form__status a { color: inherit; }
.bma-form .bma-form__status[role="alert"] { border-style: solid; border-color: #8A1F11; color: #8A1F11; background: #FFF4F1; }
.bma-form .bma-form__error { margin: 6px 0 0; font-size: var(--bma-caption); font-weight: 700; color: #8A1F11; }
.bma-form [aria-invalid="true"] { border-color: #8A1F11; box-shadow: inset 4px 0 0 #8A1F11; }
.bma-form .bma-form__note a { color: inherit; font-weight: 700; }
.bma-film figcaption a { color: inherit; font-weight: 700; }

/* The theory-of-change chevrons run the full width of the column on a desktop. */
@media (min-width: 1056px) {
	:is(ul, ol).wp-block-list.is-style-flow { flex-wrap: nowrap; }
	:is(ul, ol).wp-block-list.is-style-flow > li { flex: 1 1 auto; justify-content: center; }
}
.bma-plain-text .wp-block-list { max-width: 720px; }

/* A laptop screen is short: the hero steps down so its buttons are on the first screen. */
@media (min-width: 960px) and (max-height: 860px) {
	.is-style-hero h1.wp-block-heading { font-size: clamp(48px, 8.4vh, var(--bma-h1)); }
	.is-style-hero > .wp-block-columns > .wp-block-column:first-child { padding-top: clamp(40px, 7vh, 96px); padding-bottom: clamp(40px, 7vh, 96px); }
	.is-style-hero > .wp-block-columns > .wp-block-column:first-child > * + * { margin-top: 16px; }
	.is-style-hero > .wp-block-columns > .wp-block-column:first-child > .wp-block-buttons { margin-top: 24px; }
	.is-style-hero > .wp-block-columns > .wp-block-column:last-child { min-height: 380px; }
}

/* Three cards across on a tablet: headings step down so a long word is not cut. */
@media (min-width: 782px) and (max-width: 1055px) {
	.wp-block-columns:has(> .wp-block-column:nth-child(3)) .wp-block-group[class*="is-style-card"] h3 { font-size: 22px; }
}
/* On a phone the wide app screen shows its left half at a readable size. */
@media (max-width: 600px) {
	[class*="is-style-section"] > .wp-block-image.is-style-screen img { aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; }
}

/* Plain-text pages (privacy): section headings are real H2s at a reading size. */
.bma-plain-text h2.wp-block-heading { font-size: var(--bma-h3); letter-spacing: -0.01em; margin-top: 48px; margin-bottom: 12px; }
.bma-plain-text h2.wp-block-heading + p { margin-top: 0; }
@media (max-width: 781px) {
	.wp-block-columns.bma-app > .wp-block-column:last-child { max-width: 240px; }
}

/* ==========================================================================
   Design round, 26 November 2026 (website design skills, deck v45 grammar).
   Depth is the design system's stamp: a hard offset shadow, never a blur.
   Motion is Carbon's: 110ms for controls, 240–400ms for pictures and reveals.
   ========================================================================== */
::selection { background: var(--bma-sky); color: var(--bma-forest); }
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}
:target, [id] { scroll-margin-top: 24px; }

/* Buttons lift onto a stamp when pointed at and press flat when clicked. */
.wp-block-button__link,
.bma-form button,
.bma-header .wp-block-navigation-item.bma-nav-cta > .wp-block-navigation-item__content {
	transition: transform 110ms cubic-bezier(0.2, 0, 0.38, 0.9), box-shadow 110ms cubic-bezier(0.2, 0, 0.38, 0.9);
}
.wp-block-button__link:hover,
.bma-form button:hover {
	transform: translate(-2px, -2px);
	box-shadow: 4px 4px 0 var(--bma-forest);
}
.bma-header .wp-block-navigation-item.bma-nav-cta > .wp-block-navigation-item__content:hover {
	transform: translate(-2px, -2px);
	box-shadow: inset 0 0 0 var(--bma-line) var(--bma-forest), 4px 4px 0 var(--bma-forest);
}
:is(.is-style-section-forest, .is-style-hero, .bma-footer, .bma-utility, .bma-page-head) .wp-block-button__link:hover {
	box-shadow: 4px 4px 0 var(--bma-bone);
}
.bma-utility .wp-block-button__link:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--bma-bone); }
.wp-block-button__link:active,
.bma-form button:active,
.bma-utility .wp-block-button__link:active,
.bma-header .wp-block-navigation-item.bma-nav-cta > .wp-block-navigation-item__content:active {
	transform: translate(1px, 1px);
	box-shadow: 0 0 0 transparent;
}
.bma-header .wp-block-navigation-item.bma-nav-cta > .wp-block-navigation-item__content:active {
	box-shadow: inset 0 0 0 var(--bma-line) var(--bma-forest);
}
.bma-form button[aria-busy="true"] { opacity: 0.7; cursor: progress; transform: none; box-shadow: none; }

/* The menu shows where you are inside News as well as on its front page. */
body:is(.single-post, .category, .blog) .bma-header .wp-block-navigation a[href$="/blog/"] { box-shadow: 0 3px 0 var(--bma-deep-sky); }
.bma-header .wp-block-navigation .wp-block-navigation-item__content { transition: box-shadow 110ms cubic-bezier(0.2, 0, 0.38, 0.9); }

/* On a desktop the menu stays with you down a long page; the utility bar scrolls away. */
@media (min-width: 960px) and (min-height: 700px) {
	.wp-site-blocks > header.wp-block-template-part { position: sticky; top: -48px; z-index: 20; }
	html { scroll-padding-top: 104px; }
}

/* Story cards: the whole card is the link. It lifts onto a stamp and the picture moves in a little. */
.wp-block-group.bma-post-card { position: relative; transition: transform 150ms cubic-bezier(0.2, 0, 0.38, 0.9), box-shadow 150ms cubic-bezier(0.2, 0, 0.38, 0.9); }
.bma-post-card .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }
.bma-post-card .bma-post-meta a { position: relative; z-index: 1; }
.wp-block-group.bma-post-card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--bma-forest); }
.wp-block-group.bma-post-card:has(.wp-block-post-title a:focus-visible) { outline: 3px solid var(--bma-deep-sky); outline-offset: 3px; }
.bma-post-card .wp-block-post-title a:focus-visible { outline: 0; }
.bma-post-card .wp-block-post-title a:hover { text-decoration: none; }
.bma-post-card > .wp-block-post-featured-image { overflow: hidden; }
.bma-post-card > .wp-block-post-featured-image img { transition: transform 400ms cubic-bezier(0.4, 0.14, 0.3, 1); }
.wp-block-group.bma-post-card:hover > .wp-block-post-featured-image img { transform: scale(1.03); }

/* Three stories: one leads and two follow, so the pictures are not three equal tiles. */
@media (min-width: 1056px) {
	.bma-news .wp-block-post-template:has(> li:nth-child(3):last-child):has(> li:first-child .wp-block-post-featured-image) {
		grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) !important;
		grid-template-rows: repeat(2, minmax(0, auto));
	}
	.bma-news .wp-block-post-template:has(> li:nth-child(3):last-child):has(> li:first-child .wp-block-post-featured-image) > li:first-child { grid-row: 1 / span 2; }
	.bma-news .wp-block-post-template:has(> li:nth-child(3):last-child):has(> li:first-child .wp-block-post-featured-image) > li:first-child .wp-block-post-title { font-size: var(--bma-h3); line-height: 1.1; }
	.bma-news .wp-block-post-template:has(> li:nth-child(3):last-child):has(> li:first-child .wp-block-post-featured-image) > li:first-child .wp-block-post-excerpt p { font-size: var(--bma-body); }
	.bma-news .wp-block-post-template:has(> li:nth-child(3):last-child):has(> li:first-child .wp-block-post-featured-image) > li:first-child .bma-post-card { display: flex; flex-direction: column; }
	.bma-news .wp-block-post-template:has(> li:nth-child(3):last-child):has(> li:first-child .wp-block-post-featured-image) > li:first-child .wp-block-post-featured-image { flex: 1 1 280px; min-height: 280px; aspect-ratio: auto !important; }
	.bma-news .wp-block-post-template:has(> li:nth-child(3):last-child):has(> li:first-child .wp-block-post-featured-image) > li:first-child .wp-block-post-featured-image img { height: 100% !important; object-fit: cover; }
	.bma-news .wp-block-post-template:has(> li:nth-child(3):last-child):has(> li:first-child .wp-block-post-featured-image) > li:not(:first-child) .bma-post-card:has(> .wp-block-post-featured-image) {
		display: grid;
		grid-template-columns: 38% minmax(0, 1fr);
		grid-template-rows: auto auto 1fr;
		align-content: start;
	}
	.bma-news .wp-block-post-template:has(> li:nth-child(3):last-child):has(> li:first-child .wp-block-post-featured-image) > li:not(:first-child) .bma-post-card > .wp-block-post-featured-image {
		grid-column: 1; grid-row: 1 / -1; margin: 0; height: 100%; aspect-ratio: auto !important;
	}
	.bma-news .wp-block-post-template:has(> li:nth-child(3):last-child):has(> li:first-child .wp-block-post-featured-image) > li:not(:first-child) .bma-post-card > .wp-block-post-featured-image img { height: 100% !important; object-fit: cover; }
	.bma-news .wp-block-post-template:has(> li:nth-child(3):last-child):has(> li:first-child .wp-block-post-featured-image) > li:not(:first-child) .bma-post-card:has(> .wp-block-post-featured-image) > :not(.wp-block-post-featured-image) { grid-column: 2; margin-inline: 20px; }
	.bma-news .wp-block-post-template:has(> li:nth-child(3):last-child):has(> li:first-child .wp-block-post-featured-image) > li:not(:first-child) .bma-post-card:has(> .wp-block-post-featured-image) > .bma-post-meta { margin-top: 20px; }
	.bma-news .wp-block-post-template:has(> li:nth-child(3):last-child):has(> li:first-child .wp-block-post-featured-image) > li:not(:first-child) .bma-post-card:has(> .wp-block-post-featured-image) > :last-child { margin-bottom: 20px; }
	.bma-news .wp-block-post-template:has(> li:nth-child(3):last-child):has(> li:first-child .wp-block-post-featured-image) > li:not(:first-child) .bma-post-card:not(:has(> .wp-block-post-featured-image)) > .wp-block-post-title { font-size: var(--bma-lede); line-height: 1.15; }
	.bma-news .wp-block-post-template:has(> li:nth-child(3):last-child):has(> li:first-child .wp-block-post-featured-image) > li:not(:first-child) .wp-block-post-excerpt p {
		display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
	}
}

/* Doors under the home hero: each one is a whole target, and it fills when pointed at. */
.bma-doors .wp-block-column { position: relative; transition: background-color 110ms cubic-bezier(0.2, 0, 0.38, 0.9); }
.bma-doors .wp-block-column p:first-child a::after { content: ""; position: absolute; inset: -12px 0; }
.bma-doors .wp-block-column:hover { background: var(--bma-sky); }
.bma-doors .wp-block-column:first-child:hover { box-shadow: -28px 0 0 var(--bma-sky); }
.wp-block-group.is-style-strip.bma-doors a:hover { text-decoration: none; }
.bma-doors .wp-block-column { padding-block: 12px; margin-block: -12px; }

/* Rail: numbered markers, as on deck v45 page 3. Filled runs today; dashed is in development. */
ol.wp-block-list.is-style-rail { counter-reset: bma-rail; }
ol.wp-block-list.is-style-rail > li { counter-increment: bma-rail; padding-top: 64px; }
ol.wp-block-list.is-style-rail > li::before { top: 21px; }
ol.wp-block-list.is-style-rail > li::after {
	content: counter(bma-rail, decimal-leading-zero);
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	background: var(--bma-forest);
	border-color: var(--bma-forest);
	color: var(--bma-bone);
	font-size: var(--bma-caption);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}
ol.wp-block-list.is-style-rail > li.is-dashed::after { color: var(--bma-forest); }
.is-style-section-forest ol.wp-block-list.is-style-rail > li::after { background: var(--bma-bone); border-color: var(--bma-bone); color: var(--bma-forest); }
.is-style-section-forest ol.wp-block-list.is-style-rail > li.is-dashed::after { background: var(--bma-forest); color: var(--bma-bone); }
@media (max-width: 959px) {
	ol.wp-block-list.is-style-rail > li { padding: 0 0 32px 64px; min-height: 44px; }
	ol.wp-block-list.is-style-rail > li::before,
	ol.wp-block-list.is-style-rail > li:last-child::before { top: 44px; bottom: 0; left: 21px; }
	ol.wp-block-list.is-style-rail > li::after { top: 0; left: 0; }
	ol.wp-block-list.is-style-rail > li strong { padding-top: 8px; }
}

/* Fact rows with a drawing-office icon (deck v45 page 2): a forest roundel, the label, then the detail. */
ul.wp-block-list.is-style-facts > li[class*="bma-ico-"] {
	position: relative;
	grid-template-columns: 48px minmax(0, 1fr);
	gap: 2px 20px;
	padding: 16px 0;
	align-items: start;
}
ul.wp-block-list.is-style-facts > li[class*="bma-ico-"]::before {
	content: "";
	grid-row: 1 / span 2;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--bma-forest);
}
ul.wp-block-list.is-style-facts > li[class*="bma-ico-"]::after {
	content: "";
	position: absolute;
	left: 12px;
	top: 28px;
	width: 24px;
	height: 24px;
	background: var(--bma-sky);
	-webkit-mask: var(--bma-ico) center / contain no-repeat;
	mask: var(--bma-ico) center / contain no-repeat;
}
ul.wp-block-list.is-style-facts > li[class*="bma-ico-"] > strong { grid-column: 2; font-size: var(--bma-lede); line-height: 1.2; }
.bma-ico-team { --bma-ico: url("assets/icons/bbc/team.svg"); }
.bma-ico-kit { --bma-ico: url("assets/icons/bbc/kit.svg"); }
.bma-ico-file { --bma-ico: url("assets/icons/bbc/file.svg"); }
.bma-ico-certificate { --bma-ico: url("assets/icons/bbc/certificate.svg"); }
.is-style-section-forest ul.wp-block-list.is-style-facts > li[class*="bma-ico-"]::before { background: var(--bma-sky); }
.is-style-section-forest ul.wp-block-list.is-style-facts > li[class*="bma-ico-"]::after { background: var(--bma-forest); }
@media (max-width: 671px) {
	ul.wp-block-list.is-style-facts > li[class*="bma-ico-"] { grid-template-columns: 48px minmax(0, 1fr); gap: 2px 16px; }
}

/* Photo strip (deck v45 page 5): the four pictures touch and each carries its word as a chip. */
.bma-photostrip .wp-block-image { overflow: hidden; }
.bma-photostrip h3 {
	position: relative;
	display: block;
	width: fit-content;
	max-width: calc(100% - 24px);
	box-sizing: border-box;
	margin: -50px 0 0 12px;
	padding: 5px 14px;
	border-radius: 999px;
	background: var(--bma-sky);
	color: var(--bma-forest);
	font-size: var(--bma-small);
	line-height: 1.3;
}
.bma-photostrip h3 + p { margin-top: 30px; }
@media (min-width: 1056px) {
	.wp-block-columns.bma-photostrip { gap: 3px; }
	.bma-photostrip .wp-block-image img { border-radius: 0; }
	.bma-photostrip > .wp-block-column:first-child .wp-block-image img { border-radius: 12px 0 0 12px; }
	.bma-photostrip > .wp-block-column:last-child .wp-block-image img { border-radius: 0 12px 12px 0; }
	.bma-photostrip p { padding-right: 24px; }
}

/* Quotes on light grounds carry a sky rule, as posts already do. */
.wp-block-group[class*="is-style-section"] .wp-block-quote:not(.is-style-plain) { border-left: 5px solid var(--bma-sky); padding-left: 24px; }

/* Questions: the heading stands on the left and the answers open on the right. */
.wp-block-details summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; transition: color 110ms cubic-bezier(0.2, 0, 0.38, 0.9); }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "";
	flex: 0 0 auto;
	width: 12px;
	height: 12px;
	margin-right: 6px;
	border-right: var(--bma-line) solid currentColor;
	border-bottom: var(--bma-line) solid currentColor;
	transform: translateY(-3px) rotate(45deg);
	transition: transform 150ms cubic-bezier(0.2, 0, 0.38, 0.9);
}
.wp-block-details[open] summary::after { transform: translateY(3px) rotate(225deg); }
.wp-block-details summary:hover { color: var(--bma-deep-sky); }
.is-style-section-forest .wp-block-details summary:hover { color: var(--bma-sky); }
.wp-block-details:last-of-type { border-bottom: var(--bma-hair) solid var(--bma-ink); }
.is-style-section-forest .wp-block-details:last-of-type { border-bottom-color: currentColor; }
@media (min-width: 1056px) {
	.wp-block-group[class*="is-style-section"]:has(> .wp-block-details):not(:has(> :not(.wp-block-details, .wp-block-heading))) {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 440px) minmax(0, 760px) minmax(0, 1fr);
		align-items: start;
	}
	.wp-block-group[class*="is-style-section"]:has(> .wp-block-details):not(:has(> :not(.wp-block-details, .wp-block-heading))) > * { grid-column: 3; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
	.wp-block-group[class*="is-style-section"]:has(> .wp-block-details):not(:has(> :not(.wp-block-details, .wp-block-heading))) > .wp-block-heading { grid-column: 2; grid-row: 1 / span 20; padding-right: 48px; margin-top: 0; }
	.wp-block-group[class*="is-style-section"]:has(> .wp-block-details):not(:has(> :not(.wp-block-details, .wp-block-heading))) > .wp-block-heading + * { margin-top: 0 !important; }
	.wp-block-group[class*="is-style-section"]:has(> .wp-block-details):not(:has(> :not(.wp-block-details, .wp-block-heading))) > .wp-block-details summary { font-size: var(--bma-lede); line-height: 1.25; }
}

/* Sections come in as you reach them, where the browser can tie that to scrolling. Nothing is hidden without it. */
@media screen and (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) {
		main .wp-block-group[class*="is-style-section"] > :is(.wp-block-columns, .wp-block-image, .wp-block-query, .wp-block-table, .wp-block-list, .wp-block-quote, .wp-block-group):not(.bma-doors) {
			animation: bma-rise linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 180px;
		}
	}
}
@keyframes bma-rise {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------
   Print. Browsers drop background colours on paper, so pale text on a
   forest section would vanish: everything prints dark on white, without
   the menus, buttons, films and forms.
   ------------------------------------------------------------------ */
@media print {
	*, *::before, *::after { background: transparent !important; color: #000 !important; box-shadow: none !important; animation: none !important; }
	.wp-site-blocks > header.wp-block-template-part { position: static !important; }
	ul.wp-block-list.is-style-facts > li[class*="bma-ico-"]::before, ul.wp-block-list.is-style-facts > li[class*="bma-ico-"]::after { display: none; }
	ol.wp-block-list.is-style-rail > li::after { border: 1.5px solid #000; }
	:root:root:root [class] { color: #000 !important; } /* outranks the accent colours set per section */
	.bma-utility, .bma-header nav, .bma-header .wp-block-buttons, .bma-nav-toggle, .bma-doors,
	.bma-footer .wp-block-columns, .bma-footer__logo, .bma-film, .bma-form, main form, main .wp-block-buttons { display: none !important; }
	.wp-block-group[class*="is-style-section"], .is-style-hero, .bma-page-head { padding-block: 20px !important; }
	.is-style-hero > .wp-block-columns { min-height: 0 !important; }
	.is-style-hero > .wp-block-columns > .wp-block-column:first-child { padding: 0 !important; }
	.is-style-hero .wp-block-image figcaption { position: static !important; padding: 4px 0 0 !important; }
	.is-style-hero .wp-block-image { margin-top: 12px !important; }
	h1 { font-size: 30pt !important; }
	h2 { font-size: 20pt !important; }
	h1, h2, h3, h4 { break-after: avoid; }
	img { max-height: 90mm; width: auto !important; max-width: 100% !important; object-fit: contain !important; }
	figure, tr, li, .wp-block-group[class*="is-style-card"] { break-inside: avoid; }
	main a[href^="http"]:not([href*="bamboomobilityacademy.org"])::after { content: " (" attr(href) ")"; font-size: 0.85em; word-break: break-all; }
}
