/* Lead journeys on leads.html: the "Before they enquired" drawer and the
   "Top pages read before an enquiry" card. Drawer geometry follows
   personnel-log.css so the two feel the same. */

#leads-table tr[data-quote-id] { cursor: pointer; }
#leads-table tr[data-quote-id]:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }

.lj-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); display: none; z-index: 999; }
.lj-overlay.open { display: block; }
.lj-drawer {
  position: fixed; top: 0; right: 0;
  width: min(440px, 92vw); height: 100vh; height: 100dvh;
  background: var(--bg-card); border-left: 1px solid var(--border);
  box-shadow: -8px 0 24px rgba(0,0,0,0.15);
  display: none; flex-direction: column; z-index: 1000;
}
.lj-drawer.open { display: flex; }
.lj-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.lj-title { font-weight: 800; color: var(--text-heading); }
.lj-close { background: none; border: 0; font-size: 1.5rem; line-height: 1; color: var(--text-muted); cursor: pointer; padding: 0.25rem 0.5rem; }
.lj-body { flex: 1; overflow: auto; overscroll-behavior: contain; padding: 1rem 1.25rem; font-size: 0.85rem; color: var(--text); }
.lj-lead { margin-bottom: 1rem; }
.lj-lead strong { display: block; font-size: 1rem; color: var(--text-heading); }
.lj-lead span { color: var(--text-muted); font-size: 0.8rem; }
.lj-arrival { padding: 0.6rem 0.75rem; border-radius: 10px; background: var(--bg-hover); margin-bottom: 1rem; }
.lj-steps { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }
.lj-steps li { position: relative; padding: 0 0 0.85rem 1rem; }
.lj-steps li::before { content: ""; position: absolute; left: -6px; top: 0.35rem; width: 10px; height: 10px; border-radius: 50%; background: var(--bg-card); border: 2px solid var(--blue); }
.lj-steps li.lj-final::before { background: var(--blue); }
.lj-path { display: block; font-weight: 600; word-break: break-all; }
.lj-meta { color: var(--text-muted); font-size: 0.78rem; }
.lj-empty { color: var(--text-muted); }

.lj-cover { color: var(--text-muted); font-size: 0.8rem; margin: 0 0 0.75rem; }
.lj-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 1rem; }
.lj-split h3 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin: 0 0 0.4rem; }
.lj-split ol { margin: 0; padding-left: 1.1rem; font-size: 0.82rem; }
.lj-split li { padding: 0.15rem 0; }
.lj-split li span { color: var(--text-muted); }
.lj-bar { display: inline-block; height: 6px; border-radius: 3px; background: var(--blue); vertical-align: middle; margin-right: 0.4rem; }
