/* Beam and truss builder: drawing styles only. Colours from the site variables, so dark mode follows. */
.eb-sim .bb-slot { display: grid; gap: var(--ec-space-2); padding-top: var(--ec-space-2); border-top: 1px dashed var(--ec-color-border); }
.eb-sim [hidden] { display: none !important; } /* rows, groups, slots and figures this page hides */
.eb-sim .bb-slot-h { display: flex; justify-content: space-between; align-items: center; font-size: 0.84rem; }
.eb-sim .bb-rm { padding: 0.15rem 0.55rem; font-size: 0.78rem; }
.eb-sim .bb-beam { fill: var(--ec-color-surface); stroke: currentColor; stroke-width: 2; }
.eb-sim .bb-sup path, .eb-sim .bb-sup circle { fill: var(--ec-color-surface); stroke: currentColor; stroke-width: 1.8; }
.eb-sim .bb-sup line { stroke: currentColor; stroke-width: 2; }
.eb-sim .bb-sup .bb-hatch { stroke-width: 1.1; }
.eb-sim .bb-load { color: var(--eb-sim-2); }
.eb-sim .bb-react { color: var(--eb-sim-3); }
.eb-sim .bb-ar line, .eb-sim .bb-ar .bb-arc { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.eb-sim .bb-ar .hd { fill: currentColor; stroke: none; }
.eb-sim .bb-udl { fill: currentColor; fill-opacity: 0.1; stroke: currentColor; stroke-width: 1.4; }
.eb-sim .bb-handle { fill: var(--ec-color-surface); stroke: currentColor; stroke-width: 2; }
.eb-sim .bb-hit { fill: transparent; stroke: none; cursor: ew-resize; touch-action: none; }
.eb-sim .bb-hit:hover { fill: currentColor; fill-opacity: 0.08; }
.eb-sim .is-dragging, .eb-sim .is-dragging .bb-hit { cursor: grabbing; }
.eb-sim .bb-axis line { stroke: var(--ec-color-border-strong); stroke-width: 1.2; }
.eb-sim .bb-mem { stroke-linecap: round; }
.eb-sim .bb-mem.t { stroke: var(--eb-sim-1); }
.eb-sim .bb-mem.c { stroke: var(--ec-color-error); }
.eb-sim .bb-mem.z { stroke: var(--ec-color-text-muted); stroke-dasharray: 4 5; }
.eb-sim .bb-halo { stroke: var(--eb-sim-2); stroke-opacity: 0.45; stroke-linecap: round; }
.eb-sim .bb-hov { stroke: transparent; stroke-width: 14; }
.eb-sim .bb-m { outline: none; cursor: help; }
.eb-sim .bb-m:hover .bb-mem, .eb-sim .bb-m:focus .bb-mem { stroke-opacity: 0.7; }
.eb-sim .bb-m:focus-visible .bb-hov { stroke: var(--ec-color-focus, currentColor); stroke-opacity: 0.35; }
.eb-sim .bb-flow { stroke: var(--ec-color-surface); stroke-width: 1.6; stroke-dasharray: 3 9; pointer-events: none; }
.eb-sim .bb-joint { fill: var(--ec-color-surface); stroke: currentColor; stroke-width: 1.5; }
