/*
 * bsport workshops — styled like the Pilgrim "What's on" events list.
 *
 * Each workshop is a row on the page background, with a thin line between rows:
 *   date box (7 / NOV) | photo | SATURDAY · 10:30 AM – 11:30 AM · WITH JESS LIANG
 *                               Title (serif)
 *                               Two lines of description          [ BOOK NOW ]
 * Phones: photo on top, then the day-and-time line, title, description and button.
 *
 * Same approach as bsport.css (".pgbs .cleanslate" + ":is(#…,*)" + !important), with one
 * extra ":is(#pgbs-3,*)" so these rules beat the class-list styling bsport.css gives
 * the booking tiles on the Book page.
 */

/* Filters (Workshop / Level / Teacher): a tidy row on the left. */
.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-marketplace-filters__list {
	display: flex !important; flex-wrap: wrap !important; justify-content: flex-start !important; gap: 8px !important;
	margin: 0 0 28px !important; padding: 0 !important;
}
.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page #bs-marketplace-calendar-filters__establishment { display: none !important; } /* One studio. */

/* The list: rows, not cards. */
.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-page__workshops,
.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-page__workshops__lists {
	display: block !important; width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important;
	background: transparent !important; columns: auto !important;
}
.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-page__workshops__lists > div { display: block !important; width: 100% !important; margin: 0 !important; padding: 0 !important; }
.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card {
	position: relative !important;
	display: grid !important;
	grid-template-columns: 76px 150px minmax(0, 1fr) 150px !important;
	grid-template-rows: auto auto auto auto !important;
	column-gap: 28px !important; row-gap: 0 !important; align-content: center !important;
	width: 100% !important; max-width: none !important; height: auto !important; min-height: 0 !important;
	margin: 0 !important; padding: 28px 0 !important;
	background: transparent !important; border: 0 !important; border-top: 1px solid rgba(15, 21, 18, .16) !important;
	border-radius: 0 !important; box-shadow: none !important; overflow: visible !important;
}
.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-page__workshops__lists > div:last-child .bs-workshop-card { border-bottom: 1px solid rgba(15, 21, 18, .16) !important; }

/* Date box: "7" over "NOV" (from bsport-workshops.js). */
.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card[data-pg-day]::before {
	content: attr(data-pg-day) !important;
	position: absolute !important; left: 0 !important; top: 50% !important; transform: translateY(-50%) !important;
	box-sizing: border-box !important; width: 64px !important; height: 74px !important; padding: 10px 0 0 !important;
	border: 1px solid var(--pg-black, #0F1512) !important; background: transparent !important;
	font-family: var(--pg-serif, 'Cormorant Garamond', serif) !important; font-size: 32px !important; font-weight: 500 !important;
	line-height: 1 !important; text-align: center !important; color: var(--pg-black, #0F1512) !important;
}
.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card[data-pg-mon]::after {
	content: attr(data-pg-mon) !important;
	position: absolute !important; left: 0 !important; top: 50% !important; width: 64px !important; transform: translateY(12px) !important;
	font-family: var(--pg-sans, 'Jost', sans-serif) !important; font-size: 10px !important; font-weight: 500 !important;
	letter-spacing: .2em !important; text-transform: uppercase !important; text-align: center !important; color: var(--pg-black, #0F1512) !important;
}

/* Photo */
.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card__cover {
	grid-column: 2 !important; grid-row: 1 / span 4 !important; align-self: center !important;
	width: 100% !important; height: auto !important; aspect-ratio: 4 / 3 !important; margin: 0 !important; padding: 0 !important;
	overflow: hidden !important; border-radius: 0 !important; background: var(--pg-sand, #EBE8E1) !important;
}
.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card__cover__image {
	display: block !important; width: 100% !important; height: 100% !important; max-width: none !important; margin: 0 !important;
	object-fit: cover !important; border-radius: 0 !important;
}

/* Text column: day-and-time line, title, description, cancellation note. */
.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card__content { display: contents !important; }
.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card__content__title {
	grid-column: 3 !important; grid-row: 2 !important; margin: 6px 0 6px !important; padding: 0 !important;
	font-family: var(--pg-serif, 'Cormorant Garamond', serif) !important; font-size: 28px !important; font-weight: 500 !important;
	line-height: 1.15 !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--pg-black, #0F1512) !important;
}
.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card__content__description {
	grid-column: 3 !important; grid-row: 3 !important; margin: 0 !important; padding: 0 !important;
	height: auto !important; max-height: none !important; white-space: normal !important;
	display: -webkit-box !important; -webkit-box-orient: vertical !important; -webkit-line-clamp: 2 !important; line-clamp: 2 !important; overflow: hidden !important;
	font-family: var(--pg-sans, 'Jost', sans-serif) !important; font-size: 14px !important; font-weight: 400 !important; line-height: 1.55 !important;
	color: var(--pg-muted, #4A4A44) !important;
}
.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card__content__description img.emoji { display: inline !important; width: 1em !important; height: 1em !important; margin: 0 .1em !important; vertical-align: -.1em !important; }
.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page #bs-workshop-card__content__description__unfold,
.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card__offer-list__title-wrapper { display: none !important; }
.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card__offer-list__offer__conditions {
	grid-column: 3 !important; grid-row: 4 !important; margin: 8px 0 0 !important; padding: 0 !important; background: transparent !important;
	font-family: var(--pg-sans, 'Jost', sans-serif) !important; font-size: 11px !important; color: rgba(74, 74, 68, .8) !important;
}

/* The session: becomes the day-and-time line (row 1); its Book button sits on the right. */
.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card__offer-list {
	grid-column: 3 !important; grid-row: 1 !important; position: static !important;
	display: block !important; margin: 0 !important; padding: 0 !important; background: transparent !important; border: 0 !important;
}
.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card__offer-list .bs-offer-list-item {
	position: static !important; display: block !important; width: 100% !important; min-height: 0 !important;
	margin: 0 !important; padding: 0 !important; text-align: left !important;
	background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; overflow: visible !important;
	cursor: pointer !important;
}
.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card__offer-list .bs-offer-list-item::before,
.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card__offer-list .bs-offer-list-item::after { display: none !important; content: none !important; }
.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card__offer-list :is(.bs-offer-list-item__content, .bs-offer-list-item__content__offer, .bs-offer-list-item__content__offer__left, .bs-offer-list-item__content__offer__right, .bs-offer-list-item__content__offer__right__top, .bs-offer-list-item__content__offer__left__time) {
	position: static !important; display: block !important; width: auto !important; min-width: 0 !important; max-width: none !important;
	margin: 0 !important; padding: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important;
}
.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card__offer-list .bs-offer-list-item__content__offer__left {
	display: flex !important; flex-wrap: wrap !important; align-items: baseline !important; gap: 0 !important;
}
.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card__offer-list .bs-offer-list-item__content__time__offer-hours {
	display: flex !important; flex-wrap: wrap !important; align-items: baseline !important; gap: 0 !important; margin: 0 !important; padding: 0 !important;
}
.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card__offer-list :is(.bs-offer-list-item__content__time__offer-hours > div, .bs-offer-list-item__content__offer__left__coach) {
	margin: 0 !important; padding: 0 !important; background: transparent !important; border: 0 !important;
	font-family: var(--pg-sans, 'Jost', sans-serif) !important; font-size: 11px !important; font-weight: 500 !important; line-height: 1.6 !important;
	letter-spacing: .2em !important; text-transform: uppercase !important; color: var(--pg-black, #0F1512) !important; white-space: nowrap !important;
}
/* "Saturday 7 November 2026" → "SATURDAY ·" (the date is in the box). */
.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card__offer-list .bs-offer-list-item__content__time__offer-hours__date[data-pg-weekday] { font-size: 0 !important; letter-spacing: 0 !important; }
.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card__offer-list .bs-offer-list-item__content__time__offer-hours__date[data-pg-weekday]::after {
	content: attr(data-pg-weekday) "\00a0\00a0·\00a0\00a0" !important; font-size: 11px !important; letter-spacing: .2em !important;
}
.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card__offer-list .bs-offer-list-item__content__time__offer-hours__time-separator { padding: 0 .35em !important; }
/* Teacher's name after the time; no photo, no studio name, no level badge, no More info. */
.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card__offer-list .bs-offer-list-item__content__offer__left > .bs-offer-list-item__content__offer__left__coach::before { content: "\00a0\00a0·\00a0\00a0With\00a0" !important; }
.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card__offer-list .bs-offer-list-item__content__offer__left__coach > .bs-offer-list-item__content__offer__left__coach { display: inline !important; }
.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card__offer-list .bs-offer-list-item__content__offer__left__coach > .bs-offer-list-item__content__offer__left__coach > .bs-offer-list-item__content__offer__left__coach { display: inline !important; font-size: inherit !important; letter-spacing: inherit !important; }
.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card__offer-list :is(.bs-card-offer__content__coach__avatar, .bs-offer-list-item__content__offer__left__establishment, .bs-offer-list-item__content__offer__left__extra, .bs-offer-list-item__content__offer__right__top, .bs-level) { display: none !important; }

/* Book button: on the right, centred on the row. */
.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card__offer-list .bs-offer-list-item__content__offer__right > div:last-child { position: static !important; }
.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card__offer-list .bs-book-button-card {
	position: absolute !important; right: 0 !important; top: 50% !important; transform: translateY(-50%) !important;
	display: inline-flex !important; align-items: center !important; justify-content: center !important;
	width: auto !important; min-width: 0 !important; min-height: 40px !important; margin: 0 !important; padding: 10px 20px !important;
	background: var(--pg-blush, #EFC5C5) !important; color: var(--pg-black, #0F1512) !important;
	border: 0 !important; border-radius: 0 !important; box-shadow: none !important; transition: background-color .2s, color .2s !important;
}
.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card__offer-list .bs-book-button-card * {
	margin: 0 !important; padding: 0 !important; background: transparent !important; color: inherit !important;
	font-family: var(--pg-sans, 'Jost', sans-serif) !important; font-size: 11px !important; font-weight: 500 !important;
	letter-spacing: .2em !important; text-transform: uppercase !important; white-space: nowrap !important;
}
.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card__offer-list .bs-book-button-card__inner__text::after { content: "\00a0now" !important; }
.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card__offer-list .bs-offer-list-item:hover .bs-book-button-card,
.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card__offer-list .bs-book-button-card:hover { background: var(--pg-black, #0F1512) !important; color: #fff !important; }
.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card:hover .bs-workshop-card__content__title { color: var(--pg-push, #B34A55) !important; }
/* Full / past workshops */
.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card__offer-list .bs-book-button-card--disabled { background: var(--pg-sand, #EBE8E1) !important; color: var(--pg-muted, #4A4A44) !important; }
.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card__offer-list .bs-book-button-card--disabled .bs-book-button-card__inner__text::after { content: none !important; }

/* Tablets: a slightly smaller photo. */
@media (max-width: 1024px) {
	.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card { grid-template-columns: 76px 120px minmax(0, 1fr) 140px !important; column-gap: 20px !important; }
}

/* Phones: photo on top; date box beside the text; button underneath. */
@media (max-width: 767px) {
	.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card {
		grid-template-columns: 64px minmax(0, 1fr) !important; grid-template-rows: auto auto auto auto auto auto !important;
		column-gap: 16px !important; padding: 24px 0 !important;
	}
	.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card__cover { grid-column: 1 / -1 !important; grid-row: 1 !important; aspect-ratio: 16 / 9 !important; margin-bottom: 18px !important; }
	.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card[data-pg-day]::before { top: auto !important; transform: none !important; margin-top: 0 !important; }
	.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card[data-pg-day]::before,
	.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card[data-pg-mon]::after { position: static !important; grid-column: 1 !important; grid-row: 2 / span 2 !important; align-self: start !important; }
	.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card[data-pg-mon]::after { grid-row: 2 / span 2 !important; transform: none !important; margin-top: 46px !important; }
	.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card__offer-list { grid-column: 2 !important; grid-row: 2 !important; }
	.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card__content__title { grid-column: 2 !important; grid-row: 3 !important; font-size: 24px !important; }
	.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card__content__description { grid-column: 1 / -1 !important; grid-row: 4 !important; margin-top: 10px !important; }
	.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card__offer-list__offer__conditions { grid-column: 1 / -1 !important; grid-row: 6 !important; }
	/* Book button: bottom left of the row, under the description. */
	.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card { padding-bottom: 84px !important; }
	.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card__offer-list .bs-book-button-card {
		top: auto !important; bottom: 24px !important; left: 0 !important; right: auto !important; transform: none !important;
	}
}

/* Fine-tuning: filters at their natural width; the day-and-time line left-aligned on one line where it fits. */
.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-marketplace-filters__list > .bs-marketplace-filter { flex: 0 0 auto !important; width: auto !important; max-width: none !important; }
.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card__offer-list :is(.bs-offer-list-item__content, .bs-offer-list-item__content__offer, .bs-offer-list-item__content__offer__left) { width: 100% !important; text-align: left !important; justify-content: flex-start !important; }
.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card__offer-list .bs-offer-list-item__content__offer__left > .bs-offer-list-item__content__offer__left__coach { display: inline-flex !important; align-items: baseline !important; flex-wrap: nowrap !important; white-space: nowrap !important; }
.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card__offer-list .bs-offer-list-item__content__time__offer-hours > .bs-offer-list-item__content__time__offer-hours__time-separator { padding: 0 .4em !important; }
.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-workshop-card__offer-list .bs-offer-list-item__content__offer__left { flex-direction: row !important; align-items: baseline !important; display: flex !important; grid-template-columns: none !important; }
.pgbs .cleanslate :is(#pgbs-1,*):is(#pgbs-2,*):is(#pgbs-3,*) .bs-workshop-page .bs-marketplace-filter svg { width: 18px !important; height: 18px !important; flex: none !important; }
