/* TCP path overlay for robot-tcp-linear-vs-joint-via. Does not restyle IK figures. */
.tc-path-demo {
  margin: 0 0 1.25rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.tc-path-demo .tc-path-stage {
  position: relative;
  background: #e2e8f0;
}
.tc-path-demo .tc-path-canvas {
  display: block;
  width: 100%;
  height: auto;
}
.tc-path-demo .tc-path-plot {
  display: block;
  width: 100%;
  height: auto;
  background: #f1f5f9;
  border-top: 1px solid #cbd5e1;
}
.tc-path-demo img.tc-path-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
  cursor: pointer;
}
.tc-path-demo.is-live img.tc-path-still {
  display: none;
}
.tc-path-demo .tc-path-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  align-items: center;
  padding: 0.45rem 0.7rem;
  border-top: 1px solid #cbd5e1;
  background: #f8fafc;
}
.tc-path-demo .tc-path-bar button {
  font: inherit;
  font-size: 0.9rem;
  padding: 0.25rem 0.7rem;
  border: 1px solid #94a3b8;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
}
.tc-path-demo .tc-path-bar button[aria-pressed="true"] {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}
.tc-path-demo .tc-path-bar button:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
.tc-path-demo .tc-path-hint {
  margin-left: auto;
  font-size: 0.82rem;
  color: #64748b;
}
.tc-path-demo figcaption {
  padding: 0.55rem 0.75rem 0.7rem;
  font-size: 0.92rem;
  color: #334155;
}
.tc-path-demo .tc-path-play-hit {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.08);
  cursor: pointer;
  color: #0f172a;
  font: inherit;
  font-weight: 650;
}
.tc-path-demo.is-live .tc-path-play-hit {
  display: none;
}
.tc-path-demo .tc-path-play-hit span {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #0f172a;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.15);
}
