/* Nexus Events · sponsor and partner plaques.
   The only stylesheet for sponsor logos: ticket cards on the event page
   (.nx-sp--card), the checkout header (.nx-sp--checkout), the event partner
   in the hero (.nx-sp--hero) and the admin previews (.nx-sp--admin).

   A plaque has one size per context whatever the number of logos — the
   size that fits three in a row. Its image is a generated 11:5 card with
   the logo already padded and weighted (Nexus_Events_Sponsors), so it is
   shown whole (contain) and never cropped. Logos without a generated card
   get the same padding in CSS. */

.nx-sp {
  --nx-sp-h: 48px;
  --nx-sp-gap: 8px;
  --nx-sp-radius: 12px;
  --nx-sp-w: calc(var(--nx-sp-h) * 2.2);
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  min-width: 0;
}

.nx-sp__label {
  color: #373c57;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 16px;
  text-transform: uppercase;
}

.nx-sp .nx-sp__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--nx-sp-gap);
  list-style: none;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.nx-sp .nx-sp__plaque {
  align-items: center;
  aspect-ratio: 11 / 5;
  background: #ffffff;
  border-radius: var(--nx-sp-radius);
  box-shadow: 0 1px 2px rgba(12, 18, 50, 0.06), 0 6px 16px rgba(12, 18, 50, 0.08);
  box-sizing: border-box;
  display: flex;
  flex: 0 0 auto;
  height: auto;
  justify-content: center;
  list-style: none;
  margin: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
  text-decoration: none;
  width: var(--nx-sp-w);
}

/* Ticket cards: three plaques fit in a row; below that the plaque keeps a
   readable floor and the third one wraps. The same width rule sizes the
   «No team sponsor» slot, so cards line up. */
.nx-sp--card {
  --nx-sp-fit: clamp(88px, calc((100% - 2 * var(--nx-sp-gap)) / 3), var(--nx-sp-w));
  container-type: inline-size;
}

.nx-sp.nx-sp--card .nx-sp__plaque {
  width: var(--nx-sp-fit);
}

@supports (width: 1cqw) {
  .nx-sp--card {
    --nx-sp-fit: clamp(88px, calc((100cqw - 2 * var(--nx-sp-gap)) / 3), var(--nx-sp-w));
  }

  .nx-sp.nx-sp--card .nx-sp__empty {
    height: calc(var(--nx-sp-fit) / 2.2);
  }
}

.nx-sp .nx-sp__plaque::before,
.nx-sp .nx-sp__plaque::marker {
  content: none;
}

.nx-sp .nx-sp__img {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: block;
  height: 100% !important;
  margin: 0;
  max-height: none !important;
  max-width: none !important;
  object-fit: contain;
  object-position: center;
  width: 100% !important;
}

/* Logo without a generated card: 18% top/bottom and 9% side padding,
   expressed against the plaque width (11:5). */
.nx-sp .nx-sp__plaque.is-raw {
  padding: 8.2% 9%;
}

.nx-sp .nx-sp__plaque.is-text {
  padding: 0 8px;
}

.nx-sp .nx-sp__name {
  color: #0c1232;
  display: -webkit-box;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-align: center;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* No sponsor: a slot of the same height as a plaque row, so ticket cards
   with and without sponsors line up. Outline only, no fill to darken. */
.nx-sp .nx-sp__empty {
  align-items: center;
  border: 1px dashed rgba(12, 18, 50, 0.22);
  border-radius: var(--nx-sp-radius);
  box-sizing: border-box;
  color: #373c57;
  display: flex;
  gap: 10px;
  height: var(--nx-sp-h);
  justify-content: center;
  max-width: calc(3 * var(--nx-sp-w) + 2 * var(--nx-sp-gap));
  padding: 0 16px;
  width: 100%;
}

.nx-sp .nx-sp__empty svg {
  color: #9552da;
  display: block;
  flex: 0 0 20px;
  height: 20px;
  width: 20px;
}

.nx-sp .nx-sp__empty span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 16px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Samsung Internet in dark mode (see Nexus_Events_Sponsors): softer plate. */
.nx-dark-native .nx-sp .nx-sp__plaque {
  background: #e9ebf1;
}

/* Checkout header: label beside the plaques, larger plaques. */
.nx-sp--checkout {
  --nx-sp-h: 60px;
  --nx-sp-gap: 10px;
  --nx-sp-radius: 14px;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 22px 0 20px;
}

.nx-sp--checkout .nx-sp__list {
  flex: 0 1 auto;
}

.nx-sp--checkout .nx-sp__plaque {
  width: var(--nx-sp-w);
}

.nx-sp--checkout .nx-sp__empty {
  width: auto;
}

/* Event partner under the venue in the hero. */
.nx-sp--hero {
  --nx-sp-h: 60px;
  --nx-sp-radius: 14px;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin: 20px 0 0;
}

.nx-sp--hero .nx-sp__label {
  font-size: 12px;
  line-height: 18px;
}

.nx-sp--hero .nx-sp__plaque {
  transition: box-shadow 160ms cubic-bezier(0.22, 1, 0.36, 1), transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
  width: var(--nx-sp-w);
}

.nx-sp--hero a.nx-sp__plaque:hover {
  box-shadow: 0 1px 2px rgba(12, 18, 50, 0.08), 0 10px 22px rgba(12, 18, 50, 0.12);
  transform: translateY(-1px);
}

.nx-sp .nx-sp__plaque:focus-visible {
  outline: 2px solid #2b5ef0;
  outline-offset: 2px;
}

/* Admin previews. */
.nx-sp--admin {
  --nx-sp-h: 48px;
}

.nx-sp--admin .nx-sp__plaque {
  width: var(--nx-sp-w);
}

/* Legacy «Sponsored by» text row (tickets with a sponsor member only). */
.nx-ev-single .nx-ev-pass__sponsor {
  align-items: baseline;
  color: #0c1232;
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 6px;
  line-height: 20px;
  margin: 0;
}

.nx-ev-single .nx-ev-pass__sponsor span {
  color: #373c57;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nx-ev-single .nx-ev-pass__sponsor a {
  color: #0c1232;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1100px) {
  .nx-sp--hero {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .nx-sp--checkout {
    --nx-sp-h: 50px;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .nx-sp--checkout .nx-sp__plaque {
    width: min(var(--nx-sp-w), calc((100% - 2 * var(--nx-sp-gap)) / 3));
  }

  .nx-sp--checkout .nx-sp__list {
    width: 100%;
  }

  .nx-sp.nx-sp--checkout .nx-sp__empty {
    height: auto;
    min-height: 40px;
    padding-block: 10px;
    width: 100%;
  }

  .nx-sp--hero {
    --nx-sp-h: 52px;
    gap: 10px 12px;
    margin-top: 16px;
  }

  .nx-sp--hero .nx-sp__label {
    font-size: 10px;
    line-height: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nx-sp--hero .nx-sp__plaque {
    transition: none;
  }

  .nx-sp--hero a.nx-sp__plaque:hover {
    transform: none;
  }
}
