/*
 * Light Custom — its own stylesheet.
 *
 * Loaded after the shared `events.css`, only while this template draws the
 * page. The forms have stylesheets of their own beside this file
 * (`*.form.css`, which become each form's `custom_css`); this file draws the
 * page around them, and Book now's window and its steps.
 *
 * The site theme's look (JHLC): a light grey page, white square cards with no
 * frame, Tilda Sans, centred headings, a teal pill for the button, green only
 * for small accent marks. One column at every width, the hero's 1040px.
 *
 * Contents
 *   1. Tokens       5. Sections         9. Less motion
 *   2. The page     6. Passes as buttons 10. Book now's window
 *   3. The hero     6b. Passes as tickets 11. Its steps
 *   4. The column   7. Borrowed pieces   12. The forms in the site's colours
 *                   8. Phones           13. Labels in the field
 */

/* -- 1. Tokens --------------------------------------------------------------- */

/* Everything a site is likely to change, in one place — the theme's own presets first. */
.event-page--light {
	--light-font: var(--wp--preset--font-family--tilda-sans, 'Tilda Sans', TildaSans, Arial, sans-serif);

	--light-page: var(--wp--preset--color--ground, #f9f9f9);
	--light-card: var(--wp--preset--color--surface, #fff);
	--light-ink: var(--wp--preset--color--ink, #000);
	--light-copy: var(--wp--preset--color--copy, #333);
	--light-soft: rgb(0 0 0 / 0.6);
	--light-faint: rgb(0 0 0 / 0.42);
	--light-line: #e6e6e6;
	--light-line-strong: #d2d2d2;
	--light-danger: #c0392b;

	--light-accent: var(--wp--preset--color--teal, #179fa7);
	--light-accent-deep: var(--wp--preset--color--teal-strong, #127f86);
	--light-accent-soft: rgb(23 159 167 / 0.08);
	--light-accent-ring: 0 0 0 3px rgb(23 159 167 / 0.2);
	--light-mark: var(--wp--preset--color--green, #40d86f);

	/* The column: one, centred, every card the same width — the hero's, so
	   the 1040 × 546 picture is shown at its own size. */
	--light-width: 1040px;
	--light-gap: 20px;
	--light-pad: clamp(20px, 4vw, 40px);

	/* Where a section stops when a link jumps to it: under the admin bar. A
	   theme with a fixed header adds its height here. */
	--light-sticky-top: calc(var(--wp-admin--admin-bar--height, 0px) + 1rem);
}

/* -- 2. The page ------------------------------------------------------------- */

body:has(.event-page--light) {
	background: var(--light-page, #f9f9f9);
}

.event-page--light {
	max-width: none;
	margin: 0;
	padding: clamp(16px, 3vw, 40px) var(--wp--preset--spacing--gutter, 20px) clamp(40px, 6vw, 80px);
	background: var(--light-page);
	color: var(--light-ink);
	font-family: var(--light-font);
	font-size: 18px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

.event-page--light *,
.event-page--light *::before,
.event-page--light *::after {
	box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
	html:has(.event-page--light) {
		scroll-behavior: smooth;
	}
}

/*
 * The button: the theme's teal pill — Book now, and the window's Next.
 * A quiet one (Back) is the same shape, teal words on nothing.
 */
.event-page--light .light-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	min-height: 50px;
	margin: 0;
	padding: 14.5px 44px;
	border: 0;
	border-radius: 30px;
	background: var(--light-accent);
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 21px;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.16s ease, color 0.16s ease, opacity 0.16s ease;
}

.event-page--light .light-button:hover:not(:disabled),
.event-page--light .light-button:focus-visible {
	background: var(--light-accent-deep);
	color: #fff;
}

.event-page--light .light-button:focus-visible {
	outline: 2px solid var(--light-accent);
	outline-offset: 3px;
}

.event-page--light .light-button:disabled {
	cursor: default;
	opacity: 0.55;
}

.event-page--light .light-button--quiet {
	padding-inline: 20px;
	background: none;
	color: var(--light-accent);
}

.event-page--light .light-button--quiet:hover:not(:disabled),
.event-page--light .light-button--quiet:focus-visible {
	background: var(--light-accent-soft);
	color: var(--light-accent-deep);
}

/* -- 3. The hero ------------------------------------------------------------- */

/* The picture, then — on the same white card — the title, the tickets, when and where, Book now. */
.light-hero {
	max-width: var(--light-width);
	margin: 0 auto;
	overflow: hidden;
	background: var(--light-card);
	text-align: center;
}

/* The photo is the image block's background, covering it; the block takes
   the picture's own shape, 1040 × 546 (one picture everywhere). */
.light-hero .light-hero__image {
	display: block;
	width: 100%;
	margin: 0;
	aspect-ratio: 1040 / 546;
	background-color: #ececec;
	background-image: var(--light-hero-desktop);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

/* A desktop: the picture at 70% — 728 × 382 — in the middle of the card, the card's white around it. */
@media (min-width: 783px) {
	.light-hero .light-hero__image {
		width: 70%;
		margin: 0 auto;
	}
}

/* No picture: the title straight over the tickets. */
.light-hero--bare .light-hero__pane {
	padding-top: 0;
}

/* The title, over the picture. */
.light-hero__heading {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: clamp(24px, 3.5vw, 40px) var(--light-pad) clamp(20px, 2.5vw, 28px);
}

.light-hero__pane {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	padding: clamp(20px, 2.5vw, 28px) var(--light-pad) clamp(32px, 4.5vw, 48px);
}

.light-hero__title {
	max-width: 22em;
	margin: 0;
	color: var(--light-ink);
	font-family: inherit;
	font-size: clamp(30px, 4.2vw, 46px);
	font-weight: 600;
	line-height: 1.23;
	text-wrap: balance;
}

/* Ended, or sold out: the theme's eyebrow, over the title. */
.light-status {
	margin: 0;
	color: var(--light-soft);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 2.5px;
	line-height: 17px;
	text-transform: uppercase;
}

.light-status--sold-out {
	color: var(--light-danger);
}

/* The tickets: a tile each, its name over its price, in a centred row. */
.light-tickets {
	display: flex;
	flex-wrap: wrap;
	align-self: stretch;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.light-ticket {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
	min-width: 104px;
	padding: 7px 16px;
	border: 1px solid var(--light-line);
	background: var(--light-card);
	line-height: 1.3;
}

.light-ticket__name {
	color: var(--light-copy);
	font-size: 13px;
	font-weight: 500;
}

.light-ticket__price {
	color: var(--light-ink);
	font-size: 16px;
	font-weight: 600;
}

.light-ticket__out {
	color: var(--light-danger);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

.light-ticket--sold-out .light-ticket__price {
	color: var(--light-faint);
	text-decoration: line-through;
}

/* When and where: centred, an icon before each. */
.light-facts {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--light-copy);
	font-size: 17px;
	font-weight: 500;
}

.light-fact {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
}

.light-fact__icon {
	flex: none;
	width: 1.2em;
	height: 1.2em;
	fill: none;
	stroke: var(--light-accent);
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.light-fact a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--light-line-strong);
	text-underline-offset: 0.2em;
}

.light-fact a:hover {
	text-decoration-color: currentColor;
}

.event-page--light .light-reserve-now {
	margin-top: 4px;
	min-width: 220px;
}

/* The line under Book now (Registration settings → Button hint): close under it, quiet. */
.light-reserve-hint {
	max-width: 32em;
	margin: -10px 0 0;
	color: var(--light-soft);
	font-size: 14px;
	line-height: 1.4;
	text-align: center;
	text-wrap: balance;
}

.light-hero__note {
	max-width: 32em;
	margin: 0;
	color: var(--light-soft);
	font-size: 16px;
}

/* -- 4. The column ----------------------------------------------------------- */

/* ONE column at every width: nothing sits beside anything else. */
.light-column {
	display: grid;
	gap: var(--light-gap);
	margin: var(--light-gap) 0 0;
}

.light-column > * {
	justify-self: center;
	width: 100%;
	max-width: var(--light-width);
}

/* What people said, before it arrives — or when there is nothing to say. */
.light-column > .ax-live:empty {
	display: none;
}

/* -- 5. Sections ------------------------------------------------------------- */

/* A white square card, its title centred over a short green mark. */
.light-card,
.event-page--light .event-reviews {
	min-width: 0;
	margin: 0;
	padding: var(--light-pad);
	border: 0;
	border-radius: 0;
	background: var(--light-card);
	box-shadow: none;
	scroll-margin-top: var(--light-sticky-top);
}

.light-card__title,
.event-page--light .event-section__title {
	margin: 0 0 24px;
	color: var(--light-ink);
	font-family: inherit;
	font-size: clamp(22px, 2.6vw, 28px);
	font-weight: 600;
	line-height: 1.23;
	text-align: center;
}

.light-card__title::after,
.event-page--light .event-section__title::after {
	content: '';
	display: block;
	width: 40px;
	height: 3px;
	margin: 14px auto 0;
	background: var(--light-mark);
}

.light-card__lead {
	max-width: 36em;
	margin: -8px auto 24px;
	color: var(--light-soft);
	font-size: 16px;
	text-align: center;
}

.light-card__lead:last-child {
	margin-bottom: 0;
}

/* The author's words, at a reading measure. */
.light-card .event-description {
	max-width: 720px;
	margin: 0 auto;
	color: var(--light-copy);
	font-size: 18px;
	line-height: 1.6;
}

.light-card .event-description > :first-child {
	margin-top: 0;
}

.light-card .event-description > :last-child {
	margin-bottom: 0;
}

.light-card .event-description :is(h2, h3, h4) {
	margin: 1.5em 0 0.4em;
	color: var(--light-ink);
	font-family: inherit;
	font-size: 20px;
	font-weight: 600;
}

.light-card .event-description a {
	color: var(--light-accent);
}

/* The feedback form: no wider than 600px, in the middle of its card. */
.light-feedback > .form-wrap {
	max-width: 600px;
	margin: 0 auto;
}

/* -- 6. One pass per registration: the passes as buttons ------------------- */

/*
 * When the event takes ONE pass per registration, Forms draws each pass as a
 * radio (a `pick` group). Here they are buttons, as the name-your-price
 * amounts are — the pass's name, its price under it — two to a row; anything
 * else in the section (a name-your-price pass) keeps a row of its own. The
 * radio is still the control: hidden from sight, not from the keyboard or a
 * screen reader, and the whole button is its label.
 *
 * In this file rather than in `registration.form.css`, so a form built before
 * it is drawn the same way; `#register` outranks the form's own scoped CSS.
 */
.event-page--light #register .section__body:has(> .field .payment--pick) {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: stretch;
	gap: 0.5em;
}

/* Forms' own grid spans every question across both columns on a wide form. */
.event-page--light #register .section__body:has(> .field .payment--pick) > .field:has(.payment--pick) {
	grid-column: auto;
}

.event-page--light #register .section__body:has(> .field .payment--pick) > .field:not(:has(.payment--pick)) {
	grid-column: 1 / -1;
}

.event-page--light #register .field--payment:has(.payment--pick) {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.15em;
	margin: 0;
	padding: 0.8em 1em;
	border: 1px solid var(--light-line-strong);
	border-radius: 0;
	background: #fff;
	text-align: center;
	line-height: 1.25;
	cursor: pointer;
	transition: background-color 0.12s ease, border-color 0.12s ease;
}

.event-page--light #register .field--payment:has(.payment--pick):hover {
	background: #fafafa;
}

.event-page--light #register .field--payment:has(.payment__pick-input:checked) {
	border-color: var(--light-accent);
	background: var(--light-accent-soft);
	box-shadow: inset 0 0 0 1px var(--light-accent);
}

.event-page--light #register .field--payment:has(.payment__pick-input:focus-visible) {
	outline: 3px solid rgb(23 159 167 / 0.35);
	outline-offset: 2px;
}

.event-page--light #register .field--payment:has(.payment--pick) > .field__label {
	margin: 0;
	font-size: 1em;
	font-weight: 600;
	cursor: pointer;
}

.event-page--light #register .field--payment:has(.payment--pick) > .field__hint {
	margin: 0;
	font-size: 0.82em;
}

.event-page--light #register .payment--pick,
.event-page--light #register .payment--pick:has(.payment__pick-input:checked) {
	display: block;
	padding: 0;
	border: 0;
	background: none;
}

/* The label stretched over the whole button: a press anywhere chooses it. */
.event-page--light #register .payment__pick {
	display: block;
	padding: 0;
	cursor: pointer;
}

.event-page--light #register .payment__pick::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.event-page--light #register .payment__pick-input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}

.event-page--light #register .payment--pick .payment__price {
	margin: 0;
	color: var(--light-soft);
	font-size: 0.9em;
	font-weight: 600;
}

.event-page--light #register .field--payment:has(.payment__pick-input:checked) .payment__price {
	color: inherit;
}

/* On the narrowest phones, one to a row. */
@media (max-width: 359px) {
	.event-page--light #register .section__body:has(> .field .payment--pick) {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* -- 6b. The passes as tickets ------------------------------------------------ */

/*
 * In Book now's Passes step each pass with a quantity is a small ticket:
 * its name on the left, its description under it; on the right, on one line
 * and centred on the ticket's height, what the line comes to (`.light-line`,
 * written by `template.js`: the price times how many, or the price alone
 * while none are chosen) and − quantity + in round buttons. The right edge
 * is cut into small triangles — a mask, so the ticket's own colour shows
 * through nothing.
 *
 * Forms' `.payment` box is dissolved (`display: contents`) so its stepper
 * sits on the ticket's grid beside the name; its "each" line goes — the
 * ticket's own amount says it. A ticket with one chosen is tinted, a teal bar
 * down its left (`light-chosen`, Forms' `mark()`).
 */
.event-page--light #register .field--payment:has(> .light-line) {
	--tooth: 5px;

	display: grid;
	grid-template-areas:
		'title amount controls'
		'hint amount controls'
		'error error error';
	grid-template-columns: minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 0 16px;
	margin: 0;
	padding: 12px calc(16px + var(--tooth)) 12px 16px;
	border: 0;
	border-radius: 0;
	background: #f3f3f3;
	-webkit-mask:
		linear-gradient(#000 0 0) left / calc(100% - var(--tooth)) 100% no-repeat,
		conic-gradient(from 225deg at right, #000 90deg, #0000 0) right / var(--tooth) calc(2 * var(--tooth)) repeat-y;
	mask:
		linear-gradient(#000 0 0) left / calc(100% - var(--tooth)) 100% no-repeat,
		conic-gradient(from 225deg at right, #000 90deg, #0000 0) right / var(--tooth) calc(2 * var(--tooth)) repeat-y;
	transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.event-page--light #register .field--payment.light-chosen:has(> .light-line) {
	background: rgb(23 159 167 / 0.1);
	box-shadow: inset 3px 0 0 var(--light-accent);
}

.event-page--light #register .field--payment:has(> .light-line) > .payment {
	display: contents;
}

.event-page--light #register .field--payment:has(> .light-line) > .field__label {
	grid-area: title;
	align-self: end;
	margin: 0;
	color: var(--light-ink);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.25;
}

/* No description: the name in the middle of the ticket's height. */
.event-page--light #register .field--payment:has(> .light-line):not(:has(> .field__hint)) > .field__label {
	grid-row: 1 / 3;
	align-self: center;
}

.event-page--light #register .field--payment:has(> .light-line) > .field__hint {
	grid-area: hint;
	align-self: start;
	margin: 2px 0 0;
	color: var(--light-soft);
	font-size: 14px;
	line-height: 1.4;
}

.event-page--light #register .field--payment > .light-line {
	grid-area: amount;
	justify-self: end;
	color: var(--light-ink);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.event-page--light #register .field--payment:has(> .light-line) .payment__price {
	display: none;
}

.event-page--light #register .field--payment:has(> .light-line) > .field__error {
	grid-area: error;
	margin-top: 6px;
}

/* − 2 +: round buttons, the quantity between them. */
.event-page--light #register .field--payment:has(> .light-line) .stepper {
	display: flex;
	grid-area: controls;
	align-items: center;
	gap: 4px;
	width: auto;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
}

.event-page--light #register .field--payment:has(> .light-line) .stepper__button {
	display: grid;
	place-items: center;
	flex: none;
	width: 30px;
	min-width: 0;
	height: 30px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 1.5px solid var(--light-accent);
	border-radius: 50%;
	background: #fff;
	color: var(--light-accent);
	font-size: 17px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.event-page--light #register .field--payment:has(> .light-line) .stepper__button:hover:not(:disabled) {
	background: var(--light-accent);
	color: #fff;
}

.event-page--light #register .field--payment:has(> .light-line) .stepper__button:disabled {
	border-color: var(--light-line-strong);
	background: #fff;
	color: var(--light-faint);
	opacity: 1;
	cursor: default;
}

.event-page--light #register .field--payment:has(> .light-line) .stepper__input {
	width: 2em;
	min-width: 0;
	min-height: 0;
	height: 30px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: var(--light-ink);
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

.event-page--light #register .field--payment:has(> .light-line) .stepper__input::-webkit-inner-spin-button,
.event-page--light #register .field--payment:has(> .light-line) .stepper__input::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.event-page--light #register .field--payment:has(> .light-line) .stepper__input:focus-visible {
	outline: 2px solid var(--light-accent);
	outline-offset: 2px;
}

/* The total, under the tickets. */
.light-reserve[data-light-at='passes'] .form__total {
	margin-top: 4px;
}

/* A phone: closer together. */
@media (max-width: 480px) {
	.event-page--light #register .field--payment:has(> .light-line) {
		column-gap: 10px;
		padding: 10px calc(12px + var(--tooth)) 10px 12px;
	}

	.event-page--light #register .field--payment:has(> .light-line) > .field__label,
	.event-page--light #register .field--payment > .light-line {
		font-size: 16px;
	}

	.event-page--light #register .field--payment:has(> .light-line) > .field__hint {
		font-size: 13px;
	}
}

/* -- 7. Borrowed pieces: the room, and what people said ------------------------ */

.event-page--light .event-plan {
	min-width: 0;
}

/*
 * What people said: the cards in a row with an arrow either side of them.
 * Its markup is the Events plugin's — a head (title, summary, the two
 * buttons) and the track — so the head and the buttons' box are dissolved
 * (`display: contents`) and their pieces laid on one grid: the title and the
 * summary across the top, then ‹ cards ›.
 */
.event-page--light .event-reviews {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
}

.event-page--light :is(.event-reviews__head, .event-reviews__nav) {
	display: contents;
}

/* Nothing to scroll — every card already fits — and the arrows go. */
.event-page--light .event-reviews__nav[hidden] {
	display: none;
}

.event-page--light .event-reviews .event-section__title,
.event-page--light .event-reviews__summary {
	grid-column: 1 / -1;
}

.event-page--light .event-reviews__summary {
	justify-content: center;
	margin: -8px 0 24px;
	color: var(--light-soft);
	font-size: 15px;
	text-align: center;
}

.event-page--light .event-reviews__average {
	color: var(--light-ink);
}

.event-page--light .event-reviews__count {
	color: var(--light-faint);
}

.event-page--light .event-reviews__track {
	grid-column: 2;
	grid-row: 3;
	grid-auto-columns: calc((100% - 2rem) / 3);
	gap: 1rem;
	padding: 0;
}

/* The arrows do the scrolling once the script has wired them: no bar under the cards. */
.event-page--light .event-reviews[data-wired] .event-reviews__track {
	scrollbar-width: none;
}

.event-page--light .event-reviews[data-wired] .event-reviews__track::-webkit-scrollbar {
	display: none;
}

/* ‹ and ›: a plain circle each side, a drawn chevron in place of the glyph. */
.event-page--light .event-reviews__button {
	grid-row: 3;
	width: 36px;
	height: 36px;
	border: 1px solid var(--light-line);
	background: #fff;
	color: var(--light-ink);
	font-size: 0;
	transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.event-page--light .event-reviews__button[data-scroll='-1'] {
	grid-column: 1;
	margin-inline-end: 0.75rem;
}

.event-page--light .event-reviews__button[data-scroll='1'] {
	grid-column: 3;
	margin-inline-start: 0.75rem;
}

.event-page--light .event-reviews__button::before {
	content: '';
	width: 7px;
	height: 7px;
	margin-inline-start: -3px;
	border: solid currentColor;
	border-width: 0 1.6px 1.6px 0;
	transform: rotate(-45deg);
}

.event-page--light .event-reviews__button[data-scroll='-1']::before {
	margin-inline-start: 3px;
	transform: rotate(135deg);
}

.event-page--light .event-reviews__button:hover:not(:disabled) {
	border-color: var(--light-accent);
	background: var(--light-accent);
	color: #fff;
}

.event-page--light .event-reviews__button:focus-visible {
	outline: 2px solid var(--light-accent);
	outline-offset: 2px;
}

.event-page--light .event-reviews__button:disabled {
	opacity: 0.3;
}

/* A card: no tile and no edge — the stars, the words, who said them. */
.event-page--light .event-review {
	gap: 0.7rem;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
}

.event-page--light .event-review__stars {
	font-size: 0.875rem;
}

.event-page--light .event-review__star {
	color: rgb(0 0 0 / 0.14);
}

.event-page--light .event-review__star.is-on {
	color: #f5a623;
}

.event-page--light .event-review__text {
	color: var(--light-copy);
	font-size: 16px;
	line-height: 1.6;
}

.event-page--light .event-review__by {
	padding-top: 0;
	color: var(--light-faint);
	font-size: 14px;
}

.event-page--light .event-review__who {
	color: var(--light-ink);
}

/* Narrower: two cards in view. */
@media (max-width: 900px) {
	.event-page--light .event-reviews__track {
		grid-auto-columns: calc((100% - 1rem) / 2);
	}
}

/* A phone: one card in view, the arrows closer to it. */
@media (max-width: 640px) {
	.event-page--light .event-reviews__track {
		grid-auto-columns: 100%;
	}

	.event-page--light .event-reviews__button[data-scroll='-1'] {
		margin-inline-end: 0.5rem;
	}

	.event-page--light .event-reviews__button[data-scroll='1'] {
		margin-inline-start: 0.5rem;
	}
}

/* -- 8. Phones -------------------------------------------------------------- */

@media (max-width: 782px) {
	.event-page--light {
		--light-gap: 12px;

		padding-inline: 16px;
		font-size: 16px;
	}

	/* The same picture on a phone, at its phone size: 367 × 193. */
	.light-hero .light-hero__image {
		aspect-ratio: 367 / 193;
	}

	.light-hero__pane {
		gap: 16px;
	}

	.light-tickets {
		gap: 6px;
	}

	.light-ticket {
		flex: 0 1 auto;
		min-width: 88px;
		padding: 6px 12px;
	}

	.light-facts {
		flex-direction: column;
		align-items: center;
		font-size: 16px;
	}

	/* Book now as wide as the card, under the thumb. */
	.event-page--light .light-reserve-now {
		align-self: stretch;
	}
}

/* -- 9. Less motion --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.event-page--light *,
	.event-page--light *::before {
		transition: none !important;
		animation: none !important;
	}
}

/* -- 10. Book now's window -------------------------------------------------- */

/*
 * The registration form in a `<dialog>`, opened by Book now
 * (`template.js`): a white box in the middle of a dimmed page — its title and
 * ✕, the steps, the form scrolling under them, and Back | Next at its foot.
 * On a phone it is a sheet rising from the bottom edge.
 */
.light-modal {
	width: min(36rem, calc(100% - 2rem));
	max-width: none;
	max-height: min(92dvh, 56rem);
	margin: auto;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 0;
	background: var(--light-card);
	color: var(--light-ink);
	box-shadow: 0 24px 64px rgb(0 0 0 / 0.2), 0 2px 6px rgb(0 0 0 / 0.06);
}

.light-modal[open] {
	display: flex;
	flex-direction: column;
	animation: light-modal-in 0.2s ease-out;
}

.light-modal::backdrop {
	background: rgb(0 0 0 / 0.45);
	backdrop-filter: blur(2px);
}

/* The page under it stays where it is. */
html:has(.light-modal[open]) {
	overflow: hidden;
}

.light-modal__head {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 18px 16px 16px 24px;
	border-bottom: 1px solid var(--light-line);
}

.light-modal__title {
	flex: 1;
	margin: 0;
	color: var(--light-ink);
	font-family: inherit;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.23;
}

.event-page--light .light-modal__close {
	display: grid;
	place-items: center;
	flex: none;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #f1f1f1;
	color: var(--light-soft);
	cursor: pointer;
	transition: background-color 0.16s ease, color 0.16s ease;
}

.event-page--light .light-modal__close:hover {
	background: #e6e6e6;
	color: var(--light-ink);
}

.event-page--light .light-modal__close:focus-visible {
	outline: 2px solid var(--light-accent);
	outline-offset: 2px;
}

.light-modal__close svg {
	width: 1.1rem;
	height: 1.1rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

.light-modal__body {
	flex: 1 1 auto;
	padding: 24px 24px 28px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

/* Back on the left, the step's button on the right. */
.light-modal__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 24px calc(14px + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid var(--light-line);
}

.light-modal__foot[hidden] {
	display: none;
}

/* With no Back (the first step, the thank-you) the button keeps to the right. */
.light-modal__foot [data-light-next] {
	margin-inline-start: auto;
	min-width: 180px;
}

.light-modal__foot [hidden] {
	display: none;
}

@keyframes light-modal-in {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.98);
	}
}

/* A phone: a sheet from the bottom, the full width. */
@media (max-width: 640px) {
	.light-modal {
		width: 100%;
		max-height: 94dvh;
		margin: auto 0 0;
	}

	.light-modal__head {
		padding-left: 16px;
	}

	.light-modal__body {
		padding: 20px 16px 24px;
	}

	.light-modal__foot {
		padding-inline: 16px;
	}

	.light-modal__foot [data-light-next] {
		flex: 1;
		min-width: 0;
	}
}

/* Without a script nothing opens it: drawn in the page, under the column, as the whole form. */
html:not(.light-js) .light-modal {
	position: static;
	display: block;
	width: auto;
	max-width: var(--light-width);
	max-height: none;
	margin: var(--light-gap) auto 0;
	box-shadow: none;
}

html:not(.light-js) :is(.light-modal__close, .light-steps) {
	display: none;
}

/* -- 11. Its steps ------------------------------------------------------------ */

/* Where the visitor is: a numbered circle per step, the current one teal, the ones behind ticked. */
.light-steps {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 14px 24px;
	border-bottom: 1px solid var(--light-line);
	counter-reset: none;
	list-style: none;
}

/* Only once the script has worked out which steps the form has. */
.light-reserve:not(.light-reserve--stepped) .light-steps,
.light-reserve[data-light-at='thanks'] .light-steps {
	display: none;
}

.light-steps__step {
	display: flex;
	flex: 1 1 0;
	align-items: center;
	gap: 8px;
	min-width: 0;
	color: var(--light-faint);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
}

.light-steps__step[hidden] {
	display: none;
}

/* A line from each step on to the next. */
.light-steps__step:not(:last-child)::after {
	content: '';
	flex: 1;
	min-width: 12px;
	height: 1px;
	background: var(--light-line-strong);
}

.light-steps__number {
	display: grid;
	place-items: center;
	flex: none;
	width: 26px;
	height: 26px;
	border: 1.5px solid var(--light-line-strong);
	border-radius: 999px;
	font-size: 13px;
}

.light-steps__step[aria-current='step'] {
	color: var(--light-ink);
}

.light-steps__step[aria-current='step'] .light-steps__number {
	border-color: var(--light-accent);
	background: var(--light-accent);
	color: #fff;
}

.light-steps__step.is-done {
	color: var(--light-copy);
}

.light-steps__step.is-done .light-steps__number {
	border-color: var(--light-accent);
	color: var(--light-accent);
}

/* A phone: the numbers only, the current step's name beside its own. */
@media (max-width: 480px) {
	.light-steps {
		padding-inline: 16px;
	}

	.light-steps__step {
		flex: none;
		font-size: 0;
	}

	.light-steps__step[aria-current='step'] {
		flex: 1 1 auto;
		font-size: 14px;
	}

	.light-steps__step .light-steps__number {
		font-size: 13px;
	}
}

/*
 * One step at a time: every piece of the form `template.js` marked with a
 * step other than this one is put away — on the thank-you, all of them. The
 * form's own button too: the window's foot says what pressing it does.
 */
html.light-js .light-reserve[data-light-at='passes'] [data-light-step]:not([data-light-step~='passes']),
html.light-js .light-reserve[data-light-at='details'] [data-light-step]:not([data-light-step~='details']),
html.light-js .light-reserve[data-light-at='payment'] [data-light-step]:not([data-light-step~='payment']),
html.light-js .light-reserve[data-light-at='thanks'] [data-light-step],
html.light-js .light-reserve--stepped .form__actions {
	display: none !important;
}

/* Choose a pass first: said over the passes. */
.light-step-note {
	margin: 0 0 16px;
	padding: 10px 14px;
	border-left: 3px solid var(--light-danger);
	background: #fdf1ef;
	color: var(--light-danger);
	font-size: 15px;
	font-weight: 600;
}

.light-step-note[hidden] {
	display: none;
}

/* Sending: the button waits. */
.light-modal__foot.is-sending [data-light-next] {
	cursor: progress;
}

/* The thank-you: a green tick in a circle, a title, then the form's own words under them. */
.light-thanks {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin: 8px 0 12px;
	text-align: center;
}

.light-thanks[hidden] {
	display: none;
}

.light-thanks__mark {
	width: 64px;
	height: 64px;
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.light-thanks__mark circle {
	fill: var(--light-mark);
}

.light-thanks__mark path {
	stroke: #fff;
	stroke-width: 3.5;
}

.light-thanks__title {
	margin: 0;
	color: var(--light-ink);
	font-family: inherit;
	font-size: 26px;
	font-weight: 600;
	line-height: 1.23;
}

/* Forms' own thank-you under the title: words only, centred — no box of its own. */
.light-reserve[data-light-at='thanks'] .form-notice {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--light-copy);
	font-size: 17px;
	text-align: center;
}

/* A payment that did not go through keeps Forms' own box: it is not a thank-you. */
.light-reserve[data-light-at='thanks'] .light-thanks[hidden] ~ .form-wrap .form-notice:not(.form-notice--success) {
	padding: 14px 16px;
	border: 1px solid var(--light-line);
	text-align: start;
}

/* -- 12. The forms in the site's colours --------------------------------------- */

/*
 * The registration and feedback forms keep Forms' own house look; only its
 * tokens are set here — Forms' documented way for a page to give a form its
 * accent — so on this page the forms are teal, black on white, in the page's
 * type, with square boxes. `.event-page--light` outranks Forms' `.form-wrap`.
 * Anything one form wants different is still its own (Forms → the form → CSS).
 */
.event-page--light .form-wrap {
	--font: 16px;
	--radius: 0px;
	--radius-sm: 0px;
	--radius-lg: 0px;
	--ink: #000;
	--muted: #6b6b6b;
	--line: #e6e6e6;
	--line-strong: #d2d2d2;
	--surface-sunk: #f9f9f9;
	--accent: #179fa7;
	--accent-soft: rgb(23 159 167 / 0.08);
	--accent-wash: rgb(23 159 167 / 0.08);
	--accent-line: rgb(23 159 167 / 0.25);
	--accent-hover: rgb(23 159 167 / 0.4);
	--button: #179fa7;
	--button-hover: #127f86;
	--ring: 0 0 0 3px rgb(23 159 167 / 0.2);

	font-family: inherit;
}

/* The button stays the theme's pill, whatever the form's corners. */
.event-page--light .form-wrap .form__submit {
	border-radius: 30px;
	font-weight: 600;
}

/* -- 13. Labels in the field ------------------------------------------------- */

/*
 * A question you type into (`light-float`, set by template.js) shows its label
 * inside the empty box, where a placeholder would be. On focus, or once the box
 * holds an answer, the label shrinks and slides up ABOVE the box, and stays
 * there while there is an answer. The box's own placeholder is not shown: the
 * label is the placeholder.
 *
 * The first row is always kept for the label above, so nothing moves when it
 * slides; the label and the box share the second row, and the hint and the
 * error come after it. The resting label is centred on `--light-h`, the box's
 * height (template.js); 2.6em, Forms' own box, until it is known.
 */
html.light-js .event-page--light .field.light-float {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: 1.5em auto;
	gap: 0;
}

html.light-js .event-page--light .field.light-float > :is(input, textarea) {
	grid-row: 2;
	grid-column: 1;
}

html.light-js .event-page--light .field.light-float > .field__hint {
	grid-row: 3;
	margin-top: 0.25em;
}

html.light-js .event-page--light .field.light-float > .field__error {
	grid-row: 4;
	margin-top: 0.25em;
}

html.light-js .event-page--light .field.light-float > :is(input, textarea)::placeholder {
	color: transparent;
}

/* Resting: in the box, in the box's own size, grey — a placeholder. */
html.light-js .event-page--light .field.light-float > .field__label {
	z-index: 1;
	grid-row: 2;
	grid-column: 1;
	align-self: start;
	max-width: 100%;
	overflow: hidden;
	color: var(--muted);
	font-size: 1em;
	font-weight: 400;
	line-height: 1.35;
	white-space: nowrap;
	text-overflow: ellipsis;
	pointer-events: none;
	transform: translate(0, calc((var(--light-h, 2.6em) - 1.35em) / 2)) scale(1);
	transform-origin: 0 0;
	transition: transform 0.24s cubic-bezier(0.2, 0.7, 0.2, 1), color 0.16s ease;
}

/* A text area is a box: its label rests at the top left, inside the frame. */
html.light-js .event-page--light .field.light-float:has(> textarea) > .field__label {
	transform: translate(0.85em, calc(0.6em + 1px)) scale(1);
}

/* Above the box: on focus, or with an answer. */
html.light-js .event-page--light .field.light-float:has(> :focus) > .field__label,
html.light-js .event-page--light .field.light-float:has(> :is(input, textarea):not(:placeholder-shown)) > .field__label {
	transform: translate(0, -1.3em) scale(0.8);
}

/* …or one the browser filled in — a rule of its own, as a browser that does not know `:autofill` drops the whole rule. */
html.light-js .event-page--light .field.light-float:has(> :autofill) > .field__label {
	transform: translate(0, -1.3em) scale(0.8);
}

html.light-js .event-page--light .field.light-float:has(> :focus) > .field__label {
	color: var(--accent);
}

html.light-js .event-page--light .field.light-float.field--invalid > .field__label {
	color: var(--error);
}
