/* Nesign mascots. A very slow float only. It turns off for reduced motion. */
:root {
  --nm-ease: cubic-bezier(.22, .61, .36, 1);
  --nm-glow-nesi: rgba(91, 143, 208, .48);
  --nm-glow-drift: rgba(45, 212, 191, .42);
  --nm-glow-tally: rgba(234, 179, 8, .40);
  --nm-glow-pebble: rgba(167, 180, 220, .42);
  --nm-glow-harbor: rgba(167, 139, 250, .48);
  --nm-glow-glim: rgba(167, 139, 250, .36);
}

.nm {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  width: 7.25rem;
  max-width: 42%;
  border: 0;
  background: none;
  text-align: center;
}
.nm-lift, .nm-bob {
  display: block;
  width: 100%;
  line-height: 0;
}
.nm picture, .nm img {
  display: block;
  width: 100%;
  height: auto;
}

.nm-bob { animation: nm-float 8s var(--nm-ease) infinite; }

.nm-lift {
  transition: filter .35s var(--nm-ease);
}
.nm:hover .nm-lift,
.nm:focus-within .nm-lift {
  filter: drop-shadow(0 0 14px var(--nm-glow-nesi));
}
.nm-drift:hover .nm-lift, .nm-drift:focus-within .nm-lift { filter: drop-shadow(0 0 14px var(--nm-glow-drift)); }
.nm-tally:hover .nm-lift, .nm-tally:focus-within .nm-lift { filter: drop-shadow(0 0 14px var(--nm-glow-tally)); }
.nm-pebble:hover .nm-lift, .nm-pebble:focus-within .nm-lift { filter: drop-shadow(0 0 14px var(--nm-glow-pebble)); }
.nm-harbor:hover .nm-lift, .nm-harbor:focus-within .nm-lift { filter: drop-shadow(0 0 14px var(--nm-glow-harbor)); }
.nm-glim:hover .nm-lift, .nm-glim:focus-within .nm-lift { filter: drop-shadow(0 0 16px var(--nm-glow-glim)) drop-shadow(0 0 10px rgba(91, 143, 208, .28)); }

@keyframes nm-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Join Nesign and log in: centered above the form card */
.nm-join, .nm-login {
  width: 7.5rem;
  margin: 4px auto 10px;
}
#bx-page-create-account .bx-db-header,
#bx-page-login .bx-db-header,
#bx-page-privacy .bx-db-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
#bx-page-privacy .nm-legal {
  width: 6.5rem;
  margin: 2px auto 8px;
}

/* 404 and empty lists */
.nm-empty, .nm-404 {
  width: 7.25rem;
  margin: 4px auto 12px;
}
.np-404, .bx-msg-box-container, .bx-msg-box {
  text-align: center;
}
.np-404 .nm-404 + p,
.bx-msg-box .nm-empty + p,
.nm-empty-t {
  margin-top: .35rem;
}

/* Bubble map: Drift sits beside the title, not in the corner */
#nb-page .nb-hero, #nb-page .nb-strip { position: relative; overflow: visible; }
#nb-page .nm-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: .55rem;
  width: 100%;
  margin: 0 auto;
  overflow: visible;
}
#nb-page .nm-title-row h1 {
  margin: 0;
  text-align: center;
}
#nb-page .nm-title-row .nm-map {
  position: static;
  width: 4.25rem;
  max-width: none;
  margin: 0;
  flex: 0 0 auto;
  z-index: 2;
}
@media (max-width: 700px) {
  #nb-page .nm-title-row {
    flex-direction: column;
    gap: .25rem;
  }
  #nb-page .nm-title-row .nm-map {
    order: 0;
    width: 5.25rem;
    margin: 0 auto 4px;
  }
  #nb-page .nm-title-row h1 { order: 1; }
}

/* Homepage shop section and Sign in with Nesign tile */
.nf-sec-mascot {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.nm-home-shop {
  width: 6.75rem;
  margin: 0 auto 8px;
}
.nf-tile { position: relative; }
.nm-home-signin {
  width: 5.25rem;
  margin: 0 0 8px;
  align-self: center;
}
.nf-tile .nm-home-signin { margin: 0 auto 10px; }

/* Space editor panel */
.nk-panel .nm-editor {
  width: 4.5rem;
  margin: 0 8px 0 0;
  flex: 0 0 auto;
}
.nk-panel .nk-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Brand page: fill the same 1360px container as the header and homepage.
   Paragraphs keep a shorter line length; grids use the full width. */
.nbk {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  margin: 0 auto 2rem;
  padding: 1.25rem 0 2rem;
  color: var(--dn-text, #f3f6fb);
  box-sizing: border-box;
}
.nbk-hero {
  text-align: center;
  margin: 0 0 1.75rem;
}
.nbk-hero h1 {
  margin: .35rem 0 .5rem;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.nbk-hero .nbk-lead {
  margin: 0 auto;
  max-width: 40rem;
  color: var(--dn-mut, #b8c4d6);
  line-height: 1.55;
}
.nbk-hero::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 16px auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, #5b8fd0, #a78bfa);
}
.nbk-cast {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}
@media (min-width: 700px) {
  .nbk-cast { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nbk-hero h1 { font-size: 2.4rem; }
}
@media (min-width: 1100px) {
  .nbk-cast { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.nbk-cast .nm {
  width: min(9rem, 100%);
  max-width: 100%;
}
.nm-caption {
  margin-top: .55rem;
  font-size: .92rem;
  line-height: 1.35;
  color: var(--dn-mut, #b8c4d6);
}
.nm-caption strong {
  display: block;
  color: var(--dn-text, #f3f6fb);
  font-size: 1.05rem;
  font-weight: 650;
  margin-bottom: .15rem;
}
.nbk-card {
  background: rgba(30, 43, 64, .72);
  border: 1px solid var(--dn-line, #2f4260);
  border-radius: 16px;
  padding: 1.15rem 1.2rem 1.25rem;
  margin: 0 0 1.15rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .02);
}
.nbk-card h2 {
  margin: 0 0 .7rem;
  font-size: 1.2rem;
  font-weight: 700;
}
.nbk-card p, .nbk-card li { color: var(--dn-mut, #b8c4d6); line-height: 1.55; }
.nbk-card p { margin: 0 0 .7rem; }
.nbk-card p:last-child, .nbk-card ul:last-child { margin-bottom: 0; }
.nbk-card ul { margin: 0 0 .7rem; padding-left: 1.15rem; }
.nbk-card > p,
.nbk-card > ul:not(.nbk-cast):not(.nbk-swatches) { max-width: 42rem; }
.nbk-swatches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: .4rem 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) {
  .nbk-swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .nbk-swatches { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}
.nbk-swatch {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--dn-line, #2f4260);
  background: rgba(13, 21, 34, .45);
}
.nbk-chip {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 8px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, .12);
}
.nbk-swatch b { display: block; color: var(--dn-text, #f3f6fb); font-size: .88rem; }
.nbk-swatch span { display: block; font-size: .8rem; font-variant-numeric: tabular-nums; color: var(--dn-mut, #b8c4d6); }
.nbk-logo-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: .6rem 0 1rem;
}
@media (min-width: 700px) {
  .nbk-logo-row { grid-template-columns: 1fr 1fr; }
}
.nbk-logo-hold {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.nbk-logo-hold p { margin: 0; font-size: .85rem; text-align: center; }
.nbk-clear {
  /* clear space around the wordmark, about the height of the i-dot */
  padding: 12%;
  background: #0f1724;
  border-radius: 12px;
  border: 1px dashed rgba(91, 143, 208, .45);
  box-sizing: border-box;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nbk-clear img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 4.2rem;
  object-fit: contain;
}
.nbk-clear-light {
  background: #f3f6fb;
}
.nbk-do {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 700px) {
  .nbk-do { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .nbk-do { gap: 20px; }
  .nbk-do figure { padding: 20px 24px; }
  .nbk-do img { height: 3.1rem; }
}
.nbk-do figure {
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--dn-line, #2f4260);
  background: rgba(13, 21, 34, .45);
  text-align: center;
}
.nbk-do figcaption { margin-top: 8px; font-size: .88rem; color: var(--dn-mut, #b8c4d6); }
.nbk-do img {
  display: block;
  margin: 0 auto;
  height: 2.6rem;
  width: auto;
  max-width: 90%;
  object-fit: contain;
}
.nbk-dont-stretch img { transform: scaleY(1.55); transform-origin: center; }
.nbk-dont-label { color: #f0c7c7; }

@media (prefers-reduced-motion: reduce) {
  .nm-bob {
    animation: none !important;
    transform: none !important;
  }
  .nm-lift, .nm:hover .nm-lift, .nm:focus-within .nm-lift {
    transition: none !important;
    transform: none !important;
    filter: none !important;
  }
}
