/**
 * Stazora Brokers Visual: hub with lines (inc/brokers-visual.php loads it on the article only).
 * Dimensions follow the Magic UI AnimatedBeam demo: 300 px stage, 40 px padding, 512 px wide grid, 40 px row gap,
 * 48 px nodes with 2 px border, 64 px centre. Node labels are absolute so they never change that geometry.
 */
.stz-bhub-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  padding: 40px;
  box-sizing: border-box;
  overflow: hidden;
}

.stz-bhub-grid {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  max-width: 512px;
}

.stz-bhub-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.stz-bhub-cell {
  position: relative;
  display: flex;
  justify-content: center;
}

.stz-bhub-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  padding: 12px;
  border-radius: 50%;
  border: 2px solid var(--stz-hairline);
  background: var(--stz-surface);
  color: var(--stz-text);
  box-shadow: var(--stz-shadow-raised);
  cursor: pointer;
  transition: border-color 200ms ease;
}

.stz-bhub-center {
  width: 64px;
  height: 64px;
  cursor: default;
}

.stz-bhub-node:hover {
  border-color: var(--stz-hairline-hover);
}

.stz-bhub-node:focus-visible {
  outline: 3px solid var(--stz-focus);
  outline-offset: 3px;
}

.stz-bhub-node.is-selected {
  border-color: var(--stz-cta);
  color: var(--stz-cta);
}

.stz-bhub-icon {
  display: inline-flex;
}

.stz-bhub-label {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  padding: 0 4px;
  background: var(--stz-surface);
  font-size: var(--stz-fs-footnote);
  font-weight: 600;
  line-height: 1.3;
  color: var(--stz-text-2);
  white-space: nowrap;
  pointer-events: none;
}

.stz-bhub-label.is-above {
  top: auto;
  bottom: calc(100% + 4px);
}

.stz-bhub-beam {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  pointer-events: none;
}

.stz-bhub-path {
  fill: none;
  stroke: var(--stz-hairline);
  stroke-width: 2;
  stroke-opacity: 0.2;
  stroke-linecap: round;
}
