/* ==========================================================================
   Workshop landing page (page-workshop.php)
   Sections reuse the Flexible components in flexible.css; this file adds
   what's new: split hero, sticky booking bar, timetable, practical details,
   booking box and the paired-masterclass promo. Same tokens, no new colours
   or fonts.
   ========================================================================== */

.djp-ws-page { --ws-radius: 4px; --ws-error: #a4262c; }

/* --------------------------------------------------------------------------
   Hero: copy on deep purple (left), Jo's photo (right)
   -------------------------------------------------------------------------- */

.djp-ws-hero {
	display: flex;
	flex-direction: column;
	background: var(--flex-purple-dark);
	color: #fff;
}

.djp-ws-hero__copy {
	display: flex;
	align-items: center;
	padding: calc(var(--site-header-h, 96px) + 32px) 24px 64px;
}
.djp-ws-hero__inner { width: 100%; max-width: 640px; }

.djp-ws-hero__eyebrow {
	margin: 0 0 16px;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 3px;
	text-transform: uppercase;
}
.djp-ws-hero__title {
	margin: 0;
	color: #fff;
	font-size: 44px;
	font-weight: 300;
	line-height: 1.08;
}
.djp-ws-hero__sub {
	margin: 22px 0 0;
	color: #fff;
	font-size: 21px;
	font-weight: 300;
	line-height: 1.4;
}
.djp-ws-hero__facts {
	margin: 32px 0 0;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, .25);
	color: var(--flex-purple-soft);
	font-size: 16px;
	line-height: 1.7;
}
.djp-ws-hero__facts span { white-space: nowrap; }
.djp-ws-hero__facts .woocommerce-Price-amount { color: inherit; }
.djp-ws-hero__actions { margin-top: 32px; }

.djp-ws-btn--lg { padding: 20px 32px; font-size: 14px; letter-spacing: 2px; }

.djp-ws-hero__media {
	position: relative;
	min-height: 380px;
	overflow: hidden;
	background: var(--flex-purple-dark);
}
.djp-ws-hero__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 30%;
}
/* Fades the photo into the header so the menu stays legible over it. */
.djp-ws-hero__media::after {
	content: '';
	position: absolute;
	inset: 0 0 auto;
	height: 200px;
	background: linear-gradient(180deg, rgba(50, 35, 74, .75) 0%, rgba(50, 35, 74, 0) 100%);
}

/* --------------------------------------------------------------------------
   Sticky booking bar: slides in once the hero has scrolled away
   (js/workshop-booking.js), sits under the header when that's showing.
   -------------------------------------------------------------------------- */

.djp-ws-sticky {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 900;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	padding: 12px 24px;
	background: var(--flex-purple);
	box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
	color: #fff;
	font-size: 15px;
	transform: translateY(-100%);
	visibility: hidden;
	transition: transform .35s cubic-bezier(.2, .7, .2, 1), top .35s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .35s;
}
.djp-ws-sticky.is-visible {
	transform: none;
	visibility: visible;
	transition: transform .35s cubic-bezier(.2, .7, .2, 1), top .35s cubic-bezier(.2, .7, .2, 1);
}
/* When the header slides back in on scroll up, the bar moves below it. */
body:has(header.site-header.headroom--pinned.headroom--not-top) .djp-ws-sticky { top: var(--site-header-h, 96px); }

.djp-ws-sticky__info {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 28px;
	min-width: 0;
}
.djp-ws-sticky__info strong { font-weight: 600; }
.djp-ws-sticky__info span { font-weight: 300; }
.djp-ws-sticky__info .woocommerce-Price-amount { color: inherit; }
.djp-ws-sticky__info .djp-ws-sticky__tag { color: var(--flex-purple-soft); font-weight: 600; }
.djp-ws-sticky .flex-btn { flex: 0 0 auto; }

@media (max-width: 767px) {
	.djp-ws-sticky { padding: 10px 16px; font-size: 14px; }
	.djp-ws-sticky__dates,
	.djp-ws-sticky__tag { display: none; }
	.djp-ws-sticky__info { gap: 0 14px; }
}

/* --------------------------------------------------------------------------
   Summary
   -------------------------------------------------------------------------- */

.djp-ws-summary__row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px 72px;
}
.djp-ws-summary__head .flex-heading { margin-bottom: 0; }
.djp-ws-summary__body { font-size: 17px; }
.djp-ws-summary__body > p:first-child {
	color: var(--flex-text);
	font-size: 21px;
	line-height: 1.6;
}
/* The "quote" button in the editor marks the purple highlighted line. */
.djp-ws-summary__body blockquote {
	margin: 0 0 22px;
	padding: 0;
	border: 0;
	font-size: inherit;
}
.djp-ws-summary__body blockquote p { color: var(--flex-purple); font-weight: 400; }

/* --------------------------------------------------------------------------
   Outcomes (numbered list) and audience (chips)
   -------------------------------------------------------------------------- */

.djp-ws-outcomes .flex-heading { margin-bottom: 24px; }
.djp-ws-outcomes .flex-numbered-list__mid .djp-ws-outcome {
	color: var(--flex-text);
	font-size: 18px;
	line-height: 1.55;
}
.djp-ws-outcomes .flex-numbered-list__row { align-items: baseline; padding: 26px 0; }
.djp-ws-outcome strong { color: var(--flex-purple); font-weight: 600; }

.djp-ws-audience { background: var(--flex-purple-dark); color: #fff; }
.djp-ws-audience .flex-eyebrow { color: var(--flex-purple-soft); }
.djp-ws-audience .flex-heading { color: #fff; }
.djp-ws-audience__list {
	max-width: 900px;
	margin: 0;
	color: #ebe5f0;
	font-size: 19px;
	font-weight: 300;
	line-height: 1.8;
}

/* --------------------------------------------------------------------------
   How the day runs
   -------------------------------------------------------------------------- */

.djp-ws-schedule .flex-heading { margin-bottom: 12px; }
.djp-ws-schedule__intro { max-width: 760px; margin: 0 0 40px; color: var(--flex-muted); font-size: 18px; }
.djp-ws-schedule__parts {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.djp-ws-schedule__part { padding-top: 20px; border-top: 3px solid var(--flex-purple); }
.djp-ws-schedule__when {
	margin: 0;
	color: var(--flex-purple);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
}
.djp-ws-schedule__part h3 { margin: 10px 0 8px; color: var(--flex-text); font-size: 21px; font-weight: 600; line-height: 1.3; }
.djp-ws-schedule__part p:not(.djp-ws-schedule__when) { margin: 0; color: var(--flex-muted); font-size: 15.5px; line-height: 1.65; }
.djp-ws-schedule__note { max-width: 860px; margin: 32px 0 0; color: var(--flex-muted); font-size: 15.5px; }

/* --------------------------------------------------------------------------
   Also from Dr Jo (paired masterclass)
   -------------------------------------------------------------------------- */

.djp-ws-next { background: var(--flex-chip); }
.djp-ws-next__row { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.djp-ws-next__copy { max-width: 760px; }
.djp-ws-next__copy .flex-richtext p,
.djp-ws-next__when { color: var(--flex-text); font-size: 17px; }
.djp-ws-next__when { margin: 16px 0 0; }
.djp-ws-next__btn { flex: 0 0 auto; color: var(--flex-purple); }

/* --------------------------------------------------------------------------
   Practical details + booking
   -------------------------------------------------------------------------- */

.djp-ws-book-section { scroll-margin-top: 24px; }

.djp-ws-book-section__row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 48px;
	align-items: start;
}

.djp-ws-details__list { margin: 8px 0 0; }
.djp-ws-details__list > div {
	display: grid;
	grid-template-columns: 110px 1fr;
	gap: 16px;
	padding: 18px 0;
	border-top: 1px solid var(--flex-line);
}
.djp-ws-details__list > div:last-child { border-bottom: 1px solid var(--flex-line); }
.djp-ws-details__list dt {
	color: var(--flex-purple);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 2px;
	line-height: 1.9;
	text-transform: uppercase;
}
.djp-ws-details__list dd { margin: 0; color: var(--flex-text); }
.djp-ws-details__line { display: block; }
.djp-ws-details__line--muted { color: var(--flex-muted); }
.djp-ws-details__sub { display: block; margin-top: 4px; color: var(--flex-purple); font-size: 14px; font-weight: 600; }
.djp-ws-details__notes { margin-top: 24px; }
.djp-ws-details__alt { margin: 26px 0 0; color: var(--flex-muted); font-size: 16px; line-height: 1.7; }
.djp-ws-details__alt a { color: var(--flex-purple); font-weight: 600; }

/* Booking box */
.djp-ws-book {
	padding: 28px 24px;
	border: 1px solid var(--flex-line);
	border-radius: 3px;
	background: var(--flex-tint);
}

.djp-ws-book fieldset { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.djp-ws-book legend { padding: 0; }

.djp-ws-date {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 2px 14px;
	align-items: center;
	margin: 0 0 10px;
	padding: 14px 16px;
	border: 1px solid var(--flex-line);
	border-radius: var(--ws-radius);
	background: #fff;
	cursor: pointer;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.djp-ws-date input {
	grid-row: span 2;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--flex-purple);
}
.djp-ws-date__when { color: var(--flex-text); font-size: 15.5px; font-weight: 600; line-height: 1.4; }
.djp-ws-date__stock { color: var(--flex-muted); font-size: 13.5px; line-height: 1.4; }
.djp-ws-date:has(input:checked) { border-color: var(--flex-purple); box-shadow: inset 0 0 0 1px var(--flex-purple); }
.djp-ws-date:has(input:focus-visible) { outline: 2px solid var(--flex-purple); outline-offset: 2px; }
.djp-ws-date.is-soldout { cursor: not-allowed; opacity: .55; }
.djp-ws-date.is-soldout .djp-ws-date__when { text-decoration: line-through; }
.djp-ws-date__stock:not(:empty) { font-variant-numeric: tabular-nums; }

/* "Only X places left" draws the eye without shouting */
.djp-ws-date__stock.is-low { color: var(--flex-purple); font-weight: 600; }

/* Quantity stepper */
.djp-ws-book__qty {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 20px;
}
.djp-ws-book__qty label {
	margin: 0;
	color: var(--flex-purple);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 3px;
	text-transform: uppercase;
}
.djp-ws-stepper {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid var(--flex-line);
	border-radius: var(--ws-radius);
	background: #fff;
}
.djp-ws-stepper input {
	width: 52px;
	padding: 10px 0;
	border: 0;
	background: none;
	color: var(--flex-text);
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}
.djp-ws-stepper input::-webkit-outer-spin-button,
.djp-ws-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.djp-ws-stepper input:focus-visible { outline: 2px solid var(--flex-purple); outline-offset: -2px; }
.djp-ws-stepper__btn {
	width: 44px;
	border: 0;
	background: none;
	color: var(--flex-purple);
	font-family: inherit;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}
.djp-ws-stepper__btn:disabled { color: var(--flex-line); cursor: default; }
.djp-ws-stepper__btn:focus-visible { outline: 2px solid var(--flex-purple); outline-offset: -2px; }

/* Both days option */
.djp-ws-bundle {
	margin: 0 0 20px;
	padding: 16px;
	border: 1px dashed var(--flex-purple-soft);
	border-radius: var(--ws-radius);
	background: #fff;
}
.djp-ws-bundle__toggle {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	color: var(--flex-text);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.45;
	cursor: pointer;
}
.djp-ws-bundle__toggle strong { display: block; font-weight: 600; }
.djp-ws-bundle__meta { display: block; color: var(--flex-muted); font-weight: 400; }
.djp-ws-bundle__pick-label { display: block; margin: 0 0 6px; color: var(--flex-text); font-size: 13px; font-weight: 600; }
.djp-ws-bundle__toggle input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--flex-purple); }
.djp-ws-bundle__pick { margin: 14px 0 0 30px; }
.djp-ws-bundle__pick[hidden] { display: none; }
.djp-ws-bundle__pick select {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--flex-line);
	border-radius: var(--ws-radius);
	background: #fff;
	color: var(--flex-text);
	font-family: inherit;
	font-size: 15px;
}
.djp-ws-bundle__pick select:focus { border-color: var(--flex-purple); outline: 1px solid var(--flex-purple); }
.djp-ws-bundle__note { margin: 10px 0 0; color: var(--flex-muted); font-size: 13.5px; line-height: 1.5; }

/* Total + submit */
.djp-ws-total {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0 16px;
	align-items: baseline;
	margin: 0 0 20px;
	padding: 18px 0 0;
	border-top: 1px solid var(--flex-line);
}
.djp-ws-total__label { color: var(--flex-text); font-size: 15px; }
.djp-ws-total__ex { color: var(--flex-text); font-size: 24px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.djp-ws-total__inc { grid-column: 2; color: var(--flex-muted); font-size: 13px; text-align: right; }

.djp-ws-book__submit { width: 100%; border: 0; font-family: inherit; cursor: pointer; text-align: center; }
.djp-ws-book__submit:disabled { opacity: .6; cursor: progress; }
.djp-ws-book__note { margin: 14px 0 0; color: var(--flex-muted); font-size: 13px; line-height: 1.5; text-align: center; }

.djp-ws-book__error {
	margin: 0 0 16px;
	padding: 14px 18px;
	border-left: 3px solid var(--ws-error);
	background: #fbf1f1;
	color: var(--flex-text);
	font-size: 15px;
}

.djp-ws-book--soldout .djp-ws-book__lead { margin: 0 0 8px; color: var(--flex-text); font-size: 20px; font-weight: 300; }
.djp-ws-book--soldout p:not(.flex-eyebrow) { color: var(--flex-muted); }
.djp-ws-book--soldout .flex-btn { margin-top: 10px; }

/* --------------------------------------------------------------------------
   Private edition + CTA
   -------------------------------------------------------------------------- */

.djp-ws-private__eyebrow { color: var(--flex-purple-soft); }
.djp-ws-private__btn { margin-top: 32px; }

.djp-ws-faq .flex-heading { margin-bottom: 32px; }

/* --------------------------------------------------------------------------
   Breakpoints (mobile first)
   -------------------------------------------------------------------------- */

@media (max-width: 520px) {
	.djp-ws-hero__facts { gap: 12px 28px; font-size: 15px; }
	.djp-ws-book { padding: 22px 16px; }
	.djp-ws-details__list > div { grid-template-columns: 1fr; gap: 4px; }
}

@media (min-width: 640px) {
	.djp-ws-schedule__parts { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
	.djp-ws-hero__title { font-size: 60px; }
	.djp-ws-hero__sub { font-size: 25px; }
	.djp-ws-next__row { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 48px; }
	.djp-ws-summary__row { grid-template-columns: 5fr 7fr; }
	.djp-ws-book-section__row { grid-template-columns: 6fr 5fr; gap: 72px; }
	.djp-ws-book-wrap { position: sticky; top: 120px; }
	.djp-ws-book { padding: 32px; }
}

@media (min-width: 1024px) {
	.djp-ws-hero { flex-direction: row; min-height: 760px; }
	.djp-ws-hero__copy { flex: 1 1 54%; justify-content: flex-end; padding: calc(var(--site-header-h, 96px) + 40px) 64px 80px 48px; }
	.djp-ws-hero__media { flex: 1 1 46%; min-height: 0; }
	.djp-ws-hero__title { font-size: 66px; }
	.djp-ws-schedule__parts { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}
