/* Shared look for ordinary Nesign pages. Switched on by the body class "np". Only opacity and transform animate. */

/* background: soft glows and a faint grid behind the content */
html:not(.nk-x) body.np .ns-main {
  position: relative; isolation: isolate; overflow-x: clip;
  background-image:
    radial-gradient(60% 420px at 6% 0, rgba(91,143,208,.20), rgba(91,143,208,0) 72%),
    radial-gradient(46% 380px at 98% 6%, rgba(167,139,250,.13), rgba(167,139,250,0) 72%),
    linear-gradient(rgba(122,166,220,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122,166,220,.045) 1px, transparent 1px),
    linear-gradient(180deg, #131d2e 0, #0f1724 520px);
  background-size: auto, auto, 56px 56px, 56px 56px, auto;
  background-repeat: no-repeat, no-repeat, repeat, repeat, no-repeat;
}
html:not(.nk-x) body.np .ns-main::before,
html:not(.nk-x) body.np .ns-main::after { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; border-radius: 50%; pointer-events: none; }
html:not(.nk-x) body.np .ns-main::before { top: 40px; left: -180px; background: radial-gradient(closest-side, rgba(91,143,208,.16), rgba(91,143,208,0)); }
html:not(.nk-x) body.np .ns-main::after { top: 320px; right: -200px; background: radial-gradient(closest-side, rgba(167,139,250,.12), rgba(167,139,250,0)); }

/* pages without a title band start a little lower */
html:not(.nk-x) body.np:not(:has(.bx-cover-wrapper)):not(:has(.bx-base-pofile-cover)):not(:has(.nh)) #bx-content-main { margin-top: 20px; }
body.np .nh-card { transition: border-color .4s ease, box-shadow .4s ease; }
body.np .nh-card:hover { border-color: rgba(143,183,238,.3); box-shadow: 0 0 30px -14px rgba(91,143,208,.5); }

/* title band: no blue wedge, a short accent line under a centered title */
body.np .bx-cover-gradient { display: none !important; }
body.np .bx-cover-wrapper.bx-cover-empty { background: none !important; }
body.np .bx-cover-wrapper.bx-cover-empty > div.relative { padding-top: 2.4rem !important; padding-bottom: 1.1rem !important; }
body.np .bx-cover-empty .bx-cover-title { flex-direction: column; align-items: center; }
body.np .bx-cover-empty .bx-cover-title > div { color: #fff; letter-spacing: -.01em; }
body.np .bx-cover-empty .bx-cover-title::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 12px; border-radius: 3px; background: linear-gradient(90deg, #5b8fd0, #a78bfa); }

/* cards */
html:not(.nk-x) body.np.bx-artificer .bx-db-container:not(:has(.bx-landing)) {
  background-color: rgba(30,43,64,.68);
  background-image: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0) 45%);
  border: 1px solid rgba(143,183,238,.16); border-radius: 18px;
  box-shadow: 0 18px 40px -28px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.04);
  transition: border-color .4s ease, box-shadow .4s ease;
}
html:not(.nk-x) body.np.bx-artificer .bx-db-container:not(:has(.bx-landing)):hover {
  border-color: rgba(143,183,238,.28);
  box-shadow: 0 18px 40px -28px rgba(0,0,0,.7), 0 0 34px -14px rgba(91,143,208,.45), inset 0 1px 0 rgba(255,255,255,.05);
}
body.np .bx-db-title .bx-dbt-ttl { letter-spacing: -.005em; }

/* the plain gray "Empty" box and similar notices */
body.np .bx-msg-box { background: rgba(30,43,64,.55) !important; color: #b8c4d6 !important; border: 1px dashed rgba(143,183,238,.32); border-radius: 14px; padding: .85rem 1.5rem !important; }
body.np .bx-msg-box a { color: #8fb7ee !important; }

/* page not found */
.np-404 { text-align: center; padding: 1.4rem .5rem 1rem; }
.np-404 p { margin: 0 0 .9rem; font-size: 1.05rem; color: #c3cfdf; }
.np-404-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* forms and buttons: soft focus glow, calm hover */
body.np input[type="text"], body.np input[type="email"], body.np input[type="password"], body.np input[type="search"], body.np input[type="url"], body.np input[type="number"], body.np select, body.np textarea {
  border-radius: 12px; transition: border-color .25s ease, box-shadow .3s ease; }
body.np input[type="text"]:focus, body.np input[type="email"]:focus, body.np input[type="password"]:focus, body.np input[type="search"]:focus, body.np input[type="url"]:focus, body.np input[type="number"]:focus, body.np select:focus, body.np textarea:focus {
  border-color: #5b8fd0 !important; box-shadow: 0 0 0 3px rgba(91,143,208,.28), 0 0 24px -6px rgba(122,166,220,.5); outline: none; }
body.np .bx-btn { border-radius: 12px; transition: box-shadow .35s ease, background-color .3s ease, border-color .3s ease, color .3s ease; }
body.np .bx-btn.bx-btn-primary:hover, body.np .bx-btn-primary:hover { box-shadow: 0 0 28px rgba(122,166,220,.5); }

/* floating section bar on module pages */
body.np.bx-artificer .bx-menu-main-bar-wrapper { border: 1px solid rgba(143,183,238,.2) !important; box-shadow: 0 16px 40px -18px rgba(0,0,0,.75), 0 0 30px -14px rgba(91,143,208,.45); }

/* footer */
body.np .ns-foot { border-top: 1px solid rgba(143,183,238,.12); margin-top: 28px; padding-top: 20px; }
body.np .ns-foot #bx-menu-footer a { transition: color .25s ease; }
body.np .ns-foot #bx-menu-footer a:hover { color: #8fb7ee; }

/* header edges line up with the page container for visitors */
@media (min-width: 1024px) {
  .ns-guest .ns-hd { padding-left: max(24px, calc((100% - 1360px) / 2 + 24px)); padding-right: max(24px, calc((100% - 1360px) / 2 + 24px)); }
}
@media (min-width: 701px) and (max-width: 1023px) { .ns-guest .ns-hd { padding-left: 16px; padding-right: 16px; } }

/* gentle arrival. Boxes stay visible by default. Do not use backwards fill,
   or a skipped animation would leave the page stuck at opacity 0. */
body.np #bx-content-main .bx-db-container { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  body.np #bx-content-main .bx-db-container { animation: np-in .55s ease; }
  html:not(.nk-x) body.np .ns-main::before { animation: np-drift 30s ease-in-out infinite alternate; }
  html:not(.nk-x) body.np .ns-main::after { animation: np-drift 36s ease-in-out -10s infinite alternate; }
}
@keyframes np-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes np-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(48px, 34px, 0); } }

/* phones: cards use the full width, symmetric */
@media (max-width: 700px) {
  body.np .bx-cover-wrapper.bx-cover-empty > div.relative { padding-top: 1.6rem !important; padding-bottom: .6rem !important; }
  html:not(.nk-x) body.np.bx-artificer .bx-db-container:not(:has(.bx-landing)) { border-radius: 16px; }
}

/* header bubble search */
.ns-sp { position: fixed; top: 60px; left: 0; right: 0; z-index: 5000; padding: 14px 12px 0; pointer-events: none; }
.ns-sp[hidden] { display: none; }
.ns-sp-box { pointer-events: auto; max-width: 620px; margin: 0 auto; padding: 14px; border-radius: 18px; background: rgba(19,29,46,.97); border: 1px solid rgba(143,183,238,.26);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.8), 0 0 40px -14px rgba(91,143,208,.5); }
.ns-sp-row { display: flex; gap: 8px; align-items: center; }
.ns-sp-in { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid #3d5578; background: #152033; color: #f3f6fb; font-size: 1rem; transition: border-color .25s ease, box-shadow .3s ease; }
.ns-sp-in:focus { border-color: #5b8fd0; box-shadow: 0 0 0 3px rgba(91,143,208,.28), 0 0 24px -6px rgba(122,166,220,.5); outline: none; }
.ns-sp-x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(143,183,238,.25); background: transparent; color: #c3cfdf; font-size: 1.4rem; line-height: 1; cursor: pointer; transition: box-shadow .3s ease, border-color .3s ease; }
.ns-sp-x:hover, .ns-sp-x:focus-visible { border-color: #8fb7ee; box-shadow: 0 0 20px -4px rgba(122,166,220,.7); outline: none; }
.ns-sp-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.ns-sp-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; color: #f3f6fb; text-decoration: none; font-weight: 600; border: 1px solid transparent; transition: background-color .25s ease, border-color .25s ease, box-shadow .3s ease; }
.ns-sp-item:hover, .ns-sp-item:focus-visible { background: rgba(43,61,89,.8); border-color: rgba(143,183,238,.3); box-shadow: 0 0 22px -8px rgba(91,143,208,.6); outline: none; }
.ns-sp-item img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; background: #26364f; }
.ns-sp-note { margin: 10px 2px 2px; font-size: .92rem; line-height: 1.5; color: #b8c4d6; }
.ns-sp-note a { color: #8fb7ee; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 700px) { .ns-sp { padding: 10px 10px 0; } .ns-sp-box { padding: 12px; } }
