/* Ticketplanet signature: the box-office ticket. Each event is a ticket card with a stub (date block in the marquee
   letter), a perforation with half-moon notches, and one "Tickets" action. Tokens: themes/ticketplanet.css.
   Markup: examples/ticketplanet.html. Pictograms: icons/events/sprite.svg (ev-*). */
.zs-logo { font-weight: var(--zs-display-weight); letter-spacing: .02em; text-transform: uppercase; }
.tp-num { font-variant-numeric: tabular-nums lining-nums; }
h1, h2, h3 { text-transform: none; }

.tp-picto { --picto-bg: var(--zs-picto); display: inline-grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; border-radius: 6px; background: var(--picto-bg); color: var(--zs-picto-ink); }
.tp-picto svg { width: 66%; height: 66%; }
.tp-picto--sm { width: 1.75rem; height: 1.75rem; border-radius: 4px; }

/* Filter row (season tabs) */
.tp-tabs { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; gap: .4rem; overflow-x: auto; }
.tp-tabs a { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; padding: .5rem .85rem; border: 1px solid var(--zs-line); border-radius: var(--zs-radius-btn); background: var(--zs-surface); color: var(--zs-ink); text-decoration: none; font-weight: 600; }
.tp-tabs a[aria-current] { background: var(--zs-brand); border-color: var(--zs-brand); color: var(--zs-on-brand); }

/* The ticket */
.tp-tickets { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.tp-ticket { --notch: 11px; position: relative; display: grid; grid-template-columns: 6.25rem minmax(0, 1fr); background: var(--zs-surface); border: 1px solid var(--zs-line); border-radius: var(--zs-radius);
  -webkit-mask: radial-gradient(circle var(--notch) at 6.25rem 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at 6.25rem 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle var(--notch) at 6.25rem 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at 6.25rem 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; }
.tp-stub { background: var(--tp-stub); color: var(--tp-stub-ink); border-radius: var(--zs-radius) 0 0 var(--zs-radius); display: grid; align-content: center; justify-items: center; padding: 1rem .5rem; text-align: center; border-right: 2px dashed var(--tp-perf); }
.tp-stub__day { font-size: .8rem; text-transform: lowercase; opacity: .9; }
.tp-stub__num { font: 800 2.9rem/.9 var(--zs-font-display); }
.tp-stub__month { font: 700 1rem/1 var(--zs-font-display); text-transform: uppercase; letter-spacing: .06em; }
.tp-main { padding: 1rem 1.25rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .35rem 1.25rem; align-items: center; }
.tp-main h3 { margin: 0; font-size: 1.45rem; grid-column: 1; }
.tp-main h3 a { color: inherit; text-decoration: none; }
.tp-main h3 a:hover { text-decoration: underline; }
.tp-meta { grid-column: 1; margin: 0; display: flex; flex-wrap: wrap; gap: .25rem 1rem; color: var(--zs-muted); font-size: .92rem; }
.tp-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.tp-meta svg { width: 1.05rem; height: 1.05rem; color: var(--zs-brand-text); }
.tp-buy { grid-column: 2; grid-row: 1 / span 2; display: grid; justify-items: end; gap: .4rem; }
.tp-price { font: 800 1.5rem/1 var(--zs-font-display); }
.tp-price small { font: 400 .8rem var(--zs-font-body); color: var(--zs-muted); display: block; text-align: right; }
.tp-flag { justify-self: start; grid-column: 1; font-size: .8rem; font-weight: 700; padding: .15rem .5rem; border-radius: 3px; background: var(--zs-highlight); color: var(--zs-highlight-ink); }
.tp-flag--soldout { background: var(--tp-soldout-bg); color: var(--tp-soldout); }
@media (max-width: 40rem) {
  .tp-ticket { grid-template-columns: 4.75rem minmax(0, 1fr);
    -webkit-mask: radial-gradient(circle var(--notch) at 4.75rem 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at 4.75rem 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
            mask: radial-gradient(circle var(--notch) at 4.75rem 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at 4.75rem 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; }
  .tp-stub__num { font-size: 2.3rem; }
  .tp-main { grid-template-columns: 1fr; padding: .9rem 1rem; }
  .tp-buy { grid-column: 1; grid-row: auto; justify-items: start; grid-auto-flow: column; align-items: center; gap: 1rem; }
  .tp-price small { text-align: left; }
}

/* Season block */
.tp-season { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-bottom: 3px solid var(--zs-brand-text); padding-bottom: .4rem; margin: 2.5rem 0 1rem; }
.tp-season h2 { margin: 0; font-size: 2rem; }
.tp-season p { margin: 0; color: var(--zs-muted); }
