/*
<span class="tex">T<span>e</span>X</span>
<span class="latex">L<span>a</span>T<span>e</span>X</span>
*/

/* Shared base — match the surrounding text's font and size */
.tex,
.latex,
.latexe {
  font-family: "Computer Modern", "Latin Modern", Georgia, "Times New Roman", serif;
  text-transform: uppercase; /* guards against lowercase source text */
  white-space: nowrap;       /* never break the logo across lines */
}

/* TeX: the "e" drops down and the letters tuck together */
.tex > span {
  text-transform: uppercase;
  vertical-align: -0.25em;   /* lower the E */
  margin-left: -0.1667em;    /* kern T → e */
  margin-right: -0.125em;    /* kern e → X */
}

/* LaTeX: a raised, shrunken "a", then the TeX treatment */
.latex > span:first-child {   /* the "A" */
  text-transform: uppercase;
  font-size: 0.75em;
  vertical-align: 0.25em;     /* raise it */
  margin-left: -0.36em;       /* pull it under the L's overhang */
  margin-right: -0.15em;      /* tighten toward the T */
}

.latex > span:last-child {    /* the "E" */
  text-transform: uppercase;
  vertical-align: -0.25em;
  margin-left: -0.1667em;
  margin-right: -0.125em;
}

/* LaTeX2e: a raised, shrunken "a", then the TeX treatment, then the epsilon */
.latexe > span:first-child {   /* the "A" */
  text-transform: uppercase;
  font-size: 0.75em;
  vertical-align: 0.25em;     /* raise it */
  margin-left: -0.36em;       /* pull it under the L's overhang */
  margin-right: -0.15em;      /* tighten toward the T */
}

.latexe > span:nth-child(2) {    /* the "E" */
  text-transform: uppercase;
  vertical-align: -0.25em;
  margin-left: -0.1667em;
  margin-right: -0.125em;
}

.latexe > span:last-child {    /* the "ɛ" */
  text-transform: lowercase;
  vertical-align: -0.25em;
  margin-left: -0.066em;
  margin-right: 0.066em;
}
