/*
Theme Name:        Sumedha Dey
Theme URI:         https://sumedhadey.com
Author:            Jaydeb Maity
Description:       A custom, lightweight block theme for Sumedha Dey - Hindustani Classical Vocalist. Colours, fonts and spacing are edited visually in Appearance > Editor > Styles. Self-hosted fonts, no third-party theme dependency.
Version:           1.28.3
Requires at least: 6.6
Requires PHP:      7.4
Tested up to:      7.1
License:           GNU General Public License v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       sumedha-dey
*/

/* =========================================================
   HOW THIS FILE WORKS
   Colours, fonts, font sizes and spacing live in theme.json
   and are edited in Appearance > Editor > Styles (no code).
   This file only holds design components that theme.json
   cannot express (arch frame, ornament, hover effects...).
   Every colour below points at the Styles palette, so a
   colour changed in Styles updates these components too.
   ========================================================= */

:root {
	--sd-maroon:       var(--wp--preset--color--maroon);
	--sd-maroon-deep:  var(--wp--preset--color--maroon-deep);
	--sd-ink:          var(--wp--preset--color--ink);
	--sd-muted:        var(--wp--preset--color--muted);
	--sd-cream:        var(--wp--preset--color--cream);
	--sd-white:        var(--wp--preset--color--white);
	--sd-line:         var(--wp--preset--color--line);
	--sd-sand:         var(--wp--preset--color--sand);
	--sd-gold:         var(--wp--preset--color--gold);
	--sd-gold-soft:    var(--wp--preset--color--gold-soft);
	--sd-font-display: var(--wp--preset--font-family--display);
	--sd-font-body:    var(--wp--preset--font-family--body);
	--sd-fs-small:     var(--wp--preset--font-size--small);
	--sd-radius:       14px;
	--sd-shadow:       var(--wp--preset--shadow--soft);
	--sd-ease:         cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base refinements ---------- */
body { -webkit-font-smoothing: antialiased; }

/* Header, page and footer sit flush - sections control their own spacing */
.wp-site-blocks > * { margin-block-start: 0; }

a {
	text-decoration-color: color-mix(in srgb, var(--sd-gold) 60%, transparent);
	text-underline-offset: 3px;
	transition: color .25s var(--sd-ease);
}

::selection { background: var(--sd-gold-soft); color: var(--sd-maroon-deep); }

:focus-visible { outline: 2px solid var(--sd-gold); outline-offset: 3px; }

.wp-element-button,
.wp-block-button__link {
	transition: background-color .3s var(--sd-ease), color .3s var(--sd-ease), transform .3s var(--sd-ease);
}

/* =========================================================
   HEADER  (parts/header.html)
   Sticky is applied to the template-part wrapper, because a
   sticky element only sticks inside its parent - and the
   .sd-header's parent is only as tall as the header itself.
   ========================================================= */
.wp-site-blocks > .wp-block-template-part:has(> .sd-header) {
	position: sticky;
	top: 0;
	z-index: 50;
}
.admin-bar .wp-site-blocks > .wp-block-template-part:has(> .sd-header) {
	top: var(--wp-admin--admin-bar--height, 32px);
}
@media (max-width: 600px) {
	/* WordPress admin bar scrolls away on phones */
	.admin-bar .wp-site-blocks > .wp-block-template-part:has(> .sd-header) { top: 0; }
}

.sd-header {
	background: color-mix(in srgb, var(--sd-cream) 92%, transparent);
	backdrop-filter: saturate(140%) blur(10px);
	-webkit-backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid var(--sd-line);
	transition: padding .3s var(--sd-ease), box-shadow .3s var(--sd-ease);
}
.sd-header.is-scrolled {
	padding-top: 0.6rem !important;
	padding-bottom: 0.6rem !important;
	box-shadow: 0 8px 24px -16px rgba(58, 14, 21, 0.35);
}

/* gold underline that draws in on hover */
.sd-header .wp-block-navigation-item__content { position: relative; }
.sd-header .wp-block-navigation .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -6px;
	height: 1px;
	background: var(--sd-gold);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .35s var(--sd-ease);
}
.sd-header .wp-block-navigation-item:hover > .wp-block-navigation-item__content::after,
.sd-header .current-menu-item > .wp-block-navigation-item__content::after,
.sd-header .wp-block-navigation-item__content[aria-current="page"]::after {
	transform: scaleX(1);
}
.sd-header .wp-block-navigation-item__content:hover { color: var(--sd-maroon); }

/* ---------- Menu button (phones & tablets) ----------
   A normal Button block (class "sd-burger"); its text "Menu"
   stays for screen readers, the three lines are drawn by CSS. */
.sd-burger-wrap { display: none !important; margin: 0 !important; }
.sd-burger .wp-block-button__link {
	position: relative;
	width: 44px;
	height: 44px;
	padding: 0 !important;
	border: 1px solid var(--sd-gold) !important;
	border-radius: 50% !important;
	background: transparent !important;
	color: transparent !important;
	font-size: 0 !important;
	overflow: hidden;
	transform: none !important;
}
.sd-burger .wp-block-button__link::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 18px;
	height: 12px;
	transform: translate(-50%, -50%);
	background:
		linear-gradient(var(--sd-maroon-deep), var(--sd-maroon-deep)) top / 100% 1.5px no-repeat,
		linear-gradient(var(--sd-maroon-deep), var(--sd-maroon-deep)) center / 100% 1.5px no-repeat,
		linear-gradient(var(--sd-maroon-deep), var(--sd-maroon-deep)) bottom / 100% 1.5px no-repeat;
}
.sd-burger .wp-block-button__link:hover { background: var(--sd-sand) !important; }

/* ---------- Slide-in drawer ---------- */
.sd-js .sd-drawer {
	box-sizing: border-box;
	position: fixed;
	top: 0;
	right: 0;
	z-index: 100000;
	width: min(88vw, 380px);
	height: 100vh;
	height: 100dvh;
	overflow-y: auto;
	margin: 0 !important;
	padding: 1.5rem 2rem 2.5rem;
	background: var(--sd-cream);
	border-left: 1px solid var(--sd-gold-soft);
	box-shadow: -24px 0 48px -24px rgba(58, 14, 21, 0.45);
	transform: translateX(100%);
	visibility: hidden;
	transition: transform .45s var(--sd-ease), visibility 0s linear .45s;
}
.sd-drawer-open .sd-drawer {
	transform: none;
	visibility: visible;
	transition: transform .45s var(--sd-ease), visibility 0s;
}

/* close button: Button block (class "sd-drawer-close") drawn as a round × */
.sd-drawer-close-wrap { display: none !important; }
.sd-js .sd-drawer-close-wrap {
	display: flex !important;
	position: absolute;
	top: 2.1rem; /* lines up with the middle of the panel logo */
	right: 1.25rem;
	margin: 0 !important;
}
.sd-drawer-close .wp-block-button__link {
	position: relative;
	width: 44px;
	height: 44px;
	padding: 0 !important;
	border: 1px solid var(--sd-line) !important;
	border-radius: 50% !important;
	background: var(--sd-white) !important;
	color: transparent !important;
	font-size: 0 !important;
	transform: none !important;
}
.sd-drawer-close .wp-block-button__link::before {
	content: "\00d7";
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.75rem;
	line-height: 1;
	color: var(--sd-maroon-deep);
}

.sd-backdrop {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(42, 10, 16, 0.5);
	opacity: 0;
	pointer-events: none;
	transition: opacity .4s var(--sd-ease);
}
.sd-drawer-open .sd-backdrop { opacity: 1; pointer-events: auto; }
.sd-drawer-open body { overflow: hidden; }

/* panel logo: top of the drawer, with a thin line under it */
.sd-drawer-logo {
	margin: 0 0 0.75rem !important;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--sd-line);
}
.sd-drawer-logo img { height: auto; }

/* drawer menu: large serif links, one per line */
.sd-drawer-nav { width: 100%; }
.sd-drawer-nav .wp-block-navigation__container { width: 100%; gap: 0 !important; }
.sd-drawer-nav .wp-block-navigation-item { width: 100%; border-bottom: 1px solid var(--sd-line); }
.sd-drawer-nav .wp-block-navigation-item__content {
	display: block;
	width: 100%;
	padding: 0.65rem 0;
	font-family: var(--sd-font-display);
	font-size: inherit; /* size comes from the block: Styles tab > Typography > Size */
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
	color: var(--sd-maroon-deep);
	text-decoration: none;
	transition: color .25s var(--sd-ease), padding .25s var(--sd-ease);
}
/* default size when no size is chosen in the editor */
.sd-drawer-nav:not([style*="font-size"]):not([class*="-font-size"]) { font-size: 1.375rem; }
.sd-drawer-nav .wp-block-navigation-item__content:hover,
.sd-drawer-nav .wp-block-navigation-item__content[aria-current="page"] {
	color: var(--sd-maroon);
	padding-left: 0.5rem;
}
.sd-drawer-cta { margin-top: 1.75rem !important; flex-direction: column; gap: 0.75rem; }
.sd-drawer-cta .wp-block-button { width: 100%; }
.sd-drawer-cta .wp-block-button__link { box-sizing: border-box; width: 100%; text-align: center; }

/* social icons: gold outline circles */
.sd-social { gap: 0.6rem !important; }
.sd-social .wp-social-link {
	background: transparent !important;
	color: var(--sd-maroon) !important;
	border: 1px solid var(--sd-gold);
	transition: background-color .25s var(--sd-ease), color .25s var(--sd-ease), transform .25s var(--sd-ease);
}
.sd-social .wp-social-link a { padding: 0.55em; }
.sd-social .wp-social-link:hover {
	background: var(--sd-gold) !important;
	color: var(--sd-white) !important;
	transform: translateY(-2px);
}

/* footer: social icons on the dark background */
.sd-footer p.sd-follow-label {
	margin: 2rem 0 0.75rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--sd-gold-soft);
}
/* six smaller icons, always on one line */
.sd-footer .sd-footer-social { flex-wrap: nowrap !important; gap: 0.45rem !important; }
.sd-footer .sd-footer-social .wp-social-link { font-size: 16px; flex: none; }
.sd-footer .sd-footer-social .wp-social-link a { padding: 0.6em; }
.sd-footer .sd-footer-social .wp-social-link svg { width: 1.1em; height: 1.1em; }
.sd-footer .sd-footer-social .wp-social-link {
	color: var(--sd-gold-soft) !important;
	border-color: color-mix(in srgb, var(--sd-gold) 70%, transparent);
}
.sd-footer .sd-footer-social .wp-social-link:hover {
	background: var(--sd-gold) !important;
	color: var(--sd-maroon-deep) !important;
}

/* ---------- Which menu shows where ---------- */
/* Menu links + logo + two buttons need about 1280px; below that the
   header uses the Menu button and drawer (tablets, small laptops). */
@media (max-width: 1279px) {
	.sd-nav-desktop { display: none !important; }
	.sd-burger-wrap { display: flex !important; }
}
@media (min-width: 1280px) {
	.sd-drawer,
	.sd-backdrop { display: none !important; }
}
/* Header: logo left; menu and the two buttons (Book a Class + Book a
   Show) on ONE line at the right. The row may use up to 1320px. */
.sd-header > .alignwide { max-width: min(1320px, 100%); }
.sd-nav-desktop { flex-shrink: 0; }
.sd-nav-desktop .wp-block-navigation,
.sd-nav-desktop .wp-block-navigation__container { flex-wrap: nowrap !important; flex-shrink: 0; }
.sd-nav-desktop .wp-block-navigation-item__content { white-space: nowrap; }
.sd-nav-desktop .wp-block-navigation-item[hidden] { display: none !important; }
.sd-nav-desktop .wp-block-buttons { flex-wrap: nowrap; gap: 0.5rem; flex-shrink: 0; }
.sd-nav-desktop .wp-block-button__link {
	white-space: nowrap;
	padding: 0.62rem 1.15rem !important;
	font-size: 0.875rem !important;
	font-weight: 600;
	letter-spacing: 0.02em;
}
/* 1280-1439px: a little tighter so everything stays on one line */
@media (min-width: 1280px) and (max-width: 1439px) {
	.sd-nav-desktop { gap: 1.25rem !important; }
	.sd-nav-desktop .wp-block-navigation__container { gap: 1.3rem !important; }
	.sd-nav-desktop .wp-block-navigation-item__content { letter-spacing: 0.08em; }
}
.sd-drawer-cta { flex-direction: column; align-items: stretch; gap: 0.6rem; }
.sd-drawer-cta .wp-block-button, .sd-drawer-cta .wp-block-button__link { width: 100%; text-align: center; }

/* =========================================================
   BLOCK STYLES  (editor sidebar → Styles; registered in functions.php)
   ========================================================= */

/* Button → Gold Outline */
.wp-block-button.is-style-sd-outline .wp-block-button__link {
	background: transparent;
	color: var(--sd-maroon);
	border: 1px solid var(--sd-gold);
}
.wp-block-button.is-style-sd-outline .wp-block-button__link:hover {
	background: var(--sd-gold);
	color: var(--sd-white);
}
.wp-block-button .wp-block-button__link:hover { transform: translateY(-2px); }

/* Image → Temple Arch */
.wp-block-image.is-style-sd-arch img {
	aspect-ratio: 4 / 5;
	object-fit: cover;
	width: 100%;
	border-radius: 999px 999px var(--sd-radius) var(--sd-radius);
	box-shadow:
		0 0 0 1px var(--sd-gold),
		0 0 0 10px var(--sd-cream),
		0 0 0 11px var(--sd-gold-soft),
		var(--sd-shadow);
}

/* Gallery → Arch Carousel (hero photos that change by themselves)
   Add photos to the Gallery block; on the live site they fade one
   after another with dots underneath. Editor shows them as a grid. */
body:not(.editor-styles-wrapper) .wp-block-gallery.is-style-sd-carousel {
	position: relative;
	display: block !important;
	width: 100%;
	aspect-ratio: 4 / 5;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border-radius: 999px 999px var(--sd-radius) var(--sd-radius);
	background: var(--sd-sand);
	box-shadow:
		0 0 0 1px var(--sd-gold),
		0 0 0 10px var(--sd-cream),
		0 0 0 11px var(--sd-gold-soft),
		var(--sd-shadow);
}
body:not(.editor-styles-wrapper) .wp-block-gallery.is-style-sd-carousel > .wp-block-image {
	position: absolute !important;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	opacity: 0;
	transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}
body:not(.editor-styles-wrapper) .wp-block-gallery.is-style-sd-carousel > .wp-block-image:first-of-type { opacity: 1; }
/* slow "Ken Burns" zoom on the photo that is showing - feels alive, premium */
body:not(.editor-styles-wrapper) .wp-block-gallery.is-style-sd-carousel > .wp-block-image img {
	transform: scale(1.06);
	transition: transform 6.5s ease-out;
}
body:not(.editor-styles-wrapper) .wp-block-gallery.is-style-sd-carousel > .wp-block-image.is-active img { transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
	body:not(.editor-styles-wrapper) .wp-block-gallery.is-style-sd-carousel > .wp-block-image img { transform: none; transition: none; }
}
body:not(.editor-styles-wrapper) .wp-block-gallery.is-style-sd-carousel.sd-carousel-ready > .wp-block-image { opacity: 0; }
body:not(.editor-styles-wrapper) .wp-block-gallery.is-style-sd-carousel.sd-carousel-ready > .wp-block-image.is-active { opacity: 1; z-index: 1; }
body:not(.editor-styles-wrapper) .wp-block-gallery.is-style-sd-carousel > .wp-block-image img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	border-radius: 0;
}
body:not(.editor-styles-wrapper) .wp-block-gallery.is-style-sd-carousel figcaption { display: none; }
.sd-carousel-dots {
	display: flex;
	justify-content: center;
	gap: 0.6rem;
	margin-top: 1.75rem;
}
.sd-carousel-dots button:not(.sd-ed-add) {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 1px solid var(--sd-gold);
	border-radius: 999px;
	background: transparent;
	cursor: pointer;
	transition: width 0.35s ease, background-color 0.35s ease;
}
.sd-carousel-dots button:not(.sd-ed-add):hover { background: var(--sd-gold-soft); }
.sd-carousel-dots button.is-active { width: 28px; background: var(--sd-gold); }
.sd-carousel-dots button:focus-visible { outline: 2px solid var(--sd-maroon); outline-offset: 3px; }
/* editor: looks exactly like the live site - one photo in the arch,
   dots underneath (click a dot to see that photo, "+" to add photos) */
.editor-styles-wrapper .wp-block-gallery.is-style-sd-carousel {
	position: relative;
	display: block !important;
	width: 100%;
	aspect-ratio: 4 / 5;
	margin: 0;
	padding: 0 !important;
	overflow: hidden;
	border-radius: 999px 999px var(--sd-radius) var(--sd-radius);
	background: var(--sd-sand);
	box-shadow:
		0 0 0 1px var(--sd-gold),
		0 0 0 10px var(--sd-cream),
		0 0 0 11px var(--sd-gold-soft),
		var(--sd-shadow);
}
.editor-styles-wrapper .wp-block-gallery.is-style-sd-carousel > .sd-ed-slide {
	position: absolute !important;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.4s ease;
}
.editor-styles-wrapper .wp-block-gallery.is-style-sd-carousel > .sd-ed-slide.sd-ed-show { opacity: 1; pointer-events: auto; z-index: 1; }
.editor-styles-wrapper .wp-block-gallery.is-style-sd-carousel > .sd-ed-slide img,
.editor-styles-wrapper .wp-block-gallery.is-style-sd-carousel > .sd-ed-slide .components-resizable-box__container {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	border-radius: 0;
}
.editor-styles-wrapper .wp-block-gallery.is-style-sd-carousel > .sd-ed-slide figcaption,
.editor-styles-wrapper .wp-block-gallery.is-style-sd-carousel > .block-list-appender { display: none !important; }
.editor-styles-wrapper .wp-block-gallery.is-style-sd-carousel::before { z-index: 30; }
.sd-ed-dots { align-items: center; }
.sd-ed-dots .sd-ed-add {
	width: 26px;
	height: 26px;
	margin-left: 0.4rem;
	border: 1px dashed var(--sd-gold);
	border-radius: 50%;
	background: var(--sd-cream);
	color: var(--sd-maroon);
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}
.sd-ed-dots .sd-ed-add:hover { background: var(--sd-gold); color: #fff; }
.sd-ed-dots .sd-ed-add:disabled { opacity: 0.45; cursor: not-allowed; }

/* Carousel shapes (sidebar > "Carousel photos" > Shape):
   arch (default), sd-shape-frame (rounded 4:5), sd-shape-square (1:1) */
body .wp-block-gallery.is-style-sd-carousel:is(.sd-shape-frame, .sd-shape-square) {
	border-radius: var(--sd-radius) !important;
	box-shadow: var(--sd-shadow) !important;
}
body .wp-block-gallery.is-style-sd-carousel.sd-shape-square {
	aspect-ratio: 1 / 1 !important;
	outline: 1px solid var(--sd-gold-soft);
	outline-offset: 10px;
	overflow: hidden;
}
.sd-carousel-wrap { width: 100%; }
.editor-styles-wrapper .wp-block-gallery.is-style-sd-carousel.sd-shape-frame::before { content: "\1F39E  Carousel \B7  each photo 1000 \D7  1250 px (4:5) \B7  WebP \B7  max 180 KB"; }
.editor-styles-wrapper .wp-block-gallery.is-style-sd-carousel.sd-shape-square::before { content: "\1F39E  Carousel \B7  each photo 1100 \D7  1100 px (1:1) \B7  WebP \B7  max 180 KB"; }

/* Image → Soft Frame */
.wp-block-image.is-style-sd-frame img {
	border-radius: var(--sd-radius);
	box-shadow: var(--sd-shadow);
}

/* Group → Card */
.wp-block-group.is-style-sd-card {
	background: var(--sd-white);
	border: 1px solid var(--sd-line);
	border-radius: var(--sd-radius);
	padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
	box-shadow: 0 2px 0 var(--sd-line);
	transition: transform .35s var(--sd-ease), box-shadow .35s var(--sd-ease);
}
.wp-block-group.is-style-sd-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--sd-shadow);
}

/* Group → Testimonial */
.wp-block-group.is-style-sd-testimonial {
	position: relative;
	background: var(--sd-white);
	border: 1px solid var(--sd-line);
	border-radius: var(--sd-radius);
	padding: clamp(2rem, 1.5rem + 2vw, 3rem) clamp(1.5rem, 1rem + 2vw, 2.5rem) clamp(1.5rem, 1rem + 2vw, 2.5rem);
}
.wp-block-group.is-style-sd-testimonial::before {
	content: "\201C";
	position: absolute;
	top: -0.15em;
	left: 1.25rem;
	font-family: var(--sd-font-display);
	font-size: 6rem;
	line-height: 1;
	color: var(--sd-gold);
}

/* Review stars inside a testimonial card ("★★★★★" paragraph, class sd-stars).
   Edit the stars to match the real rating, e.g. ★★★★☆ */
p.sd-stars {
	margin: 1.25rem 0 0.35rem;
	color: #F5B301;
	font-size: 1.125rem;
	letter-spacing: 0.14em;
	line-height: 1;
}

/* Google-style review card: name, "Google review", stars, then the review */
.wp-block-column:has(> .wp-block-group.is-style-sd-testimonial) { display: flex; }
.wp-block-column > .wp-block-group.is-style-sd-testimonial { width: 100%; }
.wp-block-group.is-style-sd-testimonial:has(.sd-review-name) { padding-top: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem); }
.wp-block-group.is-style-sd-testimonial:has(.sd-review-name)::before { display: none; }
/* round student photo left of the name and "Google review" line */
.wp-block-group.is-style-sd-testimonial:has(> .sd-review-avatar) {
	display: grid !important;
	grid-template-columns: 48px minmax(0, 1fr);
	column-gap: 14px;
	align-content: start;
}
.wp-block-group.is-style-sd-testimonial:has(> .sd-review-avatar) > * { grid-column: 1 / -1; margin-block-start: 0; }
.wp-block-group.is-style-sd-testimonial > .sd-review-avatar {
	grid-column: 1;
	grid-row: 1 / span 2;
	align-self: center;
	width: 48px;
	height: 48px;
	margin: 0 !important;
}
.wp-block-group.is-style-sd-testimonial > .sd-review-avatar img {
	width: 48px !important;
	height: 48px !important;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 2px var(--sd-white), 0 0 0 3px var(--sd-gold-soft);
}
.wp-block-group.is-style-sd-testimonial:has(> .sd-review-avatar) > .sd-review-name { grid-column: 2; grid-row: 1; align-self: end; }
.wp-block-group.is-style-sd-testimonial:has(> .sd-review-avatar) > .sd-review-source { grid-column: 2; grid-row: 2; align-self: start; }
.editor-styles-wrapper .sd-review-avatar::before { display: none !important; }
.is-style-sd-testimonial p.sd-review-name {
	margin: 0;
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--sd-ink);
	letter-spacing: 0;
}
.is-style-sd-testimonial p.sd-review-source {
	margin: 0.15rem 0 0 !important;
	font-size: 0.75rem;
	color: var(--sd-muted);
	letter-spacing: 0.02em;
}
.is-style-sd-testimonial:has(.sd-review-name) p.sd-stars { margin: 0.85rem 0 0.75rem !important; }
.is-style-sd-testimonial:has(.sd-review-name) p.sd-stars + p { margin-top: 0 !important; }

/* Testimonials on phones / small tablets: a swipeable row of cards that
   glides to the next one by itself (main.js), dots underneath. The next
   card peeks in from the right so visitors see there is more. */
@media (max-width: 781px) {
	.wp-block-columns:has(> .wp-block-column > .is-style-sd-testimonial) {
		display: flex !important;
		flex-wrap: nowrap !important;
		gap: 1rem !important;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-behavior: smooth;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding: 2rem 0 1rem; /* room for the big quote mark, which pokes above the card */
		margin-inline: calc(var(--wp--style--root--padding-left, 1.25rem) * -1) !important;
		padding-inline: var(--wp--style--root--padding-left, 1.25rem);
		scroll-padding-inline: var(--wp--style--root--padding-left, 1.25rem);
	}
	.wp-block-columns:has(> .wp-block-column > .is-style-sd-testimonial)::-webkit-scrollbar { display: none; }
	.wp-block-columns:has(> .wp-block-column > .is-style-sd-testimonial) > .wp-block-column {
		flex: 0 0 86% !important;
		max-width: 86%;
		scroll-snap-align: start;
		display: flex;
	}
	.wp-block-columns:has(> .wp-block-column > .is-style-sd-testimonial) > .wp-block-column > .is-style-sd-testimonial {
		width: 100%;
		box-shadow: 0 8px 24px rgba(58, 14, 21, 0.06);
	}
}
@media (min-width: 782px) {
	.sd-review-dots { display: none !important; }
}

/* Paragraph → Eyebrow Label */
p.is-style-sd-eyebrow {
	font-size: var(--sd-fs-small);
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--sd-gold);
	margin-bottom: 0.75em;
}

/* Paragraph → Lead Text */
p.is-style-sd-lead {
	font-size: var(--wp--preset--font-size--large);
	color: var(--sd-muted);
	line-height: 1.7;
}

/* Quote → Classical */
.wp-block-quote.is-style-sd-classical {
	border: 0;
	padding: 0;
	text-align: center;
	max-width: 820px;
	margin-inline: auto;
}
.wp-block-quote.is-style-sd-classical p {
	font-family: var(--sd-font-display);
	font-style: italic;
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.4;
	color: var(--sd-maroon-deep);
}
.wp-block-quote.is-style-sd-classical cite {
	font-size: var(--sd-fs-small);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--sd-gold);
	font-style: normal;
}

/* Separator → Gold Ornament */
.wp-block-separator.is-style-sd-ornament {
	border: 0 !important;
	height: 14px;
	width: 180px;
	max-width: 100%;
	margin: 1.5rem auto;
	opacity: 1;
	background:
		linear-gradient(var(--sd-gold), var(--sd-gold)) left center / 42% 1px no-repeat,
		linear-gradient(var(--sd-gold), var(--sd-gold)) right center / 42% 1px no-repeat !important;
	position: relative;
}
.wp-block-separator.is-style-sd-ornament::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 8px;
	height: 8px;
	background: var(--sd-gold);
	transform: translate(-50%, -50%) rotate(45deg);
}

/* =========================================================
   SECTIONS  (Block → Advanced → Additional CSS class)
   ========================================================= */
.sd-hero {
	background:
		radial-gradient(ellipse at 85% 20%, color-mix(in srgb, var(--sd-gold-soft) 35%, transparent), transparent 55%),
		var(--sd-cream);
	overflow: hidden;
}
/* first name and surname in the same font (no italic) */
.sd-hero h1 em { font-style: normal; color: inherit; }

.sd-bg-dark :is(h1, h2, h3, h4) { color: var(--sd-cream); }
.sd-bg-dark p.is-style-sd-eyebrow { color: var(--sd-gold-soft); }
.sd-bg-dark a { color: var(--sd-gold-soft); }

/* Stats strip */
.sd-stats > .wp-block-column {
	text-align: center;
	padding-inline: 1rem;
	border-left: 1px solid color-mix(in srgb, var(--sd-gold) 40%, transparent);
}
.sd-stats > .wp-block-column:first-child { border-left: 0; }
.sd-stats .sd-stat-number {
	font-family: var(--sd-font-display);
	font-size: clamp(2.25rem, 1.8rem + 2vw, 3.25rem);
	font-weight: 600;
	line-height: 1;
	color: var(--sd-gold-soft);
	margin-bottom: 0.35em;
}
.sd-stats .sd-stat-label {
	font-size: var(--sd-fs-small);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin: 0;
}

/* five or more facts: slightly smaller numbers, never break "AIR · DD" */
.sd-stats .sd-stat-number { white-space: nowrap; }
.sd-stats:has(> .wp-block-column:nth-child(5)) .sd-stat-number { font-size: clamp(2rem, 1.5rem + 1.4vw, 2.75rem); }
@media (min-width: 782px) and (max-width: 1199px) {
	.sd-stats > .wp-block-column { padding-inline: 0.5rem; }
	.sd-stats .sd-stat-number { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); }
	.sd-stats .sd-stat-label { letter-spacing: 0.08em; }
}

/* Pill badge (Paragraph > Styles > "Pill Badge"), e.g. "Ages 4 to 60" */
p.is-style-sd-pill {
	display: table;
	margin-inline: auto;
	padding: 0.45rem 1.2rem;
	border: 1px solid var(--sd-gold);
	border-radius: 999px;
	background: color-mix(in srgb, var(--sd-gold-soft) 22%, var(--sd-cream));
	color: var(--sd-maroon);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	line-height: 1.4;
}
p.is-style-sd-pill.has-text-align-left { margin-left: 0; }
@media (max-width: 781px) {
	.sd-hero p.is-style-sd-pill.has-text-align-left { margin-left: auto; }
}

/* Performance timeline */
.sd-timeline {
	border-left: 1px solid var(--sd-gold);
	padding-left: 2rem;
	margin-left: 0.5rem;
}
.sd-timeline > .wp-block-group { position: relative; padding-bottom: 2rem; }
.sd-timeline > .wp-block-group::before {
	content: "";
	position: absolute;
	left: calc(-2rem - 5px);
	top: 0.55em;
	width: 9px;
	height: 9px;
	background: var(--sd-gold);
	transform: rotate(45deg);
}
.sd-timeline .sd-year {
	font-size: var(--sd-fs-small);
	font-weight: 700;
	letter-spacing: 0.18em;
	color: var(--sd-gold);
	margin-bottom: 0.25em;
}

/* About > Milestones: a little more breathing room, softer details */
.sd-timeline > .sd-tl-item h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem); margin: 0.15em 0 0.3em; }
.sd-timeline > .sd-tl-item p:not(.sd-year) { color: var(--sd-muted); margin: 0; }

/* About > Awards grid */
.sd-awards > .sd-award { margin: 0 !important; transition: transform 0.35s ease, box-shadow 0.35s ease; }
.sd-awards > .sd-award:hover { transform: translateY(-4px); box-shadow: var(--sd-shadow); }
.sd-award p.sd-award-meta {
	margin: 0 0 0.6rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--sd-gold);
}
.sd-award h3 { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); margin: 0 0 0.4rem; }
.sd-award p:not(.sd-award-meta) { color: var(--sd-muted); margin: 0; font-size: 0.9375rem; }

/* About > Teaching in Dubai (dark band) */
.sd-places > :is(.sd-place, .sd-format, .sd-event) {
	margin: 0 !important;
	padding: 1.5rem 1.5rem 1.35rem;
	border: 1px solid color-mix(in srgb, var(--sd-gold) 45%, transparent);
	border-radius: var(--sd-radius);
	background: color-mix(in srgb, var(--sd-cream) 4%, transparent);
	transition: border-color 0.35s ease, transform 0.35s ease;
}
.sd-places > :is(.sd-place, .sd-format, .sd-event):hover { border-color: var(--sd-gold-soft); transform: translateY(-3px); }
.sd-places :is(.sd-place, .sd-format, .sd-event) h3 { font-size: clamp(1.15rem, 1rem + 0.4vw, 1.35rem); margin: 0 0 0.4rem; color: var(--sd-cream); }
.sd-places :is(.sd-place, .sd-format, .sd-event) p { margin: 0; font-size: 0.875rem; color: var(--sd-gold-soft); }
.sd-bg-dark p.is-style-sd-pill {
	margin-top: var(--wp--preset--spacing--50);
	background: transparent;
	color: var(--sd-gold-soft);
	border-color: color-mix(in srgb, var(--sd-gold) 70%, transparent);
}

/* Call-to-action band (maroon): let the heading run wider so it sits on
   one line on desktop; on phones it breaks into balanced lines. */
.wp-block-group.sd-bg-dark.has-maroon-background-color > h2 {
	max-width: min(1040px, 100%) !important;
	text-wrap: balance;
}
.wp-block-group.sd-bg-dark.has-maroon-background-color > p { text-wrap: balance; }
@media (max-width: 599px) {
	.wp-block-group.sd-bg-dark.has-maroon-background-color > h2 { font-size: clamp(1.9rem, 8vw, 2.25rem) !important; }
}

/* =========================================================
   VIDEOS: YouTube thumbnails that play right here (main.js)
   and a sliding row of them (.sd-videos). Desktop shows 3,
   tablet 2, phone 1 with the next one peeking in.
   ========================================================= */
.sd-yt { margin: 0; }
.sd-yt .sd-yt-play,
.sd-yt .sd-yt-frame {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--sd-radius);
	background: var(--sd-maroon-deep);
	box-shadow: 0 10px 22px rgba(58, 14, 21, 0.14);
}
.sd-yt .sd-yt-play img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease, filter 0.4s ease;
}
.sd-yt .sd-yt-play::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 70%, rgba(58, 14, 21, 0.25));
	transition: opacity 0.4s ease;
}
/* glass play button: clearly a button, but the photo shows through */
.sd-yt .sd-yt-icon {
	position: absolute;
	z-index: 1;
	left: 50%;
	top: 50%;
	width: 64px;
	height: 64px;
	margin: -32px 0 0 -32px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
	border: 1.5px solid rgba(255, 255, 255, 0.85);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
	transition: transform 0.35s ease, background-color 0.35s ease, border-color 0.35s ease;
}
.sd-yt .sd-yt-icon::before {
	content: "";
	position: absolute;
	left: 25px;
	top: 20px;
	border-style: solid;
	border-width: 12px 0 12px 19px;
	border-color: transparent transparent transparent #fff;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}
.sd-yt .sd-yt-play:hover img { transform: scale(1.05); }
.sd-yt .sd-yt-play:hover .sd-yt-icon,
.sd-yt .sd-yt-play:focus-visible .sd-yt-icon {
	transform: scale(1.08);
	background: rgba(107, 31, 42, 0.85);
	border-color: var(--sd-gold-soft);
}
.sd-yt .sd-yt-play:focus-visible { outline: 2px solid var(--sd-gold); outline-offset: 4px; }
.sd-yt .sd-yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sd-yt .sd-yt-title {
	margin: 0.9rem 0.15rem 0;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.45;
	color: var(--sd-ink);
	text-align: left;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* the sliding row */
body:not(.editor-styles-wrapper) .sd-videos {
	--sd-vgap: 1.5rem;
	display: flex !important;
	gap: var(--sd-vgap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding: 0.5rem 0.25rem 1rem;
}
body:not(.editor-styles-wrapper) .sd-videos::-webkit-scrollbar { display: none; }
body:not(.editor-styles-wrapper) .sd-videos > * {
	flex: 0 0 calc((100% - 2 * var(--sd-vgap)) / 3);
	margin: 0 !important;
	scroll-snap-align: start;
}
@media (max-width: 1023px) {
	body:not(.editor-styles-wrapper) .sd-videos > * { flex-basis: calc((100% - var(--sd-vgap)) / 2); }
}
@media (max-width: 599px) {
	body:not(.editor-styles-wrapper) .sd-videos > * { flex-basis: 86%; }
}
.sd-videos-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-top: 0.75rem;
}
.sd-videos-nav .sd-carousel-dots { margin: 0; }
.sd-videos-nav .sd-vbtn {
	width: 42px;
	height: 42px;
	border: 1px solid var(--sd-gold);
	border-radius: 50%;
	background: transparent;
	color: var(--sd-maroon);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}
.sd-videos-nav .sd-vbtn:hover { background: var(--sd-gold); color: #fff; }
.sd-videos-nav .sd-vbtn:disabled { opacity: 0.35; cursor: default; background: transparent; color: var(--sd-maroon); }
.sd-videos-nav[hidden] { display: none; }

/* editor: tidy grid so links are easy to manage */
.editor-styles-wrapper .sd-videos {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
	gap: 1.25rem;
}
.editor-styles-wrapper .sd-videos > * { margin: 0 !important; }
.editor-styles-wrapper .sd-videos::before {
	content: "\1F3AC  Select this section, then paste YouTube links in the sidebar (\201CVideos\201D)";
	grid-column: 1 / -1;
	justify-self: center;
	padding: 0.25rem 0.8rem;
	border: 1px dashed var(--sd-gold);
	border-radius: 999px;
	background: var(--sd-cream);
	color: var(--sd-maroon);
	font-size: 0.75rem;
	font-weight: 600;
}

/* Two plain (cream) sections in a row: don't stack both paddings -
   the second one starts closer, so the gap looks like one section gap. */
.wp-block-post-content > .alignfull:not(.has-background):not(.sd-hero):not(.sd-bg-dark)
	+ .alignfull:not(.has-background):not(.sd-hero):not(.sd-bg-dark),
.editor-styles-wrapper .is-root-container > .alignfull:not(.has-background):not(.sd-hero):not(.sd-bg-dark)
	+ .alignfull:not(.has-background):not(.sd-hero):not(.sd-bg-dark) {
	padding-top: calc(var(--wp--preset--spacing--70) * 0.35) !important;
}

/* =========================================================
   LEARN MUSIC page
   ========================================================= */
/* class level cards */
.sd-levels > .sd-level { margin: 0 !important; transition: transform 0.35s ease, box-shadow 0.35s ease; }
.sd-levels > .sd-level:hover { transform: translateY(-4px); box-shadow: var(--sd-shadow); }
.sd-level p.sd-level-meta {
	display: inline-block;
	margin: 0 0 0.9rem;
	padding: 0.25rem 0.75rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--sd-gold-soft) 30%, transparent);
	color: var(--sd-maroon);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.sd-level h3 { font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.75rem); margin: 0 0 0.5rem; }
.sd-level p:not(.sd-level-meta) { color: var(--sd-muted); margin: 0; }

/* what you'll learn: gold diamond + title + one line */
.sd-topics > .sd-topic {
	position: relative;
	margin: 0 !important;
	padding: 1.25rem 0 0 1.75rem;
	border-top: 1px solid color-mix(in srgb, var(--sd-gold) 35%, transparent);
}
.sd-topics > .sd-topic::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 1.75rem;
	width: 9px;
	height: 9px;
	background: var(--sd-gold);
	transform: rotate(45deg);
}
.sd-topic h3 { font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem); margin: 0 0 0.3rem; }
.sd-topic p { color: var(--sd-muted); margin: 0; font-size: 0.9375rem; }

/* how to start: numbered steps */
.sd-steps { counter-reset: sd-step; }
.sd-steps > .sd-step {
	counter-increment: sd-step;
	position: relative;
	margin: 0 !important;
	padding-top: 4.25rem;
	text-align: center;
}
.sd-steps > .sd-step::before {
	content: counter(sd-step);
	position: absolute;
	left: 50%;
	top: 0;
	width: 3.1rem;
	height: 3.1rem;
	margin-left: -1.55rem;
	border: 1px solid var(--sd-gold);
	border-radius: 50%;
	background: var(--sd-cream);
	color: var(--sd-maroon);
	font-family: var(--sd-font-display);
	font-size: 1.5rem;
	line-height: 3rem;
	box-shadow: 0 0 0 6px color-mix(in srgb, var(--sd-gold-soft) 25%, transparent);
}
.sd-step h3 { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); margin: 0 0 0.35rem; }
.sd-step p { color: var(--sd-muted); margin: 0 auto; max-width: 22rem; font-size: 0.9375rem; }

/* who it's for: two cards with an icon, gold ticks and a link at the bottom */
.wp-block-column:has(> .sd-audience) { display: flex; }
.sd-audience {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	box-sizing: border-box;
	padding-top: clamp(4.75rem, 4rem + 2vw, 5.5rem) !important;
	overflow: hidden;
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.sd-audience:hover { transform: translateY(-4px); box-shadow: var(--sd-shadow); }
/* coloured band on top: gold for parents, maroon for adults */
.sd-audience::after {
	content: "";
	position: absolute;
	left: 0; right: 0; top: 0;
	height: 4px;
	background: var(--sd-gold);
}
.wp-block-column:last-child > .sd-audience::after { background: var(--sd-maroon); }
/* round icon: music note for children, microphone for adults */
.sd-audience::before {
	content: "";
	position: absolute;
	left: clamp(1.5rem, 1rem + 2vw, 2.5rem);
	top: clamp(1.5rem, 1.25rem + 1vw, 2rem);
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background:
		url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%236B1F2A%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M9%2018V5l11-2v13%22/%3E%3Ccircle%20cx%3D%226.5%22%20cy%3D%2218%22%20r%3D%222.5%22/%3E%3Ccircle%20cx%3D%2217.5%22%20cy%3D%2216%22%20r%3D%222.5%22/%3E%3C/svg%3E") center / 1.35rem no-repeat,
		color-mix(in srgb, var(--sd-gold-soft) 35%, var(--sd-white));
}
.wp-block-column:last-child > .sd-audience::before {
	background:
		url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%236B1F2A%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%229%22%20y%3D%223%22%20width%3D%226%22%20height%3D%2211%22%20rx%3D%223%22/%3E%3Cpath%20d%3D%22M5.5%2011a6.5%206.5%200%200%200%2013%200M12%2017.5V21M8.5%2021h7%22/%3E%3C/svg%3E") center / 1.35rem no-repeat,
		color-mix(in srgb, var(--sd-maroon) 10%, var(--sd-white));
}
.wp-block-column:first-child > .sd-audience { background: linear-gradient(180deg, color-mix(in srgb, var(--sd-gold-soft) 14%, var(--sd-white)), var(--sd-white) 45%); }
.sd-audience p.sd-card-link { margin: auto 0 0 !important; padding-top: 1.5rem; }
.sd-audience p.sd-card-link a {
	color: var(--sd-maroon);
	font-weight: 700;
	text-decoration: none;
	border-bottom: 1px solid var(--sd-gold);
	padding-bottom: 2px;
	transition: color 0.3s ease, border-color 0.3s ease;
}
.sd-audience p.sd-card-link a:hover { color: var(--sd-gold); border-color: var(--sd-maroon); }
.sd-audience p.sd-audience-meta {
	margin: 0 0 0.75rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--sd-gold);
}
.sd-audience h3 { font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem); margin: 0 0 0.6rem; }
.sd-audience > p:not(.sd-audience-meta) { color: var(--sd-muted); }
ul.sd-ticks { list-style: none; margin: 1.25rem 0 0; padding: 0; }
ul.sd-ticks > li {
	position: relative;
	padding: 0.55rem 0 0.55rem 2rem;
	border-top: 1px solid var(--sd-line);
}
ul.sd-ticks > li::after {
	content: "";
	position: absolute;
	left: 0;
	top: 0.75rem;
	width: 1.25rem;
	height: 1.25rem;
	border-radius: 50%;
	background: color-mix(in srgb, var(--sd-gold-soft) 40%, transparent);
}
ul.sd-ticks > li::before {
	content: "";
	position: absolute;
	z-index: 1;
	left: 0.45rem;
	top: 0.97rem;
	width: 0.3rem;
	height: 0.6rem;
	border: solid var(--sd-maroon);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

/* teaching method: a winding path of stages (alternating on desktop) */
.sd-journey { position: relative; counter-reset: sd-stage; }
.sd-journey > .sd-stage {
	counter-increment: sd-stage;
	position: relative;
	margin: 0 0 1.5rem !important;
	box-sizing: border-box;
	z-index: 1;
	padding: 1.5rem 1.75rem;
	background: var(--sd-white);
	border: 1px solid var(--sd-line);
	border-radius: var(--sd-radius);
	box-shadow: 0 2px 0 var(--sd-line);
}
.sd-stage p.sd-stage-meta {
	margin: 0 0 0.35rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--sd-gold);
}
.sd-stage h3 { font-size: clamp(1.35rem, 1.15rem + 0.6vw, 1.65rem); margin: 0 0 0.4rem; }
.sd-stage p:not(.sd-stage-meta) { color: var(--sd-muted); margin: 0; }
@media (min-width: 782px) {
	.sd-journey::before {
		content: "";
		position: absolute;
		left: 50%;
		top: 0.5rem;
		bottom: 0.5rem;
		border-left: 1px dashed var(--sd-gold);
	}
	.sd-journey > .sd-stage { width: calc(50% - 2.75rem); }
	.sd-journey > .sd-stage:nth-child(even) { margin-left: auto !important; }
	.sd-journey > .sd-stage:not(:first-child) { margin-top: -2.5rem !important; }
	.sd-journey > .sd-stage::after {
		content: counter(sd-stage);
		position: absolute;
		top: 1.4rem;
		width: 2.6rem;
		height: 2.6rem;
		border: 1px solid var(--sd-gold);
		border-radius: 50%;
		background: var(--sd-cream);
		color: var(--sd-maroon);
		font-family: var(--sd-font-display);
		font-size: 1.25rem;
		line-height: 2.5rem;
		text-align: center;
		box-shadow: 0 0 0 5px color-mix(in srgb, var(--sd-gold-soft) 30%, transparent);
	}
	.sd-journey > .sd-stage:nth-child(odd)::after { right: calc(-2.75rem - 1.3rem); }
	.sd-journey > .sd-stage:nth-child(even)::after { left: calc(-2.75rem - 1.3rem); }
}

/* classical music explained: term cards */
.sd-concepts > .sd-concept { margin: 0 !important; transition: transform 0.35s ease, box-shadow 0.35s ease; }
.sd-concepts > .sd-concept:hover { transform: translateY(-4px); box-shadow: var(--sd-shadow); }
.sd-concept h3 { font-size: clamp(1.6rem, 1.35rem + 0.8vw, 2rem); margin: 0; color: var(--sd-maroon); }
.sd-concept p.sd-concept-meta {
	margin: 0.15rem 0 0.8rem;
	padding-bottom: 0.8rem;
	border-bottom: 1px solid var(--sd-line);
	font-size: 0.8125rem;
	letter-spacing: 0.04em;
	color: var(--sd-gold);
}
.sd-concept p:not(.sd-concept-meta) { margin: 0; color: var(--sd-muted); font-size: 0.9375rem; }

/* =========================================================
   PERFORMANCES page
   ========================================================= */
/* "She has sung on": a tidy grid of names with fine gold lines
   (3 x 2 on desktop, 2 per row on phones), every box the same height */
.sd-venues {
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 0 !important;
	max-width: 960px;
	margin-left: auto !important;
	margin-right: auto !important;
}
.sd-venues > .sd-venue {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin: 0 !important;
	padding: 1.6rem 1.25rem;
	text-align: center;
	border-right: 1px solid color-mix(in srgb, var(--sd-gold) 35%, transparent);
	border-bottom: 1px solid color-mix(in srgb, var(--sd-gold) 35%, transparent);
	transition: background-color 0.35s ease;
}
.sd-venues > .sd-venue:hover { background: color-mix(in srgb, var(--sd-gold) 8%, transparent); }
.sd-venues > .sd-venue:nth-child(3n) { border-right: 0; }
.sd-venues > .sd-venue:nth-last-child(-n+3):nth-child(3n+1),
.sd-venues > .sd-venue:nth-last-child(-n+3):nth-child(3n+1) ~ .sd-venue { border-bottom: 0; }
.sd-venue h3 {
	margin: 0;
	font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.5rem);
	line-height: 1.2;
	text-wrap: balance;
	color: var(--sd-cream);
}
.sd-venue p {
	margin: 0.4rem 0 0;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--sd-gold-soft);
}
@media (max-width: 781px) {
	.sd-venues { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.sd-venues > .sd-venue { padding: 1.25rem 0.75rem; border-right: 1px solid color-mix(in srgb, var(--sd-gold) 35%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--sd-gold) 35%, transparent); }
	.sd-venues > .sd-venue:nth-child(2n) { border-right: 0; }
	.sd-venues > .sd-venue:nth-last-child(-n+3):nth-child(3n+1),
	.sd-venues > .sd-venue:nth-last-child(-n+3):nth-child(3n+1) ~ .sd-venue { border-bottom: 1px solid color-mix(in srgb, var(--sd-gold) 35%, transparent); }
	.sd-venues > .sd-venue:nth-last-child(-n+2):nth-child(2n+1),
	.sd-venues > .sd-venue:nth-last-child(-n+2):nth-child(2n+1) ~ .sd-venue { border-bottom: 0; }
}

/* booking band on maroon: event cards a touch lighter */
.has-maroon-background-color .sd-places > .sd-event { background: color-mix(in srgb, var(--sd-cream) 6%, transparent); }

/* =========================================================
   GALLERY page
   ========================================================= */
/* filter buttons: the active one is filled */
.sd-gallery-filter .wp-block-button__link { min-width: 7.5rem; text-align: center; }
.sd-gallery-filter .wp-block-button.is-active .wp-block-button__link {
	background: var(--sd-maroon);
	border-color: var(--sd-maroon);
	color: var(--sd-cream);
}
.sd-filter-off { display: none !important; }

/* albums */
.sd-album + .sd-album { margin-top: var(--wp--preset--spacing--70) !important; }
.sd-album > p.sd-album-meta {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--sd-gold);
}
.sd-album > h2 { margin: 0.2em 0 0.6em; }

/* masonry: photos keep their own shape, columns like a magazine */
body .wp-block-gallery.sd-masonry {
	display: block !important;
	columns: 3 260px;
	column-gap: 1.25rem;
}
body .wp-block-gallery.sd-masonry > .wp-block-image {
	display: block;
	width: 100% !important;
	margin: 0 0 1.25rem !important;
	break-inside: avoid;
	position: relative;
	overflow: hidden;
	border-radius: var(--sd-radius);
	cursor: zoom-in;
}
body .wp-block-gallery.sd-masonry > .wp-block-image img {
	display: block;
	width: 100% !important;
	height: auto !important;
}
body:not(.editor-styles-wrapper) .wp-block-gallery.sd-masonry > .wp-block-image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 55%, rgba(58, 14, 21, 0.28));
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
}
/* hover: the whole photo card grows a little (nothing is cut off) */
body:not(.editor-styles-wrapper) .wp-block-gallery.sd-masonry > .wp-block-image {
	transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.45s ease;
	will-change: transform;
}
body:not(.editor-styles-wrapper) .wp-block-gallery.sd-masonry > .wp-block-image:hover {
	transform: scale(1.03);
	z-index: 2;
	box-shadow: 0 18px 40px rgba(58, 14, 21, 0.22);
}
@media (prefers-reduced-motion: reduce) {
	body:not(.editor-styles-wrapper) .wp-block-gallery.sd-masonry > .wp-block-image:hover { transform: none; }
}
body:not(.editor-styles-wrapper) .wp-block-gallery.sd-masonry > .wp-block-image:hover::after { opacity: 1; }
body .wp-block-gallery.sd-masonry > .wp-block-image figcaption {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	margin: 0;
	padding: 2rem 1rem 0.8rem;
	background: linear-gradient(180deg, transparent, rgba(58, 14, 21, 0.75));
	color: var(--sd-cream);
	font-size: 0.8125rem;
	text-align: left;
}

/* lightbox */
.sd-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(20, 6, 9, 0.94);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s;
}
.sd-lightbox.is-open { opacity: 1; visibility: visible; }
.sd-lightbox figure { margin: 0; max-width: 92vw; text-align: center; }
.sd-lightbox img {
	max-width: 92vw;
	max-height: 80vh;
	object-fit: contain;
	border-radius: 6px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
	animation: sdLbIn 0.35s ease;
}
@keyframes sdLbIn { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
.sd-lightbox figcaption { margin-top: 1rem; color: var(--sd-sand); font-size: 0.9375rem; }
.sd-lightbox .sd-lb-count {
	position: absolute;
	top: 1.4rem;
	left: 1.5rem;
	color: var(--sd-gold-soft);
	font-size: 0.8125rem;
	letter-spacing: 0.14em;
}
.sd-lightbox button {
	position: absolute;
	width: 3rem;
	height: 3rem;
	border: 1px solid rgba(226, 200, 143, 0.6);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
	color: var(--sd-cream);
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.3s ease;
}
.sd-lightbox button:hover { background: var(--sd-gold); color: var(--sd-maroon-deep); }
.sd-lightbox .sd-lb-close { top: 1rem; right: 1rem; }
.sd-lightbox .sd-lb-prev { left: 1rem; top: 50%; margin-top: -1.5rem; }
.sd-lightbox .sd-lb-next { right: 1rem; top: 50%; margin-top: -1.5rem; }
@media (max-width: 599px) {
	.sd-lightbox .sd-lb-prev, .sd-lightbox .sd-lb-next { top: auto; bottom: 1.25rem; margin: 0; }
}

/* video grid (instead of a sliding row) */
body:not(.editor-styles-wrapper) .sd-videos.sd-video-grid {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(min(19rem, 100%), 1fr));
	gap: 2rem 1.5rem;
	overflow: visible;
}
body:not(.editor-styles-wrapper) .sd-videos.sd-video-grid > * { flex: none; }

/* FAQ: questions that open and close */
.sd-faqs > .sd-faq {
	margin: 0 !important;
	border-bottom: 1px solid var(--sd-line);
}
.sd-faqs > .sd-faq:first-child { border-top: 1px solid var(--sd-line); }
.sd-faq > summary {
	position: relative;
	padding: 1.25rem 3rem 1.25rem 0;
	list-style: none;
	cursor: pointer;
	font-family: var(--sd-font-display);
	font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem);
	color: var(--sd-ink);
	transition: color 0.3s ease;
}
.sd-faq > summary::-webkit-details-marker { display: none; }
.sd-faq > summary:hover { color: var(--sd-maroon); }
.sd-faq > summary::after {
	content: "+";
	position: absolute;
	right: 0.25rem;
	top: 50%;
	width: 2rem;
	height: 2rem;
	margin-top: -1rem;
	border: 1px solid var(--sd-gold);
	border-radius: 50%;
	color: var(--sd-gold);
	font-family: var(--sd-font-body);
	font-size: 1.1rem;
	line-height: 1.85rem;
	text-align: center;
	transition: transform 0.35s ease, background-color 0.35s ease, color 0.35s ease;
}
.sd-faq[open] > summary::after { content: "\2212"; background: var(--sd-gold); color: #fff; }
.sd-faq > p { margin: 0 0 1.4rem; color: var(--sd-muted); animation: sdFadeDown 0.35s ease; }

/* Centred section headings: wider than the text column, so they sit
   on one line on desktop; on smaller screens they break into even lines. */
.wp-block-group.alignfull > h2.has-text-align-center {
	max-width: min(1100px, 100%) !important;
	text-wrap: balance;
}
.wp-block-group.alignfull > p.is-style-sd-lead.has-text-align-center {
	max-width: min(980px, 100%) !important;
	text-wrap: balance;
}

/* Dark bands (maroon / deep maroon): readable lead text and a gold
   main button, so nothing disappears into the background. */
.sd-bg-dark p.is-style-sd-lead { color: color-mix(in srgb, var(--sd-sand) 82%, transparent); }
.sd-bg-dark .wp-block-button:not(.is-style-sd-outline) > .wp-block-button__link {
	background: var(--sd-gold);
	color: var(--sd-maroon-deep);
}
.sd-bg-dark .wp-block-button:not(.is-style-sd-outline) > .wp-block-button__link:hover {
	background: var(--sd-gold-soft);
	color: var(--sd-maroon-deep);
}

/* Outline button on dark backgrounds */
.sd-bg-dark .wp-block-button.is-style-sd-outline .wp-block-button__link {
	color: var(--sd-gold-soft);
	border-color: var(--sd-gold-soft);
}
.sd-bg-dark .wp-block-button.is-style-sd-outline .wp-block-button__link:hover {
	background: var(--sd-gold-soft);
	color: var(--sd-maroon-deep);
}

/* =========================================================
   FOOTER
   ========================================================= */
.sd-footer a { text-decoration: none; }
.sd-footer-logo { margin-bottom: 0.5rem !important; }

/* Footer menu links: lift up gently on hover (desktop) */
.sd-footer-nav .wp-block-navigation__container { gap: 0.9rem !important; }
.sd-footer-nav .wp-block-navigation-item__content {
	display: inline-block;
	position: relative;
	transition: transform .35s var(--sd-ease), color .35s var(--sd-ease);
}
.sd-footer-nav .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -4px;
	height: 1px;
	background: var(--sd-gold-soft);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .35s var(--sd-ease);
}
.sd-footer-nav .wp-block-navigation-item__content:hover,
.sd-footer-nav .wp-block-navigation-item__content:focus-visible {
	transform: translateY(-3px);
	color: var(--sd-gold-soft) !important;
}
.sd-footer-nav .wp-block-navigation-item__content:hover::after,
.sd-footer-nav .wp-block-navigation-item__content:focus-visible::after {
	transform: scaleX(1);
}

/* Tablet & mobile: "Explore" folds into one tappable row (☰ / ×) */
.sd-footer-toggle {
	border-top: 1px solid color-mix(in srgb, var(--sd-gold-soft) 30%, transparent);
	border-bottom: 1px solid color-mix(in srgb, var(--sd-gold-soft) 30%, transparent);
}
.sd-footer-toggle > summary {
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.95rem 0;
	cursor: pointer;
	font-family: var(--sd-font-display);
	font-size: 1.35rem;
	font-weight: 600;
	color: var(--sd-cream);
}
.sd-footer-toggle > summary::-webkit-details-marker { display: none; }
.sd-footer-toggle > summary::after {
	content: "";
	flex: none;
	width: 36px;
	height: 36px;
	border: 1px solid var(--sd-gold-soft);
	border-radius: 50%;
	background:
		linear-gradient(var(--sd-gold-soft), var(--sd-gold-soft)) center calc(50% - 5px) / 14px 1.5px no-repeat,
		linear-gradient(var(--sd-gold-soft), var(--sd-gold-soft)) center / 14px 1.5px no-repeat,
		linear-gradient(var(--sd-gold-soft), var(--sd-gold-soft)) center calc(50% + 5px) / 14px 1.5px no-repeat;
	transition: transform .35s var(--sd-ease);
}
.sd-footer-toggle[open] > summary::after {
	content: "\00d7";
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	color: var(--sd-gold-soft);
	font-family: var(--sd-font-body);
	font-size: 1.4rem;
	line-height: 1;
	transform: rotate(90deg);
}
.sd-footer-toggle .sd-footer-nav { padding: 0.25rem 0 1.25rem; }
@media (prefers-reduced-motion: no-preference) {
	.sd-footer-toggle[open] .sd-footer-nav { animation: sdFadeDown .35s var(--sd-ease); }
}
@keyframes sdFadeDown {
	from { opacity: 0; transform: translateY(-6px); }
	to   { opacity: 1; transform: none; }
}

/* tighter footer on small screens */
@media (max-width: 781px) {
	.sd-footer .wp-block-columns { gap: 1.75rem !important; }
}
.sd-footer .wp-block-site-title a { color: var(--sd-cream); }
.sd-footer a:hover { color: var(--sd-cream) !important; }

/* =========================================================
   SCROLL REVEAL  (add class "sd-reveal" to any block)
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
	.sd-js .sd-reveal {
		opacity: 0;
		transform: translateY(24px);
		transition: opacity .9s var(--sd-ease), transform .9s var(--sd-ease);
	}
	.sd-js .sd-reveal.is-visible { opacity: 1; transform: none; }
	/* The first section (hero) is never hidden: it is what visitors and
	   Google see first, and hiding it delays the "largest paint" (LCP). */
	.sd-js .wp-block-post-content > .sd-reveal:first-child,
	.sd-js .wp-block-post-content > .sd-reveal:nth-child(2),
	.sd-js .sd-hero.sd-reveal,
	.sd-js .sd-reveal.sd-no-anim { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   SHOW / HIDE BY DEVICE
   mobile ≤ 599px · tablet 600–1023px · desktop ≥ 1024px
   Set them with the "Show on devices" switches in the block sidebar.
   On the live site the block is removed; in the editor it stays
   visible but faded with a label, so it can still be selected.
   ========================================================= */
@media (max-width: 599px) {
	body:not(.editor-styles-wrapper) .sd-hide-mobile { display: none !important; }
	.editor-styles-wrapper .sd-hide-mobile { opacity: .35; outline: 1px dashed var(--sd-gold); outline-offset: 2px; }
}
@media (min-width: 600px) and (max-width: 1023px) {
	body:not(.editor-styles-wrapper) .sd-hide-tablet { display: none !important; }
	.editor-styles-wrapper .sd-hide-tablet { opacity: .35; outline: 1px dashed var(--sd-gold); outline-offset: 2px; }
}
@media (min-width: 1024px) {
	body:not(.editor-styles-wrapper) .sd-hide-desktop { display: none !important; }
	.editor-styles-wrapper .sd-hide-desktop { opacity: .35; outline: 1px dashed var(--sd-gold); outline-offset: 2px; }
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 781px) {
	.sd-hero { text-align: center; }
	.sd-hero .wp-block-buttons { justify-content: center; }
	.sd-stats > .wp-block-column {
		border-left: 0;
		border-top: 1px solid color-mix(in srgb, var(--sd-gold) 40%, transparent);
		padding-top: 1.25rem;
	}
	.sd-stats > .wp-block-column:first-child { border-top: 0; padding-top: 0; }
}

/* Footer credit line - small and quiet */
.sd-footer .sd-credit { opacity: .7; font-size: 0.75rem !important; letter-spacing: 0.04em; }
.sd-footer .sd-credit a { color: inherit !important; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--sd-gold-soft) 50%, transparent); }
.sd-footer .sd-credit a:hover { color: var(--sd-gold-soft) !important; }

/* =========================================================
   LOGO SIZE PER DEVICE
   Set in the editor: select a Logo block > sidebar >
   "Logo size on each device" (Desktop / Tablet / Mobile).
   The tablet & mobile sizes arrive as --sd-logo-tablet / --sd-logo-mobile
   on the block. If none is set, the header logo uses 230px / 150px.
   ========================================================= */
.sd-header .sd-logo img { transition: width .3s var(--sd-ease); }

@media (min-width: 600px) and (max-width: 1023px) {
	.sd-header .sd-logo img { width: 230px !important; }
	.wp-block-site-logo[style*="--sd-logo-tablet"] img { width: var(--sd-logo-tablet) !important; }
}
@media (max-width: 599px) {
	.sd-header .sd-logo img { width: 150px !important; }
	.wp-block-site-logo[style*="--sd-logo-mobile"] img { width: var(--sd-logo-mobile) !important; }
}


/* =========================================================
   MOBILE PANEL IN THE EDITOR
   The panel lives inside the Header, so everything in the
   header is edited in one place (Patterns > Header).
   - Desktop preview: hidden (only the desktop header shows)
   - Tablet / Mobile preview: shown under the header as a card
   ========================================================= */
.editor-styles-wrapper .sd-drawer {
	max-width: 380px;
	margin: 2.5rem auto 2rem !important;
	padding: 3.25rem 2rem 2.5rem;
	position: relative;
	background: var(--sd-cream);
	border: 1px dashed var(--sd-gold);
	border-radius: var(--sd-radius);
	box-shadow: var(--sd-shadow);
}
.editor-styles-wrapper .sd-drawer::before {
	content: "\1F4F1  Mobile menu panel - opens when \2630  is tapped";
	position: absolute;
	top: -0.85rem;
	left: 50%;
	transform: translateX(-50%);
	white-space: nowrap;
	padding: 0.25rem 0.85rem;
	border-radius: 999px;
	background: var(--sd-maroon);
	color: var(--sd-cream);
	font-family: var(--sd-font-body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
}
.editor-styles-wrapper .sd-drawer-close-wrap { display: none !important; }
/* empty social icons stay visible in the editor so they can be filled in */
.editor-styles-wrapper .sd-social .wp-social-link { opacity: 1; }

/* =========================================================
   HIGHLIGHT WITH PHOTO  (Home > "Highlight - A cherished moment")
   As soon as an Image is added to the Highlight section it turns
   into a two-column layout on desktop: framed photo left, story
   right. Tablet / mobile: photo sits under the ornament, centred.
   Recommended upload: 1100 x 1100 px (1:1), WebP, max 180 KB.
   ========================================================= */
:is(.sd-highlight, .sd-hero.sd-reveal:has(> :is(.wp-block-image, .wp-block-gallery, .sd-carousel-wrap))) > :is(.wp-block-image, .wp-block-gallery, .sd-carousel-wrap) {
	max-width: 520px !important;
	margin: 2rem auto 2.25rem !important;
}
:is(.sd-highlight, .sd-hero.sd-reveal:has(> :is(.wp-block-image, .wp-block-gallery, .sd-carousel-wrap))) > .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--sd-radius);
	box-shadow: var(--sd-shadow);
	outline: 1px solid var(--sd-gold-soft);
	outline-offset: 10px;
}
:is(.sd-highlight, .sd-hero.sd-reveal:has(> :is(.wp-block-image, .wp-block-gallery, .sd-carousel-wrap))) > .wp-block-image figcaption {
	margin-top: 1.25rem;
	font-size: 0.8125rem;
	font-style: italic;
	color: var(--sd-muted);
	text-align: center;
}
@media (min-width: 1024px) {
	:is(.sd-highlight, .sd-hero.sd-reveal:has(> :is(.wp-block-image, .wp-block-gallery, .sd-carousel-wrap))) {
		display: grid;
		grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
		column-gap: clamp(3rem, 6vw, 6rem);
		align-content: center;
		align-items: start;
		padding-left: max(1.5rem, calc((100% - 1140px) / 2)) !important;
		padding-right: max(1.5rem, calc((100% - 1140px) / 2)) !important;
	}
	:is(.sd-highlight, .sd-hero.sd-reveal:has(> :is(.wp-block-image, .wp-block-gallery, .sd-carousel-wrap))) > * {
		grid-column: 2;
		max-width: 560px !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		text-align: left !important;
	}
	/* rows: space / eyebrow / heading / ornament / story / space,
	   so the text block sits vertically centred next to the photo */
	:is(.sd-highlight, .sd-hero.sd-reveal:has(> :is(.wp-block-image, .wp-block-gallery, .sd-carousel-wrap))) { grid-template-rows: 1fr repeat(4, auto) 1fr; }
	:is(.sd-highlight, .sd-hero.sd-reveal:has(> :is(.wp-block-image, .wp-block-gallery, .sd-carousel-wrap))) > :nth-child(1) { grid-row: 2; }
	:is(.sd-highlight, .sd-hero.sd-reveal:has(> :is(.wp-block-image, .wp-block-gallery, .sd-carousel-wrap))) > :nth-child(2) { grid-row: 3; }
	:is(.sd-highlight, .sd-hero.sd-reveal:has(> :is(.wp-block-image, .wp-block-gallery, .sd-carousel-wrap))) > :nth-child(3) { grid-row: 4; }
	:is(.sd-highlight, .sd-hero.sd-reveal:has(> :is(.wp-block-image, .wp-block-gallery, .sd-carousel-wrap))) > :nth-child(5) { grid-row: 5; }
	:is(.sd-highlight, .sd-hero.sd-reveal:has(> :is(.wp-block-image, .wp-block-gallery, .sd-carousel-wrap))) > :is(.wp-block-image, .wp-block-gallery, .sd-carousel-wrap) {
		grid-column: 1;
		grid-row: 1 / 7;
		align-self: center;
		max-width: none !important;
		margin: 0 !important;
	}
	:is(.sd-highlight, .sd-hero.sd-reveal:has(> :is(.wp-block-image, .wp-block-gallery, .sd-carousel-wrap))) > .wp-block-separator.is-style-sd-ornament {
		/* centred under the 560px text column */
		margin: 1.25rem 0 1.5rem calc((min(560px, 100%) - 180px) / 2) !important;
	}
	/* editor only: the carousel dots sit under the photo, the story keeps row 5 */
	.editor-styles-wrapper :is(.sd-highlight, .sd-hero.sd-reveal) > .sd-ed-dots { grid-column: 1 !important; grid-row: 7 !important; }
	.editor-styles-wrapper :is(.sd-highlight, .sd-hero.sd-reveal) > .sd-ed-dots + * { grid-row: 5 !important; }
}
.editor-styles-wrapper :is(.sd-highlight, .sd-hero.sd-reveal:has(> :is(.wp-block-image, .wp-block-gallery, .sd-carousel-wrap))) > .wp-block-image::before {
	content: "\1F4D0  Upload 1100 \D7  1100 px (1:1) \B7  WebP \B7  max 180 KB";
}

/* =========================================================
   IMAGE SIZE GUIDE (editor only - never on the live site)
   A small tag at the bottom of every image tells what size to
   upload; it stays visible while the image is selected.
   Pick the size: select the image > toolbar 📐 button, or
   sidebar > "Image size guide".
   (::before is used because WordPress draws its blue selection
   outline with ::after.)
   Keep in sync with IMG_SLOTS in assets/js/editor.js.
   ========================================================= */
.editor-styles-wrapper .wp-block-image,
.editor-styles-wrapper .wp-block-gallery { position: relative; }
.editor-styles-wrapper .wp-block-image::before,
.editor-styles-wrapper .wp-block-gallery::before,
.editor-styles-wrapper .wp-block-cover.wp-block-cover::before {
	content: "\1F4D0  Upload 1200 px wide \B7  WebP \B7  max 200 KB";
	position: absolute;
	left: 50%;
	bottom: 0.75rem;
	transform: translateX(-50%);
	z-index: 20;
	width: max-content;
	max-width: calc(100% - 1.5rem);
	margin: 0;
	padding: 0.2rem 0.7rem;
	border: 1px dashed var(--sd-gold);
	border-radius: 999px;
	background: rgba(251, 247, 240, 0.94);
	color: var(--sd-maroon);
	font-family: var(--sd-font-body);
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.02em;
	text-align: center;
	white-space: normal;
	opacity: 1;
	pointer-events: none;
}
/* images inside a gallery: the gallery shows one tag for all */
.editor-styles-wrapper .wp-block-gallery .wp-block-image::before { display: none; }

/* automatic sizes (from the image style / block type) */
.editor-styles-wrapper .wp-block-image.is-style-sd-arch::before  { content: "\1F4D0  Upload 1000 \D7  1250 px (4:5) \B7  WebP \B7  max 200 KB"; }
.editor-styles-wrapper .wp-block-image.is-style-sd-frame::before { content: "\1F4D0  Upload 1000 \D7  1250 px (4:5) \B7  WebP \B7  max 150 KB"; }
.editor-styles-wrapper .wp-block-cover.wp-block-cover::before                  { content: "\1F4D0  Upload 1920 \D7  1080 px (16:9) \B7  WebP \B7  max 250 KB"; }
.editor-styles-wrapper .wp-block-gallery::before                 { content: "\1F4D0  Each photo: long side 1600 px \B7  WebP \B7  max 250 KB"; }
.editor-styles-wrapper .wp-block-gallery.is-style-sd-carousel::before { content: "\1F39E  Carousel \B7  each photo 1000 \D7  1250 px (4:5) \B7  WebP \B7  max 200 KB"; }

/* sizes picked by the user ("This image is a...") */
.editor-styles-wrapper :is(.wp-block-image, .wp-block-cover, .wp-block-gallery).sd-img-hero::before      { content: "\1F4D0  Upload 1000 \D7  1250 px (4:5) \B7  WebP \B7  max 200 KB"; }
.editor-styles-wrapper :is(.wp-block-image, .wp-block-cover, .wp-block-gallery).sd-img-portrait::before  { content: "\1F4D0  Upload 1000 \D7  1250 px (4:5) \B7  WebP \B7  max 150 KB"; }
.editor-styles-wrapper :is(.wp-block-image, .wp-block-cover, .wp-block-gallery).sd-img-landscape::before { content: "\1F4D0  Upload 1200 \D7  800 px (3:2) \B7  WebP \B7  max 150 KB"; }
.editor-styles-wrapper :is(.wp-block-image, .wp-block-cover, .wp-block-gallery).sd-img-wide::before      { content: "\1F4D0  Upload 1920 \D7  1080 px (16:9) \B7  WebP \B7  max 250 KB"; }
.editor-styles-wrapper :is(.wp-block-image, .wp-block-cover, .wp-block-gallery).sd-img-square::before    { content: "\1F4D0  Upload 1100 \D7  1100 px (1:1) \B7  WebP \B7  max 180 KB"; }
.editor-styles-wrapper :is(.wp-block-image, .wp-block-cover, .wp-block-gallery).sd-img-face::before      { content: "\1F4D0  Upload 400 \D7  400 px (1:1) \B7  WebP \B7  max 40 KB"; }
.editor-styles-wrapper :is(.wp-block-image, .wp-block-cover, .wp-block-gallery).sd-img-gallery::before   { content: "\1F4D0  Long side 1600 px \B7  WebP \B7  max 250 KB"; }
.editor-styles-wrapper :is(.wp-block-image, .wp-block-cover, .wp-block-gallery).sd-img-general::before   { content: "\1F4D0  Upload 1200 px wide \B7  WebP \B7  max 200 KB"; }

/* ========== Contact page (1.22.0) ========== */
.sd-channels { display: flex !important; flex-direction: column; gap: 0.75rem; margin-block: 1.75rem 2rem; }
.sd-channels > .sd-channel {
	position: relative;
	box-sizing: border-box;
	display: grid !important;
	grid-template-columns: 2.75rem minmax(0, 1fr) 2.25rem;
	grid-template-areas: "ico meta go" "ico title go" "ico info go";
	column-gap: 1rem;
	align-items: center;
	min-height: 5.5rem;
	margin: 0 !important;
	padding: 0.95rem 1.1rem;
	background: var(--sd-white);
	border: 1px solid var(--sd-line);
	border-radius: var(--sd-radius);
	cursor: pointer;
	transition: transform .3s var(--sd-ease), box-shadow .3s var(--sd-ease), border-color .3s, background-color .3s;
}
.sd-channel::before {
	content: "";
	grid-area: ico;
	align-self: center;
	width: 2.75rem; height: 2.75rem;
	border-radius: 50%;
	background: var(--sd-cream) var(--sd-ch-ico) center / 1.2rem no-repeat;
	box-shadow: inset 0 0 0 1px var(--sd-gold-soft);
	transition: background-color .3s;
}
/* arrow button on the right */
.sd-channel::after {
	content: "";
	grid-area: go;
	width: 2.25rem; height: 2.25rem;
	border-radius: 50%;
	background: var(--sd-cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B1F2A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 1rem no-repeat;
	transition: transform .3s var(--sd-ease), background-color .3s;
}
.sd-channels > .sd-channel:hover { transform: translateY(-2px); box-shadow: var(--sd-shadow); border-color: var(--sd-gold); }
.sd-channels > .sd-channel:hover::after { transform: translateX(3px); background-color: var(--sd-gold-soft); }
.sd-channels > .sd-channel:focus-within { outline: 2px solid var(--sd-maroon); outline-offset: 3px; }
.sd-ch-whatsapp { --sd-ch-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B1F2A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 0 1-13.2 7.9L3 21l1.2-4.6A9 9 0 1 1 21 12Z'/%3E%3Cpath d='M9 8.5c0 3.6 2.9 6.5 6.5 6.5l1-1.5-2-1-1 1a4 4 0 0 1-2-2l1-1-1-2Z'/%3E%3C/svg%3E"); }
.sd-ch-email { --sd-ch-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B1F2A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3.5 6.5 8.5 6.5 8.5-6.5'/%3E%3C/svg%3E"); }
.sd-ch-instagram { --sd-ch-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B1F2A' stroke-width='1.6' stroke-linecap='round'%3E%3Crect x='3.5' y='3.5' width='17' height='17' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.2' cy='6.8' r='.6' fill='%236B1F2A'/%3E%3C/svg%3E"); }
.sd-ch-youtube { --sd-ch-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B1F2A' stroke-width='1.6' stroke-linejoin='round'%3E%3Crect x='2.5' y='5.5' width='19' height='13' rx='4'/%3E%3Cpath d='m10 9 5 3-5 3Z'/%3E%3C/svg%3E"); }
.sd-channel:not(.sd-ch-whatsapp):not(.sd-ch-email):not(.sd-ch-instagram):not(.sd-ch-youtube) { --sd-ch-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B1F2A' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1'/%3E%3C/svg%3E"); }
.sd-channel > * { margin: 0 !important; min-width: 0; }
.sd-channel .sd-channel-meta { grid-area: meta; font-size: 0.68rem !important; line-height: 1.3; letter-spacing: .14em; text-transform: uppercase; color: var(--sd-gold); }
.sd-channel h3 { grid-area: title; font-size: 1.25rem !important; line-height: 1.2; color: var(--sd-ink); }
/* handle / email / number: always one line */
.sd-channel p:not([class]) {
	grid-area: info;
	font-size: 0.9rem !important;
	line-height: 1.45;
	color: var(--sd-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
/* the link is invisible: it stretches over the whole card, so the card is the button */
.sd-channel .sd-channel-link { grid-area: go; position: static; font-size: 0 !important; line-height: 0; }
.sd-channel .sd-channel-link a { position: static; color: transparent; text-decoration: none; }
.sd-channel .sd-channel-link a::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.sd-channel .sd-channel-link a:focus { outline: none; }
/* editor: the link line appears only while that card is being edited,
   so its address can be changed (hidden on the live site) */
.editor-styles-wrapper .sd-channel:is(.is-selected, .has-child-selected) { grid-template-areas: "ico meta go" "ico title go" "ico info go" "ico link go"; }
.editor-styles-wrapper .sd-channel:is(.is-selected, .has-child-selected) .sd-channel-link { grid-area: link; font-size: 0.75rem !important; line-height: 1.4; }
.editor-styles-wrapper .sd-channel:is(.is-selected, .has-child-selected) .sd-channel-link a { color: var(--sd-maroon); text-decoration: underline dotted; }
.editor-styles-wrapper .sd-channel:is(.is-selected, .has-child-selected) .sd-channel-link a::before { content: "Edit link: "; color: var(--sd-muted); }
.editor-styles-wrapper .sd-channel .sd-channel-link a::after { content: none; }
/* featured: WhatsApp */
.sd-channels > .sd-ch-whatsapp { border-color: var(--sd-gold-soft); background: linear-gradient(120deg, var(--sd-white) 40%, color-mix(in srgb, var(--sd-gold) 9%, var(--sd-white))); }
.sd-channels > .sd-ch-whatsapp::after { background-color: var(--sd-maroon); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
.sd-channels > .sd-ch-whatsapp:hover::after { background-color: var(--sd-maroon-deep); }
@media (max-width: 480px) {
	.sd-channels > .sd-channel { grid-template-columns: 2.4rem minmax(0, 1fr) 2rem; column-gap: .85rem; padding: .85rem .95rem; }
	.sd-channel::before { width: 2.4rem; height: 2.4rem; }
	.sd-channel::after { width: 2rem; height: 2rem; }
}
.wp-block-column > .sd-follow-label { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sd-muted); margin-bottom: .6rem !important; }

/* form card */
.sd-form-card { padding: clamp(1.5rem, 1rem + 2vw, 2.75rem) !important; }
.sd-form-card > h2 { margin-top: .35rem; }
.sd-form-wrap { margin-top: 1.5rem; }
.sd-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; }
.sd-field { margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.sd-field-wide { grid-column: 1 / -1; }
.sd-field label { font-size: .82rem; font-weight: 600; color: var(--sd-ink); }
.sd-field label span { color: var(--sd-maroon); }
.sd-field label small { font-weight: 400; color: var(--sd-muted); }
.sd-field input, .sd-field select, .sd-field textarea {
	box-sizing: border-box;
	width: 100%;
	padding: .8rem .95rem;
	font: inherit;
	font-size: 1rem; /* 16px stops iPhone zoom */
	color: var(--sd-ink);
	background: var(--sd-cream);
	border: 1px solid var(--sd-line);
	border-radius: 10px;
	transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.sd-field textarea { resize: vertical; min-height: 8rem; }
.sd-field select { appearance: none; padding-right: 2.4rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B1F2A' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; background-size: 1rem; }
.sd-field input:focus, .sd-field select:focus, .sd-field textarea:focus { outline: none; background-color: var(--sd-white); border-color: var(--sd-gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sd-gold) 22%, transparent); }
.sd-form-note { font-size: .82rem; color: var(--sd-muted); margin: 1rem 0 0; }
.sd-form-actions { margin: 1.25rem 0 0; }
.sd-form-submit { width: 100%; justify-content: center; cursor: pointer; border: 0; padding: 1rem 1.5rem !important; }
.sd-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sd-form-error { margin: 0 0 1rem; padding: .85rem 1rem; border-radius: 10px; background: #fbeaea; color: #8a1c1c; border-left: 3px solid #c0392b; font-size: .92rem; }
.sd-form-done { text-align: center; padding: 2.5rem 1.5rem; border-radius: var(--sd-radius); background: var(--sd-cream); border: 1px solid var(--sd-gold-soft); }
.sd-form-done-title { font-family: var(--sd-font-display); font-size: 1.6rem; color: var(--sd-maroon); margin: 0 0 .5rem; }
.sd-form-wrap { scroll-margin-top: 6rem; }
@media (max-width: 600px) { .sd-form-grid { grid-template-columns: 1fr; } }

/* map */
.sd-map { margin-top: 2rem; border-radius: var(--sd-radius); overflow: hidden; box-shadow: 0 0 0 1px var(--sd-gold-soft), var(--sd-shadow); background: var(--sd-sand); }
.sd-map { position: relative; }
.sd-map iframe { display: block; width: 100%; aspect-ratio: 16 / 7; min-height: 320px; border: 0; filter: saturate(.85) sepia(.08); }
@media (max-width: 600px) { .sd-map iframe { aspect-ratio: 4 / 5; } }
.block-editor-page .sd-map iframe { pointer-events: none; }
.sd-form .sd-form-submit { background: var(--sd-maroon); color: var(--sd-white); border-radius: 999px; font-family: var(--sd-font-body); font-weight: 600; letter-spacing: .04em; transition: background-color .25s, transform .25s; }
.sd-form .sd-form-submit:hover { background: var(--sd-maroon-deep); transform: translateY(-1px); }
.sd-form .sd-form-submit { background: var(--sd-maroon); color: var(--sd-white); border-radius: 999px; font-family: var(--sd-font-body); font-weight: 600; letter-spacing: .04em; transition: background-color .25s, transform .25s; }
.sd-form .sd-form-submit:hover { background: var(--sd-maroon-deep); transform: translateY(-1px); }

/* ========== Privacy Policy & 404 (1.23.0) ========== */
.sd-legal-date { font-size: .85rem; color: var(--sd-muted); letter-spacing: .04em; margin-top: 1rem !important; }
.sd-legal { font-size: 1rem; line-height: 1.8; }
.sd-legal h2 { font-size: clamp(1.5rem, 1.25rem + .8vw, 1.9rem); margin: 2.75rem 0 .75rem; padding-top: 1.75rem; border-top: 1px solid var(--sd-line); }
.sd-legal h2:first-of-type { margin-top: 2.25rem; }
.sd-legal h3 { font-size: 1.35rem; margin-top: 1.5rem; }
.sd-legal p, .sd-legal li { color: var(--sd-ink); }
.sd-legal ul { padding-left: 1.25rem; margin: .5rem 0 1rem; }
.sd-legal li { margin-bottom: .4rem; }
.sd-legal li::marker { color: var(--sd-gold); }
.sd-legal a { color: var(--sd-maroon); text-underline-offset: 3px; }
.sd-legal .sd-legal-note { font-size: .92rem; color: var(--sd-muted); padding: 1.25rem 1.4rem; background: var(--sd-white); border: 1px solid var(--sd-line); border-left: 3px solid var(--sd-gold); border-radius: 10px; }
.sd-404-num { font-family: var(--sd-font-display); font-size: clamp(6rem, 4rem + 9vw, 11rem); line-height: 1 !important; margin-bottom: 0 !important; color: transparent; -webkit-text-stroke: 1.5px var(--sd-gold); letter-spacing: .04em; }
.sd-404-links { margin-top: 2.5rem !important; font-size: .95rem; color: var(--sd-muted); }
.sd-404-links a { color: var(--sd-maroon); text-decoration: none; border-bottom: 1px solid var(--sd-gold-soft); }
.sd-404-links a:hover { border-bottom-color: var(--sd-maroon); }
.sd-credit a { white-space: nowrap; }
.sd-credit { line-height: 2; }

/* ========== Blog (1.24.0) ========== */
.sd-blog-grid .wp-block-post-template { gap: 1.75rem; }
.sd-post-card {
	height: 100%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	background: var(--sd-white);
	border: 1px solid var(--sd-line);
	border-radius: var(--sd-radius);
	overflow: hidden;
	transition: transform .35s var(--sd-ease), box-shadow .35s var(--sd-ease), border-color .35s;
}
.sd-post-card:hover { transform: translateY(-4px); box-shadow: var(--sd-shadow); border-color: var(--sd-gold-soft); }
.sd-post-card .sd-post-thumb { margin: 0 !important; overflow: hidden; background: var(--sd-sand); }
.sd-post-card .sd-post-thumb img { transition: transform .6s var(--sd-ease); }
.sd-post-card:hover .sd-post-thumb img { transform: scale(1.04); }
.sd-post-body { display: flex; flex-direction: column; flex: 1; gap: .55rem; padding: 1.35rem 1.4rem 1.4rem; }
.sd-post-body > * { margin: 0 !important; }
.sd-post-cat, .sd-post-cat a { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sd-gold); text-decoration: none; font-weight: 600; }
.sd-post-cat .wp-block-post-terms__separator { color: var(--sd-gold-soft); }
.sd-post-title { font-size: 1.45rem !important; line-height: 1.25; }
.sd-post-title a { color: var(--sd-ink); text-decoration: none; }
.sd-post-card:hover .sd-post-title a { color: var(--sd-maroon); }
/* the whole card opens the post */
.sd-post-card { position: relative; }
.sd-post-card .sd-post-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.sd-post-card .sd-post-cat a { position: relative; z-index: 2; }
.sd-post-excerpt { color: var(--sd-muted); font-size: .95rem; line-height: 1.65; }
.sd-post-excerpt p { margin: 0; }
.sd-post-excerpt .wp-block-post-excerpt__more-text { display: none; }
.sd-post-meta { gap: .5rem !important; margin-top: auto !important; padding-top: .6rem; font-size: .8rem; color: var(--sd-muted); }
.sd-post-meta > * { margin: 0 !important; font-size: .8rem !important; }
.sd-post-meta > * + *::before { content: "·"; margin-right: .5rem; color: var(--sd-gold); }
.sd-pagination { margin-top: 3rem; gap: .4rem; font-size: .95rem; }
.sd-pagination a, .sd-pagination .current { display: inline-flex; min-width: 2.4rem; height: 2.4rem; padding: 0 .7rem; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--sd-line); color: var(--sd-ink); text-decoration: none; box-sizing: border-box; }
.sd-pagination .current { background: var(--sd-maroon); border-color: var(--sd-maroon); color: var(--sd-white); }
.sd-pagination a:hover { border-color: var(--sd-gold); color: var(--sd-maroon); }
.sd-blog-empty { padding: 3rem 1.5rem; border: 1px dashed var(--sd-gold-soft); border-radius: var(--sd-radius); color: var(--sd-muted); }

/* article */
.sd-article-head { margin-bottom: 2.25rem; }
.sd-article-head > * { margin-block: 0 !important; }
.sd-article-head .sd-post-cat { text-align: center; }
.sd-article-title { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.6rem) !important; line-height: 1.12; margin: .6rem 0 1rem !important; text-wrap: balance; }
.sd-article-meta { font-size: .9rem; }
.sd-article-meta > * { font-size: .9rem !important; }
.sd-article-image { margin-bottom: 2.75rem !important; }
.sd-article-image img { border-radius: var(--sd-radius); }
.sd-article-body { font-size: 1.1rem; line-height: 1.85; }
.sd-article-body > * + * { margin-top: 1.35rem; }
.sd-article-body h2 { font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem); margin-top: 2.75rem; }
.sd-article-body h3 { font-size: 1.5rem; margin-top: 2.25rem; }
.sd-article-body a { color: var(--sd-maroon); text-underline-offset: 3px; }
.sd-article-body li::marker { color: var(--sd-gold); }
.sd-article-body blockquote { margin-inline: 0; padding: .5rem 0 .5rem 1.5rem; border-left: 3px solid var(--sd-gold); font-family: var(--sd-font-display); font-size: 1.5rem; line-height: 1.45; color: var(--sd-maroon); }
.sd-article-body figure img { border-radius: 10px; }
.sd-author-box { margin-top: 3.5rem !important; padding: 2rem 2.1rem; background: var(--sd-cream); border: 1px solid var(--sd-gold-soft); border-radius: var(--sd-radius); }
.sd-author-box > * { margin-block: 0 0.6rem !important; }
.sd-author-box h3 { font-size: 1.6rem; }
.sd-author-box p:not(.is-style-sd-eyebrow) { color: var(--sd-muted); font-size: .98rem; }
.sd-author-box .wp-block-buttons { margin-top: 1.25rem !important; }
.sd-related { margin-top: var(--wp--preset--spacing--70) !important; padding-top: var(--wp--preset--spacing--60); border-top: 1px solid var(--sd-line); }
.sd-related > h2 { margin-bottom: 2rem; }
@media (max-width: 781px) {
	.sd-blog-grid .wp-block-post-template { grid-template-columns: 1fr !important; }
	.sd-author-box { padding: 1.5rem 1.4rem; }
}
@media (min-width: 782px) and (max-width: 1023px) {
	.sd-blog-grid .wp-block-post-template { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ========== 1.25.0: cards on light backgrounds, Book a Show, online band ========== */
.sd-places-light > :is(.sd-place, .sd-format, .sd-event) {
	background: var(--sd-white);
	border-color: var(--sd-line);
	box-shadow: 0 1px 0 rgba(58, 14, 21, 0.03);
}
.sd-places-light > :is(.sd-place, .sd-format, .sd-event):hover { border-color: var(--sd-gold); box-shadow: var(--sd-shadow); }
.sd-places-light :is(.sd-place, .sd-format, .sd-event) h3 { color: var(--sd-ink); }
.sd-places-light :is(.sd-place, .sd-format, .sd-event) p { color: var(--sd-muted); font-size: 0.9375rem; line-height: 1.6; }
.sd-places-light > .sd-event { border-top: 3px solid var(--sd-gold); }
.sd-booking-form input[type="date"] { min-height: 3.1rem; }
.sd-booking-done { margin: 1rem 0 0 !important; padding: 1rem 1.25rem; text-align: left; font-size: .92rem; }
.sd-booking-done[hidden] { display: none !important; }
.sd-wa-submit { display: inline-flex; align-items: center; gap: .6rem; }
.sd-wa-submit::before {
	content: "";
	width: 1.15rem; height: 1.15rem;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 0 1-13.2 7.9L3 21l1.2-4.6A9 9 0 1 1 21 12Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 0 1-13.2 7.9L3 21l1.2-4.6A9 9 0 1 1 21 12Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
#book-form, #online { scroll-margin-top: 6rem; }

/* "Show on the live site" switch: hidden blocks are removed on the server
   (visitors and Google never get them); in the editor they stay, faded. */
body:not(.editor-styles-wrapper) .sd-hide-live { display: none !important; }
.editor-styles-wrapper .sd-hide-live { opacity: 0.4; outline: 2px dashed var(--sd-maroon); outline-offset: -2px; position: relative; }
.editor-styles-wrapper .sd-hide-live::before {
	content: "Hidden on the live site";
	position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 20;
	padding: 4px 12px; border-radius: 999px;
	background: var(--sd-maroon); color: #fff;
	font: 600 12px/1.4 system-ui, sans-serif; letter-spacing: .02em;
	pointer-events: none;
}

/* ========== Reviews (1.28.0) ========== */
.sd-rv-card {
	position: relative;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	padding: 1.6rem 1.6rem 1.4rem;
	background: var(--sd-white);
	border: 1px solid var(--sd-line);
	border-radius: var(--sd-radius);
	box-shadow: 0 1px 0 rgba(58, 14, 21, 0.03);
}
.sd-rv-card > * { margin: 0; }
.sd-rv-head { display: flex; align-items: center; gap: 0.85rem; }
.sd-rv-head p { margin: 0; }
.sd-rv-avatar { flex: none; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--sd-cream), 0 0 0 3px var(--sd-gold-soft); }
.sd-rv-initial { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-family: var(--sd-font-display); font-size: 1.5rem; line-height: 1; }
.sd-rv-name { font-weight: 600; font-size: 1.02rem; color: var(--sd-ink); line-height: 1.3; }
.sd-rv-meta { font-size: 0.8rem; color: var(--sd-muted); margin-top: 0.15rem !important; }
.sd-rv-g { display: inline-flex; align-items: center; gap: 0.3rem; white-space: nowrap; }
.sd-rv-stars { color: #e3a008; letter-spacing: 0.12em; font-size: 1.05rem; line-height: 1; }
.sd-rv-stars span { color: #e6ddd2; }
.sd-rv-text { color: var(--sd-ink); font-size: 0.98rem; line-height: 1.7; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden; }
.sd-rv-text p { margin: 0 0 0.6em; }
.sd-rv-text p:last-child { margin-bottom: 0; }
.sd-rv-card.is-open .sd-rv-text { -webkit-line-clamp: unset; line-clamp: unset; display: block; }
.sd-rv-rated { color: var(--sd-muted); font-style: italic; }
.sd-rv-more { align-self: flex-start; padding: 0; border: 0; background: none; color: var(--sd-maroon); font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.sd-rv-photos { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: auto !important; padding-top: 0.4rem; }
.sd-rv-photo { margin: 0 !important; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; cursor: zoom-in; }
.sd-rv-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--sd-ease); }
.sd-rv-photo:hover img { transform: scale(1.06); }

/* carousel */
.sd-rv-carousel { margin-top: 2.5rem; }
/* wide, airy layout on big screens */
.sd-rv-carousel.alignwide, .sd-rv-all.alignwide { width: 100%; max-width: var(--wp--style--global--wide-size, 1200px); margin-left: auto !important; margin-right: auto !important; }

.sd-rv-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 2 * 1.25rem) / 3);
	gap: 1.25rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding: 4px 2px 8px;
	align-items: stretch;
}
.sd-rv-track::-webkit-scrollbar { display: none; }
.sd-rv-track > .sd-rv-card { scroll-snap-align: start; }
@media (max-width: 1023px) { .sd-rv-track { grid-auto-columns: calc((100% - 1.25rem) / 2); } }
@media (max-width: 680px) { .sd-rv-track { grid-auto-columns: 88%; gap: 0.9rem; } }
.sd-rv-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.sd-rv-nav > button { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--sd-gold-soft); background: var(--sd-white); color: var(--sd-maroon); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.sd-rv-nav > button:hover { background: var(--sd-maroon); color: #fff; border-color: var(--sd-maroon); }
.sd-rv-dots { display: flex; gap: 0.5rem; }
.sd-rv-dots button { width: 9px; height: 9px; padding: 0; border: 1px solid var(--sd-gold); border-radius: 999px; background: transparent; cursor: pointer; transition: width .3s, background-color .3s; }
.sd-rv-dots button.is-active { width: 26px; background: var(--sd-gold); }
.sd-rv-carousel.is-static .sd-rv-nav { display: none; }
.sd-reviews-section .wp-block-buttons { margin-top: 2rem; }

/* Reviews page wall */
.sd-rv-summary { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 0 0 1.75rem; }
.sd-rv-summary p { margin: 0; }
.sd-rv-avg { font-family: var(--sd-font-display); font-size: 3.4rem; line-height: 1; color: var(--sd-maroon); }
.sd-rv-count { font-size: 0.9rem; color: var(--sd-muted); margin-top: 0.3rem !important; }
.sd-rv-filter { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.sd-rv-filter button { padding: 0.5rem 1.1rem; border-radius: 999px; border: 1px solid var(--sd-gold-soft); background: var(--sd-white); color: var(--sd-ink); font: inherit; font-size: 0.88rem; cursor: pointer; }
.sd-rv-filter button.is-active { background: var(--sd-maroon); border-color: var(--sd-maroon); color: #fff; }
.sd-rv-wall { columns: 3 300px; column-gap: 1.25rem; }
.sd-rv-wall > .sd-rv-card { break-inside: avoid; margin-bottom: 1.25rem; }
.sd-rv-wall .sd-rv-text { -webkit-line-clamp: 12; line-clamp: 12; }
.sd-rv-wall > .sd-rv-card[hidden] { display: none; }
.sd-rv-empty { text-align: center; color: var(--sd-muted); padding: 2rem; border: 1px dashed var(--sd-gold-soft); border-radius: var(--sd-radius); }

/* write a review form */
.sd-rv-rate { border: 0; padding: 0; margin: 0 0 1.25rem; }
.sd-rv-rate legend { font-size: .82rem; font-weight: 600; color: var(--sd-ink); margin-bottom: .4rem; }
.sd-rv-rate legend span { color: var(--sd-maroon); }
.sd-rv-rate-stars { display: inline-flex; flex-direction: row-reverse; gap: 0.2rem; }
.sd-rv-rate-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sd-rv-rate-stars label { font-size: 2.2rem; line-height: 1; color: #e6ddd2; cursor: pointer; transition: color .15s, transform .15s; }
.sd-rv-rate-stars label:hover, .sd-rv-rate-stars label:hover ~ label,
.sd-rv-rate-stars input:checked ~ label { color: #e3a008; }
.sd-rv-rate-stars input:focus-visible + label { outline: 2px solid var(--sd-maroon); outline-offset: 2px; border-radius: 4px; }
.sd-field input[type="file"] { padding: .6rem; background: var(--sd-white); font-size: .9rem; }
.sd-rv-consent { margin-top: 1rem !important; }
.sd-rv-consent label { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400 !important; font-size: .88rem !important; color: var(--sd-muted) !important; line-height: 1.5; }
.sd-rv-consent input { margin-top: .25rem; width: auto !important; }
.sd-rv-thanks-ask { color: var(--sd-ink); margin-top: 1rem !important; }

/* menu: Gallery lives in the footer on desktop (still in the mobile menu) */
.sd-nav-desktop .sd-nav-gallery { display: none !important; }
/* reviews: wide, airy layout on big screens */
@media (min-width: 1024px) {
	.sd-rv-track { gap: 2rem; grid-auto-columns: calc((100% - 2 * 2rem) / 3); padding: 6px 4px 12px; }
	.sd-rv-card { padding: 2rem 2rem 1.75rem; gap: 0.85rem; }
}
