/**
 * Markdown extension for phpBB.
 * @author Alfredo Ramos <alfredo.ramos@proton.me>
 * @copyright 2019 Alfredo Ramos
 * @license GPL-2.0-only
 */
.markdown:last-child {
	margin-bottom: 0;
}
.markdown li .markdown {
	margin-top: 0;
}

h6.markdown,
h5.markdown,
h4.markdown,
h3.markdown,
h2.markdown,
h1.markdown {
	font-weight: bold;
	line-height: 1;
	text-transform: none;
	border: none;
	float: none !important;
	margin: 1em 0 !important;
	padding: 0;
}
h6.markdown:first-child,
h5.markdown:first-child,
h4.markdown:first-child,
h3.markdown:first-child,
h2.markdown:first-child,
h1.markdown:first-child {
	margin-top: 0 !important;
}
h6.markdown:last-child,
h5.markdown:last-child,
h4.markdown:last-child,
h3.markdown:last-child,
h2.markdown:last-child,
h1.markdown:last-child {
	margin-bottom: 0 !important;
}

h1.markdown {
	font-size: 2em;
}

h2.markdown {
	font-size: 1.5em;
}

h3.markdown {
	font-size: 1.17em;
}

h4.markdown {
	font-size: 1em;
}

h5.markdown {
	font-size: 0.83em;
}

h6.markdown {
	font-size: 0.67em;
}

table.markdown {
	margin-top: 1em;
	margin-bottom: 1em;
}
table.markdown,
table.markdown th,
table.markdown td {
	border-width: 1px;
	border-style: solid;
}
table.markdown th,
table.markdown td {
	padding: 5px 10px;
}

.content p,
.polls p,
.poll-title p,
.forums .list-inner p,
.markdown p {
	font-size: 1em;
}

.polls p,
.forums .list-inner p {
	display: inline-block;
}

.polls p,
.poll-title p,
.forums .list-inner p,
.markdown li p {
	margin-bottom: 0;
}

.content p:last-child,
.signature p:last-child,
.markdown p:last-child {
	margin-bottom: 0;
}
