/* =========================================================
   Rockafairy — event listing, event page, checkout, tickets
   Dark "house lights down" theme on top of site.css tokens.
   ========================================================= */

.ev-page { background: var(--night); color: #fff; }
.ev-page main a:not(.btn) { color: #ff9ccf; }
.ev-page .site-footer { border-top: 1px solid rgba(255, 255, 255, .08); }
.narrow { max-width: 680px; }
.small { font-size: 14px; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.pill-hot { background: rgba(245, 184, 0, .16); color: var(--gold); }
.pill-draft { background: rgba(255, 255, 255, .12); color: #fff; margin-bottom: 14px; }
.pill-cancel { background: #b4233c; color: #fff; margin-bottom: 14px; }
.flash { border-radius: 12px; padding: 12px 14px; font-weight: 600; font-size: 15px; margin-bottom: 18px; }
.flash-err { background: #fdecef; color: #a3122e; }
.flash-info { background: rgba(255, 156, 207, .12); color: #ffd0e7; border: 1px solid rgba(255, 156, 207, .25); }
.btn svg { width: 18px; height: 18px; }
.btn-ghost svg { transition: none; }
.btn-ghost:hover svg { transform: none; }

/* ---------- listing ---------- */
.ev-head, .order-head {
  padding: calc(var(--header-h) + clamp(40px, 6vw, 80px)) 0 clamp(28px, 4vw, 48px);
  background: radial-gradient(90% 120% at 85% 0%, #4a0c33 0%, var(--night-2) 50%, var(--night) 100%);
}
.ev-h1 { font-family: var(--f-head); font-weight: var(--head-weight); letter-spacing: var(--head-track); font-size: clamp(40px, 6vw, 72px); line-height: 1.02; }
.ev-sub { margin-top: 14px; font-size: clamp(17px, 1.6vw, 19px); color: rgba(255, 255, 255, .75); max-width: 640px; }
.ev-list-sec { padding: 8px 0 clamp(56px, 8vw, 96px); }
.ev-month + .ev-month { margin-top: 40px; }
.ev-month-h { font: 700 13px/1 var(--f-text); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .5); padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); position: sticky; top: var(--header-h); background: var(--night); z-index: 2; }
.ev-rows { display: grid; }
.ev-row {
  position: relative; display: grid; grid-template-columns: 76px 112px minmax(0, 1fr) auto; gap: 24px; align-items: center;
  padding: 20px 12px; margin: 0 -12px; border-bottom: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; transition: background .2s;
}
.ev-row:hover { background: rgba(255, 255, 255, .04); }
.ev-row-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.ev-row-link:focus-visible { outline-offset: -3px; }
.ev-row.is-off .ev-thumb-wrap, .ev-row.is-off .ev-title { opacity: .55; }
.ev-date { display: flex; flex-direction: column; align-items: center; line-height: 1; text-align: center; }
.ev-dow, .ev-mon { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #ff9ccf; }
.ev-day { font-family: var(--f-head); font-size: 40px; margin: 6px 0 4px; }
.ev-thumb-wrap { width: 112px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--night-2); }
.ev-thumb-img { width: 100%; height: 100%; object-fit: cover; }
.poster-ph { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--jazz) 0%, #4a0c33 60%, #241020 100%); }
.poster-ph span { font-family: var(--f-display); font-size: 48px; color: rgba(255, 255, 255, .85); }
.ev-title { font-family: var(--f-head); font-weight: var(--head-weight); font-size: clamp(21px, 2.2vw, 27px); line-height: 1.15; }
.ev-support { color: rgba(255, 255, 255, .7); margin-top: 4px; font-size: 16px; }
.ev-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 14px; color: rgba(255, 255, 255, .55); }
.ev-meta span + span::before { content: '·'; margin-right: 14px; }
.ev-cta { display: flex; align-items: center; gap: 14px; justify-self: end; }
.ev-price { font-weight: 700; font-size: 15px; color: rgba(255, 255, 255, .85); white-space: nowrap; }
.ev-row.is-off .ev-price { color: rgba(255, 255, 255, .5); }
.empty { padding: 56px 0; max-width: 560px; }
.empty h2 { font-family: var(--f-head); font-weight: 400; font-size: 30px; margin-bottom: 10px; }
.empty p { color: rgba(255, 255, 255, .7); }

@media (max-width: 760px) {
  .ev-row { grid-template-columns: 56px minmax(0, 1fr) 84px; gap: 14px; padding: 16px 8px; margin: 0 -8px; }
  .ev-thumb-wrap { order: 3; width: 84px; }
  .ev-info { order: 2; }
  .ev-day { font-size: 30px; }
  .ev-cta { order: 4; grid-column: 2 / -1; justify-self: start; gap: 10px; }
  .ev-btn { display: none; }
  .ev-price { font-size: 14px; color: var(--gold); }
  .ev-title { font-size: 20px; }
  .ev-support { font-size: 15px; }
  .ev-meta { gap: 2px 12px; }
  .ev-meta span + span::before { content: none; }
}

.ev-policy { padding: clamp(48px, 7vw, 80px) 0; background: var(--night-2); }
.policy-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.policy-cols h3 { font-family: var(--f-head); font-weight: 400; font-size: 22px; margin-bottom: 8px; }
.policy-cols p { color: rgba(255, 255, 255, .72); font-size: 15.5px; }
@media (max-width: 760px) { .policy-cols { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- event page ---------- */
.show-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + clamp(32px, 5vw, 64px)) 0 clamp(36px, 5vw, 64px); background: var(--night-2); }
.show-bg { position: absolute; inset: -40px; background: center / cover no-repeat; filter: blur(48px) saturate(1.3); opacity: .45; transform: scale(1.1); }
.show-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23, 9, 18, .3) 0%, rgba(23, 9, 18, .85) 100%); }
.show-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: end; }
.show-poster { border-radius: 18px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, .5); aspect-ratio: 4 / 5; background: var(--night); }
.show-poster-img { width: 100%; height: 100%; object-fit: cover; }
.show-poster .poster-ph span { font-size: 120px; }
.show-date { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 14px; color: #ff9ccf; }
.show-title { font-family: var(--f-head); font-weight: var(--head-weight); letter-spacing: var(--head-track); font-size: clamp(40px, 6vw, 76px); line-height: 1; margin-top: 12px; }
.show-support { font-size: clamp(18px, 2vw, 22px); color: rgba(255, 255, 255, .8); margin-top: 12px; }
.show-facts { display: grid; gap: 10px; margin: 26px 0 30px; }
.show-facts li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: rgba(255, 255, 255, .88); }
.show-facts svg { width: 20px; height: 20px; color: #ff9ccf; }
.show-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.show-jump { display: none; }
@media (max-width: 900px) {
  .show-grid { grid-template-columns: 1fr; align-items: start; }
  .show-poster { max-width: 360px; width: 72%; aspect-ratio: 1; }
  .show-jump { display: inline-flex; }
}
@media (max-width: 560px) {
  .show-poster { width: 100%; max-width: none; aspect-ratio: 4 / 3; }
  .show-actions .btn { flex: 1 1 auto; }
  .show-actions .show-jump { flex-basis: 100%; }
}

.show-body { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 104px); }
.show-body-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.show-about h2 { font-family: var(--f-head); font-weight: 400; font-size: 28px; margin: 0 0 14px; }
.show-about h2:not(:first-child) { margin-top: 44px; }
.show-about p { color: rgba(255, 255, 255, .8); font-size: 17px; }
.show-about p + p { margin-top: 14px; }
.venue-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px; border-radius: 16px; background: var(--night-2); border: 1px solid rgba(255, 255, 255, .08); }
.venue-card strong { font-size: 18px; }
.venue-card p { margin-top: 4px !important; font-size: 15px !important; }
.venue-card .muted { color: rgba(255, 255, 255, .55) !important; }
@media (max-width: 960px) { .show-body-grid { grid-template-columns: 1fr; } .tix { order: -1; } }
@media (max-width: 560px) { .venue-card { flex-direction: column; align-items: flex-start; } }

/* ---------- ticket panel ---------- */
.tix { position: sticky; top: calc(var(--header-h) + 20px); scroll-margin-top: calc(var(--header-h) + 16px); }
.tix-card { background: #fff; color: var(--ink); border-radius: 20px; padding: 26px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.tix-card a:not(.btn) { color: var(--jazz); }
.tix-card h2 { font-family: var(--f-head); font-weight: 400; font-size: 28px; margin-bottom: 14px; }
.tt-list { display: grid; }
.tt { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.tt:first-child { border-top: 0; padding-top: 4px; }
.tt-info { display: flex; flex-direction: column; min-width: 0; }
.tt-name { font-weight: 700; font-size: 16px; }
.tt-desc { font-size: 13.5px; color: var(--ink-3); line-height: 1.4; margin-top: 2px; }
.tt-low { font-size: 12.5px; font-weight: 700; color: #c2410c; margin-top: 3px; }
.tt-note { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-top: 3px; }
.tt-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.tt-off .tt-name, .tt-off .tt-price { color: var(--ink-3); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty input { width: 34px; border: 0; text-align: center; font: 700 16px var(--f-text); color: var(--ink); background: transparent; -moz-appearance: textfield; appearance: textfield; padding: 0; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn { width: 38px; height: 38px; display: grid; place-items: center; border: 0; background: transparent; color: var(--jazz); cursor: pointer; font-size: 18px; }
.qty-btn:hover:not(:disabled) { background: var(--jazz-tint); }
.qty-btn:disabled { color: var(--line); cursor: default; }
.qty-off { color: var(--ink-3); padding: 0 14px; }
.cover { display: flex; gap: 12px; align-items: flex-start; background: var(--paper-2); border-radius: 14px; padding: 14px; margin: 14px 0 4px; cursor: pointer; }
.cover input { width: 20px; height: 20px; accent-color: var(--jazz); flex-shrink: 0; margin-top: 2px; }
.cover strong { display: block; font-size: 15px; }
.cover small { display: block; font-size: 13px; color: var(--ink-2); line-height: 1.45; margin-top: 2px; }
.buyer { display: grid; gap: 12px; margin-top: 18px; }
.buyer label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.buyer input { font: 500 16px var(--f-text); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); width: 100%; }
.buyer input:focus { outline: none; border-color: var(--jazz); box-shadow: 0 0 0 4px rgba(165, 11, 94, .12); background: #fff; }
.buyer .muted { margin-top: -4px; }
.tix-total { margin: 18px 0 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.tix-lines { display: grid; gap: 4px; font-size: 14px; color: var(--ink-2); }
.tix-lines div { display: flex; justify-content: space-between; gap: 10px; }
.tix-sum { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; }
.tix-sum span { font-weight: 700; }
.tix-sum strong { font-size: 28px; font-variant-numeric: tabular-nums; }
.tix-fine { text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 12px; }
.tix-closed { padding: 14px; border-radius: 12px; background: var(--paper-2); font-weight: 600; color: var(--ink-2); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
@media (max-width: 960px) { .tix { position: static; } }

/* ---------- order / tickets ---------- */
.order-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.order-body { padding: 8px 0 clamp(64px, 8vw, 104px); }
.order-note { color: rgba(255, 255, 255, .75); margin-bottom: 24px; max-width: 640px; }
.ticket-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.ticket { position: relative; background: #fff; color: var(--ink); border-radius: 18px; padding: 20px 20px 22px; text-align: center; overflow: hidden; }
.ticket::before, .ticket::after { content: ''; position: absolute; top: 96px; width: 24px; height: 24px; border-radius: 50%; background: var(--night); }
.ticket::before { left: -12px; } .ticket::after { right: -12px; }
.ticket-top { display: flex; justify-content: space-between; align-items: center; }
.ticket-brand { font-family: var(--f-display); color: var(--jazz); font-size: 20px; }
.ticket-n { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.ticket-title { font-family: var(--f-head); font-weight: 400; font-size: 21px; line-height: 1.2; margin-top: 12px; }
.ticket-when { font-size: 14px; color: var(--ink-2); margin-top: 4px; padding-bottom: 16px; border-bottom: 2px dashed var(--line); }
.ticket-qr { width: 200px; max-width: 100%; margin: 16px auto 8px; }
.ticket-qr svg { width: 100%; height: auto; stroke-width: 1; stroke-linecap: butt; stroke-linejoin: miter; }
.ticket-code { font: 700 18px/1 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; letter-spacing: .14em; }
.ticket-type { font-size: 14px; color: var(--ink-3); margin-top: 8px; }
.ticket-stamp { position: absolute; top: 46%; left: 50%; transform: translate(-50%, -50%) rotate(-14deg); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: 24px; color: #0b827e; border: 3px solid #0b827e; padding: 6px 14px; border-radius: 10px; background: rgba(255, 255, 255, .85); }
.ticket.is-used .ticket-qr { opacity: .3; }
.ticket.is-void { opacity: .5; }
.receipt { max-width: 420px; margin-top: 32px; padding: 20px 22px; border-radius: 16px; background: var(--night-2); border: 1px solid rgba(255, 255, 255, .08); display: grid; gap: 8px; font-size: 15px; }
.receipt div { display: flex; justify-content: space-between; gap: 14px; }
.receipt dt { color: rgba(255, 255, 255, .7); }
.receipt .muted { color: rgba(255, 255, 255, .45); }
.receipt-total { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 10px; font-weight: 700; }
.receipt-total dt { color: #fff; }
.find-form { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.find-form input { flex: 1 1 240px; font: 500 16px var(--f-text); padding: 14px 16px; border-radius: 999px; border: 0; }

@media print {
  .site-header, .site-footer, .order-actions, .skip-link { display: none !important; }
  .ev-page, .order-head, .order-body { background: #fff !important; color: #000 !important; padding: 12px 0 !important; }
  .ev-h1 { font-size: 28px; } .ev-sub, .order-note, .eyebrow { color: #333 !important; }
  .ticket { border: 1px solid #ccc; break-inside: avoid; }
  .ticket::before, .ticket::after { display: none; }
  .receipt { background: #fff; border: 1px solid #ccc; color: #000; }
  .receipt dt, .receipt-total dt { color: #000; }
}
