/* Layout shared by the local API documentation; other manual chapters keep their theme. */
.wy-nav-content:has(.qpro-docs-page) {
    max-width: 1120px;
}

.qpro-docs-page {
    color: #263746;
}

.qpro-docs-page h1 {
    margin-bottom: 18px;
    color: #18374b;
}

.qpro-docs-page h2,
.qpro-docs-home > p.rubric {
    margin-top: 38px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dce5eb;
    color: #18374b;
    font-size: 24px;
}

.qpro-docs-page h3 {
    margin-top: 28px;
    color: #294c62;
}

.qpro-docs-page p,
.qpro-docs-page li {
    line-height: 1.8;
}

.qpro-docs-lead p {
    margin: 0 0 14px;
    font-size: 23px;
    line-height: 1.5;
    color: #247d89;
}

.qpro-docs-meta {
    margin-bottom: 24px;
    color: #526b7a;
    font-size: 14px;
}

.qpro-docs-meta p {
    display: inline-block;
    padding: 4px 12px;
    margin: 0;
    border-radius: 5px;
    background: #edf4f7;
}

.qpro-docs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.qpro-docs-card {
    padding: 22px 24px 16px;
    border: 1px solid #d8e3e9;
    border-top: 3px solid #328a94;
    border-radius: 8px;
    background: #f8fbfc;
}

.qpro-docs-card p.rubric {
    margin: 0 0 12px;
    font-size: 20px;
}

.qpro-docs-card p {
    margin-bottom: 10px;
}

.qpro-docs-card p:last-child {
    color: #617480;
    font-size: 14px;
}

.qpro-docs-card a,
.qpro-guide-list a {
    color: #216f88;
}

.qpro-docs-page a:focus-visible {
    outline: 3px solid #248895;
    outline-offset: 4px;
}

.qpro-guide-list p.rubric {
    margin-top: 28px;
    margin-bottom: 8px;
    font-size: 21px;
}

.rst-content .wy-table-responsive table.qpro-api-table {
    width: 100%;
    table-layout: fixed;
}

.rst-content .wy-table-responsive table.qpro-api-table th,
.rst-content .wy-table-responsive table.qpro-api-table td {
    white-space: normal;
    overflow-wrap: anywhere;
    vertical-align: top;
}

.rst-content table.qpro-api-table code .pre {
    white-space: normal;
    overflow-wrap: anywhere;
}

.rst-content table.qpro-api-table th {
    background: #eef4f7;
    color: #26465b;
}

.qpro-docs-page .figure {
    margin-top: 24px;
    margin-bottom: 28px;
}

@media (max-width: 700px) {
    .qpro-docs-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .qpro-docs-card {
        padding: 18px;
    }

    .qpro-docs-lead p {
        font-size: 20px;
    }
}
