:root {
  --nps-plum: var(--plum, #70217c);
  --nps-dark: var(--dark, #2b1130);
  --nps-darker: var(--darker, #1a0a1f);
  --nps-ink: #ffffff;
  --nps-muted: rgba(255, 255, 255, 0.66);
  --nps-line: rgba(255, 255, 255, 0.14);
  --nps-line-strong: rgba(255, 255, 255, 0.28);
  --nps-accent: #d638c7;
  --nps-accent-bright: #f05add;
  --nps-display: var(--font-display, "Expletus Sans", serif);
  --nps-body: var(--font-body, "Avenir Next", sans-serif);
}

body.nps-modal-open {
  overflow: hidden !important;
  padding-right: var(--nps-scrollbar, 0px);
}

#programs .programs-closing-wrap {
  background: transparent;
  border: 0;
  margin: 58px auto 0;
  max-width: 1290px;
  padding: 0;
  text-align: left;
}

.nps-teaser {
  background:
    linear-gradient(118deg, rgba(112, 33, 124, 0.22), transparent 42%),
    linear-gradient(145deg, rgba(22, 7, 28, 0.97), rgba(41, 13, 48, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 34px 95px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--nps-ink);
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(350px, 0.78fr);
  isolation: isolate;
  min-height: 320px;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.nps-teaser::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(105deg, #000 0%, rgba(0, 0, 0, 0.72) 48%, transparent 82%);
  pointer-events: none;
  position: absolute;
  z-index: -2;
}

.nps-teaser::after {
  animation: nps-teaser-glow 8s ease-in-out infinite;
  background: radial-gradient(circle, rgba(240, 90, 221, 0.27) 0%, rgba(112, 33, 124, 0.12) 42%, transparent 72%);
  border-radius: 50%;
  content: "";
  height: 420px;
  left: 38%;
  pointer-events: none;
  position: absolute;
  top: -220px;
  width: 420px;
  z-index: -1;
}

@keyframes nps-teaser-glow {
  0%,
  100% {
    opacity: 0.7;
    transform: translate3d(-4%, 0, 0) scale(0.94);
  }
  50% {
    opacity: 1;
    transform: translate3d(8%, 10%, 0) scale(1.12);
  }
}

.nps-teaser-accent {
  background: linear-gradient(90deg, var(--nps-accent-bright), var(--nps-plum) 46%, transparent 88%);
  height: 4px;
  inset: 0 0 auto;
  position: absolute;
  z-index: 3;
}

.nps-teaser-date {
  color: rgba(255, 255, 255, 0.5);
  font: 600 10px/1 var(--nps-display);
  letter-spacing: 0.16em;
  position: absolute;
  right: 38px;
  text-transform: uppercase;
  top: 28px;
  z-index: 3;
}

.nps-teaser-copy {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 50px 58px 48px;
  position: relative;
  z-index: 1;
}

.nps-teaser-eyebrow {
  color: var(--nps-accent-bright) !important;
  font: 600 11px/1.2 var(--nps-display);
  letter-spacing: 0.2em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.nps-teaser h3 {
  color: #fff !important;
  font: 500 clamp(36px, 4.3vw, 58px)/1.04 var(--nps-display);
  letter-spacing: -0.015em;
  margin: 0;
  max-width: 720px;
  text-transform: none;
}

.nps-teaser-description {
  color: rgba(255, 255, 255, 0.72) !important;
  font: 400 17px/1.62 var(--nps-body);
  margin: 20px 0 0;
  max-width: 650px;
}

.nps-teaser-stats {
  align-self: stretch;
  background:
    linear-gradient(180deg, rgba(214, 56, 199, 0.1), rgba(20, 6, 25, 0.78)),
    rgba(13, 4, 17, 0.52);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  min-width: 0;
  padding: 62px 38px 32px;
  position: relative;
  z-index: 1;
}

.nps-teaser-stat {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  padding: 28px 0 2px;
  text-align: right;
}

.nps-teaser-stat + .nps-teaser-stat:not(.nps-teaser-stat--primary) {
  border-left: 1px solid rgba(255, 255, 255, 0.13);
  padding-left: 24px;
}

.nps-teaser-stat--primary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  grid-column: 1 / -1;
  padding: 0 0 26px;
}

.nps-teaser-stat dd,
.nps-teaser-stat dt {
  margin: 0;
}

.nps-teaser-stat dd {
  color: #fff;
  font: 500 48px/0.9 var(--nps-display);
  letter-spacing: -0.05em;
}

.nps-teaser-stat--primary dd {
  color: var(--nps-accent-bright);
  font-size: clamp(84px, 8.8vw, 126px);
  text-shadow: 0 0 44px rgba(214, 56, 199, 0.24);
}

.nps-teaser-stat dt {
  color: rgba(255, 255, 255, 0.58);
  font: 600 10px/1 var(--nps-display);
  letter-spacing: 0.16em;
  margin-top: 12px;
  text-transform: uppercase;
}

#nomad-program-open.nps-open-button {
  align-items: center;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: linear-gradient(135deg, var(--nps-plum), #9b2c9d);
  color: #fff;
  cursor: pointer !important;
  display: inline-flex;
  font: 600 11px/1 var(--nps-display);
  gap: 18px;
  justify-content: center;
  letter-spacing: 0.13em;
  margin-top: 30px;
  min-height: 72px;
  min-width: 360px;
  padding: 23px 48px;
  text-align: center;
  text-transform: uppercase;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

#nomad-program-open.nps-open-button svg {
  fill: none;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transition: transform 180ms ease;
}

#nomad-program-open.nps-open-button:hover {
  border-color: #fff;
  box-shadow: 0 14px 40px rgba(112, 33, 124, 0.38);
  transform: translateY(-2px);
}

#nomad-program-open.nps-open-button:hover svg {
  transform: translateX(4px);
}

#nomad-program-open.nps-open-button:focus-visible,
.nps-overlay button:focus-visible,
.nps-overlay input:focus-visible,
.nps-results:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.nps-overlay[hidden] {
  display: none !important;
}

.nps-overlay {
  align-items: center;
  background: rgba(10, 3, 13, 0.88);
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  padding: 3.5vh 28px;
  position: fixed;
  transition: opacity 180ms ease;
  z-index: 1000000;
}

.nps-overlay::before {
  background:
    radial-gradient(circle at 14% 8%, rgba(214, 56, 199, 0.2), transparent 34%),
    radial-gradient(circle at 86% 90%, rgba(112, 33, 124, 0.32), transparent 38%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.nps-overlay.is-open {
  opacity: 1;
}

.nps-dialog {
  background:
    linear-gradient(145deg, rgba(112, 33, 124, 0.12), transparent 34%),
    var(--nps-darker);
  border: 1px solid var(--nps-line-strong);
  box-shadow: 0 35px 110px rgba(0, 0, 0, 0.66);
  color: var(--nps-ink);
  display: grid;
  font-family: var(--nps-body);
  grid-template-rows: auto auto minmax(0, 1fr);
  height: min(94dvh, 980px);
  max-width: 1360px;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
  transform: translateY(16px) scale(0.99);
  transition: transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
  width: min(100%, 1360px);
}

.nps-overlay.is-open .nps-dialog {
  transform: translateY(0) scale(1);
}

.nps-header {
  align-items: flex-start;
  background: linear-gradient(180deg, rgba(43, 17, 48, 0.98), rgba(26, 10, 31, 0.96));
  border-bottom: 1px solid var(--nps-line);
  display: flex;
  gap: 32px;
  justify-content: space-between;
  min-width: 0;
  padding: 28px 32px 25px;
  position: relative;
  z-index: 3;
}

.nps-heading {
  min-width: 0;
}

.nps-eyebrow {
  color: var(--nps-accent-bright) !important;
  font: 600 10px/1.25 var(--nps-display);
  letter-spacing: 0.16em;
  margin: 0 0 7px;
  text-transform: uppercase;
}

.nps-heading h2 {
  color: #fff !important;
  font: 500 clamp(28px, 3vw, 40px)/1.08 var(--nps-display);
  letter-spacing: 0.015em;
  margin: 0;
  text-transform: uppercase;
}

.nps-result-count {
  color: var(--nps-muted) !important;
  font-size: 13px;
  margin: 8px 0 0;
}

.nps-close {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 1px solid var(--nps-line-strong);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font: 600 10px/1 var(--nps-display);
  gap: 10px;
  letter-spacing: 0.12em;
  min-height: 48px;
  padding: 0 17px;
  text-transform: uppercase;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.nps-close:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}

.nps-close svg,
.nps-search svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.nps-controls {
  background: rgba(31, 11, 36, 0.96);
  border-bottom: 1px solid var(--nps-line);
  min-width: 0;
  padding: 0 32px 22px;
  position: relative;
  z-index: 2;
}

.nps-days,
.nps-venues {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
  scrollbar-width: thin;
}

.nps-days {
  margin: 0 -32px 20px;
  padding: 0 32px;
}

.nps-day,
.nps-venue,
.nps-reset {
  appearance: none;
  background: transparent;
  border: 1px solid var(--nps-line);
  color: var(--nps-muted);
  cursor: pointer;
  flex: 0 0 auto;
  font-family: var(--nps-display);
  text-transform: uppercase;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.nps-day {
  border-bottom: 2px solid transparent;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  min-height: 58px;
  padding: 5px 3px 0;
}

.nps-day + .nps-day {
  margin-left: 24px;
}

.nps-day[aria-selected="true"] {
  border-bottom-color: var(--nps-accent-bright);
  color: #fff;
}

.nps-filter-row {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(310px, 0.78fr) minmax(0, 2fr);
  min-width: 0;
}

.nps-search {
  align-items: center;
  border: 1px solid var(--nps-line-strong);
  color: var(--nps-muted);
  display: flex;
  gap: 10px;
  min-height: 52px;
  padding: 0 16px;
}

.nps-search:focus-within {
  border-color: var(--nps-accent-bright);
  color: #fff;
}

.nps-search input {
  appearance: none;
  background: transparent;
  border: 0;
  color: #fff;
  font: 400 13px/1.2 var(--nps-body);
  min-width: 0;
  outline: 0;
  width: 100%;
}

.nps-search input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.nps-search input::-webkit-search-cancel-button {
  filter: invert(1);
}

.nps-venue {
  font-size: 9px;
  letter-spacing: 0.07em;
  min-height: 42px;
  padding: 10px 14px;
}

.nps-venue:hover,
.nps-venue[aria-pressed="true"] {
  background: rgba(214, 56, 199, 0.15);
  border-color: var(--nps-accent-bright);
  color: #fff;
}

.nps-results {
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px 32px 36px;
  scrollbar-color: rgba(255, 255, 255, 0.26) transparent;
  scrollbar-width: thin;
}

.nps-event-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
}

.nps-event {
  align-items: stretch;
  background: linear-gradient(105deg, rgba(112, 33, 124, 0.17), rgba(255, 255, 255, 0.025) 55%);
  border: 1px solid var(--nps-line);
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  min-width: 0;
  min-height: 126px;
  overflow: hidden;
  position: relative;
}

.nps-event::before {
  background: var(--nps-accent);
  content: "";
  inset: 0 auto 0 0;
  opacity: 0.82;
  position: absolute;
  width: 3px;
}

.nps-event-time {
  align-items: center;
  border-right: 1px solid var(--nps-line);
  color: #fff !important;
  display: flex;
  flex-direction: column;
  font: 500 13px/1.1 var(--nps-display);
  gap: 4px;
  justify-content: center;
  letter-spacing: 0.04em;
  margin: 0;
  padding: 17px 14px;
}

.nps-event-time span:nth-child(2) {
  color: var(--nps-accent-bright);
  font-size: 10px;
}

.nps-event-body {
  min-width: 0;
  padding: 19px 20px 20px;
}

.nps-event-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.nps-event-venue,
.nps-event-capacity {
  border: 1px solid var(--nps-line-strong);
  color: var(--nps-muted);
  font: 500 9px/1 var(--nps-display);
  letter-spacing: 0.07em;
  padding: 7px 9px 6px;
  text-transform: uppercase;
}

.nps-event-capacity {
  border-color: rgba(214, 56, 199, 0.56);
  color: #f7b7ef;
}

.nps-event h3 {
  color: #fff !important;
  font: 500 clamp(14px, 1.2vw, 17px)/1.34 var(--nps-display);
  letter-spacing: 0.01em;
  margin: 0;
  overflow-wrap: anywhere;
  text-transform: none;
}

.nps-empty {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 310px;
  padding: 36px 20px;
  text-align: center;
}

.nps-empty[hidden] {
  display: none;
}

.nps-empty-mark {
  color: var(--nps-accent-bright);
  font-size: 2rem;
  margin-bottom: 12px;
}

.nps-empty h3 {
  color: #fff !important;
  font: 500 1.25rem/1.2 var(--nps-display);
  margin: 0 0 8px;
  text-transform: uppercase;
}

.nps-empty p {
  color: var(--nps-muted) !important;
  margin: 0 0 20px;
}

.nps-reset {
  border-color: var(--nps-accent-bright);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.1em;
  min-height: 42px;
  padding: 11px 15px;
}

.nps-sr-only {
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

@media (max-width: 920px) {
  .nps-overlay {
    padding: 0;
  }

  .nps-dialog {
    border: 0;
    height: 100dvh;
    max-height: none;
    max-width: none;
    width: 100%;
  }

  .nps-header,
  .nps-controls {
    position: sticky;
    top: 0;
  }

  .nps-header {
    padding: max(17px, env(safe-area-inset-top)) 18px 16px;
  }

  .nps-controls {
    padding: 0 18px 14px;
  }

  .nps-days {
    margin: 0 -18px 13px;
    padding: 0 18px;
  }

  .nps-filter-row {
    align-items: stretch;
    gap: 12px;
    grid-template-columns: 1fr;
  }

  .nps-results {
    padding: 18px 18px calc(28px + env(safe-area-inset-bottom));
  }

  .nps-event-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  #programs .programs-closing-wrap {
    margin-top: 44px;
  }

  .nps-teaser {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .nps-teaser-date {
    right: 32px;
  }

  .nps-teaser-copy {
    padding: 52px 32px 38px;
  }

  .nps-teaser-description {
    max-width: 720px;
  }

  .nps-teaser-stats {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    grid-template-columns: 1.25fr 1fr 1fr;
    padding: 0 32px 30px;
  }

  .nps-teaser-stat,
  .nps-teaser-stat--primary {
    border-bottom: 0;
    grid-column: auto;
    padding: 26px 20px 0;
  }

  .nps-teaser-stat:first-child {
    padding-left: 0;
  }

  .nps-teaser-stat + .nps-teaser-stat {
    border-left: 1px solid rgba(255, 255, 255, 0.13);
  }

  .nps-teaser-stat + .nps-teaser-stat:not(.nps-teaser-stat--primary) {
    padding-left: 20px;
  }

  .nps-teaser-stat--primary dd {
    font-size: 62px;
  }
}

@media (max-width: 560px) {
  #programs .programs-closing-wrap {
    margin-top: 36px;
    padding: 0;
  }

  .nps-teaser-date {
    font-size: 9px;
    letter-spacing: 0.11em;
    right: 20px;
    top: 19px;
  }

  .nps-teaser-copy {
    padding: 46px 20px 29px;
  }

  .nps-teaser-eyebrow {
    font-size: 10px;
    margin-bottom: 13px;
  }

  .nps-teaser h3 {
    font-size: clamp(32px, 10vw, 41px);
  }

  .nps-teaser-description {
    font-size: 15px;
    line-height: 1.58;
    margin-top: 17px;
  }

  .nps-teaser-stats {
    grid-template-columns: 1.2fr 1fr 1fr;
    padding: 0 20px 23px;
  }

  .nps-teaser-stat,
  .nps-teaser-stat--primary {
    padding: 22px 9px 0;
  }

  .nps-teaser-stat:first-child {
    padding-left: 0;
  }

  .nps-teaser-stat + .nps-teaser-stat:not(.nps-teaser-stat--primary) {
    padding-left: 9px;
  }

  .nps-teaser-stat dd,
  .nps-teaser-stat--primary dd {
    font-size: 38px;
  }

  .nps-teaser-stat dt {
    font-size: 8px;
    letter-spacing: 0.11em;
    margin-top: 9px;
  }

  #nomad-program-open.nps-open-button {
    font-size: 11px;
    gap: 12px;
    margin-top: 25px;
    min-height: 64px;
    min-width: 0;
    padding: 20px 22px;
    width: 100%;
  }

  .nps-header {
    gap: 12px;
  }

  .nps-eyebrow {
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .nps-heading h2 {
    font-size: clamp(20px, 5.6vw, 24px);
  }

  .nps-result-count {
    font-size: 12px;
  }

  .nps-close {
    border-radius: 50%;
    height: 42px;
    justify-content: center;
    padding: 0;
    width: 42px;
  }

  .nps-close-label {
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }

  .nps-day {
    font-size: 10px;
    min-height: 49px;
  }

  .nps-day + .nps-day {
    margin-left: 13px;
  }

  .nps-venue {
    font-size: 9px;
  }

  .nps-event {
    grid-template-columns: 88px minmax(0, 1fr);
    min-height: 116px;
  }

  .nps-event-time {
    font-size: 12px;
    padding: 12px 8px;
  }

  .nps-event-body {
    padding: 14px 13px 15px;
  }

  .nps-event h3 {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nps-teaser::after,
  .nps-overlay,
  .nps-dialog,
  #nomad-program-open.nps-open-button,
  .nps-day,
  .nps-venue,
  .nps-close {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .nps-teaser::after {
    animation: none !important;
  }

  #nomad-program-open.nps-open-button svg {
    transition: none !important;
  }
}
