.whats-on-page {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100vh;
	min-height: 100vh;
	background: var(--justco-background);
	/* The panel's 80% white over the shell, for the fades, badges and opaque states. */
	--whats-on-surface: color-mix(in srgb, #fff 80%, var(--color-powder-blue));
}

/* The reserved scrollbar gutter shows the body's background, so match the shell. */
body:has(.whats-on-page) {
	background: var(--color-powder-blue);
}

.whats-on-nav .site-nav__list > a[aria-current="page"] {
	opacity: .5;
}

/* Get in touch in midnight and powder blue against the blue shell, scrolled bar included. */
.site-nav.whats-on-nav .site-nav__cta-wrap .site-nav__cta {
	background: var(--justco-midnight);
	color: var(--color-powder-blue);
}

/* Its hover label (the copy that rolls in from below) takes Claim voucher's
   hover colour: powder blue lightened toward white. */
.site-nav.whats-on-nav .site-nav__cta-wrap .site-nav__cta .site-nav__roll::after {
	color: color-mix(in srgb, var(--color-powder-blue) 35%, #fff);
}

.whats-on-shell {
	display: flex;
	flex: 1 1 auto;
	min-height: 0;
	padding: var(--site-nav-height) 10px 10px;
	background: var(--color-powder-blue);
}

.whats-on-rail {
	flex: 0 0 280px;
	max-width: 280px;
	min-width: 0;
	padding: 24px 8px;
}

.whats-on-rail__list {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.whats-on-rail__item {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	min-height: 52px;
	padding: 8px;
	border: 0;
	border-radius: 1000px;
	background: transparent;
	color: var(--justco-midnight);
	font-family: "Sweet Sans Pro", sans-serif;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-align: left;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 250ms ease, color 250ms ease;
}

.whats-on-rail__item:hover {
	background: color-mix(in srgb, var(--justco-navy) 6%, transparent);
}

/* After :hover, so the active item stays clear while hovered: the selection
   shows in its icon's navy disc alone, and the label keeps its colour. */
.whats-on-rail__item.is-active {
	background: transparent;
}

.whats-on-rail__item:focus-visible,
.whats-on-panel__expand:focus-visible {
	outline: 2px solid var(--color-brick-red);
	outline-offset: 2px;
}

.whats-on-rail__icon {
	display: flex;
	flex: 0 0 36px;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #f4eee9;
	transition: background-color 250ms ease;
}

.whats-on-rail__glyph {
	display: block;
	width: 18px;
	height: 18px;
	background: var(--justco-navy);
	-webkit-mask: var(--whats-on-rail-icon) center / contain no-repeat;
	mask: var(--whats-on-rail-icon) center / contain no-repeat;
	transition: background-color 250ms ease;
}

/* The active item: its icon in powder blue on a navy (midnight) disc.
   Hovering an item gives its icon the same colours (pointers only, so taps
   don't leave it stuck on). */
.whats-on-rail__item.is-active .whats-on-rail__icon {
	background: var(--justco-midnight);
}

.whats-on-rail__item.is-active .whats-on-rail__glyph {
	background: var(--color-powder-blue);
}

@media (hover: hover) {
	.whats-on-rail__item:hover .whats-on-rail__icon {
		background: var(--justco-midnight);
	}

	.whats-on-rail__item:hover .whats-on-rail__glyph {
		background: var(--color-powder-blue);
	}
}

.whats-on-panel {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	margin-top: 0;
	padding-top: 0;
	border-radius: 12px;
	background: rgba(255, 255, 255, .8);
	overflow: hidden;
	transition: margin-top 650ms cubic-bezier(.22, 1, .36, 1), background-color 650ms ease;
}

.whats-on-panel::after {
	content: "";
	position: absolute;
	z-index: 3;
	right: 0;
	bottom: 0;
	left: 0;
	height: 40px;
	border-radius: 0 0 12px 12px;
	background: linear-gradient(to top, var(--whats-on-surface) 0%, transparent 100%);
	pointer-events: none;
}

.whats-on-panel__header {
	position: fixed;
	z-index: 3;
	top: var(--site-nav-height);
	right: 10px;
	left: 290px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 40px;
	padding: 10px 12px;
	border-radius: 12px 12px 0 0;
	background: linear-gradient(to bottom, var(--whats-on-surface) 0%, transparent 100%);
	pointer-events: none;
	color: var(--justco-secondary);
	font-family: "Sweet Sans Pro", sans-serif;
	font-size: 13px;
	font-weight: 500;
	transition: top 650ms cubic-bezier(.22, 1, .36, 1), right 650ms cubic-bezier(.22, 1, .36, 1);
}


.whats-on-panel__header > span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

/* The greeting and its sun, in midnight (the sun drawn through its SVG as a mask). */
.whats-on-panel__greeting {
	color: var(--justco-midnight);
}

.whats-on-panel__sun {
	flex: none;
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: var(--whats-on-icon-afternoon) center / contain no-repeat;
	mask: var(--whats-on-icon-afternoon) center / contain no-repeat;
}

/* The sun in the morning and afternoon, the moon in the evening. (The sunrise
   icon had too much detail at 14px.) */
[data-period="evening"] > .whats-on-panel__sun {
	-webkit-mask-image: var(--whats-on-icon-evening);
	mask-image: var(--whats-on-icon-evening);
}

/* EB Garamond sets smaller than Sweet Sans, so the greeting steps up to 16px. */
[data-greeting] {
	font-family: "EB Garamond", serif;
	font-size: 16px;
	line-height: 1;
}

.whats-on-panel__expand {
	pointer-events: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 27px;
	height: 27px;
	padding: 5px;
	border: 0;
	background: transparent;
	opacity: .35;
	cursor: pointer;
	transition: opacity 250ms ease;
}

.whats-on-panel__expand:hover,
.whats-on-panel__expand:focus-visible {
	opacity: .85;
}

.whats-on-panel__expand img {
	width: 17px;
	height: 17px;
}

/* The list and grid buttons, left of the expand button and in its style: faint
   until hovered, the current view drawn solid. Icons are drawn through their
   SVGs (the Directory's) in the expand icon's ink. */
.whats-on-panel__controls {
	display: flex;
	align-items: center;
	gap: 2px;
}

.whats-on-view {
	display: flex;
	align-items: center;
	gap: 2px;
}

.whats-on-view__option {
	pointer-events: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 27px;
	height: 27px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #141414;
	opacity: .35;
	cursor: pointer;
	transition: opacity 250ms ease;
}

.whats-on-view__option:hover,
.whats-on-view__option:focus-visible {
	opacity: .85;
}

.whats-on-view__option[aria-pressed="true"] {
	opacity: 1;
}

.whats-on-view__option:focus-visible {
	outline: 2px solid var(--color-brick-red);
	outline-offset: 1px;
}

.whats-on-view__glyph {
	display: block;
	width: 17px;
	height: 17px;
	background: currentColor;
	-webkit-mask: var(--whats-on-view-icon) center / contain no-repeat;
	mask: var(--whats-on-view-icon) center / contain no-repeat;
}

.whats-on-panel__body {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	scrollbar-width: none;
}

.whats-on-panel__body::-webkit-scrollbar {
	display: none;
}

.whats-on-clock {
	position: sticky;
	z-index: 2;
	top: 64px;
	display: block;
	width: max-content;
	height: 0;
	margin: 64px 0 -64px 28px;
	color: var(--justco-navy);
	font-size: 32px;
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: 0.1em;
}

.whats-on-clock__stack {
	display: flex;
	flex-direction: column;
}

.whats-on-clock__stack > span:first-child {
	font-family: "EB Garamond", serif;
	font-size: 1.25rem;
	line-height: 1.25;
	letter-spacing: 0.05em;
	margin-bottom: 6px;
}

.whats-on-clock__stack > span:last-child {
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: 0.1em;
}

.whats-on-clock [data-date] {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 1px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* The colon blinks once a second (whats-on.js toggles is-dim). */
.whats-on-clock__colon.is-dim {
	opacity: 0;
}

.whats-on-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: min(600px, calc(100% - 48px));
	margin: 48px auto 28px;
}

/* Wide screens, where the clock sits beside the cards: it's 28px in and up to
   about 112px wide ("30 Nov"), so the cards stay centred but never start left
   of 156px. Without this, the narrower panel beside an open listing pushed the
   cards over the clock. Up to 1260px the clock sits above the cards instead. */
@media (min-width: 1261px) {
	.whats-on-list {
		--whats-on-clock-room: 156px;
		width: min(600px, calc(100% - var(--whats-on-clock-room) - 24px));
		margin-left: max(var(--whats-on-clock-room), calc((100% - 600px) / 2));
		margin-right: auto;
	}
}

.whats-on-card {
	position: relative;
	display: flex;
	flex: 0 0 auto;
	align-items: flex-start;
	gap: 16px;
	width: 100%;
	min-height: 138px;
	padding: 8px 20px 8px 8px;
	border: 1px solid var(--justco-border);
	border-radius: 12px;
	background: transparent;
	overflow: hidden;
	cursor: var(--justco-cursor-interactive, pointer);
	transition: background-color 250ms ease, transform 400ms cubic-bezier(.22, 1, .36, 1);
}

/* 2% here grows the 600px card about as far as the Directory's 3% does its 320px one. */
.whats-on-card:hover {
	background-color: rgba(255, 255, 255, .6);
	transform: scale(1.02);
}

/* While the list scrolls (Lenis marks the panel), the cards passing under a
   still pointer don't each start and stop their hover, which made scrolling
   lag behind the wheel. The hover returns as soon as the list settles. */
.whats-on-panel__body.lenis-scrolling .whats-on-card {
	pointer-events: none;
}

.whats-on-card[role="button"]:focus-visible {
	outline: 2px solid var(--color-brick-red);
	outline-offset: 2px;
}

.whats-on-card[hidden] {
	display: none;
}

.whats-on-card__thumb {
	position: relative;
	flex: 0 0 192px;
	width: 192px;
	height: 120px;
	border-radius: 0 8px 8px 8px;
	background: rgba(0, 0, 0, .04);
	overflow: hidden;
}

.whats-on-card__thumb > img {
	position: absolute;
	max-width: none;
	object-fit: cover;
}

.whats-on-card--1 .whats-on-card__thumb > img {
	top: -150px;
	left: -19px;
	width: 211px;
	height: 316px;
}

.whats-on-card--2 .whats-on-card__thumb > img {
	top: -42px;
	left: 0;
	width: 192px;
	height: 249px;
}

.whats-on-card--3 .whats-on-card__thumb > img {
	top: -33px;
	left: -58px;
	width: 259px;
	height: 173px;
}

.whats-on-card--4 .whats-on-card__thumb > img {
	top: -12.5%;
	left: -12.73%;
	width: 125.45%;
	height: 125%;
}

.whats-on-card--5 .whats-on-card__thumb > img {
	top: 0;
	left: 0;
	width: 192px;
	height: 128px;
}

/* A photo uploaded in WP Admin fills the thumbnail. */
.whats-on-card--upload .whats-on-card__thumb > img {
	inset: 0;
	width: 100%;
	height: 100%;
}

.whats-on-card__badge {
	position: absolute;
	top: 0;
	left: 0;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	/* The tracking leaves a gap after the last letter, so the right side gives it back. */
	padding: 0 calc(6px - 0.15em) 5px 0;
	border-radius: 0 0 4px 0;
	background: var(--whats-on-surface);
	color: var(--justco-midnight);
	font-family: "Sweet Sans Pro", sans-serif;
	font-size: 12px;
	font-weight: 700;
	line-height: normal;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

/* The type icon, drawn through its SVG as a mask in the label's colour. */
.whats-on-card__badge-icon {
	flex: none;
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: var(--whats-on-badge-icon) center / contain no-repeat;
	mask: var(--whats-on-badge-icon) center / contain no-repeat;
}

.whats-on-card__content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	justify-content: space-between;
	gap: 10px;
	min-width: 0;
	min-height: 120px;
	padding: 6px 0;
}

.whats-on-card__copy {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.whats-on-card h2 {
	margin: 0;
	color: #000;
	font-family: "Sweet Sans Pro", sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.whats-on-card__copy p {
	display: -webkit-box;
	/* Two lines at the leading below. */
	max-height: 2.6em;
	margin: 0;
	color: color-mix(in srgb, var(--justco-midnight) 90%, transparent);
	font-family: "EB Garamond", serif;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.3;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.whats-on-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	/* One line: a long host name (KARVE Transformer Pilates) is cut short with an
	   ellipsis rather than pushing the date onto a line of its own. */
	gap: 4px 12px;
	min-width: 0;
	color: var(--justco-secondary);
	font-size: 14px;
	line-height: 1.3;
}

.whats-on-card__meta > span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-width: 0;
	white-space: nowrap;
}

.whats-on-card__meta > .whats-on-card__owner {
	flex: 0 1 auto;
	gap: 6px;
	color: var(--justco-midnight);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.whats-on-card__owner-name {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.whats-on-card__meta > .whats-on-card__period {
	flex: none;
}

.whats-on-card__owner img {
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	/* Round, as in the drawer, whatever shape the logo file is (M Stand's is square). */
	border-radius: 50%;
	object-fit: cover;
}

.whats-on-card__period {
	color: color-mix(in srgb, var(--justco-midnight) 90%, transparent);
	font-family: "EB Garamond", serif;
	font-size: 15px;
	font-weight: 500;
}

/* The listing's dates (Till Dec 31, 2026): a clock, as they're a when, not a where. */
.whats-on-card__date-icon {
	flex: 0 0 14px;
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: url("../icons/whats-on-period.svg") center / contain no-repeat;
	mask: url("../icons/whats-on-period.svg") center / contain no-repeat;
}

/*
 * Expanded: the panel grows upward to 10px from the viewport top, over the navbar
 * (z-index 20). The panel is opaque there so the navigation does not show through.
 */
.whats-on-page.is-expanded .whats-on-panel {
	z-index: 21;
	margin-top: -62px;
	background: var(--whats-on-surface);
}

.whats-on-page.is-expanded .whats-on-panel__header {
	z-index: 22;
	top: 10px;
}

@media (min-width: 761px), (min-width: 721px) and (min-height: 521px) {
	body.admin-bar .whats-on-page.is-expanded .whats-on-panel__header {
		top: 42px;
	}

	/* Otherwise the covered links show through the gap between the two panes. */
	.whats-on-nav .site-nav__links {
		transition: opacity 250ms ease, visibility 0s;
	}

	.whats-on-page.is-expanded .whats-on-nav .site-nav__links {
		opacity: 0;
		visibility: hidden;
		transition: opacity 250ms ease, visibility 0s 250ms;
	}
}

/*
 * Desktop and tablets: the site footer follows the app, so the page scrolls past
 * a full-screen shell. The header and the tablet details pane pin to the panel
 * and shell rather than the screen, so they don't ride over the footer.
 */
@media (min-width: 761px), (min-width: 721px) and (min-height: 521px) {
	.whats-on-page { height: auto; }
	/* 30px taller than the screen: the panel still ends 10px above the bottom
	   edge on load, and the extra 30px only shows once the list has reached its
	   end and the page scrolls on, leaving 40px of blue before the footer. */
	.whats-on-shell { position: relative; flex: none; height: calc(100vh + 30px); padding-bottom: 40px; }
	/* Logged in, WordPress's admin bar pushes the page down (32px, 46px up to
	   782px wide), so the shell is that much shorter to end where it would. */
	body.admin-bar .whats-on-shell { height: calc(100vh - 32px + 30px); }
	.whats-on-panel__header,
	.whats-on-page.has-detail .whats-on-panel__header,
	.whats-on-page.is-expanded .whats-on-panel__header,
	body.admin-bar .whats-on-page.is-expanded .whats-on-panel__header {
		position: absolute;
		top: 0;
		right: 0;
		left: 0;
	}
}

/*
 * Tablets: the panel is only as tall as its listings, up to the full-screen
 * shell above (where a long list scrolls inside it, as on desktops). A short
 * list left a blank panel (NEU-530). On a page shorter than the screen, the
 * blue carries on and the footer sits at the bottom. Desktops (1261px and
 * wider) keep the full-screen panel.
 */
@media (min-width: 761px) and (max-width: 1260px), (min-width: 721px) and (max-width: 1260px) and (min-height: 521px) {
	.whats-on-page { background: var(--color-powder-blue); }
	/* .whats-on-page in each, to win over the fixed heights set for the admin bar. */
	.whats-on-page .whats-on-shell { height: auto; max-height: calc(100vh + 30px); }
	body.admin-bar .whats-on-page .whats-on-shell { height: auto; max-height: calc(100vh - 32px + 30px); }
	.whats-on-page > .home-footer { margin-top: auto; }
	/* No clock on tablets either, where it took a row of its own above the
	   list: the greeting is enough, and the cards start higher (as phones).
	   The list keeps its 48px under the header. */
	.whats-on-clock { display: none; }
	.whats-on-panel .whats-on-list { margin-top: 48px; }
}

@media (min-width: 761px) and (max-width: 782px) {
	body.admin-bar .whats-on-page .whats-on-shell { max-height: calc(100vh - 46px + 30px); }
}

/*
 * Details popover (NEU-440): the drawer's content, unchanged in style and order,
 * in a large popover over the dimmed page. Desktop and tablets: the photo on the
 * left, the details on the right. Phones: a full-screen sheet, the photo on top.
 * The aside is the dimmed overlay (a click on it closes); its inner box is the
 * popover. whats-on.js opens and closes it, and makes the page behind inert.
 */
.whats-on-detail {
	position: fixed;
	z-index: 1000;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 72px;
	background: rgba(11, 37, 58, .55);
	opacity: 0;
	visibility: hidden;
	transition: opacity 300ms ease, visibility 0s linear 300ms;
}

.whats-on-page.has-detail .whats-on-detail {
	opacity: 1;
	visibility: visible;
	transition: opacity 300ms ease;
}

/* Logged in, below WordPress's admin bar (32px; 46px up to 782px wide, and on
   phones following it as it scrolls away, assets/js/nav.js). */
body.admin-bar .whats-on-detail { top: 32px; }

/* The page behind holds still while the popover is open (whats-on.js). */
html.has-whats-on-detail { overflow: hidden; }

.whats-on-detail__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	width: min(960px, 100%);
	height: min(600px, 100%);
	border-radius: 12px;
	background: var(--whats-on-surface);
	box-shadow: 0 24px 64px rgba(11, 37, 58, .28);
	overflow: hidden;
	transform: translateY(12px) scale(.98);
	transition: transform 450ms cubic-bezier(.22, 1, .36, 1);
}

.whats-on-page.has-detail .whats-on-detail__inner { transform: none; }

/* Opening, the details arrive in turn after the popover: host, title,
   description, How to and Terms, then the action, 60ms apart. Closing, they
   wait out the popover's fade before resetting, so nothing blinks out early. */
.whats-on-detail :is(.whats-on-detail__owner, #whats-on-detail-title, [data-detail-description], .whats-on-detail__accordion, .whats-on-detail__action) {
	opacity: 0;
	translate: 0 8px;
	transition: opacity 0s linear 300ms, translate 0s linear 300ms;
}

.whats-on-page.has-detail .whats-on-detail :is(.whats-on-detail__owner, #whats-on-detail-title, [data-detail-description], .whats-on-detail__accordion, .whats-on-detail__action) {
	opacity: 1;
	translate: none;
	transition: opacity 450ms ease, translate 600ms cubic-bezier(0.22, 1, 0.36, 1);
	transition-delay: calc(150ms + var(--detail-step, 0) * 60ms);
}

.whats-on-detail__owner { --detail-step: 0; }
#whats-on-detail-title { --detail-step: 1; }
[data-detail-description] { --detail-step: 2; }
.whats-on-detail__accordion { --detail-step: 3; }
.whats-on-detail__action { --detail-step: 4; }

.whats-on-detail__image {
	position: relative;
	min-height: 0;
	background: rgba(0, 0, 0, .07);
	overflow: hidden;
}

.whats-on-detail__image img {
	position: absolute;
	top: -31.59%;
	left: -48.87%;
	width: 163.57%;
	height: 163.59%;
	max-width: none;
	object-fit: cover;
}

.whats-on-detail .whats-on-detail__image img {
	inset: 0;
	width: 100%;
	height: 100%;
}

.whats-on-detail__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	justify-content: space-between;
	gap: 24px;
	min-height: 0;
	padding: 32px;
}

/* The details scroll on their own above the action, so the primary button
   (Claim voucher) stays in view however far the accordions open; the edge
   fades show where more is hidden (whats-on.js). */
.whats-on-detail__content {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: none;
}

.whats-on-detail__content::-webkit-scrollbar { display: none; }
.whats-on-detail__content > * { flex-shrink: 0; }

/* Edge fades appear only where more content is hidden, like the list's bottom fade. */
@property --whats-on-fade-top { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --whats-on-fade-bottom { syntax: "<length>"; inherits: false; initial-value: 0px; }
.whats-on-detail__content {
	-webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--whats-on-fade-top), #000 calc(100% - var(--whats-on-fade-bottom)), transparent 100%);
	mask-image: linear-gradient(to bottom, transparent 0, #000 var(--whats-on-fade-top), #000 calc(100% - var(--whats-on-fade-bottom)), transparent 100%);
	transition: --whats-on-fade-top 250ms ease, --whats-on-fade-bottom 250ms ease;
}
.whats-on-detail__content.is-fade-snap { transition: none; }
.whats-on-detail__content.has-fade-top { --whats-on-fade-top: 32px; }
.whats-on-detail__content.has-fade-bottom { --whats-on-fade-bottom: 48px; }

.whats-on-detail__content { display: flex; flex-direction: column; gap: 24px; }
.whats-on-detail__intro { display: flex; flex-direction: column; gap: 10px; }
/* The merchant, as on the cards: bold tracked capitals in midnight, a step
   larger to suit the details' title and copy. */
.whats-on-detail__owner { display: flex; align-items: center; gap: 6px; color: var(--justco-midnight); font-size: 0.8125rem; font-weight: 700; line-height: 1rem; letter-spacing: 0.15em; text-transform: uppercase; }
.whats-on-detail__owner img { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; }
/* A host without a logo shows its name alone (style.css sets images to block). */
.whats-on-detail__owner img[hidden] { display: none; }
.whats-on-detail__copy { display: flex; flex-direction: column; gap: 12px; }
/* Set like the cards' titles (.whats-on-card h2), one size up as the heading here. */
/* 20px, a clear step above the 17px description (18px on phones, in the phone block). */
.whats-on-detail h2 { margin: 0; color: #000; font-family: "Sweet Sans Pro", sans-serif; font-size: 1.25rem; font-weight: 700; line-height: 1.3; letter-spacing: 0.15em; text-transform: uppercase; text-wrap: balance; outline: none; }
/* EB Garamond sets smaller than Sweet Sans, so the description steps up to 17px. */
.whats-on-detail__copy p { margin: 0 0 8px; color: var(--justco-secondary); font-family: "EB Garamond", serif; font-size: 17px; font-weight: 500; line-height: 1.4; }
.whats-on-detail__copy p:last-child { margin-bottom: 0; }

.whats-on-detail__accordion { border: 1px solid var(--justco-border); border-radius: 8px; overflow: hidden; }
.whats-on-detail__accordion details + details { border-top: 1px solid var(--justco-border); }
.whats-on-detail__accordion summary { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; color: var(--justco-secondary); font-size: 12px; font-weight: 500; line-height: 1.4; text-transform: uppercase; list-style: none; cursor: var(--justco-cursor-interactive, pointer); }
.whats-on-detail__accordion summary::-webkit-details-marker { display: none; }
.whats-on-detail__accordion summary img { flex: 0 0 16px; transition: transform 250ms ease; }
.whats-on-detail__accordion details[open] summary img { transform: rotate(180deg); }
.whats-on-detail__accordion details ul { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0 10px 10px 28px; color: var(--justco-secondary); font-family: "EB Garamond", serif; font-size: 16px; font-weight: 500; line-height: 1.4; list-style: disc; }
.whats-on-detail__accordion details li::marker { color: rgba(0, 0, 0, .3); }
.whats-on-detail__more h3 { height: 21px; margin: 0 0 2px; color: var(--justco-secondary); font-size: 11px; font-weight: 500; line-height: 1.4; letter-spacing: .66px; text-transform: uppercase; }
.whats-on-detail__related { border: 1px solid var(--justco-border); border-radius: 12px; overflow: hidden; }
.whats-on-detail__related article { display: flex; align-items: flex-start; gap: 10px; padding: 8px 6px; cursor: pointer; }
.whats-on-detail__related article + article { border-top: 1px solid var(--justco-border); }
.whats-on-detail__related h4 { flex: 1; min-width: 0; margin: 0; color: var(--justco-secondary); font-family: "Sweet Sans Pro", sans-serif; font-size: 13px; font-weight: 500; line-height: 1.35; letter-spacing: .02em; text-transform: uppercase; }
.whats-on-detail__related h4 span { white-space: nowrap; }
.whats-on-detail__thumb { position: relative; flex: 0 0 60px; width: 60px; height: 40px; border-radius: 8px; background: rgba(0, 0, 0, .04); overflow: hidden; }
.whats-on-detail__thumb img { position: absolute; max-width: none; object-fit: cover; }
.whats-on-detail__thumb--sandos img { top: -8px; left: 0; width: 60px; height: 60px; }
.whats-on-detail__thumb--tots img { top: -18px; left: -4px; width: 75px; height: 75px; }
.whats-on-detail__action { flex: 0 0 auto; }
/* An event has no button and no status here, so the empty block gives back the
   body's 24px gap; otherwise the foot shows 40px under the content to the
   top's 16px (and tips the content into the bottom fade). */
.whats-on-detail__action:not(:has(> .whats-on-detail__claim:not([hidden]), > [data-detail-status]:not([hidden]))) { margin-top: -24px; }
.whats-on-detail__action > p { margin: 0 0 8px; color: var(--justco-secondary); font-size: 13px; line-height: 1.4; }
.whats-on-detail__claim { display: flex; align-items: center; justify-content: center; width: 100%; height: 2.5rem; padding: 0 10px 0 calc(10px + 0.12em); border: 0; border-radius: 1000px; background: var(--justco-navy); color: var(--color-powder-blue); font-family: "Sweet Sans Pro", sans-serif; font-size: 14px; font-weight: 700; line-height: 17px; letter-spacing: 0.12em; text-transform: uppercase; cursor: var(--justco-cursor-interactive, pointer); transition: background-color 200ms ease, color 200ms ease; }
/* Hover: the navy deepens to midnight and the powder blue lightens toward white
   (the Directory's booking button does the same). */
.whats-on-detail__claim:hover,
.whats-on-detail__claim:focus-visible { background: var(--justco-midnight); color: color-mix(in srgb, var(--color-powder-blue) 35%, #fff); }
.whats-on-detail__claim:focus-visible,
.whats-on-detail summary:focus-visible { outline: 2px solid var(--color-brick-red); outline-offset: -2px; }
.whats-on-detail__more[hidden],
.whats-on-detail__claim[hidden] { display: none; }
/* The popover's close: the drawer's own disc, at the box's top right. */
.whats-on-detail__close { position: absolute; z-index: 3; top: 12px; right: 12px; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: var(--whats-on-surface); color: var(--justco-midnight); cursor: var(--justco-cursor-interactive, pointer); transition: background-color 200ms ease; }
.whats-on-detail__close:hover { background: #fff; }
.whats-on-detail__close:focus-visible { outline: 2px solid var(--color-brick-red); outline-offset: 2px; }
/* A long host name wraps short of the close. */
.whats-on-detail__owner { padding-right: 32px; }
/* Claiming (whats-on.js): the claim step takes the details' place in the
   popover, rather than a second popover over them. It opens at the top of the
   body, so on phones the email field sits well clear of the keyboard. */
.whats-on-detail.is-claiming .whats-on-detail__content,
.whats-on-detail.is-claiming .whats-on-detail__action { display: none; }
.whats-on-voucher { display: flex; flex: 1 1 auto; flex-direction: column; gap: 16px; min-height: 0; overflow-y: auto; scrollbar-width: none; opacity: 0; translate: 16px 0; transition: opacity 250ms ease, translate 420ms cubic-bezier(.22, 1, .36, 1); }
.whats-on-voucher::-webkit-scrollbar { display: none; }
/* In from the right, overlapping the details' exit a little. */
.whats-on-voucher.is-open { opacity: 1; translate: none; transition-delay: 80ms; }
/* Back: out to the right, quickly. */
.whats-on-voucher.is-open.is-leaving { opacity: 0; translate: 16px 0; transition-duration: 160ms; transition-delay: 0s; }
/* While the details leave, the form lies over them, in the body's padding box,
   so it's in place (and focusable) from the first frame. */
.whats-on-detail__body { position: relative; }
.whats-on-detail.is-claim-overlay .whats-on-voucher { position: absolute; z-index: 1; inset: 0; padding: inherit; }

/* The details step out to the left as the form arrives, and back in from the
   left when it goes (whats-on.js). While stepping, they skip the popover's
   opening stagger. */
.whats-on-page.has-detail .whats-on-detail.is-stepping :is(.whats-on-detail__content, .whats-on-detail__action) {
	transition: opacity 250ms ease, translate 420ms cubic-bezier(.22, 1, .36, 1);
	transition-delay: 0s;
}
.whats-on-page.has-detail .whats-on-detail.is-claim-out :is(.whats-on-detail__content, .whats-on-detail__action) {
	opacity: 0;
	translate: -12px 0;
	transition-duration: 160ms;
}

/* Sent: a quick crossfade in place, the form out and Check your inbox in. */
.whats-on-voucher__form { transition: opacity 160ms ease; }
.whats-on-voucher__form.is-fading { opacity: 0; }
@keyframes whats-on-step-in { from { opacity: 0; translate: 0 6px; } }
.whats-on-voucher__sent:not([hidden]) { animation: whats-on-step-in 320ms cubic-bezier(.22, 1, .36, 1); }
.whats-on-voucher[hidden] { display: none; }
/* Back to details: a quiet text link, as it's a way back rather than an action. */
.whats-on-voucher__back { display: inline-flex; align-self: flex-start; align-items: center; gap: 4px; margin: -4px 0 0 -4px; padding: 4px 6px 4px 0; border: 0; border-radius: 6px; background: transparent; color: var(--justco-secondary); font-family: "Sweet Sans Pro", sans-serif; font-size: 12px; font-weight: 700; line-height: 1.4; letter-spacing: .15em; text-transform: uppercase; cursor: var(--justco-cursor-interactive, pointer); transition: color 200ms ease; }
.whats-on-voucher__back svg { flex: none; width: 16px; height: 16px; }
.whats-on-voucher__back:hover { color: var(--justco-midnight); }
.whats-on-voucher__back:focus-visible { outline: 2px solid var(--color-brick-red); outline-offset: 2px; }
/* The step's heading is the listing's title, styled by .whats-on-detail h2 as on
   the details; a line of the description's Garamond says what to do. Once
   sent, Check your inbox heads the step on its own. */
.whats-on-detail h2.whats-on-voucher__listing { margin-top: 4px; }
.whats-on-voucher:has([data-voucher-sent]:not([hidden])) .whats-on-voucher__listing { display: none; }
/* 18px, as the email field it introduces. */
.whats-on-voucher__intro { margin: -8px 0 8px; color: var(--justco-secondary); font-family: "EB Garamond", serif; font-size: 18px; font-weight: 500; line-height: 1.4; }
.whats-on-detail__close svg { display: block; width: 14px; height: 14px; }
.whats-on-voucher__form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.whats-on-voucher__form[hidden] { display: none; }
.whats-on-voucher__group { display: flex; flex-direction: column; gap: 12px; }
.whats-on-voucher__title { margin: 0; color: #000; font-family: "Sweet Sans Pro", sans-serif; font-size: 1.25rem; font-weight: 700; line-height: 1.3; letter-spacing: .15em; text-transform: uppercase; text-wrap: balance; outline: none; }
/* The field matches the Contact page's (contact.css .contact-form__row). */
.whats-on-voucher__field { display: flex; flex-direction: column; gap: 10px; }
.whats-on-voucher__field label { color: var(--color-walnut-brown); font-size: 0.75rem; font-weight: 700; line-height: 1.3; letter-spacing: .15em; text-transform: uppercase; }
.whats-on-voucher__field input { width: 100%; height: auto; padding: 8px 0; border: 0; border-bottom: 1px solid var(--justco-border); border-radius: 0; background: transparent; color: var(--color-walnut-brown); font-family: "EB Garamond", serif; font-size: 18px; line-height: 1.3; outline: none; transition: background-color 200ms ease, box-shadow 200ms ease; }
.whats-on-voucher__field input::placeholder { color: var(--justco-placeholder); }
.whats-on-voucher__field input[aria-invalid="true"] { border-bottom-color: var(--color-brick-red); box-shadow: inset 0 -1px 0 var(--color-brick-red); }
.whats-on-voucher__honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.whats-on-voucher__check:empty { display: none; }
.whats-on-voucher__error { margin: -4px 0 0; color: var(--color-brick-red); font-size: 13px; line-height: 1.4; }
.whats-on-voucher__error[hidden] { display: none; }
/* Send voucher takes Claim voucher's place, so it's the same button. */
.whats-on-voucher__submit { display: flex; align-items: center; justify-content: center; width: 100%; height: 2.5rem; padding: 0 10px 0 calc(10px + 0.12em); border: 0; border-radius: 1000px; background: var(--justco-navy); color: var(--color-powder-blue); font-family: "Sweet Sans Pro", sans-serif; font-size: 14px; font-weight: 700; line-height: 17px; letter-spacing: 0.12em; text-transform: uppercase; cursor: var(--justco-cursor-interactive, pointer); transition: background-color 200ms ease, color 200ms ease, opacity 200ms ease; }
.whats-on-voucher__submit:hover,
.whats-on-voucher__submit:focus-visible { background: var(--justco-midnight); color: color-mix(in srgb, var(--color-powder-blue) 35%, #fff); }
.whats-on-voucher__submit:disabled { opacity: .6; cursor: default; }
.whats-on-voucher__consent { margin: 0; color: rgba(20, 20, 20, .5); font-size: 11px; line-height: 1.45; }
.whats-on-voucher__consent a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; transition: color 200ms ease; }
.whats-on-voucher__consent a:hover,
.whats-on-voucher__consent a:focus-visible { color: var(--color-walnut-brown); }
.whats-on-voucher__sent { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.whats-on-voucher__sent[hidden] { display: none; }
.whats-on-voucher__sent p { margin: 0; color: var(--justco-secondary); font-family: "EB Garamond", serif; font-size: 17px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.whats-on-voucher__sent strong { color: var(--color-walnut-brown); font-weight: 600; }
.whats-on-voucher__tick { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--justco-gold); color: var(--color-walnut-brown); }
.whats-on-voucher__submit:focus-visible { outline: 2px solid var(--color-brick-red); outline-offset: 2px; }


@media (max-width: 1260px) {
	.whats-on-clock { height: auto; margin: 52px 24px 0; }
	.whats-on-list { margin-top: 24px; }
	.whats-on-card { gap: 12px; padding-right: 10px; }
	.whats-on-card__thumb { flex-basis: 34%; width: 34%; }
	.whats-on-card__thumb > img { width: 100%; height: 100%; top: 0; left: 0; }
}

/* Where the clock stacks above the list, it scrolls with it: kept sticky, it
   would ride over the cards beneath. */
@media (max-width: 1260px) {
	.whats-on-clock { position: relative; top: auto; }
}

@media (max-width: 1080px) {
	.whats-on-rail { flex-basis: 220px; }
	.whats-on-clock { height: auto; margin: 52px 24px 0; }
	.whats-on-list { margin-top: 24px; }
}

/*
 * Grid ("collage") view, as the Directory's: cards with the photo on top, as
 * many 260px-or-wider columns as the panel holds (two beside an open listing,
 * three when it's closed or expanded), up to the Directory's 1008px. Phones keep
 * the list, where one column would be the same thing, so the toggle hides there.
 */
@media (min-width: 761px), (min-width: 721px) and (min-height: 521px) {
	.whats-on-page[data-view="grid"] .whats-on-list {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
		align-items: stretch;
		width: min(1008px, calc(100% - 48px));
	}

	/* Stretched to the card's width, so a long host name (KARVE Transformer
	   Pilates) is cut short with its ellipsis instead of widening the copy
	   past the card's edge. */
	.whats-on-page[data-view="grid"] .whats-on-card {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		min-height: 0;
		padding: 8px;
	}

	.whats-on-page[data-view="grid"] .whats-on-card__thumb {
		flex: none;
		width: 100%;
		height: auto;
		aspect-ratio: 16 / 10;
	}

	/* The list's photo crops are set for its 192px thumbnails; here each photo
	   simply fills the wider card. */
	.whats-on-page[data-view="grid"] .whats-on-card__thumb > img {
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
	}

	.whats-on-page[data-view="grid"] .whats-on-card__content {
		flex: 1 1 auto;
		min-height: 0;
		padding: 14px 8px 6px;
	}

	/* A little closer than the list's 12px, so a short host name (JustCo
	   Place) fits whole beside its date in a 260-310px card. */
	.whats-on-page[data-view="grid"] .whats-on-card__meta {
		column-gap: 8px;
	}

	/* The 2% hover lift on a wide row card; the grid's smaller cards take 3%, as the Directory's. */
	.whats-on-page[data-view="grid"] .whats-on-card:hover {
		transform: scale(1.03);
	}
}

@media (min-width: 1261px) {
	.whats-on-page[data-view="grid"] .whats-on-list {
		width: min(1008px, calc(100% - var(--whats-on-clock-room) - 24px));
		margin-left: max(var(--whats-on-clock-room), calc((100% - 1008px) / 2));
	}
}

@media (max-width: 720px), (max-width: 760px) and (max-height: 520px) {
	.whats-on-view {
		display: none;
	}
}

@media (min-width: 761px) and (max-width: 782px) {
	body.admin-bar .whats-on-shell { height: calc(100vh - 46px + 30px); }
}

@media (max-width: 720px), (max-width: 760px) and (max-height: 520px) {
	.whats-on-page { height: auto; min-height: 100vh; }
	.whats-on-shell { display: block; padding: var(--site-nav-height) 10px 60px; }
	.whats-on-rail { max-width: none; padding: 10px 0; }
	.whats-on-rail__list { flex-direction: row; gap: 2px; overflow-x: auto; }
	.whats-on-rail__item { flex: 0 0 auto; width: auto; padding-right: 12px; }
	/* As tall as its listings: a fixed 600px left a blank panel under a short
	   list (NEU-530). */
	.whats-on-panel { padding-top: 0; overflow: visible; }
	/* On phones the rail sits above the panel, so expanding hides it instead. */
	.whats-on-page.is-expanded .whats-on-rail { display: none; }
	.whats-on-page.is-expanded .whats-on-panel { z-index: auto; margin-top: 0; background: rgba(255, 255, 255, .8); }
	.whats-on-panel__header,
	.whats-on-page.is-expanded .whats-on-panel__header { position: relative; top: 0; right: auto; left: auto; flex: 0 0 40px; }
	.whats-on-panel__body { overflow: visible; }
	/* No clock on phones: the greeting is enough, and the cards start higher. */
	.whats-on-clock { display: none; }
	.whats-on-panel__sun { width: 16px; height: 16px; }
	[data-greeting] { font-size: 1.125rem; }
	.whats-on-list { width: calc(100% - 32px); margin: 8px 16px 24px; }
	.whats-on-card { gap: 12px; padding-right: 10px; }
	.whats-on-card__thumb { flex-basis: 34%; width: 34%; }
	.whats-on-card__thumb > img { width: 100% !important; height: 100% !important; top: 0 !important; left: 0 !important; }
	.whats-on-card h2 { font-size: 14px; }
	.whats-on-detail h2 { font-size: 1.125rem; }
	.whats-on-card__copy p { font-size: 15px; }
	.whats-on-card__meta { flex-wrap: wrap; font-size: 11px; }
	.whats-on-card__period { font-size: 0.875rem; line-height: 1.25rem; }
	/* The merchant leads, above the title; the date stays at the foot. The meta
	   row's box steps aside so its two parts can sit apart (still inheriting its type). */
	.whats-on-card__meta { display: contents; }
	.whats-on-card__meta > .whats-on-card__owner { order: -1; gap: 5px; font-size: 0.6875rem; }
	.whats-on-card__badge { font-size: 0.6875rem; }
	.whats-on-card__badge-icon { width: 13px; height: 13px; }
	.whats-on-card__copy { order: 0; }
	.whats-on-card__meta > .whats-on-card__period { order: 1; }
	/* A long name, tracked out, wraps beside its logo rather than past the card. */
	.whats-on-card__meta > .whats-on-card__owner { min-width: 0; max-width: 100%; }
	/* The page scrolls under the navbar here, so the cards fade into it rather
	   than cut off at its edge. It's the shell's powder blue, as the bar is. */
	.whats-on-shell::before {
		content: "";
		position: fixed;
		z-index: 4;
		top: var(--site-nav-height);
		right: 0;
		left: 0;
		height: 32px;
		background: linear-gradient(to bottom, var(--color-powder-blue), transparent);
		pointer-events: none;
	}
	/* The scroll fade under the navbar starts below the admin bar too. */
	body.admin-bar .whats-on-shell::before { top: calc(var(--site-nav-height) + var(--justco-admin-bar, 46px)); }
	/* The popover is a full-screen sheet: the photo on top, the details below
	   it, and the close over the photo on its own disc. */
	.whats-on-detail { padding: 0; }
	/* Phones, claiming: the photo eases down to a slim strip, so the email
	   field sits high on the screen, clear of the keyboard when it opens. Its
	   3:2 height is set from the screen's width so the change can animate. */
	.whats-on-detail.is-claim-strip .whats-on-detail__image { height: 96px; }
	.whats-on-voucher__title { font-size: 1.125rem; }
	/* 16px from the tick to "Check your inbox"; the title keeps 8px to its text. */
	.whats-on-voucher__tick { margin-bottom: 8px; }
	body.admin-bar .whats-on-detail { top: var(--justco-admin-bar, 46px); }
	.whats-on-detail__inner { display: flex; flex-direction: column; width: 100%; height: 100%; border-radius: 0; box-shadow: none; transform: translateY(24px); }
	.whats-on-detail__image { flex: 0 0 auto; height: calc(100vw * 2 / 3); transition: height 420ms cubic-bezier(.22, 1, .36, 1); }
	.whats-on-detail__body { padding: 20px 20px 24px; }
	.whats-on-detail__close { top: 10px; right: 10px; width: 40px; height: 40px; }
	.whats-on-detail__owner { padding-right: 0; }
	/* The fade does the separating, so the bar drops its 1px line (style.css). */
	.site-nav.whats-on-nav.site-nav--scrolled { box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
	.whats-on-detail :is(.whats-on-detail__owner, #whats-on-detail-title, [data-detail-description], .whats-on-detail__accordion, .whats-on-detail__action) { translate: none; transition: none; }
	.whats-on-rail__item,
	.whats-on-rail__icon,
	.whats-on-rail__glyph { transition: none; }
	.whats-on-panel__expand { transition: none; }
	.whats-on-card { transition: none; }
	.whats-on-card:hover { transform: none; }
	.whats-on-voucher,
	.whats-on-voucher__form,
	.whats-on-detail__image,
	.whats-on-page.has-detail .whats-on-detail.is-stepping :is(.whats-on-detail__content, .whats-on-detail__action) { translate: none; transition: none; }
	.whats-on-voucher__sent:not([hidden]) { animation: none; }
	.whats-on-shell,
	.whats-on-panel,
	.whats-on-panel__header,
	.whats-on-detail,
	.whats-on-detail__inner,
	.whats-on-detail__body,
	.whats-on-detail__accordion summary img { transition: none; }
}

/* Tablets and phones: the scrolled bar takes the shell's powder blue (style.css). */
@media (max-width: 1024px) {
	.whats-on-nav {
		--site-nav-bar: var(--color-powder-blue);
		--site-nav-bar-ink: #000;
	--site-nav-bar-cta: var(--justco-midnight);
	--site-nav-bar-cta-ink: var(--color-powder-blue);
	}

	/* The menu button matches Get in touch: midnight with powder blue lines. */
	.site-nav.whats-on-nav:not(.site-nav--menu-open) .site-nav__menu-button {
		background: var(--justco-midnight);
		color: var(--color-powder-blue);
	}
}
