/* Collector ticket. Kept separate from the existing public-site invitation. */
.postcard-test .ticket-stage { width: min(100%, 900px); perspective: 1200px; padding-bottom: 8px; }
.postcard-test .route-ticket {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 214px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: none;
  box-shadow: none;
  filter: drop-shadow(0 1px 1px rgb(48 39 28 / 30%)) drop-shadow(0 9px 7px rgb(48 39 28 / 13%)) drop-shadow(0 29px 24px rgb(48 39 28 / 16%));
  transform-origin: 50% 50%;
  scroll-margin-top: 48px;
  touch-action: pan-y pinch-zoom;
}
.postcard-test .route-ticket::before,
.postcard-test .route-ticket::after { content: ''; position: absolute; inset: 0; border-radius: 7px; clip-path: var(--ticket-outline); pointer-events: none; }
.postcard-test .route-ticket::before {
  z-index: -1;
  opacity: 1;
  background: linear-gradient(135deg, rgb(255 253 248 / 64%), rgb(248 245 237 / 44%) 55%, rgb(248 245 237 / 54%)), #f8f5ed url('assets/images/ticket-paper.webp') center / cover;
  box-shadow: inset 0 1px 0 #fffef9, inset 0 0 0 1px rgb(149 137 117 / 18%);
}
.postcard-test .route-ticket::after { z-index: -2; transform: translateY(4px); background: repeating-linear-gradient(to bottom, #d4cdc0 0 1px, #e8e1d4 1px 2px); }
.route-main { min-width: 0; padding: 28px 32px 26px; }
.route-edition { display: flex; align-items: center; gap: 20px; margin: 0 0 27px; color: #5f5950; font: 500 11px/1.5 'GT America Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }
.route-edition::after { content: ''; flex: 1; height: 1px; background: #bdb5a7; }
.route-identity { display: grid; grid-template-columns: 114px minmax(0, 1fr); gap: 28px; align-items: center; }
.route-art { width: 114px; margin: 0; padding: 5px; background: #e8e2d8; border: 1px solid #c7beaf; box-shadow: 0 1px 0 #fffdf8, inset 0 1px 2px rgb(48 39 28 / 12%); }
.route-art img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: contain; }
.postcard-test .route-ticket .route-title { padding: 0; margin: 0 0 22px; font-weight: 400; }
.route-title > span { display: block; }
.route-title > span:first-child { font-size: clamp(28px, 3vw, 37px); line-height: 1.09; letter-spacing: -.035em; }
.route-title > span:last-child { margin-top: 8px; font-size: 22px; line-height: 1.3; letter-spacing: -.02em; }
.route-summary { margin: 0; font: 400 11px/1.8 'GT America Mono', monospace; color: #514b43; text-wrap: pretty; }
.route-note { margin: 25px 0 0; padding-top: 19px; border-top: 1px solid #c9c0b3; color: #5f584f; font-size: 14px; line-height: 1.6; text-wrap: pretty; }
.route-meta { display: flex; flex-wrap: wrap; gap: 5px 18px; margin-top: 22px; color: #655e54; font-size: 11px; line-height: 1.5; }
.route-stub { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 28px 26px; }
.route-stub::before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; border-left: 1px dashed #a99e8b; }
.postcard-test .route-ticket .ticket-seal { position: relative; inset: auto; align-self: flex-end; width: 112px; height: 81px; margin: 0 0 30px; padding: 13px 14px 9px; border-radius: 5px; }
.postcard-test .route-ticket .ticket-seal img { width: 63px; }
.postcard-test .route-ticket .ticket-seal span { margin-top: 5px; padding-top: 4px; font-size: 9px; }
.route-facts { margin-top: auto; width: 100%; font: 500 10px/1.5 'GT America Mono', monospace; letter-spacing: .035em; text-transform: uppercase; }
.route-facts p { padding: 13px 0; margin: 0; border-top: 1px solid #c9c0b3; }
.route-facts .ticket-status { display: flex; gap: 8px; }
.route-facts .ticket-status > span { width: 6px; height: 6px; flex-basis: 6px; }
.route-ticket .invitation-cta-slot { display: block; margin-top: 16px; min-height: 44px; }
.route-ticket .apply-button { --cta-size: 44px; --cta-gap: 2px; min-height: 44px; font-size: 10px; letter-spacing: 0; cursor: pointer; }
.route-ticket .apply-button .cta-label { padding: 0 12px; }
.route-ticket .cta-arrow { width: 16px; height: 16px; }
.route-ticket .apply-button:focus-visible { outline: 2px solid var(--carbon); outline-offset: 5px; }
@media (min-width: 768px) and (max-width: 1000px) {
  .postcard-test .route-ticket { grid-template-columns: minmax(0, 1fr) 194px; }
  .route-main { padding: 26px; }
  .route-identity { grid-template-columns: 86px minmax(0, 1fr); gap: 20px; }
  .route-art { width: 86px; padding: 4px; }
  .route-title > span:first-child { font-size: 30px; }
  .route-title > span:last-child { font-size: 19px; }
  .route-summary { font-size: 10px; }
  .route-stub { padding: 26px 20px; }
}
@media (max-width: 767px) {
  .postcard-test .ticket-stage { max-width: 420px; perspective: none; }
  /* Keep the paper edge flat on phones. Stacked filtered 3D layers can leave
     stretched strips below the cutouts while Safari scrolls. */
  .postcard-test .route-ticket { grid-template-columns: minmax(0, 1fr); transform: none; filter: drop-shadow(0 12px 14px rgb(48 39 28 / 18%)); }
  .postcard-test .route-ticket::after { transform: translateY(2px); }
  .route-main { padding: 24px 24px 22px; }
  .route-edition { min-height: 44px; margin-bottom: 25px; padding-right: 95px; font-size: 10px; }
  .route-edition::after { display: none; }
  .route-identity { grid-template-columns: 70px minmax(0, 1fr); gap: 18px; align-items: start; }
  .route-art { width: 70px; padding: 3px; margin-top: 2px; }
  .postcard-test .route-ticket .route-title { margin-bottom: 13px; }
  .route-title > span:first-child { font-size: 27px; line-height: 1.06; }
  .route-title > span:last-child { font-size: 17px; margin-top: 7px; }
  .route-summary { font-size: 10px; line-height: 1.7; }
  .route-note { margin-top: 23px; padding-top: 18px; font-size: 14px; line-height: 1.6; }
  .route-meta { margin-top: 17px; font-size: 10px; gap: 5px 12px; }
  .route-stub { position: static; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: center; padding: 25px 24px; border-top: 1px dashed #a99e8b; margin: 0 10px; }
  .route-stub::before { display: none; }
  .postcard-test .route-ticket .ticket-seal { position: absolute; top: 23px; right: 24px; width: 80px; height: 58px; padding: 8px 10px 6px; margin: 0; border-radius: 4px; }
  .postcard-test .route-ticket .ticket-seal img { width: 44px; }
  .postcard-test .route-ticket .ticket-seal span { margin-top: 3px; padding-top: 3px; font-size: 7px; }
  .route-facts { margin: 0; font-size: 9px; line-height: 1.65; letter-spacing: 0; }
  .route-facts p { padding: 0; border: 0; }
  .route-facts p + p { margin-top: 6px; }
  .route-facts .ticket-status { gap: 5px; font-size: 8px; }
  .route-ticket .invitation-cta-slot { margin: 0; }
  .route-ticket .apply-button { font-size: 9px; }
  .route-ticket .apply-button .cta-label { padding-inline: 9px; }
}
@media (max-width: 359px) {
  .route-main { padding-inline: 20px; }
  .route-identity { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; }
  .route-art { width: 56px; }
  .route-title > span:first-child { font-size: 25px; }
  .route-title > span:last-child { font-size: 16px; }
  .route-summary { font-size: 10px; }
  .route-stub { padding-inline: 12px; gap: 10px; }
  .route-facts { font-size: 9px; }
  .route-ticket .apply-button .cta-label { padding-inline: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .postcard-test .route-ticket { transform: none !important; }
  .postcard-test .route-ticket .ticket-seal { filter: none; }
}
@media (forced-colors: active) {
  .postcard-test .route-ticket { border: 1px solid CanvasText; background: Canvas; filter: none; }
  .postcard-test .route-ticket::before, .postcard-test .route-ticket::after { display: none; }
}
