/* Hover peek card for KST nodes (js/lib/kst-peek.js). Body-mounted, so fixed.
   The list and tag rules also style the kst.html detail panel (.kst-detail). */

.kst-peek {
  position: fixed;
  /* Above page chrome (combo panels, tooltips), below modal overlays. */
  z-index: 30;
  width: 280px;
  max-width: calc(100vw - 16px);
  max-height: 320px;
  overflow: hidden;
  background: color-mix(in srgb, var(--card) 94%, transparent);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-stamp-sm);
  pointer-events: auto;
  color: var(--ink);
  cursor: auto;
  user-select: text;
  -webkit-user-select: text;
}

.kst-peek-body {
  max-height: inherit;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.75rem 0.85rem;
}

.kst-peek[hidden] {
  display: none !important;
}

.kst-peek-id {
  font-family: ui-monospace, monospace;
  font-size: var(--fs-caption);
  color: var(--ink-muted);
  letter-spacing: 0.06em;
}

.kst-peek-title {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.35;
  margin: 0.25rem 0 0.45rem;
  color: var(--ink);
}

.kst-peek-desc {
  font-size: var(--fs-label);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 0.55rem;
}

.kst-peek h4 {
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin: 0.55rem 0 0.3rem;
  font-weight: 800;
}

.kst-peek ul,
.kst-detail ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.kst-peek li {
  font-size: var(--fs-label);
  line-height: 1.4;
  color: var(--ink-soft);
  padding: 0.28rem 0 0.28rem 0.85rem;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.kst-peek li::before,
.kst-detail li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--ink-muted);
}

.kst-peek-tag,
.kst-badge {
  display: inline-block;
  font-size: var(--fs-caption);
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: var(--r-full);
  background: var(--paper-deep);
  color: var(--ink-soft);
  margin: 0 0.3rem 0.3rem 0;
  letter-spacing: 0.02em;
}
