/*
Theme Name: Material Spa
Theme URI: https://www.nayrathemes.com/material-spa
Author: Nayra Themes
Description: Material Spa is an FSE (Full Site Editing) WordPress theme built entirely with blocks and patterns. It provides a true visual editing experience in WordPress, allowing you to easily customize your website without coding. This multipurpose theme is suitable for business websites, agencies, portfolios, blogs, and other professional websites. No extra plugins are required with the theme, helping your website run smoothly and efficiently. Material Spa includes multiple style variations, allowing you to quickly switch between different color schemes and visual styles. The free version includes 11 professionally designed patterns that you can use to build beautiful page layouts. With the WordPress Site Editor, you can easily manage various aspects of your website, including colors, typography, spacing, layouts, and styles. The Material Spa Pro version comes with many additional blocks and professionally designed patterns, organized page-wise as showcased in our demo. It provides more design options and flexibility for creating complete websites. Checkout Pro Demo: https://nayrathemes.com/demo/pro/material-spa
Template: material-ai
Version: 1.0.2
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GPLv3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: material-spa
Tags: blog, e-commerce, one-column, custom-logo, custom-menu, editor-style, featured-images, block-patterns, style-variations, template-editing, translation-ready, wide-blocks
*/

/* ==========================================================================
   Material Spa

   Only what the Spa design adds. The parent's stylesheets load first and
   stay in force everywhere else. The header and hero use their own mspa-
   classes, so none of the parent's header or banner rules reach them.
   Colours come from the palette only, so Styles -> Palettes recolours the
   whole design.
   ========================================================================== */

:root{
	--mspa-shell: var(--wp--style--global--content-size, 1100px);
	--mspa-gutter: clamp(16px, 1.35vw, 40px);
	--mspa-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='4.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12h14'/%3E%3Cpath d='m12.8 5.6 6.4 6.4-6.4 6.4'/%3E%3C/svg%3E");
	--mspa-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E");
	--mspa-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.6' stroke-width='3.2'/%3E%3Cpath d='m15.6 15.6 5 5' stroke-width='3.6'/%3E%3C/svg%3E");
	--mspa-cart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M1.8 3.4h2.6l2.9 11.2' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M5.6 6h16.2l-2.1 8a1.3 1.3 0 0 1-1.3 1H7.9z'/%3E%3Cpath d='M7.4 17.6h11.4' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3Ccircle cx='9' cy='20.6' r='1.9'/%3E%3Ccircle cx='17.6' cy='20.6' r='1.9'/%3E%3C/svg%3E");
}

/* Shared: a glyph drawn from one of the masks above, in the current colour. */
.mspa-arrow-link::after,
.mspa-caret a::after,
.mspa-btn .wp-block-button__link::after,
.mspa-search .wp-block-search__button::before,
.mspa-minicart .wc-block-mini-cart__button::before,
.mspa-nav .wp-block-navigation__submenu-icon::before{
	content: "";
	display: inline-block;
	flex: 0 0 auto;
	background-color: currentColor;
	-webkit-mask: var(--mspa-glyph, var(--mspa-arrow)) center / contain no-repeat;
	mask: var(--mspa-glyph, var(--mspa-arrow)) center / contain no-repeat;
}

/* ------------------------------------------------------------- header */

.mspa-header{
	position: relative;
	z-index: 30;
	margin: 0 !important;
	padding: 0 var(--mspa-gutter);
	font-family: var(--wp--preset--font-family--poppins);
}

.mspa-header p{
	margin: 0;
}

.mspa-header a{
	color: inherit;
	text-decoration: none;
	transition: color .3s ease, opacity .3s ease;
}

/* Top bar: a pink strip 40px wider than the container each side, with deep
   rounded bottom corners. Its contents sit on the container. */
.mspa-topbar{
	max-width: calc(var(--mspa-shell) + 80px);
	margin: 0 auto;
	padding: 0;
	border-radius: 0 0 45px 45px;
}

.mspa-topbar__row{
	width: min(var(--mspa-shell), 100% - 40px);
	min-height: 60px;
	margin: 0 auto;
	gap: 6px 24px;
}

.mspa-topbar__promo{
	gap: 10px;
}

.mspa-topbar p{
	font-size: 15px;
	font-weight: 500;
	line-height: 1.5;
}

.mspa-topbar__tag{
	padding: 0 8px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--wp--preset--color--primary) 80%, var(--wp--preset--color--secondary));
	font-size: 15px !important;
	line-height: 25px !important;
	letter-spacing: .2px;
}

.mspa-arrow-link,
.mspa-caret a{
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.mspa-arrow-link::after{
	width: 16px;
	height: 16px;
	transition: transform .3s ease;
}

.mspa-arrow-link:hover::after{
	transform: translateX(3px);
}

.mspa-caret a::after{
	--mspa-glyph: var(--mspa-chevron);
	width: 12px;
	height: 12px;
}

/* Meta: phone, chat, login, currency, parted by hairlines 20px either side.
   The rule after the phone number runs the full height of the bar. */
.mspa-topbar__meta{
	align-self: stretch;
	gap: 0;
}

.mspa-topbar__item{
	position: relative;
	align-items: center;
	gap: 6px;
}

.mspa-topbar__item + .mspa-topbar__item{
	margin-left: 16px;
	padding-left: 16px;
}

.mspa-topbar__item + .mspa-topbar__item::before{
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 1px;
	height: 30px;
	translate: 0 -50%;
	background: color-mix(in srgb, var(--wp--preset--color--light-color) 40%, transparent);
}

.mspa-topbar__item--phone + .mspa-topbar__item{
	align-self: stretch;
}

.mspa-topbar__item--phone + .mspa-topbar__item::before{
	top: 0;
	height: 100%;
	translate: none;
}

.mspa-topbar__item--phone p{
	font-size: 17px;
	font-weight: 400;
}

.mspa-topbar__icon{
	display: inline-flex;
	line-height: 0;
}

.mspa-topbar__icon svg{
	width: 20px;
	height: 20px;
	fill: currentColor;
}

/* Phone: a white tile with the handset cut in the primary colour. */
.mspa-topbar__icon--tile{
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 4px;
	background: var(--wp--preset--color--light-color);
	color: var(--wp--preset--color--primary);
}

.mspa-topbar__icon--tile svg{
	width: 13px;
	height: 13px;
}

.mspa-topbar__item:hover a{
	color: var(--wp--preset--color--secondary);
}

/* Hover: an underline draws in from the left under the text, the icon lifts
   (the phone rings), and the currency chevron turns over. */
.mspa-topbar__meta .mspa-topbar__item a{
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
	transition: color .3s ease, background-size .35s ease;
}

.mspa-topbar__meta .mspa-topbar__item:hover a,
.mspa-topbar__meta .mspa-topbar__item a:focus-visible{
	background-size: 100% 1.5px;
}

.mspa-topbar__meta .mspa-topbar__icon{
	transition: transform .3s ease, color .3s ease;
}

.mspa-topbar__meta .mspa-topbar__item:hover .mspa-topbar__icon{
	transform: translateY(-3px);
	color: var(--wp--preset--color--secondary);
}

.mspa-topbar__meta .mspa-topbar__item:hover .mspa-topbar__icon--tile{
	transform: none;
	color: var(--wp--preset--color--primary);
	animation: mspa-ring .6s ease;
}

.mspa-caret a::after{
	transition: transform .3s ease;
}

.mspa-topbar__item:hover .mspa-caret a::after{
	transform: rotate(180deg);
}

@keyframes mspa-ring{
	0%, 100%{ rotate: 0deg; }
	20%{ rotate: -14deg; }
	40%{ rotate: 12deg; }
	60%{ rotate: -8deg; }
	80%{ rotate: 5deg; }
}

@media (prefers-reduced-motion: reduce){

	.mspa-topbar__meta .mspa-topbar__item a,
	.mspa-topbar__meta .mspa-topbar__icon,
	.mspa-caret a::after{
		transition: none;
	}

	.mspa-topbar__meta .mspa-topbar__item:hover .mspa-topbar__icon,
	.mspa-topbar__meta .mspa-topbar__item:hover .mspa-topbar__icon--tile{
		transform: none;
		animation: none;
	}
}

/* Navbar: a floating pill 15px past the container each side. */
.mspa-navbar{
	position: relative;
	width: min(calc(var(--mspa-shell) + 30px), 100%);
	min-height: 110px;
	margin: 20px auto 0;
	padding: 12px 15px 12px 25px;
	gap: 20px;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--primary) 22%, transparent);
	border-radius: 999px;
	background: var(--wp--preset--color--background);
	box-shadow: 0 20px 44px -24px color-mix(in srgb, var(--wp--preset--color--primary) 55%, transparent);
}

.mspa-branding{
	flex: 0 0 auto;
	min-width: 0;
}

.mspa-branding .wp-block-site-logo img{
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 58px;
}

.mspa-branding .wp-block-site-logo:not(:empty) + .site-branding-fallback,
.mspa-logo-light{
	display: none;
}

.mspa-branding .wp-block-site-title{
	margin: 0;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.1;
}

.mspa-branding .wp-block-site-title a{
	color: var(--wp--preset--color--secondary);
}

/* Menu: one line, ending 20px short of the search disc. */
.mspa-nav.wp-block-navigation{
	flex: 1 1 auto;
	justify-content: flex-end;
}

.mspa-nav .wp-block-navigation__container{
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 4px 26px;
}

.mspa-navbar .mspa-nav .wp-block-navigation-item .wp-block-navigation-item__content{
	color: var(--wp--preset--color--secondary);
	font-family: var(--wp--preset--font-family--poppins);
	font-size: 18px;
	font-weight: 600;
	white-space: nowrap;
	text-decoration: none;
	transition: color .3s ease;
}

.mspa-navbar .mspa-nav .wp-block-navigation-item .wp-block-navigation-item__content:hover,
.mspa-navbar .mspa-nav .current-menu-item > .wp-block-navigation-item__content{
	color: var(--wp--preset--color--primary);
}

.mspa-nav .wp-block-navigation__submenu-icon{
	width: 11px;
	height: 11px;
	margin-left: 4px;
	color: var(--wp--preset--color--secondary);
}

.mspa-nav .wp-block-navigation__submenu-icon svg{
	display: none;
}

.mspa-nav .wp-block-navigation__submenu-icon::before{
	--mspa-glyph: var(--mspa-chevron);
	width: 100%;
	height: 100%;
}

.mspa-nav .wp-block-navigation__submenu-container{
	padding: 8px 0;
	border: 0;
	border-radius: 12px;
	background: var(--wp--preset--color--background);
	box-shadow: 0 16px 36px rgba(0, 0, 0, .14);
}

/* Actions: search and cart as 55px discs, then Get Started. */
.mspa-actions{
	flex: 0 0 auto;
	gap: 10px;
}

.mspa-search .wp-block-search__inside-wrapper{
	padding: 0;
	border: 0;
}

.mspa-search .wp-block-search__button,
.mspa-minicart .wc-block-mini-cart__button{
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 55px;
	min-width: 55px;
	height: 55px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	color: var(--wp--preset--color--light-color);
	cursor: pointer;
	transition: background-color .3s ease;
}

.mspa-search .wp-block-search__button{
	background: var(--wp--preset--color--primary);
}

.mspa-minicart .wc-block-mini-cart__button{
	background: var(--wp--preset--color--secondary);
	opacity: 1;
}

.mspa-search .wp-block-search__button:hover,
.mspa-search .wp-block-search__button:focus{
	background: var(--wp--preset--color--secondary);
}

.mspa-minicart .wc-block-mini-cart__button:hover,
.mspa-minicart .wc-block-mini-cart__button:focus{
	background: var(--wp--preset--color--primary);
}

.mspa-search .wp-block-search__button svg,
.mspa-minicart .wc-block-mini-cart__icon,
.mspa-minicart .wc-block-mini-cart__amount{
	display: none;
}

.mspa-search .wp-block-search__button::before{
	--mspa-glyph: var(--mspa-search);
	width: 21px;
	height: 21px;
}

.mspa-minicart{
	display: flex;
	visibility: visible !important;
}

.mspa-minicart .wc-block-mini-cart__button::before{
	--mspa-glyph: var(--mspa-cart);
	width: 23px;
	height: 23px;
}

/* WooCommerce anchors the count to the icon's wrapper, which is hidden
   here, and offsets it with left/margin/transform of its own; the disc is
   made the anchor and those offsets are cleared. */
.mspa-minicart .wc-block-mini-cart__quantity-badge{
	position: static;
	margin: 0;
}

/* The count always shows, "0" included: WooCommerce hides it at zero,
   but only once its script has run, so the badge used to flash "0" and
   then vanish. */
.mspa-minicart .wc-block-mini-cart__badge,
.mspa-minicart .wc-block-mini-cart__badge[hidden]{
	display: flex !important;
	align-items: center;
	justify-content: center;
	opacity: 1 !important;
}

.mspa-minicart .wc-block-mini-cart__badge{
	position: absolute;
	top: -12px;
	right: 0;
	left: auto;
	min-width: 25px;
	height: 25px;
	margin: 0;
	padding: 0 4px;
	transform: none;
	border: 2px solid var(--wp--preset--color--light-color);
	border-radius: 999px;
	background-color: var(--wp--preset--color--primary) !important;
	color: var(--wp--preset--color--light-color) !important;
	font-family: var(--wp--preset--font-family--poppins);
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

/* ------------------------------------------------------------ buttons */

/* A pill with a bold arrow; --disc puts the arrow in a white disc at the
   right end; --ring adds a primary rim and two soft halos. */
.mspa-btn .wp-block-button__link{
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 55px;
	padding: 0 50px 0 22px;
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--poppins);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	transition: background-color .3s ease, color .3s ease;
}

.mspa-btn .wp-block-button__link::after{
	position: absolute;
	top: 50%;
	right: 20px;
	width: 20px;
	height: 20px;
	translate: 0 -50%;
	transition: transform .3s ease;
}

.mspa-btn .wp-block-button__link:hover::after,
.mspa-btn .wp-block-button__link:focus::after{
	transform: translateX(4px);
}

.mspa-btn--disc .wp-block-button__link{
	padding-right: 58px;
}

.mspa-btn--disc .wp-block-button__link::before{
	content: "";
	position: absolute;
	top: 50%;
	right: 2px;
	width: 47px;
	height: 47px;
	translate: 0 -50%;
	border-radius: 50%;
	background: var(--wp--preset--color--light-color);
}

.mspa-btn--disc .wp-block-button__link::after{
	right: 15px;
	color: var(--wp--preset--color--secondary);
}

.mspa-header .mspa-btn .wp-block-button__link{
	border: 2px solid color-mix(in srgb, var(--wp--preset--color--primary) 88%, var(--wp--preset--color--secondary));
}

.mspa-btn--ring .wp-block-button__link{
	border: 3px solid var(--wp--preset--color--primary);
	box-shadow:
		0 0 0 6px color-mix(in srgb, var(--wp--preset--color--primary) 20%, transparent),
		0 0 0 12px color-mix(in srgb, var(--wp--preset--color--primary) 9%, transparent);
}

.mspa-btn--ring.mspa-btn--disc .wp-block-button__link::before{
	right: 1px;
}

.mspa-btn--ring.mspa-btn--disc .wp-block-button__link::after{
	right: 14px;
}

/* --------------------------------------------------------------- hero */

/* The hero runs up behind the whole header; script.js measures the header
   into --mspa-header-h, and the fallback covers a desktop header. */
.mspa-hero{
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr;
	margin-top: calc(-1 * var(--mspa-header-h, 190px)) !important;
	margin-bottom: 0 !important;
	padding: 0;
	overflow: hidden;
}

main:has(> .mspa-hero:first-child),
.wp-site-blocks > main:has(.mspa-hero){
	margin-top: 0 !important;
}

.mspa-hero > *{
	grid-area: 1 / 1;
	min-width: 0;
}

.mspa-hero__cover.wp-block-cover{
	width: 100%;
	min-height: clamp(640px, 54.7vw, 950px);
	margin: 0;
	/* Below 1920px the hero is shorter, so the copy gets up to 40px more
	   room under the header. */
	padding: calc(var(--mspa-header-h, 190px) + var(--mspa-hero-gap, clamp(2px, (1920px - 100vw) / 10, 40px))) var(--mspa-gutter) var(--mspa-hero-foot, 126px);
	align-items: center;
	background-color: color-mix(in srgb, var(--wp--preset--color--primary) 8%, var(--wp--preset--color--background));
}

.mspa-hero__cover .wp-block-cover__image-background{
	object-fit: cover;
	object-position: 57% top;
}

/* The photograph is already pale on the left; a touch of wash keeps the
   copy readable. */
.mspa-hero__cover::before{
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(90deg,
		color-mix(in srgb, var(--wp--preset--color--light-color) 35%, transparent) 0%,
		color-mix(in srgb, var(--wp--preset--color--light-color) 15%, transparent) 38%,
		transparent 55%);
}

.mspa-hero__cover > .wp-block-cover__inner-container{
	position: relative;
	z-index: 2;
	width: min(var(--mspa-shell), 100%);
	max-width: none;
	margin: 0 auto;
	color: var(--wp--preset--color--secondary);
}

.mspa-hero__content{
	max-width: 760px;
}

.mspa-hero__content > *{
	margin: 0;
}

.mspa-hero__content > * + *{
	margin-top: 28px;
}

/* Badge: dark pill, primary rim and halo, lotus in a primary disc. */
.mspa-badge{
	width: fit-content;
	max-width: 100%;
	gap: 12px;
	padding: 6px 24px 6px 6px;
	border: 3px solid var(--wp--preset--color--primary);
	border-radius: 999px;
	background: var(--wp--preset--color--secondary);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--wp--preset--color--primary) 28%, transparent);
}

.mspa-badge__icon{
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--light-color);
}

.mspa-badge__icon svg{
	width: 55%;
	height: 55%;
	fill: currentColor;
}

.mspa-badge__text{
	margin: 0;
	color: var(--wp--preset--color--light-color);
	font-family: var(--wp--preset--font-family--poppins);
	font-size: clamp(15px, 1.6vw, 22px);
	font-weight: 600;
	text-transform: uppercase;
	white-space: nowrap;
}

.mspa-hero__title{
	font-size: clamp(38px, 5.4vw, 73px);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -.5px;
}

.mspa-hero__title mark{
	padding: 0;
	background: none;
}

.mspa-hero__content > .mspa-hero__text{
	max-width: 720px;
	margin-top: 16px;
	font-size: clamp(16px, 1.5vw, 20px);
	line-height: 1.7;
}

.mspa-hero__content > .mspa-hero__buttons{
	margin-top: 38px;
	padding-left: 16px;
	gap: 26px 40px;
}

/* Entrance: badge, headline, text and buttons rise in one after the other
   as the page opens, and the photograph eases in from a slight zoom. Not in
   the editor, where it would replay on every change. */
:where(body:not(.editor-styles-wrapper)) .mspa-hero__cover .mspa-hero__content > *{
	animation: mspa-rise .8s cubic-bezier(.2, .7, .2, 1) both;
}

:where(body:not(.editor-styles-wrapper)) .mspa-hero__cover .mspa-hero__content > :nth-child(1){ animation-delay: .15s; }
:where(body:not(.editor-styles-wrapper)) .mspa-hero__cover .mspa-hero__content > :nth-child(2){ animation-delay: .3s; }
:where(body:not(.editor-styles-wrapper)) .mspa-hero__cover .mspa-hero__content > :nth-child(3){ animation-delay: .45s; }
:where(body:not(.editor-styles-wrapper)) .mspa-hero__cover .mspa-hero__content > :nth-child(4){ animation-delay: .6s; }

:where(body:not(.editor-styles-wrapper)) .mspa-hero__cover .wp-block-cover__image-background{
	animation: mspa-zoom 6s ease-out both;
}

@keyframes mspa-rise{
	from{
		opacity: 0;
		transform: translateY(40px);
	}
	to{
		opacity: 1;
		transform: none;
	}
}

@keyframes mspa-zoom{
	from{ transform: scale(1.08); }
	to{ transform: scale(1); }
}

@media (prefers-reduced-motion: reduce){

	:where(body:not(.editor-styles-wrapper)) .mspa-hero__cover .mspa-hero__content > *,
	:where(body:not(.editor-styles-wrapper)) .mspa-hero__cover .wp-block-cover__image-background{
		animation: none;
	}
}

/* Highlights: a frosted strip over the foot of the hero. */
.mspa-features{
	z-index: 3;
	align-self: end;
	justify-self: center;
	display: grid;
	grid-template-columns: repeat(4, auto);
	justify-content: space-between;
	gap: 12px 16px;
	width: min(calc(var(--mspa-shell) + 30px), 100% - 2 * var(--mspa-gutter));
	margin: 0 !important;
	padding: 16px;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--primary) 35%, transparent);
	border-bottom: 0;
	border-radius: 24px 24px 0 0;
	background: color-mix(in srgb, var(--wp--preset--color--light-color) 88%, transparent);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.mspa-feature{
	gap: 11px;
	min-width: 0;
	margin: 0 !important;
}

/* Dashed ring, a white gap, then a pale disc holding the illustration. */
.mspa-feature__icon.wp-block-image{
	position: relative;
	flex: 0 0 auto;
	box-sizing: border-box;
	width: var(--mspa-feature-icon, 80px);
	height: var(--mspa-feature-icon, 80px);
	margin: 0;
	padding: 8px;
}

.mspa-feature__icon::before{
	content: "";
	position: absolute;
	inset: 0;
	border: 2px dashed var(--wp--preset--color--primary);
	border-radius: 50%;
	animation: mspa-ring 18s linear infinite;
}

.mspa-feature__icon img{
	box-sizing: border-box;
	display: block;
	width: 100%;
	height: 100%;
	padding: 14%;
	object-fit: contain;
	border-radius: 50%;
	background: color-mix(in srgb, var(--wp--preset--color--primary) 20%, var(--wp--preset--color--background));
	transition: transform .35s ease;
}

.mspa-feature:hover .mspa-feature__icon img{
	transform: translateY(-4px) scale(1.06);
}

.mspa-feature__content > *{
	margin: 0;
}

.mspa-feature__title{
	font-size: clamp(17px, 1.6vw, 19px);
	font-weight: 700;
	line-height: 1.25;
}

.mspa-feature__text{
	font-size: 15px;
	line-height: 1.5;
}

@keyframes mspa-ring{
	to{ rotate: 360deg; }
}

@media (prefers-reduced-motion: reduce){

	.mspa-feature__icon::before{
		animation: none;
	}
}

/* --------------------------------------------------------- responsive */

@media (min-width: 1025px){

	.mspa-feature__content > *{
		white-space: nowrap;
	}
}

/* Logo, menu and actions share one line: each gives a little. */
@media (min-width: 1025px) and (max-width: 1279px){

	.mspa-navbar{
		gap: 14px;
		padding-inline: 18px 10px;
	}

	.mspa-branding .wp-block-site-logo img{
		max-height: 46px;
	}

	.mspa-nav .wp-block-navigation__container{
		gap: 8px 16px;
	}

	.mspa-navbar .mspa-nav .wp-block-navigation-item .wp-block-navigation-item__content{
		font-size: 15px;
	}

	.mspa-actions{
		gap: 8px;
	}

	.mspa-search .wp-block-search__button,
	.mspa-minicart .wc-block-mini-cart__button{
		width: 46px;
		min-width: 46px;
		height: 46px;
	}

	.mspa-header .mspa-btn .wp-block-button__link{
		min-height: 46px;
		padding: 0 50px 0 16px;
		font-size: 16px;
	}

	.mspa-header .mspa-btn--disc .wp-block-button__link::before{
		width: 38px;
		height: 38px;
	}

	.mspa-header .mspa-btn .wp-block-button__link::after{
		right: 12px;
		width: 16px;
		height: 16px;
	}
}

/* Where the top bar no longer fits one line it splits into two, centred. */
@media (max-width: 1279px){

	.mspa-topbar{
		padding-block: 6px;
	}

	.mspa-topbar__row{
		justify-content: center;
	}
}

@media (max-width: 1024px){

	/* The menu folds into the overlay toggle, which sits last in the bar.
	   Core only folds it below 600px, so it is held folded up to here. */
	.mspa-nav{
		order: 3;
		flex: 0 0 auto;
	}

	.mspa-nav .wp-block-navigation__responsive-container-open:not(.always-shown){
		display: flex;
	}

	.mspa-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open){
		display: none;
	}
}

@media (max-width: 1024px){

	/* Logo on the left; the actions and the menu toggle sit together at
	   the right instead of being spread across the bar. */
	.mspa-navbar{
		justify-content: flex-start;
	}

	.mspa-nav.wp-block-navigation{
		flex: 0 0 auto;
	}

	.mspa-navbar > .mspa-branding{
		margin-right: auto !important;
	}

	.mspa-navbar > .mspa-actions{
		margin-left: 0 !important;
	}

	.mspa-hero__cover.wp-block-cover{
		--mspa-hero-gap: 40px;
		--mspa-hero-foot: 70px;
		min-height: 0;
	}

	.mspa-hero__cover::before{
		background: linear-gradient(90deg,
			color-mix(in srgb, var(--wp--preset--color--light-color) 80%, transparent),
			color-mix(in srgb, var(--wp--preset--color--light-color) 62%, transparent));
	}

	.mspa-hero__cover > .wp-block-cover__inner-container{
		padding-inline: 24px;
	}

	.mspa-features{
		position: relative;
		grid-area: 2 / 1;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px;
		margin-top: 20px !important;
		border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--primary) 35%, transparent);
		border-radius: 24px;
	}

	.mspa-hero{
		padding-bottom: 20px;
	}
}

@media (max-width: 767px){

	/* Top bar: the promo only, in smaller type. */
	.mspa-topbar{
		padding-block: 8px;
		border-radius: 0 0 24px 24px;
	}

	.mspa-topbar__row{
		width: calc(100% - 24px);
		min-height: 0;
	}

	.mspa-header .mspa-topbar__meta{
		display: none;
	}

	.mspa-topbar p{
		font-size: 13px;
		line-height: 1.45;
	}

	.mspa-topbar__tag{
		padding: 0 7px;
		font-size: 11px !important;
		line-height: 20px !important;
	}

	.mspa-topbar__promo{
		align-items: flex-start;
		gap: 8px;
	}

	.mspa-arrow-link::after{
		width: 13px;
		height: 13px;
	}

	/* Navbar: a slimmer pill whose logo keeps its size. */
	.mspa-navbar{
		min-height: 72px;
		margin-top: 12px;
		gap: 10px;
		padding: 8px 10px 8px 18px;
	}

	.mspa-branding{
		flex: 1 1 auto;
	}

	.mspa-branding .wp-block-site-logo img{
		max-height: 44px;
	}

	.mspa-actions{
		gap: 8px;
	}

	.mspa-header .mspa-search,
	.mspa-header .mspa-actions__cta{
		display: none;
	}

	.mspa-minicart .wc-block-mini-cart__button{
		width: 46px;
		min-width: 46px;
		height: 46px;
	}

	.mspa-minicart .wc-block-mini-cart__button::before{
		width: 20px;
		height: 20px;
	}

	.mspa-minicart .wc-block-mini-cart__badge{
		top: -8px;
		right: -4px;
		min-width: 22px;
		height: 22px;
		font-size: 10px;
	}

	/* Hero: copy full width. */
	.mspa-hero__cover.wp-block-cover{
		--mspa-hero-gap: 26px;
		--mspa-hero-foot: 50px;
	}

	.mspa-hero__cover > .wp-block-cover__inner-container{
		padding-inline: 6px;
	}

	.mspa-badge{
		gap: 10px;
		padding: 4px 16px 4px 4px;
	}

	.mspa-badge__icon{
		width: 36px;
		height: 36px;
	}

	.mspa-badge__text{
		font-size: clamp(12px, 3.6vw, 15px);
	}

	.mspa-hero__content > .mspa-hero__buttons{
		margin-top: 30px;
		padding-left: 8px;
		gap: 22px 26px;
	}

	.mspa-btn .wp-block-button__link{
		min-height: 46px;
		padding: 0 42px 0 16px;
		font-size: 16px;
	}

	.mspa-btn .wp-block-button__link::after{
		right: 14px;
		width: 16px;
		height: 16px;
	}

	.mspa-btn--disc .wp-block-button__link{
		padding-right: 52px;
	}

	.mspa-btn--disc .wp-block-button__link::before{
		width: 38px;
		height: 38px;
	}

	.mspa-btn--ring.mspa-btn--disc .wp-block-button__link::after{
		right: 12px;
	}
}

@media (max-width: 600px){

	.mspa-features{
		--mspa-feature-icon: 68px;
		grid-template-columns: 1fr;
		padding: 16px 18px;
	}
}

/* Narrow phones: "Refresh Your Mind" keeps to one line at 320px. */
@media (max-width: 480px){

	.mspa-hero__title{
		font-size: clamp(28px, 9vw, 38px);
	}

	.mspa-hero__content > .mspa-hero__text{
		font-size: 15px;
	}
}

/* --------------------------------------------- mobile menu overlay */

/* The toggle: a filled tile with three rules, the middle one short, painted
   as background layers so core's icon can step aside. */
.mspa-nav .wp-block-navigation__responsive-container-open{
	position: relative;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background-color: var(--wp--preset--color--primary);
	background-image:
		linear-gradient(currentColor, currentColor),
		linear-gradient(currentColor, currentColor),
		linear-gradient(currentColor, currentColor);
	background-size: 22px 2px, 15px 2px, 22px 2px;
	background-position: 12px 15px, 12px 22px, 12px 29px;
	background-repeat: no-repeat;
	color: var(--wp--preset--color--light-color);
	transition: background-color .3s ease;
}

.mspa-nav .wp-block-navigation__responsive-container-open:hover{
	background-color: var(--wp--preset--color--secondary);
}

.mspa-nav .wp-block-navigation__responsive-container-open svg{
	display: none;
}

/* The page behind is dimmed and blurred, and the menu rides in as a panel
   down the right-hand edge. */
.mspa-nav .wp-block-navigation__responsive-container.is-menu-open{
	position: fixed;
	inset: 0;
	display: flex;
	flex-direction: row;
	align-items: stretch;
	justify-content: flex-end;
	padding: 0;
	overflow: visible;
	background: color-mix(in srgb, var(--wp--preset--color--secondary) 45%, transparent) !important;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	animation: none;
}

.mspa-nav .is-menu-open .wp-block-navigation__responsive-close{
	position: relative;
	width: min(320px, 82vw);
	max-width: none;
	height: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border-left: 4px solid var(--wp--preset--color--primary);
	background:
		radial-gradient(110% 70% at 85% 12%, color-mix(in srgb, var(--wp--preset--color--primary) 38%, transparent), transparent 68%),
		linear-gradient(200deg, color-mix(in srgb, var(--wp--preset--color--primary) 16%, var(--wp--preset--color--secondary)) 0%, var(--wp--preset--color--secondary) 62%);
	animation: mspa-panel-in .3s ease both;
}

@keyframes mspa-panel-in{
	from{ transform: translateX(100%); }
}

.mspa-nav .is-menu-open .wp-block-navigation__responsive-dialog{
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
}

/* Panel head: the logo (copied in by material-spa.js) and the close button.
   Hidden until the panel is open, because above the overlay's breakpoint
   the same container is the inline menu. */
.mspa-nav .mspa-menu-head,
.mspa-nav .mspa-submenu-toggle{
	display: none;
}

.mspa-nav .is-menu-open .mspa-menu-head{
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 22px 20px 20px;
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--light-color) 14%, transparent);
}

.mspa-nav .is-menu-open .mspa-menu-head img{
	width: auto;
	max-width: 180px;
	max-height: 42px;
	height: auto;
}

/* The panel is dark: the light logo shows; an uploaded logo turns white. */
.mspa-nav .is-menu-open .mspa-menu-head .custom-logo:has(+ .mspa-logo-light){
	display: none;
}

.mspa-nav .is-menu-open .mspa-menu-head .mspa-logo-light{
	display: block;
}

.mspa-nav .is-menu-open .mspa-menu-head .wp-block-site-logo:not(:has(.mspa-logo-light)) img{
	filter: brightness(0) invert(1);
}

.mspa-nav .is-menu-open .mspa-menu-head .wp-block-site-title a{
	color: var(--wp--preset--color--light-color);
	font-size: 22px;
}

.mspa-nav .is-menu-open .wp-block-navigation__responsive-container-close{
	position: static;
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border-radius: 50%;
	background: color-mix(in srgb, var(--wp--preset--color--light-color) 10%, transparent);
	color: var(--wp--preset--color--light-color);
	transition: background-color .3s ease;
}

.mspa-nav .is-menu-open .wp-block-navigation__responsive-container-close:hover{
	background: var(--wp--preset--color--primary);
}

.mspa-nav .is-menu-open .wp-block-navigation__responsive-container-close svg{
	width: 24px;
	height: 24px;
	fill: currentColor;
}

.mspa-nav .is-menu-open .wp-block-navigation__responsive-container-content{
	display: block !important;
	flex: 1 1 auto;
	width: 100%;
	margin: 0;
	padding: 8px 0 28px !important;
	overflow-y: auto;
	overscroll-behavior: contain;
}

/* Entries run down the panel, parted by hairlines. */
.mspa-nav .is-menu-open .wp-block-navigation__container,
.mspa-nav .is-menu-open .wp-block-page-list{
	display: block !important;
	gap: 0;
	margin: 0;
	padding: 0;
}

/* A menu not yet chosen shows WordPress's list of pages, one list deeper;
   its entries are styled the same way. */
.mspa-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item,
.mspa-nav .is-menu-open .wp-block-page-list > .wp-block-navigation-item{
	display: flex;
	flex-flow: row wrap;
	align-items: center;
	justify-content: space-between;
	width: calc(100% - 40px);
	margin: 0 20px;
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--light-color) 14%, transparent);
}

.mspa-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:last-child,
.mspa-nav .is-menu-open .wp-block-page-list > .wp-block-navigation-item:last-child{
	border-bottom: 0;
}

.mspa-navbar .mspa-nav .is-menu-open .wp-block-navigation-item .wp-block-navigation-item__content{
	flex: 1 1 auto;
	padding: 13px 0;
	color: var(--wp--preset--color--light-color);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
}

.mspa-navbar .mspa-nav .is-menu-open .wp-block-navigation-item .wp-block-navigation-item__content:hover,
.mspa-navbar .mspa-nav .is-menu-open .current-menu-item > .wp-block-navigation-item__content{
	color: var(--wp--preset--color--primary);
}

/* Core's decorative chevron gives way to a real button, so a sub-menu can
   be opened from the keyboard as well as by tapping. */
.mspa-nav .is-menu-open .wp-block-navigation__submenu-icon{
	display: none !important;
}

.mspa-nav .is-menu-open .mspa-submenu-toggle{
	display: flex;
	flex: 0 0 auto;
	align-self: stretch;
	align-items: center;
	justify-content: center;
	width: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--light-color);
	cursor: pointer;
}

.mspa-nav .is-menu-open .mspa-submenu-toggle::before{
	content: "";
	width: 12px;
	height: 12px;
	background-color: currentColor;
	-webkit-mask: var(--mspa-chevron) center / contain no-repeat;
	mask: var(--mspa-chevron) center / contain no-repeat;
	transition: transform .25s ease;
}

.mspa-nav .is-menu-open .mspa-submenu-toggle[aria-expanded="true"]::before{
	transform: rotate(180deg);
}

.mspa-nav .is-menu-open .mspa-submenu-toggle:hover,
.mspa-nav .is-menu-open .mspa-submenu-toggle:focus-visible{
	color: var(--wp--preset--color--primary);
}

/* Sub-entries are folded away until their entry is opened. */
.mspa-nav.wp-block-navigation .is-menu-open .wp-block-navigation-item .wp-block-navigation__submenu-container{
	position: static;
	flex: 0 0 100%;
	width: 100%;
	min-width: 0;
	max-height: 0;
	margin: 0;
	padding: 0 !important;
	overflow: hidden;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: transparent !important;
	opacity: 1;
	visibility: visible;
	transition: max-height .3s ease;
}

/* The menu is set to the right in the bar; in the panel it reads from the
   left, sub-entries included. */
.mspa-nav.wp-block-navigation .is-menu-open .wp-block-navigation__submenu-container{
	display: block !important;
	text-align: left;
}

.mspa-nav.wp-block-navigation .is-menu-open .wp-block-navigation__submenu-container > .wp-block-navigation-item{
	align-items: flex-start !important;
}

.mspa-nav.wp-block-navigation .is-menu-open .wp-block-navigation-item.mspa-open > .wp-block-navigation__submenu-container{
	max-height: 70vh;
	padding-bottom: 10px !important;
}

.mspa-navbar .mspa-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content{
	padding: 8px 0 8px 16px;
	color: color-mix(in srgb, var(--wp--preset--color--light-color) 82%, transparent);
	font-size: 14px;
	font-weight: 500;
}

@media (prefers-reduced-motion: reduce){

	.mspa-nav .is-menu-open .wp-block-navigation__responsive-close,
	.mspa-nav.wp-block-navigation .is-menu-open .wp-block-navigation-item .wp-block-navigation__submenu-container{
		animation: none;
		transition: none;
	}
}

/* ------------------------------------------------ Material AI sections */

/* Material AI's call-to-action band carries a photograph with its purple
   baked in, so it stayed purple under the Spa palette. The band is given the
   primary colour instead, with the photograph's circuit traces redrawn as a
   mask (assets/images/backgrounds/circuit.webp holds only their shape) in a
   pale tint, so it follows whichever palette is active. The parent sets the
   photograph inline on the block, hence !important. */
.materialai-cta-banner{
	position: relative;
	isolation: isolate;
	background-color: var(--wp--preset--color--primary);
	background-image: none !important;
}

.materialai-cta-banner::before{
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-color: color-mix(in srgb, var(--wp--preset--color--light-color) 55%, var(--wp--preset--color--primary));
	-webkit-mask: url("assets/images/backgrounds/circuit.webp") 0 0 / cover no-repeat;
	mask: url("assets/images/backgrounds/circuit.webp") 0 0 / cover no-repeat;
}
.sidebar .widget .wp-block-latest-comments {
	    padding: 1.8rem;
	}