/* Documentation pages: additions to the CoderPro docs styles in assets/css/theme.css */

.docs-logo-label {
    display: inline-block;
    margin-left: 0.25rem;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    background: #f5f6fe;
    color: #4550E6;
    font-size: 0.875rem;
    font-weight: 600;
    vertical-align: middle;
}

.docs-branding .logo-icon {
    height: 32px;
    width: auto;
}

.docs-top-links .list-inline-item a {
    color: #5d6778;
    font-size: 0.875rem;
    font-weight: 500;
}

.docs-top-links .list-inline-item a:hover {
    color: #4550E6;
    text-decoration: none;
}

.docs-top-links .list-inline-item:not(:last-child) {
    margin-right: 1rem;
}

/* ---------- Sidebar ---------- */
.docs-nav .nav-link.current,
.docs-nav .nav-link.current-section {
    color: #4550E6;
    font-weight: 600;
}

.docs-nav .nav-link.current:before {
    background-color: #4550E6;
}

.docs-nav .nav-link.current-section .theme-icon-holder {
    color: #fff;
    background: #4550E6;
}

.docs-nav .docs-nav-sub .nav-link {
    padding-left: 1.75rem;
    font-size: 0.8125rem;
}

.docs-nav .nav-item .nav-link {
    display: block;
}

.docs-nav .docs-nav-group .nav-link {
    margin-top: 0.5rem;
    color: #252930;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.docs-nav .docs-nav-group .nav-link:hover {
    color: #4550E6;
}

/* ---------- Article ---------- */
.docs-breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 0.75rem;
    font-size: 0.8125rem;
}

.docs-article .docs-heading {
    font-size: 2.25rem;
    padding-bottom: 1.5rem;
}

.docs-article .docs-time {
    bottom: 0;
}

.docs-article .section-heading {
    font-size: 1.5rem;
}

.docs-article h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
}

.docs-article h3.faq-question {
    font-size: 1.125rem;
    margin-top: 1.75rem;
    color: #252930;
}

.docs-article h2.faq-question:before,
.docs-article h3.faq-question:before {
    content: "\f059";
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
    margin-right: 0.5rem;
    color: #4550E6;
}

.docs-article .docs-lead {
    font-size: 1.0625rem;
    color: #252930;
}

.docs-article .table {
    font-size: 0.875rem;
}

.docs-article .table th {
    background: #f5f6fe;
    color: #252930;
}

.docs-article .docs-figure img {
    max-width: 100%;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
}

.docs-article .docs-code-block pre {
    margin-bottom: 0;
}

.docs-article .docs-code-block code.hljs,
.docs-article .docs-code-block pre code {
    padding: 1rem 1.25rem;
    font-size: 0.8125rem;
    line-height: 1.55;
    white-space: pre;
}

.docs-article .card {
    margin-bottom: 1rem;
}

.docs-article .docs-code-long pre {
    padding: 0;
    border: 0;
}

.docs-article .docs-code-long pre code {
    display: block;
    max-height: 560px;
    overflow: auto;
}

/* ---------- Transaction pages ---------- */
.docs-article .docs-facts {
    margin: 0 0 1.5rem;
    padding: 1.25rem 1.5rem;
    border-radius: 0.5rem;
    background: #f5f6fe;
}

.docs-article .docs-facts .ref-facts {
    display: grid;
    grid-template-columns: max-content 1fr;
    column-gap: 1.5rem;
    font-size: 0.875rem;
}

.docs-article .docs-facts .ref-facts dd {
    margin-bottom: 0.5rem;
}

.docs-facts-title {
    margin-bottom: 0.75rem;
    color: #252930;
    font-weight: 600;
}

.docs-article .ref-table th {
    background: #fff;
}

.docs-article .api-demo-code-container {
    margin-bottom: 1rem;
}

.docs-article .code-body pre.code-container {
    white-space: pre;
}

.docs-cta-box .callout-title {
    margin-bottom: 0.5rem;
}

.docs-cta-box a.btn-primary,
.docs-cta-box a.btn-primary:hover,
.docs-cta-box a.btn-secondary,
.docs-cta-box a.btn-secondary:hover {
    color: #fff;
}

.docs-article .tx-filter {
    max-width: none;
}

.docs-article .tx-table {
    margin-bottom: 0;
}

.docs-article .tx-table thead th {
    border-top: 0;
}

.docs-article .tx-table td:first-child a,
.docs-article .tx-table td:first-child a strong {
    color: #4550E6;
}

.docs-article .tx-table tbody tr:hover {
    background: #f5f6fe;
}

.docs-downloads li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e7e9ed;
}

.docs-downloads li:last-child {
    border-bottom: 0;
}

.docs-downloads .fa-file-arrow-down {
    color: #4550E6;
}

.docs-file-size {
    color: #747f94;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.docs-pager {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 2rem 0 0;
}

.docs-pager-link {
    display: flex;
    flex-direction: column;
    flex: 0 1 48%;
    padding: 1rem 1.25rem;
    border: 1px solid #e7e9ed;
    border-radius: 0.5rem;
    color: #252930;
    font-weight: 500;
}

.docs-pager-link:hover {
    border-color: #4550E6;
    color: #4550E6;
    text-decoration: none;
}

.docs-pager-next {
    margin-left: auto;
    text-align: right;
}

.docs-pager-label {
    color: #747f94;
    font-size: 0.75rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
}

.docs-footer-links .list-inline-item a {
    color: #5d6778;
    font-size: 0.875rem;
}

.docs-page .docs-content {
    padding-bottom: 0;
}

/* ---------- Docs home ---------- */
.docs-overview-heading {
    font-size: 1.75rem;
}

.docs-overview-intro {
    max-width: 640px;
    color: #5d6778;
}

.docs-card-list li {
    padding: 0.25rem 0;
    font-size: 0.875rem;
}

.docs-card-more {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
}

/* ---------- Search ---------- */
.search-form.docs-search {
    position: relative;
}

.docs-search-results {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    right: 0;
    z-index: 1050;
    max-height: 60vh;
    overflow-y: auto;
    padding: 0.25rem 0;
    background: #fff;
    border: 1px solid #e7e9ed;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12);
    text-align: left;
}

.docs-search-results a {
    display: block;
    padding: 0.5rem 0.875rem;
    color: #252930;
    font-size: 0.875rem;
    line-height: 1.35;
}

.docs-search-results a small {
    display: block;
    color: #747f94;
    font-size: 0.75rem;
}

.docs-search-results a:hover,
.docs-search-results a.active {
    background: #f5f6fe;
    color: #4550E6;
    text-decoration: none;
}

.docs-search-empty {
    padding: 0.5rem 0.875rem;
    color: #747f94;
    font-size: 0.875rem;
}

@media (max-width: 767.98px) {
    .docs-article .docs-heading {
        font-size: 1.75rem;
    }

    .docs-article .docs-time {
        position: static;
        display: block;
        margin-top: 0.5rem;
    }

    .docs-pager {
        flex-direction: column;
    }

    .docs-pager-link {
        flex-basis: auto;
    }

    .docs-article .docs-facts .ref-facts {
        grid-template-columns: 1fr;
    }

    .docs-article .docs-facts .ref-facts dd {
        margin-bottom: 0.75rem;
    }
}
