/* Небольшой «лак», чтобы документация выглядела как документация,
   а не как случайная HTML-страница из 2007-го. */

.docs-content h1, .docs-content h2, .docs-content h3, .docs-content h4 {
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
}

.docs-content p {
  line-height: 1.6;
}

.docs-content ul, .docs-content ol {
  padding-left: 1.25rem;
}

.docs-content hr {
  margin: 1.5rem 0;
}

.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.docs-content table th, .docs-content table td {
  border: 1px solid #dee2e6;
  padding: 0.5rem;
  vertical-align: top;
}

.docs-content table thead th {
  background: #f8f9fa;
}

.docs-content pre {
  position: relative;
  padding: 1rem;
  border-radius: 0.25rem;
  background: #f6f8fa;
  overflow: auto;
}

.docs-content pre code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9rem;
}

/* Кнопка копирования для блоков кода */
.code-copy-btn {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 2;
  border: 1px solid rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.9);
  border-radius: 0.25rem;
  padding: 0.15rem 0.4rem;
  font-size: 0.8rem;
  cursor: pointer;
}

.code-copy-btn:hover {
  background: #ffffff;
}

/* Чуть компактнее sidebar */
.nav-sidebar .nav-link p {
  white-space: normal;
}

/* Ссылки-мокапы: убираем подчёркивание, оставляем аккуратный вид */
.docs-content a code {
  color: inherit;
}

/* TOC */
#pageToc .nav-link {
  font-size: 0.9rem;
}

/* Ссылка внутри заголовка секции в sidebar */
.nav-section-link {
  color: inherit;
  text-decoration: none;
}
.nav-section-link:hover {
  color: inherit;
  text-decoration: none;
}
