/* ===== "Where this lesson fits" concept map (assets/lesson-graph.js) ===== */
.z-lg { position: relative; margin: clamp(2.5rem, 6vw, 4rem) 0 0; }
.z-lg .z-lg-title { font-size: var(--fs-h3, 1.25rem); margin: 0 0 4px; }
.z-lg-sub { color: var(--ink-3); font-size: var(--fs-small, 0.9rem); margin-top: -0.25rem; }
.z-lg-stage {
  position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(28px, 6vw, 72px);
  align-items: center; padding: 18px 16px; border: 1px solid var(--line); border-radius: var(--r-lg, 16px);
  background:
    radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 1.4px) 0 0 / 18px 18px,
    var(--surface);
  -webkit-backdrop-filter: none; backdrop-filter: none; isolation: isolate; contain: paint;
}
.z-lg-flow { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 0; }
.z-lg-edges { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.z-lg-col { position: relative; z-index: 1; min-width: 0; }
.z-lg-colhead {
  font-family: var(--mono); font-size: var(--fs-label, 0.72rem); font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px;
}
.z-lg-col--here .z-lg-colhead { color: var(--accent); }
.z-lg-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.z-lg-item { margin: 0; }
.z-lg-node {
  position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 7px 10px;
  border: 1px solid var(--line-2); border-radius: var(--r, 12px); background: var(--surface);
  color: var(--ink); font-size: 0.86rem; line-height: 1.3; text-decoration: none;
  transition: border-color var(--dur-1, .2s) var(--ease-out, ease), box-shadow var(--dur-2, .45s) var(--ease-out, ease), transform var(--dur-1, .2s) var(--ease-out, ease);
}
.z-lg-node--here { border-color: var(--accent); background: linear-gradient(180deg, var(--accent-soft), var(--surface)); }
a.z-lg-node:hover, .z-lg-node:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-lift, none); transform: translateY(-1px); }
.z-lg-node:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.z-lg-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.z-lg-col--here .z-lg-dot { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.z-lg-col--after .z-lg-dot { background: var(--pass); }
.z-lg-name { flex: 1; min-width: 0; white-space: normal; overflow-wrap: break-word; }
.z-lg-tag { flex: none; font-family: var(--mono); font-size: 0.68rem; color: var(--ink-3); }
/* state badge (icon + text, never colour alone) — used by the course home */
.z-lg-badge { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 99px; border: 1px solid var(--line-2); font-family: var(--mono); font-size: 0.66rem; color: var(--ink-2); white-space: nowrap; }
.z-lg-badge--mastered { color: var(--pass); border-color: var(--pass); }
.z-lg-badge--learning { color: var(--accent); border-color: var(--accent); }
.z-lg-badge--shaky { color: var(--shaky); border-color: var(--shaky); background: var(--shaky-soft); }
.z-lg-stage--wide { width: max-content; min-width: 100%; }
.z-lg-empty, .z-lg-more { color: var(--ink-3); font-size: 0.82rem; margin: 6px 0 0; }
.z-lg-edge { fill: none; stroke: var(--line-2); stroke-width: 1.5; transition: stroke var(--dur-1, .2s); }
.z-lg-edge.is-hot { stroke: var(--accent); stroke-width: 2; }
@media (prefers-reduced-motion: reduce) {
  .z-lg-flow { display: none; }
  .z-lg-node { transition: none; }
  a.z-lg-node:hover, .z-lg-node:focus-visible { transform: none; }
}
@media (max-width: 479.98px) {
  .z-lg-stage { display: block; padding: 12px; background: var(--glass); }
  .z-lg-edges, .z-lg-flow { display: none; }
  .z-lg-col + .z-lg-col { margin-top: 14px; }
  .z-lg-stage--wide { width: auto; min-width: 0; }
}
