/*
 * "Event first" picker (components/nb/event-picker) + the "Switch event" dropdown
 * (components/nb/event-switch) + the event header on event-first pages (Orders,
 * Attendees, Check-ins, Settlement). PassOut: black #141414, orange #FE5C36, rust #C94F2E,
 * cream #FFF3EA.
 */
.nb .evp-tabs { display: flex; gap: 8px; margin: 16px 0 12px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.nb .evp-tabs::-webkit-scrollbar { display: none; }
.nb .evp-tab {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid #EADFD6; background: #fff; color: #141414; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap;
}
.nb .evp-tab:hover { border-color: #141414; }
.nb .evp-tab.is-on { background: #141414; border-color: #141414; color: #fff; }
.nb .evp-tab__n { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: #FFF3EA; color: #C94F2E; font-size: 12px; font-weight: 700; text-align: center; }
.nb .evp-tab.is-on .evp-tab__n { background: #FE5C36; color: #141414; }
.nb .evp-search { position: relative; display: flex; margin: 0 0 14px; max-width: 520px; }
.nb .evp-search input { flex: 1; min-width: 0; height: 44px; padding: 0 48px 0 16px; border: 1px solid #EADFD6; border-radius: 999px; background: #fff; font: 500 15px/1 var(--ff); color: #141414; }
.nb .evp-search input:focus-visible { outline: 2px solid #FE5C36; outline-offset: 2px; }
.nb .evp-search__btn { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #FE5C36; color: #141414; display: grid; place-items: center; cursor: pointer; }

.nb .evp-list { display: grid; gap: 10px; }
.nb .evp-card {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) 20px; column-gap: 14px; row-gap: 0; align-items: center;
  grid-template-areas: "thumb body go" "thumb stats go" "thumb badges go";
  padding: 14px; border: 1px solid #EADFD6; border-radius: 16px; background: #fff; color: #141414; text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.nb .evp-card:hover { border-color: #141414; box-shadow: 0 6px 18px -10px rgba(20,20,20,.25); }
.nb .evp-card:focus-visible { outline: 2px solid #FE5C36; outline-offset: 2px; }
.nb .evp-card.is-last { border-color: #FE5C36; background: #FFF3EA; }
.nb .evp-card__thumb { grid-area: thumb; width: 64px; height: 80px; border-radius: 10px; overflow: hidden; }
.nb .evp-card__body { grid-area: body; display: grid; gap: 2px; min-width: 0; }
.nb .evp-card__last { justify-self: start; margin-bottom: 2px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #C94F2E; }
.nb .evp-card__title { font-family: var(--fd); font-weight: 800; font-size: 16px; line-height: 1.25; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb .evp-card__sub { font-size: 13px; color: #6B625B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb .evp-card__stats { grid-area: stats; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 8px; font-size: 13px; color: #403E3A; }
.nb .evp-card__stats b { color: #141414; font-variant-numeric: tabular-nums; }
.nb .evp-card__sold { display: inline-flex; align-items: center; gap: 8px; }
.nb .evp-bar { display: inline-block; width: 72px; height: 4px; border-radius: 999px; background: #F1ECE7; overflow: hidden; }
.nb .evp-bar i { display: block; height: 100%; background: #FE5C36; border-radius: inherit; }
.nb .evp-card__badges { grid-area: badges; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.nb .evp-card__go { grid-area: go; color: #C94F2E; }
.nb .evp-card--all { grid-template-columns: 44px minmax(0, 1fr) 20px; grid-template-areas: "thumb body go"; background: #141414; border-color: #141414; color: #fff; }
.nb .evp-card--all:hover { border-color: #FE5C36; }
.nb .evp-card--all .evp-card__sub { color: #D8CEC6; }
.nb .evp-card--all .evp-card__go { color: #FE5C36; }
.nb .evp-all__icon { grid-area: thumb; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #FE5C36; color: #141414; }
.nb .evp-none { margin: 8px 0; color: #6B625B; }

/* ------------------------------------------------------------ event header on event-first pages */
.nb .evh2 { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.nb .evh2__back { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; color: #C94F2E; font-weight: 700; font-size: 14px; text-decoration: none; }
.nb .evh2__back:hover { text-decoration: underline; text-underline-offset: 3px; }
.nb .evh2__main { min-width: 0; flex: 1 1 320px; }
.nb .evh2__title { margin: 2px 0 2px; font-family: var(--fd); font-weight: 900; font-size: clamp(22px, 3vw, 32px); line-height: 1.1; letter-spacing: -.02em; overflow-wrap: anywhere; }
.nb .evh2__meta { color: #6B625B; font-size: 14px; }
.nb .evh2__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ------------------------------------------------------------ Switch event */
.nb .evs { position: relative; }
.nb .evs__btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1.5px solid #141414; border-radius: 999px;
  background: #fff; color: #141414; font-weight: 700; font-size: 14px; cursor: pointer; list-style: none; white-space: nowrap;
}
.nb .evs__btn::-webkit-details-marker { display: none; }
.nb .evs__btn:focus-visible { outline: 2px solid #FE5C36; outline-offset: 2px; }
.nb .evs__panel {
  position: absolute; z-index: var(--z-dropdown); right: 0; top: calc(100% + 6px); width: min(380px, 90vw); max-height: min(420px, 60vh); overflow-y: auto;
  padding: 8px; border: 1px solid #EADFD6; border-radius: 14px; background: #fff; box-shadow: 0 12px 32px rgba(20,20,20,.16);
}
.nb .evs__backdrop, .nb .evs__head { display: none; }
.nb .evs__search { width: 100%; height: 40px; margin-bottom: 6px; padding: 0 12px; border: 1px solid #EADFD6; border-radius: 10px; font: 500 14px/1 var(--ff); }
.nb .evs__glabel { display: block; padding: 10px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #C94F2E; }
.nb .evs__opt { display: grid; gap: 1px; min-height: 44px; padding: 7px 10px; border-radius: 10px; color: #141414; text-decoration: none; }
.nb .evs__opt:hover, .nb .evs__opt:focus-visible { background: #F5F1ED; outline: none; }
.nb .evs__opt.is-on { background: #FFF3EA; }
.nb .evs__name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb .evs__meta { font-size: 12.5px; color: #6B625B; }
.nb .evs__opt[hidden], .nb .evs__group[hidden] { display: none; }
.nb .evs__none { padding: 8px 10px; margin: 0; }

@media (max-width: 767px) {
  .nb .evp-card { grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: "thumb body" "stats stats" "badges badges"; column-gap: 12px; align-items: start; }
  .nb .evp-card__thumb { width: 56px; height: 70px; }
  .nb .evp-card__go { display: none; }
  .nb .evp-card--all { grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: "thumb body"; align-items: center; }
  .nb .evp-card__title { font-size: 15px; }
  .nb .evp-card__stats { gap: 6px 14px; margin-top: 10px; }

  /* "← Event name" with date · venue under it; Switch event as a bottom sheet */
  .nb .evh2 { align-items: center; }
  .nb .evh2__main { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; align-items: center; }
  .nb .evh2__main .evh2__meta, .nb .evh2__main .evh2__fee { grid-column: 2; }
  .nb .evh2__back { min-width: 36px; justify-content: center; }
  .nb .evh2__back .evh2__back-label { display: none; }
  .nb .evh2__title { font-size: 22px; }
  html.evs-open { overflow: hidden; }
  .nb .evs[open] .evs__backdrop { display: block; position: fixed; inset: 0; z-index: var(--z-overlay); background: rgba(20,20,20,.45); }
  .nb .evs__panel { position: fixed; z-index: var(--z-sheet); left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 80vh; border-radius: 22px 22px 0 0; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); }
  .nb .evs__head { display: flex; align-items: center; justify-content: space-between; min-height: 44px; font-family: var(--fd); font-size: 17px; }
  .nb .evs__search { height: 44px; font-size: 16px; }
}
.nb .evh2--bar { align-items: center; margin-bottom: 12px; }
