/*
 * The PassOut pass - the brand's visual signature - in CSS only (no images), existing
 * tokens only.
 *
 *   .pass          pass shell: surface, hairline, card radius, side notches via .pass-perf
 *   .pass-perf     perforation: dashed line + two half-circle notches cut from the edges
 *                  (circles in the colour behind the card: --pass-ground, default --bg);
 *                  .pass-perf--v for a vertical one (stub on the right)
 *   .pass-stub     the tear-off part (date, price, QR, action)
 *   .pass-date     date block: big day number + month
 *   .pass-stamp    rotated stamp: SOLD OUT / USED / CANCELLED / FREE / PAST
 *   .pass-barcode  decorative barcode stripes, low opacity (aria-hidden)
 *   .pass-divider  perforated divider between page sections (event detail)
 *   .notch-head    a section header with a ticket notch (organizer dashboard)
 *
 * Built on it: .ev-card (event card), .tkv (full
 * pass with the QR on the stub), .bk (My Tickets row), .pass-summary (checkout /
 * confirmation), .ev-stub (organizer event header + list card).
 * The site has no dark theme; the QR always sits on pure white with a quiet zone.
 */

/* ------------------------------------------------------------------ shell */
.nb .pass {
  --pass-ground: var(--bg);
  --pass-notch: 10px;
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  color: var(--ink);
}
.nb .pass.on-surface, .nb .form-card .pass, .nb .m-sheet .pass { --pass-ground: var(--surface); }

.nb .pass-perf {
  position: relative; flex: none; height: calc(var(--pass-notch) * 2); margin: 0 -1px;
}
.nb .pass-perf::before, .nb .pass-perf::after {
  content: ""; position: absolute; top: 0; width: calc(var(--pass-notch) * 2); height: calc(var(--pass-notch) * 2);
  border-radius: 50%; background: var(--pass-ground); border: 1px solid var(--line); box-sizing: border-box;
}
.nb .pass-perf::before { left: calc(var(--pass-notch) * -1); clip-path: inset(0 0 0 50%); }
.nb .pass-perf::after { right: calc(var(--pass-notch) * -1); clip-path: inset(0 50% 0 0); }
.nb .pass-perf > i {
  position: absolute; left: calc(var(--pass-notch) + 6px); right: calc(var(--pass-notch) + 6px); top: 50%;
  border-top: 1.5px dashed var(--line); display: block;
}
/* Vertical perforation (stub on the right): .pass-perf--v */
.nb .pass-perf--v { width: calc(var(--pass-notch) * 2); height: auto; margin: -1px 0; align-self: stretch; }
.nb .pass-perf--v::before, .nb .pass-perf--v::after { left: 0; right: auto; }
.nb .pass-perf--v::before { top: calc(var(--pass-notch) * -1); clip-path: inset(50% 0 0 0); }
.nb .pass-perf--v::after { top: auto; bottom: calc(var(--pass-notch) * -1); clip-path: inset(0 0 50% 0); }
.nb .pass-perf--v > i { left: 50%; right: auto; top: calc(var(--pass-notch) + 6px); bottom: calc(var(--pass-notch) + 6px); border-top: 0; border-left: 1.5px dashed var(--line); }

.nb .pass-barcode {
  height: 26px; border-radius: 2px; opacity: .16; pointer-events: none;
  background: repeating-linear-gradient(90deg,
    var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px,
    var(--ink) 8px 11px, transparent 11px 12px, var(--ink) 12px 13px, transparent 13px 16px);
}

.nb .pass-stamp {
  position: absolute; z-index: 3; display: inline-block; padding: 4px 12px;
  border: 3px solid currentColor; border-radius: 6px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  color: var(--err); font: 700 16px/1.1 var(--ff); letter-spacing: .14em; text-transform: uppercase;
  transform: rotate(-12deg); opacity: .9; pointer-events: none; white-space: nowrap;
}
.nb .pass-stamp--used, .nb .pass-stamp--past { color: var(--ink-2); }
.nb .pass-stamp--ok { color: var(--ok); }

.nb .pass-date {
  flex: none; display: grid; justify-items: center; align-content: center; width: 52px; min-height: 56px; padding: 6px 4px;
  border-radius: var(--r-sm); background: var(--acc-w); color: var(--acc-d); line-height: 1;
}
.nb .pass-date b { font-size: 22px; font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.nb .pass-date span { margin-top: 4px; font: 600 11.5px/1 var(--ff); letter-spacing: .08em; text-transform: uppercase; }
.nb .pass-date small { margin-top: 3px; font-size: 11px; color: var(--ink-2); }

/* ------------------------------------------------------------------ A · event card
   Poster-first: portrait 4:5 poster (12px radius, thin border) -> a short perforation
   with two side notches -> title, ticket-stub date pill, price, venue. No card box. */
.nb .ev-card { display: flex; flex-direction: column; gap: 6px; min-width: 0; color: var(--ink); text-decoration: none; transition: transform .15s ease; }
.nb .ev-card:active { transform: scale(.98); }
.nb .ev-card:focus-visible { outline: 2px solid var(--ring-c, var(--acc-d)); outline-offset: 4px; border-radius: 12px; }
.nb .ev-card__poster { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: var(--tint); container-type: inline-size; transition: transform .18s ease, box-shadow .18s ease; }
@media (hover: hover) { .nb .ev-card:hover .ev-card__poster { transform: translateY(-2px); box-shadow: var(--s2); } }
.nb .ev-card .pass-stamp { top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-12deg); font-size: clamp(13px, 9cqi, 18px); }
.nb .ev-card.is-soldout .ev-card__poster img { filter: grayscale(.6) brightness(.92); }
.nb .ev-card__few { position: absolute; top: 8px; left: 8px; z-index: 2; padding: 3px 9px; border-radius: var(--r-pill); background: var(--ink); color: var(--surface); font-size: 12px; font-weight: 700; }
/* the pass touch: dashed line with a half-notch at each end */
.nb .ev-card__perf { position: relative; display: block; height: 10px; margin: 2px 8px 0; }
.nb .ev-card__perf::before { content: ""; position: absolute; left: 10px; right: 10px; top: 50%; border-top: 1.5px dashed var(--line); }
.nb .ev-card__perf::after { content: ""; position: absolute; left: -2px; right: -2px; top: 0; height: 10px;
  background: radial-gradient(circle at 0 50%, var(--line) 4px, transparent 4.5px) left / 10px 10px no-repeat,
              radial-gradient(circle at 100% 50%, var(--line) 4px, transparent 4.5px) right / 10px 10px no-repeat; }
.nb .ev-card__title { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
/* date pill, shaped like a ticket stub (tiny side notches) */
.nb .ev-card__date { position: relative; align-self: flex-start; max-width: 100%; padding: 3px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface);
  font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb .ev-card__date::before, .nb .ev-card__date::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
.nb .ev-card__date::before { left: -5px; clip-path: inset(0 0 0 50%); }
.nb .ev-card__date::after { right: -5px; clip-path: inset(0 50% 0 0); }
.nb .ev-card__price { font-size: 15px; font-weight: 700; color: var(--acc-d); }
.nb .ev-card__venue { font-size: 13px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: reduce) { .nb .ev-card, .nb .ev-card__poster { transition: none; } .nb .ev-card:active, .nb .ev-card:hover .ev-card__poster { transform: none; } }

/* Rails (user dashboard): fixed card width. */
.nb .rail > .ev-card { flex: none; width: 272px; }
@media (max-width: 768px) { .nb .rail > .ev-card { width: 78vw; max-width: 300px; } }
.nb .poster-grid { align-items: start; }
/* Lists of portrait cards (/events, saved, organizer page): 2 across on phones, then ~180px each. */
.nb .poster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 20px 12px !important; }
@media (min-width: 768px) { .nb .poster-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important; gap: 28px 24px !important; } }

/* ------------------------------------------------------------------ B · ticket view */
.nb .tkv-wrap { max-width: 460px; margin: 0 auto; }
.nb .tkv-confirm { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--ok) 30%, var(--line)); border-radius: var(--r-lg); background: var(--ok-w); color: var(--ink); }
.nb .tkv-confirm svg { color: var(--ok); flex: none; margin-top: 1px; }
.nb .tkv-confirm strong { display: block; font-size: 17px; letter-spacing: -.02em; }
.nb .tkv-confirm p { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }
.nb .tkv-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 2px 6px; margin: 0 -2px; overscroll-behavior-x: contain; }
.nb .tkv-track::-webkit-scrollbar { display: none; }
.nb .tkv { flex: 0 0 100%; scroll-snap-align: center; overflow: hidden; }
.nb .tkv__poster { position: relative; height: 112px; background: var(--tint) center / cover no-repeat; border-radius: calc(var(--r-lg) - 1px) calc(var(--r-lg) - 1px) 0 0; }
.nb .tkv__poster::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, transparent 30%, rgba(18,18,17,.55)); }
.nb .tkv__count { position: absolute; z-index: 2; top: 10px; right: 10px; padding: 3px 10px; border-radius: var(--r-pill); background: rgba(18,18,17,.7); color: #fff; font-size: 12px; font-weight: 600; }
.nb .tkv__head { padding: 16px 18px 4px; }
.nb .tkv__title { margin: 0; font-size: 20px; line-height: 1.25; letter-spacing: -.03em; overflow-wrap: anywhere; }
.nb .tkv__meta { display: grid; gap: 6px; margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.nb .tkv__meta div { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.nb .tkv__meta svg { flex: none; margin-top: 2px; color: var(--mut); }
.nb .tkv__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; padding: 14px 18px 6px; }
.nb .tkv__grid dt { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--mut); }
.nb .tkv__grid dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.nb .tkv__grid .wide { grid-column: 1 / -1; }
.nb .tkv__stub { position: relative; display: grid; justify-items: center; gap: 8px; padding: 6px 18px 18px; }
.nb .tkv__qr { display: block; width: min(100%, 280px); min-width: 260px; aspect-ratio: 1; padding: 10px; background: #fff; border-radius: var(--r-sm); image-rendering: pixelated; }
@media (max-width: 300px) { .nb .tkv__qr { min-width: 0; } }
.nb .tkv__code { font: 400 22px/1.2 var(--fm); letter-spacing: .14em; color: var(--ink); }
.nb .tkv__gate { font-size: 14px; color: var(--mut); text-align: center; }
.nb .tkv__stub .pass-barcode { width: 100%; margin-top: 4px; }
.nb .tkv .pass-stamp { top: 42%; left: 50%; transform: translate(-50%, -50%) rotate(-12deg); font-size: 26px; padding: 6px 16px; }
.nb .tkv.is-void .tkv__qr, .nb .tkv.is-used .tkv__qr { opacity: .28; filter: grayscale(1); }
.nb .tkv-dots { display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: 6px; }
/* 24px tap targets, the visible dot drawn inside. */
.nb .tkv-dots button { position: relative; width: 44px; height: 44px; padding: 0; border-radius: 50%; background: none; } /* C-48: 44px tap target, same 8px dot */
.nb .tkv-dots button::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-radius: 4px; background: var(--line); transform: translate(-50%, -50%); transition: width .15s; }
.nb .tkv-dots button[aria-current="true"]::before { width: 20px; background: var(--ink); }
.nb .tkv-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.nb .tkv-actions a, .nb .tkv-actions button {
  display: grid; justify-items: center; gap: 6px; min-height: 64px; padding: 10px 4px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink);
  font-size: 13px; font-weight: 500; text-align: center; text-decoration: none; cursor: pointer;
}
.nb .tkv-actions a:hover, .nb .tkv-actions button:hover { border-color: color-mix(in srgb, var(--ink-2) 35%, var(--line)); }
.nb .tkv-tip { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; font-size: 13.5px; color: var(--mut); }
.nb .tkv-tip svg { flex: none; margin-top: 1px; }
.nb .tkv-more { margin-top: 20px; }
/* Phones: the ticket fills the screen width edge to edge (minus the gutter). */
@media (max-width: 768px) {
  .nb .tkv-page .page-header { margin-bottom: 12px; }
  .nb .tkv-wrap { max-width: none; }
}

/* ------------------------------------------------------------------ C · My Tickets list */
.nb .bk-list { display: grid; gap: 12px; }
.nb .bk { flex-direction: row; align-items: stretch; text-decoration: none; transition: box-shadow .18s, border-color .18s, transform .12s; }
.nb .bk:hover { box-shadow: var(--s2); border-color: color-mix(in srgb, var(--ink-2) 22%, var(--line)); }
@media (hover: none) { .nb .bk:active { transform: scale(.98); } }
.nb .bk__main { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: center; padding: 14px 6px 14px 14px; }
.nb .bk__info { min-width: 0; flex: 1; }
.nb .bk__title { margin: 0; font-size: 15.5px; font-weight: 600; line-height: 1.3; letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.nb .bk__meta { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 13px; color: var(--mut); min-width: 0; }
.nb .bk__meta span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb .bk__meta svg { flex: none; }
.nb .bk__status { margin-top: 8px; }
.nb .bk__stub { flex: none; width: 84px; display: grid; justify-items: center; align-content: center; gap: 4px; padding: 12px 8px; text-align: center; color: var(--ink-2); }
.nb .bk__stub b { font-size: 20px; line-height: 1; color: var(--ink); }
.nb .bk__stub small { font-size: 12px; color: var(--mut); }
.nb .bk.is-past { background: var(--line-2); }
.nb .bk.is-past .bk__title, .nb .bk.is-past .pass-date b { color: var(--ink-2); }
.nb .bk.is-past .pass-date { background: var(--surface); color: var(--mut); filter: grayscale(1); }
.nb .bk.is-past .bk__stub { color: var(--mut); }
.nb .bk.is-past .bk__stub svg { opacity: .6; }
.nb .bk .pass-stamp { right: 92px; top: 50%; transform: translateY(-50%) rotate(-10deg); font-size: 12px; padding: 2px 8px; border-width: 2px; }
.nb .bk-section { margin: 24px 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--mut); }
.nb .bk-section:first-child { margin-top: 0; }

/* ------------------------------------------------------------------ D · checkout / confirmation stub */
.nb .pass-summary__event { display: flex; gap: 12px; align-items: center; padding: 16px 16px 4px; }
.nb .pass-summary__event .nb-img { flex: none; width: 56px; height: 56px; border-radius: var(--r-sm); }
.nb .pass-summary__event h2 { margin: 0; font-size: 16px; line-height: 1.3; letter-spacing: -.02em; overflow-wrap: anywhere; }
.nb .pass-summary__event p { margin: 3px 0 0; font-size: 13px; color: var(--mut); }
.nb .pass-summary__body { padding: 4px 16px 16px; }
.nb .pass-summary__line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; }
.nb .pass-summary__line > :last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.nb .pass-summary__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.nb .pass-summary__total strong { font-size: 22px; letter-spacing: -.03em; }
.nb .pass-summary .pay-breakdown { margin: 2px 0; }
.nb .pass-summary .pay-breakdown summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; cursor: pointer; list-style: none; font-size: 14px; color: var(--ink-2); }
.nb .pass-summary .pay-breakdown summary::-webkit-details-marker { display: none; }
.nb .pass-summary .pay-breakdown[open] summary svg { transform: rotate(180deg); }
.nb .pass-summary .pass-summary__line.sub { padding-left: 10px; color: var(--mut); font-size: 13.5px; }
.nb .pass-summary .pass-barcode { margin: 14px 0 0; }

/* Who's going (checkout) */
.nb .att { display: grid; gap: 12px; }
.nb .att-you { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-field, var(--r)); background: var(--surface); }
.nb .att-you__avatar { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--acc-w); color: var(--acc-d); font-weight: 600; }
.nb .att-you__text { flex: 1; min-width: 0; }
.nb .att-you__text strong { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb .att-you__text span { display: block; font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb .att-guest { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.nb .att-guest .field { margin: 0; }
.nb .att-guest .text-link { min-height: var(--h-field); }
.nb .att-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--mut); }

/* ------------------------------------------------------------------ E · organizer event stub */
.nb .ev-stub { flex-direction: row; align-items: stretch; text-decoration: none; color: var(--ink); }
.nb a.ev-stub:hover { box-shadow: var(--s2); }
.nb .ev-stub__main { flex: 1; min-width: 0; display: flex; gap: 14px; align-items: center; padding: 14px 6px 14px 14px; }
.nb .ev-stub__thumb { flex: none; width: 64px; height: 64px; border-radius: var(--r-sm); }
.nb .ev-stub__info { flex: 1; min-width: 0; }
.nb .ev-stub__title { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.nb .ev-stub__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 13px; color: var(--mut); }
.nb .ev-stub__meta span { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.nb .ev-stub__side { flex: none; width: 168px; display: grid; align-content: center; gap: 6px; padding: 14px 14px 14px 8px; }
.nb .ev-stub__sold { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-size: 13px; color: var(--mut); }
.nb .ev-stub__sold b { font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; }
.nb .ev-stub__bar { height: 6px; border-radius: var(--r-pill); background: var(--line-2); overflow: hidden; }
.nb .ev-stub__bar i { display: block; height: 100%; border-radius: inherit; background: var(--acc); }
.nb .ev-stub__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
/* O-38: 44px tap targets on touch screens */
@media (max-width: 768px), (pointer: coarse) {
  .nb .ev-stub__actions > a.text-link { min-height: 44px; min-width: 44px; padding: 0 6px; justify-content: center; }
  .nb .ev-stub__actions .more { width: 44px; height: 44px; }
}
.nb .ev-stub--header { margin-bottom: 20px; }
.nb .ev-stub--header .ev-stub__title { font-size: 19px; }
@media (max-width: 640px) {
  .nb .ev-stub { flex-direction: column; }
  .nb .ev-stub .pass-perf--v { width: auto; height: calc(var(--pass-notch) * 2); margin: 0 -1px; align-self: auto; }
  .nb .ev-stub .pass-perf--v::before { top: 0; left: calc(var(--pass-notch) * -1); clip-path: inset(0 0 0 50%); }
  .nb .ev-stub .pass-perf--v::after { top: 0; bottom: auto; left: auto; right: calc(var(--pass-notch) * -1); clip-path: inset(0 50% 0 0); }
  .nb .ev-stub .pass-perf--v > i { left: calc(var(--pass-notch) + 6px); right: calc(var(--pass-notch) + 6px); top: 50%; bottom: auto; border-left: 0; border-top: 1.5px dashed var(--line); }
  .nb .ev-stub__main { padding: 14px 14px 4px; }
  .nb .ev-stub__thumb { width: 52px; height: 52px; }
  .nb .ev-stub__side { width: auto; padding: 4px 14px 14px; }
}

/* ------------------------------------------------------------------ motion */
@media (prefers-reduced-motion: reduce) {
  .nb .ev-card, .nb .bk { transition: none; }
  .nb .ev-card:active, .nb .bk:active { transform: none; }
  .nb .tkv-track { scroll-behavior: auto; }
}
@media print {
  .nb .pass { box-shadow: none; break-inside: avoid; }
  .nb .tkv-actions, .nb .tkv-dots, .nb .tkv-tip { display: none; }
  .nb .tkv-track { display: block; overflow: visible; }
  .nb .tkv { margin-bottom: 24px; }
}
.nb .tkv__poster.is-empty { height: 56px; background: var(--acc-w); }
.nb .tkv__poster.is-empty::after { display: none; }
.nb .tkv__poster.is-empty .tkv__count { background: var(--surface); color: var(--ink); border: 1px solid var(--acc-b); }

/* ------------------------------------------------------------------ tones
   Category / collection tints (App\Support\CategoryStyle). Built only from the existing
   tokens and color-mix() blends of them - no new brand colours.
     --t-w  soft wash (tile / circle ground)   --t-fg  icon + text on the wash
     --t-d  deep (typographic poster accent)                                          */
.nb .tone-acc   { --t-w: var(--acc-w);  --t-fg: var(--acc-d); --t-d: var(--acc); }
.nb .tone-warn  { --t-w: var(--warn-w); --t-fg: var(--warn);  --t-d: color-mix(in srgb, var(--warn) 70%, var(--acc)); }
.nb .tone-ok    { --t-w: var(--ok-w);   --t-fg: var(--ok);    --t-d: var(--ok); }
.nb .tone-err   { --t-w: var(--err-w);  --t-fg: var(--err);   --t-d: var(--err); }
.nb .tone-ink   { --t-w: var(--line-2); --t-fg: var(--ink-2); --t-d: var(--mut); }
.nb .tone-ember { --t-w: color-mix(in srgb, var(--acc-w) 50%, var(--warn-w)); --t-fg: color-mix(in srgb, var(--acc-d) 55%, var(--warn)); --t-d: color-mix(in srgb, var(--acc) 55%, var(--warn)); }
.nb .tone-olive { --t-w: color-mix(in srgb, var(--ok-w) 55%, var(--warn-w));  --t-fg: color-mix(in srgb, var(--ok) 55%, var(--warn));    --t-d: color-mix(in srgb, var(--ok) 55%, var(--warn)); }
.nb .tone-sage  { --t-w: color-mix(in srgb, var(--ok-w) 60%, var(--line-2));  --t-fg: color-mix(in srgb, var(--ok) 60%, var(--ink-2));   --t-d: color-mix(in srgb, var(--ok) 60%, var(--ink-2)); }
.nb .tone-rose  { --t-w: color-mix(in srgb, var(--err-w) 55%, var(--acc-w));  --t-fg: color-mix(in srgb, var(--err) 55%, var(--acc-d));   --t-d: color-mix(in srgb, var(--err) 50%, var(--acc)); }
.nb .tone-dusk  { --t-w: color-mix(in srgb, var(--ink) 7%, var(--surface));   --t-fg: var(--ink);                                          --t-d: color-mix(in srgb, var(--acc) 40%, var(--ink)); }

/* ------------------------------------------------------------------ poster (x-nb.poster)
   The real poster over a shimmer, or a typographic poster: ink ground, a glow and a big
   faint glyph in the category tone, the category, the title and the date. The box
   fills its container (which owns the aspect ratio), so nothing shifts on load. */
.nb .nb-poster { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; background: var(--tint); color: #fff; }
.nb .nb-poster.has-img { background: linear-gradient(100deg, var(--line-2) 30%, var(--surface) 50%, var(--line-2) 70%) 0 0 / 300% 100%; animation: nb-shimmer 1.4s ease-in-out infinite; }
.nb .nb-poster > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes nb-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.nb .nb-poster.is-type {
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--t-d) 85%, transparent) 0 22%, transparent 60%),
    radial-gradient(80% 70% at 0% 100%, color-mix(in srgb, var(--t-d) 30%, transparent), transparent 70%),
    var(--ink);
}
.nb .nb-poster__glyph { position: absolute; right: -18px; bottom: -26px; color: color-mix(in srgb, #fff 12%, transparent); line-height: 0; }
.nb .nb-poster__type { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 14px 16px; }
.nb .nb-poster__cat { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: var(--r-pill); background: color-mix(in srgb, #fff 14%, transparent); font-size: 11.5px; font-weight: 600; letter-spacing: .02em; }
.nb .nb-poster__title { font-size: clamp(17px, 6.5cqi, 26px); font-weight: 700; line-height: 1.05; letter-spacing: -.035em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; max-width: 92%; }
.nb .nb-poster__date { font-family: var(--fm); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, #fff 72%, transparent); }
.nb .nb-poster--thumb { position: relative; inset: auto; width: 100%; height: 100%; display: grid; place-items: center; }
.nb .nb-poster--thumb.is-type { background: var(--t-w); color: var(--t-fg); }
.nb .nb-poster--cover .nb-poster__type { padding: clamp(16px, 4vw, 32px); }
.nb .nb-poster--cover .nb-poster__title { font-size: clamp(24px, 5vw, 44px); }
.nb .ev-card__poster { container-type: inline-size; }

@media (prefers-reduced-motion: reduce) { .nb .nb-poster.has-img { animation: none; } }
.nb .nb-poster.is-loaded { animation: none; background: var(--tint); }
/* x-nb.poster in the other poster slots */
.nb .ev-cover--poster { position: relative; overflow: hidden; container-type: inline-size; margin-top: 20px; }
.nb .pass-summary__event > .nb-poster { flex: none; width: 56px; height: 56px; border-radius: var(--r-sm); }
.nb .tkv__poster { container-type: inline-size; overflow: hidden; }
.nb .tkv__poster .nb-poster__title { -webkit-line-clamp: 1; font-size: 17px; }
.nb .tkv__poster .nb-poster__glyph svg { width: 110px; height: 110px; }
.nb .tkv__poster .tkv__count { z-index: 3; }
.nb .nb-poster.is-fit > .nb-poster__bg { object-fit: cover; filter: blur(22px) brightness(.6) saturate(1.2); transform: scale(1.25); }
.nb .nb-poster.is-fit > .nb-poster__fit { object-fit: contain; }
/* Event page cover: a wide box; the 4:5 poster sits whole in the middle over its blur. */
.nb .ev-cover--poster { height: 340px; }
@media (max-width: 640px) { .nb .ev-cover--poster { height: auto; aspect-ratio: 4 / 5; max-height: 72vh; } }
.nb .sp-initials { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--acc-w); color: var(--acc-d); font-size: 20px; font-weight: 700; letter-spacing: -.02em; }

/* ------------------------------------------------------------------ pass system extras */
.nb .pass-stub { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.nb .pass-stamp--sold { color: var(--err); }
.nb .pass-stamp--cancelled { color: var(--err); }
.nb .pass-stamp--free { color: var(--ok); }
/* Perforated divider between page sections: dashed line with a notch at each end. */
.nb .pass-divider { position: relative; height: 22px; margin: 6px 0; border: 0; }
.nb .pass-divider::before { content: ""; position: absolute; left: 14px; right: 14px; top: 50%; border-top: 1.5px dashed var(--line); }
.nb .pass-divider::after { content: ""; position: absolute; left: -11px; right: -11px; top: 0; height: 22px;
  background: radial-gradient(circle at 11px 11px, var(--bg) 10px, var(--line) 10.5px, transparent 11px) left / 22px 22px no-repeat,
              radial-gradient(circle at 11px 11px, var(--bg) 10px, var(--line) 10.5px, transparent 11px) right / 22px 22px no-repeat; }
/* Section header with a ticket notch on the left edge (organizer dashboard). */
.nb .notch-head { position: relative; display: flex; align-items: center; gap: 10px; padding-left: 16px; }
.nb .notch-head::before { content: ""; position: absolute; left: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 4px var(--acc-w); }
/* The QR always on pure white with a quiet zone (scanners need it, in any theme). */
.nb .pass-qr { background: #fff !important; padding: 14px; border-radius: var(--r); line-height: 0; }
.nb .pass-qr img, .nb .pass-qr svg { display: block; background: #fff; }
@media (prefers-reduced-motion: reduce) { .nb .pass, .nb .ev-card { transition: none !important; } }
.nb .tkv .pass-qr { padding: 0; background: transparent !important; display: block; }
/* Organizer dashboard: section headers with a ticket notch (x-nb.table class="is-notched"). */
.nb .data-table.is-notched { overflow: visible; }
.nb .data-table.is-notched > .table-head { position: relative; padding-left: 28px; font-family: var(--ff); font-size: 14px; font-weight: 600; letter-spacing: -.01em; text-transform: none; color: var(--ink); background: var(--surface); border-bottom: 1.5px dashed var(--line); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.nb .data-table.is-notched > .table-head::before { content: ""; position: absolute; left: -9px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); clip-path: inset(0 0 0 50%); }
.nb .data-table.is-notched > .table-head::after { content: ""; position: absolute; left: 14px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--acc); }
/* Event page: "Good to know" facts */
.nb .ev-facts { display: grid; gap: 10px; margin: 0; }
.nb .ev-facts div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.nb .ev-facts dt { color: var(--mut); }
.nb .ev-facts dd { margin: 0; font-weight: 600; text-align: right; }

/* ================================================================== premium pass (ticket screen)
   user/event/ticket/partials/pass.blade.php on a blurred-poster stage. The notches are
   real holes (CSS masks on the top part and the stub), so the background shows through;
   drop-shadow follows the cut-out shape. The QR always sits on pure white. */
.nb .tkv-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.nb .tkv-head .text-link { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.nb .xpass-stage { position: relative; overflow: hidden; margin: 0 calc(var(--pad) * -1); padding: 22px 16px 14px; isolation: isolate;
  background: linear-gradient(160deg, var(--acc-d), var(--ink) 75%); }
.nb .xpass-stage__bg { position: absolute; z-index: -1; inset: -60px; width: calc(100% + 120px); height: calc(100% + 120px); object-fit: cover; filter: blur(40px) brightness(.5) saturate(1.25); }
/* The track scrolls sideways, so it clips whatever overflows it: pad it enough to hold the
   pass's drop shadow (drop-shadow blur is a std deviation: 10px reaches ~30px, +10px down) instead of cutting it into a hard band. */
.nb .xpass-stage .tkv-track { margin: -24px -16px -40px; gap: 16px; padding: 24px 16px 48px; scroll-padding: 0 16px; }
@media (min-width: 768px) { .nb .xpass-stage .tkv-track { max-width: 520px; margin: -24px auto -40px; padding: 24px 60px 48px; scroll-padding: 0 60px; gap: 120px; } }
.nb .xpass-stage .tkv-track > .xpass { flex: 0 0 100%; scroll-snap-align: center; }
.nb .xpass-stage .tkv-dots button::before { background: rgba(255,255,255,.45); }
.nb .xpass-stage .tkv-dots button[aria-current="true"]::before { background: #fff; }
.nb .xpass { position: relative; min-width: 0; filter: drop-shadow(0 10px 10px rgba(0,0,0,.34)); color: var(--ink); }
.nb .xpass__top, .nb .xpass__stub { background: #fff; }
.nb .xpass__top { border-radius: 20px 20px 0 0; overflow: hidden;
  -webkit-mask: radial-gradient(circle 14px at 0 100%, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 14px at 100% 100%, #0000 97%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 14px at 0 100%, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 14px at 100% 100%, #0000 97%, #000) right / 51% 100% no-repeat; }
.nb .xpass__stub { position: relative; border-radius: 0 0 20px 20px; padding: 20px 20px 34px; text-align: center;
  -webkit-mask: radial-gradient(circle 14px at 0 0, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 14px at 100% 0, #0000 97%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 14px at 0 0, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 14px at 100% 0, #0000 97%, #000) right / 51% 100% no-repeat; }
.nb .xpass__stub::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; border-top: 2px dashed var(--line); }
/* poster window: 16:10 of the 4:5 poster, from the top, fading into the pass */
.nb .xpass__poster { position: relative; aspect-ratio: 16 / 10; overflow: hidden; container-type: inline-size; background: var(--ink); }
.nb .xpass__poster .nb-poster > img:not(.nb-poster__bg):not(.nb-poster__fit) { object-position: center top; }
.nb .xpass__fade { position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background: linear-gradient(180deg, rgba(255,255,255,0), #fff); pointer-events: none; }
.nb .xpass__chips { position: absolute; top: 12px; left: 12px; right: 120px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.nb .xpass__chip { padding: 4px 10px; border-radius: var(--r-pill); background: rgba(255,255,255,.94); color: var(--ink); font-size: 12px; font-weight: 700; box-shadow: var(--s1); }
.nb .xpass__chip--today { background: var(--ok); color: #fff; }
.nb .xpass__brand { position: absolute; top: 12px; right: 12px; z-index: 2; padding: 6px 10px; border-radius: var(--r-pill); background: rgba(18,18,17,.62); color: #fff; line-height: 0; backdrop-filter: blur(6px); }
.nb .xpass__count { position: absolute; bottom: 14px; right: 14px; z-index: 2; padding: 3px 9px; border-radius: var(--r-pill); background: rgba(18,18,17,.75); color: #fff; font-size: 12px; font-weight: 700; }
.nb .xpass__body { padding: 2px 20px 20px; }
.nb .xpass__title { margin: 0 0 14px; font-size: 22px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.nb .xpass__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 16px; margin: 0; }
.nb .xpass__grid .wide { grid-column: 1 / -1; }
.nb .xpass__grid dt { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.nb .xpass__grid dt svg { flex: none; }
.nb .xpass__grid dd { margin: 3px 0 0; font-size: 15px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.nb .xpass__grid dd a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; display: inline-block; padding: 4px 0; margin: -4px 0; }
.nb .xpass__admit { margin: 0 0 12px; font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--acc-d); }
.nb .xpass__qrwrap { position: relative; display: inline-block; }
.nb .xpass__qr { display: block; width: min(100%, 260px); min-width: 240px; padding: 0; margin: 0 auto; border: 0; border-radius: 6px; background: #fff; cursor: zoom-in; line-height: 0; }
.nb .xpass__qr img { display: block; width: 100%; height: auto; background: #fff; image-rendering: pixelated; }
.nb .xpass__qr:focus-visible { outline: 3px solid var(--acc-d); outline-offset: 4px; }
.nb .xpass__qr--none { height: 240px; width: 240px; border: 2px dashed var(--line); cursor: default; }
@media (max-width: 300px) { .nb .xpass__qr { min-width: 0; } }
.nb .xpass__stamp { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-12deg); padding: 6px 16px; border: 4px solid currentColor; border-radius: 10px;
  background: rgba(255,255,255,.8); color: var(--err); font-size: 26px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; pointer-events: none; }
.nb .xpass.is-used .xpass__stamp, .nb .xpass.is-ended .xpass__stamp { color: var(--ink-2); }
.nb .xpass.is-used .xpass__qr img, .nb .xpass.is-ended .xpass__qr img { opacity: .22; filter: grayscale(1); }
.nb .xpass.is-ended .xpass__top { filter: grayscale(.7); }
.nb .xpass__code { margin: 14px 0 0; font-family: var(--fm); font-size: var(--fm-code); font-weight: 400; line-height: 1.15; letter-spacing: .1em; color: var(--ink); overflow-wrap: anywhere; }
.nb .xpass__hint { margin: 6px 0 0; font-size: 13px; color: var(--mut); line-height: 1.5; }
.nb .xpass__hint span { display: block; font-family: var(--fm); font-size: var(--fm-data); font-weight: 400; letter-spacing: .02em; }
.nb .xpass__live { display: inline-flex; align-items: center; gap: 6px; margin: 12px 0 0; padding: 4px 10px; border-radius: var(--r-pill); background: var(--ok-w); color: var(--ok); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.nb .xpass__live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: xpass-pulse 1.4s ease-in-out infinite; }
@keyframes xpass-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.75); } }
.nb .xpass__bars { position: absolute; left: 24px; right: 24px; bottom: 12px; height: 12px; opacity: .14;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 6px, transparent 6px 9px, var(--ink) 9px 12px, transparent 12px 14px); }
.nb .tkv-actions { max-width: 400px; margin: 14px auto 0; }
.nb .tkv-tip { position: relative; max-width: 400px; margin: 12px auto 0; padding-right: 44px; }
.nb .tkv-tip[hidden] { display: none !important; }
.nb .tkv-tip__close { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--mut); cursor: pointer; border-radius: 50%; } /* C-48 */
.nb .tkv-confirm, .nb .tkv-unpaid { max-width: 400px; margin-left: auto; margin-right: auto; }
.nb .tkv-more { max-width: 400px; margin: 16px auto 0 !important; }
/* full-screen QR */
.qr-full { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 24px; border: 0; background: #fff; color: #121211; text-align: center; }
.qr-full[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.qr-full::backdrop { background: #fff; }
.qr-full img { width: min(92vw, 80dvh); height: auto; background: #fff; image-rendering: pixelated; }
.qr-full p, .nb .qr-full p { margin: 0; font-family: var(--fm, "IBM Plex Mono", monospace); font-size: clamp(22px, 7vw, 30px); font-weight: 400; letter-spacing: .1em; }
.qr-full .qr-full__hint, .nb .qr-full .qr-full__hint { font-family: inherit; font-size: 14px; font-weight: 400; letter-spacing: 0; color: #6E6B66; }
@media (min-width: 768px) {
  .nb .xpass-stage { margin: 0; border-radius: 24px; padding: 32px 24px 18px; }
}
@media (prefers-reduced-motion: reduce) { .nb .xpass__live i { animation: none; } }
/* placement is labelled on the card: a live paid feature or the admin "Featured" flag */
.nb .ev-card__feat { position: absolute; top: 8px; right: 8px; z-index: 2; padding: 3px 9px; border-radius: var(--r-pill); background: var(--acc); color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.nb .ev-card__feat + .ev-card__feat { top: 36px; } /* Sponsored and Featured both: stacked */

/* Checkout coupon (user/event/ticket/buy): "Have a coupon?" -> code + Apply; applied: a line
   with Remove; the discount row in the breakdown in the brand's rust, with a minus. */
.nb .coupon-box { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.nb .coupon-toggle { font-weight: 700; }
.nb .coupon-form { display: flex; gap: 8px; margin-top: 8px; }
.nb .coupon-form input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--r-pill); font: inherit; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--surface); color: var(--ink); }
.nb .coupon-form input:focus-visible { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 30%, transparent); }
.nb .coupon-form .btn { min-height: 44px; white-space: nowrap; }
.nb .coupon-error:empty { display: none; }
.nb .coupon-error { margin: 6px 0 0; }
.nb .coupon-applied { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--ok, #127A5A) 10%, transparent); color: var(--ok, #127A5A); font-size: 14px; font-weight: 700; }
.nb .coupon-applied .text-link { margin-left: auto; }
.nb .pass-summary__line.is-discount span:last-child { color: var(--acc-d, #A63B20); font-weight: 700; }

/* build 6: a scanned pass - a blurred, dimmed made-up QR under the "Scanned" stamp (never the pass's own QR) */
.nb .xpass__qr--used { cursor: default; overflow: hidden; border-radius: 12px; }
.nb .xpass.is-used .xpass__qr--used img { filter: blur(7px) grayscale(1); opacity: .35; transform: scale(1.06); }
.nb .xpass.is-used .xpass__stamp { color: var(--d-rust, #b4441f); background: rgba(255,255,255,.85); }
.nb .bk__used { color: var(--d-rust, #b4441f); font-weight: 700; }
.nb .tkd-used { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 0; padding: 4px 12px; border-radius: 999px; background: #fff; color: var(--d-rust, #b4441f); font-weight: 800; font-size: 14px; }

/* build 7: the "Add-ons & kit" QR after entry */
.nb .xpass__collect { margin-top: 12px; padding: 18px 20px 16px; border-top: 2px dashed var(--line); background: #fff; }
.nb .xpass__collect-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.nb .xpass__collect-qr { width: 168px; height: 168px; flex: none; image-rendering: pixelated; }
.nb .xpass__collect-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; flex: 1 1 160px; min-width: 0; }
.nb .xpass__collect-list li { display: flex; flex-direction: column; gap: 2px; }
.nb .xpass__collect-list b { font-weight: 800; font-size: 14px; }
.nb .xpass__collect-list span { font-size: 13px; color: var(--d-rust, #b4441f); font-weight: 700; }
.nb .xpass__collect-list span.is-done { color: var(--ok, #1f7a4d); }
