/**
 * The theme that I am using (rtd) does a poor job for the equation number
 * (see https://github.com/readthedocs/sphinx_rtd_theme/issues/301 for an
 * open (as of 11-04-2022) discussion of this problem for the rtd theme).
 *
 * The following is a poor man's attempt to circumvent this issue.
 */

div.math {
   display: flex;
   align-items: center;
}
p + div.math {
   margin-top: -24px;
}
p.admonition-title + div.math {
   margin-top: 0px;
}
/**
 * Two children of div.math: I believe that equation number is possible only
 * per one displayed math, not per each line in displayed math.  (I could be
 * wrong.)
 */
div.math > .eqno {
   order: 2;
}
div.math > .MathJax {
   flex-grow: 3;
}
/**
.eqno > .headerlink {
   visibility: hidden;
}
.eqno:hover > .headerlink {
   visibility: visible;
}
 */
