Let $\langle X,\tau,\le\rangle$ be a LOTS.
If A and B are nonempty subsets of $X$, $A \lt B$ shall mean that $a \lt b$ for each $a \in A$ and $b \in B$. When this relation holds, every point in $B$ is an upper bound for the set $A$, and, every point in $A$ is a lower bound for the set $B$.
Theorem 1: For $A \lt B$ there exist open sets $R_A$ and $R_B$ such that
$\quad A \subset R_A$
$\quad B \subset R_B$
$\quad R_A \lt R_B$
IF AND ONLY IF
$\quad$If $A$ has no greatest element and $B$ has a least element $b$, then
$\quad$point $b$ can't be the supremum of the set $A$
$\quad$and
$\quad$If $B$ has no least element and $A$ has a greatest element $a$, then
$\quad$point $a$ can't be the infimum of the set $B$
Proof:
The necessity is straightforward. The sufficiency is also straightforward when you can 'use' the premises. But you also must construct $R_A$ and $R_B$ for the two other cases:
$A$ has a maximum AND $B$ has a minimum
$A$ has no maximum AND $B$ has no minimum
But each of these case are also easy to handle. QED
Now let $A$ and $B$ be two nonempty disjoint subsets of $X$. Let $C$ be the disjoint union, so that we have a natural mapping
$\iota: C \to \{0,1\}$
sending elements of $A$ to $0$ and elements of $B$ to $1$.
We define an equivalence relation on $A$ with $a_0 \equiv a_1$ if the closed interval $[a_0,a_1] \cup [a_1,a_0]$ in $X$ has an empty intersection with $B$. The same logic would give us an equivalence relation on $B$, and this gives us a partition of the set $C$ itself, with the surjective mapping
$\pi: C \to \hat C$
$\rho \mapsto \bar \rho$
The function $\iota: \hat C \to \Bbb Z_2$ is also defined here.
Proposition 2: The ordering on $X$ defines an ordering on $\hat C$.
In general, $\hat C$ can have a maximum or a minimum point, but in the remainder of this section we impose the following constraint:
$\tag 1 \hat C \text { has no maximum point or minimum point}$
Proposition 3: The successor function $\sigma$ is an order preserving automorphism of $\hat C$ satisfying
$\quad \iota(\sigma(\bar \rho)) = \iota(\bar \rho) + 1$.
Proof Sketch: First show that $\sigma$ is well defined, etc..
For each $\bar \rho$, define
$H_{\bar \rho} = \{c \in C \; | \, \iota(c) = \iota(\bar \rho) \text{ and }c \le \rho \text { for all } \rho \in \bar \rho \}$
and
$K_{\bar \rho} = \{c \in C \; | \, \iota(c) = \iota(\bar \rho) + 1 \text{ and }c \ge \rho \text { for all } \rho \in \sigma (\bar \rho) \}$
When $H_{\bar \rho} \lt K_{\bar \rho}$ in $X$ are separated as described by Theorem 1, we can assign the disjoint open supersets
$R_{H_{\bar \rho}}$ and $R_{K_{\bar \rho}}$
Proposition 4: The intersection
$R_{K_{\bar \rho}} \bigcap R_{H_{\sigma(\bar \rho)}}$
meets exactly one of the sets $A$ or $B$.
So we define the 'even(=$A$)/odd(=$B$)' open sets
$U^0_{\bar \rho} = R_{K_{\bar \rho}} \bigcap R_{H_{\sigma(\bar \rho)}}$ superscript $0$ means it covers part of $A$
or
$U^1_{\bar \rho} = R_{K_{\bar \rho}} \bigcap R_{H_{\sigma(\bar \rho)}}$ superscript $1$ means it covers part of $B$
Theorem 5: If $A$ and $B$ are separated sets in $X$ there exist disjoint open supersets
$\quad A \subset U^0$
$\quad B \subset U^1$
Proof: Exercise.
The reader can prove Theorem 5 with the constraint (1) removed. A simple argument can handle the case when one of the sets $A$ or $B$ is all that remains as we move along $X$ to the $\pm \infty$ tails.