I'm reading this libretexts article on the basics of transmission line theory. In it, they include this circuit diagram as a model of a uniform transmission line:
They then say that applying Kirchhoff's laws results in
$$\frac{∂v(z,t)}{∂z}=−R\cdot i(z,t)−L\cdot\frac{∂i(z,t)}{∂t}.$$
I don't quite understand how they get that though. KVL (which I assume is what they're using to get the voltage equation; they also give a separate equation for current) just says that the sum of the voltages in a circuit loop is zero. So, how would it tell us anything about the spatial derivative of $V$, as opposed to $V$ itself? It would make more sense if they just had the sum of the voltages in the first loop equal to zero and then took the derivative, w.r.t. z, of each term, but that doesn't seem to be what they're doing. They only include terms from the resistor and inductor on the top of the leftmost loop, not including the voltage of the other resistor at all, and they don't even actually take the spatial derivatives of the two voltages they do include.
So what's going on here? How does that DE for voltage correspond to that circuit diagram?