/*
Theme Name: TMA
Template: twentytwentyfive
Description: The Movement Academy website theme
Version: 1.1
*/

/* =========================================================
   TMA — The Movement Academy
   ---------------------------------------------------------
   All visual styling lives in this file.
   Add class names to blocks via:
   Block settings → Advanced → Additional CSS class(es)

   CONTENTS
   01  Design tokens
   02  Base typography
   03  Buttons
   04  Page layout (flush sections, widths)
   05  Section colours
   06  Text helpers
   07  Images & image shapes
   08  Cards & pills
   09  Header & navigation (incl. dropdowns)
   10  Footer
   11  Hero
   12  Discipline tiles
   13  Photo + text bands
   14  Side-scrolling rails (coaches, quotes)
   15  Coaches: cards, grid & coach page
   16  Testimonials
   17  Physio band
   18  Pricing
   19  FAQ & "Read more" (Details block)
   20  Classes: cards, levels & class page
   21  Timetable & sessions
   22  Workshops
   23  Kids
   24  Map & contact
   25  Utilities
   ========================================================= */


/* ---------- 01. Design tokens ---------- */
:root {
	--tma-black: #0e0e0e;
	--tma-white: #ffffff;
	--tma-ink: #0e0e0e;
	--tma-body: #4a4a4a;
	--tma-muted: #6b6b6b;
	--tma-panel: #f6f6f5;
	--tma-line: #e2e2e2;
	--tma-dark-line: #262626;
	--tma-warm: #eeece8;
	--tma-warm-panel: #f3f2ef;
	--tma-warm-line: #e4e2de;
	--tma-warm-muted: #5f5e5b;
	--tma-live: #3ba55c;

	--tma-serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
	--tma-sans: "Jost", "Helvetica Neue", Helvetica, Arial, sans-serif;

	--tma-wide: 1312px;
	--tma-gutter: clamp(20px, 4.5vw, 64px);
	--tma-section: clamp(56px, 8vw, 112px);
	--tma-section-tight: clamp(48px, 6vw, 72px);
	--tma-radius: 10px;
	--tma-radius-sm: 4px;
}


/* ---------- 02. Base typography ---------- */
:root body {
	background: var(--tma-white);
	color: var(--tma-ink);
	font-family: var(--tma-sans);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

:root :is(h1, h2, h3, h5, h6) {
	font-family: var(--tma-serif);
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: -0.01em;
	color: inherit;
}
:root h1 { font-size: clamp(2.75rem, 6vw, 4.5rem); font-weight: 300; line-height: 1; }
:root h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
:root h3 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); line-height: 1.1; }
:root h4 {
	font-family: var(--tma-sans);
	font-size: 1.25rem;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0;
}

:root a { color: inherit; text-underline-offset: 3px; }
:root a:hover { color: var(--tma-muted); }

:root figcaption,
:root .wp-element-caption {
	font-size: 0.875rem;
	color: var(--tma-muted);
}

:root :focus-visible {
	outline: 2px solid #8aa4ff;
	outline-offset: 3px;
}


/* ---------- 03. Buttons ---------- */
:root :is(.wp-element-button, .wp-block-button__link) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 16px 26px;
	border: 1px solid transparent;
	border-radius: var(--tma-radius-sm);
	background: var(--tma-black);
	color: var(--tma-white);
	font-family: var(--tma-sans);
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-decoration: none;
	text-align: center;
}
:root :is(.wp-element-button, .wp-block-button__link):hover {
	background: #333333;
	color: var(--tma-white);
}

/* White button: Button block → Styles → "White" (for black sections) */
:root .wp-block-button.is-style-light .wp-block-button__link {
	background: var(--tma-white);
	color: var(--tma-black);
}
:root .wp-block-button.is-style-light .wp-block-button__link:hover {
	background: var(--tma-line);
	color: var(--tma-black);
}

/* Outline button: Button block → Styles → "Outline" */
:root .wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: currentColor;
	border-color: currentColor;
}
:root .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: rgba(127, 127, 127, 0.12);
}

/* Smaller button, e.g. "Book" in timetables: add .tma-btn-sm to the Button */
:root .tma-btn-sm .wp-block-button__link,
:root a.tma-btn-sm {
	min-height: 42px;
	padding: 12px 20px;
}


/* ---------- 04. Page layout ---------- */
/* Sections sit flush against each other — no white gaps */
main.wp-block-group { margin-top: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; }
.wp-site-blocks > * + * { margin-block-start: 0 !important; }
:is(.wp-block-post-content, .entry-content) > .alignfull { margin-block: 0 !important; }
:is(.wp-block-post-content, .entry-content) > * + .alignfull { margin-block-start: 0 !important; }

/* Standard section spacing */
.tma-section { padding-block: var(--tma-section); }
.tma-section--tight { padding-block: var(--tma-section-tight); }
.tma-section--flush-top { padding-top: 0 !important; }

/* Inner width + side gutters (put on the Group inside a full-width section) */
.tma-wrap {
	max-width: var(--tma-wide);
	margin-inline: auto;
	padding-inline: var(--tma-gutter);
	box-sizing: border-box;
}
.tma-wrap .wp-block-columns { gap: clamp(32px, 5vw, 72px); margin: 0; }

/* Page intro heading area */
.tma-page-head { padding-bottom: clamp(32px, 4vw, 48px) !important; }
.tma-page-head h1 { max-width: 1000px; margin-top: 14px; }

/* Section heading row: title left, link/text right */
.tma-head-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px 48px;
	margin-bottom: clamp(32px, 4vw, 48px);
}
.tma-head-row h2 { margin: 0; }
.tma-head-row .tma-lede { margin-top: 12px; }

/* "← All classes" style back link */
.tma-back { display: inline-block; margin-bottom: 28px; font-size: 0.9375rem; color: var(--tma-muted); text-decoration: none; }
.tma-back:hover { color: var(--tma-ink); }


/* ---------- 05. Section colours ---------- */
.tma-dark { background: var(--tma-black); color: var(--tma-white); }
.tma-dark :is(p, li) { color: #dadada; }
.tma-panel { background: var(--tma-panel); }
.tma-warm { background: var(--tma-warm); color: #1a1a1a; }


/* ---------- 06. Text helpers ---------- */
/* Small spaced capitals above headings, e.g. "OUR COMMUNITY" */
.tma-eyebrow {
	font-family: var(--tma-sans) !important;
	font-size: 0.8125rem !important;
	font-weight: 500;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--tma-muted);
	margin: 0;
}
.tma-dark .tma-eyebrow { color: #b8b8b8; }
.tma-warm .tma-eyebrow { color: var(--tma-warm-muted); }

/* Larger intro paragraph */
.tma-lede {
	font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
	line-height: 1.6;
	color: var(--tma-body);
	max-width: 560px;
}
.tma-dark .tma-lede { color: #dadada; }
.tma-warm .tma-lede { color: var(--tma-warm-muted); }

/* Light sans tagline, e.g. "Where athleticism meets art." */
.tma-tagline {
	font-family: var(--tma-sans);
	font-weight: 400;
	font-size: clamp(1.25rem, 2vw, 1.5rem);
	color: #e0e0e0;
}

/* Small caption under buttons, e.g. "Intro Pass: 5 classes · 2 weeks · $99" */
.tma-caption { font-size: 0.875rem; color: #bdbdbd; margin-top: 10px; }

.tma-muted { color: var(--tma-muted); }
.tma-hours { line-height: 2; }

/* Screen-reader-only text */
.tma-sr-only {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}


/* ---------- 07. Images & image shapes ---------- */
:root img { max-width: 100%; height: auto; }
:root .wp-block-image { margin: 0; }

/* Rounded photo */
.tma-photo img,
img.tma-photo { border-radius: var(--tma-radius); object-fit: cover; }

/* Fixed shapes: put one of these on an Image block */
[class*="tma-ratio-"] img {
	width: 100%;
	height: auto;
	object-fit: cover;
	border-radius: var(--tma-radius);
	display: block;
}
.tma-ratio-1x1 img { aspect-ratio: 1 / 1; }
.tma-ratio-4x5 img { aspect-ratio: 4 / 5; }
.tma-ratio-3x2 img { aspect-ratio: 3 / 2; }
.tma-ratio-4x3 img { aspect-ratio: 4 / 3; }

/* Icons (TMA ring icons) */
.tma-icon img { width: 72px; height: 72px; object-fit: contain; }
.tma-icon--lg img { width: 120px; height: 120px; }
@media (max-width: 560px) {
	.tma-icon img { width: 56px; height: 56px; }
	.tma-icon--lg img { width: 80px; height: 80px; }
}


/* ---------- 08. Cards & pills ---------- */
.tma-card {
	background: var(--tma-panel);
	border: 1px solid var(--tma-line);
	border-radius: var(--tma-radius);
	padding: clamp(22px, 3vw, 36px);
}
.tma-card--plain { background: var(--tma-white); }
.tma-card--dark {
	background: var(--tma-black);
	color: var(--tma-white);
	border-color: var(--tma-black);
}
.tma-card--dark :is(p, li) { color: #cfcfcf; }
.tma-card--dark .tma-muted { color: #a6a6a6; }
.tma-card h4 { margin-top: 0; }
.tma-card > :last-child { margin-bottom: 0; }

/* Icon card (discipline tiles, apparatus): icon, title, text */
.tma-icon-card img { width: 72px; height: 72px; object-fit: contain; }
.tma-icon-card h3 { margin-top: 12px; }
.tma-icon-card p { font-size: 0.9375rem; color: var(--tma-muted); }

/* Pills / tags */
.tma-pill {
	display: inline-flex;
	align-items: center;
	height: 28px;
	padding: 0 10px;
	border-radius: var(--tma-radius-sm);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	white-space: nowrap;
	border: 1px solid var(--tma-line);
	color: var(--tma-muted);
}
.tma-pill--solid { background: var(--tma-black); color: var(--tma-white); border-color: var(--tma-black); }
.tma-pill--ink { border-color: var(--tma-ink); color: var(--tma-ink); }


/* ---------- 09. Header & navigation ---------- */
.tma-header {
	background: var(--tma-black);
	color: var(--tma-white);
	padding: 14px var(--tma-gutter);
	position: sticky;
	top: 0;
	z-index: 50;
}
body.admin-bar .tma-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .tma-header { top: 46px; } }

.tma-header__inner { max-width: var(--tma-wide); margin: 0 auto; }
.tma-header a { color: var(--tma-white); text-decoration: none; }
.tma-header .wp-block-site-logo img { width: auto; max-height: 58px; object-fit: contain; }
.tma-header .wp-block-navigation { font-size: 1rem; gap: clamp(18px, 2.4vw, 36px); }
.tma-header .wp-block-navigation a:hover { text-decoration: underline; text-underline-offset: 8px; }

/* Current page underline */
.tma-header .wp-block-navigation .current-menu-item > a,
.tma-header .wp-block-navigation [aria-current="page"] {
	text-decoration: underline;
	text-underline-offset: 8px;
	text-decoration-thickness: 1px;
}

/* Dropdowns (Navigation → Submenu), e.g. Classes → Workshops, About → Coaches */
.tma-header .wp-block-navigation .wp-block-navigation__submenu-container {
	background: var(--tma-black) !important;
	color: var(--tma-white) !important;
	border: 1px solid var(--tma-dark-line) !important;
	border-radius: 6px;
	padding: 8px !important;
	min-width: 200px !important;
	margin-top: 10px;
}
.tma-header .wp-block-navigation .wp-block-navigation__submenu-container a {
	padding: 10px 12px !important;
	border-radius: var(--tma-radius-sm);
	font-size: 0.9375rem;
}
.tma-header .wp-block-navigation .wp-block-navigation__submenu-container a:hover {
	background: #1f1f1f;
	text-decoration: none;
}
.tma-header .wp-block-navigation__submenu-icon { color: var(--tma-white); }

/* Mobile menu overlay */
.tma-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--tma-black) !important;
	color: var(--tma-white) !important;
	padding: 24px var(--tma-gutter);
}
.tma-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: 1.25rem;
}
.tma-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	border: 0 !important;
	padding: 0 0 0 16px !important;
	margin: 0;
}
.tma-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container a {
	font-size: 1.0625rem;
	color: #bdbdbd;
}
@media (max-width: 600px) {
	.tma-header .wp-block-buttons { display: none; }
	.tma-header .wp-block-site-logo img { max-height: 44px; }
}


/* ---------- 10. Footer ---------- */
.tma-footer {
	background: var(--tma-black);
	color: var(--tma-white);
	padding: clamp(48px, 6vw, 80px) var(--tma-gutter) 40px;
}
.tma-footer__inner { max-width: var(--tma-wide); margin: 0 auto; }
.tma-footer .wp-block-columns { gap: 40px; margin: 0; }
.tma-footer :is(p, li, a) { color: #a6a6a6; font-size: 0.9375rem; text-decoration: none; }
.tma-footer a:hover { color: var(--tma-white); }
.tma-footer p { margin: 0 0 10px; }
.tma-footer h4 { color: var(--tma-white); font-size: 0.9375rem; margin-bottom: 12px; }
.tma-footer ul { list-style: none; margin: 0; padding: 0; }
.tma-footer li { line-height: 1.9; }
.tma-footer .wp-block-site-logo img { width: auto; max-height: 88px; object-fit: contain; }
.tma-footer__base {
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid var(--tma-dark-line);
}
.tma-footer__base p { margin: 0; font-size: 0.875rem; }


/* ---------- 11. Hero ---------- */
.tma-hero h1 { margin: 16px 0 8px; }
.tma-hero .wp-block-buttons { margin-top: 28px; }
@media (max-width: 781px) {
	.tma-hero .wp-block-columns { flex-direction: column-reverse; }
}


/* ---------- 12. Discipline tiles ---------- */
.tma-tiles { gap: 24px; }
.tma-tile h3 { margin: 16px 0 6px; }
.tma-tile h3 a { text-decoration: none; }
.tma-tile p { font-size: 0.9375rem; color: var(--tma-muted); margin: 0; }
.tma-tile-icon img { width: 64px; height: 64px; object-fit: contain; }

/* Linked icon cards, e.g. the four disciplines on About */
.tma-disc-card { display: flex; flex-direction: column; gap: 12px; }
.tma-disc-card img { width: 64px; height: 64px; object-fit: contain; }
.tma-disc-card h3 { margin: 0; }
.tma-disc-card h3 a { text-decoration: none; }
.tma-disc-card:hover { border-color: var(--tma-ink); }

@media (max-width: 560px) {
	.tma-tiles { gap: 14px; }
	.tma-tile {
		background: var(--tma-panel);
		border: 1px solid var(--tma-line);
		border-radius: var(--tma-radius);
		padding: 20px;
	}
	.tma-tile h3 { font-size: 1.375rem; margin-top: 10px; }
}


/* ---------- 13. Photo + text bands ---------- */
.tma-band > .wp-block-columns { gap: 0 !important; margin: 0; }
.tma-band .tma-fill,
.tma-band .tma-fill img { height: 100%; }
.tma-band .tma-fill img {
	width: 100%;
	min-height: 360px;
	object-fit: cover;
	display: block;
}
.tma-band__copy { padding: clamp(40px, 6vw, 80px) !important; }
@media (max-width: 781px) {
	.tma-band .tma-fill img { min-height: 0; height: 280px; }
}


/* ---------- 14. Side-scrolling rails ---------- */
/* Put .tma-rail on a Query Loop (coaches) or on a Group of cards (quotes). */
.tma-rail .wp-block-post-template,
.tma-rail:not(.wp-block-query) {
	display: grid !important;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 3 * 24px) / 4.25);
	grid-template-columns: none !important;
	gap: 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	overscroll-behavior-x: contain;
	padding: 0 0 10px;
	margin: 0;
	list-style: none;
}
.tma-rail .wp-block-post-template > li,
.tma-rail:not(.wp-block-query) > * {
	scroll-snap-align: start;
	margin: 0 !important;
}
.tma-rail--quotes:not(.wp-block-query) { grid-auto-columns: minmax(0, 1fr); }

@media (max-width: 1080px) {
	.tma-rail .wp-block-post-template,
	.tma-rail:not(.wp-block-query) { grid-auto-columns: calc((100% - 2 * 24px) / 3.2); }
}
@media (max-width: 860px) {
	.tma-rail--quotes:not(.wp-block-query) { grid-auto-columns: 82%; }
}
@media (max-width: 560px) {
	.tma-rail .wp-block-post-template,
	.tma-rail:not(.wp-block-query) { grid-auto-columns: calc((100% - 12px) / 2.2); gap: 12px; }
}


/* ---------- 15. Coaches ---------- */
/* Coach card (used in the rail and the grid) */
:is(.tma-rail, .tma-coach-grid) .wp-block-post-featured-image { margin: 0; }
:is(.tma-rail, .tma-coach-grid) .wp-block-post-featured-image img,
.tma-coach img {
	width: 100%;
	height: clamp(200px, 22vw, 320px);
	object-fit: cover;
	object-position: center 25%;
	border-radius: var(--tma-radius);
}
:is(.tma-rail, .tma-coach-grid) .wp-block-post-title {
	font-family: var(--tma-sans);
	font-size: 1.125rem;
	font-weight: 500;
	letter-spacing: 0;
	margin: 12px 0 2px;
}
:is(.tma-rail, .tma-coach-grid) .wp-block-post-title a { text-decoration: none; }
:is(.tma-rail, .tma-coach-grid) .wp-block-post-title a:hover { text-decoration: underline; text-underline-offset: 4px; }
:is(.tma-rail, .tma-coach-grid) .wp-block-post-excerpt { font-size: 0.9375rem; color: var(--tma-muted); margin: 0; }
:is(.tma-rail, .tma-coach-grid, .tma-class-card) .wp-block-post-excerpt__more-link { display: none; }

@media (max-width: 560px) {
	:is(.tma-rail, .tma-coach-grid) .wp-block-post-featured-image img,
	.tma-coach img { height: 190px; }
	:is(.tma-rail, .tma-coach-grid) .wp-block-post-title { font-size: 1rem; }
}

/* Coaches page: grid of 4 per row → 3 → 2 */
.tma-coach-grid .wp-block-post-template {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 32px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.tma-coach-grid .wp-block-post-featured-image img { height: clamp(200px, 24vw, 340px); }
@media (max-width: 1080px) { .tma-coach-grid .wp-block-post-template { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 760px)  { .tma-coach-grid .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 24px 14px; } }

/* Instagram icon (added automatically under specialties) */
.tma-coach-ig {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 2px 0 0 -10px;
	color: var(--tma-ink);
}
.tma-coach-ig:hover { opacity: 0.6; color: var(--tma-ink); }

/* Individual coach page */
.tma-coach-hero .wp-block-post-featured-image img {
	width: 100%;
	height: clamp(420px, 46vw, 640px);
	object-fit: cover;
	object-position: center 25%;
	border-radius: var(--tma-radius);
}
.tma-coach-hero h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); margin: 10px 0 16px; }
.tma-coach-bio { font-size: 1.1875rem; color: var(--tma-body); max-width: 560px; }


/* ---------- 16. Testimonials ---------- */
.tma-quote {
	background: var(--tma-panel);
	border: 1px solid var(--tma-line);
	border-radius: var(--tma-radius);
	padding: 32px;
	margin: 0;
}
.tma-quote :is(p, blockquote) {
	font-family: var(--tma-sans);
	font-weight: 300;
	font-size: 1.25rem;
	line-height: 1.45;
	border: 0;
	padding: 0;
	margin: 0;
}
.tma-quote cite { display: block; margin-top: 18px; font-style: normal; font-size: 0.9375rem; color: var(--tma-muted); }


/* ---------- 17. Physio band ---------- */
.tma-physio { padding-block: var(--tma-section-tight); }
.tma-physio__row { gap: clamp(24px, 4vw, 48px) !important; flex-wrap: nowrap; }
.tma-physio__copy { max-width: 760px; }
.tma-physio h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin: 14px 0 10px; }
.tma-physio .wp-block-buttons { margin-top: 18px; }
.tma-physio .tma-physio__photo img {
	width: 200px;
	height: 240px;
	object-fit: cover;
	object-position: center 22%;
	border-radius: var(--tma-radius);
}
.tma-physio .tma-physio__logo img { height: 52px; width: auto; border-radius: var(--tma-radius-sm); }
@media (max-width: 781px) {
	.tma-physio__row { flex-wrap: wrap; }
	.tma-physio .tma-physio__photo img { width: 100%; height: 320px; }
}


/* ---------- 18. Pricing ---------- */
/* Big prices: put .tma-price on the paragraph with the number */
.tma-price {
	font-family: var(--tma-sans);
	font-size: clamp(3rem, 5vw, 3.5rem);
	font-weight: 400;
	line-height: 1;
	letter-spacing: -0.02em;
	font-variant-numeric: lining-nums tabular-nums;
}
.tma-price--big { font-size: clamp(4rem, 8vw, 6rem); }
.tma-price small { font-size: 1rem; letter-spacing: 0; color: var(--tma-muted); }
:is(.tma-dark, .tma-card--dark) .tma-price small { color: #a6a6a6; }

.tma-intro-pass { padding: clamp(32px, 5vw, 56px) clamp(24px, 5vw, 64px) !important; gap: 32px; }
.tma-intro-pass__copy { max-width: 520px; }
.tma-intro-pass h2 { margin: 10px 0 12px; }
.tma-intro-pass .tma-price { margin: 0 0 18px; }

.tma-plans { gap: 24px; align-items: stretch; }
.tma-plan { display: flex; flex-direction: column; gap: 18px; height: 100%; }
.tma-plan h4 { margin: 0; }
.tma-plan p { margin: 0; }
.tma-plan .tma-price { margin: 4px 0; }
.tma-plan ul {
	list-style: none;
	margin: 0;
	padding: 18px 0 0;
	border-top: 1px solid var(--tma-line);
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.tma-plan.tma-card--dark ul { border-color: #2e2e2e; }
.tma-plan .wp-block-buttons { margin-top: auto; }

/* Member add-on box */
.tma-addon {
	margin-top: 24px;
	gap: 32px 40px;
	border: 1px solid var(--tma-ink);
	border-radius: var(--tma-radius);
	padding: clamp(24px, 4vw, 40px);
}
.tma-addon__copy { max-width: 640px; }
.tma-addon h3 { margin: 10px 0; }
.tma-addon .tma-price { margin: 0 0 16px; font-size: 2.75rem; }

/* Price table: Table block with class .tma-table */
.tma-table { margin-top: 20px; }
.tma-table table { width: 100%; border-collapse: collapse; font-size: 1.0625rem; }
.tma-table :is(th, td) { border: 0; padding: 16px 0; text-align: left; }
.tma-table thead { border: 0; }
.tma-table th {
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--tma-muted);
	padding-top: 0;
}
.tma-table tbody td { border-top: 1px solid var(--tma-line); }
.tma-table tbody tr:last-child td { border-bottom: 1px solid var(--tma-line); }
.tma-table :is(th, td):last-child { text-align: right; font-weight: 500; }

/* "Not sure which fits?" box */
.tma-cta { gap: 24px; padding: clamp(32px, 5vw, 56px) !important; }
.tma-cta h3 { margin: 0 0 8px; }
.tma-cta p { max-width: 620px; margin: 0; }


/* ---------- 19. FAQ & "Read more" (Details block) ---------- */
.tma-faq .wp-block-details {
	border-top: 1px solid var(--tma-line);
	padding: 20px 0;
	margin: 0;
}
.tma-faq .wp-block-details:last-child { border-bottom: 1px solid var(--tma-line); }
.tma-faq summary,
.tma-readmore summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
}
.tma-faq summary { font-size: 1.1875rem; font-weight: 500; }
.tma-readmore { margin-top: 12px; }
.tma-readmore summary {
	display: inline-flex;
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.tma-readmore > :not(summary) { margin-top: 8px; }
:is(.tma-faq, .tma-readmore) summary::-webkit-details-marker { display: none; }
:is(.tma-faq, .tma-readmore) summary::after { content: "+"; font-size: 1.25rem; font-weight: 300; }
.tma-faq .wp-block-details[open] summary::after,
.tma-readmore[open] summary::after { content: "–"; }
.tma-faq .wp-block-details > :not(summary) { color: var(--tma-body); margin-top: 10px; }


/* ---------- 20. Classes ---------- */
/* Class card (inside the Classes Query Loop) */
.tma-class-card {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	height: 100%;
}
.tma-class-card .wp-block-post-featured-image { flex-shrink: 0; width: 72px !important; margin: 0; }
.tma-class-card .wp-block-post-featured-image img { width: 72px; height: 72px; object-fit: contain; border-radius: 0; }
.tma-class-card .wp-block-post-title { font-size: clamp(1.5rem, 2.4vw, 1.875rem); margin: 0 0 6px; }
.tma-class-card .wp-block-post-title a { text-decoration: none; }
.tma-class-card .wp-block-post-title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.tma-class-card .wp-block-post-excerpt { font-size: 1rem; color: var(--tma-muted); margin: 0; }
.tma-class-card:hover { border-color: var(--tma-ink); }

/* Levels & badges shown as pills (Post Terms blocks) */
:is(.tma-class-card, .tma-class-hero) .wp-block-post-terms {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
	font-size: 0;
}
:is(.tma-class-card, .tma-class-hero) .wp-block-post-terms a {
	display: inline-flex;
	align-items: center;
	height: 28px;
	padding: 0 10px;
	border: 1px solid var(--tma-line);
	border-radius: var(--tma-radius-sm);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--tma-muted);
	text-decoration: none;
	pointer-events: none;
}
:is(.tma-class-card, .tma-class-hero) .wp-block-post-terms__separator { display: none; }
/* Badge colours */
:is(.tma-class-card, .tma-class-hero) .wp-block-post-terms a[href*="good-first-class"] {
	background: var(--tma-black); color: var(--tma-white); border-color: var(--tma-black);
}
:is(.tma-class-card, .tma-class-hero) .wp-block-post-terms a[href*="coming-soon"] {
	border-color: var(--tma-ink); color: var(--tma-ink);
}

@media (max-width: 560px) {
	.tma-class-card { gap: 16px; padding: 18px !important; }
	.tma-class-card .wp-block-post-featured-image,
	.tma-class-card .wp-block-post-featured-image img { width: 56px !important; height: 56px; }
}

/* Individual class page */
.tma-class-hero { gap: clamp(20px, 3vw, 40px) !important; }
.tma-class-hero .wp-block-post-featured-image { flex-shrink: 0; width: 120px !important; margin: 0; }
.tma-class-hero .wp-block-post-featured-image img { width: 120px; height: 120px; object-fit: contain; border-radius: 0; }
.tma-class-hero h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); margin: 10px 0 14px; }
@media (max-width: 560px) {
	.tma-class-hero { flex-direction: column; }
	.tma-class-hero .wp-block-post-featured-image,
	.tma-class-hero .wp-block-post-featured-image img { width: 80px !important; height: 80px; }
}

/* Level cards */
.tma-levels { gap: 24px; }
.tma-level-card {
	background: var(--tma-white);
	border: 1px solid var(--tma-line);
	border-radius: var(--tma-radius);
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.tma-level-card h3 { margin: 0; }
.tma-level-card p { margin: 0; color: var(--tma-muted); }
.tma-prereq {
	margin-top: 6px;
	padding-top: 14px;
	border-top: 1px solid var(--tma-line);
	font-size: 0.9375rem;
	color: var(--tma-body);
}
.tma-prereq__title {
	margin: 0 0 6px !important;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--tma-ink) !important;
}
.tma-prereq ul { margin: 0; padding-left: 18px; }
.tma-prereq li { margin: 4px 0; color: var(--tma-body); }
.tma-prereq__learn { margin: 10px 0 0 !important; font-size: 0.875rem; color: var(--tma-muted); }

/* "Coming soon" box for paused programs */
.tma-soon { background: var(--tma-white); gap: 20px; }


/* ---------- 21. Timetable & sessions ---------- */
/* Filter / week bar */
.tma-tt-bar {
	gap: 16px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--tma-line);
	margin-bottom: 8px;
}
.tma-tt-day { padding-top: 28px; }
.tma-tt-day h2 {
	font-family: var(--tma-sans);
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--tma-muted);
	margin: 0 0 6px;
}

/* One class session row: day/time · class · coach · Book */
.tma-session {
	display: grid;
	grid-template-columns: 70px 170px minmax(0, 1.2fr) minmax(0, 1fr) auto;
	gap: 16px;
	align-items: center;
	padding: 16px 0;
	border-top: 1px solid var(--tma-line);
}
.tma-session:last-child { border-bottom: 1px solid var(--tma-line); }
.tma-session .tma-s-day { font-weight: 500; }
.tma-session :is(.tma-s-time, .tma-s-coach) { color: var(--tma-muted); }
.tma-session .tma-s-class a { color: inherit; }
@media (max-width: 760px) {
	.tma-session { grid-template-columns: 60px minmax(0, 1fr) auto; row-gap: 4px; }
	.tma-session :is(.tma-s-time, .tma-s-class, .tma-s-coach) { grid-column: 2; }
	.tma-session .wp-block-button,
	.tma-session > a { grid-row: 1 / span 3; grid-column: 3; }
}

/* "Live from Mindbody" note */
.tma-live-note {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.875rem;
	color: var(--tma-muted);
	margin-top: 18px;
}
.tma-live-note::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--tma-live);
	flex-shrink: 0;
}

/* Mindbody widget container (launch version of the timetable) */
.tma-mindbody {
	min-height: 480px;
	border: 1px solid var(--tma-line);
	border-radius: var(--tma-radius);
	padding: clamp(16px, 3vw, 32px);
	background: var(--tma-white);
}
.tma-widget-slot {
	border: 2px dashed var(--tma-line);
	border-radius: var(--tma-radius);
	background: var(--tma-panel);
	min-height: clamp(420px, 50vw, 620px);
	padding: 32px;
}

/* Empty state, e.g. "No classes this week" */
.tma-empty {
	padding: 28px;
	border: 1px dashed var(--tma-line);
	border-radius: var(--tma-radius);
	color: var(--tma-muted);
}


/* ---------- 22. Workshops ---------- */
.tma-ws-grid .wp-block-post-template {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (max-width: 1080px) { .tma-ws-grid .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 640px)  { .tma-ws-grid .wp-block-post-template { grid-template-columns: minmax(0, 1fr) !important; } }

.tma-ws-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	padding: 0 !important;
}
.tma-ws-card .wp-block-post-featured-image { margin: 0; }
.tma-ws-card .wp-block-post-featured-image img {
	width: 100%;
	height: 240px;
	object-fit: cover;
	border-radius: 0;
}
.tma-ws-card__body {
	padding: 22px 24px 26px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}
.tma-ws-card .wp-block-post-title { font-size: clamp(1.5rem, 2.4vw, 1.875rem); margin: 0; }
.tma-ws-card .wp-block-post-title a { text-decoration: none; }
.tma-ws-card__foot {
	margin-top: auto;
	padding-top: 12px;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}
.tma-ws-price { font-size: 1.625rem; margin: 0; }

/* Date badge (e.g. 17 OCT) */
.tma-ws-date {
	display: inline-block;
	background: var(--tma-white);
	color: var(--tma-black);
	border-radius: 6px;
	padding: 8px 10px;
	text-align: center;
	line-height: 1;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* Past workshops: put .tma-ws-past on the "Past" section */
.tma-ws-past .tma-ws-card { opacity: 0.72; }
.tma-ws-past .tma-ws-card img { filter: grayscale(1); }
.tma-ws-past .tma-ws-card .wp-block-buttons,
.tma-ws-past .tma-ws-price { display: none; }

/* Tabs (Upcoming / Past) */
.tma-tabs-nav {
	display: flex;
	gap: 8px;
	border-bottom: 1px solid var(--tma-line);
	margin-bottom: 32px;
}
.tma-tabs-nav a,
.tma-tabs-nav button {
	appearance: none;
	background: none;
	border: 0;
	border-bottom: 2px solid transparent;
	margin: 0 18px -1px 0;
	padding: 14px 6px;
	font: 500 0.9375rem/1 var(--tma-sans);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--tma-muted);
	text-decoration: none;
	cursor: pointer;
}
.tma-tabs-nav :is(a, button)[aria-selected="true"],
.tma-tabs-nav a.is-active {
	color: var(--tma-ink);
	border-bottom-color: var(--tma-ink);
}


/* ---------- 23. Kids ---------- */
.tma-kids-page { background: var(--tma-warm-panel); }
.tma-kids-program {
	background: var(--tma-white);
	border: 1px solid var(--tma-warm-line);
	border-radius: var(--tma-radius);
	padding: 36px;
}
.tma-kids-program--dark { background: #262523; color: var(--tma-white); border-color: #262523; }
.tma-kids-program--dark :is(p, li) { color: #bdbab4; }


/* ---------- 24. Map & contact ---------- */
.tma-map iframe {
	width: 100%;
	height: clamp(340px, 40vw, 520px);
	border: 0;
	border-radius: var(--tma-radius);
	display: block;
}



/* ---------- 25. Utilities ---------- */
@media (max-width: 560px) {
	.tma-hide-sm { display: none !important; }
}
@media (min-width: 561px) {
	.tma-show-sm { display: none !important; }
}
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}


/* ---------- 26. Studio Details helpers ---------- */
/* "/ week" after membership prices */
.tma-per-week::after {
	content: " / week";
	font-size: 1rem;
	letter-spacing: 0;
	color: var(--tma-muted);
}
:is(.tma-dark, .tma-card--dark) .tma-per-week::after { color: #a6a6a6; }

/* Casual price list (replaces the table so prices can come from Studio Details) */
.tma-price-list { margin-top: 20px; border-bottom: 1px solid var(--tma-line); }
.tma-price-row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 0;
	border-top: 1px solid var(--tma-line);
}
.tma-price-row p { margin: 0; }
.tma-price-row p:last-child { font-weight: 500; text-align: right; }
.tma-price-row--head { border-top: 0; padding-top: 0; }
.tma-price-row--head p {
	font-size: 0.8125rem;
	font-weight: 500 !important;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--tma-muted);
}

/* Tight lines, e.g. opening hours in the footer */
.tma-tight { margin: 0 !important; }
.tma-footer .tma-tight:last-of-type { margin-bottom: 10px !important; }


/* ---------- 27. Class details (levels, booking) ---------- */
.tma-level-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tma-class-hero .wp-block-post-terms.tma-eyebrow a {
	display: inline;
	height: auto;
	padding: 0;
	border: 0;
	background: none;
	font-size: inherit;
	letter-spacing: inherit;
	color: inherit;
	text-decoration: none;
	pointer-events: none;
}
.tma-class-hero .wp-block-post-terms.tma-eyebrow { display: block; margin-bottom: 4px; font-size: 0.8125rem !important; }
.tma-class-hero .tma-eyebrow .wp-block-post-terms__separator { display: inline; }
.tma-class-hero .tma-lede { max-width: 640px; }

.tma-levels-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 24px;
}

.tma-soon-box {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
}

.tma-book-box {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	color: var(--tma-body);
}


/* ---------- 28. Coach page ---------- */
.tma-coach-hero { align-items: center; }
.tma-coach-hero h1 { margin: 10px 0 8px; }
.tma-coach-specialties { color: var(--tma-muted); font-size: 1.0625rem; margin: 0 0 20px; }
.tma-coach-bio p { margin: 0 0 14px; }

.tma-coach-classes {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 16px;
}
.tma-mini-class {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
	background: var(--tma-white);
	border: 1px solid var(--tma-line);
	border-radius: var(--tma-radius);
	text-decoration: none;
	color: inherit;
}
.tma-mini-class:hover { border-color: var(--tma-ink); color: inherit; }
.tma-mini-class img { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; }
.tma-mini-class strong {
	display: block;
	font-family: var(--tma-serif);
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1.1;
}
.tma-mini-levels { display: block; margin-top: 4px; font-size: 0.8125rem; color: var(--tma-muted); }


/* ---------- 29. Workshops page (WordPress) ---------- */
.tma-ws-media { position: relative; }
.tma-ws-media .tma-ws-date { position: absolute; top: 14px; left: 14px; margin: 0; }
.tma-ws-card__body .tma-eyebrow { font-size: 0.75rem !important; }
.tma-ws-card__body p { margin: 0; }
.tma-ws-card .wp-block-post-excerpt { color: var(--tma-body); font-size: 1rem; }
.tma-ws-card .wp-block-post-excerpt__more-link { display: none; }

/* "Ended" label only shows on past workshops */
.tma-ws-ended { display: none; }
.tma-ws-past .tma-ws-ended { display: inline-flex; }
.tma-ws-past .tma-ws-date { background: var(--tma-line); color: var(--tma-muted); }

/* Upcoming / Past tabs (pure CSS, no plugin) */
.tma-workshops .tma-ws-past { display: none; }
.tma-workshops:has(#past:target) .tma-ws-past { display: block; }
.tma-workshops:has(#past:target) .tma-ws-upcoming { display: none; }
.tma-workshops:not(:has(#past:target)) .tma-tab-up,
.tma-workshops:has(#past:target) .tma-tab-past {
	color: var(--tma-ink);
	border-bottom-color: var(--tma-ink);
}
.tma-ws-panel { scroll-margin-top: 120px; }


/* ---------- 30. Home page extras ---------- */
.tma-hours-list { margin: 8px 0 4px; }
.tma-hours-list p { line-height: 2; }


/* ---------- 31. New to aerial page ---------- */
.tma-new-hero h1 { margin: 16px 0 20px; font-size: clamp(2.75rem, 5.2vw, 4.75rem); }
.tma-foundations-card { display: inline-flex; flex-direction: column; gap: 2px; padding: 22px 26px !important; margin: 24px 0; }
.tma-foundations-card h3 { margin: 4px 0; }
.tma-foundations-card p { margin: 0; }
.tma-link-row { margin-top: 14px; }

.tma-reasons-title { max-width: 900px; margin: 0 0 36px; }
.tma-reasons { gap: 40px; }
.tma-reason { padding-top: 22px; border-top: 1px solid #3d3d3d; }
.tma-reason h4 { margin: 0 0 10px; color: var(--tma-white); }
.tma-reason p { margin: 0; color: #cfcfcf; }

.tma-head-note { max-width: 520px; margin: 0; }
.tma-apparatus { gap: 20px; }
.tma-apparatus .tma-icon-card { padding: 26px 22px !important; }
.tma-apparatus .tma-icon-card h3 { margin: 12px 0 8px; }
.tma-apparatus .tma-icon-card p { margin: 0; }
@media (max-width: 560px) {
	.tma-apparatus { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px; }
	.tma-apparatus .tma-icon-card { padding: 18px !important; }
	.tma-apparatus .tma-icon-card p { display: none; }
}

.tma-small { font-size: 0.9375rem; margin: 8px 0 0; }
#class { scroll-margin-top: 100px; }

.tma-closing h2 { margin: 0 0 16px; }
.tma-closing .wp-block-buttons { margin-top: 22px; }


/* ---------- 32. Classes page ---------- */
.tma-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.tma-chips a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid var(--tma-line);
	border-radius: var(--tma-radius-sm);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--tma-ink);
	white-space: nowrap;
}
.tma-chips a:hover { border-color: var(--tma-ink); color: var(--tma-ink); }
@media (max-width: 560px) {
	.tma-chips {
		flex-wrap: nowrap;
		overflow-x: auto;
		margin-inline: calc(var(--tma-gutter) * -1);
		padding-inline: var(--tma-gutter);
		scrollbar-width: none;
	}
	.tma-chips a { min-height: 40px; padding: 0 14px; letter-spacing: 0.12em; }
}

.tma-disc-section { scroll-margin-top: 100px; }
.tma-disc-section + .tma-disc-section { padding-top: 0; }
.tma-disc-section .tma-head-row { margin-bottom: 24px; }

.tma-class-grid .wp-block-post-template {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (max-width: 1080px) { .tma-class-grid .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 640px)  { .tma-class-grid .wp-block-post-template { grid-template-columns: minmax(0, 1fr) !important; } }

/* Whole card is clickable (via the title link) */
.tma-class-card { position: relative; }
.tma-class-card .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--tma-radius); }
.tma-class-card__body { flex: 1; min-width: 0; }
.tma-class-card__body .wp-block-post-excerpt p { margin: 0; }

.tma-duo { height: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.tma-duo h3 { margin: 0; }
.tma-duo p { margin: 0; }
.tma-duo .wp-block-buttons { margin-top: auto; padding-top: 8px; }


/* ---------- 33. Fixes: grids, equal heights, image sizes, hours ---------- */

/* Grids: fixed column counts so items don't wrap early */
.tma-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.tma-plans { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.tma-apparatus { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
.tma-reasons { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
@media (max-width: 1080px) {
	.tma-apparatus { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 900px) {
	.tma-plans { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 860px) {
	.tma-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 781px) {
	.tma-reasons { grid-template-columns: minmax(0, 1fr) !important; gap: 28px; }
}
@media (max-width: 560px) {
	.tma-apparatus { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* Equal-height cards in lists */
:is(.tma-class-grid, .tma-ws-grid) .wp-block-post-template > li { display: flex; }
:is(.tma-class-grid, .tma-ws-grid) :is(.tma-class-card, .tma-ws-card) { flex: 1; }

/* Keep photos in two-column sections to mock-up proportions */
.tma-wrap .wp-block-columns [class*="tma-ratio-"] img { max-height: clamp(340px, 44vw, 620px); }

/* Photo + text bands: photo fills its half exactly, never taller than the text side */
.tma-band > .wp-block-columns > .wp-block-column:has(> .tma-fill) { position: relative; min-height: 380px; }
.tma-band .tma-fill { position: absolute; inset: 0; height: auto; }
.tma-band .tma-fill img { position: absolute; inset: 0; width: 100%; height: 100% !important; min-height: 0; object-fit: cover; }
@media (max-width: 781px) {
	.tma-band > .wp-block-columns > .wp-block-column:has(> .tma-fill) { min-height: 280px; }
}

/* Opening hours list ([tma_hours]) */
.tma-hours-table { list-style: none; margin: 8px 0 0; padding: 0; max-width: 480px; }
.tma-hours-table li {
	display: grid;
	grid-template-columns: minmax(96px, auto) 1fr;
	gap: 2px 24px;
	padding: 6px 0;
}
.tma-hours-table li span:first-child { color: var(--tma-muted); }
.tma-hours-table li.is-closed span:last-child { color: var(--tma-muted); }
.tma-hours-special {
	margin: 18px 0 2px;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--tma-muted);
}
.tma-footer .tma-hours-block { margin-bottom: 10px; }
.tma-footer .tma-hours-table li { padding: 1px 0; gap: 2px 14px; grid-template-columns: auto 1fr; font-size: 0.9375rem; line-height: 1.7; }
.tma-footer .tma-hours-table li span:first-child { color: #8a8a8a; }
.tma-footer .tma-hours-special { color: #8a8a8a; margin-top: 12px; }


/* ---------- 34. Kids page ---------- */
.tma-kids-section { background: var(--tma-warm-panel); }
.tma-kids-hero h1 { margin: 16px 0 20px; }
.tma-kids-hero .wp-block-buttons { margin-top: 28px; }
.tma-kids-hero .wp-block-button__link { background: #1a1a1a; }
.tma-kids-hero .is-style-outline .wp-block-button__link { background: transparent; color: #1a1a1a; }

.tma-build {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin-top: 36px;
}
.tma-build__item { padding-top: 22px; border-top: 1px solid #1a1a1a; }
.tma-build__item h4 { margin: 0 0 8px; }
.tma-build__item p { margin: 0; }
@media (max-width: 860px) { .tma-build { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tma-build { grid-template-columns: minmax(0, 1fr); } .tma-build__item p { display: none; } }

.tma-programs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	align-items: stretch;
}
@media (max-width: 900px) { .tma-programs { grid-template-columns: minmax(0, 1fr); } }
.tma-kids-program { display: flex; flex-direction: column; gap: 14px; }
.tma-kids-program h3 { margin: 0; }
.tma-kids-program p { margin: 0; }
.tma-kids-program--dark .tma-eyebrow { color: #cfccc6; }

/* Label / value rows, e.g. "When  Thursdays 4pm" */
.tma-kv { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--tma-warm-line); }
.tma-kids-program--dark .tma-kv { border-color: #3d3c39; }
.tma-kv p { padding: 4px 0; font-size: 0.9375rem; }
.tma-kv strong {
	display: inline-block;
	min-width: 112px;
	font-weight: 400;
	color: var(--tma-muted);
}
.tma-kids-program--dark .tma-kv strong { color: #bdbab4; }

.tma-kids-faq:has(.tma-faq:empty),
.tma-kids-faq:not(:has(.tma-faq)) { display: none; }

.tma-enquire h3 { margin-bottom: 4px; }
.tma-enquire__line { font-size: 1.0625rem; }
.tma-enquire .wp-block-buttons { margin-top: 12px; }


/* ---------- 35. Studio, training agreement ---------- */
/* Key facts, e.g. studio highlights on Home ("20 rigging points") */
.tma-facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 32px;
	margin: 24px 0 30px;
}
.tma-fact { padding: 14px 0; border-top: 1px solid var(--tma-line); }
.tma-fact__value {
	margin: 0 !important;
	font-family: var(--tma-serif);
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	line-height: 1.1;
}
.tma-fact__label { margin: 2px 0 0 !important; font-size: 0.9375rem; color: var(--tma-muted); }

.tma-feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tma-feature h4 { margin: 0 0 10px; }
.tma-feature p { margin: 0; }
@media (max-width: 1080px) { .tma-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .tma-feature-grid { grid-template-columns: minmax(0, 1fr); } }

.tma-train-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tma-train { display: flex; flex-direction: column; gap: 8px; }
.tma-train h4, .tma-train p { margin: 0; }
.tma-train__price { margin-top: auto !important; padding-top: 8px; font-size: 1.25rem; font-weight: 500; }
@media (max-width: 560px) { .tma-train-grid { grid-template-columns: minmax(0, 1fr); } }

.tma-amenities { columns: 2; column-gap: 32px; list-style: none; padding: 0; margin: 0; }
.tma-amenities li { break-inside: avoid; padding: 12px 0; border-top: 1px solid var(--tma-line); }
@media (max-width: 560px) { .tma-amenities { columns: 1; } }

.tma-gallery-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .tma-gallery-3 { grid-template-columns: minmax(0, 1fr); } }

/* Long-form text, e.g. the training agreement */
.tma-prose { max-width: 760px; }
.tma-prose h3 { margin: 40px 0 12px; font-size: clamp(1.5rem, 2.4vw, 1.875rem); }
.tma-prose p, .tma-prose li { color: var(--tma-body); }
.tma-prose ul { padding-left: 20px; }
.tma-prose li { margin: 8px 0; }


/* ---------- 36. Studio page updates ---------- */
.tma-feature-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1080px) { .tma-feature-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .tma-feature-grid--3 { grid-template-columns: minmax(0, 1fr); } }
.tma-safety h2 { margin: 0; font-size: clamp(2.25rem, 4.5vw, 3.5rem); }
.tma-safety .tma-lede { margin: 0; max-width: 620px; }


/* ---------- 37. Tick list with rules (e.g. studio highlights on Home) ---------- */
.tma-bullets { list-style: none; padding: 0; margin: 20px 0 28px; }
.tma-bullets li { position: relative; padding: 10px 0 10px 30px; border-top: 1px solid var(--tma-line); }
.tma-bullets li:last-child { border-bottom: 1px solid var(--tma-line); }
.tma-bullets li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 50%;
	width: 12px;
	height: 7px;
	margin-top: -6px;
	border-left: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-45deg);
}


/* ---------- 38. Contact page ---------- */
.tma-contact-list { display: flex; flex-direction: column; gap: 28px; }
.tma-contact-item .tma-eyebrow { font-size: 0.75rem !important; margin-bottom: 6px; }
.tma-contact-item p { margin: 0; }
.tma-contact-item p + p { margin-top: 6px; }
.tma-contact-big { font-size: 1.25rem; }
.tma-contact-list > .wp-block-buttons { margin-top: -12px; }
.tma-contact-item .tma-hours-table { margin-top: 0; }
.tma-map--tall iframe { height: clamp(360px, 46vw, 620px); }
.tma-map + .wp-block-buttons { margin-top: 16px; }

/* FAQ sections hide themselves when there are no FAQs for that page */
.tma-faq-section:not(:has(.tma-faq)) { display: none; }
.tma-faq-section h2 { margin: 0 0 24px; }


/* ---------- 39. About page ---------- */
.tma-disc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1080px) { .tma-disc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .tma-disc-grid { grid-template-columns: minmax(0, 1fr); } }
.tma-disc-card p { margin: 0; }
.tma-disc-card .tma-icon img { width: 64px; height: 64px; }

.tma-cta-row { gap: 24px; }
.tma-cta-row h2 { margin: 0 0 8px; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.tma-cta-row p { margin: 0; color: #cfcfcf; }


/* ---------- 40. Menu dropdowns (click to open), footer logo, online store ---------- */
.tma-header .wp-block-navigation-submenu__toggle {
	color: var(--tma-white);
	font: inherit;
	padding: 6px 0;
	background: none;
	border: 0;
	cursor: pointer;
}
.tma-header .wp-block-navigation-submenu__toggle:hover,
.tma-header .wp-block-navigation-submenu__toggle[aria-expanded="true"] {
	text-decoration: underline;
	text-underline-offset: 8px;
}
.tma-header .wp-block-navigation .wp-block-navigation__submenu-container { margin-top: 12px; }

/* Space between the footer logo and tagline */
.tma-footer .wp-block-site-logo { margin-bottom: 20px; }

/* "Buy online" section on Pricing hides itself until a store widget is added */
.tma-store-section:not(:has(.tma-store)) { display: none; }


/* ---------- 41. Fix: first item in card grids sitting higher than the rest ---------- */
/* WordPress adds top spacing to every list item except the first. In our grids
   the gap already handles spacing, so remove it from all items. */
:is(.tma-coach-grid, .tma-class-grid, .tma-ws-grid, .tma-rail) .wp-block-post-template > li {
	margin: 0 !important;
}


/* ---------- 42. Fix: first card sitting higher than the rest (all card grids) ---------- */
/* WordPress adds top spacing to every block except the first. Inside our grids
   the grid gap already spaces the cards, so remove that extra spacing. */
:is(
	.tma-disc-grid,
	.tma-feature-grid,
	.tma-train-grid,
	.tma-build,
	.tma-programs,
	.tma-gallery-3,
	.tma-facts,
	.tma-tiles,
	.tma-plans,
	.tma-apparatus,
	.tma-reasons,
	.tma-coach-classes,
	.tma-levels-grid
) > * {
	margin-block: 0 !important;
}


/* ---------- 44. Open Training & Private coaching ---------- */
.tma-ot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1080px) { .tma-ot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .tma-ot-grid { grid-template-columns: minmax(0, 1fr); } }
.tma-ot-grid > * { margin-block: 0 !important; }
.tma-card--dark .tma-train__price a { color: var(--tma-white); }

.tma-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .tma-steps { grid-template-columns: minmax(0, 1fr); } }
.tma-steps > * { margin-block: 0 !important; }
.tma-step { display: flex; flex-direction: column; gap: 8px; }
.tma-step h4, .tma-step p { margin: 0; }
.tma-step__num { font-family: var(--tma-serif); font-size: 2.5rem; line-height: 1; }

.tma-rate-box { margin-top: 24px; gap: 20px; }
.tma-rate-box h3 { margin: 0 0 6px; }
.tma-rate-box p { margin: 0; }

.tma-hire { padding: 8px 0; }
.tma-hire__row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 0;
	border-top: 1px solid #3d3d3d;
}
.tma-hire__row p { margin: 0; }
.tma-hire__price { font-weight: 500; color: var(--tma-white) !important; text-align: right; }
.tma-dark .tma-bullets li { border-color: #3d3d3d; color: #dadada; }
#for-coaches { scroll-margin-top: 100px; }


/* ---------- 45. Studio mentions, coach privates, kids flow & enrolments ---------- */
.tma-studio-more { margin: 0 0 24px; font-size: 1rem; }
.tma-studio-more a { color: var(--tma-ink); }

.tma-coach-private {
	margin-top: 24px;
	padding: 18px 22px;
	border: 1px solid var(--tma-line);
	border-radius: var(--tma-radius);
	max-width: 560px;
}
.tma-coach-private p { margin: 0; }
.tma-coach-private .tma-eyebrow { font-size: 0.75rem !important; margin-bottom: 6px; }

/* Kids page: alternate backgrounds so sections don't blend into each other */
.tma-kids-section:has(.tma-build),
.tma-kids-section:has(> .tma-wrap > .wp-block-columns [class*="tma-ratio-"]),
.tma-kids-faq { background: var(--tma-white); }
#programs { background: var(--tma-warm-panel); border-top: 1px solid var(--tma-warm-line); border-bottom: 1px solid var(--tma-warm-line); padding-top: var(--tma-section) !important; }
#enquire { background: var(--tma-warm); }
.tma-kids-faq h2 { margin: 0 0 24px; }
.tma-kids-program { background: var(--tma-white); }

/* Kids enrolments (Mindbody) — hidden until a widget is added */
.tma-kids-enrol-section { background: var(--tma-white); }
.tma-kids-enrol-section:not(:has(.tma-kids-enrol)) { display: none; }

/* Private coaching photo row on black */
.tma-pc-gallery { padding-top: 0 !important; }


/* ---------- 46. Layout polish ---------- */
/* Home studio: bigger photo */
.tma-studio-cols { gap: clamp(32px, 5vw, 64px) !important; }
.tma-studio-photo img { max-height: clamp(420px, 48vw, 640px) !important; }
@media (max-width: 781px) { .tma-studio-cols > .wp-block-column { flex-basis: 100% !important; } }

/* Private coaching hero */
.tma-pc-hero h1 { margin: 12px 0 16px; }
.tma-pc-hero .tma-bullets { margin: 20px 0 16px; }

/* Kids: a line between the enrolments list and the FAQs */
.tma-kids-faq { border-top: 1px solid var(--tma-line); }

/* Pricing: give "Not sure which fits?" room after the FAQs */
.tma-faq-section + .tma-section--flush-top { padding-top: var(--tma-section) !important; }
.tma-faq-section .wp-block-columns, .tma-faq-section h2 { margin-top: 0; }

/* A fine line when a page ends on a black section, so it doesn't merge into the footer */
.wp-block-post-content > .tma-dark:last-child { border-bottom: 1px solid var(--tma-dark-line); }

/* Coaches page: private lessons band */
.tma-private-band h3 { margin: 6px 0 8px; }
.tma-private-band p { margin: 0; }


/* ---------- 47. Pricing: "Not sure which fits?" as a quiet note under the memberships ---------- */
.tma-plans-note { margin: 20px 0 0; text-align: center; color: var(--tma-muted); }
.tma-plans-note a { color: var(--tma-ink); }
#intro-pass { scroll-margin-top: 100px; }


/* ---------- 48. Open Training hero ---------- */
.tma-ot-hero h1 { margin: 12px 0 16px; }
.tma-ot-hero .wp-block-buttons { margin-top: 24px; }
#ot-prices { scroll-margin-top: 100px; }


/* ---------- 49. Classes page: filter buttons (as in the mock-up) ---------- */
.tma-classes-head { padding-bottom: 28px !important; }
.tma-filter {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 12px 24px;
	margin-bottom: 28px;
}
.tma-filter__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tma-chip {
	appearance: none;
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid var(--tma-line);
	border-radius: var(--tma-radius-sm);
	background: var(--tma-white);
	color: var(--tma-ink);
	font: 500 0.75rem/1 var(--tma-sans);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	cursor: pointer;
	white-space: nowrap;
}
.tma-chip:hover { border-color: var(--tma-ink); }
.tma-chip[aria-pressed="true"] { background: var(--tma-black); color: var(--tma-white); border-color: var(--tma-black); }
.tma-filter__count { margin: 0; font-size: 0.9375rem; color: var(--tma-muted); }
@media (max-width: 560px) {
	.tma-filter__chips {
		flex-wrap: nowrap;
		overflow-x: auto;
		margin-inline: calc(var(--tma-gutter) * -1);
		padding-inline: var(--tma-gutter);
		scrollbar-width: none;
	}
}
.tma-class-grid--filter .wp-block-post-template > li[hidden] { display: none !important; }

/* Small discipline label above each class name */
.tma-class-card .wp-block-post-terms.tma-class-card__disc {
	display: block;
	margin: 0 0 4px;
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--tma-muted);
}
.tma-class-card .wp-block-post-terms.tma-class-card__disc a {
	display: inline;
	height: auto;
	padding: 0;
	border: 0;
	background: none;
	font-size: inherit;
	letter-spacing: inherit;
	color: inherit;
}
.tma-class-card .tma-class-card__disc .wp-block-post-terms__separator { display: inline; }


/* ---------- 50. Kids program cards: fixes ---------- */
/* Keep the Performance Troupe card dark (section 45 made all program cards white) */
.tma-kids-program.tma-kids-program--dark {
	background: #262523;
	color: var(--tma-white);
	border-color: #262523;
}
.tma-kids-program.tma-kids-program--dark h3 { color: var(--tma-white); }

/* Details rows: label in its own column, value wraps neatly beside it */
.tma-kv p {
	position: relative;
	display: grid;
	grid-template-columns: 104px 1fr;
	column-gap: 12px;
	align-items: start;
}
.tma-kv p strong { min-width: 0; }
/* Fee rows (from Studio → Prices) have no label of their own: indent them, and label the first one "Fee" */
.tma-kv p:not(:has(strong)) { display: block; padding-left: 116px; }
.tma-kv p:has(strong) + p:not(:has(strong))::before {
	content: "Fee";
	position: absolute;
	left: 0;
	top: 4px;
	color: var(--tma-muted);
}
.tma-kids-program--dark .tma-kv p:has(strong) + p:not(:has(strong))::before { color: #bdbab4; }


/* ---------- 51. Footer holiday hours: time on its own line ---------- */
.tma-footer .tma-hours-table--special li {
	grid-template-columns: 1fr;
	row-gap: 0;
	padding: 3px 0;
}
.tma-footer .tma-hours-table--special li + li { margin-top: 6px; }


/* ---------- 52. Footer Explore list: tighter spacing (matches the mock-up) ---------- */
/* WordPress can space list items in several ways (margins, flex/grid gaps, block gap);
   reset all of them for footer lists. */
.tma-footer ul,
.tma-footer .wp-block-list {
	display: block !important;
	gap: 0 !important;
	row-gap: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}
.tma-footer ul > li,
.tma-footer .wp-block-list > li,
.tma-footer .wp-block-list > * + * {
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1.75 !important;
}
.tma-footer li > *,
.tma-footer li a {
	margin: 0 !important;
	padding: 0 !important;
	display: inline;
	line-height: inherit;
}
.tma-footer h4 + .wp-block-list { margin-top: 12px !important; }


/* ---------- 53. Contact page: one divider line under each item (like the mock-up) ---------- */
.tma-contact-list { gap: 20px; }
.tma-contact-list > .tma-contact-item {
	padding-bottom: 20px;
	border-bottom: 1px solid var(--tma-line);
}
.tma-contact-list > .wp-block-buttons {
	margin-top: 0;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--tma-line);
}
/* only the item gets a line, never anything inside it (e.g. the hours list) */
.tma-contact-item * { border: 0; }


/* ---------- 54. Contact page: more room above "Holiday hours" ---------- */
.tma-contact-item .tma-hours-special { margin-top: 26px !important; }


/* ---------- 55. Coaches page: private lessons band (light, like the mock-up) ---------- */
/* The shared CTA row styles are made for black bands; reset them for this light band. */
.tma-private-band { color: var(--tma-ink); }
.tma-private-band .tma-cta-row { gap: 24px 48px; align-items: center; }
.tma-private-band .tma-cta-row > .wp-block-group { max-width: 640px; }
.tma-private-band .tma-eyebrow { color: var(--tma-muted) !important; }
.tma-private-band h3 {
	color: var(--tma-ink);
	font-size: clamp(1.5rem, 2.4vw, 1.875rem);
	margin: 6px 0 8px;
}
.tma-private-band p:not(.tma-eyebrow) { color: var(--tma-muted) !important; margin: 0; }
.tma-private-band .is-style-outline .wp-block-button__link { color: var(--tma-ink); border-color: var(--tma-ink); }


/* ---------- 56. Final adjustments ---------- */
/* Home hero: two-line Intro Pass button; hide the old caption underneath */
:root .tma-btn-2line { flex-direction: column; gap: 7px; padding: 14px 26px; line-height: 1; }
.tma-btn-sub { font-size: 0.75rem; font-weight: 400; letter-spacing: 0.02em; text-transform: none; opacity: 0.75; }
.tma-hero .tma-caption { display: none; }

/* Home kids band: show the top of the photo (heads) */
.tma-band .tma-fill img { object-position: center 18%; }
.tma-band > .wp-block-columns > .wp-block-column:has(> .tma-fill) { min-height: 460px; }
@media (max-width: 781px) {
	.tma-band > .wp-block-columns > .wp-block-column:has(> .tma-fill) { min-height: 320px; }
}

/* Coaches carousel arrows */
.tma-head-row { align-items: flex-end; }
.tma-rail-nav { display: flex; gap: 8px; margin-left: auto; }
.tma-head-row > p + .tma-rail-nav { margin-left: 16px; }
.tma-rail-nav button {
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border: 1px solid var(--tma-line);
	border-radius: 50%;
	background: var(--tma-white);
	color: var(--tma-ink);
	cursor: pointer;
}
.tma-rail-nav button:hover { border-color: var(--tma-ink); }
.tma-rail-nav button:focus-visible { outline: 2px solid var(--tma-ink); outline-offset: 3px; }
.tma-head-row:has(.tma-rail-nav) > p { margin: 0 0 12px auto; }

/* New to aerial: "What to expect" sits beside the button */
.tma-new-hero .wp-block-buttons { display: inline-flex !important; vertical-align: middle; margin: 0 20px 0 0 !important; }
.tma-new-hero .wp-block-buttons + .tma-link-row { display: inline-block; vertical-align: middle; margin: 0 !important; }

/* Classes page: less space around the Kids / New to aerial cards */
.tma-section:has(.tma-class-grid--filter) { padding-bottom: var(--tma-section-tight) !important; }
.tma-section:has(.tma-duo) { padding-top: 0 !important; padding-bottom: var(--tma-section-tight) !important; }

/* Class page: level cards keep their width, even when there's only one */
.tma-levels-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1080px) { .tma-levels-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .tma-levels-grid { grid-template-columns: minmax(0, 1fr); } }

/* "Get notified" email form */
.tma-soon-box { align-items: center; }
.tma-soon-box__text { flex: 1 1 320px; }
.tma-notify { display: flex; flex-wrap: wrap; gap: 10px; flex: 1 1 340px; justify-content: flex-end; }
.tma-notify input[type="email"] {
	flex: 1 1 220px;
	min-height: 52px;
	padding: 0 16px;
	border: 1px solid var(--tma-line);
	border-radius: var(--tma-radius-sm);
	font: inherit;
	font-size: 1rem;
	background: var(--tma-white);
	color: var(--tma-ink);
}
.tma-notify input[type="email"]:focus { outline: 2px solid var(--tma-ink); outline-offset: 1px; border-color: var(--tma-ink); }
.tma-notify button { cursor: pointer; }
.tma-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.tma-notify__msg { margin: 12px 0 0 !important; font-weight: 500; }
.tma-notify__msg.is-ok { color: #2b8a3e; }
.tma-notify__msg.is-error { color: #c92a2a; }


/* ---------- 57. Polish: hero buttons same height, Classes cards gap ---------- */
.tma-hero .wp-block-buttons { align-items: stretch !important; }
.tma-hero .wp-block-button { display: flex; }
.tma-hero .wp-block-button__link { height: 100%; }
.tma-section:has(.tma-duo) .wp-block-columns { gap: 24px !important; }


/* ---------- 58. Address & getting here ---------- */
.tma-address-block .tma-address { margin: 0; font-size: 1.25rem; line-height: 1.5; }
.tma-getting-here { list-style: none; margin: 12px 0 0; padding: 0; color: var(--tma-muted); }
.tma-getting-here li { margin: 0; line-height: 1.6; }
.tma-getting-here li + li { margin-top: 6px; }
.tma-getting-here strong { font-weight: 500; color: var(--tma-body); }
.tma-footer .tma-address-block .tma-address { font-size: 0.9375rem; margin: 0 0 10px; }
.tma-visit-getting-here { margin: 18px 0 24px; }


/* ---------- 59. Menu dropdowns: line up under their menu item, no boxy focus outline ---------- */
/* WordPress right-aligns submenus when the menu is on the right; align them to the item instead */
.tma-header .wp-block-navigation .has-child .wp-block-navigation__submenu-container {
	left: -20px !important;
	right: auto !important;
	top: 100% !important;
	margin-top: 14px;
}
/* An invisible bridge so the mouse can travel from the item to the dropdown */
.tma-header .wp-block-navigation .has-child .wp-block-navigation__submenu-container::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -16px;
	height: 16px;
}
/* The item that opens a dropdown: no box after clicking, a subtle ring only for keyboard users */
.tma-header .wp-block-navigation-submenu__toggle,
.tma-header .wp-block-navigation-item__content { border: 0 !important; box-shadow: none !important; }
.tma-header .wp-block-navigation-submenu__toggle:focus { outline: none; }
.tma-header .wp-block-navigation-submenu__toggle:focus-visible,
.tma-header .wp-block-navigation-item__content:focus-visible {
	outline: 1px solid rgba(255, 255, 255, 0.6);
	outline-offset: 6px;
	border-radius: 3px;
}
/* Keep the little arrow snug and centred next to the word */
.tma-header .wp-block-navigation__submenu-icon { margin-left: 4px; width: 10px; height: 10px; }
.tma-header .wp-block-navigation__submenu-icon svg { width: 10px; height: 10px; }
/* Mobile menu: submenus sit in normal flow */
.tma-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	left: auto !important;
	margin-top: 0;
}
.tma-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container::before { display: none; }
