/* Содержимое статьи и её предварительный просмотр используют одно оформление. */
.docs-article-content {
	min-width: 0;
	overflow-wrap: break-word;
}

.docs-article-content .alert {
	margin: 1.5rem 0;
	padding: 1.25rem 1.5rem;
	border: 1px solid #dce5ed;
	border-left: 4px solid #7995ac;
	border-radius: .5rem;
	background: #f4f8fb;
	color: #344553;
	box-shadow: none;
}

.docs-article-content .alert-warning {
	border-color: #efdfbd;
	border-left-color: #ba842c;
	background: #fff8eb;
	color: #493d2a;
}

.docs-article-content .alert-success {
	border-color: #d4e5d9;
	border-left-color: #528567;
	background: #f2f8f4;
	color: #304b3b;
}

.docs-article-content .alert-danger {
	border-color: #edd3d0;
	border-left-color: #af5149;
	background: #fcf3f2;
	color: #643c37;
}

.docs-article-content .alert :is(p, li, h2, h3, h4) { color: inherit; }
.docs-article-content .alert p { margin: 0 0 .75rem; }
.docs-article-content .alert :last-child { margin-bottom: 0; }
.docs-article-content .alert a { color: inherit; text-decoration: underline; }

.docs-article-content .alert:has(> [aria-hidden="true"]:first-child + div) {
	display: grid;
	grid-template-columns: 1.25rem minmax(0, 1fr);
	gap: .75rem;
	align-items: start;
}

.docs-article-content .alert > [aria-hidden="true"]:first-child {
	font-family: Arial, sans-serif;
	font-size: 1.125rem;
	line-height: 1.6;
}

.docs-article-content .docs-table-scroll {
	max-width: 100%;
	margin: 1.25rem 0 1.75rem;
	overflow-x: auto;
	border: 1px solid #e4e1de;
	border-radius: .5rem;
	overscroll-behavior-x: contain;
}

.docs-table-scroll:focus-visible { outline: 2px solid #af2f2c; outline-offset: 3px; }

.docs-article-content table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: separate;
	border-spacing: 0;
	background: #fff;
	color: #393635;
	font-size: 1rem;
	line-height: 1.6;
}

.docs-article-content :is(th, td) {
	min-width: 9rem;
	padding: .875rem 1rem;
	border: 0;
	border-bottom: 1px solid #e9e6e3;
	text-align: left;
	vertical-align: top;
}

.docs-article-content tr > :is(th, td) + :is(th, td) { border-left: 1px solid #e9e6e3; }
.docs-article-content th { font-weight: 600; }
.docs-article-content thead th { background: #f3f1ef; color: #302d2b; }
.docs-article-content tbody th { background: #faf9f8; }
.docs-article-content tbody tr:nth-child(even) td { background: #fcfbfa; }
.docs-article-content tr:last-child > :is(th, td) { border-bottom: 0; }
.docs-article-content thead tr:last-child th { border-bottom: 1px solid #ded9d5; }
.docs-article-content :is(th, td) p { margin: 0 0 .5rem; color: inherit; }
.docs-article-content :is(th, td) > :last-child { margin-bottom: 0; }

@media (max-width: 575px) {
	.docs-article-content .alert { padding: 1rem; }
	.docs-article-content .alert:has(> [aria-hidden="true"]:first-child + div) { gap: .5rem; }
	.docs-article-content :is(th, td) { padding: .75rem; }
}

/* Акцентные цвета ссылок и иконок наследуются из css/skins/skin.css. */
.docs-category {
	--docs-text: #292929;
	--docs-muted: #6b6766;
	--docs-border: #e8e4e3;
	--docs-soft: #fcf5f4;
	color: var(--docs-text);
}

.docs-category .docs-section-title {
	margin: 0;
	color: var(--docs-text);
	font-size: 1.35rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: -.02em;
}

.docs-subcategories { margin-bottom: 2.25rem; }

.docs-category-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .75rem;
	margin-top: 1rem;
}

.docs-category .docs-category-card {
	display: flex;
	align-items: center;
	gap: .875rem;
	padding: 1rem;
	border: 1px solid var(--docs-border);
	border-radius: .5rem;
	background: #fff;
	text-decoration: none;
	transition: border-color .15s, background-color .15s;
}

.docs-category .docs-category-card:hover {
	border-color: currentColor;
	background: var(--docs-soft);
}

.docs-category-icon,
.docs-article-preview {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: .5rem;
	background: var(--docs-soft);
	color: inherit;
	font-size: 1.125rem;
}

.docs-category-card-body { flex: 1; min-width: 0; }
.docs-category-title,
.docs-category-count { display: block; line-height: 1.5; }

.docs-category-title {
	color: var(--docs-text);
	font-weight: 600;
	overflow-wrap: anywhere;
}

.docs-category-card:hover .docs-category-title { color: inherit; }
.docs-category-count { margin-top: .125rem; color: var(--docs-muted); font-size: .8125rem; }

.docs-category-arrow,
.docs-article-arrow { flex: 0 0 auto; color: #a49c9a; font-size: .875rem; }

.docs-articles { scroll-margin-top: 140px; }

.docs-articles-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: .5rem 1rem;
	margin-bottom: 1.5rem;
}

.docs-count {
	display: inline-block;
	margin-left: .3rem;
	padding: .15rem .55rem;
	border-radius: 1rem;
	background: #f3f1f0;
	color: var(--docs-muted);
	font-size: .8125rem;
	font-weight: 600;
	vertical-align: middle;
}

.docs-category .docs-results-range { margin: 0; color: var(--docs-muted); font-size: .8125rem; }
.docs-article-group + .docs-article-group { margin-top: 2rem; }

.docs-category .docs-group-title {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: .25rem .5rem;
	margin: 0 0 .375rem;
	color: var(--docs-text);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: 0;
	text-transform: none;
}

.docs-path-separator { color: #b4adaa; }
.docs-group-count,
.docs-group-continuation { color: var(--docs-muted); font-size: .75rem; font-weight: 400; }
.docs-group-continuation { font-style: italic; }

.blog-posts .docs-category article.docs-article {
	margin: 0;
	padding: 0;
	border: 0;
	border-bottom: 1px solid var(--docs-border);
}

.docs-category .docs-article-link {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	padding: 1.125rem .5rem;
	border-radius: .375rem;
	text-decoration: none;
	transition: background-color .15s;
}

.docs-category .docs-article-link:hover { background: var(--docs-soft); }
.docs-category a:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

.docs-article-preview {
	width: 3rem;
	height: 3rem;
	margin-top: .125rem;
}

.docs-article-preview img { width: 100%; height: 100%; border-radius: inherit; object-fit: contain; }
.docs-article-body { flex: 1; min-width: 0; overflow-wrap: anywhere; }

.docs-category .docs-article-title {
	margin: 0 0 .35rem;
	color: inherit;
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0;
	text-transform: none;
}

.docs-category .docs-article-excerpt {
	margin: 0;
	color: var(--docs-muted);
	font-size: .875rem;
	line-height: 1.65;
}

.docs-article-arrow { margin-top: .5rem; }
.docs-article-link:hover .docs-article-arrow,
.docs-category-card:hover .docs-category-arrow { color: inherit; }

.docs-pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 1.75rem;
}

.docs-pagination-summary { color: var(--docs-muted); font-size: .8125rem; }

.blog-posts .docs-category .pagination {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem;
	margin: 0;
}

.docs-pagination .page-link { min-width: 2rem; padding: .5rem; border-radius: .25rem; text-align: center; }
.docs-category .pagination .page-item.active .page-link { color: #fff; }
.docs-category .pagination .page-item.disabled .page-link { color: var(--docs-muted); }
.docs-category .pagination a.page-link:focus-visible { box-shadow: none; }

.docs-empty {
	padding: 2.5rem 1.5rem;
	border: 1px dashed var(--docs-border);
	border-radius: .5rem;
	text-align: center;
}

.docs-empty > i { margin-bottom: 1rem; color: var(--docs-muted); font-size: 2rem; }

.docs-category .docs-empty h3 {
	margin: 0 0 .5rem;
	color: var(--docs-text);
	font-size: 1.125rem;
	letter-spacing: 0;
	text-transform: none;
}

.docs-category .docs-empty p { margin: 0; color: var(--docs-muted); }

@media (max-width: 575px) {
	.docs-category-grid { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
	.docs-category .docs-category-card { padding: .875rem; }
	.docs-category .docs-article-link { gap: .75rem; padding: 1rem 0; }
	.docs-article-preview { width: 2.25rem; height: 2.25rem; font-size: 1rem; }
	.docs-article-arrow { display: none; }
	.blog-posts .docs-category .pagination { gap: .125rem; }
	.docs-pagination .page-link { min-width: 1.875rem; padding: .5rem .375rem; }
}

@media (prefers-reduced-motion: reduce) {
	.docs-category .docs-category-card,
	.docs-category .docs-article-link { transition: none; }
}


/* Навигация: отдельная стрелка раскрытия, название открывает категорию. */
.docs-nav-list { display: block; list-style: none; margin: 0; padding: 0; color: #625e5d; }
.docs-nav-item { margin: 0; padding: 0; }
.docs-nav-list.nav > .docs-nav-item { margin-bottom: 3px; }
.docs-nav-list.nav > .docs-nav-item > .docs-nav-branch > summary,
.docs-nav-list.nav > .docs-nav-item > .docs-nav-leaf { border-radius: 6px; background: #f8f7f6; }
.docs-nav-list.nav > .docs-nav-item > .docs-nav-branch > summary:hover,
.docs-nav-list.nav > .docs-nav-item > .docs-nav-leaf:hover { background: #fcf0ee; }
.docs-nav-list.nav > .docs-nav-item > .docs-nav-branch > summary .docs-nav-link,
.docs-nav-list.nav > .docs-nav-item > .docs-nav-leaf .docs-nav-link { font-weight: 600; }
.docs-nav-branch > summary .docs-nav-link { font-weight: 500; }
.docs-nav-branch > summary { display: flex; align-items: center; margin: 0; padding: 0 6px 0 0; border-radius: 4px; list-style: none; cursor: pointer; }
.docs-nav-branch > summary::-webkit-details-marker { display: none; }
.docs-nav-branch > summary::marker { content: ''; }
.docs-nav-toggle { display: inline-flex; flex: 0 0 24px; align-items: center; justify-content: center; align-self: stretch; width: 24px; color: #9a7774; font-size: .75rem; }
.docs-nav-branch[open] > summary > .docs-nav-toggle i { transform: rotate(90deg); }
.docs-nav-list .docs-nav-link { display: block; flex: 1; min-width: 0; margin: 0; padding: 7px 4px 7px 0; border: 0; color: inherit; font-size: .9em; line-height: 20px; text-decoration: none; overflow-wrap: anywhere; }
.docs-nav-list .docs-nav-link::before { content: none; }
.docs-nav-list .docs-nav-branch > .docs-nav-list { padding-left: 8px; margin: 3px 0 5px 12px; border-left: 2px solid #eee8e7; }
.docs-nav-leaf { display: flex; padding-left: 24px; border-radius: 4px; }
.docs-nav-list .docs-nav-branch > summary:hover, .docs-nav-list .docs-nav-leaf:hover { background: #fcf5f4; }
.docs-nav-list .docs-nav-link[aria-current="page"] { font-weight: 700; }
.docs-nav-branch > summary:focus-visible, .docs-nav-list .docs-nav-link:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* Переход в кабинет вебинаров отделён от дерева документации. */
.docs-sidebar-extra {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid #e8e4e3;
}

.docs-webinars-link {
	display: flex;
	align-items: center;
	gap: .75rem;
	padding: .875rem;
	border: 1px solid #e8e4e3;
	border-radius: .5rem;
	background: #fcf5f4;
	color: #625e5d;
	text-decoration: none;
}

.docs-webinars-link:hover { border-color: currentColor; text-decoration: none; }
.docs-webinars-link:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.docs-webinars-icon { flex: 0 0 auto; font-size: 1.125rem; }
.docs-webinars-copy { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.docs-webinars-description { display: block; margin-top: .125rem; color: #6b6766; font-size: .75rem; line-height: 1.5; }
.docs-webinars-arrow { flex: 0 0 auto; font-size: .75rem; }
