/* Inline formula sits with the surrounding text. A paragraph marked
   glyphwell-line is the Enter break from the editor. */

.glyphwell-flow > p:not(.glyphwell-line) {
	clear: none;
	display: inline;
	float: none;
	margin: 0;
	max-width: none;
	min-height: 0;
	padding: 0;
	vertical-align: middle;
	white-space: normal;
	width: auto;
}

.glyphwell-flow > p:not(.glyphwell-line):empty,
.glyphwell-flow > p:not(.glyphwell-line):has(> br:only-child) {
	display: none;
}

.glyphwell-flow > p.glyphwell-line {
	clear: none;
	display: block;
	float: none;
	margin: 0;
	min-height: 1.75em;
	white-space: normal;
	width: auto;
}

.glyphwell-flow > figure.glyphwell-equation.alignnone {
	box-sizing: content-box;
	clear: none;
	display: inline-block;
	float: none;
	height: auto;
	line-height: 1;
	margin: 0 0.12em;
	max-width: none;
	min-width: 0;
	overflow: visible;
	padding: 0;
	vertical-align: middle;
	white-space: nowrap;
	width: auto;
}

.glyphwell-flow > figure.glyphwell-equation.alignnone .glyphwell__mathml,
.glyphwell-flow > figure.glyphwell-equation.alignnone .katex-display,
.glyphwell-flow > figure.glyphwell-equation.alignnone .katex-display > .katex,
.glyphwell-flow > figure.glyphwell-equation.alignnone .katex-display > .katex > .katex-html {
	display: inline-block;
	margin: 0;
	max-width: none;
	padding: 0;
	text-align: initial;
	vertical-align: middle;
	white-space: nowrap;
	width: auto;
}
