/* Only the Event Security page loads this stylesheet. "Before, during, and after
   your event" is a set of tear-off tickets: a red stub with the stage name, a
   perforated tear line with notches cut from both edges, and a faint barcode.
   Where our event officers work follows as a wide navy "all access" pass. */
.ev-tickets { --ev-stub: 5.25rem; --ev-notch: .75rem; }
.ev-ticket-list { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); margin: 0; padding: 0; list-style: none; }
/* The shadow sits on the wrapper so the notch mask on the shape cannot clip it. */
.ev-ticket { min-width: 0; filter: drop-shadow(0 12px 24px rgb(18 22 42 / .12)); transition: transform .35s cubic-bezier(.22, 1, .36, 1); }
.ev-ticket-shape { position: relative; display: grid; grid-template-columns: var(--ev-stub) minmax(0, 1fr); height: 100%; background: #fff;
  -webkit-mask: radial-gradient(circle at var(--ev-stub) 0, transparent var(--ev-notch), #000 calc(var(--ev-notch) + .5px)) top / 100% 51% no-repeat, radial-gradient(circle at var(--ev-stub) 100%, transparent var(--ev-notch), #000 calc(var(--ev-notch) + .5px)) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle at var(--ev-stub) 0, transparent var(--ev-notch), #000 calc(var(--ev-notch) + .5px)) top / 100% 51% no-repeat, radial-gradient(circle at var(--ev-stub) 100%, transparent var(--ev-notch), #000 calc(var(--ev-notch) + .5px)) bottom / 100% 51% no-repeat; }

.ev-ticket-stub { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem; min-height: 100%; padding: 1.5rem .5rem; background: var(--accent); color: #fff; }
.ev-ticket-no { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
/* The stage name reads bottom to top along the stub, like a printed ticket. */
.ev-ticket-stage { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--font-accent); font-size: 1.375rem; font-weight: 700; letter-spacing: .14em; line-height: 1; text-transform: uppercase; }

.ev-ticket-body { position: relative; min-width: 0; padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 3vw, 2.25rem) clamp(1.75rem, 3vw, 2.5rem); border-left: 2px dashed rgb(25 26 55 / .22); }
.ev-ticket-body h3 { margin: 0 0 .5rem; }
.ev-ticket-body > p { margin: 0; color: var(--muted); }

/* The all-access pass: a navy stub and the event types as ticket tags. */
.ev-pass { margin-top: clamp(1.25rem, 2.5vw, 2rem); }
.ev-pass .ev-ticket-stub { background: var(--ink); }
.ev-pass .ev-ticket-stage { font-size: 1.0625rem; }
.ev-pass-list { display: flex; flex-wrap: wrap; gap: .625rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.ev-pass-list li { padding: .5rem .875rem .5rem 1rem; border: 1px solid var(--sv-line); border-left: 4px solid var(--accent); background: var(--sv-panel); font-weight: 700; line-height: 1.3; }

@media (hover: hover) and (pointer: fine) {
  .ev-ticket-list .ev-ticket:hover { transform: translateY(-.375rem) rotate(-.5deg); }
}
@media (prefers-reduced-motion: reduce) {
  .ev-ticket { transition: none; }
  .ev-ticket-list .ev-ticket:hover { transform: none; }
}
/* Phones: a slimmer pass stub, and the event types in two even columns. */
@media (max-width: 39.999rem) {
  .ev-pass { --ev-stub: 3.25rem; }
  .ev-pass .ev-ticket-no { display: none; }
  .ev-pass .ev-ticket-stub { justify-content: center; }
  .ev-pass .ev-ticket-body { padding-inline: 1.25rem; }
  .ev-pass-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .ev-pass-list li { padding: .5rem .625rem .5rem .75rem; border-left-width: 3px; font-size: .9375rem; }
}
@media (min-width: 40rem) {
  .ev-tickets { --ev-stub: 6rem; }
  /* A faint barcode printed along the right edge of each ticket. */
  .ev-ticket-list .ev-ticket-body { padding-right: 4.5rem; }
  .ev-ticket-list .ev-ticket-body::after { content: ""; position: absolute; top: 1.5rem; bottom: 1.5rem; right: 1.5rem; width: 1.5rem; background: repeating-linear-gradient(180deg, rgb(25 26 55 / .16) 0 2px, transparent 2px 4px, rgb(25 26 55 / .16) 4px 5px, transparent 5px 8px, rgb(25 26 55 / .16) 8px 11px, transparent 11px 13px); }
}
@media (min-width: 48rem) {
  .ev-ticket-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Case study: the shared split layout on white (the tickets above sit on the
   light panel), with the photo on the right on wide screens. */
.ev-case { background: #fff; }
@media (min-width: 64rem) {
  .ev-case .sv-ph { order: 2; }
  .ev-case .sv-case-split-text { padding-left: max(var(--sv-gutter), env(safe-area-inset-left, 0px), calc((100vw - 92rem) / 2 + var(--sv-gutter))); padding-right: clamp(3rem, 6vw, 6rem); }
}
