/* Blocks that the CMS editor inserts into the article body (CM24-52). The markup is stored as the editor's
   builders write it (front/src/widgets/article-editor/blocks/build-*.ts), so the class names below are fixed
   (including the legacy `blockqouteSpecial__*` typo). Both sites use it: they share the article body
   (.post-content) and the accent colour. The same look in the editor: front/public/content.css.

   What WordPress shows for these on the old site: no such blocks exist there. «Читайте также» is a bold
   paragraph «Читайте также:» followed by a bulleted list of bold links in the accent colour, a quote is a
   plain blockquote (grey 3px line on the left), a coloured block is `p.has-background` (25px 30px padding,
   black text on the background). The blocks below follow that look. */

/* ---- «Читайте также» (.addedNews): bold label, then one link per line with a bullet */
.post-content .addedNews,
.post-content .continuation {
	margin: 0 0 var(--post-content-gaps, 1.54em);
}

.post-content .addedNews__subtitle {
	margin-bottom: 0.75em;
	font-weight: 700;
}

.post-content .addedNews__subtitle::after {
	content: ":";
}

.post-content .addedNews__list {
	margin: 0 0 0 35px;
}

.post-content .addedNews__item {
	display: list-item;
	margin-bottom: 0.44em;
	padding-left: 3px;
	list-style: disc outside;
	font-weight: 700;
	color: var(--c-main, #fa5005);
}

.post-content .addedNews__item::marker {
	color: var(--c-contrast-850, #191919);
}

.post-content .addedNews__item:hover {
	color: var(--c-contrast-850, #191919);
}

/* ---- «Продолжение темы» (.continuation): small accent label, links under an accent line */
.post-content .continuation__title {
	margin-bottom: 0.5em;
	font-size: 0.76em;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.5;
	text-transform: uppercase;
	color: var(--c-main, #fa5005);
}

.post-content .continuation__list {
	padding-left: 1.1em;
	border-left: 3px solid var(--c-main, #fa5005);
}

.post-content .continuationCard {
	display: block;
	margin-bottom: 0.44em;
	font-weight: 700;
	color: var(--c-main, #fa5005);
}

.post-content .continuationCard:last-child {
	margin-bottom: 0;
}

.post-content .continuationCard:hover {
	color: var(--c-contrast-850, #191919);
}

/* ---- Quote with the author's photo (.blockquoteSpecial): a quote line, a round photo, name, position */
.post-content .blockquoteSpecial {
	margin: calc(var(--post-content-gaps, 1.54em) + 0.3em) 0;
	padding: 0.5em 0 0.5em 1.5em;
	border-left: 3px solid var(--c-contrast-150, #ddd);
}

.post-content .blockqouteSpecial__head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 0.8em;
}

.post-content .blockqouteSpecial__head picture {
	flex: none;
	display: block;
	width: 56px;
	height: 56px;
	overflow: hidden;
	border-radius: 50%;
}

.post-content .blockqouteSpecial__head img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-content .blockqouteSpecial__name {
	font-weight: 700;
	line-height: 1.3;
}

.post-content .blockqouteSpecial__position {
	margin-top: 2px;
	font-size: 13px;
	line-height: 1.4;
	color: var(--c-contrast-450, #7d7d7d);
}

.post-content .blockquoteSpecial > p {
	margin: 0;
	font-size: 1.12em;
}

/* the link to the source: added to the page by the server when the block has data-source-url */
.post-content .blockquoteSpecial__source {
	margin: 0.8em 0 0;
	font-size: 13px;
}

/* ---- Highlighted block (.highlighted): the colour comes from style="background: …" of the block */
.post-content .highlighted {
	margin: 0 0 var(--post-content-gaps, 1.54em);
	padding: 25px 30px;
	color: #000;
}

.post-content .highlighted > :last-child {
	margin-bottom: 0;
}

/* the black variant: light text, so it can be read */
.post-content .highlighted.black,
.post-content .highlighted.black p,
.post-content .highlighted.black li,
.post-content .highlighted.black strong,
.post-content .highlighted.black a {
	color: #fff;
}

.post-content .highlighted.black a {
	text-decoration: underline;
}

@media (max-width: 540px) {
	.post-content .addedNews__list {
		margin-left: 22px;
	}

	.post-content .highlighted {
		padding: 18px 20px;
	}
}

/* ---- Photo in the text (figure with img.inline-picture): the space under it, as under a paragraph.
   The editor leaves an empty paragraph after a photo, the server removes it, so the next text would stick to
   the caption. The picture and the caption themselves: cm24-extra.css. */
.post-content figure:has(> picture > img.inline-picture) {
	margin: 0 0 var(--post-content-gaps, 1.54em);
}
