/* /wardley: the house page scaffold (per-tool by design — timeline/style.css
   is the reference copy) + this tool's drag affordances. */

#cmhost .cm-editor{min-height:440px}
.stage .preview{--reserve-ar:1200 / 688}   /* Strategic Field default — see workspace.css */
.method{color:var(--muted);font-size:12.5px}

/* ---- drag affordances ---- */
#preview svg g[data-drag], #preview svg g[data-drag] *{ cursor: grab; }
#preview svg [data-edit]{cursor:pointer}
/* SVG controls do not inherit a dependable browser focus ring. Keep keyboard
   location visible without adding resting chrome to the quiet Field. */
#preview svg [data-edit]:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
/* Hidden desktop affordances must be genuinely inactive. Their inert bridge
   preserves a component/add-row hover corridor without creating a clickable
   invisible menu or add action. */
#preview svg:not([data-narrow]) [data-strategic-edit-pair] [data-edit="componentmenu"],
#preview svg:not([data-narrow]) [data-strategic-add-row] [data-edit="additem"]{opacity:0;pointer-events:none}
#preview svg:not([data-narrow]) [data-strategic-edit-pair]:hover [data-edit="componentmenu"],
#preview svg:not([data-narrow]) [data-strategic-edit-pair]:focus-within [data-edit="componentmenu"],
#preview svg:not([data-narrow]) [data-strategic-add-row]:hover [data-edit="additem"],
#preview svg:not([data-narrow]) [data-strategic-add-row]:focus-within [data-edit="additem"]{opacity:1;pointer-events:auto}
#preview svg[data-narrow]{ touch-action: pan-y; }  /* Chromium honours touch-action only on the svg ROOT */
#preview svg g[data-drag].dragging{ cursor: grabbing; }
#preview svg g[data-drag].dragging .strategic-label-plane{ filter:brightness(1.04); }

@media (prefers-reduced-motion: no-preference){
  #preview svg g[data-drag]{ transition: opacity 120ms; }
}
