Suppose I have a circle $C$ of radius $1$, and I have a chord of this circle, of given length $l$. The chord makes a known angle $\theta$ with the tangent to the circle. I position a smaller circle $C_{R}$ of radius $R<1$ on the $\textit{midpoint}$ of the chord. Then I move the small circle by some distance $d$ $\textit{along}$ (parallel to) the chord.
For a given $R$, $l$ and $\theta$, I would like to find the maximum distance $d$ I can move $C_{R}$ by such that $C_{R}$ still stays inside the larger circle $C$: this happens when $C_{R}$ is just $\textit{tangent}$ to $C$.
How would I find this $d$ in terms of the given quantities? Any help would be appreciated!