/* Component: prose — editor content of items/pages (live: .element-textarea). Inline styles from the editor win. */

.hg-prose,
.hg-prose * {
	font-size: var(--hg-fs-base);
	line-height: var(--hg-lh-article);
	color: var(--hg-text-article);
}

/* Live forces Roboto on these elements over editor inline font-family (spans/fonts keep theirs). */
.hg-prose :is(a, b, div, h1, h2, h3, h4, h5, h6, li, p, strong, ul) {
	font-family: var(--hg-font) !important;
}

.hg-prose p,
.hg-prose ul,
.hg-prose ol,
.hg-prose blockquote,
.hg-prose figure,
.hg-prose pre {
	margin: 0 0 10px;
}

.hg-prose * + p,
.hg-prose * + ul,
.hg-prose * + ol,
.hg-prose * + blockquote,
.hg-prose * + figure,
.hg-prose * + pre {
	margin-top: 10px;
}

.hg-prose > :last-child {
	margin-bottom: 0;
}

.hg-prose ul,
.hg-prose ol {
	padding-left: 30px;
}

.hg-prose :is(ol, ul) :is(ol, ul) {
	margin-bottom: 0;
}

.hg-prose li > ul,
.hg-prose li > ol {
	margin: 0;
}

.hg-prose strong,
.hg-prose b {
	font-weight: var(--hg-fw-bold);
}

.hg-prose a {
	font-weight: var(--hg-fw-bold);
	color: var(--hg-green);
	text-decoration: underline;
}

.hg-prose a:hover,
.hg-prose a:focus {
	color: var(--hg-link-hover);
}

.hg-prose table {
	max-width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
	background-color: transparent;
}

/* Live: body.news li.element.element-textarea img — in the «Νέα» sections (body class of the primary category) the
   images of the text are at most 300px wide. */
body.news .hg-item .hg-prose.hg-prose--item img,
.hg-prose--news img {
	width: 100%;
	max-width: 300px;
	height: auto;
}

/* WordPress classes in the article text (imported into Joomla from an older WordPress site); live custom.css applies
   them globally, here only inside the text. .size-medium: full width (bug-for-bug, the 300×225 images are stretched). */
.hg-prose .alignleft {
	display: block;
	float: left;
	margin-right: 30px;
}

.hg-prose .alignright {
	display: block;
	float: right;
	margin-left: 30px;
}

.hg-prose .aligncenter {
	display: block;
	margin-right: auto;
	margin-left: auto;
}

.hg-prose .size-medium {
	width: 100%;
	margin: 50px 0;
}

/* Live: the text of an item is an <li> of a UIkit list (ul.uk-list > li.element-textarea). Lists inside it are
   therefore nested lists: «.uk-list ul» (no margin, 20px, circle) and «ul > li > ol» (no margin). */
.hg-prose.hg-prose--item ul {
	margin: 0;
	padding-left: 20px;
	list-style: circle;
}

.hg-prose.hg-prose--item > ol {
	margin: 0;
}
