/*
 * Bundles on the website (round 30 October, A6c and A6e): the bundle
 * cards on the Bundles page, Home, the booking page and the Membership
 * page; the bundles band on What's On and How It Works; and Home's
 * membership cards. Loaded only where one of them shows, after the shared
 * styles and the light layer.
 *
 * The cards are the Membership page's light portrait tickets (.pg-tier:
 * the shape and its notches come from theme.css, the light colours from
 * light.css), so their outline turns red on hover and stays red when
 * chosen. Inside a card the palette reads light (navy reads as white), so
 * words use the real colours kept on :root as --tdic-c-*. These rules set
 * out the rows, the same on Home as on the pages, where pages.css is not
 * loaded. The :not(#tdic-bundles) only lifts a rule above the shared ones.
 */

/* ---------- The cards ---------- */

.pg-tier:is(.tdic-bundle, .tdic-hmember):not(#tdic-bundles) {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	box-sizing: border-box;
	min-inline-size: 0;
	/* Equal on all four sides, and clear of the top and bottom notches
	 * (12px plus 8px): step 4 at every width. */
	padding: var(--wp--preset--spacing--40);
	color: var(--tdic-c-navy, var(--wp--preset--color--navy));
	text-align: start;
}

/* Chosen (the bundle in the basket, on the booking page): the outline and
 * notches stay red. */
.pg-tier.tdic-bundle.is-chosen:not(#tdic-bundles) {
	--t-line: var(--wp--preset--color--red);
}

.tdic-bundle__media {
	margin: 0;
}

.tdic-bundle__img {
	display: block;
	inline-size: 100%;
	block-size: auto;
	aspect-ratio: 3 / 2;
	border-radius: 12px;
	object-fit: cover;
}

/* No picture: a red round icon in the picture's place. */
.tdic-bundle__media--icon .tdic-icon {
	box-sizing: border-box;
	inline-size: 3.5rem;
	block-size: 3.5rem;
	padding: 0.875rem;
	border-radius: 50%;
	background: var(--wp--preset--color--red);
	color: var(--tdic-c-cream, var(--wp--preset--color--cream));
}

/* Beside cards with a picture, the icon sits in a picture-sized frame, so
 * the row keeps one height and nothing below it moves. */
.tdic-bundles__grid:has(.tdic-bundle__img) .tdic-bundle__media--icon {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 3 / 2;
	border: 1px solid var(--tdic-c-navy, var(--wp--preset--color--navy));
	border-radius: 12px;
}

.pg-tier .tdic-bundle__name:not(#tdic-bundles) {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--xx-large);
	line-height: 1;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.pg-tier .tdic-bundle__price:not(#tdic-bundles) {
	margin: 0;
}

.pg-tier .tdic-bundle__price strong:not(#tdic-bundles) {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--huge);
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.tdic-bundle__about p {
	margin: 0;
}

.tdic-bundle__body {
	display: grid;
	align-content: start;
	gap: var(--wp--preset--spacing--30);
	min-inline-size: 0;
}

.tdic-bundle__about {
	display: grid;
	gap: var(--wp--preset--spacing--20);
	line-height: 1.5;
	overflow-wrap: anywhere;
}

/* What it includes: a red tick beside each line. */
.pg-tier .tdic-bundle__lines:not(#tdic-bundles) {
	display: grid;
	align-content: start;
	gap: var(--wp--preset--spacing--20);
	margin: 0;
	padding: 0;
	list-style: none;
}

.tdic-bundle__lines li {
	display: grid;
	grid-template-columns: 1.25rem minmax(0, 1fr);
	gap: var(--wp--preset--spacing--20);
	align-items: start;
	line-height: 1.45;
	overflow-wrap: anywhere;
}

.tdic-bundle__lines .tdic-icon {
	inline-size: 1.25rem;
	block-size: 1.25rem;
	margin-block-start: 0.1rem;
	color: var(--wp--preset--color--red);
}

/* The main button: the full width of the card's content, at its foot, its
 * words centred on one line. A longer label set in Page content ends in
 * "..." rather than wrapping. */
.pg-tier .tdic-bundle__buy:not(#tdic-bundles) {
	display: flex;
	justify-content: center;
	box-sizing: border-box;
	inline-size: 100%;
	min-inline-size: 0;
	margin-block-start: auto;
	text-align: center;
	white-space: nowrap;
}

.tdic-bundle__label {
	min-inline-size: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* The bundle in the basket, on the booking page (round 30 October, C1f):
 * "In your basket" with a tick in the button's place. A status, not a
 * link, so it does not move or sweep on hover. */
.pg-tier .tdic-bundle__in:not(#tdic-bundles) {
	margin-block-end: 0;
	cursor: default;
	pointer-events: none;
}

/* The line under the button on the booking page: on the chosen card,
 * choose your car below and "Remove"; on the others the same words keep
 * the place unseen, so every card is one height and nothing moves. */
.tdic-bundle__after {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--10) var(--wp--preset--spacing--30);
	min-inline-size: 0;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.5;
}

.tdic-bundle__after.is-empty {
	visibility: hidden;
}

.tdic-bundle__next {
	flex: 1 1 12rem;
	min-inline-size: 0;
	margin: 0;
}

.tdic-bundle__remove-form {
	margin: 0;
}

/* "Remove": a link on white, red and underlined. */
.tdic-bundle__remove {
	display: inline-block;
	padding: var(--wp--preset--spacing--10) 0;
	border: 0;
	background: none;
	color: var(--wp--preset--color--red);
	font: inherit;
	font-family: var(--wp--preset--font-family--subheading);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-decoration: underline;
	text-transform: uppercase;
	cursor: pointer;
}

.tdic-bundle__remove:focus-visible {
	outline: 2px solid var(--wp--preset--color--red);
	outline-offset: 2px;
}

/* Home's membership cards: the member discount, a red highlight. */
.tdic-hmember__off {
	margin: 0;
	color: var(--wp--preset--color--red);
	font-family: var(--wp--preset--font-family--subheading);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.tdic-hmember .tdic-bundle__price span {
	font-size: var(--wp--preset--font-size--medium);
}

/* ---------- The grid (DESIGN-SYSTEM, Grid and gutters) ----------
 * As many cards a row as fit at 260px or more, wherever the grid sits
 * (Jonny, 1 November: the booking area is narrower than the page, so the
 * columns follow the room, not the screen). One a row on phones; fewer
 * than a full row are centred at up to 24rem each. 16px between cards on
 * phones, 24px from 600px. The cards in a row share their rows (picture
 * or icon, name, price, the ticks, the button, and on the booking page
 * the line under it; Home's membership
 * cards: icon, name, price, discount, perks), so every card in a row is
 * one height and a long name never moves another card's button. */
.tdic-bundles__grid {
	--tdic-bundles-gap: var(--wp--preset--spacing--30);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
	justify-content: center;
	align-items: stretch;
	gap: var(--tdic-bundles-gap);
	margin-block-start: var(--wp--preset--spacing--50);
}

@media (min-width: 600px) {
	.tdic-bundles__grid {
		--tdic-bundles-gap: var(--wp--preset--spacing--40);
	}
}

/* One or two cards: centred, each at most 24rem wide. */
.tdic-bundles__grid:has(> .pg-tier:only-child) {
	max-inline-size: 24rem;
	margin-inline: auto;
}

.tdic-bundles__grid:has(> .pg-tier:nth-child(2):last-child) {
	max-inline-size: calc(48rem + var(--tdic-bundles-gap));
	margin-inline: auto;
}

.tdic-bundles__grid > .pg-tier:is(.tdic-bundle, .tdic-hmember):not(#tdic-bundles) {
	display: grid;
	grid-template-rows: subgrid;
	row-gap: 0.75rem;
	align-content: start;
}

.tdic-bundles__grid > .pg-tier.tdic-bundle:not(#tdic-bundles) {
	grid-row: span 5;
}

/* The booking page's cards have the line under the button too. */
.tdic-bundles__grid > .pg-tier.tdic-bundle.has-after:not(#tdic-bundles) {
	grid-row: span 6;
}

/* Every bundle card the same height, in every row (Jonny, 1 November):
 * the rows repeat for each row of cards, and the ticks' row of each is
 * as tall as the tallest, so the buttons line up across the whole grid. */
.tdic-bundles__grid:has(> .tdic-bundle) {
	grid-auto-rows: auto auto auto 1fr auto;
}

.tdic-bundles__grid:has(> .tdic-bundle.has-after) {
	grid-auto-rows: auto auto auto 1fr auto auto;
}

/* A name has room for two lines, three from 1024px where the cards are
 * narrowest, so a card whose name is shorter is as tall as one with a
 * long name. */
.tdic-bundles__grid > .tdic-bundle .tdic-bundle__name:not(#tdic-bundles) {
	min-block-size: 2lh;
}

@media (min-width: 1024px) {
	.tdic-bundles__grid > .tdic-bundle .tdic-bundle__name:not(#tdic-bundles) {
		min-block-size: 3lh;
	}
}

.tdic-bundles__grid > .pg-tier.tdic-hmember:not(#tdic-bundles) {
	grid-row: span 5;
}

.tdic-bundles__grid .tdic-bundle > .tdic-bundle__buy:not(#tdic-bundles) {
	align-self: end;
	margin-block-start: 0;
}

/* ---------- The Bundles page and the Membership page ---------- */

.tdic-bundles__intro {
	max-inline-size: 60ch;
	margin-inline: auto;
}

.tdic-bundles__none {
	max-inline-size: 60ch;
	margin: var(--wp--preset--spacing--50) auto 0;
	font-size: var(--wp--preset--font-size--large);
}

.tdic-bundles__none a {
	color: var(--wp--preset--color--red);
	text-decoration: underline;
}

/* ---------- Home: the bundles and membership sections ---------- */

.tdic-hbundles__head {
	max-inline-size: 46rem;
	margin-inline: auto;
	text-align: center;
}

/* A one-word heading on white is red (DESIGN-SYSTEM, Section headings). */
.tdic-hbundles__head .tdic-h2:not(:has(.pg-h2__red)) {
	color: var(--wp--preset--color--red);
}

.tdic-hbundles__text {
	margin: var(--wp--preset--spacing--30) 0 0;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.5;
}

.tdic-hbundles__more {
	margin: var(--wp--preset--spacing--50) 0 0;
	text-align: center;
}

/* ---------- The booking page: "Buy a bundle", before the cars ---------- */

/* After the cars (R13) the section sits in the booking page's two-column
 * grid: it takes the full width, never one narrow column. */
:is(.tdic-book, .tdic-book__desk) > .tdic-book__bundles {
	grid-column: 1 / -1;
	min-inline-size: 0;
}

.tdic-book__bundles .tdic-bundles__grid {
	margin-block-start: var(--wp--preset--spacing--40);
}

/* ---------- The band on What's On and How It Works ---------- */

/* Straight after another white section, the band does not add its own
 * top padding to that section's bottom padding (round 30 October review). */
.pg-section--white + .tdic-bband {
	padding-block-start: 0;
}

.tdic-bband__box {
	display: grid;
	gap: var(--wp--preset--spacing--40);
	justify-items: start;
	box-sizing: border-box;
	padding: var(--wp--preset--spacing--30);
	border: 1px solid var(--wp--preset--color--navy);
	border-radius: 24px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--navy);
}

@media (min-width: 600px) {
	.tdic-bband__box {
		padding: var(--wp--preset--spacing--40);
	}
}

@media (min-width: 820px) {
	.tdic-bband__box {
		grid-template-columns: auto minmax(0, 1fr) auto;
		align-items: center;
		column-gap: var(--wp--preset--spacing--50);
	}
}

.tdic-bband__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 4rem;
	block-size: 4rem;
	border-radius: 50%;
	background: var(--wp--preset--color--red);
	color: var(--wp--preset--color--cream);
}

.tdic-bband__icon .tdic-icon {
	inline-size: 2rem;
	block-size: 2rem;
}

.tdic-bband__words {
	min-inline-size: 0;
}

.tdic-bband__words p {
	margin: 0;
}

.tdic-bband__words .tdic-bband__title {
	margin: 0;
	overflow-wrap: anywhere;
}

.tdic-bband__words .tdic-bband__text {
	margin-block-start: var(--wp--preset--spacing--20);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.5;
}

.tdic-bband__words .tdic-bband__from {
	margin-block-start: var(--wp--preset--spacing--20);
	color: var(--wp--preset--color--red);
	font-family: var(--wp--preset--font-family--subheading);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.tdic-bband__action {
	margin: 0;
}

.tdic-bband__action .tdic-btn {
	white-space: nowrap;
}

/* Phones: the button is the band's main action, full width. */
@media (max-width: 599px) {
	.tdic-bband__action {
		inline-size: 100%;
	}

	.tdic-bband__action .tdic-btn {
		box-sizing: border-box;
		inline-size: 100%;
		justify-content: center;
	}
}

/* ---------- Bundle families: the section and weekend choices (1 November) ----------
 * On the journey ("Choose your <bundle>"), each way a family's bundles
 * differ (section, dates) is a choice of ticket buttons: white, a red
 * outline with notches left and right, navy words; chosen is red with
 * cream words. The radio button inside each covers the ticket, so a tap
 * anywhere picks it, and the keyboard moves through a group with the
 * arrow keys. (The section-only step these began on is retired, D601.) */

/* Sections side by side (three fit at every width); dates one a row, so a
 * long weekend never wraps. */
.tdic-bundle__opts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(5.5rem, 1fr));
	gap: var(--wp--preset--spacing--20);
}

.tdic-bundle__opt {
	--t-n: 7px;
	--t-w: 1px;
	--t-line: var(--tdic-c-red, var(--wp--preset--color--red));
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.125rem;
	box-sizing: border-box;
	min-block-size: 48px;
	min-inline-size: 0;
	/* Clear of the 7px notches, with room for STANDARD on one line in a
	 * third of the narrowest card. */
	padding: 0.375rem 0.75rem;
	border: 1px solid var(--t-line);
	border-radius: 6px;
	background-color: var(--tdic-c-white, var(--wp--preset--color--white));
	background-image:
		radial-gradient(circle at 0 50%, transparent var(--t-n), var(--t-line) var(--t-n), var(--t-line) calc(var(--t-n) + var(--t-w) + 0.5px), transparent calc(var(--t-n) + var(--t-w) + 0.5px)),
		radial-gradient(circle at 100% 50%, transparent var(--t-n), var(--t-line) var(--t-n), var(--t-line) calc(var(--t-n) + var(--t-w) + 0.5px), transparent calc(var(--t-n) + var(--t-w) + 0.5px));
	background-repeat: no-repeat;
	background-size: 100% 100%;
	background-origin: border-box;
	color: var(--tdic-c-navy, var(--wp--preset--color--navy));
	font-family: var(--wp--preset--font-family--subheading);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s var(--wp--custom--ease), color 0.2s var(--wp--custom--ease);
	-webkit-mask:
		radial-gradient(circle at 0 50%, transparent var(--t-n), var(--t-black) calc(var(--t-n) + 0.5px)),
		radial-gradient(circle at 100% 50%, transparent var(--t-n), var(--t-black) calc(var(--t-n) + 0.5px));
	-webkit-mask-composite: source-in;
	mask:
		radial-gradient(circle at 0 50%, transparent var(--t-n), var(--t-black) calc(var(--t-n) + 0.5px)),
		radial-gradient(circle at 100% 50%, transparent var(--t-n), var(--t-black) calc(var(--t-n) + 0.5px));
	mask-composite: intersect;
}

.tdic-bundle__opt-name,
.tdic-bundle__opt-price {
	display: block;
	max-inline-size: 100%;
	overflow-wrap: normal;
	hyphens: none;
}

/* The words take the ticket's colour (the light layer colours spans in a
 * card navy). */
:root body .pg-tier .tdic-bundle__opt :is(.tdic-bundle__opt-name, .tdic-bundle__opt-price):not(#tdic-bundles) {
	color: inherit;
}

.tdic-bundle__opt-price {
	font-variant-numeric: tabular-nums;
}

/* The radio button covers its ticket, unseen. */
.tdic-bundle__radio {
	position: absolute;
	inset: 0;
	inline-size: 100%;
	block-size: 100%;
	margin: 0;
	opacity: 0;
	cursor: inherit;
}

@media (hover: hover) and (pointer: fine) {
	:root body .pg-tier .tdic-bundle__opt:hover:not(:has(.tdic-bundle__radio:disabled, .tdic-bundle__radio:checked)):not(#tdic-bundles) {
		color: var(--tdic-c-red, var(--wp--preset--color--red));
	}
}

/* Lifted above the light layer's words-on-white rule, so the chosen
 * ticket's words are cream. */
:root body .pg-tier .tdic-bundle__opt:has(.tdic-bundle__radio:checked):not(#tdic-bundles) {
	background-color: var(--tdic-c-red, var(--wp--preset--color--red));
	color: var(--tdic-c-cream, var(--wp--preset--color--cream));
}

/* The keyboard focus follows the ticket: a 2px band inside the edge, red
 * on white, cream on the chosen (red) ticket. */
.tdic-bundle__opt:has(.tdic-bundle__radio:focus-visible) {
	box-shadow: inset 0 0 0 2px var(--tdic-c-red, var(--wp--preset--color--red));
}

.tdic-bundle__opt:has(.tdic-bundle__radio:checked:focus-visible) {
	box-shadow: inset 0 0 0 2px var(--tdic-c-cream, var(--wp--preset--color--cream));
}

/* Not possible beside the choices made, or fixed while in the basket: a
 * disabled button keeps its place and size and is solid navy with a 1px
 * cream outline and cream words, never faded (design system, Buttons). */
.tdic-bundle__opt:has(.tdic-bundle__radio:disabled:not(:checked)) {
	--t-line: var(--tdic-c-cream, var(--wp--preset--color--cream));
	background-color: var(--tdic-c-navy, var(--wp--preset--color--navy));
	color: var(--tdic-c-cream, var(--wp--preset--color--cream));
	cursor: not-allowed;
}

.tdic-bundle__opt:has(.tdic-bundle__radio:disabled:checked) {
	cursor: default;
}

/* The price line holds one line, whatever it says. */
.pg-tier.has-choices .tdic-bundle__price:not(#tdic-bundles) {
	min-block-size: 1lh;
	white-space: nowrap;
}

/* ---------- The link back to all bundles, above the journey ---------- */
.tdic-bundle-step__back {
	max-inline-size: 36rem;
	margin: 0 auto var(--wp--preset--spacing--40);
}

.tdic-bundle-step__back a {
	display: inline-flex;
	align-items: center;
	min-block-size: 44px;
	color: var(--wp--preset--color--red);
	font-family: var(--wp--preset--font-family--subheading);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-transform: uppercase;
}

.tdic-bundle-step__back a:focus-visible {
	outline: 2px solid var(--wp--preset--color--red);
	outline-offset: 2px;
}

/* "Terms and conditions apply", the last tick on a bundle with terms, and
 * its pop-up (Jonny, 1 November). In the line, so the tick keeps its line
 * height; an unseen area above and below makes the tap target 44px tall
 * without opening the lines up. */
.tdic-bundle__terms-link {
	position: relative;
	display: inline-block;
	padding: 0;
	text-align: start;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.tdic-bundle__terms-link::before {
	content: "";
	position: absolute;
	inset: calc((100% - 44px) / 2) -4px;
}

.tdic-bundle__terms-link:focus-visible,
.tdic-bundle__terms-close:focus-visible {
	outline: 2px solid var(--wp--preset--color--red);
	outline-offset: 2px;
}

.tdic-bundle__terms {
	box-sizing: border-box;
	inline-size: min(560px, calc(100vw - 32px));
	max-block-size: calc(100vh - 64px);
	margin: auto;
	padding: 24px;
	overflow: auto;
	border: 1px solid var(--wp--preset--color--red);
	border-radius: 8px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--navy);
	text-align: start;
}

.tdic-bundle__terms::backdrop {
	background: var(--wp--preset--color--navy);
}

.tdic-bundle__terms-title {
	margin: 0 0 12px;
	font-family: var(--wp--preset--font-family--subheading);
	font-weight: 700;
	text-transform: uppercase;
}

.tdic-bundle__terms p {
	margin: 0 0 12px;
	line-height: 1.5;
}

.tdic-bundle__terms-close {
	min-height: 44px;
	margin-top: 8px;
}

/* ---------- The bundle journey (1 November; Jonny, 10 November, D604 to D607, D614 to D616) ----------
 * "Choose your <bundle>". On a computer (1024px and up): on the left the
 * bundle card and the confirmation box, kept in view: under the header
 * when they fit the window, else by their foot (design system, sticky side
 * panels); on the right the weekend and the screenings as What's On's film
 * cards. On phones and tablets one column: the bundle card, the weekend,
 * the screenings, then the box, with a slim bar at the foot of the screen
 * until the box comes. The bundle card is in the page twice; each width
 * shows one. */
.tdic-journey .tdic-bundle-step__back {
	max-inline-size: none;
	margin: 0 0 var(--wp--preset--spacing--30);
}

.tdic-journey__message {
	margin: 0 0 var(--wp--preset--spacing--40);
	padding: var(--wp--preset--spacing--30);
	border: 1px solid var(--wp--preset--color--red);
	border-radius: 8px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--red);
	font-weight: 700;
	line-height: 1.5;
}

.tdic-journey__message[hidden],
.tdic-journey__wait[hidden],
.tdic-journey__notice[hidden],
.tdic-journey__day[hidden],
.tdic-journey__show[hidden],
.tdic-journey [data-tdic-journey-why][hidden],
.tdic-journey__problem[hidden] {
	display: none;
}

.tdic-journey__layout {
	display: grid;
	gap: var(--wp--preset--spacing--40);
	align-items: start;
}

.tdic-journey__main,
.tdic-journey__side,
.tdic-journey__lead {
	display: grid;
	gap: var(--wp--preset--spacing--40);
	min-inline-size: 0;
}

.tdic-journey__lead {
	gap: var(--wp--preset--spacing--30);
}

.tdic-journey__lead--side {
	display: none;
}

@media (min-width: 1024px) {
	.tdic-journey__layout {
		grid-template-columns: 340px minmax(0, 1fr);
	}

	.tdic-journey__lead--top {
		display: none;
	}

	.tdic-journey__lead--side {
		display: grid;
	}

	.tdic-journey__main {
		grid-column: 2;
		grid-row: 1;
	}

	/* Kept in view beside the screenings, never over them, and inside its
	 * section at the end of the list, with no scroll of its own (Jonny,
	 * 10 November, D614). When it fits the window it sticks 24px under the
	 * header; taller than the window (every bundle on most screens) it
	 * scrolls with the page until its foot, with "Book and go to basket",
	 * is 24px above the window's foot, then stays there. bundle-journey.js
	 * works out both tops from the column's height as it changes; these are
	 * the starting values. */
	.tdic-journey__side {
		position: sticky;
		top: var(--tdic-journey-top, calc(var(--wp-admin--admin-bar--height, 0px) + var(--tdic-header-h, 5rem) + var(--wp--preset--spacing--40)));
		grid-column: 1;
		grid-row: 1;
	}

	/* The header slides away as the page scrolls down and back as it
	 * scrolls up (site-nav.js): the column follows it, 24px from the top
	 * while it is away (D615), at the header's own pace. */
	:root:has(.tdic-header--site.is-hidden:not(:focus-within)) .tdic-journey__side {
		top: var(--tdic-journey-top-away, calc(var(--wp-admin--admin-bar--height, 0px) + var(--wp--preset--spacing--40)));
	}

	.tdic-journey__side.is-following {
		transition: top 0.35s var(--wp--custom--ease);
	}
}

/* The bundle: the same card as on the Bundles page, without a button. */
.pg-tier.tdic-journey__bundle:not(#tdic-bundles) {
	gap: var(--wp--preset--spacing--30);
}

.tdic-journey__signin .tdic-pass-signin {
	margin: 0;
	line-height: 1.5;
}

.tdic-journey__group {
	min-inline-size: 0;
	margin: 0;
	padding: var(--wp--preset--spacing--40);
	border: 1px solid var(--wp--preset--color--navy);
	border-radius: 8px;
	background: var(--wp--preset--color--white);
}

/* The legend sits inside the box as its heading. */
.tdic-journey__legend {
	float: left;
	inline-size: 100%;
	margin: 0 0 var(--wp--preset--spacing--30);
	padding: 0;
	color: var(--wp--preset--color--navy);
	font-family: var(--wp--preset--font-family--subheading);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.tdic-journey__legend + * {
	clear: both;
}

/* A part that can be missing (D605): the weekend, the screenings, the
 * section. Reached by the button under the header; the red outline (not a
 * focus ring) shows where the focus went. */
.tdic-journey__part {
	scroll-margin-block-start: calc(var(--tdic-header-h, 5rem) + var(--wp--preset--spacing--40));
}

.tdic-journey__part:focus {
	outline: none;
}

.tdic-journey__part > .tdic-journey__legend {
	margin-block-end: var(--wp--preset--spacing--10);
}

/* The short line under its heading ("Choose a section"), its place kept
 * when empty, so nothing moves when it comes or goes. */
/* The light layer gives words in a white section their panel's colour;
 * the red lines here are lifted above it. */
:root body .tdic-journey :is(.tdic-journey__message, .tdic-journey__need, .tdic-journey__notice, .tdic-journey__status.is-alert, .tdic-journey__problem, .tdic-journey__dock-line) {
	color: var(--wp--preset--color--red);
}

.tdic-journey__need {
	min-block-size: 1.5em;
	margin: 0 0 var(--wp--preset--spacing--20);
	color: var(--wp--preset--color--red);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	line-height: 1.5;
}

.tdic-journey__need:empty {
	visibility: hidden;
}

/* Missing: a red outline round the part, on top of its own edge. */
.tdic-journey__group.tdic-journey__part.is-missing {
	border-color: var(--wp--preset--color--red);
	box-shadow: 0 0 0 1px var(--wp--preset--color--red);
}

/* Why the bundle cannot be booked here now (D604): plain words in a red
 * edged box under the choices. */
.tdic-journey__notice {
	margin: var(--wp--preset--spacing--30) 0 0;
	padding: var(--wp--preset--spacing--30);
	border: 1px solid var(--wp--preset--color--red);
	border-radius: 8px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--red);
	font-weight: 700;
	line-height: 1.5;
}

.tdic-journey__notice--all {
	margin-block-end: var(--wp--preset--spacing--30);
}

/* The section and weekend tickets: the same look as on the card step. */
.tdic-journey .tdic-bundle__opt :is(.tdic-bundle__opt-name, .tdic-bundle__opt-price, .tdic-journey__choose-off, .tdic-journey__choose-on) {
	color: inherit;
}

@media (hover: hover) and (pointer: fine) {
	.tdic-journey .tdic-bundle__opt:hover:not(:has(.tdic-bundle__radio:checked, .tdic-bundle__radio:disabled)) {
		color: var(--wp--preset--color--red);
	}
}

/* The true red and cream (D178): inside a film card's light layer the
 * preset cream is navy, which made "Chosen" navy on red. */
.tdic-journey .tdic-bundle__opt:has(.tdic-bundle__radio:checked) {
	background-color: var(--tdic-c-red, var(--wp--preset--color--red));
	color: var(--tdic-c-cream, var(--wp--preset--color--cream));
}

.tdic-journey__group--dates .tdic-journey__opts {
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 600px) {
	.tdic-journey__main .tdic-journey__group--dates .tdic-journey__opts {
		grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
	}
}

/* The screenings: "Choose your screening" with the count beside it, then
 * the week tabs. They sit still at the top of the list (Jonny,
 * 10 November): never sticky. The count's place is as wide as "10 of 10
 * chosen", so its digits never move it, or the words beside it, onto
 * another line (D616). */
.tdic-journey__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
	margin: 0 0 var(--wp--preset--spacing--10);
}

.tdic-journey__help,
.tdic-journey__wait,
.tdic-journey__empty {
	margin: 0;
	line-height: 1.5;
}

.tdic-journey__wait {
	margin-block-end: var(--wp--preset--spacing--30);
	font-weight: 700;
}

.tdic-journey__count {
	min-inline-size: 10.5em;
	margin: 0;
	margin-inline-start: auto;
	color: var(--wp--preset--color--red);
	font-family: var(--wp--preset--font-family--subheading);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.06em;
	text-align: end;
	text-transform: uppercase;
	white-space: nowrap;
}

/* On a phone the count always has its own line under the words, so the
 * cards below never move as films are chosen (D616). */
@media (max-width: 599px) {
	.tdic-journey__head {
		flex-direction: column;
		align-items: flex-start;
	}

	.tdic-journey__count {
		min-inline-size: 0;
		margin-inline-start: 0;
		text-align: start;
	}
}

/* The week tabs (Jonny, 1 November): ticket chips over the film cards,
 * white with a red outline, the chosen week red with cream words; as many
 * a row as fit, every chip one width, so nothing moves when one is
 * chosen. Hidden weeks are left out whole. */
.tdic-journey__weeks {
	margin: 0 0 var(--wp--preset--spacing--40);
}

.tdic-journey__week-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
	gap: var(--wp--preset--spacing--20);
	margin: 0;
	padding: 0;
	list-style: none;
}

.tdic-journey__week-list > li {
	display: flex;
	min-inline-size: 0;
	margin: 0;
}

.tdic-journey .tdic-journey__week-tab {
	flex: 1;
	min-block-size: 44px;
	text-decoration: none;
	white-space: nowrap;
}

.tdic-journey .tdic-journey__week-tab[aria-current="true"] {
	background-color: var(--wp--preset--color--red);
	color: var(--wp--preset--color--cream);
}

@media (hover: hover) and (pointer: fine) {
	.tdic-journey .tdic-journey__week-tab:hover:not([aria-current="true"]) {
		color: var(--wp--preset--color--red);
	}
}

.tdic-journey .tdic-journey__week-tab:focus-visible {
	outline: 2px solid var(--wp--preset--color--navy);
	outline-offset: 2px;
}

.tdic-journey__weeks[hidden],
.tdic-journey__week-list > li[hidden],
.tdic-journey__week[hidden] {
	display: none;
}

/* Each film card, reached by Tab or the button, stops clear of the header
 * above and, below 1024px, of the bar at the foot of the screen. */
.tdic-journey__show {
	scroll-margin-block: calc(var(--tdic-header-h, 5rem) + var(--wp--preset--spacing--40)) var(--wp--preset--spacing--40);
}

@media (max-width: 1023px) {
	.tdic-journey__show {
		scroll-margin-block-end: calc(6rem + var(--wp--preset--spacing--40));
	}
}

.tdic-journey__day + .tdic-journey__day {
	margin-block-start: var(--wp--preset--spacing--40);
}

.tdic-journey .tdic-journey__day-name {
	margin: 0 0 var(--wp--preset--spacing--30);
}

/* What's On's cards, one a row in the column, two side by side from
 * 860px to 1023px (design system: screening tickets one a row below 860px,
 * so a start and its gates time never reach the notch) and from 1280px;
 * every card in a row one height. */
.tdic-journey .pg-shows.tdic-journey__shows {
	grid-template-columns: minmax(0, 1fr);
	align-items: stretch;
}

@media (min-width: 860px) and (max-width: 1023px) {
	.tdic-journey .pg-shows.tdic-journey__shows {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1280px) {
	.tdic-journey .pg-shows.tdic-journey__shows {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 600px) {
	.tdic-journey .pg-shows .pg-show {
		grid-template-columns: 7.5rem minmax(0, 1fr);
	}
}

.tdic-journey .pg-show__title {
	font-size: 1.25rem;
}

/* The chosen card: its edge and ring red, as a selected ticket. */
.tdic-journey .pg-show.is-chosen {
	--t-line: var(--wp--preset--color--red);
	border-color: var(--wp--preset--color--red) !important;
}

/* Chosen but no longer fitting: a double red edge and its words in the
 * badge's place. */
.tdic-journey .pg-show.is-problem {
	--t-line: var(--wp--preset--color--red);
	--t-w: 2px;
	border-color: var(--wp--preset--color--red) !important;
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--red);
}

/* The badge's place: a one-line badge ("8 cars left", "Sold out"), or
 * plain red words saying why the card cannot be chosen ("No room in
 * Standard") or, chosen, why it no longer fits ("No room in Standard:
 * choose another film or section"), never a badge on two lines (D616).
 * It holds three lines of those words whatever it says, so a card never
 * changes height as choices change (above the What's On card's one). */
:root body .tdic-journey .pg-shows .pg-show__slot--avail {
	display: flex;
	align-items: flex-start;
	min-block-size: calc(3 * 1.25 * 0.75rem);
	margin: 0;
}

.tdic-journey__problem {
	color: var(--wp--preset--color--red);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.25;
}

/* "Choose": a ticket the width of the card's words, "Chosen" with a tick
 * once picked. */
.tdic-journey__choose.tdic-bundle__opt {
	flex-direction: row;
	gap: 0.375rem;
	inline-size: 100%;
	min-block-size: 44px;
	font-size: 0.8125rem;
	white-space: nowrap;
}

.tdic-journey__choose .tdic-icon,
.tdic-journey__choose svg {
	inline-size: 1rem;
	block-size: 1rem;
	vertical-align: -0.15em;
}

.tdic-journey__choose-on {
	display: none;
}

.tdic-journey__choose:has(.tdic-journey__tick:checked) .tdic-journey__choose-on {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
}

.tdic-journey__choose:has(.tdic-journey__tick:checked) .tdic-journey__choose-off {
	display: none;
}

.tdic-journey .tdic-bundle__opt:has(.tdic-bundle__radio:focus-visible) {
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--red);
}

.tdic-journey .tdic-bundle__opt:has(.tdic-bundle__radio:checked:focus-visible) {
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--cream);
}

/* The true navy and cream: inside a light card the light layer maps the
 * palette's navy to white and its cream to navy. */
.tdic-journey .tdic-bundle__opt:has(.tdic-bundle__radio:disabled:not(:checked)) {
	--t-line: var(--tdic-c-cream, var(--wp--preset--color--cream));
	background-color: var(--tdic-c-navy, var(--wp--preset--color--navy));
	color: var(--tdic-c-cream, var(--wp--preset--color--cream));
	cursor: not-allowed;
}

/* The confirmation box (Jonny, 10 November): a white panel with a navy
 * outline. The summary, a rule, then the section, the vehicle sizes and
 * the button, one under another. */
.tdic-journey__box {
	display: grid;
	gap: var(--wp--preset--spacing--40);
	min-inline-size: 0;
	padding: var(--wp--preset--spacing--40);
	border: 1px solid var(--wp--preset--color--navy);
	border-radius: 8px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--navy);
}

/* Inside the box the section and sizes are parts of it, not boxes of
 * their own; a missing section is outlined just outside its words. */
.tdic-journey__box > .tdic-journey__group {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
}

.tdic-journey__box > .tdic-journey__group.tdic-journey__part.is-missing {
	border-radius: 4px;
	box-shadow: none;
	outline: 2px solid var(--wp--preset--color--red);
	outline-offset: var(--wp--preset--spacing--20);
}

/* On a computer the box is narrow: the section tickets are one a row, the
 * full width, the name on the left and the price on the right on one
 * line, both well clear of the notches (D622; three side by side left
 * STANDARD running into the right notch). Phones and tablets keep three
 * side by side, where they are wide enough. */
@media (min-width: 1024px) {
	.tdic-journey__box .tdic-journey__group--tier .tdic-journey__opts {
		grid-template-columns: minmax(0, 1fr);
	}

	.tdic-journey__box .tdic-journey__group--tier .tdic-bundle__opt {
		flex-direction: row;
		justify-content: space-between;
		gap: var(--wp--preset--spacing--30);
		padding-inline: var(--wp--preset--spacing--40);
		text-align: start;
	}

	.tdic-journey__box .tdic-journey__group--tier :is(.tdic-bundle__opt-name, .tdic-bundle__opt-price) {
		white-space: nowrap;
	}
}

.tdic-journey__dl {
	display: grid;
	gap: var(--wp--preset--spacing--20);
	margin: 0;
	padding-block-end: var(--wp--preset--spacing--40);
	border-block-end: 1px solid var(--wp--preset--color--navy);
}

.tdic-journey__dl > div {
	display: grid;
	grid-template-columns: 6.5rem minmax(0, 1fr);
	gap: var(--wp--preset--spacing--20);
}

.tdic-journey__dl dt {
	font-weight: 700;
}

.tdic-journey__dl dd {
	margin: 0;
	overflow-wrap: anywhere;
}

/* The box never changes height as choices are made (D622). Every value
 * that follows a choice (section, weekend, each car's size, the count,
 * the total) holds one line; words longer than it end in an ellipsis
 * and are read out whole. */
.tdic-journey__dl .tdic-journey__sum-one {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tdic-journey__sum-count {
	font-variant-numeric: tabular-nums;
}

/* The screenings: under "Screenings 1 of 3 chosen", across the summary's
 * width, a place for every film the bundle needs from the start, one line
 * each ("The Grinch, Fri 11 Dec, 14:30" or "Not chosen yet"). A title too
 * long for its line ends in an ellipsis; the day and time always show,
 * and screen readers have the full words. */
.tdic-journey__dl .tdic-journey__sum-films {
	row-gap: var(--wp--preset--spacing--10);
}

.tdic-journey__dl .tdic-journey__sum-list {
	grid-column: 1 / -1;
	min-inline-size: 0;
}

.tdic-journey__dl ul {
	margin: 0;
	padding-inline-start: 1.1rem;
}

.tdic-journey__sum-film {
	min-inline-size: 0;
}

.tdic-journey__sum-film.is-spare {
	visibility: hidden;
}

.tdic-journey__sum-line {
	display: flex;
	block-size: 1.5em;
	overflow: hidden;
	line-height: 1.5;
	white-space: nowrap;
}

.tdic-journey__sum-name {
	min-inline-size: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* The space after the title's comma, kept when the title is cut. */
.tdic-journey__sum-when {
	flex: none;
	margin-inline-start: 0.25em;
}

/* On a computer the column is narrow, so a long title keeps more of its
 * words (Jonny, 11 November, answer (a), D626): no weekday and no bullet,
 * "Home Alone 2, 24 Dec, 17:30". Phones keep both. */
@media (min-width: 1024px) {
	.tdic-journey__dl .tdic-journey__sum-films-list {
		padding-inline-start: 0;
		list-style: none;
	}

	.tdic-journey__sum-day {
		display: none;
	}
}

.tdic-journey__price dd {
	color: var(--wp--preset--color--red);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.tdic-journey__go {
	display: grid;
	gap: var(--wp--preset--spacing--20);
}

/* "Book and go to basket": the main red ticket button, never disabled
 * (D605), its words on one line in the box's width. */
.tdic-journey__add {
	inline-size: 100%;
	min-block-size: 48px;
	white-space: nowrap;
}

.tdic-journey .tdic-journey__box .tdic-journey__add {
	padding-inline: var(--wp--preset--spacing--30);
	font-size: 0.875rem;
	letter-spacing: 0.06em;
}

/* The line under the button: what is still missing, red once tapped.
 * Two lines' room exactly, from the start, so the box never changes
 * height as it changes (D622): "Choose 3 more films. Choose a section."
 * and "Ready to book." take the same room. A chosen film that no longer
 * fits shows by its own words, without its name, as in the phone bar
 * (screen readers hear the full line); in the rare case of more than two
 * lines, the second ends in an ellipsis. */
.tdic-journey__status {
	display: -webkit-box;
	block-size: 3em;
	margin: 0;
	overflow: hidden;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.tdic-journey__status.is-alert {
	color: var(--wp--preset--color--red);
	font-weight: 700;
}

.tdic-journey__note {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
}

@media (max-width: 599px) {
	.tdic-journey__group,
	.tdic-journey__box {
		padding: var(--wp--preset--spacing--30);
	}

	.tdic-journey__box > .tdic-journey__group {
		padding: 0;
	}
}

/* Vehicle size (Jonny, 1 November, 14:00): the booking page's icon
 * picker, in navy on the white panel, the chosen size red and underlined. */
.tdic-journey__cars {
	display: grid;
	gap: var(--wp--preset--spacing--30);
}

.tdic-journey .tdic-journey__sizes {
	margin: 0;
}

.tdic-journey .tdic-sizes__legend {
	color: var(--wp--preset--color--navy);
	font-size: var(--wp--preset--font-size--small);
}

.tdic-journey .tdic-sizes__option {
	color: var(--wp--preset--color--navy);
}

.tdic-journey .tdic-sizes__option:has(input:checked) {
	color: var(--wp--preset--color--red);
}

.tdic-journey .tdic-sizes__option:has(input:focus-visible) {
	outline-color: var(--wp--preset--color--navy);
}

@media (hover: hover) and (pointer: fine) {
	.tdic-journey .tdic-sizes__option:hover {
		color: var(--wp--preset--color--red);
	}
}

.tdic-journey__rule {
	margin-block-start: var(--wp--preset--spacing--30);
	font-size: var(--wp--preset--font-size--small);
}

/* On phones and tablets (D607): the slim bar at the foot of the screen
 * while the screenings scroll, with the count, the total and the button.
 * It is the last thing in the screenings' column, so it settles into its
 * own place just above the box as that comes into view, and never covers
 * it. Not on a computer, where the box stays in view beside the films. */
.tdic-journey__dock {
	position: sticky;
	inset-block-end: 0;
	z-index: 20;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: var(--wp--preset--spacing--10) var(--wp--preset--spacing--30);
	min-block-size: 6rem;
	box-sizing: border-box;
	margin-inline: calc(-1 * var(--pg-gutter, 16px));
	padding: var(--wp--preset--spacing--20) var(--pg-gutter, 16px);
	border-block: 1px solid var(--wp--preset--color--navy);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--navy);
}

.tdic-journey__dock-sum {
	display: grid;
	gap: 0.125rem;
	min-inline-size: 0;
	margin: 0;
	font-variant-numeric: tabular-nums;
	line-height: 1.25;
}

.tdic-journey__dock-count {
	font-family: var(--wp--preset--font-family--subheading);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
}

.tdic-journey__dock-total {
	color: var(--wp--preset--color--red);
	font-weight: 700;
	white-space: nowrap;
}

.tdic-journey .tdic-journey__add--dock {
	inline-size: auto;
	min-block-size: 44px;
	padding-inline: var(--wp--preset--spacing--30);
	font-size: 0.75rem;
}

/* After a tap with something missing (D616): the same short line as
 * under the box's button, under the count and the button, across the
 * bar, with room for two lines (D622), so a long line ("No room in
 * Standard: choose another film or section.") wraps rather than being
 * cut. Its place is kept from the start, so the bar never changes height
 * and never moves the page or covers the box. */
.tdic-journey__dock-line {
	display: -webkit-box;
	grid-column: 1 / -1;
	block-size: 2.5em;
	margin: 0;
	overflow: hidden;
	color: var(--wp--preset--color--red);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.25;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.tdic-journey__dock-line:empty {
	visibility: hidden;
}

@media (min-width: 1024px) {
	.tdic-journey__dock {
		display: none;
	}
}
