/* Styles for elements the static clone adds; the captured Tailwind CSS only contains classes the original pages used. */
:root {
  --nx-orange: #ff6a00;
  --nx-gradient: linear-gradient(270deg, #ff9604 18.56%, #ff2a2a 84.13%);
  --nx-ink: #1a1a1a;
  --nx-muted: #5f594f;
  --nx-sand: #fcfbf8;
  --nx-line: #d7d8d9;
  --nx-cut: polygon(0% 0%, calc(100% - 12px) 0%, 100% 12px, 100% 100%, 12px 100%, 0% calc(100% - 12px));
}

[hidden] {
  display: none !important;
}

/* Mobile menu */
.nx-mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  padding: 8px 16px 16px;
  background: #fff;
  box-shadow: 0 12px 24px rgb(0 0 0 / 0.08);
}

.nx-mobile-nav a {
  padding: 12px 0;
  border-bottom: 1px solid #f0ebe3;
  color: var(--nx-ink);
  font-size: 16px;
}

.nx-mobile-nav a:last-child {
  border-bottom: 0;
}

@media (min-width: 1280px) {
  .nx-mobile-nav {
    display: none !important;
  }
}

/* Events */
.nx-events {
  display: grid;
  gap: 16px;
  padding: 24px 0 64px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
}

.nx-event {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: #fff;
  clip-path: var(--nx-cut);
  color: var(--nx-ink);
  font-family: inherit;
}

.nx-event__date {
  flex: 0 0 72px;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--nx-gradient);
  color: #fff;
  clip-path: polygon(0% 0%, calc(100% - 8px) 0%, 100% 8px, 100% 100%, 8px 100%, 0% calc(100% - 8px));
}

.nx-event__day {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.nx-event__month {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
}

.nx-event__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nx-event__meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--nx-muted);
}

.nx-event__type {
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff1e6;
  color: var(--nx-orange);
  font-weight: 600;
}

.nx-event__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
}

.nx-event__location {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #795f4e;
}

.nx-event__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--nx-muted);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nx-event__link {
  align-self: flex-start;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--nx-orange);
}

.nx-events__empty {
  grid-column: 1 / -1;
  padding: 48px 0;
  text-align: center;
  font-size: 18px;
  color: var(--nx-muted);
}

/* Leaderboard */
.nx-search,
.nx-select {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--nx-line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  color: var(--nx-ink);
}

.nx-select {
  width: 100%;
  max-width: 420px;
}

.nx-search {
  display: block;
  width: calc(100% - 48px);
  max-width: 420px;
  margin: 12px 24px;
}

.nx-pager {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-size: 15px;
  color: var(--nx-muted);
}

.nx-pager button {
  padding: 8px 16px;
  border: 0;
  background: var(--nx-ink);
  color: #faeed9;
  font-weight: 600;
  cursor: pointer;
  clip-path: polygon(0% 0%, calc(100% - 8px) 0%, 100% 8px, 100% 100%, 8px 100%, 0% calc(100% - 8px));
}

.nx-pager button:disabled {
  opacity: 0.35;
  cursor: default;
}

table[data-slot="table"] {
  min-width: 960px;
}

/* Stand-ins for artwork the Wayback Machine never archived (registration banner and type cards) */
.nx-art-fallback {
  background: linear-gradient(120deg, #2a1610 0%, #6b2e1f 55%, #a4532e 100%) !important;
}

.nx-radio {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid #faeed9;
  border-radius: 999px;
}

.nx-radio--checked {
  background: radial-gradient(circle, #ff9604 0 45%, transparent 48%);
}

@media (min-width: 1024px) {
  .nx-radio {
    width: 56px;
    height: 56px;
  }
}

/* Feedback for forms that cannot submit in the static build */
.nx-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  background: var(--nx-ink);
  color: #faeed9;
  font-size: 15px;
  clip-path: var(--nx-cut);
}
