/* Everybody Move post-purchase pages: /pass, /waiver (attendees) and /scan, /dashboard (staff).
   Loaded after css/site.css, which supplies the fonts, flyer tokens, base reset and .btn.
   Attendee pages: a cream card on the sky background. Staff pages: dark --ink so screens read in daylight
   and the full-screen scan result colors carry the meaning. Orange stays urgency-only (site rule). */

[hidden] { display: none !important; }   /* .fld, .facts div etc. set display; hidden must still win */

.bp { min-height: 100dvh; display: flex; justify-content: center; align-items: flex-start; padding: 20px var(--gutter) 40px; }
.card {
  width: 100%; max-width: 440px; background: var(--cream); color: var(--ink);
  border-radius: 22px; overflow: hidden; box-shadow: 0 18px 50px rgba(20, 48, 28, .28);
}
.card__top { background: var(--deep); color: var(--cream); padding: 22px 22px 20px; }
.eyebrow { font-family: var(--font-display); font-weight: 800; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; }
.wordmark {
  margin: 6px 0 0; font-family: var(--font-display); font-weight: 900; font-stretch: 112%;
  font-size: clamp(2.1rem, 11vw, 2.75rem); line-height: .88; text-transform: uppercase;
}
.card__sub { margin-top: 10px; font-weight: 700; font-size: .95rem; }
.card__body { padding: 22px; }
.card__foot {
  padding: 14px 22px 20px; border-top: 2px solid rgba(20, 48, 28, .12);
  font-size: .78rem; text-align: center; color: rgba(20, 48, 28, .72);
}

/* pass */
.pass__name { font-family: var(--font-display); font-weight: 900; font-size: 1.75rem; line-height: .95; text-transform: uppercase; }
.pass__meta { margin: 6px 0 16px; font-weight: 700; color: rgba(20, 48, 28, .75); }
.qr { background: #fff; border: 2px solid var(--ink); border-radius: 16px; padding: 14px; display: flex; justify-content: center; }
.qr svg, .qr img { width: 100%; height: auto; max-width: 260px; display: block; }
.pass__hint { margin: 14px 0 0; text-align: center; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; }
.facts { margin-top: 18px; display: grid; gap: 10px; }
.facts div { display: grid; grid-template-columns: 6.5em 1fr; gap: 10px; font-size: .95rem; }
.facts dt { font-family: var(--font-display); font-weight: 800; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; padding-top: .2em; }
.facts dd { margin: 0; }
.waiver-cta { margin-top: 16px; }
.status { margin-top: 12px; padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 700; background: rgba(134, 194, 54, .22); }
.status--todo { background: rgba(240, 192, 72, .35); }

/* keepsake ticket (server-rendered 1080x1440 PNG from /api/ticket-image; card shape is in the PNG) */
.ticket-wrap { margin-top: 18px; width: 100%; max-width: 440px; }
.ticket { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; filter: drop-shadow(0 12px 22px rgba(20, 48, 28, .28)); }
.ticket-wrap .btn { margin-top: 14px; }
.ticket-note { margin-top: 10px; font-size: .88rem; }
.bp > .ticket-wrap { margin-top: 0; }
.bp > .ticket-wrap .ticket-note, .bp > .ticket-wrap .msg { color: var(--cream); }

/* waiver */
.ctx { margin-bottom: 14px; font-weight: 600; }
.doc {
  max-height: 46vh; overflow: auto; padding: 14px 16px; background: #fff; border: 2px solid rgba(20, 48, 28, .2);
  border-radius: var(--radius-sm); font-size: .9rem; line-height: 1.5;
}
.doc h2 { font-size: 1.05rem; margin: 0 0 8px; }
.doc h3 { font-size: .95rem; margin: 14px 0 4px; }
.doc p { margin: 0 0 8px; }
.draft { margin-bottom: 12px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--sun); font-weight: 700; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 18px 0 6px; padding: 4px; border-radius: 999px; background: rgba(20, 48, 28, .1); }
.seg button { min-height: 44px; border: 0; border-radius: 999px; background: transparent; font-weight: 700; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--deep); color: var(--cream); }
.fld { display: block; margin-top: 14px; }
.fld span { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.fld input {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid rgba(20, 48, 28, .35); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink);
}
.fld input:focus-visible, .agree input:focus-visible, .seg button:focus-visible, .btn:focus-visible { outline: var(--focus); outline-offset: 2px; }
.agree { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: .95rem; }
.agree input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--deep); }
.msg { min-height: 1.5em; margin-top: 10px; font-weight: 700; }
.msg--err { color: #8a2a12; }
.done__big { font-family: var(--font-display); font-weight: 900; font-size: 2.2rem; text-transform: uppercase; }
.forward { margin-top: 18px; padding: 16px; border: 2px solid var(--ink); border-radius: 14px; background: #fff; }
.forward__count { font-family: var(--font-display); font-weight: 900; font-size: 1.3rem; text-transform: uppercase; margin: 4px 0 8px; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.row-btns .btn { flex: 1; min-width: 130px; }
.links { display: flex; gap: 16px; margin-top: 12px; font-weight: 700; }

/* staff (scan + dashboard) */
.staff { background: var(--ink); color: var(--cream); }
.gate { max-width: 380px; margin: 0 auto; padding: 18vh var(--gutter) 40px; text-align: center; }
.gate h1 { font-family: var(--font-display); font-weight: 900; font-size: 2.6rem; text-transform: uppercase; line-height: .9; }
.gate p { margin: 8px 0 22px; color: var(--cream-dim); }
.gate input {
  display: block; width: 100%; min-height: 52px; margin-bottom: 10px; padding: 12px 14px;
  border: 2px solid var(--cream-dim); border-radius: var(--radius-sm); background: transparent; color: var(--cream);
  text-align: center; font-size: 1.1rem; letter-spacing: .08em;
}
.gate .err { min-height: 1.5em; color: var(--sun); font-weight: 700; margin-top: 10px; }
.btn--sun { background: var(--sun); color: var(--ink); }
.staff-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px var(--gutter); }
.staff-bar__mark { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; letter-spacing: .02em; }
.staff-bar__who { text-align: right; font-size: .85rem; color: var(--cream-dim); }
.staff-bar__who button { background: none; border: 0; color: var(--cream-dim); text-decoration: underline; cursor: pointer; padding: 6px 0 0; font-size: .8rem; }
.pill { display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgba(250, 239, 209, .12); font-size: .85rem; }
.pill b { color: var(--sun); }

#reader { margin: 0 var(--gutter); border-radius: 16px; overflow: hidden; background: #000; min-height: 280px; }
.scan__hint { text-align: center; margin: 12px 0; color: var(--cream-dim); }
.scan__tally { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.result {
  position: fixed; inset: 0; z-index: 40; display: none; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px; text-align: center;
}
.result.show { display: flex; }
.result--valid { background: var(--park); color: var(--ink); }
.result--duplicate { background: var(--sun); color: var(--ink); }
.result--invalid { background: #8a2a12; color: var(--cream); }
.result--retry { background: var(--sky-deep); color: var(--cream); }
.result--busy { background: rgba(20, 48, 28, .92); color: var(--cream); }
.reader-wrap { position: relative; }
.camoff { position: absolute; inset: 0; margin: 0 var(--gutter); border: 0; border-radius: 16px; background: #000; color: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; cursor: pointer; font: inherit; }
.camoff[hidden] { display: none; }
.camoff span { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 1.4rem; }
.camoff b { background: var(--sun); color: var(--ink); border-radius: 999px; padding: 14px 22px; font-size: 1.05rem; max-width: 320px; }
.result__icon { font-size: 5rem; line-height: 1; font-weight: 900; }
.result__status { font-family: var(--font-display); font-weight: 900; font-size: 2.6rem; text-transform: uppercase; line-height: .95; margin-top: 8px; }
.result__name { font-size: 1.6rem; font-weight: 800; margin-top: 14px; }
.result__meta { font-size: 1.05rem; font-weight: 700; margin-top: 4px; }
.result__note { max-width: 340px; margin-top: 14px; font-weight: 700; }
.result .btn { margin-top: 28px; min-width: 220px; background: var(--ink); color: var(--cream); }

.dash { max-width: 980px; margin: 0 auto; padding-bottom: 40px; }
.dash__big { padding: 6px var(--gutter) 14px; }
.dash__count { font-family: var(--font-display); font-weight: 900; font-size: 3.4rem; line-height: 1; }
.dash__count small { font-size: 1.1rem; color: var(--cream-dim); font-weight: 700; }
.bar { height: 10px; border-radius: 999px; background: rgba(250, 239, 209, .15); overflow: hidden; margin: 10px 0 12px; }
.bar i { display: block; height: 100%; width: 0; background: var(--park); transition: width .4s var(--ease); }
.dash__pills { display: flex; flex-wrap: wrap; gap: 8px; }
.dash__controls { position: sticky; top: 0; z-index: 5; background: var(--ink); padding: 10px var(--gutter); }
.dash__controls input {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--radius-sm);
  border: 2px solid rgba(250, 239, 209, .35); background: transparent; color: var(--cream);
}
.tabs { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; }
.tabs button { flex: none; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 2px solid rgba(250, 239, 209, .35); background: transparent; color: var(--cream); cursor: pointer; font-weight: 700; }
.tabs button[aria-pressed="true"] { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.list { padding: 0 var(--gutter); }
.att { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(250, 239, 209, .14); }
.att--in { opacity: .62; }
.att--flash { animation: flash 1.6s var(--ease); }
@keyframes flash { from { background: rgba(134, 194, 54, .45); } to { background: transparent; } }
.att__party { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(250, 239, 209, .14); font-weight: 900; }
.att__main { flex: 1; min-width: 0; }
.att__name { font-weight: 800; }
.att__meta { font-size: .82rem; color: var(--cream-dim); overflow-wrap: anywhere; }
.att__wv { font-size: .8rem; font-weight: 700; margin-top: 2px; }
.att__wv--ok { color: var(--park); }
.att__wv--due { color: var(--sun); }
.att__state { text-align: right; font-size: .85rem; }
.att .btn { min-height: 40px; padding: 6px 16px; font-size: .95rem; }
.empty { padding: 30px 0; text-align: center; color: var(--cream-dim); }
@media (prefers-reduced-motion: reduce) { .att--flash { animation: none; } .bar i { transition: none; } }

/* Optical left edge (Wally, Oct 7): see css/site.css. Display lines pull back by Archivo's stem side-bearing. */
.wordmark, .eyebrow, .wordmark > span, .pass__meta { text-indent: calc(-1 * var(--ol, .075em)) each-line; }
.card__sub { margin-left: calc(-1 * var(--ol, .075em)); }   /* borderless and it wraps: shift every line */
.wordmark > span { display: block; }
