/* ============================================================
   45 — Booking (/book/).

   Everything is scoped to .rhbk-page so it cannot reach the
   schedule (.rhc-*), the homepage (.rhcx-home) or the account
   page. Colors are the phase1 :root tokens; nothing is
   redefined here. Mobile first; the two-column join view
   starts at 900px.
   ============================================================ */

.rhbk-page {
  --rhbk-gutter: clamp(20px, 4vw, 34px);
  background: var(--surface);
  color: var(--tx);
  font-family: var(--b);
  overflow-x: clip;
  padding-block: 34px 64px;
}

.rhbk-page img {
  max-width: 100%;
}

/* phase1 caps every paragraph at 62ch; here the column is the measure. */
.rhbk-page p {
  max-width: none;
}

.rhbk-page .rhbk-wrap {
  max-inline-size: var(--max);
  margin-inline: auto;
  padding-inline: var(--rhbk-gutter);
}

.rhbk-page a:focus-visible,
.rhbk-page button:focus-visible,
.rhbk-page input:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
}

.rhbk-page .rhbk-tlink {
  color: var(--rust);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--clay);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.rhbk-page .rhbk-tlink:hover {
  text-decoration-color: var(--rust);
}

/* ---------------------------------------------------- the class card */

.rhbk-page .rhbk-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 20px 22px 18px;
  margin: 0 0 28px;
}

.rhbk-page .rhbk-card__disc {
  margin: 0 0 6px;
  color: var(--clay-tx);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.rhbk-page .rhbk-card__title {
  margin: 0;
  font-family: var(--d);
  font-size: clamp(22px, 4.4vw, 29px);
  font-weight: 600;
  line-height: 1.16;
  color: var(--ink);
}

.rhbk-page .rhbk-card__when {
  margin: 10px 0 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.rhbk-page .rhbk-card__who {
  margin: 2px 0 0;
  font-size: 15.5px;
  color: var(--tx-2);
}

.rhbk-page .rhbk-card__head {
  min-inline-size: 0;
}

.rhbk-page .rhbk-card__cost {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-size: 15px;
  font-weight: 600;
  color: var(--river);
  letter-spacing: .01em;
}

@media (min-width: 700px) {
  .rhbk-page .rhbk-card {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px 40px;
  }

  .rhbk-page .rhbk-card__cost {
    flex: 0 0 auto;
    margin: 0;
    padding: 8px 0 8px 22px;
    border-top: 0;
    border-left: 1px solid var(--rule);
    white-space: nowrap;
  }
}

/* ---------------------------------------------------- the two columns */

.rhbk-page .rhbk-main {
  display: flex;
  flex-wrap: wrap;
  gap: 30px 44px;
  align-items: flex-start;
}

.rhbk-page .rhbk-media {
  flex: 1 1 300px;
  min-inline-size: 0;
  align-self: stretch;
}

.rhbk-page .rhbk-media picture {
  display: block;
  block-size: 100%;
}

.rhbk-page .rhbk-media img {
  display: block;
  inline-size: 100%;
  block-size: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 46%;
  border: 1px solid var(--rule);
}

.rhbk-page .rhbk-content {
  flex: 1 1 360px;
  min-inline-size: 0;
}

@media (min-width: 900px) {
  .rhbk-page .rhbk-main {
    align-items: stretch;
  }

  .rhbk-page .rhbk-media {
    flex: 0 1 45%;
    max-inline-size: 45%;
  }

  /* The photograph is as tall as whatever is beside it, never taller. */
  .rhbk-page .rhbk-media img {
    aspect-ratio: auto;
    block-size: 100%;
    min-block-size: 430px;
    max-block-size: 760px;
  }

  .rhbk-page .rhbk-content {
    flex: 1 1 46%;
  }
}

/* ---------------------------------------------------- the words */

.rhbk-page .rhbk-h1 {
  margin: 0 0 12px;
  font-family: var(--d);
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--ink);
}

.rhbk-page .rhbk-lede {
  margin: 0 0 26px;
  max-inline-size: 46ch;
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--tx-2);
}

.rhbk-page .rhbk-fine {
  margin: 14px 0 0;
  max-inline-size: 56ch;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--tx-3);
}

.rhbk-page .rhbk-signin {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: 15.5px;
  color: var(--tx-2);
}

.rhbk-page .rhbk-after {
  margin: 20px 0 0;
  font-size: 16px;
}

/* ---------------------------------------------------- the three cards */

.rhbk-page .rhbk-packs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
}

@media (min-width: 900px) {
  .rhbk-page .rhbk-packs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

.rhbk-page .rhbk-pack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px 17px 15px;
  background: #fff;
  border: 1px solid var(--rule);
  cursor: pointer;
}

.rhbk-page .rhbk-pack:hover {
  border-color: var(--clay);
}

/* Payment closed: the same cards, reading as a price list. */
.rhbk-page .rhbk-pack--static {
  cursor: default;
  background: var(--paper);
}

.rhbk-page .rhbk-pack--static:hover {
  border-color: var(--rule);
}

.rhbk-page .rhbk-pack.is-chosen {
  border-color: var(--rust);
  box-shadow: inset 0 0 0 1px var(--rust);
}

.rhbk-page .rhbk-pack__radio {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.rhbk-page .rhbk-pack__name {
  font-family: var(--d);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

.rhbk-page .rhbk-pack__price {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--river);
}

.rhbk-page .rhbk-pack__note {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--tx-2);
}

.rhbk-page .rhbk-pack__choose {
  margin-top: auto;
  padding-top: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tx-3);
}

.rhbk-page .rhbk-pack.is-chosen .rhbk-pack__choose {
  color: var(--rust-tx);
}

.rhbk-page .rhbk-pack.is-chosen .rhbk-pack__choose::after {
  content: " ✓";
}

/* ---------------------------------------------------- email + payment */

.rhbk-page .rhbk-field {
  margin: 26px 0 0;
}

.rhbk-page .rhbk-label {
  display: block;
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.rhbk-page .rhbk-input {
  inline-size: 100%;
  min-block-size: 50px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 0;
  font-family: var(--b);
  font-size: 16px;
  color: var(--ink);
}

.rhbk-page .rhbk-input:focus {
  border-color: var(--river);
}

.rhbk-page .rhbk-hint {
  margin: 7px 0 0;
  font-size: 14px;
  color: var(--tx-3);
}

.rhbk-page .rhbk-error {
  margin: 8px 0 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--rust);
}

.rhbk-page .rhbk-pay {
  margin: 24px 0 0;
  inline-size: 100%;
}

.rhbk-page .rhbk-checkout-form {
  inline-size: 100%;
  min-block-size: 44px;
}

.rhbk-page .rhbk-phone {
  margin: 26px 0 0;
  padding: 16px 18px;
  background: var(--paper);
  border-left: 3px solid var(--rust);
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink);
}

/* ---------------------------------------------------- the one action */

.rhbk-page .rhbk-confirm {
  /*
   * T1c-004: the fine print about the cancellation window now renders BEFORE
   * this button, not after it, so the gap here separates the button from a
   * full paragraph rather than from the lede it used to sit directly under.
   */
  margin: 18px 0 0;
}

.rhbk-page .rhbk-confirm form {
  margin: 0;
}

.rhbk-page .rhbk-confirm button,
.rhbk-page .rhbk-confirm .rhc-btn {
  display: inline-block;
  min-block-size: 52px;
  padding: 14px 30px;
  border: 0;
  background: var(--rust);
  color: #fff;
  font-family: var(--b);
  font-size: 16.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.rhbk-page .rhbk-confirm button:hover,
.rhbk-page .rhbk-confirm button:focus-visible {
  background: #97401f;
  color: #fff;
}

/* ---------------------------------------------------- the messages */

.rhbk-page .rhbk-notice,
.rhbk-page .rh-booking-notice {
  margin: 0 0 26px;
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--river);
}

.rhbk-page .rhbk-notice h1,
.rhbk-page .rhbk-notice h2,
.rhbk-page .rhbk-notice h3,
.rhbk-page .rh-booking-notice h1,
.rhbk-page .rh-booking-notice h2,
.rhbk-page .rh-booking-notice h3 {
  margin: 0 0 6px;
  font-family: var(--d);
  font-size: clamp(21px, 4vw, 26px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

.rhbk-page .rhbk-notice p,
.rhbk-page .rh-booking-notice p {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--tx-2);
}

.rhbk-page .rhbk-notice--wait {
  border-left-color: var(--clay);
}

.rhbk-page .notice--w {
  border-left-color: var(--rust);
}

/* The "choose a password" card after a purchase-created account books. */
.rhbk-page .rhbk-notice--soft {
  border-inline-start-color: var(--clay);
}

.rhbk-page .rhbk-notice--soft .rhbk-btn {
  display: inline-block;
  margin-top: 4px;
  padding: 12px 22px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--rust);
  border: 0;
  text-decoration: none;
}

.rhbk-page .rhbk-notice--soft .rhbk-btn:hover,
.rhbk-page .rhbk-notice--soft .rhbk-btn:focus-visible {
  background: var(--ink);
  color: #fff;
}

/* --------------------------------------------------------------------------
 * The states where a seat cannot be had: full, already booked, called off,
 * started, not found. They are quiet pages - a sentence, the real balance, and
 * the dates that CAN be booked. No purchase cards, so nothing here is loud.
 * -------------------------------------------------------------------------- */

.rhbk-page .rhbk-balance {
  margin: 0 0 18px;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--tx-2);
}

.rhbk-page .rhbk-alt {
  margin: 6px 0 20px;
  padding: 0;
  list-style: none;
}

.rhbk-page .rhbk-alt li {
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid var(--line, rgba(20, 32, 27, 0.14));
  font-size: 17px;
  line-height: 1.4;
}

.rhbk-page .rhbk-alt li:first-child {
  border-top: 1px solid var(--line, rgba(20, 32, 27, 0.14));
}

/*
 * T1c-001: the shop, offered quietly underneath a state that has already
 * told the reader what they hold. The heading is deliberately not styled
 * like .rhbk-h1 - it is a secondary offer, not the reason the reader is
 * on the page.
 */
.rhbk-page .rhbk-buy-more {
  margin: 34px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
}

.rhbk-page .rhbk-buy-more h2 {
  margin: 0 0 14px;
  font-family: var(--b);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tx-3);
}

/* The one control a failed checkout leaves the reader. */
.rhbk-page .rhbk-retry {
  margin: 10px 0 0;
}

/* The press that turns a link somebody followed into a purchase they chose. */
.rhbk-page .rhbk-proceed {
  margin: 10px 0 0;
}

.rhbk-page .rhbk-btn {
  display: inline-block;
  padding: 12px 22px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--rust);
  border: 0;
  text-decoration: none;
  cursor: pointer;
}

.rhbk-page .rhbk-btn:hover,
.rhbk-page .rhbk-btn:focus-visible {
  background: var(--ink);
  color: #fff;
}
