/* ==========================================================================
   Pankaj Yogpeeth — core.css
   Shared foundation for every page: design tokens, primitives, masthead
   (top bar + navbar). Page-only styles live in their own file (home.css, …).

   Prefix: pyp-  — keeps clear of the Canvas/Bootstrap classes still loaded
   underneath (Bootstrap already owns .py-1 … .py-6).

   Rule: every piece of content exists once in the markup. Mobile and desktop
   are two layouts of the same elements, switched here with media queries.
   ========================================================================== */


/* 0. Fonts — Inter (variable weight + optical size), self-hosted
   ========================================================================== */

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400 700;
	font-display: optional;
	src: url('../fonts/inter-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400 700;
	font-display: optional;
	src: url('../fonts/inter-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* 1. Tokens
   ========================================================================== */

:root {
	/* Brand */
	--pyp-forest: #0f3b27;
	--pyp-green: #1d7044;
	--pyp-green-hover: #185f3a;
	--pyp-leaf: #9ccf68;

	/* Neutrals */
	--pyp-ink: #13221a;
	--pyp-ink-soft: #4b5c52;
	--pyp-paper: #ffffff;
	--pyp-mist: #f2f6f1;
	--pyp-hairline: rgba(15, 59, 39, 0.1);

	/* Type — tracking is size-specific (Inter's dynamic metrics): tighter as text grows */
	--pyp-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
	--pyp-font-menu: var(--cnvs-primary-font, 'Jost', sans-serif); /* dropdown titles, courses, places */

	/* Motion — strong ease-out for anything entering or responding to input */
	--pyp-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
	--pyp-dur-fast: 160ms;
	--pyp-dur: 240ms;
	--pyp-dur-slow: 360ms;
	--pyp-ease-drawer: cubic-bezier(0.32, 0.72, 0, 1); /* iOS sheet curve */
	--pyp-dur-drawer: 460ms;

	/* Shape & depth */
	--pyp-radius: 16px;
	--pyp-radius-sm: 10px;
	--pyp-shadow-panel: 0 1px 1px rgba(15, 59, 39, 0.04), 0 24px 60px -12px rgba(15, 59, 39, 0.28);

	/* Soft surface — glass panels and neumorphic tiles share it so tiles read as pressed out of the panel */
	--pyp-surface: #f3f7f1;
	--pyp-neu-raised: 3px 3px 8px rgba(15, 59, 39, 0.11), -3px -3px 8px rgba(255, 255, 255, 0.95);
	--pyp-glow-green: 0 8px 18px -8px rgba(29, 112, 68, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.25);

	/* Layout — master rule: full width, no max-width; gutter 14px mobile / 28px larger screens */
	--pyp-gutter: 14px;
	--pyp-topbar-h: 36px;
	--pyp-navbar-h: 64px;
}

@media (min-width: 768px) {
	:root {
		--pyp-gutter: 28px;
		--pyp-topbar-h: 40px;
	}
}

@media (min-width: 1100px) {
	:root {
		--pyp-navbar-h: 80px;
	}
}


/* 2. Primitives
   ========================================================================== */

/* No pinch or double-tap zoom anywhere on the site (with the viewport meta's user-scalable=no,
   which iOS Safari ignores; core.js covers its gesture events). Scrolling is unaffected. */
html {
	touch-action: pan-x pan-y;
}


.pyp-container {
	width: 100%;
	padding-inline: var(--pyp-gutter);
}

/* Breadcrumb: a glass trail for dark full-bleed covers (course page, blog). */
.pyp-crumbs ol {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	max-width: 100%;
	margin: 0;
	padding: 5px;
	list-style: none;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	-webkit-backdrop-filter: blur(16px) saturate(160%);
	backdrop-filter: blur(16px) saturate(160%);
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
}

.pyp-crumbs li {
	display: inline-flex;
	align-items: center;
	min-width: 0;
}

.pyp-crumbs li + li::before {
	content: '';
	flex-shrink: 0;
	width: 6px;
	height: 6px;
	margin: 0 6px 0 3px;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	color: rgba(255, 255, 255, 0.55);
	transform: rotate(45deg);
}

.pyp-crumbs :is(a, span) {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 11px;
	border-radius: 999px;
	color: rgba(255, 255, 255, 0.82);
	white-space: nowrap;
	text-decoration: none;
	transition: background-color var(--pyp-dur-fast) var(--pyp-ease-out), color var(--pyp-dur-fast) var(--pyp-ease-out);
}

.pyp-crumbs a:hover {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
}

.pyp-crumbs a:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 1px;
}

.pyp-crumbs [aria-current] span {
	display: block;
	max-width: 32ch;
	overflow: hidden;
	color: #fff;
	font-weight: 600;
	text-overflow: ellipsis;
}

.pyp-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* The legacy theme pushed the page down for its old fixed mobile header. */
@media (max-width: 768px) {
	body {
		margin-top: 0;
	}
}

/* The legacy theme sets overflow-x: hidden on #wrapper (mobile), which turns it
   into a scroll container and silently breaks position: sticky. clip trims the
   same overflow without creating one. */
#wrapper {
	overflow-x: clip !important;
	overflow-y: visible !important;
}


/* 3. Masthead — top bar + navbar, sticky as one unit
   ========================================================================== */

.pyp-masthead {
	position: sticky;
	/* Negative top: the top bar scrolls away naturally, the navbar stays pinned. */
	top: calc(-1 * var(--pyp-topbar-h));
	z-index: 400;
	font-family: var(--pyp-font-sans);
	font-optical-sizing: auto;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

.pyp-masthead :where(ul, p) {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pyp-masthead a {
	text-decoration: none;
}

.pyp-masthead :focus-visible {
	outline: 2px solid var(--pyp-leaf);
	outline-offset: 2px;
}


/* 3a. Top bar
   -------------------------------------------------------------------------- */

.pyp-topbar {
	height: var(--pyp-topbar-h);
	background: var(--pyp-forest);
	color: rgba(255, 255, 255, 0.8);
	/* A touch heavier than body weight: light text on a dark band reads thin. */
	font: 450 12.5px/1 var(--pyp-font-sans);
	letter-spacing: 0;
}

.pyp-topbar__inner {
	display: flex;
	align-items: center;
	gap: 20px;
	height: 100%;
}

.pyp-topbar__locations {
	display: none;
	align-items: center;
	gap: 8px;
}

.pyp-topbar__locations .bi {
	color: var(--pyp-leaf);
}

.pyp-topbar__dot {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.5;
}

.pyp-topbar__contact,
.pyp-topbar__social {
	display: flex;
	align-items: center;
	gap: 2px;
}

.pyp-topbar__social {
	margin-left: auto;
}

.pyp-topbar__link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	height: 28px;
	padding: 0 9px;
	border-radius: 999px;
	color: inherit;
	white-space: nowrap;
	transition: color var(--pyp-dur-fast) var(--pyp-ease-out), background-color var(--pyp-dur-fast) var(--pyp-ease-out);
}

.pyp-topbar__link .bi {
	font-size: 13px;
	color: var(--pyp-leaf);
}

.pyp-topbar__link--icon {
	justify-content: center;
	width: 30px;
	padding: 0;
}

.pyp-topbar__link--icon .bi {
	color: inherit;
}

.pyp-topbar__link:focus-visible {
	color: #fff;
}

@media (hover: hover) {
	.pyp-topbar__link:hover {
		color: #fff;
		background-color: rgba(255, 255, 255, 0.08);
	}
}

/* Phones: secondary labels fold into their icons — the text stays for screen readers. */
@media (max-width: 767.98px) {
	.pyp-topbar__contact {
		margin-left: -9px;
	}

	.pyp-topbar__label:not(.pyp-topbar__label--keep) {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.pyp-topbar__social {
		margin-right: -6px;
	}
}

@media (min-width: 992px) {
	.pyp-topbar__locations {
		display: flex;
	}

	.pyp-topbar__contact {
		margin-left: auto;
	}

	.pyp-topbar__social {
		margin-left: 0;
		padding-left: 12px;
		border-left: 1px solid rgba(255, 255, 255, 0.14);
	}
}


/* 3b. Navbar
   -------------------------------------------------------------------------- */

.pyp-navbar {
	position: relative;
	isolation: isolate;
	height: var(--pyp-navbar-h);
	color: var(--pyp-ink);
}

/* The glass material lives on a pseudo-element: backdrop-filter on the navbar
   itself would trap the fixed-position mobile sheet inside it. */
.pyp-navbar::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(255, 255, 255, 0.82);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	backdrop-filter: saturate(180%) blur(20px);
	box-shadow: 0 1px 0 var(--pyp-hairline);
	transition: opacity var(--pyp-dur) var(--pyp-ease-out), box-shadow var(--pyp-dur) var(--pyp-ease-out);
}

/* Scroll edge: a soft falloff instead of a hard divider once content slides under. */
.pyp-masthead.is-scrolled .pyp-navbar::before {
	box-shadow: 0 1px 0 var(--pyp-hairline), 0 10px 30px -18px rgba(15, 59, 39, 0.35);
}

.pyp-navbar__inner {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	height: 100%;
}

.pyp-brand {
	display: flex;
	align-items: center;
	height: 100%;
	margin-right: auto;
	border-radius: 8px;
}

.pyp-brand__logo {
	display: block;
	width: auto;
	height: 38px;
	transition: filter var(--pyp-dur) var(--pyp-ease-out);
}

/* Overlay variant — transparent over a hero until the top bar has scrolled away. */
.pyp-masthead--overlay .pyp-navbar {
	color: #fff;
}

.pyp-masthead--overlay .pyp-navbar::before {
	opacity: 0;
}

/* A gentle scrim keeps white links legible over any hero image. */
.pyp-masthead--overlay .pyp-navbar::after {
	content: '';
	position: absolute;
	inset: 0 0 -48px;
	z-index: -2;
	background: linear-gradient(to bottom, rgba(8, 24, 16, 0.5), rgba(8, 24, 16, 0));
	pointer-events: none;
	transition: opacity var(--pyp-dur) var(--pyp-ease-out);
}

.pyp-masthead--overlay .pyp-brand__logo {
	filter: brightness(0) invert(1);
}

.pyp-masthead--overlay.is-scrolled .pyp-navbar,
.pyp-masthead--overlay.is-menu-open .pyp-navbar {
	color: var(--pyp-ink);
}

.pyp-masthead--overlay.is-scrolled .pyp-navbar::before,
.pyp-masthead--overlay.is-menu-open .pyp-navbar::before {
	opacity: 1;
}

.pyp-masthead--overlay.is-scrolled .pyp-navbar::after,
.pyp-masthead--overlay.is-menu-open .pyp-navbar::after {
	opacity: 0;
}

.pyp-masthead--overlay.is-scrolled .pyp-brand__logo,
.pyp-masthead--overlay.is-menu-open .pyp-brand__logo {
	filter: none;
}


/* 3c. Menu toggle (mobile only)
   -------------------------------------------------------------------------- */

.pyp-menu-toggle {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: 46px;
	height: 50px;
	margin-right: -8px;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: inherit;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition:
		transform 120ms var(--pyp-ease-out),
		translate var(--pyp-dur-drawer) var(--pyp-ease-drawer);
	/* Stays above the drawer: the same button becomes its close control. */
	position: relative;
	z-index: 3;
}

/* With the menu open, the close button glides up into the panel's header row
   (core.js sets --pyp-navbar-top: how far the navbar sits below the top edge). */
.pyp-masthead.is-menu-open .pyp-menu-toggle {
	translate: 0 calc(-1 * var(--pyp-navbar-top, 0px));
}

.pyp-menu-toggle:active {
	transform: scale(0.92);
}

/* Three lines: the middle one is the element's own background, the outer two its pseudo-elements */
.pyp-menu-toggle__bars {
	position: relative;
	width: 22px;
	height: 14px;
	background: linear-gradient(currentColor, currentColor) center / 100% 1.75px no-repeat;
	transition: background-size var(--pyp-dur) var(--pyp-ease-out);
}

.pyp-menu-toggle__label {
	font: 600 9px/1 var(--pyp-font-sans);
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.pyp-menu-toggle__bars::before,
.pyp-menu-toggle__bars::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	height: 1.75px;
	border-radius: 2px;
	background: currentColor;
	transition: transform var(--pyp-dur) var(--pyp-ease-out);
}

.pyp-menu-toggle__bars::before {
	top: 0;
}

.pyp-menu-toggle__bars::after {
	bottom: 0;
}

/* Open: the middle line draws in, the outer two cross into an X */
.pyp-menu-toggle[aria-expanded="true"] .pyp-menu-toggle__bars {
	background-size: 0 1.75px;
}

.pyp-menu-toggle[aria-expanded="true"] .pyp-menu-toggle__bars::before {
	transform: translateY(6.125px) rotate(45deg);
}

.pyp-menu-toggle[aria-expanded="true"] .pyp-menu-toggle__bars::after {
	transform: translateY(-6.125px) rotate(-45deg);
}


/* 3d. Navigation — mobile layout: a full-height side panel (60vw) that slides in from the right
   -------------------------------------------------------------------------- */

/* Dimmed backdrop behind the panel; tapping it closes the menu (core.js). */
.pyp-navbar__inner::before {
	content: '';
	position: fixed;
	inset: 0;
	z-index: 1;
	background: rgba(6, 22, 14, 0.45);
	opacity: 0;
	visibility: hidden;
	-webkit-tap-highlight-color: transparent;
	transition:
		opacity var(--pyp-dur-drawer) var(--pyp-ease-drawer),
		visibility 0s linear var(--pyp-dur-drawer);
}

.pyp-masthead.is-menu-open .pyp-navbar__inner::before {
	/* Fades with the drawer while it is being swiped away (--pyp-drawer-drag: 0 → 1). */
	opacity: calc(1 - var(--pyp-drawer-drag, 0));
	visibility: visible;
	transition-delay: 0s;
}

.pyp-nav {
	position: fixed;
	/* top + bottom (not 100vh) so it matches the visible screen when the browser bars show */
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	width: 80vw;
	/* Header row (title + close button) is the navbar's height; the list scrolls, the footer stays put. */
	padding-top: var(--pyp-navbar-h);
	overflow: hidden;
	touch-action: pan-y;
	background: var(--pyp-surface);
	box-shadow: -16px 0 40px -18px rgba(6, 22, 14, 0.5);
	color: var(--pyp-ink);
	visibility: hidden;
	/* Parked off-screen to the right; the extra 40px also hides the shadow. */
	transform: translate3d(calc(100% + 40px), 0, 0);
	transition:
		transform var(--pyp-dur-drawer) var(--pyp-ease-drawer),
		visibility 0s linear var(--pyp-dur-drawer);
}

/* Header title, level with the close button */
.pyp-nav::before {
	content: 'Menu';
	position: absolute;
	top: calc(var(--pyp-navbar-h) / 2);
	left: 18px;
	transform: translateY(-50%);
	font: 600 19px/1 var(--pyp-font-sans);
	letter-spacing: -0.015em;
	color: var(--pyp-ink);
}

.pyp-masthead.is-menu-open .pyp-nav {
	visibility: visible;
	/* --pyp-drawer-x follows the finger during a swipe-to-close. */
	transform: translate3d(var(--pyp-drawer-x, 0px), 0, 0);
	transition-delay: 0s;
}

/* While a finger is dragging the drawer, it tracks 1:1: no easing in the way. */
.pyp-masthead.is-dragging .pyp-nav,
.pyp-masthead.is-dragging .pyp-navbar__inner::before {
	transition: none;
}

.pyp-nav__list {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-height: 0;
	padding: 4px 16px calc(24px + env(safe-area-inset-bottom));
	overflow-y: auto;
	overscroll-behavior: contain;
	border-top: 1px solid var(--pyp-hairline);
	/* Soft edge where the list scrolls under the footer */
	-webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 20px), transparent);
	mask-image: linear-gradient(to bottom, #000 calc(100% - 20px), transparent);
}

.pyp-nav__item {
	border-bottom: 1px solid var(--pyp-hairline);
}

.pyp-nav__item:last-child {
	border-bottom: 0;
}

.pyp-nav__link {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
	width: 100%;
	min-height: 62px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: 500 16px/1.2 var(--pyp-font-sans);
	letter-spacing: -0.011em;
	text-align: left;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background-color var(--pyp-dur-fast) var(--pyp-ease-out), opacity var(--pyp-dur-fast) var(--pyp-ease-out);
}

a.pyp-nav__link:hover,
a.pyp-nav__link:focus {
	color: inherit;
}

.pyp-nav__link:active {
	opacity: 0.6;
}

/* Primary icons (mobile only): small neumorphic tiles that light up when their section is open */
.pyp-nav__icon {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: var(--pyp-surface);
	box-shadow: 3px 3px 8px rgba(15, 59, 39, 0.12), -3px -3px 8px rgba(255, 255, 255, 0.95);
	color: var(--pyp-green);
	font-size: 17px;
	transition: background-color var(--pyp-dur) var(--pyp-ease-out), color var(--pyp-dur-fast) var(--pyp-ease-out), box-shadow var(--pyp-dur) var(--pyp-ease-out);
}

.pyp-nav__icon::before {
	line-height: 1;
}

.pyp-nav__text {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
	text-align: left;
}

/* One-line summary under each parent item (mobile only) */
.pyp-nav__note {
	font: 400 12.5px/1.3 var(--pyp-font-sans);
	letter-spacing: 0;
	color: var(--pyp-ink-soft);
}

.pyp-nav__item.is-open > .pyp-nav__link .pyp-nav__icon,
.pyp-nav__link:active .pyp-nav__icon {
	background-color: var(--pyp-green);
	box-shadow: var(--pyp-glow-green);
	color: #fff;
}

.pyp-nav__chevron {
	margin-left: auto;
	font-size: 14px;
	opacity: 0.55;
	transition: transform var(--pyp-dur) var(--pyp-ease-out);
}

.pyp-nav__trigger[aria-expanded="true"] .pyp-nav__chevron {
	transform: rotate(180deg);
}

/* Panels are accordions on mobile */
.pyp-nav__panel {
	display: grid;
	grid-template-rows: 0fr;
	visibility: hidden;
	transition:
		grid-template-rows var(--pyp-dur-slow) var(--pyp-ease-out),
		visibility 0s linear var(--pyp-dur-slow);
}

.pyp-nav__item.is-open > .pyp-nav__panel {
	grid-template-rows: 1fr;
	visibility: visible;
	transition-delay: 0s;
}

.pyp-nav__panel-clip {
	min-height: 0;
	overflow: hidden;
}

/* Icon + neumorphic tile (shared by every panel) */
.pyp-icon {
	display: block;
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	fill: currentColor;
}

/* Location / programme icons uploaded in manage (transparent images): the image is a mask, the colour is the text colour */
.pyp-icon--upload {
	background-color: currentColor;
	/* The images keep ~15% breathing room on each side for the home page; trim it here. */
	-webkit-mask: var(--pyp-icon-src) center / 140% no-repeat;
	mask: var(--pyp-icon-src) center / 140% no-repeat;
}

.pyp-tile {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 13px;
	background: var(--pyp-surface);
	box-shadow: var(--pyp-neu-raised);
	color: var(--pyp-green);
	transition:
		background-color var(--pyp-dur) var(--pyp-ease-out),
		box-shadow var(--pyp-dur) var(--pyp-ease-out),
		color var(--pyp-dur-fast) var(--pyp-ease-out),
		transform 140ms var(--pyp-ease-out);
}

.pyp-tile--lg {
	width: 46px;
	height: 46px;
	border-radius: 14px;
}

.pyp-tile--lg .pyp-icon {
	width: 26px;
	height: 26px;
}

/* Lit state: green fill, white glyph, tinted glow */
.pyp-menu__item:active .pyp-tile,
.pyp-menu__item:focus-visible .pyp-tile {
	background-color: var(--pyp-green);
	box-shadow: var(--pyp-glow-green);
	color: #fff;
}

.pyp-menu__item:active .pyp-tile {
	transform: scale(0.94);
}

/* Simple panels: icon, title, one-line description */
.pyp-menu {
	display: grid;
	gap: 2px;
	padding: 6px 0 16px;
}

.pyp-menu__item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 12px;
	border-radius: 16px;
	color: var(--pyp-ink);
	-webkit-tap-highlight-color: transparent;
	transition: background-color var(--pyp-dur-fast) var(--pyp-ease-out), box-shadow var(--pyp-dur-fast) var(--pyp-ease-out);
}

.pyp-menu__item:hover,
.pyp-menu__item:focus {
	color: var(--pyp-ink);
}

.pyp-menu__text {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.pyp-menu__title {
	font: 500 16.5px/1.2 var(--pyp-font-menu);
	letter-spacing: 0.005em;
}

.pyp-menu__desc {
	font: 400 13px/1.35 var(--pyp-font-sans);
	letter-spacing: -0.003em;
	color: var(--pyp-ink-soft);
}

.pyp-menu__arrow,
.pyp-course__arrow {
	flex-shrink: 0;
	font-size: 14px;
	color: var(--pyp-green);
	opacity: 0;
	transform: translateX(-6px);
	transition: opacity var(--pyp-dur-fast) var(--pyp-ease-out), transform var(--pyp-dur) var(--pyp-ease-out);
}

/* Courses: location -> programme type -> course */
.pyp-mega {
	padding: 8px 0 16px;
}

.pyp-mega__group + .pyp-mega__group {
	margin-top: 24px;
}

.pyp-mega__head {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 0 12px 4px;
}

.pyp-mega__place {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.pyp-mega__title {
	font: 600 18px/1.1 var(--pyp-font-menu);
	letter-spacing: 0.005em;
	color: var(--pyp-ink);
}

/* A programme's label opens its page */
.pyp-mega__sub a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: inherit;
	text-decoration: none;
	transition: color var(--pyp-dur-fast) var(--pyp-ease-out);
}

@media (hover: hover) {
	.pyp-mega__sub a:hover {
		color: var(--pyp-green);
	}
}

/* The centre's name opens its course page */
a.pyp-mega__title {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
}

a.pyp-mega__title .bi {
	font-size: 13px;
	color: var(--pyp-green);
	transition: transform var(--pyp-dur) var(--pyp-ease-out);
}

@media (hover: hover) {
	a.pyp-mega__title:hover {
		color: var(--pyp-green);
	}

	a.pyp-mega__title:hover .bi {
		transform: translateX(3px);
	}
}

.pyp-mega__country {
	font: 600 10.5px/1 var(--pyp-font-sans);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pyp-green);
}

.pyp-mega__sub {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 18px 12px 4px;
	font: 600 11px/1 var(--pyp-font-sans);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pyp-ink-soft);
}

.pyp-mega__sub .pyp-icon {
	width: 16px;
	height: 16px;
	color: var(--pyp-green);
}

/* Indented to sit under the programme label's text, past its icon */
.pyp-course {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 44px;
	padding: 10px 12px 10px 36px;
	border-radius: 12px;
	color: var(--pyp-ink);
	font: 500 15.5px/1.3 var(--pyp-font-menu);
	letter-spacing: 0.005em;
	-webkit-tap-highlight-color: transparent;
	transition: background-color var(--pyp-dur-fast) var(--pyp-ease-out), color var(--pyp-dur-fast) var(--pyp-ease-out);
}

.pyp-course:hover,
.pyp-course:focus {
	color: var(--pyp-forest);
}

.pyp-course:active {
	background-color: rgba(29, 112, 68, 0.08);
}

/* About: the school's pages, and the gurus with their faces */
.pyp-mega__head .pyp-mega__all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
	font: 600 12.5px/1 var(--pyp-font-sans);
	color: var(--pyp-green);
	white-space: nowrap;
}

.pyp-mega__all .bi {
	transition: transform var(--pyp-dur) var(--pyp-ease-out);
}

.pyp-mega-page,
.pyp-mega-person {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 52px;
	padding: 8px 10px;
	border-radius: 14px;
	color: var(--pyp-ink);
	-webkit-tap-highlight-color: transparent;
	transition: background-color var(--pyp-dur-fast) var(--pyp-ease-out), box-shadow var(--pyp-dur-fast) var(--pyp-ease-out);
}

.pyp-mega-page:active,
.pyp-mega-person:active {
	background-color: rgba(29, 112, 68, 0.08);
}

.pyp-mega-page .pyp-tile {
	flex-shrink: 0;
}

.pyp-mega-page__text,
.pyp-mega-person__text {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.pyp-mega-page__title,
.pyp-mega-person__name {
	font: 500 15px/1.2 var(--pyp-font-menu);
	color: var(--pyp-ink);
}

.pyp-mega-page__desc,
.pyp-mega-person__role {
	overflow: hidden;
	font: 400 12.5px/1.3 var(--pyp-font-sans);
	color: var(--pyp-ink-soft);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pyp-mega-person__photo {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border: 2px solid #fff;
	border-radius: 50%;
	object-fit: cover;
	object-position: 50% 22%;
	box-shadow: 0 4px 10px -4px rgba(15, 59, 39, 0.35);
	transition: transform var(--pyp-dur) var(--pyp-ease-out);
}

.pyp-mega-person__badge {
	margin-left: 4px;
	padding: 2px 6px;
	border-radius: 999px;
	background: rgba(29, 112, 68, 0.1);
	font: 600 9px/1.4 var(--pyp-font-sans);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	vertical-align: 2px;
	color: var(--pyp-green);
}

@media (hover: hover) {
	.pyp-mega-page:hover,
	.pyp-mega-person:hover {
		background-color: rgba(255, 255, 255, 0.72);
		box-shadow: 0 1px 2px rgba(15, 59, 39, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
	}

	.pyp-mega-person:hover .pyp-mega-person__photo {
		transform: scale(1.08);
	}

	.pyp-mega-person:hover .pyp-course__arrow {
		opacity: 1;
		transform: none;
	}

	.pyp-mega__all:hover .bi {
		transform: translateX(3px);
	}
}

/* Phones and tablets: the gurus in two columns, like an app's contact grid */
@media (max-width: 1099.98px) {
	.pyp-mega__people {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 6px;
		margin-top: 6px;
	}

	.pyp-mega-person {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
		padding: 10px;
		background: rgba(255, 255, 255, 0.75);
		box-shadow: 0 1px 2px rgba(15, 59, 39, 0.06), inset 0 1px 0 #fff;
	}

	.pyp-mega-person .pyp-course__arrow {
		display: none;
	}

	.pyp-mega-person__name {
		font-size: 13.5px;
	}

	.pyp-mega-person__role {
		font-size: 11.5px;
		white-space: normal;
	}

	.pyp-mega-page {
		min-height: 48px;
		padding: 6px;
	}

	.pyp-mega-page__desc {
		font-size: 12px;
	}
}

/* Courses panel card: deep green. On top, "Coming up next" (file/common/header.php): the next three
   starts as glass rows with a white date tile, under a photo of the first one that fades into the
   green (desktop). At the foot, the guidance link with its glass lotus. */
.pyp-mega__aside {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 22px 0 0;
	padding: 16px;
	border-radius: 20px;
	overflow: hidden;
	background:
		radial-gradient(120% 90% at 100% 0%, rgba(156, 207, 104, 0.38), transparent 60%),
		linear-gradient(155deg, var(--pyp-green) 0%, var(--pyp-forest) 100%);
	color: #fff;
}

.pyp-mega__aside-photo {
	display: none; /* desktop only */
}

.pyp-mega__aside-eyebrow {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font: 600 11px/1 var(--pyp-font-sans);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--pyp-leaf);
}

.pyp-mega__aside-dot {
	position: relative;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--pyp-leaf);
}

.pyp-mega__aside-dot::after {
	content: '';
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	border: 1px solid var(--pyp-leaf);
	opacity: 0;
	animation: pyp-next-pulse 2.4s var(--pyp-ease-out) infinite;
}

@keyframes pyp-next-pulse {
	0% { opacity: 0.8; transform: scale(0.5); }
	70%, 100% { opacity: 0; transform: scale(1.4); }
}

.pyp-mega-next {
	display: grid;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pyp-mega-next__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 12px 8px 8px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.1);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
	color: #fff;
	text-decoration: none;
	transition: background-color var(--pyp-dur-fast) var(--pyp-ease-out), border-color var(--pyp-dur-fast) var(--pyp-ease-out), transform 140ms var(--pyp-ease-out);
}

.pyp-mega-next__item:hover,
.pyp-mega-next__item:focus {
	color: #fff;
}

.pyp-mega-next__item:active {
	transform: scale(0.98);
}

.pyp-mega-next__item:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.pyp-mega-next__date {
	display: grid;
	flex-shrink: 0;
	place-content: center;
	justify-items: center;
	gap: 3px;
	width: 46px;
	height: 48px;
	border-radius: 11px;
	background: #fff;
	box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.45);
	color: var(--pyp-forest);
}

.pyp-mega-next__date b {
	font: 600 17px/1 var(--pyp-font-menu);
	letter-spacing: -0.01em;
}

.pyp-mega-next__date small {
	font: 600 9.5px/1 var(--pyp-font-sans);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pyp-green);
}

.pyp-mega-next__text {
	display: grid;
	flex: 1 1 auto;
	gap: 3px;
	min-width: 0;
}

.pyp-mega-next__title {
	font: 500 15px/1.2 var(--pyp-font-menu);
	text-wrap: balance;
}

.pyp-mega-next__meta {
	overflow: hidden;
	font: 400 12px/1.2 var(--pyp-font-sans);
	color: rgba(255, 255, 255, 0.72);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pyp-mega-next__go {
	flex-shrink: 0;
	font-size: 13px;
	opacity: 0.6;
	transition: transform var(--pyp-dur) var(--pyp-ease-out), opacity var(--pyp-dur-fast) var(--pyp-ease-out);
}

/* Guidance link at the foot */
/* The course menu's link to every course (courses.php), under "Coming up next" */
.pyp-mega .pyp-mega__aside-all {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	align-self: flex-start;
	margin: 6px 0 4px;
	font: 600 13.5px/1 var(--pyp-font-sans);
	color: var(--pyp-leaf);
	text-decoration: none;
}

.pyp-mega__aside-all .bi {
	transition: transform var(--pyp-dur) var(--pyp-ease-out);
}

@media (hover: hover) {
	.pyp-mega .pyp-mega__aside-all:hover {
		color: #fff;
	}

	.pyp-mega__aside-all:hover .bi {
		transform: translateX(3px);
	}
}

.pyp-mega__aside-help {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #fff;
	text-decoration: none;
	transition: transform 140ms var(--pyp-ease-out);
}

.pyp-mega__aside.has-next .pyp-mega__aside-help {
	margin-top: 4px;
	padding-top: 12px;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.pyp-mega__aside-help:hover,
.pyp-mega__aside-help:focus {
	color: #fff;
}

.pyp-mega__aside-help:active {
	transform: scale(0.98);
}

.pyp-mega__aside-help:focus-visible {
	border-radius: 12px;
	outline: 2px solid #fff;
	outline-offset: 4px;
}

.pyp-mega__aside-glyph {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 13px;
	background: rgba(255, 255, 255, 0.12);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 10px 24px -12px rgba(0, 0, 0, 0.45);
	color: #fff;
}

.pyp-mega__aside-glyph .pyp-icon {
	width: 23px;
	height: 23px;
}

.pyp-mega__aside-help-text {
	display: grid;
	flex: 1 1 auto;
	gap: 4px;
	min-width: 0;
}

.pyp-mega__aside-help-eyebrow {
	font: 600 10.5px/1 var(--pyp-font-sans);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--pyp-leaf);
}

.pyp-mega__aside-title {
	font: 500 16px/1.25 var(--pyp-font-menu);
	letter-spacing: 0.002em;
}

.pyp-mega__aside-cta {
	flex-shrink: 0;
	font-size: 15px;
}

.pyp-mega__aside-cta .bi,
.pyp-cta__arrow {
	transition: transform var(--pyp-dur) var(--pyp-ease-out);
}

/* Hover (pointer devices only): row lifts to glass, tile lights up, arrow arrives */
@media (hover: hover) {
	.pyp-menu__item:hover {
		background-color: rgba(255, 255, 255, 0.72);
		box-shadow: 0 1px 2px rgba(15, 59, 39, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
	}

	.pyp-menu__item:hover .pyp-tile {
		background-color: var(--pyp-green);
		box-shadow: var(--pyp-glow-green);
		color: #fff;
	}

	.pyp-course:hover {
		background-color: rgba(255, 255, 255, 0.72);
	}

	.pyp-menu__item:hover .pyp-menu__arrow,
	.pyp-course:hover .pyp-course__arrow {
		opacity: 1;
		transform: none;
	}

	.pyp-mega-next__item:hover {
		border-color: rgba(255, 255, 255, 0.3);
		background-color: rgba(255, 255, 255, 0.18);
	}

	.pyp-mega-next__item:hover .pyp-mega-next__go {
		opacity: 1;
		transform: translate(2px, -2px);
	}
}

.pyp-menu__item:focus-visible .pyp-menu__arrow,
.pyp-course:focus-visible .pyp-course__arrow {
	opacity: 1;
	transform: none;
}

/* Primary action — phones: a compact "Enquiry" pill with a yoga figure, beside the menu button */
.pyp-cta {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 36px;
	padding: 0 13px 0 5px;
	border-radius: 999px;
	background: var(--pyp-green);
	box-shadow: 0 8px 18px -10px rgba(29, 112, 68, 0.85);
	color: #fff;
	font: 600 12.5px/1 var(--pyp-font-sans);
	letter-spacing: 0.01em;
	-webkit-tap-highlight-color: transparent;
	transition:
		background-color var(--pyp-dur-fast) var(--pyp-ease-out),
		color var(--pyp-dur-fast) var(--pyp-ease-out),
		transform 120ms var(--pyp-ease-out);
}

.pyp-cta__icon {
	flex-shrink: 0;
	width: 26px;
	height: 26px;
	padding: 4px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	fill: currentColor;
}

/* Short label on phones, from the same element (screen readers get "Enquire now" from aria-label) */
.pyp-cta__label {
	font-size: 0;
}

.pyp-cta__label::after {
	content: attr(data-short);
	font-size: 12.5px;
}

.pyp-cta__arrow {
	display: none;
}

.pyp-cta:hover,
.pyp-cta:focus {
	background: var(--pyp-green-hover);
	color: #fff;
}

.pyp-cta:active {
	transform: scale(0.96);
}

@media (hover: hover) {
	.pyp-cta:hover .pyp-cta__arrow,
	.pyp-mega__aside-help:hover .pyp-mega__aside-cta {
		transform: translateX(3px);
	}
}


/* Compact panel contents for the narrow mobile side panel */
@media (max-width: 1099.98px) {
	/* Simple sections open as a two-column grid of cards, like an app's quick actions */
	.pyp-menu {
		grid-template-columns: 1fr 1fr;
		gap: 8px;
		padding: 2px 0 16px;
	}

	.pyp-menu > li {
		display: flex;
	}

	.pyp-menu__item {
		flex: 1;
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
		padding: 12px;
		border-radius: 14px;
		background: rgba(255, 255, 255, 0.75);
		box-shadow: 0 1px 2px rgba(15, 59, 39, 0.06), inset 0 1px 0 #fff;
	}

	.pyp-menu__item:active {
		background: #fff;
	}

	.pyp-menu .pyp-tile {
		width: 32px;
		height: 32px;
		border-radius: 10px;
	}

	.pyp-menu .pyp-tile .pyp-icon {
		width: 18px;
		height: 18px;
	}

	.pyp-menu__title {
		font-size: 13.5px;
		line-height: 1.25;
	}

	.pyp-menu__desc {
		display: none;
	}

	.pyp-menu__arrow {
		display: none;
	}

	.pyp-mega {
		padding: 4px 0 12px;
	}

	.pyp-mega__group + .pyp-mega__group {
		margin-top: 18px;
	}

	.pyp-mega__head {
		gap: 10px;
		padding: 0 6px 2px;
	}

	.pyp-tile--lg {
		width: 34px;
		height: 34px;
		border-radius: 10px;
	}

	.pyp-tile--lg .pyp-icon {
		width: 20px;
		height: 20px;
	}

	.pyp-mega__title {
		font-size: 15.5px;
	}

	.pyp-mega__country {
		font-size: 9.5px;
	}

	.pyp-mega__sub {
		margin: 12px 6px 2px;
		font-size: 10px;
	}

	.pyp-mega__sub .pyp-icon {
		width: 14px;
		height: 14px;
	}

	.pyp-course {
		min-height: 38px;
		padding: 8px 6px 8px 28px;
		font-size: 14px;
	}

	.pyp-mega__aside {
		gap: 8px;
		margin-top: 16px;
		padding: 14px;
		border-radius: 14px;
	}

	.pyp-mega__aside-glyph {
		width: 38px;
		height: 38px;
		border-radius: 12px;
	}

	.pyp-mega__aside-glyph .pyp-icon {
		width: 21px;
		height: 21px;
	}

	.pyp-mega__aside-title {
		font-size: 15px;
	}
}


/* 3e. Navigation — desktop layout: inline bar with floating panels
   -------------------------------------------------------------------------- */

@media (min-width: 1100px) {
	.pyp-brand__logo {
		height: 46px;
	}

	.pyp-menu-toggle {
		display: none;
	}

	.pyp-navbar__inner::before,
	.pyp-nav::before,
	.pyp-nav__icon,
	.pyp-nav__note {
		display: none;
	}

	.pyp-nav__text {
		display: inline;
	}

	.pyp-nav {
		position: static;
		z-index: auto;
		width: auto;
		border-radius: 0;
		touch-action: auto;
		flex-direction: row;
		align-items: center;
		gap: 14px;
		height: 100%;
		padding: 0;
		overflow: visible;
		box-shadow: none;
		background: none;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		box-shadow: none;
		color: inherit;
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: none;
	}

	.pyp-nav__list {
		flex: none;
		min-height: 0;
		padding: 0;
		overflow: visible;
		border-top: 0;
		-webkit-mask-image: none;
		mask-image: none;
		flex-direction: row;
		align-items: center;
		gap: 2px;
		height: 100%;
	}

	.pyp-nav__item {
		position: relative;
		display: flex;
		align-items: center;
		height: 100%;
		border: 0;
	}

	/* The courses panel spans the container, so it anchors to the navbar instead. */
	.pyp-nav__item--mega {
		position: static;
	}

	.pyp-nav__link {
		justify-content: center;
		gap: 6px;
		width: auto;
		min-height: 40px;
		padding: 0 14px;
		border-radius: 999px;
		font-size: 14.5px;
		letter-spacing: -0.006em;
	}

	.pyp-nav__link:active {
		opacity: 1;
		transform: scale(0.97);
	}

	.pyp-nav__item.is-open > .pyp-nav__link {
		background-color: rgba(15, 59, 39, 0.07);
	}

	.pyp-masthead--overlay:not(.is-scrolled) .pyp-nav__item.is-open > .pyp-nav__link {
		background-color: rgba(255, 255, 255, 0.16);
	}

	.pyp-nav__chevron {
		font-size: 11px;
	}

	/* Floating card, grown from its trigger */
	.pyp-nav__panel {
		position: absolute;
		top: calc(100% - 12px);
		left: 50%;
		display: block;
		min-width: 250px;
		transform-origin: top center;
		opacity: 0;
		transform: translate(-50%, -6px) scale(0.98);
		transition:
			opacity var(--pyp-dur-fast) var(--pyp-ease-out),
			transform var(--pyp-dur) var(--pyp-ease-out),
			visibility 0s linear var(--pyp-dur);
	}

	.pyp-nav__item.is-open > .pyp-nav__panel {
		opacity: 1;
		transform: translate(-50%, 0) scale(1);
	}

	.pyp-nav__panel--mega {
		left: var(--pyp-gutter);
		right: var(--pyp-gutter);
		min-width: 0;
		transform: translateY(-6px) scale(0.99);
	}

	.pyp-nav__item.is-open > .pyp-nav__panel--mega {
		transform: none;
	}

	/* Glass: frosted soft surface, light catching the top edge, layered depth */
	.pyp-nav__panel-clip {
		overflow: visible;
		padding: 10px;
		border: 1px solid rgba(255, 255, 255, 0.75);
		border-radius: 22px;
		background: linear-gradient(180deg, rgba(248, 251, 247, 0.9) 0%, rgba(241, 246, 239, 0.86) 100%);
		-webkit-backdrop-filter: saturate(180%) blur(28px);
		backdrop-filter: saturate(180%) blur(28px);
		box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), var(--pyp-shadow-panel);
		color: var(--pyp-ink);
	}

	.pyp-nav__panel:not(.pyp-nav__panel--mega) {
		width: 340px;
	}

	.pyp-menu {
		padding: 0;
	}

	.pyp-menu__item {
		padding: 10px 14px 10px 10px;
	}

	.pyp-menu__title {
		font-size: 15.5px;
	}

	.pyp-mega {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 300px;
		gap: 10px;
		padding: 0;
	}

	.pyp-mega__groups {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
		gap: 0 12px;
		padding: 12px 8px 8px;
	}

	.pyp-mega__group + .pyp-mega__group {
		margin-top: 0;
	}

	.pyp-mega--about {
		display: block;
	}

	.pyp-mega--about .pyp-mega__groups {
		grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
		gap: 0 20px;
	}

	.pyp-mega--about .pyp-mega__group--gurus {
		padding-left: 20px;
		border-left: 1px solid var(--pyp-hairline);
	}

	.pyp-mega__people {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 2px 12px;
	}

	.pyp-mega__pages,
	.pyp-mega__people {
		padding-top: 8px;
	}

	.pyp-mega__head {
		margin: 0 4px 4px;
		padding: 4px 8px 16px;
		border-bottom: 1px solid var(--pyp-hairline);
	}

	.pyp-mega__title {
		font-size: 17px;
	}

	.pyp-mega__sub {
		margin-top: 16px;
	}

	.pyp-course {
		min-height: 0;
		padding: 9px 12px 9px 36px;
		font-size: 14.5px;
	}

	/* Desktop: the photo of the first start fills the top and fades into the green */
	.pyp-mega__aside {
		justify-content: flex-end;
		gap: 12px;
		margin: 0;
		padding: 20px;
		border-radius: 16px;
	}

	.pyp-mega__aside-photo {
		position: absolute;
		z-index: -1;
		inset: 0 0 auto;
		display: block;
		width: 100%;
		height: 58%;
		object-fit: cover;
		opacity: 0.9;
		-webkit-mask-image: linear-gradient(180deg, #000 35%, transparent 100%);
		mask-image: linear-gradient(180deg, #000 35%, transparent 100%);
	}

	/* over the photo: a small glass pill keeps it readable */
	.pyp-mega__aside-eyebrow {
		align-self: flex-start;
		margin-top: auto;
		padding: 7px 11px 7px 10px;
		border: 1px solid rgba(255, 255, 255, 0.2);
		border-radius: 999px;
		background: rgba(15, 59, 39, 0.55);
		-webkit-backdrop-filter: blur(10px);
		backdrop-filter: blur(10px);
	}

	.pyp-mega__aside:not(.has-next) .pyp-mega__aside-help {
		flex-direction: column;
		align-items: flex-start;
		margin-top: auto;
	}

	.pyp-mega__aside:not(.has-next) .pyp-mega__aside-title {
		font-size: 23px;
	}

	/* Content settles in just behind the panel: a short stagger, never a wait */
	.pyp-nav__item.is-open .pyp-menu > li,
	.pyp-nav__item.is-open .pyp-mega__group,
	.pyp-nav__item.is-open .pyp-mega__aside {
		animation: pyp-settle 420ms var(--pyp-ease-out) both;
	}

	.pyp-nav__item.is-open .pyp-menu > li:nth-child(2),
	.pyp-nav__item.is-open .pyp-mega__group:nth-child(2) {
		animation-delay: 30ms;
	}

	.pyp-nav__item.is-open .pyp-menu > li:nth-child(3),
	.pyp-nav__item.is-open .pyp-mega__group:nth-child(3) {
		animation-delay: 60ms;
	}

	.pyp-nav__item.is-open .pyp-menu > li:nth-child(n + 4),
	.pyp-nav__item.is-open .pyp-mega__group:nth-child(n + 4),
	.pyp-nav__item.is-open .pyp-mega__aside {
		animation-delay: 90ms;
	}

	.pyp-cta {
		gap: 10px;
		height: 46px;
		margin-left: 6px;
		padding: 0 22px;
		box-shadow: none;
		font-size: 14.5px;
		letter-spacing: -0.006em;
	}

	.pyp-cta__icon {
		display: none;
	}

	.pyp-cta__label {
		font-size: inherit;
	}

	.pyp-cta__label::after {
		content: none;
	}

	.pyp-cta__arrow {
		display: inline-block;
	}

	.pyp-masthead--overlay:not(.is-scrolled) .pyp-cta {
		background: #fff;
		color: var(--pyp-forest);
	}

	.pyp-masthead--overlay:not(.is-scrolled) .pyp-cta:hover {
		background: var(--pyp-mist);
	}
}

@media (min-width: 1100px) and (hover: hover) {
	.pyp-nav__link:hover {
		background-color: rgba(15, 59, 39, 0.07);
	}

	.pyp-masthead--overlay:not(.is-scrolled) .pyp-nav__link:hover {
		background-color: rgba(255, 255, 255, 0.16);
	}
}


@keyframes pyp-settle {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
}


/* 3f. Footer — dusk over the Himalaya: glass content on an animated landscape
   ========================================================================== */

.pyp-footer {
	--pyp-saffron: #f6c177;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	color: rgba(255, 255, 255, 0.82);
	font-family: var(--pyp-font-sans);
	-webkit-font-smoothing: antialiased;
	/* Night sky deepening toward a warm horizon behind the sun */
	background:
		radial-gradient(60% 45% at 74% 100%, rgba(242, 166, 90, 0.28), transparent 70%),
		linear-gradient(180deg, #05140d 0%, #0a2419 38%, #123d2a 72%, #1a5236 100%);
}

.pyp-footer :where(ul, p, h2) {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pyp-footer a {
	color: inherit;
	text-decoration: none;
}

.pyp-footer :focus-visible {
	outline: 2px solid var(--pyp-leaf);
	outline-offset: 3px;
	border-radius: 6px;
}

/* Mandala layer behind everything */
.pyp-footer__scene {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}

/* Landscape: its own band between the columns and the bottom bar, rising behind the last links */
.pyp-footer__landscape {
	position: relative;
	z-index: -1;
	display: block;
	width: 100%;
	height: 220px;
	margin-top: -30px;
	pointer-events: none;
}

.pyp-footer__mandala {
	position: absolute;
	top: -140px;
	right: -120px;
	width: 520px;
	height: 520px;
	color: var(--pyp-leaf);
	opacity: 0.07;
	animation: pyp-footer-spin 180s linear infinite;
}

.pyp-footer__range--far {
	fill: #1f5a40;
}

.pyp-footer__range--mid {
	fill: #1a4a34;
}

.pyp-footer__range--near {
	fill: #0d2f21;
}

.pyp-footer__yogi {
	color: #06180f;
}

.pyp-footer__sun-glow {
	transform-box: fill-box;
	transform-origin: center;
	animation: pyp-footer-breathe 14s ease-in-out infinite alternate;
}

.pyp-footer__shimmer line {
	opacity: 0.35;
	animation: pyp-footer-shimmer 7s ease-in-out infinite;
}

.pyp-footer__shimmer line:nth-child(2) { animation-delay: -1.8s; }
.pyp-footer__shimmer line:nth-child(3) { animation-delay: -3.6s; }
.pyp-footer__shimmer line:nth-child(4) { animation-delay: -5.4s; }

.pyp-footer__wave {
	animation: pyp-footer-drift 22s linear infinite;
}

.pyp-footer__wave--2 {
	animation-duration: 30s;
	animation-direction: reverse;
}

.pyp-footer__wave--3 {
	animation-duration: 40s;
}

.pyp-footer__birds {
	animation: pyp-footer-fly 80s linear infinite;
}

/* Paused while the footer is off screen (core.js) */
.pyp-footer.is-offscreen *,
.pyp-footer.is-offscreen *::before {
	animation-play-state: paused;
}

@keyframes pyp-footer-spin {
	to { transform: rotate(360deg); }
}

@keyframes pyp-footer-breathe {
	from { opacity: 0.6; transform: scale(0.94); }
	to   { opacity: 1;   transform: scale(1.04); }
}

@keyframes pyp-footer-shimmer {
	0%, 100% { opacity: 0.15; }
	50%      { opacity: 0.55; }
}

@keyframes pyp-footer-drift {
	to { transform: translateX(-200px); }
}

@keyframes pyp-footer-fly {
	from { transform: translate(-120px, 0); }
	50%  { transform: translate(800px, -18px); }
	to   { transform: translate(1720px, 0); }
}

/* Layout */
.pyp-footer__inner {
	position: relative;
	padding-top: 48px;
}

/* Call to action: a glass card with a glowing Om */
.pyp-footer__cta {
	display: grid;
	gap: 18px;
	padding: 24px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 24px;
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
	-webkit-backdrop-filter: blur(18px) saturate(140%);
	backdrop-filter: blur(18px) saturate(140%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}

.pyp-footer__om {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: 20px;
	background: radial-gradient(circle at 50% 40%, rgba(246, 193, 119, 0.28), rgba(246, 193, 119, 0.06) 70%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 40px -6px rgba(246, 193, 119, 0.45);
	color: var(--pyp-saffron);
}

.pyp-footer__om svg {
	width: 38px;
	height: 38px;
	fill: currentColor;
}

.pyp-footer__eyebrow {
	margin-bottom: 8px;
	font: 600 11.5px/1 var(--pyp-font-sans);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--pyp-leaf);
}

.pyp-footer__cta-title {
	font: 500 clamp(26px, 3.4vw, 40px)/1.12 var(--pyp-font-menu);
	letter-spacing: 0;
	color: #fff;
}

.pyp-footer__cta-copy {
	margin-top: 10px;
	max-width: 46ch;
	font: 400 15px/1.6 var(--pyp-font-sans);
	color: rgba(255, 255, 255, 0.72);
}

.pyp-footer__cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.pyp-footer__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	padding: 0 22px;
	border-radius: 999px;
	font: 600 15px/1 var(--pyp-font-sans);
	letter-spacing: -0.009em;
	transition: background-color var(--pyp-dur-fast) var(--pyp-ease-out), transform 120ms var(--pyp-ease-out), box-shadow var(--pyp-dur) var(--pyp-ease-out);
}

.pyp-footer__btn:active {
	transform: scale(0.97);
}

.pyp-footer__btn .bi {
	transition: transform var(--pyp-dur) var(--pyp-ease-out);
}

.pyp-footer .pyp-footer__btn--primary {
	background: #fff;
	color: var(--pyp-forest);
	box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.6);
}

.pyp-footer .pyp-footer__btn--glass {
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.07);
	color: #fff;
}

.pyp-footer__btn--glass .bi {
	color: var(--pyp-leaf);
}

/* Columns */
.pyp-footer__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 36px 24px;
	margin-top: 44px;
}

.pyp-footer__brand,
.pyp-footer__col--centres,
.pyp-footer__col--contact {
	grid-column: 1 / -1;
}

.pyp-footer__logo img {
	display: block;
	width: auto;
	height: 46px;
	filter: brightness(0) invert(1);
}

.pyp-footer__about {
	max-width: 42ch;
	margin-top: 16px;
	font: 400 14px/1.65 var(--pyp-font-sans);
	color: rgba(255, 255, 255, 0.66);
}

.pyp-footer__social {
	display: flex;
	gap: 10px;
	margin-top: 20px;
}

.pyp-footer__social a {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	font-size: 16px;
	transition: background-color var(--pyp-dur-fast) var(--pyp-ease-out), transform 120ms var(--pyp-ease-out), color var(--pyp-dur-fast) var(--pyp-ease-out);
}

.pyp-footer__social a:active {
	transform: scale(0.94);
}

.pyp-footer__heading {
	margin-bottom: 16px;
	font: 600 11.5px/1 var(--pyp-font-sans);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.5);
}

.pyp-footer__links {
	display: grid;
	gap: 12px;
}

.pyp-footer__links a {
	font: 400 15px/1.3 var(--pyp-font-sans);
	color: rgba(255, 255, 255, 0.84);
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
	transition: color var(--pyp-dur-fast) var(--pyp-ease-out), background-size var(--pyp-dur) var(--pyp-ease-out);
}

.pyp-footer__centres {
	display: grid;
	gap: 16px;
}

.pyp-footer__place {
	font: 500 16px/1.2 var(--pyp-font-menu);
	color: #fff;
}

.pyp-footer__place a {
	color: inherit;
	text-decoration: none;
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
	transition: background-size var(--pyp-dur) var(--pyp-ease-out);
}

@media (hover: hover) {
	.pyp-footer__place a:hover {
		color: #fff;
		background-size: 100% 1px;
	}
}

.pyp-footer__place span {
	margin-left: 6px;
	font: 600 10px/1 var(--pyp-font-sans);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pyp-leaf);
}

.pyp-footer__address {
	display: inline-block;
	margin-top: 5px;
	font: 400 13.5px/1.55 var(--pyp-font-sans);
	color: rgba(255, 255, 255, 0.66);
	transition: color var(--pyp-dur-fast) var(--pyp-ease-out);
}

.pyp-footer__address .bi {
	margin-left: 2px;
	font-size: 11px;
	color: var(--pyp-leaf);
}

.pyp-footer__contact {
	display: grid;
	gap: 12px;
}

.pyp-footer__contact a,
.pyp-footer__contact p {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font: 400 15px/1.3 var(--pyp-font-sans);
	color: rgba(255, 255, 255, 0.84);
	transition: color var(--pyp-dur-fast) var(--pyp-ease-out);
}

.pyp-footer__contact .bi {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 34px;
	height: 34px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 11px;
	background: rgba(255, 255, 255, 0.05);
	color: var(--pyp-leaf);
	font-size: 14px;
}

/* The gurus: two short columns, so the column is no longer than the others */
.pyp-footer__col--gurus .pyp-footer__links {
	grid-template-columns: 1fr 1fr;
	column-gap: 24px;
}

.pyp-footer__more a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--pyp-leaf);
	font-weight: 500;
}

.pyp-footer__more .bi {
	font-size: 13px;
	transition: transform var(--pyp-dur) var(--pyp-ease-out);
}

@media (hover: hover) {
	.pyp-footer__more a:hover .bi {
		transform: translateX(3px);
	}
}

/* Where to find us: a band of its own, spanning the grid */
.pyp-footer__band {
	display: grid;
	grid-column: 1 / -1;
	gap: 30px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: 30px;
}

.pyp-footer__band > .pyp-footer__col {
	grid-column: auto;
	min-width: 0;
}

/* Bottom bar on a band of the lake's deepest colour, so it continues the water */
.pyp-footer__base {
	background: #061a11;
}

.pyp-footer__bottom {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-top: 18px;
	padding-bottom: calc(18px + env(safe-area-inset-bottom));
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	font: 400 13px/1.5 var(--pyp-font-sans);
	color: rgba(255, 255, 255, 0.6);
}

/* Pages with the legacy floating "Enquiry Now" button on phones: keep the bottom bar clear of it */
@media (max-width: 768px) {
	body:has(.Send-Message-Mobile) .pyp-footer__bottom {
		padding-bottom: calc(84px + env(safe-area-inset-bottom));
	}
}

.pyp-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
}

.pyp-footer__legal a {
	transition: color var(--pyp-dur-fast) var(--pyp-ease-out);
}

@media (hover: hover) {
	.pyp-footer .pyp-footer__btn--primary:hover {
		background: var(--pyp-mist);
		color: var(--pyp-forest);
	}

	.pyp-footer .pyp-footer__btn--glass:hover {
		background: rgba(255, 255, 255, 0.13);
		color: #fff;
	}

	.pyp-footer__btn:hover .bi-arrow-right {
		transform: translateX(3px);
	}

	.pyp-footer__social a:hover {
		background: var(--pyp-leaf);
		color: var(--pyp-forest);
	}

	.pyp-footer__links a:hover {
		color: #fff;
		background-size: 100% 1px;
	}

	.pyp-footer__address:hover,
	.pyp-footer__contact a:hover,
	.pyp-footer__legal a:hover {
		color: #fff;
	}
}

@media (min-width: 768px) {
	.pyp-footer__inner {
		padding-top: 72px;
	}

	.pyp-footer__landscape {
		height: 320px;
		margin-top: -90px;
	}

	/* Tablet: Om beside the text, buttons below it */
	.pyp-footer__cta {
		grid-template-columns: auto 1fr;
		align-items: center;
		gap: 22px 28px;
		padding: 32px 36px;
		border-radius: 28px;
	}

	.pyp-footer__cta-actions {
		grid-column: 2;
	}

	.pyp-footer__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 44px 32px;
		margin-top: 64px;
	}

	.pyp-footer__brand {
		grid-column: 1 / -1;
	}

	.pyp-footer__col--centres,
	.pyp-footer__col--contact {
		grid-column: auto;
	}

	/* tablets: The School and Learn side by side, the gurus in a row of their own after them */
	.pyp-footer__col--gurus {
		grid-column: 1 / -1;
		order: 1;
	}

	.pyp-footer__col--gurus .pyp-footer__links {
		grid-template-columns: repeat(3, 1fr);
	}

	.pyp-footer__band {
		order: 2;
	}

	.pyp-footer__band {
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
		gap: 32px;
	}

	.pyp-footer__bottom {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

@media (min-width: 1100px) {
	.pyp-footer__landscape {
		height: 400px;
		margin-top: -150px;
	}

	/* Desktop: Om, text and buttons on one row */
	.pyp-footer__cta {
		grid-template-columns: auto 1fr auto;
	}

	.pyp-footer__cta-actions {
		grid-column: auto;
	}

	.pyp-footer__mandala {
		top: -180px;
		right: -140px;
		width: 680px;
		height: 680px;
	}

	/* Row one: the brand and three link columns of even length (the gurus
	   in two short columns); row two: the centres side by side and the ways
	   to reach us, below a hairline */
	.pyp-footer__grid {
		grid-template-columns: minmax(260px, 1.35fr) minmax(150px, 0.85fr) minmax(300px, 1.5fr) minmax(150px, 0.8fr);
		gap: 40px 48px;
	}

	.pyp-footer__brand {
		grid-column: auto;
	}

	.pyp-footer__col--gurus,
	.pyp-footer__band {
		order: 0;
	}

	.pyp-footer__col--gurus {
		grid-column: auto;
	}

	.pyp-footer__col--gurus .pyp-footer__links {
		grid-template-columns: 1fr 1fr;
	}

	.pyp-footer__band {
		grid-template-columns: minmax(0, 3fr) minmax(240px, 1fr);
		gap: 48px;
		padding-top: 36px;
	}

	.pyp-footer__band .pyp-footer__centres {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 32px;
	}

}


/* Footer call to action on phones: Om and eyebrow on one row, a compact title and line
   under them, both buttons side by side. The text column steps aside (display: contents)
   so its three lines join the card's grid with the Om. */
@media (max-width: 767.98px) {
	.pyp-footer__cta {
		grid-template-columns: auto minmax(0, 1fr);
		grid-template-areas:
			"om eyebrow"
			"title title"
			"copy copy"
			"actions actions";
		align-items: center;
		gap: 0 12px;
		padding: 18px;
		border-radius: 22px;
	}

	.pyp-footer__cta-text {
		display: contents;
	}

	.pyp-footer__om {
		grid-area: om;
		width: 42px;
		height: 42px;
		border-radius: 14px;
	}

	.pyp-footer__om svg {
		width: 26px;
		height: 26px;
	}

	.pyp-footer__eyebrow {
		grid-area: eyebrow;
		margin: 0;
		font-size: 10.5px;
		letter-spacing: 0.12em;
		line-height: 1.4;
	}

	.pyp-footer__cta-title {
		grid-area: title;
		margin-top: 14px;
		font-size: 22px;
		line-height: 1.2;
	}

	.pyp-footer__cta-copy {
		grid-area: copy;
		margin-top: 6px;
		font-size: 13.5px;
		line-height: 1.5;
	}

	.pyp-footer__cta-actions {
		grid-area: actions;
		flex-wrap: nowrap;
		gap: 8px;
		margin-top: 16px;
	}

	.pyp-footer__btn {
		flex: 1 1 auto;
		min-width: 0;
		min-height: 46px;
		gap: 7px;
		padding: 0 12px;
		font-size: 13.5px;
		white-space: nowrap;
	}

	.pyp-footer__btn--primary .bi-arrow-right {
		display: none; /* room for both buttons on one row */
	}
}

/* Footer link columns on phones: Explore and Learn each take a full row, their links a
   sideways-scrolling row of glass chips running to the screen edges */
@media (max-width: 767.98px) {
	.pyp-footer__grid > .pyp-footer__col:not(.pyp-footer__col--centres):not(.pyp-footer__col--contact) {
		grid-column: 1 / -1;
		min-width: 0;
	}

	.pyp-footer__heading {
		margin-bottom: 12px;
	}

	.pyp-footer__links {
		display: flex;
		gap: 8px;
		margin-inline: calc(-1 * var(--pyp-gutter));
		padding: 2px var(--pyp-gutter) 4px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-padding-inline: var(--pyp-gutter);
		scroll-snap-type: x proximity;
		scrollbar-width: none;
	}

	.pyp-footer__links::-webkit-scrollbar {
		display: none;
	}

	.pyp-footer__links li {
		flex: none;
		scroll-snap-align: start;
	}

	.pyp-footer__links a {
		display: inline-flex;
		align-items: center;
		min-height: 40px;
		padding: 0 16px;
		border: 1px solid rgba(255, 255, 255, 0.14);
		border-radius: 999px;
		background: rgba(255, 255, 255, 0.07);
		font-size: 14px;
		white-space: nowrap;
		transition: background-color var(--pyp-dur-fast) var(--pyp-ease-out), transform 120ms var(--pyp-ease-out);
	}

	.pyp-footer__links a:active {
		background-color: rgba(255, 255, 255, 0.16);
		transform: scale(0.97);
	}
}

/* Footer on phones, app style: a compact brand header (logo with the social buttons beside
   it), centres and contact as grouped lists (icon tile, text, chevron, hairlines between
   rows, the whole row tappable), and a centred bottom bar. */
@media (max-width: 767.98px) {
	.pyp-footer__grid {
		gap: 30px 0;
		margin-top: 34px;
	}

	/* Brand: logo and socials on one row, the line about the school under them */
	.pyp-footer__brand {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		gap: 14px 12px;
	}

	.pyp-footer__logo img {
		height: 38px;
	}

	.pyp-footer__social {
		gap: 8px;
		margin: 0;
	}

	.pyp-footer__social a {
		width: 38px;
		height: 38px;
		border-radius: 12px;
		font-size: 15px;
	}

	.pyp-footer__about {
		grid-column: 1 / -1;
		grid-row: 2;
		max-width: none;
		margin: 0;
		font-size: 13.5px;
		line-height: 1.6;
	}

	/* Grouped lists */
	.pyp-footer__centres,
	.pyp-footer__contact {
		gap: 0;
		padding: 4px;
		border: 1px solid rgba(255, 255, 255, 0.1);
		border-radius: 20px;
		background: rgba(255, 255, 255, 0.05);
		-webkit-backdrop-filter: blur(14px);
		backdrop-filter: blur(14px);
	}

	.pyp-footer__centres > li,
	.pyp-footer__contact > li {
		position: relative;
		border-radius: 16px;
		transition: background-color var(--pyp-dur-fast) var(--pyp-ease-out);
	}

	/* Hairline between rows, starting after the icon */
	.pyp-footer__centres > li + li::after,
	.pyp-footer__contact > li + li::after {
		content: '';
		position: absolute;
		top: 0;
		right: 14px;
		left: 62px;
		height: 1px;
		background: rgba(255, 255, 255, 0.08);
		pointer-events: none;
	}

	.pyp-footer__centres > li:active,
	.pyp-footer__contact > li:has(a):active {
		background: rgba(255, 255, 255, 0.08);
	}

	/* Centres: pin tile, place and label, address (the whole row opens the map) */
	.pyp-footer__centres > li {
		padding: 13px 40px 13px 62px;
	}

	.pyp-footer__centres > li::before {
		content: '\f3e7'; /* bi-geo-alt-fill */
		position: absolute;
		top: 13px;
		left: 10px;
		display: grid;
		place-items: center;
		width: 40px;
		height: 40px;
		border-radius: 13px;
		background: rgba(156, 207, 104, 0.14);
		color: var(--pyp-leaf);
		font: 16px/1 bootstrap-icons;
	}

	.pyp-footer__place {
		display: flex;
		flex-wrap: wrap;
		align-items: baseline;
		gap: 2px 8px;
		font-size: 16px;
	}

	.pyp-footer__place span {
		margin: 0;
		font-size: 9.5px;
	}

	.pyp-footer__address {
		display: block;
		margin-top: 4px;
		font-size: 13px;
		line-height: 1.5;
	}

	.pyp-footer__address::after {
		content: '';
		position: absolute;
		inset: 0; /* stretched over the row */
	}

	.pyp-footer__address .bi {
		position: absolute;
		top: 50%;
		right: 14px;
		margin: -7px 0 0;
		font-size: 13px;
		color: rgba(255, 255, 255, 0.4);
	}

	/* Contact: icon tile, text, chevron */
	.pyp-footer__contact a,
	.pyp-footer__contact p {
		display: flex;
		gap: 12px;
		width: 100%;
		min-height: 56px;
		padding: 8px 14px 8px 10px;
		font-size: 14.5px;
	}

	.pyp-footer__contact span {
		flex: 1 1 auto;
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.pyp-footer__contact .bi {
		width: 40px;
		height: 40px;
		border: 0;
		border-radius: 13px;
		background: rgba(156, 207, 104, 0.14);
		font-size: 16px;
	}

	.pyp-footer__contact a::after {
		content: '\f285'; /* bi-chevron-right */
		flex: none;
		color: rgba(255, 255, 255, 0.35);
		font: 12px/1 bootstrap-icons;
	}

	.pyp-footer__contact p {
		color: rgba(255, 255, 255, 0.6);
	}

	/* Bottom bar: centred, the legal links as small pills */
	.pyp-footer__bottom {
		align-items: center;
		gap: 12px;
		text-align: center;
		font-size: 12px;
	}

	.pyp-footer__legal {
		justify-content: center;
		gap: 8px;
	}

	.pyp-footer__legal a {
		display: inline-flex;
		align-items: center;
		min-height: 32px;
		padding: 0 12px;
		border-radius: 999px;
		background: rgba(255, 255, 255, 0.06);
	}
}

/* 4. User preferences
   ========================================================================== */

/* Reduced motion: keep the fades that explain state, drop the movement. */
@media (prefers-reduced-motion: reduce) {
	.pyp-masthead *,
	.pyp-masthead *::before,
	.pyp-masthead *::after {
		transition-property: opacity, visibility, color, background-color, filter !important;
	}

	.pyp-nav,
	.pyp-nav__panel--mega {
		transform: none !important;
	}

	.pyp-menu-toggle:active,
	.pyp-nav__link:active,
	.pyp-cta:active,
	.pyp-mega__aside-help:active,
	.pyp-mega-next__item:active,
	.pyp-menu__item:active .pyp-tile {
		transform: none;
	}

	.pyp-nav__item.is-open .pyp-menu > li,
	.pyp-nav__item.is-open .pyp-mega__group,
	.pyp-nav__item.is-open .pyp-mega__aside,
	.pyp-mega__aside-dot::after {
		animation: none;
	}
}

/* Reduced motion: the footer landscape holds still. */
@media (prefers-reduced-motion: reduce) {
	.pyp-footer__mandala,
	.pyp-footer__sun-glow,
	.pyp-footer__shimmer line,
	.pyp-footer__wave,
	.pyp-footer__birds {
		animation: none;
	}
}

@media (prefers-reduced-motion: reduce) and (max-width: 1099.98px) {
	.pyp-nav {
		opacity: 0;
	}

	.pyp-masthead.is-menu-open .pyp-nav {
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) and (min-width: 1100px) {
	.pyp-nav__panel {
		transform: translate(-50%, 0) !important;
	}

	.pyp-nav__panel--mega {
		transform: none !important;
	}
}

/* Reduced transparency: solid surfaces instead of glass. */
@media (prefers-reduced-transparency: reduce) {
	.pyp-navbar::before,
	.pyp-nav,
	.pyp-nav__panel-clip {
		background: var(--pyp-surface);
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}
}

/* Increased contrast: defined edges. */
@media (prefers-contrast: more) {
	.pyp-masthead {
		--pyp-hairline: rgba(15, 59, 39, 0.45);
	}

	.pyp-topbar {
		color: #fff;
	}

	.pyp-nav__panel-clip {
		border-color: var(--pyp-ink);
	}
}


/* 5. Enquiry dialog — file/common/enquiry-popup.php, opened by core.js
   Desktop (≥ 860px): a centred split card — brand pane on the left, form on the right.
   Below: a bottom sheet with a drag handle; the brand pane becomes its compact header.
   The <dialog> box itself is the full viewport (scrim + click-outside); only the panel moves.
   ========================================================================== */

.pyp-enq {
	--pyp-enq-danger: #b8433c;

	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 24px var(--pyp-gutter);
	border: 0;
	background: transparent;
	color: var(--pyp-ink);
	font-family: var(--pyp-font-sans);
	/* clip, not just hidden: a hidden box can still be scrolled, and showModal() scrolls it to
	   bring the first focusable control into view — while the panel is still below the screen,
	   which threw the sheet most of the way up in the first frame and made the entrance a snap. */
	overflow: hidden;
	overflow: clip;

	/* Motion. The entrance is a critically damped spring: it starts from rest and settles without
	   a bounce, like an iOS sheet, instead of an ease-out that covers most of the distance in the
	   first frames and reads as a snap. Exits accelerate away and are quicker than entrances. */
	--pyp-enq-spring: cubic-bezier(0.25, 0.85, 0.3, 1);
	--pyp-enq-exit: cubic-bezier(0.4, 0, 0.9, 0.5);
}

@supports (transition-timing-function: linear(0, 1)) {
	.pyp-enq {
		--pyp-enq-spring: linear(0, 0.0006 0.4%, 0.0050 1.1%, 0.0159 2.1%, 0.0351 3.2%, 0.0637 4.4%, 0.1014 5.8%, 0.1474 7.3%, 0.2004 8.9%, 0.2588 10.7%, 0.3206 12.5%, 0.3841 14.4%, 0.4477 16.4%, 0.5099 18.5%, 0.5694 20.7%, 0.6254 23.0%, 0.6771 25.3%, 0.7243 27.7%, 0.7666 30.2%, 0.8041 32.7%, 0.8369 35.4%, 0.8653 38.0%, 0.8896 40.8%, 0.9102 43.6%, 0.9275 46.5%, 0.9419 49.4%, 0.9537 52.4%, 0.9634 55.5%, 0.9712 58.6%, 0.9775 61.7%, 0.9826 65.0%, 0.9866 68.2%, 0.9897 71.6%, 0.9922 74.9%, 0.9941 78.4%, 0.9955 81.8%, 0.9966 85.4%, 0.9975 89.0%, 0.9981 92.6%, 0.9986 96.3%, 1);
	}
}

.pyp-enq[open] {
	display: flex;
	align-items: center;
	justify-content: center;
}

.pyp-enq::backdrop {
	background: transparent;
}

/* Scrim */
.pyp-enq::before {
	content: '';
	position: fixed;
	inset: 0;
	background: rgba(6, 26, 17, 0.46);
	-webkit-backdrop-filter: blur(8px) saturate(120%);
	backdrop-filter: blur(8px) saturate(120%);
	opacity: 0;
	transition: opacity 260ms var(--pyp-enq-exit);
}

.pyp-enq.is-open::before {
	opacity: 1;
	transition: opacity 520ms var(--pyp-ease-out);
}

/* Panel. Base state = closed, and its transition is the (quicker) exit; .is-open carries the entrance. */
.pyp-enq__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(1000px, 100%);
	max-height: min(780px, 100%);
	border-radius: 28px;
	background: var(--pyp-paper);
	box-shadow: 0 1px 1px rgba(15, 59, 39, 0.05), 0 40px 100px -24px rgba(4, 24, 14, 0.6);
	overflow: hidden;
	opacity: 0;
	transform: translateY(28px) scale(0.96);
	transition:
		opacity 220ms var(--pyp-enq-exit),
		transform 240ms var(--pyp-enq-exit);
}

.pyp-enq.is-open .pyp-enq__panel {
	opacity: 1;
	transform: none;
	transition:
		opacity 420ms var(--pyp-ease-out),
		transform 680ms var(--pyp-enq-spring);
}

.pyp-enq__scroll {
	display: grid;
	flex: 1 1 auto;
	grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
	grid-template-rows: minmax(0, 1fr);
	min-height: 0;
}

/* Close */
.pyp-enq__close {
	position: absolute;
	z-index: 2;
	top: 16px;
	right: 16px;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--pyp-surface);
	box-shadow: var(--pyp-neu-raised);
	color: var(--pyp-ink);
	font-size: 15px;
	cursor: pointer;
	transition:
		background-color var(--pyp-dur-fast) var(--pyp-ease-out),
		color var(--pyp-dur-fast) var(--pyp-ease-out),
		transform 120ms var(--pyp-ease-out);
}

.pyp-enq__close:active {
	transform: scale(0.92);
}

.pyp-enq__close:focus-visible {
	outline: 2px solid var(--pyp-green);
	outline-offset: 3px;
}

@media (hover: hover) {
	.pyp-enq__close:hover {
		background: var(--pyp-green);
		color: #fff;
	}
}

.pyp-enq__grab {
	display: none;
}

/* Brand pane — the same green glass as the menu's "Not sure where to begin?" card */
.pyp-enq__brand {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 40px 36px 34px;
	overflow: hidden;
	background:
		radial-gradient(110% 70% at 100% 0%, rgba(156, 207, 104, 0.34), transparent 62%),
		radial-gradient(90% 60% at 0% 100%, rgba(156, 207, 104, 0.12), transparent 70%),
		linear-gradient(160deg, var(--pyp-green) 0%, var(--pyp-forest) 78%);
	color: #fff;
}

.pyp-enq__brand > * {
	position: relative; /* above the watermark */
}

.pyp-enq__watermark {
	position: absolute;
	right: -70px;
	bottom: -60px;
	width: 300px;
	height: 300px;
	fill: currentColor;
	opacity: 0.07;
	pointer-events: none;
}

.pyp-enq__glyph {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin-bottom: 4px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.12);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 10px 24px -12px rgba(0, 0, 0, 0.45);
}

.pyp-enq__glyph .pyp-icon {
	width: 28px;
	height: 28px;
}

.pyp-enq__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--pyp-leaf);
	font: 600 12px/1.2 var(--pyp-font-sans);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* "Open" status light */
.pyp-enq__dot {
	position: relative;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--pyp-leaf);
}

.pyp-enq__dot::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: inherit;
	animation: pyp-enq-pulse 2.4s var(--pyp-ease-out) infinite;
}

@keyframes pyp-enq-pulse {
	0% { opacity: 0.7; transform: scale(1); }
	70%, 100% { opacity: 0; transform: scale(3); }
}

.pyp-enq__title {
	margin: 0;
	color: #fff;
	font: 600 clamp(28px, 2.6vw, 36px)/1.08 var(--pyp-font-menu);
	letter-spacing: -0.02em;
	text-wrap: balance;
}

/* Three classes: the theme colours every `h2 > span` */
.pyp-enq .pyp-enq__title .pyp-enq__accent {
	color: var(--pyp-leaf);
}

.pyp-enq__lede {
	margin: 0;
	color: rgba(255, 255, 255, 0.78);
	font-size: 15px;
	line-height: 1.55;
	letter-spacing: -0.006em;
	text-wrap: pretty;
}

.pyp-enq__perks {
	display: grid;
	gap: 0;
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}

.pyp-enq__perks li {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.pyp-enq__perk-ico {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.1);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
	color: var(--pyp-leaf);
	font-size: 18px;
}

.pyp-enq__perk-txt {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.pyp-enq__perk-txt b {
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -0.009em;
}

.pyp-enq__perk-txt small {
	color: rgba(255, 255, 255, 0.68);
	font-size: 13px;
	line-height: 1.35;
}

.pyp-enq__reach {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: auto;
	padding-top: 14px;
}

.pyp-enq__reach-label {
	flex-basis: 100%;
	color: rgba(255, 255, 255, 0.66);
	font-size: 13px;
}

.pyp-enq__reach-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 42px;
	padding: 0 16px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	font: 600 14px/1 var(--pyp-font-sans);
	letter-spacing: -0.006em;
	white-space: nowrap;
	transition:
		background-color var(--pyp-dur-fast) var(--pyp-ease-out),
		color var(--pyp-dur-fast) var(--pyp-ease-out),
		transform 120ms var(--pyp-ease-out);
}

.pyp-enq__reach-link--wa {
	border-color: transparent;
	background: #fff;
	color: var(--pyp-forest);
}

.pyp-enq__reach-link--wa .bi {
	color: #1da851;
}

.pyp-enq__reach-link:active {
	transform: scale(0.97);
}

.pyp-enq__reach-link:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

@media (hover: hover) {
	.pyp-enq__reach-link:hover {
		background: rgba(255, 255, 255, 0.2);
		color: #fff;
	}

	.pyp-enq__reach-link--wa:hover {
		background: var(--pyp-mist);
		color: var(--pyp-forest);
	}
}

/* Form pane — scrolls on its own when the viewport is short */
/* Enquiry form (dialog and inline): a set-date course shows when and where instead of a batch
   picker (assets/js/enquiry-form.js). */
.pyp-enq-when {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid rgba(29, 112, 68, 0.16);
	border-radius: 14px;
	background: linear-gradient(135deg, rgba(228, 242, 232, 0.9), rgba(255, 255, 255, 0.7));
	color: var(--pyp-forest);
}

.pyp-enq-when .bi {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: linear-gradient(145deg, #2f8a4c, var(--pyp-forest));
	color: #fff;
	font-size: 17px;
}

.pyp-enq-when span { display: grid; gap: 2px; line-height: 1.25; }
.pyp-enq-when b { font-weight: 600; font-size: 15px; }
.pyp-enq-when small { font-size: 12.5px; color: var(--pyp-ink-soft); }
[data-enq-field][hidden] { display: none !important; }

.pyp-enq__form {
	min-height: 0;
	padding: 34px 40px 24px;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
}

.pyp-enq__form-head {
	margin: 0 48px 20px 0; /* clear the close button */
}

.pyp-enq__form-head h3 {
	margin: 0 0 4px;
	color: var(--pyp-ink);
	font: 600 24px/1.2 var(--pyp-font-menu);
	letter-spacing: -0.015em;
}

.pyp-enq__form-head p {
	margin: 0;
	color: var(--pyp-ink-soft);
	font-size: 14px;
	line-height: 1.45;
}

.pyp-enq__alt {
	margin: 18px 0 0;
	color: var(--pyp-ink-soft);
	font-size: 13px;
	text-align: center;
}

.pyp-enq__alt a {
	color: var(--pyp-green);
	font-weight: 600;
	white-space: nowrap;
}

.pyp-enq__alt a:hover {
	color: var(--pyp-green-hover);
}

/* 5a. The shared form (appointment.php) restyled inside the dialog only.
   The legacy theme styles these classes elsewhere, so every rule is scoped. */
.pyp-enq #my_form {
	--bs-gutter-x: 14px;
	row-gap: 14px;
	margin-inline: -7px !important; /* the row's gutter, which the theme's .no-margin removes */
}

.pyp-enq #my_form br {
	display: none;
}

.pyp-enq #alertPlaceholder:empty {
	display: none;
}

.pyp-enq #my_form .form-label {
	display: block;
	margin: 0 0 7px;
	color: var(--pyp-ink);
	font: 600 13px/1.2 var(--pyp-font-sans);
	letter-spacing: -0.003em;
}

.pyp-enq #my_form .form-control,
.pyp-enq #my_form .form-select {
	width: 100%;
	min-height: 46px;
	padding: 11px 14px;
	border: 1px solid rgba(15, 59, 39, 0.13);
	border-radius: 12px !important; /* beats Bootstrap's .rounded */
	background-color: var(--pyp-surface);
	box-shadow: inset 0 1px 2px rgba(15, 59, 39, 0.05);
	color: var(--pyp-ink);
	font: 400 16px/1.4 var(--pyp-font-sans); /* 16px: iOS doesn't zoom on focus */
	letter-spacing: -0.011em;
	transition:
		border-color var(--pyp-dur-fast) var(--pyp-ease-out),
		background-color var(--pyp-dur-fast) var(--pyp-ease-out),
		box-shadow var(--pyp-dur-fast) var(--pyp-ease-out);
}

.pyp-enq #my_form .form-select {
	padding-right: 40px;
	background-position: right 14px center;
	cursor: pointer;
}

.pyp-enq #my_form textarea.form-control {
	min-height: 160px;
	resize: vertical;
}

.pyp-enq #my_form .form-control::placeholder {
	color: rgba(75, 92, 82, 0.62);
}

.pyp-enq #my_form .form-control:focus,
.pyp-enq #my_form .form-select:focus {
	border-color: var(--pyp-green);
	background-color: #fff;
	box-shadow: 0 0 0 4px rgba(29, 112, 68, 0.14);
	outline: none;
}

/* Phone (intl-tel-input): full width, dial code sits in the field */
.pyp-enq #my_form .iti {
	display: block;
	width: 100%;
}

.pyp-enq #my_form .iti__selected-country {
	border-radius: 12px 0 0 12px;
}

.pyp-enq #my_form .iti--fullscreen-popup.iti--container {
	z-index: 3;
}

/* Dropdowns — Canvas's bootstrap-select, as on gg. styleBase form-control gives its button the
   input skin above; this adds the chevron, the open state and a glass menu. */
.pyp-enq .bootstrap-select {
	width: 100% !important;
}

.pyp-enq #my_form .bootstrap-select > .dropdown-toggle {
	position: relative;
	display: flex;
	align-items: center;
	padding-right: 40px;
	text-align: left;
	cursor: pointer;
	outline: none !important; /* the focus ring is the box-shadow, as on the inputs */
}

.pyp-enq .bootstrap-select .bs-caret {
	display: none;
}

.pyp-enq #my_form .bootstrap-select > .dropdown-toggle::after {
	content: '\f282'; /* bi-chevron-down */
	position: absolute;
	top: 50%;
	right: 15px;
	margin: 0;
	border: 0;
	color: var(--pyp-ink-soft);
	font: 13px/1 bootstrap-icons;
	transform: translateY(-50%);
	transition: transform var(--pyp-dur) var(--pyp-ease-out), color var(--pyp-dur-fast) var(--pyp-ease-out);
}

.pyp-enq #my_form .bootstrap-select > .dropdown-toggle.show {
	border-color: var(--pyp-green);
	background-color: #fff;
	box-shadow: 0 0 0 4px rgba(29, 112, 68, 0.14);
}

.pyp-enq #my_form .bootstrap-select > .dropdown-toggle.show::after {
	color: var(--pyp-green);
	transform: translateY(-50%) rotate(180deg);
}

.pyp-enq #my_form .bootstrap-select > .dropdown-toggle.bs-placeholder {
	color: rgba(75, 92, 82, 0.62);
}

.pyp-enq .bootstrap-select .filter-option-inner-inner {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pyp-enq #my_form .bootstrap-select.disabled > .dropdown-toggle,
.pyp-enq #my_form .bootstrap-select > .dropdown-toggle.disabled {
	opacity: 1;
	background-color: rgba(243, 247, 241, 0.6);
	border-style: dashed;
	cursor: not-allowed;
}

.pyp-enq .bootstrap-select > .dropdown-menu {
	min-width: 100% !important;
	padding: 6px;
	border: 1px solid rgba(255, 255, 255, 0.75);
	border-radius: 16px;
	background: rgba(250, 252, 249, 0.97);
	-webkit-backdrop-filter: saturate(180%) blur(24px);
	backdrop-filter: saturate(180%) blur(24px);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), var(--pyp-shadow-panel);
	overflow: hidden;
}

/* Entrance: `translate`, not `transform` — Popper positions the menu with transform. */
.pyp-enq .bootstrap-select > .dropdown-menu.show {
	animation: pyp-enq-menu-in 200ms var(--pyp-ease-out);
}

.pyp-enq .bootstrap-select.dropup > .dropdown-menu.show {
	animation-name: pyp-enq-menu-up;
}

@keyframes pyp-enq-menu-in {
	from { opacity: 0; translate: 0 -6px; }
}

@keyframes pyp-enq-menu-up {
	from { opacity: 0; translate: 0 6px; }
}

.pyp-enq .bootstrap-select .dropdown-menu.inner {
	padding: 0;
	border: 0;
	background: transparent; /* the outer menu is the panel */
	box-shadow: none;
	scrollbar-width: thin;
}

.pyp-enq .bootstrap-select .dropdown-menu li + li {
	margin-top: 2px;
}

.pyp-enq .bootstrap-select .dropdown-item {
	position: relative;
	display: flex;
	align-items: center;
	padding: 10px 40px 10px 12px;
	border-radius: 10px;
	color: var(--pyp-ink);
	font: 500 15px/1.3 var(--pyp-font-sans);
	letter-spacing: -0.009em;
	white-space: normal;
	transition: background-color var(--pyp-dur-fast) var(--pyp-ease-out), color var(--pyp-dur-fast) var(--pyp-ease-out);
}

.pyp-enq .bootstrap-select .dropdown-item:hover,
.pyp-enq .bootstrap-select .dropdown-item:focus,
.pyp-enq .bootstrap-select li.active:not(.selected) .dropdown-item {
	background: rgba(29, 112, 68, 0.08);
	color: var(--pyp-forest);
}

/* The tick sits in the item's right padding, so the label can use the full width. */
.pyp-enq .bootstrap-select .dropdown-item .text {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0 !important; /* the theme gives these spans a top margin */
}

/* A course date (Manage → Services → Dates & fees, laid out by custom/js/app.js): the dates on
   the left, then how long as a green pill and the occupancy ("8/15 booked"), amber when few seats remain.
   The same in the list and in the field once chosen. */
.pyp-enq-run {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 100%;
	min-width: 0;
}

.pyp-enq-run__date {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pyp-enq-run__days,
.pyp-enq-run__seats {
	flex: none;
	padding: 3px 9px;
	border-radius: 999px;
	font: 600 11.5px/1.3 var(--pyp-font-sans);
	letter-spacing: 0.01em;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.pyp-enq-run__days {
	background: var(--pyp-green);
	color: #fff;
	box-shadow: 0 2px 6px -2px rgba(29, 112, 68, 0.55);
}

.pyp-enq-run__seats {
	background: rgba(29, 112, 68, 0.1);
	color: var(--pyp-forest);
}

.pyp-enq-run__seats.is-low {
	background: #fff4e0;
	color: #8a5200;
}

/* In the closed field the inner box has to stretch for the pill to reach the right edge */
.pyp-enq .bootstrap-select .filter-option-inner-inner:has(.pyp-enq-run) {
	display: flex;
	overflow: visible;
}

.pyp-enq .bootstrap-select .filter-option-inner-inner .pyp-enq-run {
	padding-right: 6px;
}

.pyp-enq .bootstrap-select li.selected .dropdown-item,
.pyp-enq .bootstrap-select .dropdown-item.active {
	background: rgba(29, 112, 68, 0.12);
	color: var(--pyp-forest);
	font-weight: 600;
}

.pyp-enq .bootstrap-select.show-tick .dropdown-menu .selected span.check-mark {
	top: 50%;
	right: 12px;
	color: var(--pyp-green);
	font-size: 17px;
	line-height: 1;
	transform: translateY(-50%);
}

/* Errors — one line under the field, written by core.js. The form's own message spans
   (phonealert, emailalert, the consent feedback) serve the inline pages; hidden here. */
.pyp-enq #my_form .log-co-us-er,
.pyp-enq #my_form .invalid-feedback {
	display: none !important;
}

.pyp-enq .pyp-enq__err {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin: 7px 0 0;
	color: var(--pyp-enq-danger);
	font: 500 12.5px/1.4 var(--pyp-font-sans);
	letter-spacing: -0.003em;
	animation: pyp-enq-err-in var(--pyp-dur) var(--pyp-ease-out);
}

.pyp-enq .pyp-enq__err::before {
	content: '\f332'; /* bi-exclamation-circle-fill */
	flex-shrink: 0;
	font: 12px/1.45 bootstrap-icons;
}

.pyp-enq .pyp-enq__err:empty {
	display: none;
}

@keyframes pyp-enq-err-in {
	from { opacity: 0; translate: 0 -4px; }
}

/* intelph.js marks the phone input .is-invalid on every keystroke; here the field's state is
   core.js's call (on leaving the field or sending), so Bootstrap's look for it is undone. */
.pyp-enq #my_form .form-control.is-invalid {
	padding-right: 14px;
	border-color: rgba(15, 59, 39, 0.13);
	background-image: none;
}

.pyp-enq #my_form .form-control.is-invalid:focus {
	border-color: var(--pyp-green);
	box-shadow: 0 0 0 4px rgba(29, 112, 68, 0.14);
}

/* Invalid field (its column carries .is-invalid): red edge, faint red fill and ring */
.pyp-enq #my_form .is-invalid .form-control,
.pyp-enq #my_form .is-invalid .bootstrap-select > .dropdown-toggle {
	border-color: var(--pyp-enq-danger);
	background-color: #fdf6f5;
	box-shadow: 0 0 0 4px rgba(184, 67, 60, 0.1);
}

.pyp-enq #my_form .is-invalid .form-control:focus,
.pyp-enq #my_form .is-invalid .bootstrap-select > .dropdown-toggle.show {
	border-color: var(--pyp-enq-danger);
	background-color: #fff;
	box-shadow: 0 0 0 4px rgba(184, 67, 60, 0.16);
}

.pyp-enq #my_form .is-invalid .bootstrap-select > .dropdown-toggle::after {
	color: var(--pyp-enq-danger);
}

/* Consent */
.pyp-enq #my_form .form-check {
	display: flex;
	gap: 10px;
	margin: 0;
	padding: 0;
}

.pyp-enq #my_form .form-check-input {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	border: 1.5px solid rgba(15, 59, 39, 0.28);
	border-radius: 6px;
	background-color: #fff;
	cursor: pointer;
	float: none;
}

.pyp-enq #my_form .form-check-input:checked {
	border-color: var(--pyp-green);
	background-color: var(--pyp-green);
}

.pyp-enq #my_form .form-check-input:focus {
	box-shadow: 0 0 0 4px rgba(29, 112, 68, 0.14);
}

.pyp-enq #my_form .is-invalid .form-check-input {
	border-color: var(--pyp-enq-danger);
	box-shadow: 0 0 0 4px rgba(184, 67, 60, 0.1);
}

.pyp-enq #my_form .form-check-label {
	flex: 1 1 0;
	min-width: 0;
	color: var(--pyp-ink-soft) !important;
	font: 400 13px/1.5 var(--pyp-font-sans) !important;
}

.pyp-enq #my_form .form-check-label a {
	color: var(--pyp-green);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Send — the pill of the navbar CTA, arrow included */
.pyp-enq #my_form .contact-form-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 54px;
	margin-top: 4px;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	background: var(--pyp-green);
	box-shadow: 0 14px 28px -14px rgba(29, 112, 68, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.18);
	color: #fff !important;
	font: 600 16px/1 var(--pyp-font-sans);
	letter-spacing: -0.011em;
	transition:
		background-color var(--pyp-dur-fast) var(--pyp-ease-out),
		box-shadow var(--pyp-dur) var(--pyp-ease-out),
		transform 120ms var(--pyp-ease-out);
}

.pyp-enq #my_form .contact-form-button::after {
	content: '\f138'; /* bi-arrow-right */
	font-family: bootstrap-icons !important;
	font-size: 17px;
	transition: transform var(--pyp-dur) var(--pyp-ease-out);
}

.pyp-enq #my_form .contact-form-button:active {
	transform: scale(0.98);
}

.pyp-enq #my_form .contact-form-button:focus-visible {
	outline: 2px solid var(--pyp-green);
	outline-offset: 3px;
}

@media (hover: hover) {
	.pyp-enq #my_form .contact-form-button:hover {
		background: var(--pyp-green-hover);
		box-shadow: 0 18px 32px -14px rgba(29, 112, 68, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.18);
		transform: none;
	}

	.pyp-enq #my_form .contact-form-button:hover::after {
		transform: translateX(3px);
	}
}

/* Sending: arrow becomes a spinner */
.pyp-enq #my_form.is-sending .contact-form-button {
	pointer-events: none;
	background: var(--pyp-green-hover);
}

.pyp-enq #my_form.is-sending .contact-form-button::after {
	content: '';
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: pyp-enq-spin 0.7s linear infinite;
}

@keyframes pyp-enq-spin {
	to { transform: rotate(360deg); }
}

/* 5b. Tablet: narrower brand pane */
@media (min-width: 860px) and (max-width: 1099.98px) {
	.pyp-enq__brand {
		padding: 34px 28px 28px;
	}

	.pyp-enq__form {
		padding: 32px 30px 24px;
	}

	.pyp-enq__perk-txt small {
		display: none;
	}
}

/* 5b-2. Fields: the label sits inside its field (all sizes), the way premium checkouts do it —
   one compact box per answer instead of a label line plus a box. */
.pyp-enq #my_form > [class*="col-"] {
	position: relative;
}

.pyp-enq #my_form .form-label {
	position: absolute;
	z-index: 3;
	top: 8px;
	left: calc(var(--bs-gutter-x) * 0.5 + 15px);
	right: calc(var(--bs-gutter-x) * 0.5 + 15px);
	margin: 0;
	overflow: hidden;
	color: var(--pyp-ink-soft);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-overflow: ellipsis;
	white-space: nowrap;
	pointer-events: none; /* taps go to the field underneath */
	transition: color var(--pyp-dur-fast) var(--pyp-ease-out);
}

.pyp-enq #my_form > [class*="col-"]:focus-within .form-label {
	color: var(--pyp-green);
}

.pyp-enq #my_form > .is-invalid .form-label {
	color: var(--pyp-enq-danger);
}

.pyp-enq #my_form .form-control {
	height: 52px;
	min-height: 52px;
	padding-top: 21px;
	padding-bottom: 5px;
	line-height: 1.5;
}

.pyp-enq #my_form textarea.form-control {
	resize: none;
}

.pyp-enq #my_form .bootstrap-select > .dropdown-toggle::after {
	top: calc(50% + 7px);
}

.pyp-enq #my_form .iti__country-container {
	top: 18px;
	bottom: 1px;
}

.pyp-enq .pyp-enq__err {
	margin-top: 5px;
	font-size: 12px;
}

.pyp-enq #my_form .form-check {
	gap: 9px;
	padding-top: 2px;
}

.pyp-enq #my_form .form-check-input {
	width: 18px;
	height: 18px;
}

.pyp-enq #my_form .form-check-label {
	font-size: 12px !important;
	line-height: 1.45 !important;
}

/* 5b-3. Desktop card: everything on one screen, no scrolling.
   The form pairs its six short answers (name + mobile, email + course, location + batch), the
   brand pane tightens, and on short laptop screens it drops its least useful lines. Send is
   pinned to the bottom of the form column as a fallback — e.g. once error lines are added. */
@media (min-width: 860px) {
	.pyp-enq {
		padding-block: 20px;
	}

	.pyp-enq__panel {
		max-height: min(720px, 100%);
	}

	/* Form column */
	.pyp-enq__form {
		display: flex;
		flex-direction: column;
		padding: 30px 34px 0;
	}

	.pyp-enq__form-head {
		margin-bottom: 18px;
	}

	.pyp-enq__form-head h3 {
		margin-bottom: 2px;
		font-size: 23px;
	}

	.pyp-enq__form-head p {
		font-size: 13.5px;
	}

	.pyp-enq #my_form {
		--bs-gutter-x: 12px;
		row-gap: 10px;
		margin-inline: -6px !important;
	}

	/* Rows, as on phones: name / mobile / email / course + location / batch / query */
	.pyp-enq #my_form > [class*="col-"]:has(#phone),
	.pyp-enq #my_form > [class*="col-"]:has(#email) {
		flex: 0 0 auto;
		width: 100%;
	}

	.pyp-enq #my_form textarea.form-control {
		height: 92px;
		min-height: 92px;
		max-height: 150px;
	}

	.pyp-enq #my_form > [class*="col-"]:last-child {
		position: sticky;
		z-index: 4;
		bottom: 0;
		padding-top: 8px;
		padding-bottom: 14px;
		background: linear-gradient(rgba(255, 255, 255, 0), #fff 8px);
	}

	.pyp-enq #my_form .contact-form-button {
		min-height: 52px;
		margin-top: 0;
	}

	.pyp-enq__alt {
		margin: 0 0 18px;
	}

	/* Brand column */
	.pyp-enq__brand {
		gap: 12px;
		padding: 34px 32px 28px;
	}

	.pyp-enq__glyph {
		width: 46px;
		height: 46px;
		margin-bottom: 2px;
		border-radius: 14px;
	}

	.pyp-enq__glyph .pyp-icon {
		width: 25px;
		height: 25px;
	}

	.pyp-enq__title {
		font-size: clamp(26px, 2.3vw, 32px);
	}

	.pyp-enq__lede {
		font-size: 14px;
		line-height: 1.5;
	}

	.pyp-enq__perks {
		margin-top: 4px;
	}

	.pyp-enq__perks li {
		gap: 12px;
		padding: 10px 0;
	}

	.pyp-enq__perk-ico {
		width: 36px;
		height: 36px;
		border-radius: 11px;
		font-size: 16px;
	}

	.pyp-enq__perk-txt b {
		font-size: 14.5px;
	}

	.pyp-enq__perk-txt small {
		font-size: 12.5px;
	}

	.pyp-enq__reach {
		padding-top: 10px;
	}

	.pyp-enq__reach-link {
		min-height: 40px;
	}
}

/* Short laptop screens: the card keeps its answers and its promise, loses the ornaments */
@media (min-width: 860px) and (max-height: 700px) {
	.pyp-enq__glyph,
	.pyp-enq__perk-txt small {
		display: none;
	}

	.pyp-enq__form {
		padding-top: 26px;
	}

	.pyp-enq__form-head {
		margin-bottom: 14px;
	}

	.pyp-enq #my_form textarea.form-control {
		height: 80px;
		min-height: 80px;
	}

	.pyp-enq__form-head p {
		display: none;
	}

	/* Slightly slimmer fields, same layout */
	.pyp-enq #my_form {
		row-gap: 8px;
	}

	.pyp-enq #my_form .form-control {
		height: 48px;
		min-height: 48px;
		padding-top: 19px;
		padding-bottom: 3px;
	}

	.pyp-enq #my_form .form-label {
		top: 7px;
	}

	.pyp-enq #my_form .bootstrap-select > .dropdown-toggle::after {
		top: calc(50% + 6px);
	}

	.pyp-enq #my_form .iti__country-container {
		top: 16px;
	}
}

@media (min-width: 860px) and (max-height: 600px) {
	.pyp-enq {
		padding-block: 12px;
	}

	.pyp-enq__lede,
	.pyp-enq__form-head p,
	.pyp-enq__alt {
		display: none;
	}

	.pyp-enq #my_form > [class*="col-"]:last-child {
		padding-bottom: 18px;
	}
}

/* 5c. Bottom sheet (phones, small tablets)
   Built to show the whole form at once on a phone: the brand pane becomes a slim header
   (title + round WhatsApp / call / close), labels sit inside the fields, course and location
   share a row, and Send is pinned to the bottom of the sheet so it is never scrolled away —
   on the shortest phones, and once errors add lines, only the fields above it scroll. */
@media (max-width: 859.98px) {
	.pyp-enq {
		padding: 0;
	}

	.pyp-enq[open] {
		align-items: flex-end;
	}

	/* No blur on phones: re-blurring the whole page while it fades costs frames, and the sheet
	   covers nearly all of it anyway */
	.pyp-enq::before {
		background: rgba(6, 26, 17, 0.55);
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

	.pyp-enq.is-open::before {
		transition-duration: 600ms;
	}

	/* Rises on the iOS sheet curve; leaves quicker than it arrives */
	.pyp-enq__panel {
		width: 100%;
		max-width: 640px;
		max-height: calc(100% - 8px - env(safe-area-inset-top));
		border-radius: 28px 28px 0 0;
		opacity: 1;
		transform: translateY(100%);
		transition: transform 360ms var(--pyp-enq-exit);
	}

	.pyp-enq.is-open .pyp-enq__panel {
		transform: translateY(var(--pyp-enq-drag, 0px));
		transition: transform 900ms var(--pyp-enq-spring);
	}

	/* (#pypEnquiry: outranks § 5e, which comes later in the file) */
	#pypEnquiry.is-open .pyp-enq__brand > :not(.pyp-enq__watermark),
	#pypEnquiry.is-open #my_form > div {
		animation-duration: 720ms;
		animation-delay: calc(280ms + var(--pyp-enq-i, 0) * 50ms);
	}

	.pyp-enq .pyp-enq__panel.is-dragging {
		transition: none;
	}

	/* One scroller for the whole sheet */
	.pyp-enq__scroll {
		display: block;
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	/* Handle: a wide touch strip over the top of the sheet */
	.pyp-enq__grab {
		position: absolute;
		z-index: 1;
		top: 0;
		left: 0;
		right: 0;
		display: block;
		height: 24px;
		cursor: grab;
		touch-action: none;
	}

	.pyp-enq__grab::before {
		content: '';
		position: absolute;
		top: 8px;
		left: 50%;
		width: 38px;
		height: 5px;
		margin-left: -19px;
		border-radius: 999px;
		background: rgba(255, 255, 255, 0.6);
		box-shadow: 0 0 0 1px rgba(15, 59, 39, 0.14); /* still visible once white form scrolls under it */
	}

	/* Header: title on the left; WhatsApp, call and close as one row of round glass buttons */
	.pyp-enq__brand {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		column-gap: 12px;
		padding: 26px 60px 13px 20px; /* right: room for the close button */
	}

	.pyp-enq__glyph,
	.pyp-enq__eyebrow,
	.pyp-enq__lede,
	.pyp-enq__perks,
	.pyp-enq__reach-label,
	.pyp-enq__form-head,
	.pyp-enq__alt {
		display: none;
	}

	.pyp-enq__watermark {
		top: -50px;
		right: 40px;
		bottom: auto;
		width: 170px;
		height: 170px;
	}

	.pyp-enq__title {
		grid-row: 1;
		grid-column: 1;
		font-size: 21px;
		line-height: 1.12;
	}

	.pyp-enq .pyp-enq__title .pyp-enq__accent {
		display: block;
	}

	.pyp-enq__reach {
		grid-row: 1;
		grid-column: 2;
		flex-wrap: nowrap;
		gap: 8px;
		margin: 0;
		padding: 0;
	}

	.pyp-enq__reach-link,
	.pyp-enq__close {
		width: 36px;
		height: 36px;
		min-height: 0;
		padding: 0;
		justify-content: center;
		border: 1px solid rgba(255, 255, 255, 0.24);
		border-radius: 50%;
		font-size: 15px;
	}

	.pyp-enq__reach-link--wa {
		border-color: transparent;
	}

	.pyp-enq__reach-link span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.pyp-enq__close {
		top: 31px; /* centred on the header row */
		right: 16px;
		/* Tinted glass: reads on the green header and on the white form scrolling under it */
		background: rgba(15, 59, 39, 0.62);
		-webkit-backdrop-filter: blur(10px);
		backdrop-filter: blur(10px);
		box-shadow: 0 4px 12px -4px rgba(4, 24, 14, 0.4);
		color: #fff;
		font-size: 13px;
	}

	/* Form: labels inside the fields */
	.pyp-enq__form {
		overflow: visible;
		padding: 12px 16px 0;
	}

	.pyp-enq #my_form {
		--bs-gutter-x: 10px;
		row-gap: 8px;
		margin-inline: -5px !important;
	}

	.pyp-enq #my_form > [class*="col-"] {
		position: relative;
	}

	.pyp-enq #my_form > .col-md-6:has(#program),
	.pyp-enq #my_form > .col-md-6:has(#location_id) {
		flex: 0 0 auto;
		width: 50%;
	}

	/* Room for a few lines from the start; grows further as you type (core.js), up to the cap */
	.pyp-enq #my_form textarea.form-control {
		height: 104px;
		min-height: 104px;
		max-height: 176px;
	}

	/* Send, pinned to the bottom of the sheet */
	.pyp-enq #my_form > [class*="col-"]:last-child {
		position: sticky;
		z-index: 4;
		bottom: 0;
		padding-top: 10px;
		padding-bottom: calc(14px + env(safe-area-inset-bottom));
		background: linear-gradient(rgba(255, 255, 255, 0), #fff 10px);
	}

	.pyp-enq #my_form .contact-form-button {
		min-height: 52px;
		margin-top: 0;
	}
}

/* 5e. Entrance: the content follows the panel in, header first, then field by field.
   `translate`, not `transform`, so nothing fights the transforms already on these elements. */
@keyframes pyp-enq-rise {
	from { opacity: 0; translate: 0 12px; }
}

.pyp-enq.is-open .pyp-enq__brand > :not(.pyp-enq__watermark),
.pyp-enq.is-open .pyp-enq__form-head,
.pyp-enq.is-open #my_form > div,
.pyp-enq.is-open .pyp-enq__alt {
	animation: pyp-enq-rise 680ms var(--pyp-ease-out) backwards;
	animation-delay: calc(170ms + var(--pyp-enq-i, 0) * 45ms);
}

.pyp-enq__brand > :nth-child(3) { --pyp-enq-i: 1; }
.pyp-enq__brand > :nth-child(4) { --pyp-enq-i: 2; }
.pyp-enq__brand > :nth-child(5) { --pyp-enq-i: 3; }
.pyp-enq__brand > :nth-child(6) { --pyp-enq-i: 4; }
.pyp-enq__brand > :nth-child(7) { --pyp-enq-i: 5; }
.pyp-enq__form-head { --pyp-enq-i: 1; }
#pypEnquiry #my_form > div:nth-of-type(1) { --pyp-enq-i: 2; }
#pypEnquiry #my_form > div:nth-of-type(2) { --pyp-enq-i: 3; }
#pypEnquiry #my_form > div:nth-of-type(3) { --pyp-enq-i: 4; }
#pypEnquiry #my_form > div:nth-of-type(4) { --pyp-enq-i: 5; }
#pypEnquiry #my_form > div:nth-of-type(5) { --pyp-enq-i: 6; }
#pypEnquiry #my_form > div:nth-of-type(6) { --pyp-enq-i: 7; }
#pypEnquiry #my_form > div:nth-of-type(7) { --pyp-enq-i: 8; }
#pypEnquiry #my_form > div:nth-of-type(8) { --pyp-enq-i: 9; }
#pypEnquiry #my_form > div:nth-of-type(9) { --pyp-enq-i: 10; }
#pypEnquiry #my_form > div:nth-of-type(10) { --pyp-enq-i: 11; }
#pypEnquiry #my_form > div:nth-of-type(11) { --pyp-enq-i: 12; }
#pypEnquiry #my_form > div:nth-of-type(12) { --pyp-enq-i: 13; }
.pyp-enq__alt { --pyp-enq-i: 14; }
/* A field the chosen course reveals after the entrance (enquiry-form.js) appears at once,
   instead of replaying the entrance from invisible. */
.pyp-enq.is-open #my_form > div.is-late { animation: none; }

/* 5d. User preferences */
@media (prefers-reduced-motion: reduce) {
	.pyp-enq .pyp-enq__panel,
	.pyp-enq.is-open .pyp-enq__panel {
		transform: none !important;
		transition: opacity var(--pyp-dur) linear !important;
	}

	.pyp-enq .pyp-enq__panel {
		opacity: 0;
	}

	.pyp-enq.is-open .pyp-enq__panel {
		opacity: 1;
	}

	.pyp-enq.is-open .pyp-enq__brand > *,
	.pyp-enq.is-open .pyp-enq__form-head,
	.pyp-enq.is-open #my_form > div,
	.pyp-enq.is-open .pyp-enq__alt,
	.pyp-enq .pyp-enq__err,
	.pyp-enq .bootstrap-select > .dropdown-menu.show,
	.pyp-enq__dot::after,
	.pyp-enq #my_form .contact-form-button:hover::after {
		animation: none;
		transform: none;
	}
}

@media (prefers-reduced-transparency: reduce) {
	.pyp-enq::before {
		background: rgba(6, 26, 17, 0.72);
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

	.pyp-enq__glyph {
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}
}

@media (prefers-contrast: more) {
	.pyp-enq #my_form .form-control,
	.pyp-enq #my_form .form-select {
		border-color: var(--pyp-ink);
	}
}


/* 6. Toasts — window.pypToast in core.js
   Glass card, top centre; enters from above, the bar counts down its life (paused on hover).
   ========================================================================== */

.pyp-toasts {
	position: fixed;
	z-index: 2000;
	top: calc(14px + env(safe-area-inset-top));
	left: 50%;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
	width: min(400px, calc(100% - 2 * var(--pyp-gutter)));
	transform: translateX(-50%);
	pointer-events: none;
}

.pyp-toast {
	--pyp-toast-tone: var(--pyp-green);
	--pyp-toast-tint: rgba(29, 112, 68, 0.12);

	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 12px 16px 14px;
	border: 1px solid rgba(255, 255, 255, 0.75);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.9);
	-webkit-backdrop-filter: saturate(180%) blur(24px);
	backdrop-filter: saturate(180%) blur(24px);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.95),
		0 1px 2px rgba(15, 59, 39, 0.06),
		0 22px 44px -16px rgba(4, 24, 14, 0.45);
	color: var(--pyp-ink);
	font-family: var(--pyp-font-sans);
	overflow: hidden;
	pointer-events: auto;
	opacity: 0;
	transform: translateY(-14px) scale(0.97);
	transition:
		opacity 200ms var(--pyp-ease-out),
		transform var(--pyp-dur-slow) var(--pyp-ease-out);
}

.pyp-toast--error {
	--pyp-toast-tone: #b8433c;
	--pyp-toast-tint: rgba(184, 67, 60, 0.12);
}

.pyp-toast--info {
	--pyp-toast-tone: #2f6f9f;
	--pyp-toast-tint: rgba(47, 111, 159, 0.12);
}

.pyp-toast.is-visible {
	opacity: 1;
	transform: none;
}

.pyp-toast.is-leaving {
	opacity: 0;
	transform: translateY(-8px) scale(0.98);
	transition-duration: 180ms;
}

/* Same toast again (e.g. Send pressed twice): a small shake instead of a second card */
.pyp-toast.is-nudged {
	animation: pyp-toast-nudge 380ms var(--pyp-ease-out);
}

@keyframes pyp-toast-nudge {
	0%, 100% { translate: 0; }
	20% { translate: -6px 0; }
	45% { translate: 5px 0; }
	70% { translate: -3px 0; }
}

.pyp-toast__icon {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 11px;
	background: var(--pyp-toast-tint);
	color: var(--pyp-toast-tone);
	font-size: 17px;
}

.pyp-toast__body {
	flex: 1 1 auto;
	min-width: 0;
	padding-top: 1px;
}

.pyp-toast__title {
	margin: 0;
	color: var(--pyp-ink);
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.011em;
}

.pyp-toast__text {
	margin: 2px 0 0;
	color: var(--pyp-ink-soft);
	font-size: 13.5px;
	line-height: 1.45;
	letter-spacing: -0.006em;
	text-wrap: pretty;
}

.pyp-toast__title[hidden] + .pyp-toast__text {
	margin-top: 6px;
}

.pyp-toast__close {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 28px;
	height: 28px;
	margin: -2px -2px 0 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--pyp-ink-soft);
	font-size: 12px;
	cursor: pointer;
	transition: background-color var(--pyp-dur-fast) var(--pyp-ease-out), color var(--pyp-dur-fast) var(--pyp-ease-out);
}

.pyp-toast__close:focus-visible {
	outline: 2px solid var(--pyp-toast-tone);
	outline-offset: 1px;
}

@media (hover: hover) {
	.pyp-toast__close:hover {
		background: rgba(15, 59, 39, 0.07);
		color: var(--pyp-ink);
	}
}

.pyp-toast__bar {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 3px;
	background: var(--pyp-toast-tone);
	opacity: 0.55;
	transform-origin: left center;
	animation: pyp-toast-life var(--pyp-toast-dur, 4500ms) linear forwards;
}

.pyp-toast.is-paused .pyp-toast__bar {
	animation-play-state: paused;
}

@keyframes pyp-toast-life {
	from { transform: scaleX(1); }
	to { transform: scaleX(0); }
}

@media (prefers-reduced-motion: reduce) {
	.pyp-toast,
	.pyp-toast.is-leaving {
		transform: none;
	}

	.pyp-toast.is-nudged {
		animation: none;
	}
}

@media (prefers-reduced-transparency: reduce) {
	.pyp-toast {
		background: #fff;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}
}


/* ==========================================================================
   7. Student stories (.pyp-ts) · markup: file/home/testimonial.php
   On the home page and the contact page.
   Real reviews (Elfsight's horizontal Google Reviews carousel) in a
   clay-and-glass frame, "Read all stories" below. The page leaves the
   section out while the widget is not live; if the reviews still fail to
   load, the script hides it.
   ========================================================================== */

.pyp-ts {
	--pyp-saffron-deep: #d9822b;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-block: clamp(32px, 4vw, 60px);
	background:
		radial-gradient(50% 70% at 90% 10%, rgba(156, 207, 104, 0.2), transparent 70%),
		linear-gradient(180deg, #fff 0%, #f4f8ef 100%);
}

/* a large quotation mark, faint, behind the heading */
.pyp-ts__quote-mark {
	position: absolute;
	top: -60px;
	right: 4%;
	z-index: -1;
	font: 400 340px/1 Georgia, 'Times New Roman', serif;
	color: rgba(29, 112, 68, 0.06);
	pointer-events: none;
	user-select: none;
}

/* Heading */
.pyp-ts__head {
	display: grid;
	gap: 16px;
	margin-bottom: clamp(18px, 2vw, 28px);
}

.pyp-ts .pyp-ts__eyebrow {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	font: 600 11px/1 var(--pyp-font-sans);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--pyp-green);
}

/* Om is a sacred symbol, so it alone takes the saffron */
.pyp-ts__om {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	color: var(--pyp-saffron-deep);
	fill: currentColor;
}

.pyp-ts .pyp-ts__title {
	margin: 0;
	font: 500 clamp(26px, 3vw, 46px)/1.1 var(--pyp-font-menu);
	letter-spacing: -0.015em;
	color: var(--pyp-forest);
	text-wrap: balance;
}

.pyp-ts__title em {
	font-style: normal;
	color: var(--pyp-green);
	background: linear-gradient(100deg, #12512f 0%, #1d7044 40%, #2f8a4c 70%, #4a9e45 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.pyp-ts .pyp-ts__lede {
	margin: 10px 0 0;
	font: 400 15px/1.6 var(--pyp-font-sans);
	color: var(--pyp-ink-soft);
}

/* Sources: glass chips */
.pyp-ts__sources {
	display: grid;
	gap: 8px;
}

.pyp-ts__sources-label {
	font: 600 10.5px/1 var(--pyp-font-sans);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--pyp-ink-soft);
}

.pyp-ts .pyp-ts__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pyp-ts .pyp-ts__chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 38px;
	padding: 0 14px 0 6px;
	border: 1px solid rgba(255, 255, 255, 0.95);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.75);
	-webkit-backdrop-filter: blur(12px) saturate(160%);
	backdrop-filter: blur(12px) saturate(160%);
	box-shadow: inset 0 1px 0 #fff, 0 8px 20px -14px rgba(15, 59, 39, 0.45);
	font: 400 13px/1 var(--pyp-font-sans);
	color: var(--pyp-ink-soft);
	text-decoration: none;
	transition: transform 160ms var(--pyp-ease-out), box-shadow 200ms ease;
}

.pyp-ts__chip .bi {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: linear-gradient(145deg, #2f8a4c, var(--pyp-forest));
	font-size: 13px;
	color: #fff;
}

.pyp-ts__chip b {
	font: 500 13.5px/1 var(--pyp-font-menu);
	color: var(--pyp-forest);
}

.pyp-ts__chip:active {
	transform: scale(0.97);
}

.pyp-ts__chip:focus-visible {
	outline: 2px solid var(--pyp-green);
	outline-offset: 2px;
}

@media (hover: hover) {
	.pyp-ts .pyp-ts__chip:hover {
		color: var(--pyp-ink-soft);
		transform: translateY(-2px);
		box-shadow: inset 0 1px 0 #fff, 0 14px 26px -14px rgba(15, 59, 39, 0.5);
	}
}

/* The frame: clay-and-glass, the reviews fade out at its foot */
.pyp-ts__frame {
	position: relative;
	padding: clamp(10px, 1.4vw, 18px);
	border: 1px solid rgba(255, 255, 255, 0.9);
	border-radius: 26px;
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.5));
	-webkit-backdrop-filter: blur(18px) saturate(170%);
	backdrop-filter: blur(18px) saturate(170%);
	box-shadow:
		inset 0 1px 0 #fff,
		inset 6px 6px 16px rgba(255, 255, 255, 0.85),
		inset -8px -8px 18px rgba(29, 112, 68, 0.06),
		18px 22px 44px -24px rgba(15, 59, 39, 0.3);
}

.pyp-ts__reviews {
	position: relative;
	min-height: 200px; /* holds the space while the carousel loads */
	border-radius: 18px;
}

.pyp-ts.is-loaded .pyp-ts__reviews {
	min-height: 0;
}

/* while the reviews load: a soft shimmer */
.pyp-ts:not(.is-loaded):not(.is-empty) .pyp-ts__reviews {
	background: linear-gradient(100deg, rgba(29, 112, 68, 0.04) 30%, rgba(29, 112, 68, 0.09) 50%, rgba(29, 112, 68, 0.04) 70%) 0 0 / 300% 100%;
	animation: pyp-ts-shimmer 1.6s linear infinite;
}

@keyframes pyp-ts-shimmer {
	to { background-position: -150% 0; }
}

.pyp-ts__more {
	position: relative;
	display: flex;
	justify-content: center;
	margin-top: 16px;
}

.pyp-ts .pyp-ts__btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	height: 46px;
	padding: 0 5px 0 20px;
	border-radius: 999px;
	background: linear-gradient(135deg, #23824f, var(--pyp-forest));
	box-shadow: 0 12px 24px -12px rgba(15, 59, 39, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.18);
	font: 500 15px/1 var(--pyp-font-menu);
	color: #fff;
	text-decoration: none;
	transition: transform 160ms var(--pyp-ease-out), box-shadow 200ms ease;
}

.pyp-ts__btn .bi {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #c8e6a0;
	color: var(--pyp-forest);
	font-size: 15px;
	transition: transform 300ms var(--pyp-ease-out), background-color 200ms ease;
}

.pyp-ts__btn:active {
	transform: scale(0.97);
}

.pyp-ts__btn:focus-visible {
	outline: 2px solid var(--pyp-green);
	outline-offset: 3px;
}

@media (hover: hover) {
	.pyp-ts .pyp-ts__btn:hover {
		color: #fff;
		box-shadow: 0 16px 30px -12px rgba(15, 59, 39, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.18);
	}

	.pyp-ts__btn:hover .bi {
		background: #fff;
		transform: rotate(-45deg);
	}
}

/* The reviews did not load after all: the section steps aside */
.pyp-ts.is-empty {
	display: none;
}

/* Reveal as the section scrolls in */
.pyp-ts.is-armed .pyp-ts__head,
.pyp-ts.is-armed .pyp-ts__frame {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 800ms var(--pyp-ease-out), transform 900ms var(--pyp-ease-out);
}

.pyp-ts.is-armed .pyp-ts__frame {
	transition-delay: 150ms;
}

.pyp-ts.is-armed.is-in .pyp-ts__head,
.pyp-ts.is-armed.is-in .pyp-ts__frame {
	opacity: 1;
	transform: none;
}

@media (min-width: 992px) {
	.pyp-ts__head {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: end;
		column-gap: 48px;
	}

	.pyp-ts__sources {
		justify-items: end;
	}
}

@media (max-width: 767.98px) {
	.pyp-ts {
		padding-block: 24px 28px;
	}

	.pyp-ts .pyp-ts__title {
		font-size: 24px;
	}

	.pyp-ts .pyp-ts__lede {
		font-size: 14px;
	}

	.pyp-ts__quote-mark {
		top: -30px;
		font-size: 200px;
	}

	/* chips: a swipe row */
	.pyp-ts .pyp-ts__chips {
		flex-wrap: nowrap;
		margin: 0 calc(-1 * var(--pyp-gutter));
		padding: 2px var(--pyp-gutter) 6px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.pyp-ts__chips::-webkit-scrollbar {
		display: none;
	}

	.pyp-ts .pyp-ts__chip {
		flex-shrink: 0;
		white-space: nowrap;
	}

	.pyp-ts__frame {
		padding: 8px;
		border-radius: 22px;
	}

	.pyp-ts .pyp-ts__btn {
		justify-content: space-between;
		width: calc(100% - 16px);
		height: 52px;
		padding-left: 20px;
		border-radius: 18px;
	}

	.pyp-ts__btn .bi {
		width: 42px;
		height: 42px;
		border-radius: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pyp-ts:not(.is-loaded):not(.is-empty) .pyp-ts__reviews {
		animation: none;
	}

	.pyp-ts.is-armed .pyp-ts__head,
	.pyp-ts.is-armed .pyp-ts__frame {
		transform: none;
		transition-property: opacity;
		transition-duration: 300ms;
	}
}

@media (prefers-reduced-transparency: reduce) {
	.pyp-ts__frame,
	.pyp-ts .pyp-ts__chip {
		background: #fff;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}
}


/* Staff preview (?preview=1, signed-in only) ------------------------------
   A bar across the top says this is a preview; hidden sections and FAQs
   render inside a dashed outline with a label so nothing is mistaken for live.
   Shared by services and Article & Guidance, so it lives in core. */
.pyp-preview-bar {
	position: sticky;
	top: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	padding: 9px var(--pyp-gutter, 14px);
	background: linear-gradient(135deg, #0f3b27, #1d7044);
	color: #fff;
	font-family: var(--pyp-font-sans, 'Inter', sans-serif);
	font-size: 13px;
	box-shadow: 0 6px 18px -8px rgba(15, 59, 39, 0.6);
}
.pyp-preview-bar__tag {
	padding: 3px 9px;
	border-radius: 999px;
	background: #9ccf68;
	color: #0f3b27;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.pyp-preview-bar__msg { flex: 1 1 auto; min-width: 0; opacity: 0.92; }
.pyp-preview-bar__exit { color: #fff; font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.pyp-preview-bar__exit:hover { color: #9ccf68; }

.pyp-preview-hidden {
	position: relative;
	margin: 26px 0 18px;
	padding: 22px 16px 10px;
	border: 2px dashed #e0a43a;
	border-radius: 16px;
	background: repeating-linear-gradient(135deg, rgba(255, 244, 224, 0.55) 0 12px, rgba(255, 244, 224, 0.25) 12px 24px);
}
.pyp-preview-hidden::before {
	content: attr(data-label);
	position: absolute;
	top: -12px;
	left: 14px;
	padding: 2px 10px;
	border-radius: 999px;
	background: #fff4e0;
	border: 1px solid #e0a43a;
	color: #8a5200;
	font-family: var(--pyp-font-sans, 'Inter', sans-serif);
	font-size: 11.5px;
	font-weight: 600;
}
.pyp-preview-hidden > :last-child { margin-bottom: 0; }
