/* The buyer's way through one event, set on a throughline (packs/ticketing: tickets/show, checkouts/show, orders/show; every rule is under `.tl`, so the
   office's window, the packages and the lists, which share the picker and the checkout list, keep their own look). The page is a programme on the warm
   field: a line of what kind of thing, the title in the display face, an italic line under it, and one thin line down the page through its stations
   (When, Where, Your seats, Pay, You are going). A station is a mark on the line under a small-caps line; the ones behind the buyer are filled, the one
   they are at is ringed, the ones ahead are open, and the line itself is in the accent as far as they have come. Two blocks of color do the rest: ink
   (the deep purple) for what it costs and the one button, ivy for what is the buyer's (seats held, the total at checkout, "You're going").

   The office's voice is `data-voice` on `.tl`, the design of its storefront: `arena` sets the title in heavy capitals, the line with a yard-line's ticks and
   the places left as a figure; `stage` and `plain` are the programme.

   Tokens only and logical properties only, both enforced (test/styles/tokens_test.rb, test/styles/components_test.rb). The two blocks are the same in both
   modes, as the office's band is: their fills (`--plum`, `--color-ivy`) and the words on them (`--on-plum`, `--gold-bright`) are pairs in
   config/contrast_pairs.yml. Nothing pinned without the safe area, no height in vh, and everything that holds words may shrink and wrap. */

.ticketing-frame:has(.tl) {
  background: var(--surface-sunken);
}

.tl {
  --tl-paper: var(--surface-sunken);
  --tl-done: var(--accent);
  --tl-ahead: var(--rule-strong);
  --tl-mark: 0.75rem;
  /* Where the line stands, from the start edge: the middle of the largest mark on it. */
  --tl-x: 0.5rem;
  /* Where a mark sits, so its middle is the middle of the small-caps line beside it. */
  --tl-top: 0.125rem;
  --tl-indent: 1.75rem;
  --tl-gap: var(--space-5);
  --tl-on-block: color-mix(in srgb, var(--on-plum) 86%, transparent);
  --tl-block-line: color-mix(in srgb, var(--on-plum) 24%, transparent);

  display: flex;
  flex-direction: column;
  min-inline-size: 0;
}

.tl > * {
  min-inline-size: 0;
}

/* ── Words ─────────────────────────────────────────────────────────────── */
.tl .tl-eyebrow {
  display: block;
  margin: 0;
  color: var(--accent-text);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.tl-mast {
  display: grid;
  gap: var(--space-2);
}

.tl-mast__title {
  margin: 0;
  color: var(--fg1);
  font-family: var(--font-display);
  font-size: clamp(2.125rem, 1.2rem + 4.4vw, 4.5rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.tl-mast__sub {
  margin: 0;
  color: var(--fg2);
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1rem + 0.7vw, 1.5rem);
  font-style: italic;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

/* A game is its two sides, the home side over the visitor. */
.tl[data-voice="arena"] .tl-mast__title {
  font-family: var(--font-sans);
  font-size: clamp(2.125rem, 0.9rem + 5.6vw, 4.75rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

/* A title that is not two sides may be long: it is set smaller. */
.tl[data-voice="arena"] .tl-mast__title:not(.tl-mast__title--versus) {
  font-size: clamp(1.875rem, 1.1rem + 3.4vw, 3.25rem);
  line-height: 1;
}

.tl-mast__title--versus span:first-child {
  display: block;
}

.tl-mast__title i {
  color: var(--accent-text);
  font-family: var(--font-display);
  font-size: 0.42em;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.tl[data-voice="arena"] .tl-mast__sub {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 600;
}

/* ── The line and its stations ─────────────────────────────────────────── */
/* A station (`.tl-stop`) and what the line only passes (`.tl-pass`) each draw their own stretch of it, so the line is whole wherever they follow one
   another, and each stretch is in the color of how far the buyer has come. */
.tl-stop,
.tl-pass {
  position: relative;
  min-inline-size: 0;
  padding-inline-start: var(--tl-indent);
  padding-block-end: var(--tl-gap);
}

.tl-stop::after,
.tl-pass::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: calc(var(--tl-x) - 0.75px);
  inline-size: 1.5px;
  background: var(--tl-done);
}

.tl-stop::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset-block-start: var(--tl-top);
  inset-inline-start: calc(var(--tl-x) - var(--tl-mark) / 2);
  box-sizing: border-box;
  inline-size: var(--tl-mark);
  block-size: var(--tl-mark);
  border: 1.5px solid var(--tl-done);
  border-radius: 50%;
  background: var(--tl-done);
  box-shadow: 0 0 0 3px var(--tl-paper);
}

.tl-stop[data-state="current"]::before {
  --tl-mark: 1rem;
  --tl-top: 0rem;

  box-shadow: inset 0 0 0 2.5px var(--tl-paper), 0 0 0 3px var(--tl-paper);
}

.tl-stop[data-state="current"]::after {
  background: linear-gradient(to bottom, var(--tl-done) 0 0.5rem, var(--tl-ahead) 0.5rem 100%);
}

.tl-stop[data-state="ahead"]::before {
  background: var(--tl-paper);
}

.tl-stop[data-state="ahead"]::after,
.tl-pass[data-state="ahead"]::after {
  background: var(--tl-ahead);
}

.tl-stop--first::after {
  inset-block-start: var(--tl-top);
}

/* Where the line ends, it ends in its last mark. */
.tl-stop--last {
  padding-block-end: 0;
}

.tl-stop--last::after {
  inset-block-end: auto;
  block-size: calc(var(--tl-top) + var(--tl-mark) / 2);
}

/* Athletics: a heavier line, ticked like a field's yard lines. */
.tl[data-voice="arena"] .tl-stop::after,
.tl[data-voice="arena"] .tl-pass::after {
  inset-inline-start: calc(var(--tl-x) - 1px);
  inline-size: 0.5rem;
  background:
    linear-gradient(var(--tl-done), var(--tl-done)) 0 0 / 2px 100% no-repeat,
    repeating-linear-gradient(to bottom, var(--tl-done) 0 1px, transparent 1px 0.625rem);
}

.tl[data-voice="arena"] .tl-stop[data-state="current"]::after {
  background:
    linear-gradient(to bottom, var(--tl-done) 0 0.5rem, var(--tl-ahead) 0.5rem 100%) 0 0 / 2px 100% no-repeat,
    repeating-linear-gradient(to bottom, var(--tl-ahead) 0 1px, transparent 1px 0.625rem);
}

.tl[data-voice="arena"] .tl-stop[data-state="ahead"]::after,
.tl[data-voice="arena"] .tl-pass[data-state="ahead"]::after {
  background:
    linear-gradient(var(--tl-ahead), var(--tl-ahead)) 0 0 / 2px 100% no-repeat,
    repeating-linear-gradient(to bottom, var(--tl-ahead) 0 1px, transparent 1px 0.625rem);
}

[dir="rtl"] .tl[data-voice="arena"] :is(.tl-stop, .tl-pass)::after {
  background-position: 100% 0, 0 0;
}

.tl[data-voice="arena"] .tl-stop::before {
  border-width: 2px;
}

/* ── The head: the title and the first stations, with the photograph beside them ── */
.tl .tl-stops {
  display: block;
  margin: 0;
}

.tl-stops dd {
  display: grid;
  gap: 0.2rem;
  margin: var(--space-2) 0 0;
}

.tl-stops .ticketing-event__fact {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem);
  font-weight: 400;
  line-height: 1.2;
}

.tl[data-voice="arena"] .tl-stops .ticketing-event__fact {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.tl-stops .ticketing-event__fact a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.tl-stops .ticketing-event__fact a:hover {
  color: var(--accent-text);
}

/* The photograph, once. On a phone it is a band from edge to edge over the title; on a wide screen it is the second column, from the top of the title to the
   foot of the price, so its four edges are the grid's. Decoration, so nothing is set on it. */
.tl-photo {
  position: relative;
  overflow: hidden;
  block-size: clamp(11.5rem, 52vw, 19rem);
  margin-block: calc(-1 * var(--space-4)) var(--space-4);
  background: var(--plum);
}

/* The event's page keeps the gutters itself, each part its own, so the band runs from edge to edge of a phone and nothing is wider than the box that holds
   it (WCAG 1.4.10). */
.ticketing-main:has(> .tl--event) {
  padding-inline: 0;
}

.ticketing-main:has(> .tl--event) > :not(.tl--event),
.ticketing-main:has(> .tl--event) > .tl--event > :not(.tl-top),
.ticketing-main:has(> .tl--event) .tl-top > .tl-lead {
  margin-inline: var(--page-gutter);
}

.tl-photo img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: center 25%;
}

/* Where the faces are, for the band's short crop. */
.tl-photo[data-focus="top"] img {
  object-position: center 20%;
}

.tl-photo[data-focus="bottom"] img {
  object-position: center 75%;
}

/* ── Price: a station whose words are a block of color ─────────────────── */
/* The block starts where every station's words start and ends where the column ends; the station's mark stands beside its first line. Short: the price, how
   it is going, and the one button, in a row where there is room and in two where there is not. What qualifies the price is said after it, on the page. */
.tl .tl-price {
  --tl-pad: var(--space-4);
  --tl-top: calc(var(--tl-pad) + 0.125rem + 1px);

  display: grid;
  justify-items: stretch;
  container: tl-price / inline-size;
}

.tl .tl-price::before {
  --tl-top: calc(var(--tl-pad) + 0.125rem + 1px);
}

.tl-price > * {
  min-inline-size: 0;
  margin-block: 0;
}

.tl-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-5);
  min-inline-size: 0;
  padding: var(--tl-pad) var(--space-4);
}

.tl-panel > * {
  min-inline-size: 0;
  margin-block: 0;
}

.tl .tl-panel__facts {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: stretch;
  gap: var(--space-3) var(--space-4);
  margin: 0;
}

.tl .tl-panel__facts > div {
  display: grid;
  align-content: center;
  gap: var(--space-2);
}

.tl-panel__facts dd {
  display: grid;
  gap: var(--space-1);
  margin: 0;
}

.tl-panel__facts [hidden] {
  display: none;
}

.tl-panel__price .ticketing-event__fact {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
}

/* How it is going stands behind a fine rule, the line again in small. */
.tl-panel__price + .tl-panel__room {
  flex: 0 1 auto;
  padding-inline-start: var(--space-4);
  border-inline-start: 1px solid var(--rule-strong);
}

.tl-panel__room .ticketing-event__fact {
  font-size: inherit;
  line-height: 1;
}

.tl-panel__open {
  font-size: var(--text-sm);
}

.tl-panel__open b {
  font-weight: 700;
}

.tl .tl-panel > .btn {
  flex: 1 1 11rem;
  max-inline-size: 100%;
}

/* Where the station is wide enough for one row, the button stands at the row's end; anywhere narrower it is a row of its own, as wide as the block. */
@container tl-price (min-width: 36rem) {
  .tl .tl-panel--ink {
    flex-wrap: nowrap;
  }

  .tl .tl-panel--ink > .btn {
    flex: 1 1 11rem;
    max-inline-size: 16rem;
    margin-inline-start: auto;
  }
}

@container tl-price (max-width: 35.99rem) {
  .tl .tl-panel > .btn {
    flex-basis: 100%;
  }
}

/* After the block, the first things the line passes: what an offer takes off, what is chosen at checkout, what signing in changes. */
.tl-notes > :is(.ticketing-offer, .ticketing-event__choice, .tl-notes__sign-in) {
  max-inline-size: 38rem;
  margin-block: 0;
  color: var(--fg2);
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
}

.tl-notes > .ticketing-offer {
  color: var(--fg1);
  font-weight: 700;
}

.tl-notes > :is(.ticketing-offer, .ticketing-event__choice, .tl-notes__sign-in) + :not(.ticketing-offer, .ticketing-event__choice, .tl-notes__sign-in) {
  margin-block-start: var(--space-4);
}

/* Paper: the block when it holds a form of its own or a quieter step. */
.tl-panel--paper {
  border: 1px solid var(--rule-strong);
  border-block-start: 3px solid var(--accent);
  background: var(--surface-raised);
}

/* A claim or a registration is the block's own content: it brings no box of its own into it. */
.tl-panel--paper :is(.ticketing-claims, .ticketing-claim, .ticketing-register-next) {
  flex: 1 1 100%;
}

.tl-panel--paper :is(.ticketing-claims, .ticketing-claim) {
  margin-block: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}

.tl-panel--paper .tl-panel__facts:has(> :not([hidden])) ~ :is(.ticketing-claims, .ticketing-claim) {
  padding-block-start: var(--space-4);
  border-block-start: 1px solid var(--rule-strong);
}

.tl-panel--paper :is(.ticketing-claims__title, .ticketing-claim__heading) {
  font-family: var(--font-display);
  font-weight: 400;
}

/* Ink: the deep purple, the same in both modes, with the one button turned inside out on it. */
.tl-panel--ink,
.tl-block {
  border: 1px solid color-mix(in srgb, var(--on-plum) 16%, var(--plum));
  background: var(--plum);
  color: var(--on-plum);
}

.tl-panel--ink .tl-eyebrow,
.tl-block .tl-eyebrow {
  color: var(--gold-bright);
}

.tl-panel--ink .tl-panel__price + .tl-panel__room {
  border-color: var(--gold-bright);
}

.tl-panel--ink .ticketing-event__aside {
  color: var(--tl-on-block);
}

.tl-panel--ink .tl-panel__open b {
  color: var(--on-plum);
}

.tl-panel--ink .btn,
.tl-block .btn:not(.btn-quiet, .btn-secondary) {
  --btn-bg: var(--on-plum);
  --btn-fg: var(--plum);
  --btn-border: var(--on-plum);
}

.tl-panel--ink .btn:hover:where(:not(:disabled, [aria-disabled="true"])),
.tl-block .btn:not(.btn-quiet, .btn-secondary):hover:where(:not(:disabled, [aria-disabled="true"])) {
  border-color: var(--gold-bright);
  background: var(--gold-bright);
  color: var(--plum);
}

.tl-panel--ink :focus-visible,
.tl-block :focus-visible {
  outline-color: var(--on-plum);
}

/* Athletics says how many places are left as a figure. */
.tl[data-voice="arena"] .tl-panel__price .ticketing-event__fact {
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.tl[data-voice="arena"] .tl-panel__open {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tl[data-voice="arena"] .tl-panel__open b {
  display: block;
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

/* What the line passes between Price and the picker. */
.tl-notes {
  position: relative;
  display: grid;
  gap: var(--space-2);
  min-inline-size: 0;
  padding-inline-start: var(--tl-indent);
  padding-block-end: var(--tl-gap);
}

.tl-notes::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: calc(var(--tl-x) - 0.75px);
  inline-size: 1.5px;
  background: var(--tl-done);
}

.tl[data-voice="arena"] .tl-notes::after {
  inset-inline-start: calc(var(--tl-x) - 1px);
  inline-size: 0.5rem;
  background:
    linear-gradient(var(--tl-done), var(--tl-done)) 0 0 / 2px 100% no-repeat,
    repeating-linear-gradient(to bottom, var(--tl-done) 0 1px, transparent 1px 0.625rem);
}

.tl-notes--last::after,
.tl[data-voice="arena"] .tl-notes--last::after {
  content: none;
}

.tl-notes--last {
  padding-block-start: var(--space-4);
}

.tl-notes:empty {
  padding-block: 0;
}

.tl .ticketing-event__about {
  max-inline-size: 38rem;
  color: var(--fg1);
  font-family: var(--font-display);
  font-size: var(--text-md);
  line-height: 1.5;
}

.tl[data-voice="arena"] .ticketing-event__about {
  font-family: var(--font-sans);
  font-size: var(--text-base);
}

/* The season it is part of, as a line of caps over a link: no card inside the line. */
.tl .tk-pkg__line {
  display: grid;
  gap: var(--space-1);
  margin-block: var(--space-2) 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}

.tl .tk-pkg__line-label {
  color: var(--accent-text);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (min-width: 60rem) {
  .tl {
    --tl-indent: 2.75rem;
    --tl-gap: var(--space-6);
  }

  .tl-mast {
    gap: var(--space-3);
  }

  .tl-top {
    padding-block-start: var(--space-5);
  }

  .ticketing-main:has(> .tl--event) .tl-top {
    margin-inline: var(--page-gutter);
  }

  .ticketing-main:has(> .tl--event) .tl-top > .tl-lead {
    margin-inline: 0;
  }

  .tl .tl-price {
    --tl-pad: var(--space-5);
  }

  .tl-panel {
    padding-inline: var(--space-5);
  }

  .tl .tl-panel__facts {
    column-gap: var(--space-5);
  }

  .tl-panel__price + .tl-panel__room {
    padding-inline-start: var(--space-5);
  }

  /* Two columns of the page's grid: the line, and the photograph as tall as the line's head. */
  .tl-top--photo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(16rem, 30vw, 24rem);
    column-gap: clamp(2.5rem, 6vw, 5rem);
  }

  .tl-top--photo > .tl-lead {
    grid-area: 1 / 1;
    min-inline-size: 0;
  }

  .tl-top--photo > .tl-photo {
    grid-area: 1 / 2;
    block-size: auto;
    margin: 0 0 var(--tl-gap);
  }

  /* The picture takes the column's height and gives it none. */
  .tl-top--photo > .tl-photo img {
    position: absolute;
    inset: 0;
  }

  .tl-top:not(.tl-top--photo) > .tl-lead {
    max-inline-size: 52rem;
  }
}

/* ── The station the buyer is at: the picker ───────────────────────────── */
.tl-stop--wide > .tl-eyebrow {
  margin-block-end: var(--space-2);
}

.tl .tk-picker {
  gap: var(--space-5);
  margin-block: 0;
  scroll-margin-block-start: var(--space-5);
}

.tl .tk-picker__heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.tl[data-voice="arena"] .tk-picker__heading {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.tl .tk-picker__subheading {
  color: var(--fg2);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tl .tk-picker__legend {
  gap: var(--space-3);
}

/* The prices, set as a list of what is on: a rule, the name, its prices at the end of the line. */
.tl .tk-picker__zones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: 0 var(--space-6);
  border-block-start: 1px solid var(--fg1);
}

.tl .tk-picker__zone {
  display: flex;
  align-items: baseline;
  padding-block: var(--space-3);
  border-block-end: 1px solid var(--rule-strong);
}

/* The swatch sits by the name's first line, however many lines the prices take. */
.tl .tk-picker__zone > .tk-picker__swatch {
  align-self: flex-start;
  margin-block-start: 0.125rem;
}

/* The name keeps its own width; the prices sit beside it when they fit and drop below it when they do not, so a name is
   never squeezed into a column a letter wide. */
.tl .tk-picker__zone-words {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-1) var(--space-4);
}

.tl .tk-picker__zone-name {
  flex: 1 0 auto;
  max-inline-size: 100%;
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 500;
  line-height: 1.25;
  overflow-wrap: break-word;
}

.tl[data-voice="arena"] .tk-picker__zone-name {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 700;
}

.tl .tk-picker__prices {
  gap: var(--space-1) var(--space-4);
}

.tl .tk-picker__price dd {
  color: var(--fg1);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.tl .tk-picker__whole {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-style: italic;
  font-weight: 400;
}

.tl[data-voice="arena"] .tk-picker__whole {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-style: normal;
  font-weight: 700;
}

.tl .tk-picker__svg {
  border-color: var(--rule-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
}

.tl .tk-picker__together {
  padding: var(--space-4) 0 0;
  border: 0;
  border-block-start: 1px solid var(--rule-strong);
  border-radius: 0;
  background: none;
}

.tl .tk-picker__area,
.tl .tk-picker__suggestion {
  padding-inline: 0;
  border: 0;
  border-block-end: 1px solid var(--rule-strong);
  border-radius: 0;
  background: none;
}

.tl .tk-picker__areas {
  gap: 0;
  border-block-start: 1px solid var(--fg1);
}

.tl .tk-picker__area-name {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 500;
}

.tl[data-voice="arena"] .tk-picker__area-name {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 700;
}

.tl .tk-picker__group {
  border-color: var(--rule-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
}

/* The cart: paper while it is empty, ivy once it holds something, which is the buyer's until the clock runs out. */
.tl .tk-picker__cart {
  gap: var(--space-3);
  padding: var(--space-5);
  border: 1px solid var(--rule-strong);
  border-block-start: 3px solid var(--accent);
  border-radius: 0;
  background: var(--surface-raised);
}

.tl .tk-picker__cart:has(.tk-picker__checkout:not([hidden])) {
  border-color: var(--color-ivy);
  background: var(--color-ivy);
  color: var(--on-plum);
}

.tl .tk-picker__cart:has(.tk-picker__checkout:not([hidden])) :is(.tk-picker__subheading, .tk-picker__clock--low) {
  color: var(--gold-bright);
}

.tl .tk-picker__cart:has(.tk-picker__checkout:not([hidden])) > .tk-picker__note {
  color: var(--tl-on-block);
}

.tl .tk-picker__cart:has(.tk-picker__checkout:not([hidden])) :focus-visible {
  outline-color: var(--on-plum);
}

.tl .tk-picker__clock {
  font-size: var(--text-md);
}

.tl .tk-picker__lines {
  gap: 0;
}

.tl .tk-picker__line {
  padding-block: var(--space-2);
  border-block-end: 1px solid var(--rule);
}

.tl .tk-picker__cart:has(.tk-picker__checkout:not([hidden])) .tk-picker__line {
  border-color: var(--tl-block-line);
}

.tl .tk-picker__cart:has(.tk-picker__checkout:not([hidden])) .btn-quiet {
  --btn-fg: var(--on-plum);

  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.tl .tk-picker__cart:has(.tk-picker__checkout:not([hidden])) .btn-quiet:hover:where(:not(:disabled, [aria-disabled="true"])) {
  background: var(--tl-block-line);
  color: var(--on-plum);
}

.tl .tk-picker__total {
  align-items: baseline;
  padding-block-start: 0;
  border: 0;
}

.tl .tk-picker__total strong {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.tl .tk-picker__checkout,
.tl .tk-picker__bar .btn {
  --btn-bg: var(--on-plum);
  --btn-fg: var(--color-ivy-deep);
  --btn-border: var(--on-plum);
}

.tl .tk-picker__checkout {
  padding-block: 0.82rem;
  font-size: 0.95rem;
}

.tl .tk-picker__checkout:hover:where(:not(:disabled, [aria-disabled="true"])),
.tl .tk-picker__bar .btn:hover:where(:not(:disabled, [aria-disabled="true"])) {
  border-color: var(--gold-bright);
  background: var(--gold-bright);
  color: var(--color-ivy-deep);
}

/* The phone's bar is the cart at the foot of the screen, so it wears the cart's color, edge to edge. */
/* Its color runs to both edges as a shadow clipped to the bar's own height, which makes nothing wider than the screen. */
.tl .tk-picker__bar {
  margin-inline: 0;
  padding-inline: 0;
  border: 0;
  background: var(--color-ivy);
  box-shadow: 0 0 0 100rem var(--color-ivy);
  clip-path: inset(0 -100rem);
  color: var(--on-plum);
}

.tl .tk-picker__bar :focus-visible {
  outline-color: var(--on-plum);
}

.tl .tk-picker__bar-count {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 500;
}

@media (min-width: 48rem) {
  .tl .tk-picker__prices {
    justify-content: flex-end;
  }
}

/* ── What comes next, in a line each ───────────────────────────────────── */
.tl-ahead {
  display: block;
  margin-block: 0;
  padding: 0;
  list-style: none;
}

.tl-ahead .tl-stop {
  display: grid;
  gap: var(--space-1);
}

.tl-ahead .tl-eyebrow {
  color: var(--fg2);
}

.tl-ahead__words {
  max-inline-size: 38rem;
  color: var(--fg2);
  overflow-wrap: anywhere;
}

/* ── After the line: the office and the venue, set as a programme's last page ── */
.tl .ticketing-contact,
.tl .ticketing-visit {
  gap: var(--space-4);
  margin-block-start: var(--space-7);
  padding-block-start: var(--space-4);
  border-block-start: 1px solid var(--fg1);
}

.tl .ticketing-contact + .ticketing-visit {
  margin-block-start: var(--space-6);
}

.tl .ticketing-contact h2,
.tl .ticketing-visit h2 {
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: 1.2;
}

.tl[data-voice="arena"] :is(.ticketing-contact, .ticketing-visit) h2 {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.tl .ticketing-contact__lines dt,
.tl .ticketing-visit__facts dt {
  margin-block-end: var(--space-1);
  color: var(--accent-text);
  font-weight: 700;
  letter-spacing: 0.14em;
}

.tl .ticketing-visit__facts {
  gap: var(--space-5) var(--space-6);
}

.tl .ticketing-visit .ticketing-event__pair {
  margin-block: 0;
}

@media (min-width: 60rem) {
  .tl .ticketing-contact,
  .tl .ticketing-visit {
    grid-template-columns: 15rem minmax(0, 1fr);
    column-gap: var(--space-6);
  }

  .tl .ticketing-visit .ticketing-event__pair {
    grid-column: 2;
  }
}

/* ── Stations said in a line: the facts behind the buyer at checkout and on the order ── */
.tl-stops--brief .tl-stop {
  display: grid;
  gap: var(--space-1);
  padding-block-end: var(--space-4);
}

.tl-stops--brief dd {
  display: block;
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* Where the line ends in one of them, what follows stands clear of it. */
.tl-stops--brief > .tl-stop--last {
  padding-block-end: var(--space-5);
}

.tl-stops__aside {
  display: block;
  color: var(--fg2);
  font-weight: 400;
}

.tl-stops--start > .tl-stop:first-child::after {
  inset-block-start: var(--tl-top);
}

@media (min-width: 30rem) {
  .tl-stops--brief .tl-stop {
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: var(--space-4);
    align-items: baseline;
  }
}

/* ── Checkout: the line goes on through three numbered stations ────────── */
.tl.ticketing-buy,
.tl.ticketing-order {
  display: flex;
  gap: 0;
  max-inline-size: none;
}

.tl--buy {
  --tl-x: 0.875rem;
  --tl-indent: 2.75rem;
}

.tl--buy > .callout {
  margin-block-end: var(--space-5);
}

.tl-buy {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.tl-buy__main {
  min-inline-size: 0;
}

.tl--buy .tl-mast__title,
.tl--order .ticketing-order__going {
  font-size: clamp(2.25rem, 1.6rem + 3vw, 3.5rem);
}

.tl-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: tl-step;
}

.tl .tl-step {
  --tl-mark: 1.75rem;
  --tl-top: 0rem;

  display: grid;
  gap: var(--space-4);
  padding-block-end: var(--space-6);
  counter-increment: tl-step;
}

.tl .tl-step > * {
  min-inline-size: 0;
}

/* The numeral is the list's own number, drawn on the mark. */
.tl .tl-step::before {
  --tl-mark: 1.75rem;
  --tl-top: 0rem;

  content: counter(tl-step);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 4px var(--tl-paper);
  color: var(--accent-fg);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1;
}

.tl .tl-step[data-state="current"]::after {
  background: linear-gradient(to bottom, var(--tl-done) 0 1rem, var(--tl-ahead) 1rem 100%);
}

.tl[data-voice="arena"] .tl-step[data-state="current"]::after {
  background:
    linear-gradient(to bottom, var(--tl-done) 0 1rem, var(--tl-ahead) 1rem 100%) 0 0 / 2px 100% no-repeat,
    repeating-linear-gradient(to bottom, var(--tl-ahead) 0 1px, transparent 1px 0.625rem);
}

.tl-step h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: 1.75rem;
  overflow-wrap: anywhere;
}

.tl[data-voice="arena"] .tl-step h2 {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

/* What is being bought (TicketingCheckoutComponent), ruled like the event page's prices. */
.tl .ticketing-checkout {
  gap: var(--space-3);
  max-inline-size: none;
}

.tl .ticketing-checkout__lines {
  border-block-start: 1px solid var(--fg1);
}

.tl .ticketing-checkout__line {
  border-color: var(--rule-strong);
}

.tl .ticketing-checkout__label {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 500;
  line-height: 1.3;
}

.tl[data-voice="arena"] .ticketing-checkout__label {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 700;
}

.tl .ticketing-checkout__total {
  padding: 0;
  border-radius: 0;
  background: none;
}

.tl .ticketing-checkout__total span {
  color: var(--fg2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tl .ticketing-checkout__total strong {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  line-height: 1;
}

.tl .ticketing-checkout__note {
  font-size: var(--text-sm);
}

.tl .ticketing-buy__who {
  margin-block-start: 0;
}

.tl .ticketing-buy__pay {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}

.tl .ticketing-buy__pay p {
  max-inline-size: 38rem;
  color: var(--fg2);
}

.tl-step .form-actions .btn {
  padding: 0.82rem 1.8rem;
  font-size: 0.95rem;
}

@media (max-width: 30rem) {
  .tl-step .form-actions .btn,
  .tl-arrive .btn {
    inline-size: 100%;
  }
}

.tl--buy .ticketing-buy__back {
  margin-block: var(--space-4) 0;
}

/* The total and the hold, always in view: ivy, because the seats are the buyer's while the clock runs. */
.tl-block {
  min-inline-size: 0;
}

.tl-block--ivy {
  border-color: color-mix(in srgb, var(--on-plum) 16%, var(--color-ivy));
  background: var(--color-ivy);
}

.tl-block--ivy .btn:not(.btn-quiet, .btn-secondary),
.tl-block--ivy .btn:not(.btn-quiet, .btn-secondary):hover:where(:not(:disabled, [aria-disabled="true"])) {
  --btn-fg: var(--color-ivy-deep);

  color: var(--color-ivy-deep);
}

.tl-sum {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-6) var(--space-5);
  text-align: center;
}

.tl-sum p {
  margin: 0;
  overflow-wrap: anywhere;
}

.tl-sum__total {
  display: grid;
  justify-items: center;
  gap: var(--space-2);
}

.tl-sum__total strong {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.tl-sum__total strong::before {
  content: "";
  display: block;
  inline-size: 1px;
  block-size: 2rem;
  margin: 0 auto var(--space-3);
  background: var(--gold-bright);
}

.tl-sum .ticketing-buy__held,
.tl-sum__note {
  color: var(--tl-on-block);
}

.tl-sum .ticketing-buy__held strong {
  color: var(--on-plum);
}

.tl-sum__note {
  font-size: var(--text-sm);
}

/* On a phone the block is a bar at the foot of the screen for as long as the stations are in view. */
@media (max-width: 59.99rem) {
  .tl-sum {
    position: sticky;
    inset-block-end: 0;
    z-index: 3;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: var(--space-1) var(--space-4);
    margin-block-start: var(--space-5);
    padding: var(--space-3) 0;
    padding-block-end: max(var(--space-3), var(--safe-bottom));
    border: 0;
    box-shadow: 0 0 0 100rem var(--color-ivy);
    clip-path: inset(0 -100rem);
    text-align: start;
  }

  .tl-sum__total {
    justify-items: start;
    gap: 0;
  }

  .tl-sum__total strong {
    font-size: var(--text-2xl);
  }

  .tl-sum__total strong::before {
    content: none;
  }

  .tl-sum .ticketing-buy__held {
    font-size: var(--text-sm);
    text-align: end;
  }

  /* Said with the list above; the bar keeps to the total and the clock. */
  .tl-sum__note {
    display: none;
  }

  /* A field the keyboard lands on is not left under the bar (WCAG 2.4.11). */
  .tl--buy :is(input, select, textarea, button, a, summary) {
    scroll-margin-block-end: 6rem;
  }
}

@media (min-width: 60rem) {
  .tl--buy {
    --tl-indent: 3.5rem;
  }

  .tl-buy {
    grid-template-columns: minmax(0, 42rem) minmax(17rem, 22rem);
    justify-content: space-between;
    align-items: start;
    column-gap: clamp(3rem, 7vw, 6rem);
    padding-block-start: var(--space-5);
  }

  .tl-sum {
    position: sticky;
    inset-block-start: max(var(--space-5), var(--safe-top));
  }
}

/* ── The order: the line arrives ───────────────────────────────────────── */
.tl--order {
  padding-block-start: var(--space-2);
}

.tl-order__line,
.tl-order__next {
  min-inline-size: 0;
}

/* The last station's words are a block of ivy, set as the price is on the event's page: it starts where every station's words start, and the line ends in
   the mark beside its first line. */
.tl .tl-arrive {
  --tl-pad: var(--space-5);
  --tl-top: calc(var(--tl-pad) + 1px);
}

.tl .tl-arrive::before {
  --tl-mark: 1rem;
  --tl-top: calc(var(--tl-pad) + 1px);
}

/* The buyer has come the whole way: the line is in its own color to the last mark. */
.tl .tl-arrive::after,
.tl[data-voice="arena"] .tl-arrive::after {
  inset-inline-start: calc(var(--tl-x) - 1px);
  inline-size: 2px;
  background: var(--tl-done);
}

.tl-arrive__block {
  display: grid;
  justify-items: start;
  gap: var(--space-4);
  padding: var(--tl-pad);
}

.tl-arrive__block > * {
  min-inline-size: 0;
  margin-block: 0;
}

.tl .tl-arrive .tl-eyebrow {
  color: var(--gold-bright);
}

.tl .tl-arrive .ticketing-order__going {
  color: var(--on-plum);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.tl[data-voice="arena"] .tl-arrive .ticketing-order__going {
  font-family: var(--font-sans);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.tl-arrive .btn {
  --btn-bg: var(--on-plum);
  --btn-fg: var(--color-ivy-deep);
  --btn-border: var(--on-plum);
}

.tl-arrive .btn:hover:where(:not(:disabled, [aria-disabled="true"])) {
  border-color: var(--gold-bright);
  background: var(--gold-bright);
  color: var(--color-ivy-deep);
}

.tl-arrive :focus-visible {
  outline-color: var(--on-plum);
}

.tl-arrive__number {
  color: var(--tl-on-block);
  font-size: var(--text-sm);
}

.tl-arrive .ticketing-order__number {
  color: var(--on-plum);
  font-weight: 600;
}

/* What to do next. */
.tl-order__next {
  display: grid;
  align-content: start;
  gap: var(--space-5);
  margin-block-start: var(--space-6);
}

.tl-order__next .ticketing-checkout__title,
.tl .ticketing-order__keep h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.tl[data-voice="arena"] :is(.tl-order__next .ticketing-checkout__title, .ticketing-order__keep h2) {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.tl .ticketing-order__keep {
  gap: var(--space-3);
  padding: var(--space-5) 0 0;
  border: 0;
  border-block-start: 1px solid var(--fg1);
  border-radius: 0;
  background: none;
}

.tl .ticketing-order__keep p {
  max-inline-size: 38rem;
  color: var(--fg2);
}

.tl .ticketing-order__keep .btn {
  justify-self: start;
}

.tl .ticketing-order__back {
  margin-block: var(--space-6) 0;
}

@media (min-width: 60rem) {
  .tl.ticketing-order {
    display: grid;
    grid-template-columns: minmax(0, 30rem) minmax(0, 1fr);
    align-items: start;
    column-gap: clamp(3rem, 7vw, 6rem);
    padding-block-start: var(--space-5);
  }

  .tl-order__next {
    margin-block-start: 0;
  }

  .tl .tl-arrive {
    --tl-pad: var(--space-6);
  }

  .tl .ticketing-order__back {
    grid-column: 1 / -1;
  }
}

/* In a Hotwire Native shell the page's first row is the way back: the photograph starts under it. */
[data-native][data-native-back] .tl-photo {
  margin-block-start: 0;
}

@media (prefers-reduced-motion: reduce) {
  .tl .btn {
    transition: none;
  }
}
