/* Documentation pages (pageType DOCUMENTATION, DOCUMENTATION_CATEGORY).
   Uses the site's variables from style.css: --text-color, --active-color, --site-width. */

.docs-page { color: var(--text-color); }

/* ---------- header ---------- */
.docs-hero { padding: 36px 0 30px; background: linear-gradient(to bottom, #fff 0, #fff 25%, #eee 100%); border-bottom: 1px solid #e8e8e8; }
.docs-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; font-size: 15px; font-weight: 500; }
.docs-breadcrumb a { color: var(--text-color); text-decoration: underline; text-underline-offset: 2px; }
.docs-breadcrumb a:hover, .docs-breadcrumb a:focus-visible { color: var(--active-color); }
.docs-hero h1 { margin: 0; font-size: clamp(30px, 4.5vw, 44px); font-weight: 700; line-height: 1.05; }
.docs-lead { max-width: 760px; margin: 14px 0 0; font-size: 19px; line-height: 1.4; }
.docs-empty { padding: 40px 0; }

/* ---------- layout: contents + text ---------- */
.docs-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 48px; padding-top: 40px; padding-bottom: 56px; }
.docs-layout + .docs-layout { border-top: 1px solid #e8e8e8; }
.docs-toc { position: sticky; top: 20px; align-self: start; max-height: calc(100vh - 40px); overflow: auto; font-size: 15px; }
.docs-toc__title { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.docs-toc ul { margin: 0; padding: 0; list-style: none; border-left: 2px solid #e8e8e8; }
.docs-toc__item a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--text-color); text-decoration: none; line-height: 1.3; }
.docs-toc__item--1 a { padding-left: 28px; font-size: 14px; }
.docs-toc__item a:hover, .docs-toc__item a:focus-visible { color: var(--active-color); border-left-color: var(--active-color); }

@media (max-width: 991.98px) {
    .docs-layout { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
    .docs-toc { position: static; max-height: none; padding-bottom: 18px; border-bottom: 1px solid #e8e8e8; }
}

/* ---------- content ---------- */
.docs-content { max-width: 860px; font-size: 17px; line-height: 1.6; }
.docs-doc-title { margin: 0 0 28px; font-size: 32px; font-weight: 700; }
.docs-content h2, .docs-content h3, .docs-content h4, .docs-content h5, .docs-content h6 { scroll-margin-top: 20px; color: var(--text-color); font-weight: 700; line-height: 1.2; }
.docs-content h2 { margin: 44px 0 16px; padding-bottom: 10px; border-bottom: 1px solid #e8e8e8; font-size: 30px; }
.docs-content .docs-section:first-child > h2:first-child { margin-top: 0; }
.docs-content h3 { margin: 32px 0 12px; font-size: 23px; }
.docs-content h4 { margin: 26px 0 10px; font-size: 19px; }
.docs-content h5, .docs-content h6 { margin: 22px 0 8px; font-size: 17px; }
.docs-content p { margin: 0 0 14px; }
.docs-content ul, .docs-content ol { margin: 0 0 16px; padding-left: 26px; }
.docs-content li { margin-bottom: 6px; }
.docs-content li > ul, .docs-content li > ol { margin: 6px 0 0; }
.docs-content a { color: var(--active-color); text-underline-offset: 2px; }
.docs-content code { padding: 1px 6px; border-radius: 4px; background: #f1f1f1; color: #333; font-size: .9em; }

.docs-code { margin: 0 0 18px; padding: 14px 18px; overflow: auto; border: 1px solid #e1e1e1; border-radius: 8px; background: #f6f6f6; line-height: 1.5; }
.docs-code code { padding: 0; background: transparent; font-size: 15px; white-space: pre; }

.docs-content .table-responsive { margin: 0 0 20px; }
.docs-table { width: 100%; margin: 0; font-size: 16px; --bs-table-bg: transparent; }
.docs-table th, .docs-table td { padding: 10px 14px; border: 1px solid #dcdcdc; vertical-align: top; }
.docs-table thead th { background: #f1f1f1; font-weight: 700; white-space: nowrap; }
.docs-table td code { white-space: nowrap; }

.docs-callout { margin: 0 0 20px; padding: 14px 20px; border-left: 4px solid var(--active-color); border-radius: 0 8px 8px 0; background: #f6f6f6; }
.docs-callout > :last-child { margin-bottom: 0; }
.docs-callout__title { margin-bottom: 6px !important; font-weight: 700; }

.docs-img { display: block; max-width: 100%; height: auto; margin: 0 0 18px; border-radius: 8px; }
.docs-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.docs-badge { padding: 3px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; }

/* ---------- FAQ ---------- */
.docs-faq { margin: 0 0 24px; border: 1px solid #dcdcdc; border-radius: 8px; overflow: hidden; }
.docs-faq__item + .docs-faq__item { border-top: 1px solid #dcdcdc; }
.docs-faq__item summary { padding: 14px 20px; cursor: pointer; font-weight: 600; list-style: none; }
.docs-faq__item summary::-webkit-details-marker { display: none; }
.docs-faq__item summary::after { content: "+"; float: right; font-size: 22px; line-height: 1; }
.docs-faq__item[open] summary::after { content: "\2212"; }
.docs-faq__item summary:hover, .docs-faq__item summary:focus-visible { color: var(--active-color); }
.docs-faq__answer { padding: 0 20px 6px; }
