/**
 * Masterclass detail page (partials/content-masterclass.php).
 *
 * Standalone stylesheet, loaded only on single masterclass pages by
 * WP_Theme_Masterclasses::single_assets(). Card styles for the
 * "More masterclasses" row come from acf-blocks/masterclasses/style.css.
 * Reuses theme typography, buttons and --lh_* colour variables.
 */

/* ---------- Hero ---------- */
.masterclass-back,
.masterclass-back:visited {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 32px;
	color: var(--lh_dark_text, #3c3834);
	text-decoration: none;
}

.masterclass-back:hover,
.masterclass-back:focus-visible {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.masterclass-detail-columns {
	align-items: center;
}

.masterclass-detail-kicker {
	margin-bottom: 10px;
	color: var(--lh_pink, #a65c5c);
	letter-spacing: 0.06em;
}

.masterclass-detail-title {
	margin: 0 0 12px;
}

.masterclass-detail-date {
	margin-bottom: 28px;
}

/* Notice: past or sold out */
.masterclass-notice {
	margin: 0 0 28px;
	padding: 14px 18px;
	border-left: 3px solid var(--lh_pink, #a65c5c);
	background-color: var(--lh_light_brown, #efede7);
	font-size: 16px;
}

.masterclass-notice a {
	margin-left: 4px;
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Key details */
.masterclass-facts {
	max-width: 520px;
	margin: 0 0 28px;
	padding: 0;
	border-bottom: 1px solid rgba(60, 56, 52, 0.2);
}

.masterclass-fact {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	gap: 16px;
	padding: 12px 0;
	border-top: 1px solid rgba(60, 56, 52, 0.2);
}

.masterclass-fact dt {
	margin: 0;
	font-family: "Gill Sans", arial, sans-serif;
	font-weight: 500;
	font-size: 14px;
	line-height: 1.6;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--lh_dark_text, #3c3834);
}

.masterclass-fact dd {
	margin: 0;
	font-size: 16px;
	line-height: 1.5;
}

.masterclass-fact dd a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.masterclass-detail-content .masterclass-booking-buttons {
	justify-content: flex-start;
}

/* Image */
.masterclass-detail-image {
	position: relative;
	overflow: hidden;
}

.masterclass-detail-image figure {
	aspect-ratio: 1 / 1;
	width: 100%;
	height: 100%;
	margin: 0;
	line-height: 0;
}

.masterclass-detail-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* ---------- Description ---------- */
.masterclass-detail-body {
	padding: 40px 0 80px;
}

.masterclass-detail-book-again {
	margin-top: 40px;
	padding-top: 32px;
	border-top: 1px solid rgba(60, 56, 52, 0.2);
}

.masterclass-detail-book-again .masterclass-booking-buttons {
	justify-content: center;
}

/* ---------- More masterclasses ---------- */
.masterclass-more {
	padding: 80px 0;
	background-color: var(--lh_light_brown, #efede7);
}

.masterclass-more-title {
	margin: 0 0 40px;
	text-align: center;
}

.masterclass-more-all {
	display: flex;
	justify-content: center;
	margin-top: 48px;
}

/* ---------- Mobile: image above the details ---------- */
@media (max-width: 767px) {
	.masterclass-detail-image {
		order: -1;
	}

	.masterclass-back {
		margin-bottom: 20px;
	}

	.masterclass-fact {
		grid-template-columns: 96px minmax(0, 1fr);
		gap: 12px;
	}

	.masterclass-more {
		padding: 56px 0;
	}
}
