/* Tickets: the HTML ticket designs (site and organiser pages) */
.tkt-list { display: grid; gap: 26px; margin: 22px 0; }
.tkt { display: grid; grid-template-columns: minmax(0, 1fr) 190px; max-width: 780px; filter: drop-shadow(0 10px 18px rgba(20,39,30,.26)); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.tkt-main { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 18px; padding: 30px 36px; background: #14271E radial-gradient(circle at 82% 100%, rgba(168,139,90,.38) 0, rgba(168,139,90,0) 46%); color: #F7F3EC; border-radius: 6px 0 0 6px; }
.tkt-arch { position: absolute; right: -10px; bottom: -20px; width: 250px; height: 250px; opacity: .4; pointer-events: none; }
.tkt-brand { position: relative; display: flex; align-items: center; gap: 16px; }
.tkt-brand div { display: grid; line-height: 1; }
.tkt-brand i { font: italic 12px var(--serif); color: #CFC4B1; }
.tkt-brand b { font: 500 34px var(--serif); color: #F7F3EC; margin-top: 2px; }
.tkt-brand span { margin-top: 5px; font: 600 8px var(--sans); letter-spacing: .5em; text-transform: uppercase; color: #F7F3EC; }
.tkt-line { position: relative; margin: 0; font: italic 18px var(--serif); color: #CFC4B1; }
.tkt-facts { position: relative; display: flex; flex-wrap: wrap; gap: 14px 34px; margin: auto 0 0; }
.tkt-facts dt { font: 600 8px var(--sans); letter-spacing: .22em; text-transform: uppercase; color: #A88B5A; }
.tkt-facts dd { margin: 3px 0 0; font: 14px var(--serif); color: #F7F3EC; }
.tkt-stub { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 12px; padding: 24px 16px; text-align: center; background: #F7F3EC; color: #2B2823; border-left: 2px dashed #A88B5A; border-radius: 0 6px 6px 0; }
.tkt-stub::before, .tkt-stub::after { content: ""; position: absolute; left: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg, #F7F3EC); }
.tkt-stub::before { top: -12px; } .tkt-stub::after { bottom: -12px; }
.tkt-k { font: 600 8px var(--sans); letter-spacing: .24em; text-transform: uppercase; color: #7A6038; }
.tkt-stub .qr { width: 124px; height: 124px; display: block; border-radius: 2px; }
.tkt-cat b { display: block; font: 500 13px var(--serif); color: #1F3A2E; }
.tkt-cat i { display: block; width: 24px; height: 1px; background: #A88B5A; margin: 7px auto; }
.tkt-cat span { font: italic 11px/1.4 var(--serif); color: #3E5A4A; }
.tkt-no { font: 8px var(--sans); letter-spacing: .14em; color: #6F6657; word-break: break-all; }
@media (max-width: 640px) {
  .tkt { grid-template-columns: 1fr; }
  .tkt-main { border-radius: 6px 6px 0 0; padding: 26px 22px; }
  .tkt-stub { border-left: 0; border-top: 2px dashed #A88B5A; border-radius: 0 0 6px 6px; }
  .tkt-stub::before, .tkt-stub::after { top: -12px; bottom: auto; }
  .tkt-stub::before { left: -12px; } .tkt-stub::after { left: auto; right: -12px; }
}
@media print {
  .tkt { filter: none; box-shadow: none; break-inside: avoid; }
  [data-print] { display: none; }
}


.tkt, .tkt-slip { --serif: "Lora", Georgia, "Times New Roman", serif; --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.tkt-brand svg { color: #F7F3EC; flex: none; }
.tkt-sample { position: absolute; top: 10px; right: 12px; z-index: 2; padding: 3px 9px; border: 1px solid #A88B5A; color: #C9AC78; font: 600 8px var(--sans); letter-spacing: .24em; text-transform: uppercase; border-radius: 2px; }
.tkt-strip { display: none; }

/* Design: pattern (forest with the Threshold pattern, QR on an ivory panel) */
.tkt--pattern .tkt-main { background: #1F3A2E url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='54' height='62' viewBox='0 0 54 62'%3E%3Cpath d='M9 62V27a18 18 0 0 1 36 0v35' fill='none' stroke='rgba%28247%2C243%2C236%2C0.10%29' stroke-width='1.2'/%3E%3Cpath d='M18 62V27a9 9 0 0 1 18 0v35' fill='none' stroke='rgba%28247%2C243%2C236%2C0.10%29' stroke-width='1.2'/%3E%3C/svg%3E"); }
.tkt--pattern .tkt-arch { display: none; }
.tkt--pattern .tkt-stub, .tkt--ivory .tkt-stub { background: #14271E; color: #F7F3EC; }
.tkt--pattern .tkt-stub::before, .tkt--pattern .tkt-stub::after { background: var(--bg, #F7F3EC); }
.tkt--pattern .tkt-stub .qr, .tkt--ivory .tkt-stub .qr { background: #F7F3EC; padding: 2px; width: 128px; height: 128px; }
.tkt--pattern .tkt-k, .tkt--ivory .tkt-k { color: #C9AC78; }
.tkt--pattern .tkt-cat b, .tkt--ivory .tkt-cat b { color: #F7F3EC; }
.tkt--pattern .tkt-cat span, .tkt--ivory .tkt-cat span, .tkt--pattern .tkt-no, .tkt--ivory .tkt-no { color: #CFC4B1; }

/* Design: ivory (ivory ticket, forest strip and stub) */
.tkt--ivory .tkt-main { background: #F7F3EC; color: #1F3A2E; padding-left: 100px; border: 1px solid #D9CFBC; border-right: 0; }
.tkt--ivory .tkt-arch { display: none; }
.tkt--ivory .tkt-strip { display: block; position: absolute; left: 0; top: 0; bottom: 0; width: 62px; background: #1F3A2E url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='54' height='62' viewBox='0 0 54 62'%3E%3Cpath d='M9 62V27a18 18 0 0 1 36 0v35' fill='none' stroke='rgba%28247%2C243%2C236%2C0.14%29' stroke-width='1.2'/%3E%3Cpath d='M18 62V27a9 9 0 0 1 18 0v35' fill='none' stroke='rgba%28247%2C243%2C236%2C0.14%29' stroke-width='1.2'/%3E%3C/svg%3E"); }
.tkt--ivory .tkt-brand svg { color: #1F3A2E; }
.tkt--ivory .tkt-brand i { color: #3E5A4A; }
.tkt--ivory .tkt-brand b, .tkt--ivory .tkt-brand span, .tkt--ivory .tkt-facts dd { color: #1F3A2E; }
.tkt--ivory .tkt-line { color: #3E5A4A; }
.tkt--ivory .tkt-facts dt { color: #7A6038; }
.tkt--ivory .tkt-stub::before, .tkt--ivory .tkt-stub::after { background: var(--bg, #F7F3EC); }

/* Design: slip (portrait, for print-at-home and phones) */
.tkt-slip { position: relative; width: 100%; max-width: 340px; background: #F7F3EC; border: 1px solid #D9CFBC; border-radius: 6px; overflow: hidden; filter: drop-shadow(0 10px 18px rgba(20,39,30,.22)); color: #2B2823; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.tkt-slip-head { background: #1F3A2E url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='54' height='62' viewBox='0 0 54 62'%3E%3Cpath d='M9 62V27a18 18 0 0 1 36 0v35' fill='none' stroke='rgba%28247%2C243%2C236%2C0.10%29' stroke-width='1.2'/%3E%3Cpath d='M18 62V27a9 9 0 0 1 18 0v35' fill='none' stroke='rgba%28247%2C243%2C236%2C0.10%29' stroke-width='1.2'/%3E%3C/svg%3E"); color: #F7F3EC; padding: 20px 24px 22px; border-bottom: 3px solid #A88B5A; }
.tkt-slip-brand { display: flex; align-items: center; gap: 10px; font: 500 17px var(--serif); }
.tkt-slip-brand svg { color: #F7F3EC; }
.tkt-slip-head h3 { margin: 14px 0 0; font: 400 28px/1.1 var(--serif); color: #F7F3EC; }
.tkt-slip-head h3 em { font-style: italic; }
.tkt-slip-body { padding: 20px 24px 22px; display: grid; gap: 16px; justify-items: center; text-align: center; }
.tkt-slip-who { display: flex; justify-content: space-between; gap: 16px; width: 100%; text-align: left; }
.tkt-slip-who div:last-child { text-align: right; }
.tkt-slip-who dt { font: 600 8px var(--sans); letter-spacing: .22em; text-transform: uppercase; color: #7A6038; }
.tkt-slip-who dd { margin: 3px 0 0; font: 15px var(--serif); color: #1F3A2E; }
.tkt-slip .qr { width: 168px; height: 168px; display: block; }
.tkt-slip-meta { margin: 0; font: 12px/1.5 var(--sans); color: #6F6657; }
.tkt-slip-meta b { display: block; font: 500 11px ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; color: #3E5A4A; }
.tkt-slip-doors { margin: 0; font: italic 13px var(--serif); color: #3E5A4A; }
.tkt-slip .tkt-sample { top: 12px; right: 12px; }

/* Design picker and previews */
.dz-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin: 10px 0 6px; padding: 0; border: 0; }
.dz-card { text-transform: none; letter-spacing: normal; font-weight: 400; position: relative; display: grid; gap: 8px; padding: 12px; border: 2px solid #D9CFBC; border-radius: 6px; background: #fff; cursor: pointer; }
.dz-card:has(input:checked) { border-color: #A88B5A; box-shadow: 0 0 0 3px rgba(168,139,90,.28); }
.dz-card:has(input:focus-visible) { outline: 3px solid #1F3A2E; outline-offset: 2px; }
.dz-card input { position: absolute; top: 14px; left: 14px; z-index: 3; width: 20px; height: 20px; accent-color: #1F3A2E; }
.dz-prev { position: relative; height: 176px; overflow: hidden; border-radius: 4px; background: #EFE8DA; display: flex; justify-content: center; }
.dz-prev .tkt { position: absolute; top: 0; left: 0; width: 700px; max-width: none; transform: scale(.34); transform-origin: top left; filter: none; pointer-events: none; }
.dz-prev .tkt-slip { position: absolute; top: 4px; left: 50%; width: 320px; max-width: none; margin-left: -80px; transform: scale(.5); transform-origin: top left; filter: none; pointer-events: none; }
.dz-prev .tkt-sample { display: none; }
.dz-card b { text-transform: none; letter-spacing: normal; font: 600 15px var(--sans); color: #1F3A2E; }
.dz-card span.dz-d { text-transform: none; letter-spacing: normal; font-size: 13px; color: #6F6657; line-height: 1.4; }
.tkt-preview { display: flex; justify-content: center; padding: 8px 0 18px; }
.tkt-preview .tkt { width: 100%; }
.tkt-switch { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.tkt-switch a { padding: 8px 14px; border: 1px solid #A88B5A; border-radius: 2px; font: 600 12px var(--sans); letter-spacing: .06em; color: #1F3A2E; text-decoration: none; }
.tkt-switch a[aria-current="true"] { background: #1F3A2E; color: #F7F3EC; border-color: #1F3A2E; }

/* Slip layout on narrow screens is already portrait; the landscape designs stack (see above). */
@media (max-width: 640px) {
  .tkt--ivory .tkt-main { padding-left: 82px; border-right: 1px solid #D9CFBC; }
  .tkt--ivory .tkt-strip { width: 48px; }
}

/* Verify page: scanner */
.vf-scanbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.vf-photo { cursor: pointer; }
.vf-photo:focus-within { outline: 3px solid #A88B5A; outline-offset: 2px; }
.vf-scan { max-width: 560px; margin: 0 0 22px; padding: 14px; background: #14271E; border-radius: 6px; }
.vf-scan[hidden], #vf-scan-btn[hidden] { display: none; }
.vf-video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #0e1c15; border-radius: 4px; }
.vf-scan .vf-note { color: #E6DFD1; margin: 12px 0; }
.vf-next { margin: 16px 0 0; }
