/* ApiQL public documentation overrides. */

html {
    scroll-behavior: smooth;
}

body.docs-page {
    background: #f5f7fb;
    color: #334155;
    padding-top: 78px;
}

.header {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.07);
    backdrop-filter: blur(16px);
}

.docs-branding {
    min-height: 78px;
}

.docs-logo-wrapper {
    top: 0.6rem;
}

.site-logo .navbar-brand {
    align-items: center;
    display: flex;
    height: 58px;
    padding: 0;
}

.site-logo .apiql-brand-logo {
    display: block;
    height: 58px;
    image-rendering: auto;
    object-fit: contain;
    object-position: left center;
    width: auto;
}

.docs-top-utilities {
    padding-top: 8px;
}

.apiql-topline {
    color: #475569;
    line-height: 1.25;
    text-align: right;
    width: 330px !important;
}

.apiql-topline b {
    color: #0f172a;
    font-size: 0.86rem;
}

.apiql-topline i {
    color: #64748b;
    font-style: normal;
}

.apiql-topline a {
    color: #d71920;
    font-weight: 700;
}

.apiql-topline a:hover {
    color: #991b1b;
}

.btn {
    border-radius: 999px;
    letter-spacing: 0;
}

.btn-primary {
    background: #e50914;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #b91c1c;
}

.btn-secondary {
    background: #111827;
}

.btn-danger {
    background: #e50914;
}

.social-list li {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.social-list li a {
    color: #334155;
}

.docs-sidebar {
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    box-shadow: 16px 0 38px rgba(15, 23, 42, 0.06);
    top: 78px;
    height: calc(100% - 78px);
}

.docs-nav {
    padding: 1.25rem 1rem 2rem;
}

.docs-nav .section-title {
    margin-bottom: 0.55rem;
}

.docs-nav .section-title .nav-link {
    align-items: center;
    color: #0f172a;
    display: flex;
    font-weight: 700;
    gap: 0.55rem;
}

.docs-nav .nav-item {
    margin-left: 0;
}

.docs-nav .nav-link {
    border-radius: 10px;
    color: #64748b;
    display: block;
    font-size: 0.88rem;
    margin: 0.08rem 0;
    padding: 0.52rem 0.75rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.docs-nav .nav-link:before {
    display: none;
}

.docs-nav .nav-link:hover {
    background: #f8fafc;
    color: #0f172a;
    text-decoration: none;
}

.docs-nav .nav-link.active,
.docs-nav .nav-link.active .theme-icon-holder {
    background: #fff1f2;
    color: #e50914;
}

.theme-icon-holder {
    background: #fff1f2;
    border-radius: 9px;
    color: #e50914;
}

.docs-content {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(245, 247, 251, 0) 260px),
        #f5f7fb;
    margin-left: 300px;
    padding-bottom: 120px;
}

.docs-content > .container {
    max-width: 1180px;
    padding-left: 28px;
    padding-right: 28px;
}

.docs-article {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.07);
    color: #475569;
    margin: 28px 0;
    overflow: hidden;
    padding: 34px;
}

.docs-article#introduction {
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
    padding: 28px 0 0;
}

.docs-article .docs-heading {
    color: #0f172a;
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: 0;
    margin-bottom: 1rem;
}

.docs-article .section-heading {
    color: #0f172a;
    font-size: clamp(1.55rem, 2.3vw, 2.05rem);
    letter-spacing: 0;
}

.docs-article h3,
.docs-article h4,
.docs-article h5 {
    color: #111827;
    letter-spacing: 0;
}

.docs-article .docs-section {
    border-bottom: 1px solid #e2e8f0;
    padding: 2.1rem 0;
}

.docs-article .docs-section:last-child {
    border-bottom: 0;
}

.apiql-hero {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    padding: 0;
}

.apiql-hero-poster {
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
    display: block;
    height: auto;
    width: 100%;
}

.apiql-summary-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 22px;
}

.apiql-summary-grid > div {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
    padding: 20px;
}

.apiql-summary-label {
    color: #e50914;
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 0.45rem;
    text-transform: uppercase;
}

.apiql-summary-grid strong {
    color: #0f172a;
    display: block;
    font-size: 1rem;
    margin-bottom: 0.45rem;
}

.apiql-summary-grid p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

.docs-article ul li::marker {
    color: #e50914;
}

.callout-block {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #e50914;
    border-radius: 14px;
    box-shadow: none;
}

.callout-block pre,
.callout-block pre code {
    margin-bottom: 0;
}

pre,
.docs-article pre,
pre.shadow-lg {
    background: #0b1120 !important;
    border: 1px solid #1e293b;
    border-radius: 14px !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18) !important;
    color: #e2e8f0;
    filter: none !important;
    overflow: auto;
}

pre code {
    background: transparent;
    color: inherit;
    font-size: 0.86rem;
    line-height: 1.65;
    padding: 0;
}

code {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #b91c1c;
}

.badge {
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0;
    padding: 0.36rem 0.58rem;
}

.badge-info {
    background: #e0f2fe;
    color: #0369a1;
}

.badge-success {
    background: #dcfce7;
    color: #15803d;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #b91c1c;
}

.nav-tabs {
    border-bottom: 1px solid #e2e8f0;
    gap: 6px;
}

.nav-tabs .nav-link {
    border: 0;
    border-radius: 10px 10px 0 0;
    color: #64748b;
    font-weight: 700;
}

.nav-tabs .nav-link.active {
    background: #0f172a;
    color: #ffffff;
}

.tab-content {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 0;
    border-radius: 0 0 14px 14px;
    padding: 14px;
}

.table,
.table-responsive table {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
}

.table th,
.table td {
    border-color: #e2e8f0;
}

.table thead th,
table thead th {
    background: #f8fafc;
    color: #0f172a;
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer {
    color: #64748b;
}

.footer .copyright {
    font-size: 0.8rem;
}

.theme-link,
a {
    color: #d71920;
}

.theme-link:hover,
a:hover {
    color: #991b1b;
}

@media (max-width: 1199.98px) {
    body.docs-page {
        padding-top: 78px;
    }

    .docs-content {
        margin-left: 0;
    }

    .docs-sidebar {
        top: 78px;
        height: calc(100% - 78px);
    }
}

@media (max-width: 991.98px) {
    body.docs-page {
        padding-top: 68px;
    }

    .docs-branding {
        min-height: 68px;
    }

    .docs-branding .container-fluid {
        align-items: center;
        display: flex;
        min-height: 68px;
        padding-bottom: 0 !important;
        padding-top: 0 !important;
    }

    .docs-logo-wrapper {
        align-items: center;
        display: flex;
        gap: 12px;
        position: static;
        top: auto;
    }

    .docs-sidebar-toggler {
        align-items: center;
        display: inline-flex;
        flex: 0 0 28px;
        flex-direction: column;
        height: 42px;
        justify-content: center;
        margin-right: 0 !important;
        top: auto;
        width: 28px;
    }

    .docs-sidebar-toggler span {
        margin-bottom: 3px;
        margin-top: 3px;
    }

    .site-logo .navbar-brand {
        background: transparent;
        height: 52px;
    }

    .site-logo .apiql-brand-logo {
        background: transparent;
        height: 46px;
        max-width: 178px;
    }

    .docs-sidebar {
        top: 68px;
        height: calc(100% - 68px);
    }

    .apiql-summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .docs-content > .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .docs-article {
        border-radius: 16px;
        margin: 18px 0;
        padding: 22px;
    }

    .docs-article#introduction {
        padding-top: 18px;
    }

    .site-logo .apiql-brand-logo {
        height: 42px;
        max-width: 166px;
    }

    .apiql-hero-poster {
        border-radius: 14px;
    }

    .tab-content {
        padding: 10px;
    }
}
