/* Demo 2 — Neuron strip styles.

   Layout space (.neuron-strip padding, #strip width) is reserved in
   css/style.css so the page doesn't reflow when this module loads.
   Here we style the per-neuron dots, the focus ring, the empty-state
   caption, and the absolutely-positioned hover tooltip. */

#strip {
  cursor: default;
  outline: none;
}

#strip:focus-visible {
  outline: 1px dashed var(--axis);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- dots ---------------------------------------------------------------- */

.neuron-dot {
  cursor: pointer;
  fill-opacity: 0.85;
  stroke: transparent;
  stroke-width: 0;
}

.neuron-dot.fires-right { fill: var(--fires-right); }
.neuron-dot.fires-left  { fill: var(--fires-left); }

.neuron-dot:hover {
  fill-opacity: 1;
}

/* Out-of-window kinks: pinned to the strip edges, faded. */
.neuron-dot.out-of-view {
  fill-opacity: 0.4;
}

/* Focused neuron: thin ring in the reserved focus colour. */
.neuron-dot.focused {
  stroke: var(--focus);
  stroke-width: 2;
  fill-opacity: 1;
}

/* Firing at hovered x: thinner ring in the fit colour, no fill swap. */
.neuron-dot.firing {
  stroke: var(--fit);
  stroke-width: 1.6;
  fill-opacity: 1;
}

/* ---- empty-state caption ------------------------------------------------- */

.strip-empty-caption {
  fill: var(--ink-secondary);
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-style: italic;
  font-size: 13px;
  opacity: 0.7;
  pointer-events: none;
}

/* ---- tooltip ------------------------------------------------------------- */

.strip-tooltip {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  pointer-events: none;
  background: var(--card-bg);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 6px 9px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);

  font-family: "SF Mono", Menlo, monospace;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
  white-space: nowrap;
}

/* The first line ("Neuron N") gets a subtle hierarchy without losing the
   monospaced numeric alignment of the parameter rows. */
.strip-tooltip {
  letter-spacing: 0.01em;
}
