/* ── note-links ──
 * `[[Name]]` in the rendered markdown layer, and the caret-anchored suggestion list. */

.md-note-link {
  color: var(--accent);
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1px solid var(--accent-line);
}
.md-note-link:hover { background: var(--accent-soft); border-bottom-color: var(--accent); }

/* The suggestion list under the caret after `[[`. Fixed, so it follows the viewport rather
   than the scrolling note; z-index just under the palette (100), which it never overlaps. */
#note-link-list {
  position: fixed;
  z-index: 90;
  min-width: 180px;
  max-width: min(420px, calc(100vw - 16px));
  max-height: 260px;
  overflow-y: auto;
  padding: 4px;
  background: color-mix(in srgb, var(--bg-raised) 97%, transparent);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 0 1px var(--accent-soft);
  font-size: 0.9em;
}
#note-link-list.hidden { display: none; }
#note-link-list .nl-row {
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#note-link-list .nl-row.on { background: var(--accent-soft); color: var(--accent); }
#note-link-list .nl-empty { padding: 6px 10px; color: var(--fg-dim); }
