/* Visual sitemap: absolutely-positioned nodes on a fixed canvas, with
   connectors drawn into an SVG overlay by sitemap.js. */

.sm-controls { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.sm-controls .wrap { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; min-height: 52px; }

.sm-viewport { overflow: auto; padding: 16px 0 32px; background:
  radial-gradient(circle, var(--line-2) 1px, transparent 1px) 0 0 / 24px 24px; }
.sm-canvas { position: relative; width: 1740px; height: 1115px; transform-origin: 0 0; }
.sm-canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.sm-canvas svg path { fill: none; stroke: var(--ink-3); stroke-width: 1.6; }
.sm-canvas svg path.dashed { stroke-dasharray: 6 5; }
.sm-canvas svg path.primary { stroke: var(--ink); stroke-width: 2.2; }
.sm-canvas svg text { font: 11px system-ui, sans-serif; fill: var(--ink-2); }
.sm-canvas svg text.primary { fill: var(--ink); font-weight: 600; }
.sm-canvas svg rect.lab { fill: var(--bg); }

.lane { position: absolute; left: 0; right: 0; border: 1px dashed var(--line); border-radius: 10px; background: rgba(255, 255, 255, .55); }
.lane > b { position: absolute; top: 8px; left: 12px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

.node { position: absolute; display: flex; flex-direction: column; justify-content: center; gap: 2px;
  border: 1.5px solid var(--ink); border-radius: 8px; background: var(--bg); padding: 8px 10px;
  text-decoration: none; color: var(--ink); box-shadow: 2px 2px 0 var(--fill); }
.node:hover { background: var(--fill-2); box-shadow: 3px 3px 0 var(--line); }
.node b { font-size: 13px; line-height: 1.25; }
.node small { font-size: 11px; color: var(--ink-2); line-height: 1.2; }
.node.soft { border-style: dashed; border-color: var(--ink-3); }
.node.start { background: var(--ink); color: #fff; }
.node.start small { color: #ddd; }

.cluster { position: absolute; border: 1.5px dashed var(--ink-3); border-radius: 10px; background: var(--bg); padding: 10px; }
.cluster > b { font-size: 12px; display: block; margin-bottom: 8px; }
.cluster .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cluster .chips a { font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; text-decoration: none; color: var(--ink); background: var(--fill-2); }
.cluster .chips a:hover { border-color: var(--ink); background: var(--bg); }

.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); align-items: center; }
.legend i { display: inline-block; width: 26px; height: 0; border-top: 2px solid var(--ink); vertical-align: middle; margin-right: 6px; }
.legend i.d { border-top: 2px dashed var(--ink-3); }

@media print {
  .wf-bar, .sm-controls, .sm-print-hide { display: none !important; }
  .sm-viewport { overflow: visible; background: none; padding: 0; }
  .sm-canvas { transform: scale(.66) !important; }
  @page { size: landscape; margin: 10mm; }
}
