/* Documentation-specific styles, layered on top of template.css (copied from PublicSite26). */

/* ********** Page header extras ********** */
.docs-home-header {
    padding: 70px 0 60px;
}

.docs-page-header {
    text-align: left;
}

.docs-breadcrumb {
    --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.4);
    --bs-breadcrumb-item-active-color: rgba(255, 255, 255, 0.75);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.docs-breadcrumb a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.docs-breadcrumb a:hover {
    color: #fff;
}

.docs-version {
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Shown in the header when reading a version other than the current one. */
.docs-old-version {
    color: rgba(255, 255, 255, 0.8);
}

.docs-old-version a {
    color: #fff;
}

.docs-home-search {
    max-width: 640px;
}

/* ********** Home page chapter cards ********** */
.docs-chapter-number {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 0.35rem;
}

/* Show the whole chapter description (template.css caps .category-card text at ~3 lines). */
.category-card .docs-card-text {
    font-size: 0.95rem;
    max-height: none;
    overflow: visible;
}

/* ********** Sidebar page tree ********** */
.docs-sidebar {
    position: sticky;
    top: 80px; /* clear the fixed navbar */
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding-right: 0.5rem;
    font-size: 0.9rem;
}

.docs-nav details > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: baseline;
}

.docs-nav details > summary::-webkit-details-marker {
    display: none;
}

/* Chevron that turns when the chapter is open. */
.docs-nav details > summary::before {
    content: "\F285"; /* bi-chevron-right */
    font-family: "bootstrap-icons";
    font-size: 0.7rem;
    width: 1rem;
    flex-shrink: 0;
    color: #6c757d;
    transition: transform 0.15s;
}

.docs-nav details[open] > summary::before {
    transform: rotate(90deg);
}

.docs-nav > ul > li > a.docs-nav-chapter {
    margin-left: 1rem;
}

.docs-nav a {
    display: block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: #343a40;
    text-decoration: none;
}

.docs-nav a.docs-nav-chapter {
    font-weight: 600;
    flex: 1;
}

.docs-nav details ul {
    margin: 0.1rem 0 0.4rem 1rem;
    padding-left: 0.5rem;
    border-left: 1px solid #dee2e6;
}

.docs-nav a:hover {
    background-color: #f1f4f9;
    color: var(--accent);
}

.docs-nav a.active {
    background-color: #e7f0ff;
    color: var(--accent);
    font-weight: 600;
}

.docs-nav-mobile {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

.docs-nav-mobile > summary {
    font-weight: 600;
    cursor: pointer;
}

.docs-nav-mobile[open] > summary {
    margin-bottom: 0.5rem;
}

.docs-sidebar-links {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #dee2e6;
}

.docs-sidebar-links a {
    display: block;
    padding: 0.2rem 0.5rem;
    color: #495057;
    text-decoration: none;
}

.docs-sidebar-links a:hover {
    color: var(--accent);
}

/* ********** Contents page ********** */
.docs-contents {
    padding-left: 1.5rem;
}

.docs-contents > li {
    margin-bottom: 1.5rem;
}

.docs-contents > li::marker {
    font-weight: 700;
    color: var(--accent);
}

.docs-contents-chapter {
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
}

.docs-contents-sections {
    columns: 2 16rem;
    column-gap: 2rem;
    font-size: 0.95rem;
}

.docs-contents-sections li {
    break-inside: avoid;
    padding: 0.15rem 0;
}

.docs-contents-sections a {
    text-decoration: none;
}

.docs-search-version {
    flex: 0 0 auto;
    width: auto;
}

/* ********** Search results ********** */
.docs-search-results mark {
    padding: 0 0.1em;
    background-color: #fff3a3;
}

/* ********** "On this page" ********** */
.docs-toc {
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    font-size: 0.85rem;
    border-left: 1px solid #dee2e6;
    padding-left: 0.75rem;
}

.docs-toc-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
}

.docs-toc li {
    margin-bottom: 0.35rem;
}

.docs-toc a {
    color: #495057;
    text-decoration: none;
}

.docs-toc a:hover {
    color: var(--accent);
}

.docs-toc-level-5,
.docs-toc-level-6 {
    padding-left: 0.75rem;
}

.docs-prev-next a {
    max-width: 22rem;
    display: inline-block;
}

/* ********** Page body (HTML pre-rendered by the AdminDocs build tool) ********** */
.doc-content {
    font-size: 1.02rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.doc-content h2,
.doc-content h3,
.doc-content h4,
.doc-content h5 {
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    scroll-margin-top: 80px; /* keep anchored headings clear of the fixed navbar */
}

.doc-content h2 { font-size: 1.45rem; padding-bottom: 0.3rem; border-bottom: 1px solid #dee2e6; }
.doc-content h3 { font-size: 1.3rem; }
.doc-content h4 { font-size: 1.1rem; }
.doc-content h5 { font-size: 1rem; }

.doc-content > :first-child {
    margin-top: 0;
}

.doc-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    margin: 0.5rem 0;
}

/* Screenshot sizes used by the guide (same classes as the PDF). */
.doc-content img.embedded-img,
.doc-content img.embedded-crop {
    display: block;
    margin: 0.75rem auto;
}

@media (min-width: 768px) {
    .doc-content img.embedded-img { width: 60%; }
    .doc-content img.embedded-crop { width: 80%; }
}

.doc-content code {
    font-family: Consolas, "Cascadia Mono", monospace;
    font-size: 0.9em;
    color: #b02a6b;
    background-color: #f3f4f7;
    padding: 0.1em 0.35em;
    border-radius: 4px;
}

.doc-content pre {
    background-color: var(--navy-dark);
    color: #e6edf3;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.88rem;
}

.doc-content pre code {
    color: inherit;
    background: none;
    padding: 0;
    font-size: inherit;
}

.doc-content table {
    width: 100%;
    margin-bottom: 1.25rem;
    border-collapse: collapse;
    font-size: 0.95rem;
}

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

/* Table text wraps at word boundaries only; narrow screens scroll the table sideways instead of
   breaking words like "Parameter" into pieces. */
.doc-content th,
.doc-content td {
    overflow-wrap: normal;
}

@media (max-width: 767.98px) {
    .doc-content table {
        display: block;
        overflow-x: auto;
    }
}

.doc-content thead th {
    background-color: #f1f4f9;
}

.doc-content tbody tr:nth-child(even) {
    background-color: #fafbfc;
}

.doc-content blockquote {
    border-left: 4px solid var(--accent);
    background-color: #f3f7ff;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    border-radius: 0 6px 6px 0;
}

.doc-content blockquote > :last-child {
    margin-bottom: 0;
}

/* "More information" boxes linking to knowledgebase articles. */
.doc-content .FAQLink {
    margin: 1.5rem 0 1rem;
    padding: 0.75rem 1rem;
    border-left: 4px solid var(--accent);
    background-color: #f3f7ff;
    border-radius: 0 6px 6px 0;
}

.doc-content .FAQLink > :last-child {
    margin-bottom: 0;
}

.doc-content hr {
    margin: 2rem 0;
}
