/* nk-side.css -- LAND-ST2-20260831-MARKER
   THE one chat sidebar's CSS, lifted VERBATIM from chat.html's page-local
   <style id="nk-side-css"> block (PUBUX1-ST2) so /chat renders identically,
   now shared by every _chat_side.html includer (chat + home). ST2 additions
   at the bottom: disabled items, anon badge, generic non-chat page offset. */

/* PUBUX1-ST2-20260826-MARKER: THE one sidebar (T4 threads folded into the
   nk-side shape, [T] RULED; ACCTT4 block retired with its aside). Fixed
   full-height; .chat-surface offsets only while open (body.nk-side-on).
   T5 fix: closed = FULLY hidden -- never the half-open rail [T] flagged.
   Tokens with honest literal fallbacks (nika-tokens.css loaded above).
   Under 980px the open sidebar OVERLAYS (no push) -- mobile chat stays full
   width and the floating open button is the way in. */
#nk-chat-side { position: fixed; left: 0; top: 0; bottom: 0; width: 248px;
  z-index: 30; display: none; flex-direction: column; gap: 18px;
  padding: 18px 14px 22px; overflow-y: auto;
  background: var(--nk-cream-2, #f4f3ee);
  border-right: 1px solid var(--nk-border-soft, rgba(20,20,19,.07)); }
body.nk-side-on #nk-chat-side { display: flex; }
body.nk-side-on .chat-surface { margin-left: 248px; }
.nk-cs-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nk-cs-logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  color: var(--nk-ink, #141413); font-family: var(--nk-serif, 'Newsreader', Georgia, serif); font-size: 19px; }
.nk-cs-logo img { height: 38px; width: auto; max-width: 160px; display: block; mix-blend-mode: multiply; }  /* LAND-ST5-20260831-MARKER: bigger responsive logo ([T]; ~50px pattern scaled to the 248px rail) */
#nk-side-close { border: 1px solid var(--nk-border, rgba(20,20,19,.10)); background: var(--nk-card, #FCFCFB);
  color: var(--nk-muted, #6b665e); border-radius: 10px; width: 30px; height: 30px; cursor: pointer;
  font-size: 15px; line-height: 1; flex: none; }
#nk-side-close:hover { background: var(--nk-azure-soft, #e9f1f5); color: var(--nk-azure-deep, #1b4e75); }
.nk-cs-group { display: flex; flex-direction: column; gap: 2px; }
.nk-cs-threads { flex: 1 1 auto; min-height: 0; }
.nk-cs-label { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--nk-muted-soft, #9c968c); padding: 0 10px 6px; }
.nk-cs-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px;
  color: var(--nk-ink-soft, #46423b); font-size: 14.5px; font-weight: 500; text-decoration: none; }
.nk-cs-item:hover { background: var(--nk-azure-soft, #e9f1f5); color: var(--nk-azure-deep, #1b4e75); }
.nk-cs-item.is-active { background: var(--nk-azure-soft, #e9f1f5); color: var(--nk-azure-deep, #1b4e75); font-weight: 600; }
#nk-chat-side #nk-new-chat { width: 100%; text-align: left; padding: 8px 10px; margin: 0 0 6px;
  border: 1px solid var(--nk-border, rgba(20,20,19,.10)); background: var(--nk-card, #FCFCFB);
  border-radius: 10px; font: inherit; font-size: 14px; cursor: pointer; }
#nk-chat-side #nk-new-chat:hover { background: var(--nk-azure-soft, #e9f1f5); }
#nk-thread-list { list-style: none; margin: 0; padding: 0; font-size: 13px; overflow-y: auto; }
.nk-thread-row { display: flex; align-items: center; gap: 4px; padding: 5px 4px; border-radius: 6px; }
.nk-thread-row:hover { background: var(--nk-azure-soft, #e9f1f5); }
.nk-thread-title { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; text-decoration: none; color: inherit; }
.nk-thread-act { flex: 0 0 auto; border: 0; background: none; cursor: pointer;
  opacity: .55; font-size: 12px; }
.nk-thread-act:hover { opacity: 1; }
.nk-cs-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.nk-cs-acct { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px;
  background: var(--nk-card, #FCFCFB); border: 1px solid var(--nk-border, rgba(20,20,19,.10));
  color: var(--nk-ink, #141413); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.nk-cs-acct:hover { border-color: var(--nk-azure, #75a3bd); }
.nk-cs-avatar { width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: var(--nk-azure-soft, #e9f1f5); color: var(--nk-azure-deep, #1b4e75);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.nk-cs-cta { display: block; text-align: center; padding: 9px 12px; border-radius: 999px;
  background: var(--nk-azure-deep, #1b4e75); color: #fff; text-decoration: none;
  font-size: 13.5px; font-weight: 600; }
#nk-side-open { position: fixed; top: 12px; left: 12px; z-index: 31; display: none;
  width: 34px; height: 34px; border: 1px solid var(--nk-border, rgba(20,20,19,.10));
  background: var(--nk-card, #FCFCFB); color: var(--nk-muted, #6b665e); border-radius: 10px;
  cursor: pointer; font-size: 16px; align-items: center; justify-content: center; }
#nk-side-open:hover { background: var(--nk-azure-soft, #e9f1f5); color: var(--nk-azure-deep, #1b4e75); }
@media (max-width: 980px) {
  body.nk-side-on .chat-surface { margin-left: 0; }  /* overlay, not push */
}

/* ---- LAND-ST2-20260831 additions ---------------------------------------- */
/* [T] RULE (snag :113): search/products/skills GRAYED for anonymous. Grayed
   items are non-links (spans/disabled buttons) -- pointer-events off is a
   belt on those braces, never the mechanism. */
.nk-cs-item.is-disabled { opacity: .45; cursor: default; pointer-events: none; }
button.nk-cs-item.is-disabled { border: 0; background: none; font: inherit;
  text-align: left; width: 100%; }
.nk-cs-badge { display: block; font-size: 11.5px; line-height: 1.4;
  color: var(--nk-muted, #6b665e); background: var(--nk-azure-soft, #e9f1f5);
  border-radius: 8px; padding: 6px 10px; margin: 4px 0 0; }
/* Non-chat pages (home) opt into the push with main.nk-side-push. */
body.nk-side-on main.nk-side-push { margin-left: 248px; }
@media (max-width: 980px) {
  body.nk-side-on main.nk-side-push { margin-left: 0; }  /* overlay, not push */
}
/* CTA hover transition (R-5: no underlines, azure family). */
.nk-cs-cta { transition: filter .15s ease, background .15s ease; }
.nk-cs-cta:hover { filter: brightness(1.15); text-decoration: none; }
