/*
Theme Name: JKD Family
Template: qmd-base
Author: Qurrent Media Designs
Author URI: https://qurrentmediadesigns.com/
Description: Child theme of QMD Base for Kabayama Bushidokan (jkdfamily.ca). Holds only what this site needs beyond the base.
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 8.1
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jkd-theme
*/

/*
 * Kabayama Bushidokan. Design direction: PROJECT.md. Decisions K-005, K-006.
 * Pink is an accent only: the blossoms, the event strip, hover states.
 */

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

/*
 * THE HEADER, every page: thin and black, the mon left linking home, the menu in a row.
 */
.jkd-header {
	padding-top: 8px;
	padding-bottom: 8px;
}

.jkd-mon {
	display: block;
	line-height: 0;
}

.jkd-mon img {
	width: 44px;
	height: 44px;
}

.jkd-header .wp-block-navigation {
	font-size: 0.9rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	gap: 1.75rem;
}

/*
 * Wider than a phone: the mon at the window's left edge whatever the width, the menu centred
 * on the window (Gillian, 2026-11-23). The empty third column balances the mon so the menu's
 * centre is the window's centre.
 */
@media (min-width: 601px) {
	.jkd-header {
		padding-left: 24px;
		padding-right: 24px;
	}

	.jkd-header > .wp-block-group {
		display: grid;
		grid-template-columns: 1fr auto 1fr;
		max-width: none;
		width: 100%;
	}

	.jkd-header .wp-block-navigation {
		justify-self: center;
	}
}

.jkd-header .wp-block-navigation a:hover,
.jkd-header .wp-block-navigation a:focus {
	color: var(--wp--preset--color--pink-dark);
}

/*
 * THE BANDS. Black and white alternate, with the live site's paint strokes between them.
 * The stroke is a mask, so one picture draws it in any colour. A band's bottom edge is drawn
 * in the colour of the band below it, set by --jkd-next (white unless a page says otherwise).
 */
.jkd-band {
	position: relative;
}

.jkd-band--black {
	background: var(--wp--preset--color--dark);
	color: var(--wp--preset--color--light);
}

.jkd-band--white {
	background: var(--wp--preset--color--light);
	color: var(--wp--preset--color--dark);
}

.jkd-band--black::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	aspect-ratio: 2600 / 85;
	background: var(--jkd-next, var(--wp--preset--color--light));
	-webkit-mask: url("assets/images/paint-top.png") center bottom / 100% 100% no-repeat;
	mask: url("assets/images/paint-top.png") center bottom / 100% 100% no-repeat;
	pointer-events: none;
}

/*
 * THE HERO, home page: the artwork centred on black, sized to fit the screen's height so the
 * page below still shows. Size to be judged on screen (K-005).
 */
.jkd-hero {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	/* 3.3vw is the paint stroke's height at the bottom of the band. */
	padding: 64px 16px calc(64px + 3.3vw);
}

/*
 * On a phone the hero fills the first screen: the page opens on black, with no paint stroke or
 * white showing until you scroll (Gillian, 2026-11-23). 60px is the header; the stroke's height
 * is added so the stroke starts just below the screen. The artwork sits a little below the
 * middle, from the larger top padding. svh is the screen with the browser's bars showing.
 */
@media (max-width: 600px) {
	.jkd-hero {
		min-height: calc(100vh - 60px + 3.3vw);
		min-height: calc(100svh - 60px + 3.3vw);
		padding-top: 10vh;
		padding-bottom: calc(4vh + 3.3vw);
	}
}

.jkd-hero__art {
	display: block;
	width: auto;
	height: auto;
	/* Narrow enough that the shift below never pushes it past the screen's edge. */
	max-width: 92%;
	max-height: min(64vh, 600px);
	/*
	 * The blossoms are not symmetrical, so centring the picture leaves the name left of
	 * centre. Measured on screen: the name sits about 3.6% of the picture's width to the left.
	 * A percentage of its own width, so it holds at every size.
	 */
	transform: translateX(3.6%);
}

/* The block gap would put white space between the header, hero and first band. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/*
 * FALLING PETALS in the home hero (assets/js/petals.js). Two layers, clipped to the hero:
 * behind the artwork (darker pinks) and in front of it (lighter pinks), both under the paint
 * stroke. The fall and the breeze are animated by the script, a new random path each time;
 * the flutter is here. The shape is Gillian's petal PNG used as a mask, filled with its tone.
 */
.jkd-hero {
	overflow: hidden;
}

.jkd-hero__art {
	position: relative;
	z-index: 1;
}

.jkd-hero::after {
	z-index: 3;
}

.jkd-petals {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.jkd-petals--front {
	z-index: 2;
}

.jkd-petal {
	position: absolute;
	top: -60px;
}

.jkd-petal > span,
.jkd-petal > span > span {
	display: block;
}

.jkd-petal__shape {
	display: block;
	width: var(--size);
	aspect-ratio: var(--ratio);
	background: var(--tone);
	-webkit-mask: var(--shape) center / contain no-repeat;
	mask: var(--shape) center / contain no-repeat;
	animation: jkd-sway var(--sway) ease-in-out infinite alternate;
}

@keyframes jkd-sway {
	from {
		transform: translateX(-8px) rotate(-20deg);
	}
	to {
		transform: translateX(8px) rotate(40deg);
	}
}

.jkd-hero.is-paused .jkd-petal__shape {
	animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
	.jkd-petals {
		display: none;
	}
}

/*
 * THE EVENT STRIP (K-007): the base announcement, only while its dates are on. It sits behind
 * the hero's black brush edge, which stays as it is, and ends in its own pink brush edge over
 * the white band below. Square poster of fixed size beside the words; cropped from the centre
 * if Makoto's picture is another shape, and clicked to see it whole.
 */
.jkd-hero:has(+ .qmd-announcement) {
	--jkd-next: var(--wp--preset--color--pink-dark);
}

body .qmd-announcement {
	position: relative;
	padding: 28px 16px calc(32px + 3.3vw);
	background: var(--wp--preset--color--pink-dark);
	color: var(--wp--preset--color--light);
}

body .qmd-announcement::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	aspect-ratio: 2600 / 85;
	background: var(--wp--preset--color--light);
	-webkit-mask: url("assets/images/paint-top.png") center bottom / 100% 100% no-repeat;
	mask: url("assets/images/paint-top.png") center bottom / 100% 100% no-repeat;
	pointer-events: none;
}

body .qmd-announcement__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 28px;
	max-width: 860px;
	padding: 0;
	border: 0;
	border-radius: 0;
	text-align: left;
}

.jkd-poster {
	flex: none;
	display: block;
	width: 200px;
	cursor: zoom-in;
}

.jkd-poster .qmd-announcement__image {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	object-position: center;
	margin: 0;
}

.jkd-announcement__words {
	min-width: 0;
}

body .qmd-announcement__heading {
	color: var(--wp--preset--color--light);
	font-size: clamp(1.3rem, 2.4vw, 1.7rem);
}

body .qmd-announcement__text {
	max-width: 36em;
	margin: 8px 0 0;
}

body .qmd-announcement__text a {
	color: inherit;
}

body .qmd-announcement .wp-block-buttons {
	justify-content: flex-start;
	margin-top: 14px;
}

body .qmd-announcement .wp-block-button__link {
	padding: 9px 22px;
	border: 1px solid var(--wp--preset--color--light);
	border-radius: 4px;
	background: var(--wp--preset--color--light);
	color: var(--wp--preset--color--pink-dark);
	font-size: 1rem; /* Close to the phone button's size, so the two read alike (Gillian, 2026-11-30). */
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

/* Hover: turned inside out, white words and border on the strip's own pink (K-027, 6.01:1). */
body .qmd-announcement .wp-block-button__link:hover,
body .qmd-announcement .wp-block-button__link:focus-visible {
	background: var(--wp--preset--color--pink-dark);
	color: var(--wp--preset--color--light);
}

@media (max-width: 600px) {
	body .qmd-announcement__inner {
		flex-direction: column;
		gap: 16px;
		text-align: center;
	}

	.jkd-poster {
		width: min(220px, 70%);
	}

	body .qmd-announcement__text {
		margin-inline: auto;
	}

	body .qmd-announcement .wp-block-buttons {
		justify-content: center;
	}
}

/* The whole poster, opened over the page. Without the script the link opens the picture. */
.jkd-poster-view {
	max-width: 94vw;
	max-height: 94vh;
	padding: 0;
	border: 0;
	background: transparent;
	overflow: visible;
}

.jkd-poster-view::backdrop {
	background: rgb(0 0 0 / 0.88);
}

.jkd-poster-view img {
	display: block;
	max-width: 94vw;
	max-height: 94vh;
	width: auto;
	height: auto;
}

.jkd-poster-view button {
	position: fixed;
	top: 12px;
	right: 16px;
	padding: 4px 12px;
	border: 1px solid currentColor;
	border-radius: 4px;
	background: transparent;
	color: var(--wp--preset--color--light);
	font: inherit;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	cursor: pointer;
}

/*
 * INFO 1, white (K-008): the Welcome heading (the page's h1, as on the live site), then About
 * the Art with its opening line set large on the left and the rest beside it. No picture: the
 * type carries it. On a phone the opening line comes first.
 */
.jkd-art {
	padding: 72px 24px calc(80px + 3.3vw);
}

.jkd-welcome {
	margin: 0 auto 48px;
	font-size: 0.95rem;
	font-weight: 400;
	letter-spacing: 0.22em;
	text-align: center;
	text-transform: uppercase;
}

.jkd-art__columns {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 64px;
	align-items: start;
	max-width: 1040px;
	margin: 0 auto;
}

.jkd-label {
	margin: 0 0 18px;
	color: var(--wp--preset--color--pink-dark);
	font-size: 0.85rem;
	font-weight: 400;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.jkd-art__lead p {
	margin: 0;
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	font-weight: 700;
	line-height: 1.18;
	text-wrap: balance;
}

.jkd-art__body {
	padding-top: 38px;
}

.jkd-art__body p {
	margin: 0 0 1em;
	line-height: 1.6;
}

/* "Learn more", a quiet link rather than a button. */
.jkd-more {
	margin-top: 8px;
}

.jkd-more .wp-block-button__link {
	padding: 0 0 2px;
	border-radius: 0;
	border-bottom: 2px solid currentColor;
	background: none;
	color: inherit;
	font-size: 0.9rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.jkd-more .wp-block-button__link::after {
	content: " \2192";
}

.jkd-more .wp-block-button__link:hover,
.jkd-more .wp-block-button__link:focus-visible {
	background: none;
	color: var(--wp--preset--color--pink-dark);
}

@media (max-width: 760px) {
	.jkd-art {
		padding: 48px 20px calc(56px + 3.3vw);
	}

	.jkd-welcome {
		margin-bottom: 32px;
	}

	.jkd-art__columns {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.jkd-art__body {
		padding-top: 24px;
	}
}

/* A white band ends in a black brush edge over the black band after it. */
.jkd-band--white::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	aspect-ratio: 2600 / 85;
	background: var(--jkd-next, var(--wp--preset--color--dark));
	-webkit-mask: url("assets/images/paint-top.png") center bottom / 100% 100% no-repeat;
	mask: url("assets/images/paint-top.png") center bottom / 100% 100% no-repeat;
	pointer-events: none;
}

/*
 * Info 1 headings, second pass (Gillian, 2026-11-24): the Welcome largest, with Gillian's brush
 * line under it; About the Art second; the opening line lighter than both, still above the
 * body. Same layout.
 */
.jkd-welcome {
	margin-bottom: 56px;
	font-size: clamp(2rem, 4.2vw, 3.1rem);
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.1;
	text-transform: none;
	text-wrap: balance;
}

.jkd-welcome::after {
	content: "";
	display: block;
	width: min(440px, 72%);
	aspect-ratio: 2000 / 22;
	margin: 20px auto 0;
	background: var(--wp--preset--color--dark);
	-webkit-mask: url("assets/images/brush-line.png") center / 100% 100% no-repeat;
	mask: url("assets/images/brush-line.png") center / 100% 100% no-repeat;
}

.jkd-label {
	--jkd-label-size: clamp(1.5rem, 2.5vw, 1.95rem);
	margin: 0 0 16px;
	font-size: var(--jkd-label-size);
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.2;
	text-transform: none;
}

.jkd-art__lead p {
	font-size: clamp(1.25rem, 2vw, 1.55rem);
	font-weight: 400;
	line-height: 1.35;
}

/* The paragraph starts level with the opening line, under the heading's height. */
.jkd-art__body {
	padding-top: calc(clamp(1.5rem, 2.5vw, 1.95rem) * 1.2 + 16px);
}

@media (max-width: 760px) {
	.jkd-welcome {
		margin-bottom: 40px;
	}

	.jkd-art__body {
		padding-top: 20px;
	}
}

/* WordPress's default gap between blocks would push the paragraph off the opening line. */
.jkd-art__columns > *,
.jkd-art__lead > *,
.jkd-art__body > :first-child {
	margin-block-start: 0;
}

/* Gillian, 2026-11-24: the line twice as thick, near the hero artwork's lines; the opening line bold. */
.jkd-welcome::after {
	aspect-ratio: 2000 / 44;
}

.jkd-art__lead p {
	font-weight: 700;
}

/*
 * The hero clips what spills past it (it keeps the petals in), which also clips its brush edge's
 * 1px overlap; the band after it tucks 1px under instead, so no hairline of page shows between.
 * The testimonials band clips its travelling branches, so the same applies after it.
 */
.jkd-hero + *,
.qmd-announcement + *,
.jkd-main > .jkd-testimonials + * {
	margin-top: -1px;
}

/*
 * The brush line, from Gillian's vector (incoming/line.ai, its one path as brush-line.svg), so
 * it is sharp at any size. Drawn at the doubled thickness she chose.
 */
.jkd-welcome::after {
	aspect-ratio: 3000 / 66;
	-webkit-mask-image: url("assets/images/brush-line.svg");
	mask-image: url("assets/images/brush-line.svg");
}

/*
 * Info 2, About Makoto (Gillian, 2026-11-24, option A): words on the left, his photo on the
 * right with no frame. The photo's background is pure black, so it melts into the band, and it
 * stands on the band's bottom, where the white brush edge cuts across it. On a phone the photo
 * comes after the words.
 */
.jkd-makoto {
	padding: 72px 24px 0;
}

.jkd-makoto__columns {
	display: grid;
	grid-template-columns: 1fr minmax(0, 400px);
	gap: 64px;
	align-items: end;
	max-width: 1040px;
	margin: 0 auto;
}

.jkd-makoto__columns > *,
.jkd-makoto__words > * {
	margin-block-start: 0;
}

.jkd-makoto__words {
	align-self: center;
	padding-bottom: calc(96px + 3.3vw);
}

.jkd-makoto .jkd-label {
	color: var(--wp--preset--color--pink);
}

/* The text block takes no class of its own, so the opening line is the paragraph after the heading. */
.jkd-makoto__words h2 + p {
	font-size: clamp(1.25rem, 2vw, 1.55rem);
	font-weight: 700;
	line-height: 1.35;
}

.jkd-makoto__words p {
	margin: 0 0 1em;
	line-height: 1.6;
}

.jkd-makoto__words h2 + p {
	line-height: 1.35;
}

.jkd-makoto .jkd-more .wp-block-button__link:hover,
.jkd-makoto .jkd-more .wp-block-button__link:focus-visible {
	color: var(--wp--preset--color--pink);
}

/* The photo stands just above the brush edge, so the edge never covers the last character. */
.jkd-makoto__photo {
	margin: 0;
	padding-bottom: calc(96px + 3.3vw);
}

.jkd-makoto__photo img {
	display: block;
	width: 100%;
	height: auto;
}

@media (max-width: 760px) {
	.jkd-makoto {
		padding: 48px 20px 0;
	}

	.jkd-makoto__columns {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.jkd-makoto__words {
		padding-bottom: 0;
	}

	.jkd-makoto__photo {
		justify-self: center;
		width: min(320px, 80%);
	}
}

/* The event poster gets a white frame, a break between its own colours and the strip's pink. */
.jkd-poster .qmd-announcement__image {
	box-sizing: border-box;
	border: 5px solid var(--wp--preset--color--light);
}

/* Bands meet edge to edge: WordPress's default gap between blocks would leave a strip of page between them. */
.jkd-main > * {
	margin-block-start: 0;
}

/*
 * Gillian, 2026-11-24: on a phone the photo is about the hero artwork's height (roughly 300 px)
 * with more room above and below it.
 */
@media (max-width: 760px) {
	.jkd-makoto__photo {
		width: min(245px, 70%);
		padding: 24px 0 calc(32px + 3.3vw);
	}
}

/*
 * Gillian, 2026-11-24: the photo about as tall as the words beside it on a desktop; on a phone
 * smaller again, and above the heading.
 */
.jkd-makoto__columns {
	grid-template-columns: 1fr minmax(0, 330px);
}

@media (max-width: 760px) {
	.jkd-makoto__columns {
		grid-template-columns: 1fr;
	}

	.jkd-makoto__photo {
		order: -1;
		width: min(210px, 60%);
		padding: 0 0 32px;
	}

	.jkd-makoto__words {
		padding-bottom: calc(64px + 3.3vw);
	}
}

/*
 * Schedule (Gillian, 2026-11-24, option B, K-010): the live site's layout kept, a row per day
 * with the brush line between rows, day, class and time across, made compact. On a phone the
 * day sits over its classes. Styling to be judged on screen.
 */
.jkd-schedule {
	padding: 64px 24px calc(64px + 3.3vw);
}

.jkd-schedule > * {
	max-width: 1040px;
	margin-inline: auto;
	margin-block-start: 0;
}

.jkd-schedule__day {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 0 24px;
	align-items: baseline;
	padding: 0 0 14px;
}

.jkd-schedule__day::before {
	content: "";
	grid-column: 1 / -1;
	display: block;
	height: 8px;
	margin-bottom: 14px;
	background: var(--wp--preset--color--dark);
	-webkit-mask: url("assets/images/brush-line.svg") center / 100% 100% no-repeat;
	mask: url("assets/images/brush-line.svg") center / 100% 100% no-repeat;
}

.jkd-schedule__day h3 {
	margin: 0;
	font-size: clamp(1.2rem, 1.8vw, 1.4rem);
	font-weight: 700;
	line-height: 1.3;
}

.jkd-schedule__day ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.jkd-schedule__day li {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	font-size: 1.05rem;
	line-height: 1.6;
}

@media (max-width: 760px) {
	.jkd-schedule {
		padding-top: 48px;
	}

	.jkd-schedule__day {
		grid-template-columns: 1fr;
		gap: 2px;
		padding: 0 0 10px;
	}

	.jkd-schedule__day li {
		grid-template-columns: 1fr auto;
		gap: 16px;
	}
}

/*
 * The call line under the schedule (Gillian, 2026-11-24, option B, K-011): its own words, the
 * shared phone number as a black button. Wording to be revisited.
 */
.jkd-call {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px 20px;
	margin-top: 36px;
	text-align: center;
	font-size: clamp(1.15rem, 1.6vw, 1.3rem);
	font-weight: 700;
}

.jkd-call__number {
	padding: 9px 22px;
	border-radius: 4px;
	background: var(--wp--preset--color--dark);
	font-size: 1.05rem; /* A little under the call line, close to the event button (Gillian, 2026-11-30). */
	color: var(--wp--preset--color--light);
	letter-spacing: 0.04em;
	text-decoration: none;
	white-space: nowrap;
}

.jkd-call__number:hover,
.jkd-call__number:focus-visible {
	background: var(--wp--preset--color--pink-dark);
}

/*
 * TESTIMONIALS, home page (K-012): a white box on the black band, one testimonial at a time,
 * with Gillian's blossom branches overlapping its corners as if on a layer in front. The
 * branches are white, so a soft dark shadow all round shows their edge where they cross the
 * white box and disappears on the black (Gillian, 2026-11-24). They drift as the page scrolls
 * (assets/js/quotes.js).
 */
.jkd-testimonials {
	padding: 64px 24px calc(80px + 3.3vw);
	overflow: clip; /* The branches travel a long way; the band's edges cut them off. */
}

.jkd-testimonials > * {
	max-width: 760px;
	margin-inline: auto;
	margin-block-start: 0;
}

.jkd-testimonials .jkd-label {
	color: var(--wp--preset--color--pink);
	text-align: center;
	margin-bottom: 72px;
}

.jkd-testimonials .jkd-more {
	display: flex;
	justify-content: flex-start; /* Lower left, where the other bands keep their links (Gillian). */
	margin-top: 40px;
}

.jkd-testimonials .jkd-more .wp-block-button__link:hover,
.jkd-testimonials .jkd-more .wp-block-button__link:focus-visible {
	color: var(--wp--preset--color--pink);
}

.jkd-quotes {
	position: relative;
}

.jkd-quotes__box {
	position: relative;
	isolation: isolate; /* The paint sits behind the words, in front of the black band. */
	padding: 88px 72px 56px; /* Room inside the paint above and below (Gillian, 2026-11-29). */
	color: var(--wp--preset--color--dark);
	text-align: center;
}

/*
 * The box is Gillian's paint stroke, not a white square (Gillian, 2026-11-29), here and on the
 * Testimonials page. assets/js/paint.js stacks as many strokes as the height needs; without it,
 * one stroke is stretched to fit. The paint runs a little past the box at each side, so the
 * rough ends fall outside the words.
 */
.jkd-quotes__box::before,
.jkd-wall__item::before,
.jkd-paint {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0 -6%;
	pointer-events: none;
}

.jkd-quotes__box::before,
.jkd-wall__item::before,
.jkd-paint__stroke {
	background: var(--wp--preset--color--light);
	-webkit-mask: url("assets/images/paint-stroke.svg") center / 100% 100% no-repeat;
	mask: url("assets/images/paint-stroke.svg") center / 100% 100% no-repeat;
}

.jkd-quotes__box.is-painted::before,
.jkd-wall__item.is-painted::before {
	content: none;
}

.jkd-paint__stroke {
	position: absolute;
	width: 100%;
	aspect-ratio: 856 / 313;
}

.jkd-quotes__branch {
	position: absolute;
	z-index: 2;
	height: auto;
	pointer-events: none;
	filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 2.5px rgba(0, 0, 0, 0.14));
	will-change: translate;
	transition: opacity 0.4s ease;
}

/* Hidden until quotes.js has placed them, as on the Testimonials wall. */
@media (scripting: enabled) {
	[data-jkd-quotes]:not(.is-placed) .jkd-quotes__branch {
		opacity: 0;
	}
}

.jkd-quotes__branch--left {
	width: 320px;
	top: -110px;
	left: -230px;
}

.jkd-quotes__branch--right {
	width: 330px;
	right: -170px;
	bottom: -100px;
	rotate: 75deg; /* Tipped right: the coral flower under the box, the pink ones up its side (Gillian, 2026-11-29: 15 more). */
}

.jkd-quotes__slide {
	margin: 0 0 40px;
}

.jkd-quotes blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: clamp(1.1rem, 1.6vw, 1.3rem);
	line-height: 1.55;
}

.jkd-quotes blockquote p {
	margin: 0 0 0.7em;
}

.jkd-quotes figcaption {
	margin-top: 18px;
}

.jkd-quotes__name,
.jkd-quotes__role {
	display: block;
}

.jkd-quotes__name {
	font-weight: 700;
	color: var(--wp--preset--color--pink-dark);
	letter-spacing: 0.04em;
}

.jkd-quotes__role {
	font-size: 0.9rem;
	color: #555;
}

/*
 * With the script: every testimonial in the same cell, so the box is as tall as the longest and
 * nothing below it moves. The one showing fades out fully, then the next fades in.
 */
.jkd-quotes__box.is-one .jkd-quotes__track {
	display: grid;
}

.jkd-quotes__box.is-one .jkd-quotes__slide {
	grid-area: 1 / 1;
	align-self: center;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}

.jkd-quotes__box.is-one .jkd-quotes__slide.is-current {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.45s ease, visibility 0s;
}

.jkd-quotes__box.is-one .jkd-quotes__slide.is-leaving {
	opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
	.jkd-quotes__box.is-one .jkd-quotes__slide {
		transition: none;
	}
}

/* The arrows are the hero's falling petal, in blossom pink, pointing each way. */
.jkd-quotes__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	margin-top: 28px;
}

.jkd-quotes__arrow {
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.jkd-quotes__arrow::before {
	content: "";
	display: block;
	width: 34px;
	height: 28px;
	margin: auto;
	background: var(--wp--preset--color--pink);
	-webkit-mask: url("assets/images/petal-1.png") center / contain no-repeat;
	mask: url("assets/images/petal-1.png") center / contain no-repeat;
	transition: background-color 0.2s ease;
}

.jkd-quotes__arrow--next::before {
	transform: scaleX(-1) rotate(-28deg);
}

.jkd-quotes__arrow--prev::before {
	transform: rotate(-28deg);
}

.jkd-quotes__arrow:hover::before,
.jkd-quotes__arrow:focus-visible::before {
	background: var(--wp--preset--color--pink-dark);
}

.jkd-quotes__arrow:focus-visible {
	outline: 2px solid var(--wp--preset--color--dark);
	outline-offset: 2px;
}

.jkd-quotes__count {
	margin: 0;
	min-width: 4em;
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	color: #555;
}

/*
 * Below desktop width the box fills the screen, so there is no room beside it: each branch's
 * big flower marks a corner, as on a phone, a little larger (Gillian, 2026-11-29).
 */
@media (max-width: 960px) {
	.jkd-quotes__branch--left {
		width: 234px;
		top: -97px;
		left: -149px;
		transform-origin: 72% 74%;
		rotate: 25deg;
	}

	.jkd-quotes__branch--right {
		rotate: 120deg;
		width: 216px;
		right: -135px;
		bottom: -66px;
	}
}

@media (max-width: 760px) {
	.jkd-testimonials {
		padding: 48px 16px calc(72px + 3.3vw);
	}

	.jkd-testimonials .jkd-label {
		margin-bottom: 56px;
	}

	.jkd-quotes__box {
		padding: 64px 22px 16px;
	}

	.jkd-quotes__branch {
		filter: drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 1.25px rgba(0, 0, 0, 0.12));
	}

	/*
	 * At least a screen tall plus its brush edges and some to spare, the spare below, so
	 * with the band anywhere near the middle of a phone the whole screen is black: no white from
	 * the bands either side (Gillian, 2026-11-24).
	 */
	.jkd-testimonials {
		box-sizing: border-box;
		min-height: calc(100vh + 6.6vw + 110px);
		min-height: calc(100svh + 6.6vw + 110px);
		padding-top: 60px; /* Little black above the heading on any phone (Gillian); the spare goes below. */
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
	}

	.jkd-testimonials > * {
		width: 100%;
	}

	/*
	 * Less of each branch on a phone, the rest off the page (Gillian, 2026-11-29): at the upper
	 * left only the two pink flowers and a bud; at the lower right, turned further, only the coral
	 * flowers and the buds, the branch trailing off the bottom.
	 */
	.jkd-quotes__branch--left {
		width: 195px;
		top: -81px;
		left: -124px;
		/* Tipped round the big flower so it stays in the corner and the small one moves clear of it. */
		transform-origin: 72% 74%;
		rotate: 25deg;
	}

	/* Its big flower in the box's lower right corner, the smaller ones off the page. */
	.jkd-quotes__branch--right {
		rotate: 120deg;
		width: 180px;
		right: -125px;
		bottom: -55px;
	}

	/* Large phones and small tablets: the lower branch a little further in (Gillian, 2026-11-29). */
	@media (min-width: 481px) {
		.jkd-quotes__branch--right {
			right: -100px;
		}
	}
}

/*
 * BOOK A CLASS, the last band before the footer (K-013): where the school is, the phone and the
 * email, side by side. The phone is plain here; the black button stays the schedule's.
 */
.jkd-closing {
	padding: 72px 24px calc(72px + 3.3vw);
	text-align: center;
}

.jkd-closing > * {
	max-width: 1040px;
	margin-inline: auto;
	margin-block-start: 0;
}

.jkd-closing .jkd-label {
	color: var(--wp--preset--color--pink-dark);
}

.jkd-closing__text {
	margin-top: 12px;
	font-size: clamp(1.1rem, 1.5vw, 1.25rem);
}

.jkd-contact {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
	margin-top: 44px;
}

.jkd-contact__item h3 {
	margin: 0 0 12px;
	color: var(--wp--preset--color--pink-dark);
	font-size: 1.1rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* The address in the same weight and size as the number and the email (Gillian). */
.jkd-contact__item p {
	margin: 0;
	font-size: clamp(1.15rem, 1.6vw, 1.3rem);
	font-weight: 700;
	line-height: 1.45;
}

.jkd-contact__item p + p {
	font-weight: 400;
}

.jkd-contact__big {
	color: inherit;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.jkd-contact__link {
	display: inline-block;
	margin-top: 10px;
	padding-bottom: 2px;
	border-bottom: 2px solid currentColor;
	color: inherit;
	font-size: 0.9rem;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
}

.jkd-contact__link::after {
	content: " \2197";
}

.jkd-contact__big:hover,
.jkd-contact__big:focus-visible,
.jkd-contact__link:hover,
.jkd-contact__link:focus-visible {
	color: var(--wp--preset--color--pink-dark);
}

/* The social links under the three columns: Gillian's icons as stencils, black, pink on hover. */
.jkd-social {
	display: flex;
	justify-content: center;
	gap: 16px;
	margin: 44px auto 0;
	padding: 0;
	list-style: none;
}

.jkd-social__link {
	display: block;
	width: 44px;
	height: 44px;
	background: var(--wp--preset--color--dark);
	-webkit-mask: var(--jkd-icon) center / contain no-repeat;
	mask: var(--jkd-icon) center / contain no-repeat;
	transition: background-color 0.2s ease;
}

.jkd-social__link--facebook {
	--jkd-icon: url("assets/images/social-facebook.png");
}

.jkd-social__link--instagram {
	--jkd-icon: url("assets/images/social-instagram.png");
}

.jkd-social__link--youtube {
	--jkd-icon: url("assets/images/social-youtube.png");
}

.jkd-social__link:hover,
.jkd-social__link:focus-visible {
	background: var(--wp--preset--color--pink-dark);
}

.jkd-social__link:focus-visible {
	outline: 2px solid var(--wp--preset--color--dark);
	outline-offset: 3px;
}

@media (max-width: 760px) {
	.jkd-closing {
		padding: 56px 20px calc(56px + 3.3vw);
	}

	.jkd-contact {
		grid-template-columns: 1fr;
		gap: 28px;
		margin-top: 32px;
	}

	.jkd-contact__item--find {
		order: 1;
	}
}

/*
 * FOOTER (K-014): as slim as it was, with the copyright and, under it, the credit, as on YYT.
 */
.jkd-footer {
	padding: 28px 24px 32px;
	text-align: center;
}

.jkd-footer > * {
	margin-block-start: 0;
}

.jkd-footer__crest {
	display: block;
	width: max-content;
	margin: 0 auto 14px;
}

.jkd-footer__crest:focus-visible {
	outline: 2px solid var(--wp--preset--color--light);
	outline-offset: 4px;
}

.jkd-footer__crest img {
	display: block;
	margin-inline: auto;
	width: 44px;
	height: auto;
}

.jkd-footer p {
	margin: 0;
	font-size: 0.85rem;
	line-height: 1.6;
}

.jkd-footer a {
	color: inherit;
}

.jkd-footer a:hover,
.jkd-footer a:focus-visible {
	color: var(--wp--preset--color--pink);
}

/*
 * PAGES OTHER THAN HOME (K-015). A page takes the colour of its band on the home page; its title
 * bar is the opposite, and ends in the brush edge in the page's colour. White page, black bar;
 * black page, white bar. Gillian's blossom branches go on the bar later, spilling onto the page.
 */
.jkd-page--white {
	--jkd-page-bg: var(--wp--preset--color--light);
	--jkd-page-fg: var(--wp--preset--color--dark);
}

.jkd-page--black {
	--jkd-page-bg: var(--wp--preset--color--dark);
	--jkd-page-fg: var(--wp--preset--color--light);
}

.jkd-titlebar {
	position: relative;
	z-index: 2;
	/* Cut the branches off at the top and sides, as in the mockup; let them spill below. */
	clip-path: inset(0 0 -400px 0);
	overflow-x: clip;
	padding: 60px 24px 56px;
	background: var(--jkd-page-fg);
	color: var(--jkd-page-bg);
	text-align: center;
}

/*
 * The bar's bottom edge (Gillian, 2026-11-28): the brush line that divides the schedule's days,
 * drawn very large in the bar's colour across its bottom, so its ragged lower side spills onto
 * the page. Not the paint edge the home bands use.
 */
.jkd-titlebar::after {
	content: "";
	position: absolute;
	/*
	 * Wider than the bar, so the line's tapered ends fall off the screen, and set off to the left
	 * so the deep dip in the line's middle sits under the left branch, not under the title.
	 */
	left: -56%;
	right: -4%;
	top: calc(100% - 1px - clamp(10px, 1.6vw, 26px));
	height: clamp(20px, 3.2vw, 52px);
	background: var(--jkd-page-fg);
	-webkit-mask: url("assets/images/brush-line.svg") center / 100% 100% no-repeat;
	mask: url("assets/images/brush-line.svg") center / 100% 100% no-repeat;
	pointer-events: none;
}

/*
 * The blossom branches at each side (K-019), sized to the bar and pushed past its top and outer
 * edge so the big flower and the wood are cut off there (Gillian's mockup), while the small
 * blossoms spill below the bar onto the page.
 */
.jkd-titlebar__branch {
	position: absolute;
	z-index: 1;
	height: 150%;
	width: auto;
	pointer-events: none;
}

.jkd-titlebar__branch--left {
	top: -20%;
	left: -4.5%;
	aspect-ratio: 327.729 / 231.503;
}

.jkd-titlebar__branch--right {
	top: -30%;
	right: -3%;
	aspect-ratio: 313.447 / 262.046;
}

.jkd-titlebar__title {
	position: relative;
	z-index: 2;
	margin: 0;
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-wrap: balance;
}

.jkd-page {
	margin-top: -1px;
	/* Room under the title bar for the blossoms that hang below it (Gillian, 2026-11-28). */
	padding: 112px 24px 80px;
	background: var(--jkd-page-bg);
	color: var(--jkd-page-fg);
}

.jkd-page__content {
	max-width: 1040px;
	margin: 0 auto;
}

/* A white page ends in a black brush edge into the footer; a black page runs straight into it. */
.jkd-page--white .jkd-page {
	position: relative;
	padding-bottom: calc(80px + 3.3vw);
}

.jkd-page--white .jkd-page::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	aspect-ratio: 2600 / 85;
	background: var(--wp--preset--color--dark);
	-webkit-mask: url("assets/images/paint-top.png") center bottom / 100% 100% no-repeat;
	mask: url("assets/images/paint-top.png") center bottom / 100% 100% no-repeat;
	pointer-events: none;
}

@media (max-width: 760px) {
	.jkd-titlebar {
		padding: 40px 16px 48px;
	}

	.jkd-titlebar__title {
		font-size: 1.65rem;
	}

	/*
	 * On a phone (Gillian, 2026-11-28): the branches stay large, tilted to stand more upright,
	 * and are cut off further at the sides, to leave the middle to the title.
	 */
	.jkd-titlebar__branch {
		height: 112%;
		transform-origin: 50% 50%;
	}

	.jkd-titlebar__branch--left {
		top: -30%;
		left: -68px;
		transform: rotate(33deg);
	}

	.jkd-titlebar__branch--right {
		top: -6%;
		right: -48px;
		transform: rotate(-35deg);
	}

	.jkd-page {
		padding: 76px 16px 56px;
	}

	.jkd-page--white .jkd-page {
		padding-bottom: calc(56px + 3.3vw);
	}
}

/* A short page still fills the screen: the page's colour grows so the footer sits at the bottom. */
.jkd-page--white .wp-site-blocks,
.jkd-page--black .wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100svh;
}

.jkd-page--white .jkd-page,
.jkd-page--black .jkd-page {
	flex: 1 0 auto;
}

/*
 * THE TESTIMONIALS PAGE (K-016): every testimonial in full, each in a white box like the home
 * page's, staggered left and right on black, with a small blossom branch between each pair that
 * drifts gently (assets/js/wall.js). The optional subheading is a box on the page's form.
 */
.jkd-page--black .jkd-page__heading {
	margin: 8px 0 56px;
	color: var(--wp--preset--color--pink);
	font-size: clamp(1.5rem, 2.5vw, 1.95rem);
	text-align: center;
}

.jkd-wall {
	max-width: 1200px;
	margin: 0 auto;
}

/* The paint runs past the boxes; the screen's edge cuts it off rather than the page widening. */
.jkd-page:has(.jkd-wall) {
	overflow-x: clip;
}

.jkd-wall__item {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	width: min(100%, 820px);
	margin: 0;
	padding: 80px 56px 56px; /* Room inside the paint above and below, as on the home page. */
	isolation: isolate; /* The paint sits behind the words, in front of the black page. */
	color: var(--wp--preset--color--dark);
}

.jkd-wall__item--right {
	margin-left: auto;
}

.jkd-wall blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: clamp(1.05rem, 1.4vw, 1.2rem);
	line-height: 1.6;
}

.jkd-wall blockquote p {
	margin: 0 0 0.8em;
}

.jkd-wall figcaption {
	margin-top: 20px;
	text-align: right;
}

.jkd-wall__name,
.jkd-wall__role {
	display: block;
}

.jkd-wall__name {
	font-weight: 700;
	color: var(--wp--preset--color--pink-dark);
	letter-spacing: 0.04em;
}

.jkd-wall__role {
	font-size: 0.9rem;
	color: #555;
}

/* The branch sits in the gap, overlapping the boxes either side, on the side the next box leaves open. */
.jkd-wall__spacer {
	position: relative;
	z-index: 2;
	height: 72px;
	pointer-events: none;
}

.jkd-wall__branch {
	position: absolute;
	top: 50%;
	width: 170px;
	height: auto;
	margin-top: -108px;
	filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 2.5px rgba(0, 0, 0, 0.14));
	will-change: transform;
	transition: opacity 0.4s ease;
}

/* Hidden until wall.js has placed them, so none is seen to jump on load. Shown at once without scripts. */
@media (scripting: enabled) {
	[data-jkd-wall]:not(.is-placed) .jkd-wall__branch {
		opacity: 0;
	}
}

.jkd-wall__spacer--a .jkd-wall__branch {
	left: calc(50% - 360px);
}

.jkd-wall__spacer--b .jkd-wall__branch {
	right: calc(50% - 360px);
	scale: -1 1;
}

@media (max-width: 760px) {
	.jkd-wall__item {
		padding: 56px 24px 40px;
	}

	.jkd-wall__spacer {
		height: 56px;
	}

	.jkd-wall__branch {
		width: 96px;
		margin-top: -61px;
	}

	.jkd-wall__spacer--a .jkd-wall__branch {
		left: 28px;
	}

	.jkd-wall__spacer--b .jkd-wall__branch {
		right: 28px;
	}
}

/*
 * The Classes page (K-017, Gillian, 2026-11-27, mockup D): the descriptions first, three across,
 * each name in pink over a short brush line, no frame; then the schedule and the call line,
 * from the home page form. On a phone the names become a list that opens, with the brush line
 * between.
 */
.jkd-classes {
	max-width: 1040px;
	margin: 0 auto 72px;
}

.jkd-classes__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px 32px;
}

.jkd-classes__item summary {
	display: block;
	list-style: none;
	cursor: default;
}

.jkd-classes__item summary::-webkit-details-marker {
	display: none;
}

.jkd-classes__item h3 {
	margin: 0;
	color: var(--wp--preset--color--pink-dark);
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.3;
}

.jkd-classes__item h3::after {
	content: "";
	display: block;
	height: 8px;
	margin: 12px 0 14px;
	background: var(--wp--preset--color--dark);
	-webkit-mask: url("assets/images/brush-line.svg") center / 100% 100% no-repeat;
	mask: url("assets/images/brush-line.svg") center / 100% 100% no-repeat;
}

.jkd-classes__words p {
	margin: 0 0 0.8em;
	line-height: 1.6;
}

.jkd-classes__words p:last-child {
	margin-bottom: 0;
}

/* The schedule on this page sits inside the page, not in a band of its own. */
.jkd-page--classes .jkd-schedule {
	padding: 0;
}

@media (max-width: 1000px) {
	.jkd-classes__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.jkd-classes {
		margin-bottom: 56px;
	}

	.jkd-classes__list {
		display: block;
	}

	.jkd-classes__list::after,
	.jkd-classes__item::before {
		content: "";
		display: block;
		height: 8px;
		background: var(--wp--preset--color--dark);
		-webkit-mask: url("assets/images/brush-line.svg") center / 100% 100% no-repeat;
		mask: url("assets/images/brush-line.svg") center / 100% 100% no-repeat;
	}

	.jkd-classes__item summary {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 16px;
		padding: 14px 2px;
		cursor: pointer;
	}

	.jkd-classes__item h3 {
		font-size: 1.25rem;
	}

	.jkd-classes__item h3::after {
		display: none;
	}

	.jkd-classes__item summary::after {
		content: "+";
		color: var(--wp--preset--color--pink-dark);
		font-size: 1.8rem;
		line-height: 1;
	}

	.jkd-classes__item[open] summary::after {
		content: "\2212";
	}

	.jkd-classes__words {
		padding: 0 2px 18px;
	}
}

.jkd-classes > .jkd-label {
	margin-bottom: 28px;
}

/*
 * The classroom screensaver (K-T16): the hero alone, filling the screen, no paint stroke.
 */
.jkd-screensaver,
.jkd-screensaver .wp-site-blocks {
	background: var(--wp--preset--color--dark);
}

.jkd-screensaver .jkd-hero {
	min-height: 100vh;
	min-height: 100svh;
	padding: 4vh 4vw;
}

.jkd-screensaver .jkd-hero::after {
	display: none;
}

.jkd-screensaver .jkd-hero__art {
	max-height: 88vh;
	max-width: 88vw;
}

.jkd-screensaver.is-still,
.jkd-screensaver.is-still * {
	cursor: none;
}

/*
 * The seminar on the Classes page (K-018, mockup 1): the Home event banner, larger, as a pink band
 * under the title bar. The bar's brush edge spills over it; the band ends in a white edge.
 */
.jkd-seminar {
	position: relative;
	margin-top: -1px;
	padding: 40px 24px calc(48px + 3.3vw);
	background: var(--wp--preset--color--pink-dark);
	color: var(--wp--preset--color--light);
}

.jkd-seminar::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	aspect-ratio: 2600 / 85;
	background: var(--jkd-page-bg);
	-webkit-mask: url("assets/images/paint-top.png") center bottom / 100% 100% no-repeat;
	mask: url("assets/images/paint-top.png") center bottom / 100% 100% no-repeat;
	pointer-events: none;
}

.jkd-seminar__inner {
	display: flex;
	align-items: center;
	gap: 40px;
	max-width: 1040px;
	margin: 0 auto;
}

.jkd-seminar .jkd-seminar__poster {
	width: 320px;
}

.jkd-seminar__image {
	display: block;
	box-sizing: border-box;
	border: 5px solid var(--wp--preset--color--light);
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
}

.jkd-seminar__words {
	min-width: 0;
}

.jkd-seminar__words p {
	margin: 0 0 0.8em;
	line-height: 1.6;
}

/*
 * Without a poster (Gillian, 2026-12-01): the words centred, clear of the title bar's blossoms
 * at the top corners.
 */
/* More room above, so the heading starts below the blossoms hanging into the band. */
.jkd-seminar--words {
	padding-top: 96px;
}

.jkd-seminar--words .jkd-seminar__inner {
	justify-content: center;
	text-align: center;
}

.jkd-seminar--words .jkd-seminar__words {
	max-width: 720px;
}

.jkd-seminar__heading {
	margin: 0 0 10px;
	color: var(--wp--preset--color--light);
	font-size: clamp(1.5rem, 2.6vw, 2rem);
	line-height: 1.2;
}

.jkd-seminar__more,
.jkd-seminar__when {
	font-weight: 700;
	font-size: 1.1rem;
}

.jkd-seminar__button a {
	display: inline-block;
	margin-top: 4px;
	padding: 9px 22px;
	border: 1px solid var(--wp--preset--color--light);
	border-radius: 4px;
	background: var(--wp--preset--color--light);
	color: var(--wp--preset--color--pink-dark);
	font-size: 1rem; /* Close to the phone button's size, so the two read alike (Gillian, 2026-11-30). */
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.jkd-seminar__button a:hover,
.jkd-seminar__button a:focus-visible {
	background: var(--wp--preset--color--pink-dark);
	color: var(--wp--preset--color--light);
}

/* The extra class (K-018): white, centred, in the class descriptions' style. */
.jkd-extra {
	max-width: 620px;
	margin: 0 auto 72px;
	text-align: center;
}

.jkd-extra__name {
	margin: 0;
	color: var(--wp--preset--color--pink-dark);
	font-size: clamp(1.5rem, 2.5vw, 1.95rem);
	line-height: 1.2;
}

.jkd-extra__name::after {
	content: "";
	display: block;
	width: 70%;
	height: 9px;
	margin: 14px auto 16px;
	background: var(--wp--preset--color--dark);
	-webkit-mask: url("assets/images/brush-line.svg") center / 100% 100% no-repeat;
	mask: url("assets/images/brush-line.svg") center / 100% 100% no-repeat;
}

/* A closing line, so the extra class reads as one contained item above the training text. */
.jkd-extra::after {
	content: "";
	display: block;
	width: 70%;
	height: 9px;
	margin: 28px auto 0;
	background: var(--wp--preset--color--dark);
	-webkit-mask: url("assets/images/brush-line.svg") center / 100% 100% no-repeat;
	mask: url("assets/images/brush-line.svg") center / 100% 100% no-repeat;
}

.jkd-extra p {
	margin: 0 0 0.6em;
	line-height: 1.6;
}

.jkd-extra__when {
	font-weight: 700;
	font-size: 1.1rem;
}

@media (max-width: 760px) {
	.jkd-seminar {
		padding-top: 28px;
	}

	.jkd-seminar__inner {
		flex-direction: column;
		gap: 20px;
		text-align: center;
	}

	.jkd-seminar--words {
		padding-top: 56px;
	}

	.jkd-seminar .jkd-seminar__poster {
		width: min(260px, 80%);
	}

	.jkd-extra {
		margin-bottom: 56px;
	}
}

/*
 * ABOUT MAKOTO (K-020). The story is the page's own text, edited like a document. A small heading
 * (Heading 3) placed before a paragraph is a year, set large in pink in the margin beside it; on
 * a phone it sits above its paragraph. His photo, aligned right, sits beside the opening.
 * Under it, his teachers as a line of his path (the jkd/teachers block in the site plugin).
 */
.jkd-story {
	box-sizing: border-box;
	max-width: 920px;
	margin: 0 auto;
	padding-left: 190px;
}

.jkd-story > * {
	margin-block-start: 0;
}

/* An optional heading at the top of the story, if Makoto wants one: a Heading 2, centred above it all. */
.jkd-story > h2 {
	margin: 0 0 48px -190px;
	color: var(--wp--preset--color--pink);
	font-size: clamp(1.5rem, 2.5vw, 1.95rem);
	text-align: center;
}

.jkd-story p {
	margin: 0 0 1.2em;
	font-size: 1.05rem;
	line-height: 1.7;
}

.jkd-story > p:first-of-type {
	font-size: clamp(1.2rem, 1.8vw, 1.4rem);
	line-height: 1.5;
}

.jkd-story h3 {
	float: left;
	clear: left;
	box-sizing: border-box;
	width: 190px;
	margin: 0.05em 0 0 -190px;
	padding-right: 36px;
	color: var(--wp--preset--color--pink);
	font-size: clamp(1.8rem, 2.6vw, 2.4rem);
	line-height: 1;
	text-align: right;
}

.jkd-story .wp-block-image.jkd-story__photo {
	float: right;
	width: 300px;
	margin: 6px 0 28px 40px;
}

.jkd-story__photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: 62% 30%;
}

.jkd-story .jkd-story__links {
	clear: both;
	gap: 16px 40px;
	margin-top: 40px;
}

.jkd-page--black .jkd-more .wp-block-button__link:hover,
.jkd-page--black .jkd-more .wp-block-button__link:focus-visible {
	color: var(--wp--preset--color--pink);
}

/* The line: names either side in turn, each half a step below the one before. */
.jkd-lineage {
	max-width: 1040px;
	margin: 128px auto 0;
}

.jkd-lineage__line {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin: 0;
	padding: 0;
	list-style: none;
}

.jkd-lineage__line::before {
	content: "";
	position: absolute;
	top: 0.4em;
	bottom: 0;
	left: 50%;
	width: 2px;
	margin-left: -1px;
	background: var(--wp--preset--color--light);
}

.jkd-lineage__item {
	position: relative;
	padding: 0 56px 36px;
}

.jkd-lineage__item--left {
	grid-column: 1;
	text-align: right;
}

.jkd-lineage__item--right {
	grid-column: 2;
}

.jkd-lineage__item::before {
	content: "";
	position: absolute;
	top: 0.3em;
	width: 18px;
	height: 18px;
	box-sizing: border-box;
	border: 4px solid var(--wp--preset--color--dark);
	border-radius: 50%;
	background: var(--wp--preset--color--pink);
}

.jkd-lineage__item--left::before {
	right: -9px;
}

.jkd-lineage__item--right::before {
	left: -9px;
}

.jkd-lineage__name {
	margin: 0 0 4px;
	font-size: 1.3rem;
	line-height: 1.25;
}

.jkd-lineage__art {
	margin: 0 0 10px;
	color: var(--wp--preset--color--pink);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.jkd-lineage__item p:not(.jkd-lineage__art) {
	margin: 0 0 0.6em;
	opacity: 0.85;
	line-height: 1.6;
}

/* The closing words, centred where the line ends. */
.jkd-lineage__closing {
	position: relative;
	max-width: 600px;
	margin: 0 auto;
	padding-top: 196px;
	text-align: center;
}

.jkd-lineage__closing::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: 2px;
	height: 48px;
	margin-left: -1px;
	background: var(--wp--preset--color--light);
}

/* The line ends in Gillian's small blossom branch. */
.jkd-lineage__closing::after {
	content: "";
	position: absolute;
	top: 36px;
	left: 50%;
	width: 120px;
	aspect-ratio: 1076.397 / 1362.594;
	/* Its odd shape reads as centred with the flower's top on the line, not the box's middle. */
	margin-left: -78px;
	background: url("assets/images/branch-small.svg") center / contain no-repeat;
	/* Laid on its side so the two small blossoms hang down (Gillian, 2026-11-28). */
	transform: rotate(-100deg);
}

.jkd-lineage__closing .jkd-lineage__name {
	margin-bottom: 12px;
	color: var(--wp--preset--color--pink);
	font-size: 1rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.jkd-lineage__closing p {
	margin: 0;
	font-size: clamp(1.4rem, 2.4vw, 1.9rem);
	line-height: 1.35;
}

@media (max-width: 760px) {
	.jkd-story {
		padding-left: 0;
	}

	.jkd-story > h2 {
		margin: 0 0 32px;
	}

	.jkd-story h3 {
		float: none;
		width: auto;
		margin: 36px 0 8px;
		padding: 0;
		text-align: left;
	}

	.jkd-story .wp-block-image.jkd-story__photo {
		float: none;
		width: min(260px, 80%);
		margin: 0 auto 32px;
	}

	.jkd-lineage {
		margin-top: 88px;
	}

	.jkd-lineage__line {
		grid-template-columns: 1fr;
	}

	.jkd-lineage__line::before {
		left: 9px;
	}

	.jkd-lineage__item,
	.jkd-lineage__item--left,
	.jkd-lineage__item--right {
		grid-column: 1;
		grid-row: auto !important;
		padding: 0 0 32px 44px;
		text-align: left;
	}

	.jkd-lineage__item--left::before,
	.jkd-lineage__item--right::before {
		right: auto;
		left: 0;
	}

	/* The closing words follow the line down the left side. */
	.jkd-lineage__closing {
		padding: 114px 0 0 44px;
		text-align: left;
	}

	.jkd-lineage__closing::before {
		left: 9px;
		height: 36px;
	}

	.jkd-lineage__closing::after {
		top: -6px;
		left: -36px;
		width: 90px;
		margin-left: 0;
	}
}

/*
 * KABAYAMA HISTORY (K-021). The family line from 1192 to the school, the page's own text, edited
 * like a document. The white line of About Makoto's teachers runs down it: a Heading 3 before a
 * paragraph is a year, in pink to the left of the line with a dot on it; the paragraphs run to
 * the right. A paragraph with no year simply continues the line. The line ends in the small
 * blossom branch, with the link (a button) under it.
 */
.jkd-history {
	box-sizing: border-box;
	max-width: 900px;
	margin: 0 auto;
}

.jkd-history > * {
	margin-block-start: 0;
}

.jkd-history > h2 {
	margin: 0 0 56px;
	color: var(--wp--preset--color--pink);
	font-size: clamp(1.5rem, 2.5vw, 1.95rem);
	text-align: center;
}

.jkd-history > p {
	position: relative;
	margin: 0;
	padding: 0 0 1.6em 236px;
	font-size: 1.05rem;
	line-height: 1.7;
}

/* The line, drawn beside each paragraph so it runs unbroken through them. */
.jkd-history > p::before,
.jkd-history__end::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 190px;
	width: 2px;
	background: var(--wp--preset--color--light);
}

/* The first year starts the line, so nothing shows above its dot. */
.jkd-history > h3:first-of-type + p::before {
	top: 14px;
}

.jkd-history > h3 {
	position: relative;
	float: left;
	clear: left;
	box-sizing: border-box;
	width: 190px;
	margin: 0;
	padding-right: 36px;
	color: var(--wp--preset--color--pink);
	font-size: clamp(1.8rem, 2.6vw, 2.4rem);
	line-height: 1;
	text-align: right;
}

.jkd-history > h3::after {
	content: "";
	position: absolute;
	z-index: 1;
	top: 0.12em;
	left: 182px;
	width: 20px;
	height: 20px;
	box-sizing: border-box;
	border: 4px solid var(--wp--preset--color--dark);
	border-radius: 50%;
	background: var(--wp--preset--color--pink);
}

/* The end of the line: the branch, as at the end of the teachers, and the link under it. */
.jkd-history .jkd-history__end {
	position: relative;
	clear: both;
	margin: 0;
	padding: 196px 0 0 236px;
}

.jkd-history__end::before {
	bottom: auto;
	height: 48px;
}

.jkd-history__end::after {
	content: "";
	position: absolute;
	top: 36px;
	left: 113px;
	width: 120px;
	aspect-ratio: 1076.397 / 1362.594;
	background: url("assets/images/branch-small.svg") center / contain no-repeat;
	transform: rotate(-100deg);
}

@media (max-width: 760px) {
	.jkd-history > h2 {
		margin-bottom: 36px;
	}

	.jkd-history > p {
		padding-left: 44px;
	}

	.jkd-history > p::before,
	.jkd-history__end::before {
		left: 9px;
	}

	/* The year sits above its paragraph, on the line. */
	.jkd-history > h3 {
		float: none;
		width: auto;
		padding: 0 0 10px 44px;
		text-align: left;
	}

	.jkd-history > h3::before {
		content: "";
		position: absolute;
		top: 0;
		bottom: 0;
		left: 9px;
		width: 2px;
		background: var(--wp--preset--color--light);
	}

	.jkd-history > h3::after {
		left: 0;
	}

	/* The first year starts the line, so nothing shows above its dot. */
	.jkd-history > h3:first-of-type + p::before {
		top: 0;
	}

	.jkd-history > h3:first-of-type::before {
		top: 0.3em;
	}

	.jkd-history .jkd-history__end {
		padding: 114px 0 0 44px;
	}

	.jkd-history__end::before {
		height: 36px;
	}

	.jkd-history__end::after {
		top: -6px;
		left: -36px;
		width: 90px;
	}
}

/*
 * JEET KUNE DO (K-022, layout B2, option 2): the live JKD Concepts page with The Original MMA and
 * The Tao merged in. The opening sentence large beside the rest, as Info 1 on the home page; The
 * Original MMA; The Tao as a black band across the page between brush edges; Makoto beside the
 * hands-raised photo; the samurai drawing as a closing mark. Each part is a Group in the page's
 * text, named by its class, so the words stay the client's.
 */
.jkd-page--jkd {
	overflow-x: clip;
}

.jkd-jkd {
	max-width: 1040px;
	margin: 0 auto;
}

.jkd-jkd p {
	line-height: 1.6;
}

.jkd-jkd__open {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 64px;
	align-items: start;
}

.jkd-jkd__open > * {
	margin: 0;
}

.jkd-jkd p.jkd-jkd__lead {
	font-size: clamp(1.25rem, 2vw, 1.55rem);
	font-weight: 700;
	line-height: 1.35;
	text-wrap: balance;
}

.jkd-jkd__mma {
	max-width: 720px;
	margin: 112px auto 0;
}

.jkd-jkd h2 {
	margin: 0 0 32px;
	font-size: clamp(1.5rem, 2.5vw, 1.95rem);
	line-height: 1.2;
	text-align: center;
	text-wrap: balance;
}

.jkd-jkd .jkd-jkd__epigraph {
	margin: 0 auto 48px;
	padding: 0;
	border: 0;
	text-align: center;
}

.jkd-jkd__epigraph p {
	margin: 0 0 0.3em;
	font-size: 1.15rem;
	font-style: italic;
	line-height: 1.45;
}

.jkd-jkd blockquote cite {
	display: block;
	margin-top: 12px;
	color: var(--wp--preset--color--pink-dark);
	font-size: 0.9rem;
	font-style: normal;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.jkd-jkd__epigraph cite::before,
.jkd-jkd__words cite::before {
	content: "";
}

/* The Tao: a black band across the whole page, white brush edges above and below. */
.jkd-jkd__tao {
	position: relative;
	margin: 112px calc(50% - 50vw) 0;
	padding: calc(88px + 3.3vw) 24px calc(88px + 3.3vw);
	background: var(--wp--preset--color--dark);
	color: var(--wp--preset--color--light);
}

.jkd-jkd__tao > * {
	max-width: 720px;
	margin-inline: auto;
}

.jkd-jkd__tao::before,
.jkd-jkd__tao::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	aspect-ratio: 2600 / 85;
	background: var(--wp--preset--color--light);
	-webkit-mask: url("assets/images/paint-top.png") center bottom / 100% 100% no-repeat;
	mask: url("assets/images/paint-top.png") center bottom / 100% 100% no-repeat;
	pointer-events: none;
}

.jkd-jkd__tao::before {
	top: -1px;
	transform: scaleY(-1);
}

.jkd-jkd__tao::after {
	bottom: -1px;
}

.jkd-jkd__tao h2 {
	margin: 0 auto 12px;
	color: var(--wp--preset--color--light);
}

.jkd-jkd p.jkd-jkd__motto {
	margin-bottom: 48px;
	color: var(--wp--preset--color--pink);
	font-size: clamp(1.2rem, 2vw, 1.45rem);
	text-align: center;
}

.jkd-jkd .jkd-jkd__words {
	margin-top: 40px;
	padding: 0 0 0 28px;
	border-left: 3px solid var(--wp--preset--color--pink);
}

.jkd-jkd__words p {
	font-size: 1.1rem;
	font-style: italic;
}

.jkd-jkd__words cite {
	color: var(--wp--preset--color--pink);
}

/* Makoto, beside the photo. */
.jkd-jkd__makoto {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 56px;
	align-items: center;
	margin-top: 112px;
}

.jkd-jkd__makoto > * {
	margin: 0;
}

.jkd-jkd__photo img {
	display: block;
	width: 100%;
	max-width: 520px;
	height: auto;
	margin-left: auto;
}

.jkd-jkd__makoto-text > :first-child {
	margin-top: 0;
}

/* The samurai drawing closes the page. */
.jkd-jkd__samurai {
	width: 150px;
	aspect-ratio: 280 / 331;
	margin: 96px auto 0;
	background: url("assets/images/samurai-black.png") center / contain no-repeat;
}

@media (max-width: 760px) {
	.jkd-jkd__open,
	.jkd-jkd__makoto {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.jkd-jkd__mma,
	.jkd-jkd__tao,
	.jkd-jkd__makoto {
		margin-top: 72px;
	}

	.jkd-jkd__tao {
		padding: calc(56px + 3.3vw) 16px;
	}

	.jkd-jkd .jkd-jkd__words {
		padding-left: 18px;
	}

	.jkd-jkd__photo img {
		margin: 0 auto;
	}

	.jkd-jkd__samurai {
		width: 120px;
		margin-top: 72px;
	}
}

/*
 * Jeet Kune Do, second pass (Gillian, 2026-11-28): the opening's two blocks centred on each
 * other; "See Making of Makoto" on its own line; the site's brush line above The Original MMA's
 * heading and below the Rodin lines; a pink "About Makoto" heading beside the photo.
 */
.jkd-jkd__open {
	align-items: center;
}

.jkd-jkd__rest > * {
	margin: 0;
}

.jkd-jkd__rest > .jkd-jkd__see {
	margin-top: 0.8em;
}

.jkd-jkd__mma > h2::before,
.jkd-jkd__epigraph::after {
	content: "";
	display: block;
	width: min(440px, 72%);
	aspect-ratio: 3000 / 66;
	margin: 0 auto;
	background: var(--wp--preset--color--dark);
	-webkit-mask: url("assets/images/brush-line.svg") center / 100% 100% no-repeat;
	mask: url("assets/images/brush-line.svg") center / 100% 100% no-repeat;
}

.jkd-jkd__mma > h2::before {
	margin-bottom: 32px;
}

.jkd-jkd__epigraph::after {
	margin-top: 36px;
}

.jkd-jkd h2.jkd-jkd__makoto-heading {
	margin: 0 0 20px;
	color: var(--wp--preset--color--pink-dark);
	text-align: left;
}

/*
 * The Original MMA's text in three parts (Gillian, 2026-11-28, option C): its one-line
 * paragraphs kept, closer together within a part, a wider gap between parts, and each part's
 * opening words (bold in the editor) in pink. No words added.
 */
.jkd-jkd__part > p {
	margin: 0 0 0.55em;
}

.jkd-jkd__part + .jkd-jkd__part {
	margin-top: 2.6em;
}

.jkd-jkd__part > p:first-child > strong:first-child {
	color: var(--wp--preset--color--pink-dark);
}

/*
 * PHILOSOPHY (K-023, option 1): the live Mission and A Modern Tradition pages merged, at Mission's
 * address. A black page. Mission's short lines centred in verses (Groups), each verse's opening
 * words, bold in the editor, in pink; its closing line larger. A Modern Tradition as a white band
 * across the page between brush edges, the inverse of The Tao on Jeet Kune Do. No words added.
 */
.jkd-page--phil {
	overflow-x: clip;
}

.jkd-phil {
	max-width: 680px;
	margin: 0 auto;
	text-align: center;
}

.jkd-phil h2 {
	margin: 0 0 48px;
	color: var(--wp--preset--color--pink);
	font-size: clamp(1.5rem, 2.5vw, 1.95rem);
	line-height: 1.2;
	text-wrap: balance;
}

.jkd-phil__verse > p {
	margin: 0 0 0.45em;
	font-size: 1.1rem;
	line-height: 1.55;
	text-wrap: balance;
}

.jkd-phil__verse + .jkd-phil__verse {
	margin-top: 2.4em;
}

.jkd-phil__verse > p > strong:first-child {
	color: var(--wp--preset--color--pink);
}

.jkd-phil p.jkd-phil__closing {
	margin: 64px 0 0;
	font-size: clamp(1.25rem, 2.2vw, 1.6rem);
	font-style: italic;
	line-height: 1.4;
	text-wrap: balance;
}

/* A Modern Tradition: a white band, black brush edges above and below. */
.jkd-phil__tradition {
	position: relative;
	margin: 112px calc(50% - 50vw) 0;
	padding: calc(88px + 3.3vw) 24px;
	background: var(--wp--preset--color--light);
	color: var(--wp--preset--color--dark);
}

.jkd-phil__tradition > * {
	max-width: 680px;
	margin-inline: auto;
}

.jkd-phil__tradition::before,
.jkd-phil__tradition::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	aspect-ratio: 2600 / 85;
	background: var(--wp--preset--color--dark);
	-webkit-mask: url("assets/images/paint-top.png") center bottom / 100% 100% no-repeat;
	mask: url("assets/images/paint-top.png") center bottom / 100% 100% no-repeat;
	pointer-events: none;
}

.jkd-phil__tradition::before {
	top: -1px;
	transform: scaleY(-1);
}

.jkd-phil__tradition::after {
	bottom: -1px;
}

.jkd-phil__tradition h2 {
	margin-inline: auto;
	color: var(--wp--preset--color--pink-dark);
}

.jkd-phil__tradition .jkd-phil__verse > p > strong:first-child {
	color: var(--wp--preset--color--pink-dark);
}

.jkd-phil__end > p {
	font-size: clamp(1.2rem, 2vw, 1.45rem);
	font-weight: 700;
}

/* The band is the page's last thing: its lower brush edge meets the black footer directly. */
.jkd-page--phil {
	padding-bottom: 0;
}

@media (max-width: 760px) {
	.jkd-phil__verse > p {
		font-size: 1.02rem;
	}

	.jkd-phil__tradition {
		margin-top: 72px;
		padding: calc(56px + 3.3vw) 16px;
	}
}

/*
 * Philosophy branches (Gillian, 2026-11-29): her original branches, one rising on the left from
 * the bottom of Mission's black, white wood; one hanging on the right from the top of A Modern
 * Tradition's white, black wood (branch 2 flipped). Both meet at the brush edge between the two.
 * On a phone, the closing line sits right of the left branch and the heading left of the right
 * one, so the branches add no empty space.
 */
.jkd-phil__tradition > .jkd-phil__branch {
	position: absolute;
	z-index: 1;
	max-width: none;
	height: auto;
	margin: 0;
	pointer-events: none;
}

.jkd-phil__branch--left {
	bottom: calc(100% + 28px);
	left: -10px;
	width: clamp(200px, 24vw, 340px);
	aspect-ratio: 1901.104 / 1564.856;
	color: var(--wp--preset--color--light);
	transform: scaleX(-1);
}

.jkd-phil__branch--right {
	top: calc(0.4vw + 36px);
	right: -10px;
	width: clamp(200px, 24vw, 340px);
	aspect-ratio: 2015.541 / 2188.095;
	color: var(--wp--preset--color--dark);
	transform: rotate(15deg) scaleX(-1);
}

@media (max-width: 760px) {
	.jkd-phil p.jkd-phil__closing {
		margin: 56px 0 0 128px;
		font-size: 1.15rem;
		/* Centred between the branch and the page's right side. */
		text-align: center;
	}

	.jkd-phil__tradition {
		margin-top: 40px;
	}

	.jkd-phil__branch--left {
		bottom: calc(100% + 18px);
		left: -36px;
		width: 168px;
	}

	.jkd-phil__branch--right {
		top: 4px;
		right: -36px;
		width: 168px;
	}

	.jkd-phil__tradition > h2 {
		/* The mirror of the closing line above: centred between the page's left side and the branch. */
		margin-right: 128px;
		margin-left: 0;
		text-align: center;
	}
}

/* The link to Philosophy at the end of The Tao (K-023). */
.jkd-jkd .jkd-jkd__phil-link {
	margin-top: 40px;
}

.jkd-jkd__phil-link .wp-block-button__link:hover,
.jkd-jkd__phil-link .wp-block-button__link:focus-visible {
	color: var(--wp--preset--color--pink);
}

/*
 * JKD CONCEPTS TRAINING on the Classes page (K-024, option 1): the live page's text below the
 * schedule, typed in the Classes page's own editor, in parts (Groups). Its heading between the
 * site's brush lines, as The Original MMA; the opening sentence large beside the rest, as Jeet
 * Kune Do; the four focuses as a centred sequence; the three tiers side by side, each name in pink
 * over a short brush line, as the class descriptions above. No words added.
 */
.jkd-classes__text {
	max-width: 1040px;
	margin: 0 auto;
}

/* The training heading opens the page, so no brush line above it; an extra class closes with
   its own line instead (Gillian, 2026-11-29). */
.jkd-page--classes .jkd-training > h2::before {
	display: none;
}

/* The training text comes first, the schedule after it (Gillian, 2026-11-29). */
.jkd-page--classes .jkd-classes__text + .jkd-schedule {
	margin-top: 112px;
}

.jkd-training p {
	line-height: 1.6;
}

.jkd-training h2 {
	margin: 0 0 48px;
	font-size: clamp(1.5rem, 2.5vw, 1.95rem);
	line-height: 1.2;
	text-align: center;
}

.jkd-training h2::before {
	content: "";
	display: block;
	width: min(440px, 72%);
	aspect-ratio: 3000 / 66;
	margin: 0 auto 32px;
	background: var(--wp--preset--color--dark);
	-webkit-mask: url("assets/images/brush-line.svg") center / 100% 100% no-repeat;
	mask: url("assets/images/brush-line.svg") center / 100% 100% no-repeat;
}

.jkd-training__open {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 64px;
	align-items: center;
}

.jkd-training__open > *,
.jkd-training__rest > * {
	margin: 0;
}

.jkd-training__rest > * + * {
	margin-top: 0.8em;
}

.jkd-training p.jkd-training__lead {
	font-size: clamp(1.25rem, 2vw, 1.55rem);
	font-weight: 700;
	line-height: 1.35;
	text-wrap: balance;
}

.jkd-training__focus {
	max-width: 720px;
	margin: 88px auto 0;
	text-align: center;
}

.jkd-training__focus > p {
	margin: 0 0 20px;
}

.jkd-training .jkd-training__steps {
	margin: 0;
	padding: 0;
	list-style: none;
}

.jkd-training__steps li {
	font-size: clamp(1.1rem, 1.8vw, 1.3rem);
	font-weight: 700;
	line-height: 1.4;
	text-wrap: balance;
}

.jkd-training__steps li + li::before {
	content: "";
	display: block;
	width: 7px;
	height: 7px;
	margin: 14px auto;
	border-radius: 50%;
	background: var(--wp--preset--color--pink-dark);
}

.jkd-training__tiers {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px 32px;
	margin-top: 88px;
}

.jkd-training__tiers > *,
.jkd-training__tier > * {
	margin: 0;
}

.jkd-training__tier h3 {
	color: var(--wp--preset--color--pink-dark);
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.3;
}

.jkd-training__tier h3::after {
	content: "";
	display: block;
	height: 8px;
	margin: 12px 0 14px;
	background: var(--wp--preset--color--dark);
	-webkit-mask: url("assets/images/brush-line.svg") center / 100% 100% no-repeat;
	mask: url("assets/images/brush-line.svg") center / 100% 100% no-repeat;
}

.jkd-training__tier p + p {
	margin-top: 0.8em;
}

@media (max-width: 760px) {
	.jkd-classes__text {
		margin-top: 72px;
	}

	.jkd-training__open,
	.jkd-training__tiers {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.jkd-training__tiers {
		gap: 40px;
	}

	.jkd-training__focus,
	.jkd-training__tiers {
		margin-top: 64px;
	}
}

/*
 * OLDER BROWSERS (Gillian's iPhone 7 on staging, 2026-12-01): overflow: clip, used above to cut
 * off the blossom branches and the paint at the screen's edge, arrived in Safari 16. Safari 15
 * (the last on an iPhone 7) ignores it, so those spill past the edge and the page scrolls
 * sideways. There, the whole site hides what runs past its sides instead, and the testimonials
 * band cuts its branches off as before. Browsers that know overflow: clip skip this.
 */
@supports not (overflow: clip) {
	.wp-site-blocks {
		overflow-x: hidden;
	}

	.jkd-testimonials {
		overflow: hidden;
	}
}
