/* What's On: the homepage strip (partials/coming-up.php) and the page (templates/whats-on.php) */
.coming-up {
	padding-top: 3.5rem;
	padding-bottom: 3.5rem;
}

.coming-up-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
	margin-bottom: 1.5rem;
}

.coming-up h2 {
	font-size: 2.125rem;
	letter-spacing: -0.02em;
	margin-bottom: .375rem;
}

.coming-up-intro {
	color: #5E5256;
	margin: 0;
}

.coming-up-cards {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.coming-up-card,
.coming-up-card:is(:hover, :focus) {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--white);
	border-radius: 1rem;
	overflow: hidden;
	color: var(--primary) !important;
	text-decoration: none !important;
	box-shadow: 0 1px 2px rgba(35, 31, 32, .06), 0 8px 22px rgba(35, 31, 32, .07);
	transition: transform .2s ease-in-out;
}

.coming-up-card:hover {
	transform: translateY(-2px);
}

.coming-up-photo {
	position: relative;
	display: block;
	aspect-ratio: 224 / 170;
	overflow: hidden;
	background: var(--peach);
}

.coming-up-photo img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.coming-up-badge {
	position: absolute;
	top: .625rem;
	left: .625rem;
	padding: .3rem .625rem;
	border-radius: 2rem;
	background: var(--white);
	color: #B0123F;
	font-size: .75rem;
	font-weight: 700;
	line-height: 1.2;
}

.coming-up-body {
	display: flex;
	flex-direction: column;
	gap: .25rem;
	flex: 1;
	padding: .75rem .875rem .875rem;
}

.coming-up-when {
	font-size: .75rem;
	font-weight: 600;
	color: #6E6064;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.coming-up-name {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.25;
}

.coming-up-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding-top: .5rem;
}

.coming-up-price {
	font-weight: 700;
}

.coming-up-book {
	padding: .45rem 1rem;
	border-radius: 2rem;
	background: var(--red);
	color: var(--white);
	font-size: .875rem;
	font-weight: 700;
	transition: background-color .2s ease-in-out;
}

.coming-up-card:hover .coming-up-book {
	background: var(--pink);
}

/* Narrower than a row of five: one sideways-scrolling row that runs to the screen's edges. */
@media (max-width: 1199.98px) {
	.coming-up-cards {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-left: 1.5rem;
		margin: -.5rem -1.5rem -1rem;
		padding: .5rem 1.5rem 1rem;
		scrollbar-width: none;
	}

	.coming-up-cards::-webkit-scrollbar {
		display: none;
	}

	.coming-up-cards > li {
		flex: 0 0 230px;
		scroll-snap-align: start;
	}
}

@media (max-width: 767.98px) {
	.coming-up {
		padding-top: 2.5rem;
		padding-bottom: 2.5rem;
	}

	.coming-up h2 {
		font-size: 1.625rem;
	}

	.coming-up-all-phone {
		display: flex;
		margin-top: 1.25rem;
	}

	.coming-up-all-phone .button {
		width: 100%;
		text-align: center;
	}
}

/* ── The What's On page ── */
.whats-on [hidden] {
	display: none !important;
}

.whats-on-column {
	max-width: 800px;
	margin: 0 auto;
	padding-left: 20px;
	padding-right: 20px;
}

.whats-on-header {
	text-align: center;
	margin-bottom: 1.5rem;
}

.whats-on-header h1 {
	font-size: clamp(2rem, 4vw, 2.625rem);
	letter-spacing: -0.03em;
	line-height: 1.05;
	margin-bottom: .75rem;
}

.whats-on-header p {
	color: #4A3F43;
	margin: 0;
}

.whats-on-message {
	text-align: center;
	color: #6E6064;
	padding: 2.5rem 0;
}

.whats-on-message a {
	color: var(--primary) !important;
	font-weight: 700;
}

/* Wrapped and centred rather than scrolled sideways, so every category is in view without a swipe. */
.whats-on-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .5rem;
}

.whats-on-chip {
	flex: none;
	height: 40px;
	padding: 0 18px;
	border-radius: 2rem;
	border: 1px solid #E8DDE0;
	background: var(--white);
	color: var(--primary);
	font-family: inherit;
	font-size: .875rem;
	font-weight: 600;
	white-space: nowrap;
}

.whats-on-chip[aria-pressed="true"] {
	border-color: var(--primary);
	background: var(--primary);
	color: var(--white);
	font-weight: 700;
}

.whats-on-days {
	display: flex;
	flex-direction: column;
	gap: 30px;
	margin-top: 18px;
}

.whats-on-day {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.whats-on-day-head {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding-bottom: 8px;
	border-bottom: 1px solid #EDE3E6;
}

.whats-on-day-head h2 {
	margin: 0;
	font-size: 1.25rem;
	letter-spacing: -0.01em;
}

.whats-on-day-head span {
	font-size: .875rem;
	font-weight: 600;
	color: #6E6064;
}

.whats-on-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: minmax(0, 1fr);
}

.whats-on-card {
	position: relative;
	display: flex;
	flex-direction: column;
	border-radius: 18px;
	overflow: hidden;
	background: var(--white);
	box-shadow: 0 1px 2px rgba(35, 31, 32, .06), 0 8px 24px rgba(35, 31, 32, .07);
}

.whats-on-card.is-sold-out {
	background: #FFF0F3;
}

/* The whole card books: a link under the content, which lets clicks through to it. */
.whats-on-cover {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.whats-on-photo {
	position: relative;
	flex: none;
	height: 190px;
	background: var(--peach);
	pointer-events: none;
}

.whats-on-photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.whats-on-wash {
	position: absolute;
	inset: 0;
	background: #FFC3C9;
	opacity: .45;
}

.whats-on-sold-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 4px 10px;
	border-radius: 2rem;
	background: var(--primary);
	color: var(--white);
	font-size: .6875rem;
	font-weight: 700;
	letter-spacing: .08em;
}

.whats-on-body {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
	min-width: 0;
	padding: 14px 16px 16px;
	pointer-events: none;
}

.is-sold-out .whats-on-body {
	pointer-events: auto;
}

.whats-on-title {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
}

.whats-on-title h3,
.whats-on-title span {
	margin: 0;
	font-family: var(--sans-serif);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: var(--primary);
}

.whats-on-title span {
	white-space: nowrap;
}

.whats-on-meta,
.whats-on-line,
.whats-on-sold-note {
	margin: 0;
	font-size: .875rem;
	line-height: 1.45;
}

.whats-on-meta {
	font-weight: 600;
	color: #4A3F43;
}

.whats-on-line {
	color: #5E5256;
}

.whats-on-sold-note {
	font-size: .8125rem;
	font-weight: 700;
	color: var(--primary);
}

.whats-on-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 8px;
}

.whats-on-spots {
	padding: 5px 10px;
	border-radius: 2rem;
	background: #FFE3E8;
	color: #A3123E;
	font-size: .75rem;
	font-weight: 700;
	white-space: nowrap;
}

.whats-on-book,
.whats-on-book:is(:hover, :focus) {
	display: flex;
	align-items: center;
	flex: none;
	height: 44px;
	margin-left: auto;
	padding: 0 22px;
	border-radius: 2rem;
	background: var(--red);
	color: var(--white) !important;
	font-size: .9375rem;
	font-weight: 700;
	text-decoration: none !important;
	transition: background-color .2s ease-in-out;
}

.whats-on-card:hover .whats-on-book,
a.whats-on-book:hover {
	background: var(--pink);
}

.whats-on-sold-label {
	margin-left: auto;
	padding: 0 4px;
	color: #4A3F43;
	font-size: .9375rem;
	font-weight: 700;
}

.whats-on-updated {
	text-align: center;
	font-size: .75rem;
	color: #6E6064;
	margin: 1.25rem 0 0;
}

/* Wider than a phone: the photo down the left of each card. */
@media (min-width: 720px) {
	.whats-on-grid {
		gap: 18px;
	}

	.whats-on-card {
		flex-direction: row;
		min-height: 196px;
	}

	.whats-on-photo {
		width: 220px;
		height: auto;
		align-self: stretch;
	}

	.whats-on-body {
		justify-content: center;
	}

	.whats-on-actions {
		margin-top: 12px;
	}
}
