/* /docs: documents rendered from the AiPBX repository (docs/*.md) by DocsService.
   The markup is plain HTML (h1-h4, p, ul/ol, table.doc-table, pre.doc-code, blockquote),
   so it is styled here instead of with the hand-written page classes. */
.docs-md h1 { font-size: 2.3rem; font-weight: 800; letter-spacing: -0.03em; color: #0f172a; margin: 0 0 18px; line-height: 1.2; }
.docs-md h2 { font-size: 1.6rem; font-weight: 800; color: #0f172a; margin: 40px 0 14px; padding-bottom: 8px; border-bottom: 1px solid #e2e8f0; scroll-margin-top: 100px; }
.docs-md h3 { font-size: 1.2rem; font-weight: 700; color: #0f172a; margin: 28px 0 10px; scroll-margin-top: 100px; }
.docs-md h4 { font-size: 1.02rem; font-weight: 700; color: #0f172a; margin: 20px 0 8px; scroll-margin-top: 100px; }
.docs-md p, .docs-md li { line-height: 1.7; color: #334155; }
.docs-md ul ul, .docs-md ol ul, .docs-md ul ol { margin: 4px 0; }
.docs-md a { color: #0284c7; text-decoration: none; }
.docs-md a:hover { text-decoration: underline; }
.docs-md code { font-family: 'JetBrains Mono', monospace; font-size: 0.86em; background: #f1f5f9; color: #0f172a; border: 1px solid #e2e8f0; border-radius: 4px; padding: 1px 5px; overflow-wrap: anywhere; }
.docs-md pre.doc-code { background: #0f172a; color: #e2e8f0; border-radius: 10px; padding: 14px 18px; overflow-x: auto; margin: 14px 0 20px; line-height: 1.55; }
.docs-md pre.doc-code code { background: transparent; border: 0; color: inherit; padding: 0; font-size: 0.84rem; overflow-wrap: normal; }
.docs-md blockquote { margin: 16px 0; padding: 10px 18px; border-left: 4px solid #0284c7; background: #f0f9ff; border-radius: 0 8px 8px 0; }
.docs-md blockquote p { margin: 6px 0; }
.docs-md hr { border: 0; border-top: 1px solid #e2e8f0; margin: 28px 0; }
.docs-md .table-responsive { overflow-x: auto; margin: 14px 0 22px; border: 1px solid #e2e8f0; border-radius: 10px; }
.docs-md table.doc-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.docs-md table.doc-table th { background: #f8fafc; color: #0f172a; text-align: left; font-weight: 700; padding: 10px 12px; border-bottom: 1px solid #e2e8f0; }
.docs-md table.doc-table td { padding: 9px 12px; border-bottom: 1px solid #f1f5f9; vertical-align: top; color: #334155; }
.docs-md table.doc-table tr:last-child td { border-bottom: 0; }
.docs-md-lang { font-size: 0.85rem; color: #64748b; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px 12px; margin: 0 0 20px; }
.docs-md-edit { margin-top: 36px; padding-top: 16px; border-top: 1px solid #e2e8f0; font-size: 0.88rem; }
.docs-md-edit a { color: #64748b; text-decoration: none; }
.docs-md-edit a:hover { color: #0284c7; }
.docs-sidebar form.sidebar-search input { width: 100%; }
/* Phones: the document first, the document list after it. */
@media (max-width: 860px) {
    .docs-layout .docs-content { order: 1; padding: 20px 4px 30px; }
    .docs-layout .docs-sidebar { order: 2; position: static; height: auto; border-right: 0; border-top: 1px solid #e2e8f0; padding: 20px 0 0; }
    .docs-md h1 { font-size: 1.8rem; }
}
