/* Скрываем все блоки с ошибками mermaid*/
.talk .markdown-body pre:empty{
  display: none !important;
}

.talk .markdown-body {
  --base-font-size: 14px; /* Новый размер шрифта */
  font-size: var(--base-font-size) !important;
}

.talk .markdown-body pre>code {
	white-space: normal !important;
}

.talk .markdown-body{
	letter-spacing: normal !important;
}

.talk .markdown-body code br, 
.talk .markdown-body tt br {
	display: unset !important;
}

.talk .markdown-body p {
	padding: 2px 0 4px 0 !important;
	text-align: unset !important;
	margin-top: 10px !important;
	margin-bottom: 5px !important;
}

.talk .markdown-body li>p {
	margin-top: var(--base-size-16) !important;
}

.talk .markdown-body > p {
	text-align: justify !important;
}

.talk .markdown-body ul,
.talk .markdown-body ol{
	list-style: unset !important;
	/*list-style-position: inside; */
	margin-left: 10px !important;
}

.talk .markdown-body li>p {
	text-indent: 0 !important;
}

.talk .markdown-body ul li,
.talk .markdown-body ol li{
	padding-left: 1px !important;
}

.talk .markdown-body hr {
	font-size: unset !important;
	float: none !important;
	clear: none !important;
}

.talk .markdown-body h1,
.talk .markdown-body h2,
.talk .markdown-body h3,
.talk .markdown-body h4,
.talk .markdown-body h5,
.talk .markdown-body h6{
	float: unset !important;
	font-weight: 600 !important;
	color: #302e2d !important;
}

.horo_zn .talk .markdown-body h1,
.horo_zn .talk .markdown-body h2,
.horo_zn .talk .markdown-body h3,
.horo_zn .talk .markdown-body h4,
.horo_zn .talk .markdown-body h5,
.horo_zn .talk .markdown-body h6{
	float: unset !important;
	font-weight: 400 !important;
	color: #62260e !important;
}

.talk .markdown-body h1 {
	font-size: 1.3em !important;
	margin: 1em 0 0.5em !important;
}

.horo_zn .talk .markdown-body h1 {
	font-size: 1.2em !important;
}

.talk .markdown-body h2 {
	font-size: 1.1em !important;
	margin: 1em 0 0.5em !important;
}

.talk .markdown-body h3 {
	font-size: 1.1em !important;
	margin: 1em 0 0.5em !important;
}

.talk .markdown-body h4,
.talk .markdown-body h5,
.talk .markdown-body h6{
	font-size: 1.05em !important;
	margin: 1em 0 0.2em !important;
}

.talk .markdown-body em {
	font-style: italic !important;
}

/* Стили для таблиц в Markdown */
.talk .markdown-body table {
	border-collapse: collapse !important;
	margin: 1em 0 !important;
	font-size: 0.95em !important;
	box-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
	border-radius: 3px !important;
	overflow: hidden !important;
	margin-bottom: 10px !important;
	background-color: #f6f8fa !important;
}
.talk .markdown-body th, 
.talk .markdown-body td {
	border: 1px solid #e1e4e8 !important;
	padding: 8px 12px !important;
	text-align: left !important;
	line-height: 1.5 !important;
}
.talk .markdown-body th {
	background-color: #f6f8fa !important;
	font-weight: 600 !important;
	color: #24292e !important;
}
.talk .markdown-body tr:nth-child(even) {
	background-color: #fafbfc !important;
}
.talk .markdown-body tr:hover {
	background-color: #f0f3f6 !important;
}	
.talk .think_main .think {
	background: rgb(236 241 220);
	padding: 15px !important;
	border-radius: 10px !important;
	margin-top: 4px !important;
}	
.talk .think_main a.vb{
	background: #ecf1dc !important;
	border-radius: 5px !important;
	padding: 5px 10px !important;
	display: inline-block !important;
	cursor: pointer !important;
	border: 1px solid #d3dbb8 !important;
}
.talk .think_main a.vb:hover{
	border: 1px solid #bdc5a4 !important;
	background: #dde3ca !important;
}

.talk .markdown-body pre {
	font-size: 90% !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

.talk .markdown-body blockquote, .talk .markdown-body details, .talk .markdown-body dl, .talk .markdown-body ol, .talk .markdown-body pre, .talk .markdown-body table, .talk .markdown-body ul {
	margin-top: 5px  !important;
	margin-bottom: 8px  !important;
}

/* для диаграмм, где заголовок не вмещается*/
.talk .markdown-body pre code.language-mermaid {
  overflow-x: auto !important;
  display: block !important;
  padding: 10px !important;
  max-width: inherit !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.talk .markdown-body pre code.language-mermaid svg {
  height: auto !important;
}
.talk .markdown-body pre code.language-mermaid svg[aria-roledescription="pie"] .pieTitleText { /*просто смещаем правее текст заголовка*/
  text-anchor: middle !important;
  transform: translateX(41px) !important;
  font-size: 15px !important;
}
