/*
 Theme Name:   Upholstery Addicts Frost
 Theme URI:    https://github.com/p.hanson/upholstery-addicts
 Description:  Frost child theme for Upholstery Addicts.
 Author:       Upholstery Addicts
 Template:     frost
 Version:      0.2.42
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  upholstery-addicts
*/

.ua-offering-code {
	display: inline;
	margin-left: 0 !important;
	padding-left: 0 !important;
	text-indent: 0;
}

.wp-block-shortcode,
.wp-block-shortcode p,
.wp-block-shortcode .ua-offering-code,
p .ua-offering-code,
li .ua-offering-code {
	margin-left: 0 !important;
	padding-left: 0 !important;
	text-indent: 0 !important;
}

.ua-five-image-row {
	gap: 0;
	align-items: stretch;
	display: flex !important;
	flex-wrap: nowrap;
	overflow: hidden;
	height: clamp(240px, 26.67vw, 560px);
}

.ua-five-image-row.is-style-ua-full-bleed,
.ua-five-image-row.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
}

.ua-five-image-row.is-style-ua-contained {
	width: min(100%, var(--wp--style--global--wide-size, 1200px));
	max-width: var(--wp--style--global--wide-size, 1200px);
	margin-left: auto !important;
	margin-right: auto !important;
}

.ua-five-image-row .wp-block-column {
	display: block;
	flex: 0 0 20% !important;
	max-width: 20%;
	min-width: 0;
	height: clamp(240px, 26.67vw, 560px);
	overflow: hidden;
}

@media (max-width: 1100px) {
	.ua-five-image-row {
		flex-wrap: wrap !important;
	}

	.ua-five-image-row .wp-block-column {
		flex: 0 0 33.333% !important;
		max-width: 33.333%;
	}

	.ua-five-image-row .wp-block-column:nth-child(n + 4) {
		display: none;
	}
}

@media (max-width: 700px) {
	.ua-five-image-row .wp-block-column {
		flex: 0 0 50% !important;
		max-width: 50%;
	}

	.ua-five-image-row .wp-block-column:nth-child(n + 3) {
		display: none;
	}
}

.ua-five-image-row .wp-block-image {
	margin: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	display: block;
}

.ua-five-image-row .wp-block-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* ── Image strip link wrapper ────────────────────────────────────── */

.ua-image-strip-link {
	display: block;
	text-decoration: none;
	cursor: pointer;
}

.ua-image-strip-link:hover .ua-five-image-row {
	opacity: 0.92;
	transition: opacity 0.2s ease;
}

/* ── Random gallery row block ───────────────────────────────────── */

.ua-random-gallery-row {
	display: flex;
	align-items: flex-start;
	gap: clamp(1.25rem, 3vw, 3rem);
	margin: clamp(1.5rem, 3vw, 3rem) 0;
}

.ua-random-gallery-row--image-right {
	flex-direction: row;
}

.ua-random-gallery-row--image-left {
	flex-direction: row;
}

.ua-random-gallery-row__image,
.ua-random-gallery-row__content {
	flex: 1 1 50%;
}

.ua-random-gallery-row__image {
	align-self: flex-start;
}

.ua-random-gallery-row__content > :first-child {
	margin-top: 0;
}

.ua-random-gallery-row--image-right .ua-random-gallery-row__content {
	order: 1;
}

.ua-random-gallery-row--image-right .ua-random-gallery-row__image {
	order: 2;
}

.ua-random-gallery-row--image-left .ua-random-gallery-row__image {
	order: 1;
}

.ua-random-gallery-row--image-left .ua-random-gallery-row__content {
	order: 2;
}

.ua-random-gallery-row__image .wp-block-image {
	margin: 0;
}

.ua-random-gallery-row__image img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
	border-radius: 2px;
}

.ua-random-gallery-row__image-placeholder {
	min-height: 220px;
	border: 1px dashed rgba(122, 122, 122, 0.45);
	border-radius: 2px;
	padding: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #666;
	font-size: 0.95rem;
	background: rgba(255, 255, 255, 0.55);
}

@media (max-width: 900px) {
	.ua-random-gallery-row,
	.ua-random-gallery-row--image-right,
	.ua-random-gallery-row--image-left {
		flex-direction: column;
	}

	.ua-random-gallery-row__image,
	.ua-random-gallery-row__content {
		width: 100%;
		flex-basis: auto;
	}

	/* On mobile, always lead with the image regardless of left/right desktop style. */
	.ua-random-gallery-row .ua-random-gallery-row__image,
	.ua-random-gallery-row--image-right .ua-random-gallery-row__image,
	.ua-random-gallery-row--image-left .ua-random-gallery-row__image {
		order: 1;
		width: min(82vw, 380px);
		max-width: 100%;
		margin-inline: auto;
	}

	.ua-random-gallery-row .ua-random-gallery-row__content,
	.ua-random-gallery-row--image-right .ua-random-gallery-row__content,
	.ua-random-gallery-row--image-left .ua-random-gallery-row__content {
		order: 2;
	}

	.ua-random-gallery-row__image img {
		height: auto;
		max-height: none;
		object-fit: contain;
	}
}

/* ── Polaroid gallery ─────────────────────────────────────────────── */

.ua-polaroid-gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: start;
	gap: 2.5rem;
	padding: 3rem 2rem;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	min-height: 50vh;
}

.ua-polaroid {
	--ua-polaroid-side: 8px;
	background: #fff;
	width: 100%;
	box-sizing: border-box;
	border: 0;
	appearance: none;
	text-align: left;
	font: inherit;
	line-height: 0;
	padding: calc(var(--ua-polaroid-side) * 3) var(--ua-polaroid-side) calc(var(--ua-polaroid-side) * 4);
	box-shadow: 3px 5px 18px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.2);
	position: relative;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	cursor: zoom-in;
}

.ua-polaroid:nth-child(5n + 1) { transform: rotate(-3.5deg); }
.ua-polaroid:nth-child(5n + 2) { transform: rotate(2deg); }
.ua-polaroid:nth-child(5n + 3) { transform: rotate(-1.5deg); }
.ua-polaroid:nth-child(5n + 4) { transform: rotate(3deg); }
.ua-polaroid:nth-child(5n + 5) { transform: rotate(-2.5deg); }

.ua-polaroid:hover {
	transform: rotate(0deg) scale(1.06);
	box-shadow: 6px 10px 28px rgba(0, 0, 0, 0.5);
	z-index: 10;
}


.ua-polaroid:focus,
.ua-polaroid:focus-visible,
.ua-polaroid-lightbox__close:focus,
.ua-polaroid-lightbox__close:focus-visible {
	outline: 3px solid var(--wp--preset--color--secondary);
	outline-offset: 3px;
}

.ua-polaroid-frame {
	display: block;
	position: relative;
	width: 100%;
	padding-top: 133.33%; /* 3:4 portrait */
	overflow: hidden;
}

.ua-polaroid-frame img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

@media (max-width: 980px) {
	.ua-polaroid-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ua-polaroid {
		--ua-polaroid-side: 6px;
		width: min(100%, 300px);
		justify-self: center;
	}
}

@media (max-width: 640px) {
	.ua-polaroid-gallery {
		grid-template-columns: 1fr;
	}

	.ua-polaroid {
		--ua-polaroid-side: 5px;
		width: min(100%, 280px);
		justify-self: center;
	}
}

.ua-polaroid-lightbox {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	background: rgba(10, 8, 6, 0.72);
	z-index: 9999;
}

.ua-polaroid-lightbox.is-open {
	display: flex;
}

.ua-polaroid-lightbox__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	width: 2.25rem;
	height: 2.25rem;
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: #111;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1;
	cursor: pointer;
}

.ua-polaroid--modal {
	width: auto;
	max-height: 90vh;
	max-width: 92vw;
	transform: none !important;
	cursor: default;
	padding: 14px 14px 42px;
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
}

.ua-polaroid--modal:hover {
	transform: none !important;
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
}

.ua-polaroid--modal img {
	width: auto;
	aspect-ratio: auto;
	max-width: calc(92vw - 28px);
	max-height: calc(90vh - 110px);
	height: auto;
	object-fit: contain;
}

body.ua-lightbox-open {
	overflow: hidden;
}

/* ── Global brand application (template parts + page CTAs) ─────── */

.site-header,
.site-footer {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--surface);
	margin-block: 0;
}

.site-header {
	padding-block: 0.3rem;
	z-index: 20;
}

.site-footer {
	padding-block: 0.9rem;
}

.site-header > .wp-block-group,
.site-footer > .wp-block-group {
	box-sizing: border-box;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
}

.site-header > .wp-block-group {
	max-width: var(--wp--style--global--content-size, 760px);
	padding-inline: var(--wp--custom--spacing--gap, 30px) !important;
}

.site-footer > .wp-block-group {
	max-width: var(--ua-page-inner-width);
	padding-inline: var(--wp--custom--spacing--gap, 30px) !important;
}

/* With root padding = 0, has-global-padding adds nothing to constrained content
   blocks. Add the same 30px used by the header/footer patterns so all edges align. */
.entry-header.is-layout-constrained,
.wp-block-post-content.is-layout-constrained {
	padding-inline: var(--wp--custom--spacing--gap, 30px) !important;
}

/* Allow full-width blocks inside post-content to escape the added padding */
.wp-block-post-content.is-layout-constrained > .alignfull {
	margin-inline: calc(var(--wp--custom--spacing--gap, 30px) * -1) !important;
}

.site-content .wp-block-post-content > :not(.wp-block-paragraph) + .wp-block-paragraph {
	margin-top: var(--wp--preset--spacing--medium);
}

:root {
	--ua-page-inner-width: min(100%, calc(var(--wp--style--global--content-size, 760px) - 3rem));
	--ua-cta-height: 3rem;
}

button,
input,
select,
textarea {
	font-family: inherit;
}

.site-header a,
.site-footer a,
.site-header .wp-block-site-title a,
.site-footer .wp-block-site-title a,
.site-header .wp-block-navigation a {
	color: var(--wp--preset--color--surface);
}

.site-header .wp-block-navigation a:hover,
.site-header .wp-block-navigation a:focus,
.site-footer a:hover,
.site-footer a:focus {
	color: var(--wp--preset--color--accent);
	text-decoration: underline;
}

/* Keep body content links readable even if third-party styles set anchors white. */
.site-content .wp-block-post-content a:not(.wp-element-button):not(.wp-block-button__link):not(.ua-class-card__button) {
	color: var(--wp--preset--color--nav-link);
}

.site-content .wp-block-post-content a:not(.wp-element-button):not(.wp-block-button__link):not(.ua-class-card__button):hover,
.site-content .wp-block-post-content a:not(.wp-element-button):not(.wp-block-button__link):not(.ua-class-card__button):focus {
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
}


.site-header .current-menu-item > a,
.site-header .current-menu-item > .wp-block-navigation-item__content,
.site-header .current-menu-ancestor > a,
.site-header .current-menu-ancestor > .wp-block-navigation-item__content,
.site-header .current-page-ancestor > a,
.site-header .current-page-ancestor > .wp-block-navigation-item__content,
.site-header .wp-block-navigation a[aria-current="page"],
.site-header .wp-block-navigation .wp-block-navigation-item__content[aria-current="page"] {
	color: var(--wp--preset--color--accent);
}

@media (min-width: 782px) {
	.site-header > .wp-block-group {
		min-height: 4.9rem;
		align-items: center;
	}

	.site-header .wp-block-navigation__container {
		gap: 0;
		border-right: 1px solid var(--wp--preset--color--accent);
	}

	.site-header .wp-block-navigation-item {
		border-left: 1px solid var(--wp--preset--color--accent);
	}

	.site-header .wp-block-navigation-item__content {
		padding: 0.45rem 1rem;
		text-decoration: none;
	}
}

/* Generic page CTA defaults */
.wp-element-button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: var(--ua-cta-height);
	padding: 0 1.2rem;
	line-height: 1.2;
	background: var(--wp--preset--color--primary);
	border: 2px solid var(--wp--preset--color--primary);
	color: var(--wp--preset--color--surface);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	letter-spacing: 0.015em;
	border-radius: 0;
}

.wp-element-button:hover,
.wp-element-button:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus {
	background: color-mix(in srgb, var(--wp--preset--color--primary) 85%, black);
	border-color: color-mix(in srgb, var(--wp--preset--color--primary) 85%, black);
	color: var(--wp--preset--color--surface);
}

/* Secondary CTA style in editor: add class 'is-style-outline' */
.wp-block-button.is-style-outline .wp-block-button__link {
	background: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--ink);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:focus {
	background: color-mix(in srgb, var(--wp--preset--color--accent) 85%, black);
	border-color: color-mix(in srgb, var(--wp--preset--color--accent) 85%, black);
	color: var(--wp--preset--color--ink);
}

/* Reusable page template for Services / Courses / Day Classes */
.ua-service-page__hero {
	padding: 0;
}

.site-content {
	box-sizing: border-box;
	width: 100%;
}

.site-content .wp-block-post-title {
	font-size: var(--wp--preset--font-size--max-48);
	line-height: 1.1;
	padding-top: clamp(0.9rem, 2vw, 1.6rem);
}

.ua-service-page__hero .wp-block-post-title {
	margin: 0;
	font-size: var(--wp--preset--font-size--max-48);
	line-height: 1.1;
	padding-top: clamp(0.9rem, 2vw, 1.6rem);
}

.ua-service-page__content {
	padding: 0;
}

.ua-service-page__content > *:first-child {
	margin-top: 0;
}

.ua-service-page__content > *:last-child {
	margin-bottom: 0;
}

/* ── Classes & Courses listing component ────────────────────────── */

.ua-classes-component {
	--ua-block-radius: 0;
	--ua-block-border: 1px solid color-mix(in srgb, var(--wp--preset--color--primary) 14%, white);
	--ua-block-shadow: 0 14px 34px rgba(17, 24, 39, 0.1);
	--ua-block-shadow-hover: 0 18px 40px rgba(17, 24, 39, 0.16);
	--ua-soft-surface: color-mix(in srgb, var(--wp--preset--color--surface) 92%, var(--wp--preset--color--primary) 8%);
	display: grid;
	gap: 2.4rem;
	margin-block: 0 3rem;
	padding-top: 2rem;
}

.ua-class-listing {
	display: grid;
	gap: 1.35rem;
	padding: 0 0 2rem;
	border-radius: var(--ua-block-radius);
	border: 0;
	background: transparent;
	box-shadow: none;
}

.ua-class-listing > h2 {
	margin: 0;
	font-size: var(--wp--preset--font-size--max-36);
	padding: 0 0 0.8rem;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	font-weight: 600;
	border-bottom: 2px solid color-mix(in srgb, var(--wp--preset--color--primary) 24%, white);
}

.ua-class-empty-state {
	display: grid;
	justify-items: start;
	gap: 0.9rem;
	padding: clamp(1.4rem, 3vw, 2.4rem);
	border: 2px solid color-mix(in srgb, var(--wp--preset--color--primary) 24%, white);
	background: color-mix(in srgb, var(--wp--preset--color--surface) 94%, var(--wp--preset--color--primary) 6%);
	max-width: 44rem;
}

.ua-class-empty-state__eyebrow {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--wp--preset--color--text-main) 68%, white);
}

.ua-class-empty-state__title {
	margin: 0;
	font-size: clamp(1.8rem, 3vw, 2.4rem);
	line-height: 1.1;
	color: var(--wp--preset--color--text-main);
}

.ua-class-empty-state__body {
	margin: 0;
	max-width: 34rem;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.65;
	color: color-mix(in srgb, var(--wp--preset--color--text-main) 78%, white);
}

.ua-class-empty-state__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.78rem 1rem;
	border: 2px solid var(--wp--preset--color--accent);
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--surface) !important;
	text-decoration: none;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: 0.015em;
	transition: background-color 160ms ease, border-color 160ms ease;
}

.ua-class-empty-state__button:hover,
.ua-class-empty-state__button:focus {
	background: color-mix(in srgb, var(--wp--preset--color--accent) 85%, black);
	border-color: color-mix(in srgb, var(--wp--preset--color--accent) 85%, black);
	color: var(--wp--preset--color--surface) !important;
}

.ua-class-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.3rem;
	align-items: stretch;
}

.ua-class-grid article.ua-class-card {
	margin: 0;
	flex: 0 0 calc((100% - 2 * 1.3rem) / 3);
}

@media (max-width: 980px) {
	.ua-class-grid article.ua-class-card {
		flex: 0 0 calc((100% - 1.3rem) / 2);
	}
}

/* ── Card shell ─────────────────────────────────────────────────── */

.ua-class-card {
	background: var(--wp--preset--color--surface);
	border-radius: var(--ua-block-radius);
	border: 2px solid color-mix(in srgb, var(--wp--preset--color--primary) 28%, white);
	box-shadow: none;
	padding: 1.2rem 1.1rem 0.75rem;
	margin: 0;
	display: flex;
	flex-direction: column;
	transition: border-color 200ms ease, background-color 200ms ease;
}

.ua-class-card[data-post-type="ua_day_class"] {
	border-color: color-mix(in srgb, var(--wp--preset--color--secondary) 32%, white);
}

.ua-class-card[data-post-type="ua_private_tuition"] {
	border-color: color-mix(in srgb, var(--wp--preset--color--accent) 32%, white);
}

.ua-class-card:hover {
	box-shadow: none;
	transform: none;
	border-color: color-mix(in srgb, var(--wp--preset--color--primary) 46%, white);
	background: color-mix(in srgb, var(--wp--preset--color--surface) 95%, var(--wp--preset--color--primary) 5%);
}

.ua-class-card[data-post-type="ua_day_class"]:hover {
	border-color: color-mix(in srgb, var(--wp--preset--color--secondary) 48%, white);
	background: color-mix(in srgb, var(--wp--preset--color--surface) 95%, var(--wp--preset--color--secondary) 5%);
}

.ua-class-card[data-post-type="ua_private_tuition"]:hover {
	border-color: color-mix(in srgb, var(--wp--preset--color--accent) 48%, white);
	background: color-mix(in srgb, var(--wp--preset--color--surface) 95%, var(--wp--preset--color--accent) 5%);
}

/* ── Card header ────────────────────────────────────────────────── */

.ua-class-card__header {
	display: grid;
	gap: 0.35rem;
	margin-bottom: 0.8rem;
}

.ua-class-card__pill {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 0.38em 0.6em;
	border-radius: 0;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-align: center;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--surface);
	margin-bottom: 0.4rem;
}

[data-post-type="ua_day_class"] .ua-class-card__pill {
	background: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--surface);
}

[data-post-type="ua_private_tuition"] .ua-class-card__pill {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--surface);
}

.ua-class-card__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	line-height: 1.2;
	color: var(--wp--preset--color--text-main);
}

.ua-class-card__start-time {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	line-height: 1.35;
	color: var(--wp--preset--color--text-main);
}

/* ── Meta facts ─────────────────────────────────────────────────── */

.ua-class-card__meta {
	list-style: none;
	padding: 0.8rem 0 0;
	margin: 0 0 0.65rem;
	display: grid;
	gap: 0.45rem;
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--primary) 18%, white);
}

.ua-class-card__meta-item {
	font-size: var(--wp--preset--font-size--x-small);
	color: color-mix(in srgb, var(--wp--preset--color--text-main) 75%, white);
	line-height: 1.35;
	padding: 0.42rem 0;
	background: transparent;
	border: 0;
	border-bottom: 1px dashed color-mix(in srgb, var(--wp--preset--color--primary) 18%, white);
	border-radius: 0;
}

.ua-class-card__meta-label {
	font-weight: 600;
	color: inherit;
	margin-right: 0.2em;
}


.ua-class-card__meta-item--places {
	margin-top: 0.1rem;
	border-top: 0;
	border-bottom: 0;
	color: var(--wp--preset--color--text-main);
	font-weight: 500;
}

.ua-class-card__meta-item--urgent {
	color: #b45309;
	font-weight: 500;
}

.ua-class-card__meta-item--full {
	color: #991b1b;
	font-weight: 500;
}

/* ── Card body ──────────────────────────────────────────────────── */

.ua-class-card__content {
	margin-bottom: 0.9rem;
	padding-top: 0.2rem;
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.6;
	color: color-mix(in srgb, var(--wp--preset--color--text-main) 75%, white);
}

.ua-class-card__content > :first-child { margin-top: 0; }
.ua-class-card__content > :last-child  { margin-bottom: 0; }

/* ── Card footer / CTA ──────────────────────────────────────────── */

.ua-class-card__footer {
	margin-top: auto;
	padding-top: 0.5rem;
}

/* Safari fallback: avoid flex/auto-margin edge cases in stretched grid items */
@supports (-webkit-touch-callout: none) {
	.ua-class-card {
		display: grid;
		grid-template-rows: auto auto minmax(0, 1fr) auto;
		row-gap: 0.2rem;
	}

	.ua-class-card__footer {
		margin-top: 0;
	}
}

.ua-class-card__button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 0.78rem 0.95rem;
	border-radius: 0;
	border: 2px solid var(--wp--preset--color--primary);
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--surface) !important;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	text-decoration: none;
	letter-spacing: 0.015em;
	transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
	box-shadow: none;
}

[data-post-type="ua_day_class"] .ua-class-card__button {
	border-color: var(--wp--preset--color--secondary);
	background: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--surface) !important;
	box-shadow: none;
}

[data-post-type="ua_private_tuition"] .ua-class-card__button {
	border-color: var(--wp--preset--color--accent);
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--surface) !important;
	box-shadow: none;
}

.ua-class-card__button:hover,
.ua-class-card__button:focus {
	background: color-mix(in srgb, var(--wp--preset--color--primary) 85%, black);
	color: var(--wp--preset--color--surface) !important;
	transform: none;
	box-shadow: none;
}

[data-post-type="ua_day_class"] .ua-class-card__button:hover,
[data-post-type="ua_day_class"] .ua-class-card__button:focus {
	background: color-mix(in srgb, var(--wp--preset--color--secondary) 85%, black);
	border-color: color-mix(in srgb, var(--wp--preset--color--secondary) 85%, black);
	color: var(--wp--preset--color--surface) !important;
}

[data-post-type="ua_private_tuition"] .ua-class-card__button:hover,
[data-post-type="ua_private_tuition"] .ua-class-card__button:focus {
	background: color-mix(in srgb, var(--wp--preset--color--accent) 85%, black);
	border-color: color-mix(in srgb, var(--wp--preset--color--accent) 85%, black);
	color: var(--wp--preset--color--surface) !important;
}

.ua-class-card__button--disabled {
	background: #e5e7eb;
	color: #6b7280 !important;
	box-shadow: none;
	cursor: default;
	pointer-events: none;
}

/* ── Responsive ─────────────────────────────────────────────────── */

@media (max-width: 640px) {
	.ua-class-listing {
		padding: 0.95rem;
	}

	.ua-class-grid {
		gap: 0.95rem;
	}

	.ua-class-grid article.ua-class-card {
		flex: 0 0 100%;
	}

	.ua-class-card {
		padding: 1rem 0.9rem 0.9rem;
	}
}

.ua-booking-form {
	box-sizing: border-box;
	max-width: var(--wp--style--global--content-size, 760px);
	margin-top: 1.4rem;
	margin-left: auto;
	margin-right: auto;
	padding: 1.25rem;
	border: var(--ua-block-border);
	border-radius: var(--ua-block-radius);
	background: var(--ua-soft-surface);
	box-shadow: none;
}

.ua-newsletter-signup {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--ua-page-inner-width) !important;
	margin-left: auto;
	margin-right: auto;
	padding-inline: 0;
}

.ua-booking-form h2 {
	margin-top: 0;
	margin-bottom: 0.55rem;
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.15;
}

.ua-booking-form__summary {
	display: grid;
	gap: 0.2rem;
	margin: 0 0 1rem;
	font-size: var(--wp--preset--font-size--x-small);
}

.ua-booking-form__summary span {
	color: color-mix(in srgb, var(--wp--preset--color--text-main) 75%, white);
}

.ua-booking-form form {
	display: grid;
	gap: 0.9rem;
}

.ua-booking-form label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
	color: var(--wp--preset--color--primary);
}

.ua-booking-form input,
.ua-booking-form textarea {
	width: 100%;
	padding: 0.8rem 0.9rem;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--primary) 18%, white);
	border-radius: 0;
	background: var(--wp--preset--color--surface);
	box-sizing: border-box;
	font: inherit;
}

.ua-booking-form input[type='checkbox'],
.ua-booking-form input[type='radio'] {
	width: auto;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	accent-color: var(--wp--preset--color--primary);
}

.ua-booking-form .ua-booking-form__newsletter-choice {
	display: grid;
	gap: 0.45rem;
	margin: 0.25rem 0 0;
	padding: 1rem 1.1rem;
	border: 1px solid #e2cfcd;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--accent) 40%, white);
	border-radius: 4px;
	background: #f8f3f2;
	background: color-mix(in srgb, var(--wp--preset--color--accent) 10%, white);
}

.ua-booking-form .ua-booking-form__newsletter-choice legend {
	margin: 0 0 0.35rem;
	padding: 0;
	font-weight: 700;
	color: #926b67;
	color: color-mix(in srgb, var(--wp--preset--color--accent) 80%, black);
}

.ua-booking-form .ua-booking-form__newsletter-choice-help {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-small);
	color: color-mix(in srgb, var(--wp--preset--color--text-main) 78%, white);
}

.ua-booking-form .ua-booking-form__choice-option {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.7rem 0.75rem;
	margin: 0;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--primary) 16%, white);
	background: transparent;
	cursor: pointer;
	font-weight: 500;
	color: var(--wp--preset--color--text-main);
	transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.ua-booking-form .ua-booking-form__choice-option:hover {
	border-color: color-mix(in srgb, var(--wp--preset--color--primary) 32%, white);
	background: transparent;
}

.ua-booking-form .ua-booking-form__choice-option:focus-within {
	border-color: color-mix(in srgb, var(--wp--preset--color--primary) 40%, white);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--primary) 18%, transparent);
}

.ua-booking-form .ua-booking-form__choice-option input[type='radio'] {
	margin: 0;
}

.ua-booking-form textarea {
	resize: vertical;
	min-height: 7rem;
}

.ua-booking-form__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: var(--ua-cta-height);
	padding: 0 1.15rem;
	line-height: 1.2;
	border: 0;
	border-radius: 0;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--surface);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	letter-spacing: 0.015em;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(44, 70, 88, 0.18);
}

.ua-booking-form__button:hover,
.ua-booking-form__button:focus {
	background: color-mix(in srgb, var(--wp--preset--color--primary) 86%, black);
}

.ua-booking-form__button--secondary {
	background: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--surface);
	border: 0;
	box-shadow: none;
	text-decoration: none;
}

.ua-booking-form__button--secondary:hover,
.ua-booking-form__button--secondary:focus {
	background: color-mix(in srgb, var(--wp--preset--color--secondary) 86%, black);
	color: var(--wp--preset--color--surface);
	text-decoration: none;
}

.ua-booking-form__full-state {
	margin: 0.5rem 0 1rem;
	padding: 1rem 1.25rem;
	border-left: 4px solid #991b1b;
	background: #fef2f2;
}

.ua-booking-form__full-state-heading {
	margin: 0 0 0.35rem;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	line-height: 1.2;
	color: #991b1b;
}

.ua-booking-form__full-state-body {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-small);
	color: #7f1d1d;
}

.ua-booking-form__waitlist-success,
.ua-booking-form__waitlist-already,
.ua-booking-form__waitlist-error {
	margin: 0.5rem 0 0.75rem;
	padding: 0.65rem 0.8rem;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	border-left: 3px solid transparent;
}

.ua-booking-form__waitlist-success {
	color: #166534;
	background: #ecfdf3;
	border-left-color: #16a34a;
}

.ua-booking-form__waitlist-already {
	color: #92400e;
	background: #fffbeb;
	border-left-color: #d97706;
}

.ua-booking-form__waitlist-error {
	color: #991b1b;
	background: #fef2f2;
	border-left-color: #dc2626;
}

.ua-booking-form__full-state [id$='-panel'] {
	margin-top: 0.75rem;
}

.ua-booking-form__low-capacity {
	margin: 0 0 1rem;
	padding: 0.75rem 1rem;
	border-left: 4px solid #b45309;
	background: #fffbeb;
	font-weight: 600;
	font-size: var(--wp--preset--font-size--x-small);
	color: #92400e;
}

.ua-booking-form--unavailable {
	border-left: 4px solid #d1d5db;
	padding-left: 1.25rem;
	color: #4b5563;
}

.ua-booking-form--unavailable h2 {
	color: #374151;
}

.ua-booking-notice {
	margin-bottom: 1rem;
	padding: 0.85rem 1rem;
	border-radius: 0;
	font-weight: 500;
}

.ua-booking-notice p {
	margin: 0;
}

.ua-booking-notice--success {
	background: #ecfdf3;
	color: #166534;
	border: 1px solid #bbf7d0;
}

.ua-booking-notice--error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.ua-booking-success-state {
	padding: 1rem 1.1rem;
	border-radius: 0;
	border: 1px solid #bbf7d0;
	background: #f0fdf4;
	color: #14532d;
}

.ua-booking-success-state h3 {
	margin: 0 0 0.45rem;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.2;
}

.ua-booking-success-state p {
	margin: 0 0 0.55rem;
}

.ua-booking-success-state__list {
	margin: 0;
	padding-left: 1.1rem;
}

.ua-booking-success-state__list li {
	margin: 0.2rem 0;
}

/* Final override: keep newsletter choices aligned even when broader label/input rules apply. */
.ua-booking-form fieldset.ua-booking-form__newsletter-choice {
	display: grid;
	gap: 0.5rem;
	margin: 0.25rem 0 0;
	padding: 1rem 1.1rem;
	border: 1px solid #e2cfcd;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--accent) 40%, white);
	border-radius: 4px;
	background: #f8f3f2;
	background: color-mix(in srgb, var(--wp--preset--color--accent) 10%, white);
}

.ua-booking-form fieldset.ua-booking-form__newsletter-choice legend {
	padding: 0;
	margin: 0 0 0.25rem;
	font-weight: 700;
	color: #926b67;
	color: color-mix(in srgb, var(--wp--preset--color--accent) 80%, black);
}

.ua-booking-form fieldset.ua-booking-form__newsletter-choice .ua-booking-form__newsletter-choice-help {
	margin: 0 0 0.25rem;
	font-size: var(--wp--preset--font-size--x-small);
	color: color-mix(in srgb, var(--wp--preset--color--text-main) 78%, white);
}

.ua-booking-form label.ua-booking-form__choice-option {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--text-main);
	font-weight: 500;
	cursor: pointer;
}

.ua-booking-form label.ua-booking-form__choice-option:hover,
.ua-booking-form label.ua-booking-form__choice-option:focus-within {
	border-color: transparent;
	background: transparent;
}

.ua-booking-form label.ua-booking-form__choice-option > input[type='radio'] {
	width: auto !important;
	max-width: none;
	margin: 0;
	padding: 0;
	flex: 0 0 auto;
}

.ua-booking-form label.ua-booking-form__choice-option > span {
	flex: 1;
	line-height: 1.35;
}

.homepage-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

.homepage-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 0;
	pointer-events: none;
}

.homepage-hero .homepage-hero__branding {
	position: relative;
	z-index: 1;
}

.homepage-hero .homepage-hero__logo {
	display: flex !important;
	justify-content: center;
	margin: 0;
	width: 100% !important;
	max-width: var(--ua-logo-max-width, 560px) !important;
}

.homepage-hero .homepage-hero__branding {
	display: grid;
	justify-items: center;
	gap: 0.85rem;
}

.homepage-hero .homepage-hero__logo img {
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
}

.homepage-hero .homepage-hero__tagline {
	margin: 0;
	max-width: min(92vw, 48rem);
	text-align: center;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.38;
	font-weight: 500;
	color: color-mix(in srgb, var(--wp--preset--color--surface) 92%, var(--wp--preset--color--accent) 8%);
	text-wrap: balance;
}

.ua-new-offerings-notice {
	margin: 0;
	padding: 0;
	background: var(--wp--preset--color--accent);
}

.site-header + .ua-new-offerings-notice {
	margin-top: 0;
}

.ua-new-offerings-notice__content {
	display: grid;
	gap: 0.8rem;
	align-items: center;
	box-sizing: border-box;
	max-width: var(--wp--style--global--content-size, 760px);
	margin: 0 auto;
	padding: 0.5rem var(--wp--custom--spacing--gap, 30px);
}

.ua-new-offerings-notice__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--medium);
	letter-spacing: 0.03em;
	line-height: 1.2;
}

.ua-new-offerings-notice__title.is-multiline {
	text-align: center;
}

.ua-new-offerings-notice__button {
	justify-self: start;
	text-decoration: none;
}

@media (max-width: 1200px) {
	.ua-new-offerings-notice__content {
		justify-items: center;
	}

	.ua-new-offerings-notice__title {
		text-align: center;
	}

	.ua-new-offerings-notice__button {
		justify-self: center;
	}
}

@media (min-width: 900px) {
	.ua-new-offerings-notice__content {
		grid-template-columns: 1fr auto;
		column-gap: 1.25rem;
	}

	.ua-new-offerings-notice__title {
		grid-column: 1;
		align-self: center;
	}

	.ua-new-offerings-notice__button {
		grid-column: 2;
		grid-row: 1;
		align-self: center;
	}
}

/* ── Offering type cards (offering-types pattern) ───────────────── */

.ua-offering-price-card-block {
	max-width: none;
	margin-inline: 0;
	height: 100%;
}

.ua-offering-cards {
	gap: clamp(0.8rem, 2vw, 1.25rem) !important;
	align-items: stretch !important;
}

.ua-offering-cards > .wp-block-column {
	display: flex !important;
}

.ua-offering-cards > .wp-block-column > .ua-offering-price-card-block {
	display: flex;
	width: 100%;
}

/* Columns stretch to equal height by default; make each column a flex column */
.ua-offering-price-card-block > .ua-offering-card {
	display: flex !important;
	flex-direction: column;
	border: 2px solid color-mix(in srgb, var(--wp--preset--color--primary) 28%, white);
	padding: 1.5rem 1.1rem !important;
	text-align: center;
	height: 100%;
	flex: 1 1 auto;
}

.ua-offering-price-card-block > .ua-offering-card--day-classes {
	border-color: color-mix(in srgb, var(--wp--preset--color--secondary) 32%, white);
}

.ua-offering-price-card-block > .ua-offering-card--private-tuition {
	border-color: color-mix(in srgb, var(--wp--preset--color--accent) 32%, white);
}

/* Feature list — no bullets */
.ua-offering-price-card-block > .ua-offering-card .wp-block-list {
	list-style: none !important;
	padding-left: 0 !important;
}

.ua-offering-price-card-block > .ua-offering-card .wp-block-list li {
	padding-left: 0 !important;
}

.ua-offering-price-card-block > .ua-offering-card .wp-block-list li + li {
	margin-top: 1.35rem;
	position: relative;
}

.ua-offering-price-card-block > .ua-offering-card .wp-block-list li + li::before {
	content: "\2702";
	position: absolute;
	left: 50%;
	top: -0.95rem;
	transform: translateX(-50%);
	font-size: 0.72rem;
	line-height: 1;
	color: color-mix(in srgb, var(--wp--preset--color--foreground) 48%, white);
	opacity: 0.8;
}

/* Price heading — large and bold without inline styles in the block markup */
.ua-offering-price-card-block > .ua-offering-card .wp-block-heading {
	font-size: 3rem;
	font-weight: 700;
	margin-bottom: 0.1rem;
}

/* "per day / per course / per hour" label beneath the price */
.ua-offering-price-card-block > .ua-offering-card .ua-price-label {
	display: inline-block;
	font-size: 0.8rem;
	color: color-mix(in srgb, var(--wp--preset--color--foreground) 72%, white);
	background: color-mix(in srgb, var(--wp--preset--color--foreground) 8%, white);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--foreground) 16%, white);
	border-radius: 999px;
	padding: 0.22rem 0.7rem;
	margin-top: 0 !important;
	margin-bottom: 1rem !important;
	text-transform: lowercase;
	letter-spacing: 0.06em;
}

/* Image: constrain responsively without breaking the circle shape */
.ua-offering-price-card-block > .ua-offering-card .wp-block-image {
	margin-block: 0 1rem;
	margin-inline: auto;
	display: flex;
	justify-content: center;
}

.ua-offering-price-card-block > .ua-offering-card .wp-block-image img {
	width: 100%;
	max-width: 180px;
	height: auto;
}

/* Keep list near content and pin CTA to card bottom for alignment */
.ua-offering-price-card-block > .ua-offering-card .wp-block-list {
	margin-top: 0.9rem !important;
	margin-bottom: 0 !important;
}

.ua-offering-price-card-block > .ua-offering-card .ua-offering-card__cta {
	margin-top: auto;
	padding-top: 1.25rem;
}

/* Button colour per card type */
.ua-offering-card--day-classes .wp-block-button__link {
	background: var(--wp--preset--color--secondary);
	border-color: var(--wp--preset--color--secondary);
}
.ua-offering-card--day-classes .wp-block-button__link:hover,
.ua-offering-card--day-classes .wp-block-button__link:focus {
	background: color-mix(in srgb, var(--wp--preset--color--secondary) 85%, black);
	border-color: color-mix(in srgb, var(--wp--preset--color--secondary) 85%, black);
}

.ua-offering-card--private-tuition .wp-block-button__link {
	background: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
}
.ua-offering-card--private-tuition .wp-block-button__link:hover,
.ua-offering-card--private-tuition .wp-block-button__link:focus {
	background: color-mix(in srgb, var(--wp--preset--color--accent) 85%, black);
	border-color: color-mix(in srgb, var(--wp--preset--color--accent) 85%, black);
}

@media (max-width: 640px) {
	.ua-offering-price-card-block > .ua-offering-card {
		padding: 1.25rem 1rem !important;
	}

	.ua-offering-price-card-block > .ua-offering-card .wp-block-image {
		margin-bottom: 0.5rem;
		margin-left: auto !important;
		margin-right: auto !important;
	}
}

/* Restore default box model for Newfold/Bluehost plugin containers
   which expect content-box sizing from the parent theme's global reset */
.nfd-container,
.nfd-container * {
	box-sizing: content-box;
}

/* WonderBlocks pricing cards: responsive images */
.nfd-rounded .wp-block-image {
	max-width: 100%;
}

.nfd-rounded .wp-block-image img {
	width: 100%;
	height: auto;
	max-width: 100%;
}

@media (max-width: 781px) {
	.nfd-rounded .wp-block-image {
		max-width: 50%;
		margin-left: auto !important;
		margin-right: auto !important;
	}
}
