/* Badgers Tennis Club — site styles.
   Measurements taken from the live Elementor site (02/12/2026) at 1440px and 390px:
   PT Serif 17/1.5, teal #00404F, navy #213745, yellow #F6CC42, light grey #F7F7F7,
   1222px container, square corners, 2px outline buttons. */

:root {
	--bd-teal: #00404F;
	--bd-navy: #213745;
	--bd-yellow: #F6CC42;
	--bd-grey: #F7F7F7;
	--bd-grey-text: #737373;
	--bd-max: 1222px;
	--bd-pad: 10px;
	--bd-font: "PT Serif", Georgia, serif;
	--bd-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: #fff;
	color: var(--bd-navy);
	font: 400 17px/1.5 var(--bd-font);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
html.bd-menu-open { overflow: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--bd-teal); }
:focus-visible { outline: 3px solid var(--bd-yellow); outline-offset: 2px; }

h1, h2, h3, h4, h5, h6 { margin: 0 0 20px; font-weight: 700; color: var(--bd-navy); }
h1 { font-size: 37px; line-height: 1.3; color: var(--bd-teal); }
h2 { font-size: 23px; line-height: 1.5; }
h3 { font-size: 21px; line-height: 1.5; margin-bottom: 16px; }
h4 { font-size: 19px; line-height: 1.5; }
p { margin: 0 0 1em; }
p:last-child, ul:last-child { margin-bottom: 0; }
.is-style-lead { font-size: 1.25em; line-height: 1.5; }
.has-text-align-center { text-align: center; }
.bd-light { font-weight: 400; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.bd-skip:focus {
	position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto;
	padding: 10px 16px; background: #fff; z-index: 100000;
}
hr, .wp-block-separator { border: 0; border-top: 1px solid #B8B8B8; margin: 30px 0; }

/* ---------- buttons ---------- */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 25px 0 0; }
.wp-block-buttons.is-content-justification-center { justify-content: center; }
.wp-block-buttons.is-content-justification-right { justify-content: flex-end; }
.wp-block-button__link, .bd-btn {
	display: inline-block;
	min-width: 200px;
	padding: .94em;
	border: 2px solid var(--bd-teal);
	border-radius: 0;
	background: var(--bd-teal);
	color: #fff;
	font: 400 18px/1 var(--bd-font);
	text-align: center;
	text-decoration: none;
	transition: background-color .3s ease-in-out, color .3s ease-in-out, border-color .3s ease-in-out;
}
.wp-block-button__link:hover, .bd-btn--fill:hover { background: transparent; color: var(--bd-teal); }
.is-style-outline .wp-block-button__link, .bd-btn { background: transparent; color: var(--bd-teal); }
.is-style-outline .wp-block-button__link:hover, .bd-btn:hover { background: var(--bd-teal); color: #fff; }
.bd-btn--fill { background: var(--bd-teal); color: #fff; }
.bd-btn--light { background: var(--bd-grey); border-color: var(--bd-grey); color: var(--bd-teal); }
.bd-btn--light:hover { background: transparent; color: var(--bd-grey); border-color: var(--bd-grey); }

/* ---------- header ---------- */
.bd-header { position: relative; z-index: 100; background: #fff; }
.bd-header__inner {
	display: flex; align-items: center; gap: 20px;
	max-width: var(--bd-max); min-height: 97px; margin: 0 auto; padding: 5px var(--bd-pad);
}
.bd-logo { flex: none; line-height: 0; }
.bd-logo img { width: 200px; height: auto; }
.bd-nav { margin-left: auto; }
.bd-nav__list, .bd-nav__list ul { list-style: none; margin: 0; padding: 0; }
.bd-nav__list { display: flex; }
.bd-nav__list > li { position: relative; }
.bd-nav__list a {
	display: block; margin: 0 12.5px; padding: 5px 0;
	color: var(--bd-teal); font-weight: 700; font-size: 16px; line-height: 1; text-decoration: none;
	background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 2px;
	transition: background-size .3s var(--bd-ease);
}
.bd-nav__list > li > a:hover, .bd-nav__list > .current-menu-item > a,
.bd-nav__list > .current-menu-ancestor > a, .bd-nav__list > .current-menu-parent > a { background-size: 100% 2px; color: var(--bd-teal); }
.bd-nav__list .sub-menu {
	position: absolute; top: calc(100% + 18px); left: 0; min-width: 250px; padding: 10px 0;
	background: #fff; border-top: 3px solid var(--bd-teal); box-shadow: 0 12px 30px rgba(33, 55, 69, .12);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .2s, transform .2s, visibility .2s;
}
.bd-nav__list .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -21px; height: 21px; }
.bd-nav__list li:hover > .sub-menu, .bd-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.bd-nav__list .sub-menu a { margin: 0; padding: 12px 20px; font-weight: 400; background: none; }
.bd-nav__list .sub-menu a:hover, .bd-nav__list .sub-menu .current-menu-item > a { background: var(--bd-grey); }
.bd-header__book { min-width: 0; margin-left: 12px; padding: 11px 20px; font-size: 16px; }

/* hamburger */
.bd-burger {
	display: none; margin-left: auto; width: 46px; height: 46px; padding: 8px;
	border: 0; background: none; cursor: pointer; color: #000;
}
.bd-burger__box { position: relative; display: block; width: 30px; height: 20px; }
.bd-burger__box span, .bd-burger__box span::before, .bd-burger__box span::after {
	position: absolute; left: 0; width: 30px; height: 3px; border-radius: 4px; background: currentColor;
}
.bd-burger__box span { top: 50%; margin-top: -2px; transition: transform .22s cubic-bezier(.55, .055, .675, .19); }
.bd-burger__box span::before, .bd-burger__box span::after { content: ""; }
.bd-burger__box span::before { top: -8px; transition: top .1s .25s ease-in, opacity .1s ease-in; }
.bd-burger__box span::after { bottom: -8px; transition: bottom .1s .25s ease-in, transform .22s cubic-bezier(.55, .055, .675, .19); }
.bd-burger[aria-expanded="true"] .bd-burger__box span { transform: rotate(225deg); transition-delay: .12s; transition-timing-function: cubic-bezier(.215, .61, .355, 1); }
.bd-burger[aria-expanded="true"] .bd-burger__box span::before { top: 0; opacity: 0; transition: top .1s ease-out, opacity .1s .12s ease-out; }
.bd-burger[aria-expanded="true"] .bd-burger__box span::after { bottom: 0; transform: rotate(-90deg); transition: bottom .1s ease-out, transform .22s .12s cubic-bezier(.215, .61, .355, 1); }

/* mobile menu: fills the screen under the header bar and scrolls on short screens, so nothing is cut off */
.bd-mobile {
	position: fixed; left: 0; right: 0; bottom: 0; top: var(--bd-header-h, 81px); z-index: 99;
	display: flex; flex-direction: column; align-items: center;
	overflow-y: auto; overscroll-behavior: contain;
	padding: 30px 20px calc(40px + env(safe-area-inset-bottom));
	background: #fff url(../img/bg-rackets.png) no-repeat right -40px bottom -20px / 300px auto;
	text-align: center;
	animation: bd-slide .3s var(--bd-ease);
}
.bd-mobile[hidden] { display: none; }
@keyframes bd-slide { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
.bd-mobile__title { margin: 0 0 10px; font-size: 27px; line-height: 1.3; font-weight: 700; color: var(--bd-teal); }
.bd-mobile nav { width: 100%; }
.bd-mobile__list { list-style: none; margin: 0 0 20px; padding: 0; }
.bd-mobile__list a {
	display: inline-block; padding: 9px 12px;
	font-size: 19px; line-height: 1.3; font-weight: 700; color: var(--bd-teal); text-decoration: none;
}
.bd-mobile__list .current-menu-item > a { text-decoration: underline; text-underline-offset: 6px; }
.bd-mobile .bd-btn { width: 100%; max-width: 320px; flex: none; font-size: 18px; }
.bd-mobile hr { width: 100%; max-width: 320px; margin: 30px auto 20px; flex: none; }
.bd-mobile .bd-social { margin-top: 0; }

@media (max-width: 1180px) {
	.bd-nav__list a { margin: 0 8px; font-size: 15px; }
	.bd-header__book { margin-left: 4px; }
}
@media (max-width: 1024px) {
	.bd-nav, .bd-header__book { display: none; }
	.bd-burger { display: block; }
	.bd-header__inner { min-height: 81px; padding: 5px 20px; }
	.bd-logo img { width: 150px; }
}

/* ---------- page structure ---------- */
.bd-main { display: block; }
.bd-section,
.bd-content > .wp-block-group, .bd-content > .wp-block-table, .bd-content > .wp-block-columns {
	max-width: var(--bd-max);
	margin-left: auto; margin-right: auto;
	padding: 50px var(--bd-pad);
}
.bd-content > .wp-block-group + .wp-block-group { padding-top: 10px; }
.bd-content > :first-child:not(.bd-hero-video) { padding-top: 40px; }
.bd-content > :last-child { padding-bottom: 80px; }
.bd-content--prose { max-width: 860px; margin: 0 auto; padding: 0 20px 80px; }
.bd-content--prose h2 { margin-top: 1.4em; }
.bd-page__header { padding-bottom: 10px; }
.bd-narrow { max-width: 620px !important; }
.bd-center { text-align: center; }
.bd-center .wp-block-buttons { justify-content: center; }
.bd-anchor { display: block; position: relative; top: -110px; }

/* homepage hero video (full width) */
.bd-content > .bd-hero-video { max-width: none; margin: 0; padding: 0; }
.bd-hero-video video { width: 100%; height: 700px; object-fit: cover; }
.bd-content > .bd-hero-video + .wp-block-group { padding-top: 90px; padding-bottom: 20px; }

/* grey band, full width (home partner logos) */
.bd-content > .bd-band { max-width: none; background: var(--bd-grey); padding: 25px 20px !important; margin-top: 40px; }
.bd-band .wp-block-image img { width: auto; max-width: min(100%, 720px); max-height: 95px; margin: 0 auto; }

/* racket watermark behind page intros */
.bd-bg-rackets { position: relative; isolation: isolate; }
.bd-bg-rackets::before {
	content: ""; position: absolute; z-index: -1; top: 30px; right: var(--bd-pad);
	width: 336px; height: 272px; background: url(../img/bg-rackets.png) no-repeat right top / contain;
	pointer-events: none;
}
.bd-bg-rackets:has(> .bd-split)::before { right: auto; left: 30%; transform: translateX(-50%); top: 30px; }

/* text + photo */
.wp-block-columns { display: flex; flex-wrap: nowrap; gap: 60px; align-items: center; margin: 0; }
.wp-block-column { flex: 1 1 0; min-width: 0; }
.bd-split .wp-block-image img { width: 100%; height: auto; }
.bd-split .wp-block-column > .wp-block-heading:first-child { margin-top: 0; }
@media (max-width: 1024px) { .wp-block-columns { gap: 40px; } }
@media (max-width: 767px) {
	.wp-block-columns { flex-direction: column; align-items: stretch; gap: 25px; }
}

/* images */
.wp-block-image { margin: 0; }
.wp-block-image img { width: 100%; }

/* ---------- grids and cards ---------- */
.bd-grid {
	display: grid; gap: 30px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	margin: 30px 0 0;
}
.bd-grid:first-child { margin-top: 0; }
.bd-grid > * { margin-top: 0 !important; margin-bottom: 0 !important; }
.bd-grid--banners { grid-template-columns: repeat(2, 1fr); gap: 40px; }
.bd-grid--quotes { grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); text-align: left; }

.bd-card { display: flex; flex-direction: column; background: var(--bd-grey); text-align: left; }
.bd-card > .wp-block-image { margin: 0; overflow: hidden; }
.bd-card > .wp-block-image img { width: 100%; aspect-ratio: 381 / 283; object-fit: cover; transition: transform .6s var(--bd-ease); }
.bd-card:hover > .wp-block-image img { transform: scale(1.03); }
.bd-card > :not(.wp-block-image) { margin-left: 30px; margin-right: 30px; max-width: none; }
.bd-card > :not(.wp-block-image):first-child, .bd-card > .wp-block-image + * { margin-top: 30px; }
.bd-card > :last-child:not(.wp-block-image) { margin-bottom: 40px; }
.bd-card h3 { font-size: 19px; line-height: 1.5; margin-bottom: 20px; }
.bd-card h3 a { color: var(--bd-navy); }
.bd-card .wp-block-buttons { margin-top: 0; gap: 0; }
.bd-card .wp-block-button__link { min-width: 140px; padding: 15px; font-size: 16px; }
.bd-card--plain h3 { font-size: 21px; }

/* bios: photo beside text, no box */
.bd-card--side { display: grid; grid-template-columns: minmax(0, 300px) 1fr; column-gap: 40px; align-content: center; background: none; }
.bd-card--side > .wp-block-image { grid-column: 1; grid-row: 1 / span 20; align-self: start; }
.bd-card--side > .wp-block-image img { aspect-ratio: 3 / 4; object-position: 50% 20%; }
.bd-card--side > :not(.wp-block-image) { grid-column: 2; margin-left: 0; margin-right: 0; }
.bd-card--side > .wp-block-image + * { margin-top: 0; }
.bd-card--side > :last-child:not(.wp-block-image) { margin-bottom: 0; }
.bd-card--side h3 { font-size: 21px; margin-bottom: 12px; }
.bd-grid:has(> .bd-card--side) { grid-template-columns: 1fr; gap: 50px; }
.bd-card--side:hover > .wp-block-image img { transform: none; }

/* call-to-action cards (Coaching, Competition, Teams): wide photo strip, text below */
.bd-grid:has(> .bd-card--cta) { grid-template-columns: 1fr; gap: 0; }
.bd-card--cta > .wp-block-image img { aspect-ratio: auto; height: 160px; object-position: 50% 35%; }
.bd-card--cta h3 { font-size: 21px; }
.bd-card--cta .wp-block-button__link { padding: 12px 15px; font-size: 16px; }

/* homepage banners: court bookings (yellow) + memberships (navy), photo on the right with an angled edge */
.bd-banner {
	position: relative; overflow: hidden; z-index: 0;
	min-height: 267px; padding: 14px 50% 39px 24px;
	background: var(--bd-yellow) no-repeat 100% 50% / 50% auto;
	text-align: left;
}
.bd-banner::before {
	content: ""; position: absolute; z-index: 1; top: 0; left: 50%;
	width: 272px; height: 272px; transform: translateX(-50%);
	background: no-repeat center / contain;
	pointer-events: none;
}
.bd-banner > * { position: relative; z-index: 2; margin-left: 0 !important; margin-right: 0 !important; max-width: none !important; }
.bd-banner--yellow { background-color: var(--bd-yellow); background-image: url(/wp-content/uploads/2021/12/Court-Bookings-bg.jpg); }
.bd-banner--yellow::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 238 238'%3E%3Cpath fill='%23F6CC42' d='M119.5-.4l119 238H.5z'/%3E%3C/svg%3E"); }
.bd-banner--green { background-color: var(--bd-navy); background-image: url(/wp-content/uploads/2021/12/Memberships-bg.jpg); color: #fff; }
.bd-banner--green::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 238 238'%3E%3Cpath fill='%23213745' d='M119.5-.4l119 238H.5z'/%3E%3C/svg%3E"); }
.bd-banner .bd-banner__icon { margin: 0 !important; }
.bd-banner .bd-banner__icon img { width: 115px; height: 115px; object-fit: contain; }
.bd-banner h3 { font-size: 21px; margin: 0 0 16px; }
.bd-banner h3 a { color: var(--bd-navy); }
.bd-banner--green h3, .bd-banner--green h3 a, .bd-banner--green p { color: #fff; }
.bd-banner h3 a:hover { text-decoration-thickness: 2px; }

/* testimonials */
.bd-testimonial { margin: 0; padding: 40px; background: var(--bd-grey); border: 0; font-size: 17px; text-align: left; }
.bd-testimonial::before {
	content: ""; display: block; width: 40px; height: 40px; margin-bottom: 20px;
	background: url(../img/quotes.svg) no-repeat center / contain;
}
.bd-testimonial cite { display: block; margin-top: 20px; font-style: normal; font-weight: 700; }

/* lists */
.wp-block-list { padding-left: 1.2em; }
.bd-ticks { list-style: none; padding: 0; margin: 20px 0 0; text-align: left; }
.bd-ticks li { position: relative; padding: 0 0 2.5px 25px; }
.bd-ticks li + li { margin-top: 2.5px; }
.bd-ticks li::before {
	content: ""; position: absolute; left: 0; top: .42em; width: 15px; height: 12px;
	background: var(--bd-teal);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 14'%3E%3Cpath d='M6.3 13.6.3 7.6l2.3-2.3 3.7 3.7L15.4 0l2.3 2.3z'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 14'%3E%3Cpath d='M6.3 13.6.3 7.6l2.3-2.3 3.7 3.7L15.4 0l2.3 2.3z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.bd-center .bd-ticks { display: inline-block; }
.bd-contact-list { list-style: none; padding: 0; margin: 25px 0 0; }
.bd-contact-list li { margin-bottom: 10px; color: var(--bd-teal); }
.bd-contact-list a { color: var(--bd-teal); }

/* tables (membership prices, honours board, timetable) */
.wp-block-table { margin: 30px 0 0; overflow-x: auto; }
.wp-block-table table { width: 100%; border-collapse: collapse; }
.bd-table th, .bd-table td { border: 0; padding: 19px; vertical-align: middle; text-align: center; }
.bd-table th { background: var(--bd-teal); color: #fff; font-size: 21px; line-height: 1.4; }
.bd-table td { color: var(--bd-teal); font-size: 1.25em; line-height: 1.4; }
.bd-table tbody tr:nth-child(odd) td { background: var(--bd-grey); }
.bd-table tbody tr:nth-child(even) td { background: #fff; }
.bd-table small { font-size: .7em; }

/* gallery */
.bd-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin: 30px 0 0; }
.bd-gallery .wp-block-image { overflow: hidden; }
.bd-gallery .wp-block-image img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .6s var(--bd-ease); }
.bd-gallery .wp-block-image:hover img { transform: scale(1.04); }

/* members area accordion */
.wp-block-details { margin: 0 0 10px; background: var(--bd-grey); }
.wp-block-details summary { padding: 18px 22px; font-weight: 700; cursor: pointer; color: var(--bd-teal); }
.wp-block-details > :not(summary) { margin: 0 22px; }
.wp-block-details > :last-child { padding-bottom: 22px; }

/* password-protected pages */
.bd-password { text-align: center; padding-top: 80px !important; padding-bottom: 80px !important; }
.post-password-form { padding: 20px 0 0; }
.post-password-form p { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.post-password-form input[type="password"] { padding: 12px; border: 0; background: var(--bd-grey); font: inherit; color: var(--bd-teal); }
.post-password-form input[type="submit"] { padding: .78em .94em; border: 2px solid var(--bd-teal); background: var(--bd-teal); color: #fff; font: inherit; cursor: pointer; }

/* news */
.bd-meta { margin-bottom: 8px; color: var(--bd-grey-text); font-size: 15px; }
.bd-post-card > .bd-post-card__image img { width: 100%; aspect-ratio: 381 / 283; object-fit: cover; }
.bd-more { color: var(--bd-teal); font-weight: 700; text-decoration: none; }
.bd-post__image img { width: 100%; }
.bd-related { padding-top: 60px !important; padding-bottom: 60px !important; }
.bd-related h2 { text-align: center; }
.bd-section--grey { background: var(--bd-grey); max-width: none !important; }
.bd-section--grey > * { max-width: calc(var(--bd-max) - 2 * var(--bd-pad)); margin-left: auto; margin-right: auto; }
.nav-links { display: flex; gap: 10px; justify-content: center; margin-top: 40px; }
.nav-links a, .nav-links span { padding: 8px 14px; border: 2px solid var(--bd-teal); text-decoration: none; color: var(--bd-teal); }
.nav-links .current { background: var(--bd-teal); color: #fff; }

/* ---------- get in touch + footer ---------- */
.bd-touch {
	padding: 110px 20px 120px;
	background: var(--bd-navy) url(/wp-content/uploads/2022/02/DJI_0070_Badgers_Tennis_210828_.jpg) no-repeat center / cover;
}
.bd-touch__box { max-width: 645px; margin: 0 auto; padding: 80px 90px; background: rgba(33, 55, 69, .96); color: var(--bd-grey); text-align: center; }
.bd-touch h2 { margin-bottom: 25px; color: var(--bd-grey); font-size: 37px; line-height: 1.3; }
.bd-touch p { margin-bottom: 0; }
.bd-touch .bd-btn { min-width: 200px; margin-top: 40px; }

.bd-social { display: flex; justify-content: center; gap: 13px; list-style: none; margin: 25px 0 0; padding: 0; }
.bd-social a { display: block; padding: 3px; line-height: 0; transition: color .2s, transform .2s; }
.bd-social a:hover { transform: translateY(-2px); }
.bd-social svg { width: 30px; height: 30px; fill: currentColor; }
.bd-social--light a { color: var(--bd-grey); }
.bd-social--light a:hover { color: #fff; }
.bd-social--dark a { color: var(--bd-teal); }
.bd-social--muted svg { width: 20px; height: 20px; }
.bd-social--muted a { color: var(--bd-grey-text); }

.bd-footer { padding: 40px 20px 80px; background: var(--bd-grey); color: var(--bd-grey-text); text-align: center; font-size: 17px; }
.bd-footer p { margin: 0 auto 20px; max-width: 640px; }
.bd-logo--footer { display: inline-block; margin: 20px 0 30px; }
.bd-logo--footer img { width: 150px; filter: grayscale(1); opacity: .6; }
.bd-footer a { color: var(--bd-grey-text); }
.bd-footer .bd-social { margin: 0 0 25px; }
.bd-footer__nav { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; margin: 0; padding: 0; font-size: 18px; line-height: 1; }
.bd-footer__nav li { margin: 0 0 10px; }
.bd-footer__nav li:not(:last-child) { border-right: 1px solid currentColor; }
.bd-footer__nav a { display: block; padding: 6px 15px; text-decoration: none; }
.bd-footer__nav a:hover, .bd-footer__nav .current-menu-item a { color: var(--bd-teal); }

/* ---------- tablet ---------- */
@media (max-width: 1279px) {
	.bd-banner::before { width: 246px; height: 246px; left: 45%; }
	.bd-card > :not(.wp-block-image) { margin-left: 25px; margin-right: 25px; }
}
@media (max-width: 1024px) {
	:root { --bd-pad: 20px; }
	h1, .bd-touch h2 { font-size: 32px; }
	.bd-hero-video video { height: 400px; }
	.bd-banner { padding-right: 40%; background-size: 65% auto; }
	.bd-banner::before { width: 214px; height: 214px; left: 35%; }
	.bd-grid--banners { gap: 20px; }
	.bd-banner .bd-banner__icon img { width: 80px; height: 80px; }
}

/* ---------- mobile ---------- */
@media (max-width: 767px) {
	body { font-size: 16px; }
	h1, .bd-touch h2 { font-size: 27px; }
	.bd-section, .bd-content > .wp-block-group, .bd-content > .wp-block-table, .bd-content > .wp-block-columns { padding-top: 40px; padding-bottom: 40px; }
	.bd-content > .wp-block-group + .wp-block-group { padding-top: 10px; }
	.bd-content > :last-child { padding-bottom: 50px; }
	.bd-content > .bd-hero-video + .wp-block-group { padding-top: 30px; padding-bottom: 10px; }
	.bd-grid { gap: 20px; }
	.bd-grid--banners { grid-template-columns: 1fr; gap: 20px; }
	.bd-banner { min-height: 185px; padding: 6px 140px 15px 10px; background-size: 55% auto; }
	.bd-banner::before { width: 195px; height: 195px; left: 45%; }
	.bd-banner .bd-banner__icon img { width: 70px; height: 70px; }
	.bd-banner h3 { font-size: 19px; margin-bottom: 10px; }
	.bd-banner p { font-size: 15px; line-height: 1.4; }
	.bd-card > :not(.wp-block-image) { margin-left: 20px; margin-right: 20px; }
	.bd-card > :not(.wp-block-image):first-child, .bd-card > .wp-block-image + * { margin-top: 25px; }
	.bd-card > :last-child:not(.wp-block-image) { margin-bottom: 30px; }
	.bd-card .wp-block-buttons { display: grid; grid-template-columns: 1fr 1fr; }
	.bd-card .wp-block-button__link { min-width: 0; width: 100%; }
	.bd-card--side { grid-template-columns: 1fr; }
	.bd-card--side > .wp-block-image { grid-row: auto; margin-bottom: 20px; }
	.bd-card--side > .wp-block-image img { aspect-ratio: 4 / 3; }
	.bd-card--side > :not(.wp-block-image) { grid-column: 1; }
	.bd-card--cta > .wp-block-image img { height: 140px; }
	.wp-block-button__link, .bd-btn { min-width: 0; }
	.bd-content .wp-block-buttons > .wp-block-button { flex: 1 1 100%; }
	.bd-content .wp-block-buttons > .wp-block-button .wp-block-button__link { width: 100%; }
	.bd-testimonial { padding: 30px 24px; }
	.bd-table th, .bd-table td { padding: 10px; font-size: 16px; }
	.bd-gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
	.bd-bg-rackets::before { width: 200px; height: 162px; top: 10px; opacity: .8; }
	.bd-touch { padding: 120px 20px; }
	.bd-touch__box { padding: 50px 20px; }
	.bd-touch .bd-btn { width: 100%; max-width: 360px; }
	.bd-footer { font-size: 14px; }
	.bd-footer__nav { font-size: 14px; }
	.bd-footer__nav li { margin-bottom: 14px; }
	.bd-footer__nav a { padding: 4px 12px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- block editor ---------- */
.editor-styles-wrapper { font-family: var(--bd-font); color: var(--bd-navy); }
.editor-styles-wrapper .wp-block-group.bd-section { padding: 30px 0; }
.editor-styles-wrapper .bd-hero-video video { height: 300px; }

/* ---------- overrides for WordPress's constrained-layout margins (margin-inline: auto !important) ---------- */
.bd-card.is-layout-constrained > * { margin-left: 30px !important; margin-right: 30px !important; align-self: stretch; }
.bd-card.is-layout-constrained > .wp-block-image { margin-left: 0 !important; margin-right: 0 !important; }
.bd-card--side.is-layout-constrained > * { margin-left: 0 !important; margin-right: 0 !important; }
.bd-card .wp-block-buttons { justify-content: flex-start; }
@media (max-width: 1279px) { .bd-card.is-layout-constrained > :not(.wp-block-image) { margin-left: 25px !important; margin-right: 25px !important; } }
@media (max-width: 767px) { .bd-card.is-layout-constrained > :not(.wp-block-image) { margin-left: 20px !important; margin-right: 20px !important; } .bd-card--side.is-layout-constrained > * { margin-left: 0 !important; margin-right: 0 !important; } }

/* space after the logo band, as live */
.bd-content > .bd-band + .wp-block-group { padding-top: 60px; padding-bottom: 60px; }
@media (max-width: 767px) { .bd-content > .bd-band + .wp-block-group { padding-top: 40px; padding-bottom: 40px; } }

/* banner angle always reaches the bottom edge */
.bd-banner::before { top: 0; bottom: 0; height: auto; width: auto; aspect-ratio: 1; }
@media (max-width: 1279px) { .bd-banner::before { width: auto; height: auto; } }
@media (max-width: 1024px) { .bd-banner::before { width: auto; height: auto; } }
@media (max-width: 767px) { .bd-banner::before { width: auto; height: auto; } }

/* mobile menu: menu items spread down the screen with dividers, button and socials at the foot */
.bd-mobile { justify-content: flex-start; padding: 8px 24px calc(28px + env(safe-area-inset-bottom)); text-align: left; align-items: stretch; }
.bd-mobile nav { flex: 1 0 auto; }
.bd-mobile__list { margin: 0; border-top: 1px solid #E4E4E4; }
.bd-mobile__list li { border-bottom: 1px solid #E4E4E4; }
.bd-mobile__list a {
	display: flex; align-items: center; justify-content: space-between;
	padding: 15px 2px; font-size: 20px; line-height: 1.2;
}
.bd-mobile__list a::after { content: "\203A"; font-weight: 400; font-size: 26px; line-height: 1; color: #B8B8B8; }
.bd-mobile__list .current-menu-item > a { text-decoration: none; }
.bd-mobile__list .current-menu-item > a::after { color: var(--bd-teal); }
.bd-mobile__foot { flex: none; padding-top: 24px; text-align: center; }
.bd-mobile .bd-btn { display: block; width: 100%; max-width: none; }
.bd-mobile hr { display: none; }
.bd-mobile .bd-social { margin-top: 20px; }
@media (max-height: 640px) { .bd-mobile__list a { padding: 11px 2px; font-size: 18px; } }

/* =====================================================================
   Inner-page layouts, measured from live 02/12/2026 (1440px / 390px)
   ===================================================================== */

/* section rhythm (home keeps its own spacing above) */
body:not(.home) .bd-content > .bd-section { padding: 100px var(--bd-pad) 110px; }
body:not(.home) .bd-content > .bd-section:first-child { padding-top: 105px; }
body:not(.home) .bd-content > .bd-grey:first-child, body:not(.home) .bd-content > .bd-bg-rackets:first-child { padding-top: 115px; }
body:not(.home) .bd-content > .bd-halves + .bd-section { padding-top: 120px; padding-bottom: 130px; }
.bd-content .bd-section > .wp-block-heading:first-child + .wp-block-paragraph { margin-top: 0; }

/* full-width grey band */
.bd-content > .bd-grey { max-width: none; background-color: var(--bd-grey); }

/* racket watermark as a section background (live: bg-icon.png, natural size, 21% 50%) */
.bd-content .bd-bg-rackets::before { display: none; }
.bd-content .bd-section.bd-bg-rackets { background-image: url(../img/bg-rackets.png); background-repeat: no-repeat; background-position: 21% 50%; }
.bd-content .bd-section.bd-bg-rackets:not(:first-child) { background-position: 84% 100%; }

/* content widths from Elementor */
.bd-w-580 > *, .bd-w-600 > * { max-width: 600px !important; }
.bd-w-645 > * { max-width: 645px !important; }
.bd-w-780 > *, .bd-w-800 > * { max-width: 800px !important; }
.bd-w-988 > * { max-width: 968px !important; }
.bd-content p.has-text-align-center.is-style-lead { max-width: 580px; margin-left: auto !important; margin-right: auto !important; }
.bd-content .wp-block-heading.has-text-align-center + p.has-text-align-center.is-style-lead { margin-top: -2px; }

/* --- halves: text on grey, photo to the screen edge (About, hero of Memberships/Coaching/Venue Hire) --- */
.bd-content > .bd-halves { max-width: none; padding: 0 !important; background: var(--bd-grey); }
.bd-halves > .bd-halves__cols { max-width: none !important; margin: 0 !important; gap: 0; align-items: stretch; }
.bd-halves__cols > .wp-block-column { flex: 1 1 50%; min-width: 0; }
.bd-halves__text {
	display: flex; flex-direction: column; justify-content: center;
	padding: 100px 40px 100px max(20px, calc(50vw - 601px));
	background: url(../img/bg-rackets.png) no-repeat right -168px top 60%;
}
.bd-halves__text > * { max-width: 496px; }
.bd-halves__text--short > * { max-width: 380px; }
.bd-halves--image-left .bd-halves__text { padding: 85px max(20px, calc(50vw - 601px)) 85px 105px; background: none; }
.bd-halves__text > .wp-block-heading:first-child { margin-top: 0; }
.bd-halves__text h2 { margin-bottom: 25px; }
.bd-halves__image { position: relative; min-height: 560px; }
.bd-halves__image > .wp-block-image { position: absolute; inset: 0; margin: 0 !important; }
.bd-halves__image > .wp-block-image img { width: 100%; height: 100%; object-fit: cover; }
.bd-halves .wp-block-buttons { margin-top: 25px; }

/* --- call-to-action cards on a grey band: white cards, tall photo, filled button --- */
.bd-grid.bd-grid--cta { grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 20px; }
.bd-grid.bd-grid--cta.bd-grid--n2 { grid-template-columns: repeat(2, 1fr); }
.bd-card.bd-card--cta { background: #fff; }
.bd-card.bd-card--cta > .wp-block-image img { height: 272px; aspect-ratio: auto; object-position: 50% 30%; }
.bd-card.bd-card--cta.is-layout-constrained > :not(.wp-block-image) { margin-left: 25px !important; margin-right: 25px !important; }
.bd-card.bd-card--cta > .wp-block-image + * { margin-top: 30px; }
.bd-card.bd-card--cta > :last-child { margin-bottom: 40px; }
.bd-card--cta h3 { font-size: 21px; margin-bottom: 25px; }
.bd-card--cta h3 a { color: var(--bd-navy); }
.bd-card--cta .wp-block-button__link { min-width: 200px; padding: .94em; font-size: 18px; }
.bd-card--cta .wp-block-buttons { margin-top: auto; }

/* --- plain cards (coaching sessions): two columns, grey, centred --- */
.bd-grid.bd-grid--two { grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 20px; }
.bd-card.bd-card--plain { justify-content: center; text-align: center; padding: 50px 0 55px; }
.bd-card--plain h3, .bd-card--plain h4 { font-size: 19px; margin-bottom: 12px; }
.bd-card--plain p { margin-bottom: 0; }

/* --- bios: photo left, text on a grey panel, centred vertically --- */
.bd-grid:has(> .bd-card--side) { grid-template-columns: 1fr; gap: 20px; margin-top: 20px; }
.bd-card.bd-card--side {
	display: grid; grid-template-columns: 327px 1fr; grid-template-rows: 1fr repeat(6, auto) 1fr;
	column-gap: 35px; background: var(--bd-grey);
}
.bd-card--side > .wp-block-image { grid-column: 1; grid-row: 1 / -1; align-self: stretch; }
.bd-card--side > .wp-block-image img { width: 100%; height: 100%; min-height: 420px; aspect-ratio: auto; object-fit: cover; object-position: 50% 20%; }
.bd-card--side > .wp-block-image + * { grid-row: 2; }
.bd-card--side > :not(.wp-block-image) { grid-column: 2; }
.bd-card.bd-card--side.is-layout-constrained > :not(.wp-block-image) { margin: 0 30px 12px 0 !important; }
.bd-card--side h3, .bd-card--side h4 { font-size: 19px; }

/* --- testimonials (Venue Hire) --- */
.bd-testimonials .bd-grid--quotes { grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 50px; }
.bd-testimonials .bd-testimonial { padding: 45px; margin: 0 12px 24px !important; }
.bd-testimonials .wp-block-buttons { margin-top: 10px; }

/* --- contact page --- */
.bd-split > .bd-panel { background: var(--bd-grey); align-self: stretch; padding-bottom: 30px; }
.bd-panel > .wp-block-image img { width: 100%; height: auto; }
.bd-panel > :not(.wp-block-image) { margin-left: 30px !important; margin-right: 30px !important; }
.bd-panel .wp-block-button__link { min-width: 0; padding: 15px 22px; font-size: 16px; }
.bd-split > .bd-bg-rackets { background: url(../img/bg-rackets.png) no-repeat 80% 97% / 200px auto; padding-bottom: 60px; }
.bd-content .bd-split { align-items: flex-start; gap: 60px; }
.bd-contact-list { margin-top: 30px; }
.bd-contact-list li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.bd-contact-list li::before {
	content: ""; position: absolute; left: 0; top: .3em; width: 15px; height: 15px; background: var(--bd-teal);
	-webkit-mask: var(--bd-ico) no-repeat center / contain; mask: var(--bd-ico) no-repeat center / contain;
}
.bd-contact-list a { text-decoration: none; }
.bd-contact-list a:hover { text-decoration: underline; }
.bd-ico-facebook { --bd-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M400 32H48A48 48 0 0 0 0 80v352a48 48 0 0 0 48 48h137.3V327.7h-63V256h63v-54.6c0-62.2 37-96.5 93.7-96.5 27.1 0 55.5 4.8 55.5 4.8v61h-31.3c-30.8 0-40.4 19.1-40.4 38.7V256h68.8l-11 71.7h-57.8V480H400a48 48 0 0 0 48-48V80a48 48 0 0 0-48-48z'/%3E%3C/svg%3E"); }
.bd-ico-email { --bd-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z'/%3E%3C/svg%3E"); }
.bd-ico-phone { --bd-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M400 32H48A48 48 0 0 0 0 80v352a48 48 0 0 0 48 48h352a48 48 0 0 0 48-48V80a48 48 0 0 0-48-48zM94 416a14 14 0 0 1-13.6-10.9l-15-65a14 14 0 0 1 8.1-16l70-30a14 14 0 0 1 16.3 4l31 37.9a216.3 216.3 0 0 0 103.4-103.4l-37.9-31a14 14 0 0 1-4-16.3l30-70a14 14 0 0 1 16-8.1l65 15A14 14 0 0 1 384 136c0 154.9-125.3 280-280 280z'/%3E%3C/svg%3E"); }
.bd-ico-map { --bd-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M172.3 501.7C27 291 0 269.4 0 192 0 86 86 0 192 0s192 86 192 192c0 77.4-27 99-172.3 309.7a24 24 0 0 1-39.4 0zM192 272a80 80 0 1 0 0-160 80 80 0 0 0 0 160z'/%3E%3C/svg%3E"); }
.page-id-23 .fluentform .ff-el-group { margin-bottom: 25px; }
.page-id-23 .fluentform .ff-btn-submit { background: var(--bd-teal) !important; color: #fff !important; border: 2px solid var(--bd-teal) !important; padding: 15px 17px !important; font: 400 16px/1 var(--bd-font) !important; min-width: 0 !important; width: auto !important; }
.page-id-23 .fluentform .ff_submit_btn_wrapper { text-align: left !important; }

/* full-width map */
.bd-content > .bd-full { max-width: none; padding: 0 !important; }
.bd-full > * { max-width: none !important; margin: 0 !important; }
.bd-map iframe { display: block; width: 100%; height: 500px; border: 0; }

/* tables sit a little lower under their intro */
.bd-section .wp-block-table { margin-top: 20px; }

/* header: live's thin underline on the current page */
.bd-nav__list > li > a { background-size: 0 1.5px; }
.bd-nav__list > li > a:hover, .bd-nav__list > .current-menu-item > a, .bd-nav__list > .current-menu-ancestor > a, .bd-nav__list > .current-menu-parent > a { background-size: 100% 1.5px; }

/* ---------- tablet / mobile for the layouts above ---------- */
@media (max-width: 1024px) {
	.bd-grid.bd-grid--cta { grid-template-columns: repeat(2, 1fr); gap: 24px; }
	.bd-halves__text { padding: 70px 30px 70px 20px; }
	.bd-halves--image-left .bd-halves__text { padding: 70px 20px 70px 40px; }
	.bd-card.bd-card--side { grid-template-columns: 240px 1fr; }
}
@media (max-width: 767px) {
	body:not(.home) .bd-content > .bd-section, body:not(.home) .bd-content > .bd-section:first-child { padding: 50px 20px 60px; }
	body:not(.home) .bd-content > .bd-halves + .bd-section { padding-top: 50px; padding-bottom: 60px; }
	.bd-content .bd-section.bd-bg-rackets { background-size: 200px auto; background-position: 100% 0; }
	/* halves: photo first, then the text on grey (as live) */
	.bd-halves > .bd-halves__cols { flex-direction: column; }
	.bd-halves__image { order: -1; min-height: 0; }
	.bd-halves__image > .wp-block-image { position: static; }
	.bd-halves__image > .wp-block-image img { height: auto; aspect-ratio: 4 / 3; }
	.bd-halves__text, .bd-halves--image-left .bd-halves__text { padding: 40px 20px 50px; background: none; }
	.bd-halves__text > *, .bd-halves__text--short > * { max-width: none; }
	.bd-grid.bd-grid--cta, .bd-grid.bd-grid--cta.bd-grid--n2, .bd-grid.bd-grid--two { grid-template-columns: 1fr; gap: 20px; }
	.bd-card.bd-card--cta > .wp-block-image img { height: 220px; }
	.bd-card.bd-card--plain { padding: 35px 15px 40px; }
	.bd-card.bd-card--side { grid-template-columns: 1fr; grid-template-rows: none; }
	.bd-card--side > .wp-block-image { grid-row: auto; }
	.bd-card--side > .wp-block-image img { min-height: 0; height: auto; aspect-ratio: 4 / 3; }
	.bd-card--side > .wp-block-image + * { grid-row: auto; margin-top: 25px !important; }
	.bd-card--side > :not(.wp-block-image) { grid-column: 1; }
	.bd-card.bd-card--side.is-layout-constrained > :not(.wp-block-image) { margin: 0 20px 12px !important; }
	.bd-card--side > :last-child { margin-bottom: 30px !important; }
	.bd-testimonials .bd-grid--quotes { grid-template-columns: 1fr; margin-top: 30px; }
	.bd-testimonials .bd-testimonial { margin: 0 0 20px !important; padding: 30px 24px; }
	.bd-content .bd-split { gap: 30px; }
	.bd-split > .bd-bg-rackets { background-size: 150px auto; }
	.bd-map iframe { height: 400px; }
}

/* contact form: smaller labels, space under the intro line (Tom, 02/12) */
.page-id-23 .bd-split .fluentform { margin-top: 35px; }
.page-id-23 .fluentform .ff-el-input--label label { font-size: 14px; font-weight: 700; letter-spacing: .01em; color: var(--bd-navy); }
.page-id-23 .fluentform .ff-el-input--label { margin-bottom: 6px; }
.page-id-23 .fluentform .ff-el-is-required.asterisk-right label::after { font-size: 13px; }

/* equal columns: WordPress core sets flex-basis 0 / grow by content; force true halves */
.bd-halves__cols > .wp-block-column, .bd-content .bd-split > .wp-block-column { flex: 1 1 0 !important; min-width: 0; }
@media (max-width: 767px) { .bd-halves__cols > .wp-block-column, .bd-content .bd-split > .wp-block-column { flex: 1 1 auto !important; } }

/* bios: photo beside a text block on grey, text centred vertically (live) */
.bd-card.bd-card--side { display: flex; flex-direction: row; align-items: center; gap: 35px; background: var(--bd-grey); grid-template-columns: none; grid-template-rows: none; }
.bd-card.bd-card--side.is-layout-constrained > * { margin: 0 !important; max-width: none !important; }
.bd-card--side > .wp-block-image { flex: 0 0 327px; align-self: stretch; grid-row: auto; }
.bd-card--side > .wp-block-image img { width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; object-fit: cover; object-position: 50% 20%; }
.bd-card--side > .bd-card__body { flex: 1 1 auto; padding: 30px 30px 30px 0; }
.bd-card__body > * { margin-left: 0 !important; margin-right: 0 !important; max-width: none !important; }
.bd-card__body h3, .bd-card__body h4 { font-size: 19px; margin-bottom: 10px; }
.bd-card__body p { margin-bottom: 12px; }
@media (max-width: 767px) {
	.bd-card.bd-card--side { flex-direction: column; align-items: stretch; gap: 0; }
	.bd-card--side > .wp-block-image { flex: none; }
	.bd-card--side > .wp-block-image img { height: auto; aspect-ratio: 4 / 3; }
	.bd-card--side > .bd-card__body { padding: 25px 20px 30px; }
}
.bd-center > .wp-block-heading, .bd-center > p { text-align: center; }
.bd-center > .wp-block-buttons { justify-content: center; }
@media (max-width: 767px) {
	.bd-card--side > * { grid-row: auto !important; }
}

/* bios: the photo fills its side and never sizes the card (fixes the stretched-photo loop) */
.bd-card--side > .wp-block-image { position: relative; align-self: stretch; min-height: 480px; }
.bd-card--side > .wp-block-image img { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; }
@media (max-width: 767px) {
	.bd-card--side > .wp-block-image { min-height: 0; }
	.bd-card--side > .wp-block-image img { position: static; height: auto; aspect-ratio: 4 / 3; }
}

/* =====================================================================
   Vertical rhythm, measured on live (Coaching at 1440px):
   heading → intro 20px, intro → text 30px, text → cards/tables 50px.
   WordPress's layout CSS zeroes block margins, so set them explicitly.
   ===================================================================== */
.bd-content .bd-section > *, .bd-halves__text > *, .bd-split > .wp-block-column > *, .bd-card__body > * { margin-top: 0; margin-bottom: 0; }
.bd-content .bd-section > * + *, .bd-halves__text > * + *, .bd-split > .wp-block-column > * + * { margin-top: 20px !important; }
.bd-content .bd-section > p + p, .bd-halves__text > p + p,
.bd-content .bd-section > .is-style-lead + p { margin-top: 30px !important; }
.bd-content .bd-section > p + .bd-grid, .bd-content .bd-section > p + .wp-block-table, .bd-content .bd-section > p + .wp-block-gallery,
.bd-content .bd-section > p + .wp-block-shortcode, .bd-content .bd-section > p + .wp-block-details, .bd-content .bd-section > p + .wp-block-columns,
.bd-content .bd-section > .wp-block-heading + .bd-grid, .bd-content .bd-section > .wp-block-heading + .wp-block-table,
.bd-content .bd-section > .wp-block-heading + .wp-block-gallery, .bd-content .bd-section > .wp-block-heading + .wp-block-details { margin-top: 50px !important; }
.bd-content .bd-section > .bd-grid + .wp-block-buttons, .bd-content .bd-section > .wp-block-table + p,
.bd-content .bd-section > .bd-grid + p, .bd-content .bd-section > .wp-block-table + .wp-block-buttons { margin-top: 40px !important; }
.bd-content .bd-section > p + .wp-block-buttons, .bd-halves__text > p + .wp-block-buttons, .bd-halves__text > ul + .wp-block-buttons { margin-top: 30px !important; }
.bd-split > .wp-block-column > p + .wp-block-shortcode { margin-top: 35px !important; }
.bd-halves__text > .wp-block-heading + * { margin-top: 25px !important; }
.bd-halves__text > ul, .bd-halves__text > .wp-block-list { margin-top: 20px !important; }

/* cards: title → caption → button */
.bd-card > .wp-block-heading { margin-bottom: 0 !important; }
.bd-card > .wp-block-heading + p { margin-top: 15px !important; }
.bd-card > p + .wp-block-buttons { margin-top: 20px !important; }
.bd-card > .wp-block-heading + .wp-block-buttons { margin-top: 25px !important; }
.bd-card--cta .wp-block-buttons { margin-top: 20px !important; }
.bd-card__body > * + * { margin-top: 12px !important; }
.bd-card--plain > .wp-block-heading + p { margin-top: 12px !important; }

/* halves: exact 50/50 (padding inside the half, not added to it), wider text */
.bd-halves__cols > .wp-block-column { flex: 0 0 50% !important; max-width: 50%; box-sizing: border-box; }
.bd-halves__text > * { max-width: 530px; }
.bd-halves__text--short > * { max-width: 400px; }
.bd-halves--image-left .bd-halves__text { padding-left: 105px; padding-right: max(20px, calc(50vw - 601px)); }
@media (max-width: 1024px) { .bd-halves--image-left .bd-halves__text { padding-left: 40px; } }
@media (max-width: 767px) {
	.bd-halves__cols > .wp-block-column { flex: 1 1 auto !important; max-width: none; }
	.bd-halves--image-left .bd-halves__text { padding: 40px 20px 50px; }
}

/* first half-and-half section is the page hero: live height */
.bd-content > .bd-halves:first-child .bd-halves__image { min-height: 650px; }
.page-id-18 .bd-content > .bd-halves:first-child .bd-halves__image { min-height: 796px; }
@media (max-width: 767px) {
	.bd-content > .bd-halves:first-child .bd-halves__image, .page-id-18 .bd-content > .bd-halves:first-child .bd-halves__image { min-height: 0; }
	.bd-content .is-style-lead { font-size: 18px; }
	.page-id-23 .fluentform .ff-btn-submit { width: 100% !important; }
}

/* mobile menu: fits a 667px phone with the button in view */
.bd-mobile__list a { padding: 11px 2px; font-size: 19px; }
.bd-mobile__foot { padding-top: 18px; }
.bd-mobile .bd-social { margin-top: 14px; }

/* =====================================================================
   Mobile cards (Tom, 02/12): compact inline buttons, shorter photos,
   bios as centred portraits, lighter testimonials — as live at 390px
   ===================================================================== */
@media (max-width: 767px) {
	/* buttons inside cards: one line, sized to their text, side by side when there are two */
	.bd-content .bd-card .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
	.bd-content .bd-card .wp-block-buttons > .wp-block-button { flex: 0 0 auto; }
	.bd-content .bd-card .wp-block-buttons > .wp-block-button .wp-block-button__link {
		width: auto; min-width: 0; padding: 12px 16px; font-size: 15px; white-space: nowrap;
	}
	/* home "Tennis coaching" card: Adults / Juniors share the row equally, as live */
	.bd-content .bd-card .wp-block-buttons:has(> .wp-block-button + .wp-block-button) > .wp-block-button { flex: 1 1 0; }
	.bd-content .bd-card .wp-block-buttons:has(> .wp-block-button + .wp-block-button) .wp-block-button__link { width: 100%; }

	/* card photos: shorter, like live */
	.bd-card > .wp-block-image img { aspect-ratio: 2 / 1; }
	.bd-card.bd-card--cta > .wp-block-image img { height: auto; aspect-ratio: 2 / 1; }
	.bd-card > :not(.wp-block-image):first-child, .bd-card > .wp-block-image + * { margin-top: 22px !important; }
	.bd-card > :last-child:not(.wp-block-image) { margin-bottom: 26px !important; }
	.bd-card h3, .bd-card--cta h3 { font-size: 19px; }
	.bd-card--plain { padding: 30px 12px 34px !important; }

	/* bios: centred portrait photo, centred text, not full width */
	.bd-card.bd-card--side { background: var(--bd-grey); text-align: center; padding-top: 25px; }
	.bd-card--side > .wp-block-image { position: static; min-height: 0; width: 62%; max-width: 240px; margin: 0 auto !important; align-self: center; }
	.bd-card--side > .wp-block-image img { position: static; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
	.bd-card--side > .bd-card__body { padding: 20px 18px 28px; }

	/* testimonials */
	.bd-testimonials .bd-testimonial { padding: 26px 20px; font-size: 15px; line-height: 1.55; }
	.bd-testimonial::before { width: 32px; height: 32px; margin-bottom: 14px; }
	.bd-testimonial cite { margin-top: 14px; font-size: 15px; }

	/* page-level buttons stay full width (as live), but never wrap */
	.bd-content .bd-section > .wp-block-buttons .wp-block-button__link { white-space: nowrap; font-size: 16px; padding: 14px 16px; }
	.bd-content .bd-section > .wp-block-buttons { gap: 10px; }
}

/* centred sections: intro text centred too; cards keep their own alignment */
.bd-center > .wp-block-heading, .bd-center > p, .bd-center > .wp-block-list { text-align: center; }
.bd-center > .bd-grid { text-align: initial; }
@media (max-width: 767px) {
	.bd-grid.bd-grid--two { gap: 10px; }
	.bd-content .is-style-lead { font-size: 17px; }
	.bd-halves__text .is-style-lead { font-size: 16px; }
}

.bd-card--plain .wp-block-buttons { justify-content: center; }
@media (max-width: 767px) {
	.bd-halves__text, .bd-halves--image-left .bd-halves__text { padding: 30px 20px 36px; }
	body:not(.home) .bd-content > .bd-halves + .bd-section { padding-top: 40px; }
	.bd-content .bd-card--plain .wp-block-buttons { justify-content: center; }
}

/* card photos always fill the card width */
.bd-card > .wp-block-image img { width: 100% !important; max-width: none; }

/* outline buttons the same size as filled ones (WordPress core gives outline its own padding) */
.wp-block-button.is-style-outline > .wp-block-button__link { padding: .94em; border-width: 2px; }
.bd-card .wp-block-button.is-style-outline > .wp-block-button__link { padding: 15px; }
.bd-card--cta .wp-block-button.is-style-outline > .wp-block-button__link { padding: .94em; }
.bd-panel .wp-block-button.is-style-outline > .wp-block-button__link { padding: 15px 22px; }
.wp-block-buttons { align-items: stretch; }
@media (max-width: 767px) {
	.bd-content .bd-section > .wp-block-buttons .wp-block-button.is-style-outline > .wp-block-button__link { padding: 14px 16px; }
	.bd-content .bd-card .wp-block-buttons > .wp-block-button.is-style-outline .wp-block-button__link { padding: 12px 16px; }
}

/* linked card photos: WordPress makes the link inline-block, which shrinks the photo */
.bd-card > .wp-block-image > a, .bd-halves__image > .wp-block-image > a, .bd-split .wp-block-image > a { display: block; }
.bd-card > .wp-block-image > a > img { width: 100% !important; }

/* two buttons in a card (Adults / Juniors): equal size with a small gap, as live */
.bd-card .wp-block-buttons { gap: 10px; }
.bd-card .wp-block-buttons > .wp-block-button .wp-block-button__link { min-width: 140px; }

/* =====================================================================
   Grids and banners at every width (Tom, 02/12): one gap everywhere,
   no 2+1 orphans, safe page edges, banner text never over the photo
   ===================================================================== */
:root { --bd-gap: 30px; }
@media (max-width: 1279px) { :root { --bd-pad: 24px; } }
@media (max-width: 767px) { :root { --bd-gap: 20px; --bd-pad: 20px; } }

.bd-content .bd-section { padding-left: var(--bd-pad) !important; padding-right: var(--bd-pad) !important; }
.bd-content > .bd-halves, .bd-content > .bd-full, .bd-content > .bd-hero-video { padding-left: 0 !important; padding-right: 0 !important; }
.bd-header__inner { padding-left: var(--bd-pad); padding-right: var(--bd-pad); }

/* columns: fixed counts so rows never break unevenly */
.bd-grid, .bd-grid.bd-grid--cta, .bd-grid.bd-grid--two, .bd-grid--banners, .bd-testimonials .bd-grid--quotes { gap: var(--bd-gap) !important; }
.bd-grid:not(.bd-grid--banners):not(.bd-grid--two):not(.bd-grid--quotes):not(.bd-grid--n2) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bd-grid:has(> .bd-card--side) { grid-template-columns: minmax(0, 1fr) !important; }
.bd-grid--banners, .bd-grid.bd-grid--two, .bd-grid.bd-grid--cta.bd-grid--n2, .bd-testimonials .bd-grid--quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bd-testimonials .bd-testimonial { margin: 0 !important; }
@media (max-width: 767px) {
	.bd-grid, .bd-grid:not(.bd-grid--banners):not(.bd-grid--two):not(.bd-grid--quotes):not(.bd-grid--n2),
	.bd-grid--banners, .bd-grid.bd-grid--two, .bd-grid.bd-grid--cta.bd-grid--n2, .bd-testimonials .bd-grid--quotes { grid-template-columns: minmax(0, 1fr); }
}

/* homepage: banners and cards read as one block with the same gap between rows */
.home .bd-content > .wp-block-group:has(> .bd-grid--banners) { padding-bottom: 0 !important; }
.home .bd-content > .wp-block-group:has(> .bd-grid--banners) + .wp-block-group { padding-top: var(--bd-gap) !important; }

/* banners: photo always fills the right half, angled edge always reaches the bottom, text stays left of it */
.bd-banner { background-image: none !important; padding: 18px calc(50% + 14px) 30px 24px !important; min-height: 240px; }
.bd-banner::after { display: block !important; content: ""; position: absolute; z-index: 0; top: 0; right: 0; bottom: 0; width: 50%; background: var(--bd-photo) no-repeat center / cover; }
.bd-banner--yellow { --bd-photo: url(/wp-content/uploads/2021/12/Court-Bookings-bg.jpg); }
.bd-banner--green { --bd-photo: url(/wp-content/uploads/2021/12/Memberships-bg.jpg); }
.bd-banner::before { z-index: 1; top: 0; bottom: 0; left: 50%; height: auto !important; width: auto !important; aspect-ratio: 1 / 2; transform: translateX(-50%); background-size: 100% 100%; }
.bd-banner > * { z-index: 2; }
.bd-banner h3 { font-size: clamp(18px, 1.6vw, 21px); }
.bd-banner p { font-size: clamp(15px, 1.3vw, 17px); line-height: 1.45; }
.bd-banner .bd-banner__icon img { width: clamp(56px, 7vw, 115px); height: clamp(56px, 7vw, 115px); }
@media (max-width: 767px) {
	.bd-banner { min-height: 190px; padding: 12px calc(50% + 8px) 18px 14px !important; }
}

/* two buttons in a card always share one row, at any width */
.bd-card .wp-block-buttons:has(> .wp-block-button + .wp-block-button) { flex-wrap: nowrap; }
.bd-card .wp-block-buttons:has(> .wp-block-button + .wp-block-button) > .wp-block-button { flex: 1 1 0; min-width: 0; max-width: 150px; }
.bd-card .wp-block-buttons:has(> .wp-block-button + .wp-block-button) .wp-block-button__link { width: 100%; min-width: 0 !important; padding-left: 8px !important; padding-right: 8px !important; }
@media (max-width: 767px) { .bd-card .wp-block-buttons:has(> .wp-block-button + .wp-block-button) > .wp-block-button { max-width: none; } }

/* card buttons never wrap their label; smaller in narrow three-column cards */
.bd-card .wp-block-button__link { white-space: nowrap; }
@media (max-width: 1100px) and (min-width: 768px) {
	.bd-card--cta .wp-block-button__link, .bd-card--cta .wp-block-button.is-style-outline > .wp-block-button__link { min-width: 0; padding: 12px 14px; font-size: 15px; }
	.bd-card.bd-card--cta.is-layout-constrained > :not(.wp-block-image) { margin-left: 20px !important; margin-right: 20px !important; }
	.bd-card--cta h3 { font-size: 19px; }
}

/* banner angle: the triangle stretches to the full banner height at every width (SVG told not to keep its own proportions) */
.bd-banner::before { aspect-ratio: 1 / 1; background-size: 100% 100% !important; }
.bd-banner--yellow::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 238 238' preserveAspectRatio='none'%3E%3Cpath fill='%23F6CC42' d='M119.5 0l119 238H.5z'/%3E%3C/svg%3E") !important; }
.bd-banner--green::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 238 238' preserveAspectRatio='none'%3E%3Cpath fill='%23213745' d='M119.5 0l119 238H.5z'/%3E%3C/svg%3E") !important; }
@media (max-width: 440px) { .bd-banner h3 { font-size: 17px; white-space: nowrap; } }

/* =====================================================================
   Members Area: sections that open, document lists with a PDF marker
   ===================================================================== */
.bd-members > * { max-width: 860px !important; }
.bd-members > p { margin-bottom: 10px; }
.bd-members .wp-block-details { margin: 0 0 12px !important; background: var(--bd-grey); border-left: 4px solid var(--bd-teal); }
.bd-members .wp-block-details + .wp-block-details { margin-top: 0 !important; }
.bd-members .wp-block-details summary {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 18px 22px; list-style: none; font-size: 19px; font-weight: 700; color: var(--bd-teal); cursor: pointer;
}
.bd-members .wp-block-details summary::-webkit-details-marker { display: none; }
.bd-members .wp-block-details summary::after { content: "+"; font-size: 26px; font-weight: 400; line-height: 1; }
.bd-members .wp-block-details[open] summary::after { content: "–"; }
.bd-members .wp-block-details > :not(summary) { margin: 0 22px !important; }
.bd-members .wp-block-details > :last-child { padding-bottom: 22px; }
.bd-members .wp-block-details h3 { margin: 18px 22px 8px !important; font-size: 16px; letter-spacing: .04em; color: var(--bd-grey-text); }
.bd-members .wp-block-details h3:first-of-type { margin-top: 4px !important; }
.bd-docs { list-style: none; padding: 0 !important; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 6px 24px; }
.bd-docs li { margin: 0; }
.bd-docs a {
	display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: #fff;
	color: var(--bd-navy); text-decoration: none; font-size: 16px; line-height: 1.35;
}
.bd-docs a::before {
	content: "PDF"; flex: none; padding: 2px 5px; border: 1px solid var(--bd-teal);
	font: 700 10px/1.2 var(--bd-font); letter-spacing: .05em; color: var(--bd-teal);
}
.bd-docs a:hover { background: var(--bd-teal); color: #fff; }
.bd-docs a:hover::before { border-color: #fff; color: #fff; }
@media (max-width: 767px) {
	.bd-members .wp-block-details summary { padding: 16px; font-size: 17px; }
	.bd-members .wp-block-details > :not(summary) { margin: 0 14px !important; }
	.bd-members .wp-block-details h3 { margin: 14px 14px 6px !important; }
}
.bd-members .wp-block-details { margin: 0 auto 12px !important; }
.bd-members .wp-block-details[open] { padding-bottom: 6px; }

/* Members Area: latest three documents, then the full sections (all closed) */
.bd-members > h2 { margin: 36px auto 14px !important; font-size: 21px; }
.bd-members > p + h2 { margin-top: 26px !important; }
.bd-docs--latest { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 4px !important; }
.bd-docs--latest a { height: 100%; padding: 16px 14px; background: var(--bd-grey); border-left: 4px solid var(--bd-yellow); font-weight: 700; font-size: 16px; }
.bd-docs--latest a:hover { border-left-color: var(--bd-teal); }
@media (max-width: 767px) { .bd-docs--latest { grid-template-columns: minmax(0, 1fr); } }
.bd-docs--latest a { flex-wrap: wrap; align-content: flex-start; row-gap: 4px; }
.bd-docs--latest a::before { display: none; }
.bd-docs__kind { flex: 0 0 100%; font-size: 13px; font-weight: 400; color: var(--bd-grey-text); }
.bd-docs--latest a:hover .bd-docs__kind { color: #fff; }
.bd-content .bd-section.bd-members > h2 + .wp-block-details, .bd-content .bd-section.bd-members > .bd-docs--latest + h2 { margin-top: 26px !important; }
.bd-content .bd-section.bd-members > h2 + .wp-block-details { margin-top: 14px !important; }
