/* =========================================================================
   Knowledge base / Help — developer documentation layouts
   -------------------------------------------------------------------------
   Scoped entirely to .nz-docs, which only wraps categories whose `layout`
   is rest_api / backend_development / frontend_development. The "normal"
   layout keeps rendering through articles/view_page and is untouched.

   Everything is driven by the custom properties on .nz-docs so the dark
   theme (body.color-1E202D) only has to redeclare the palette.
   ========================================================================= */

.nz-docs {
    --nz-docs-nav-w: 272px;
    --nz-docs-aside-w: 400px;
    --nz-docs-sticky-top: 75px;

    --nz-docs-bg: #ffffff;
    --nz-docs-bg-soft: #f7f8fa;
    --nz-docs-border: #e4e7ec;
    --nz-docs-text: #1f2430;
    --nz-docs-text-soft: #6b7280;
    --nz-docs-accent: #2f5bea;
    --nz-docs-accent-soft: rgba(47, 91, 234, .08);
    --nz-docs-code-bg: #0d1117;
    --nz-docs-code-text: #e6edf3;
    --nz-docs-radius: 10px;
}

.nz-docs .nz-docs__shell {
    display: grid;
    grid-template-columns: var(--nz-docs-nav-w) minmax(0, 1fr);
    align-items: start;
    gap: 0;
}

.nz-docs.nz-docs--has-aside .nz-docs__shell {
    grid-template-columns: var(--nz-docs-nav-w) minmax(0, 1fr) var(--nz-docs-aside-w);
}

/* ---------------------------------------------------------------- nav ---- */

.nz-docs .nz-docs__nav {
    position: sticky;
    top: var(--nz-docs-sticky-top);
    align-self: start;
    /* keep the separator running down the whole viewport, even on a short tree */
    min-height: calc(100vh - var(--nz-docs-sticky-top) - 20px);
    border-right: 1px solid var(--nz-docs-border);
}

.nz-docs .nz-docs__nav-inner {
    max-height: calc(100vh - var(--nz-docs-sticky-top) - 20px);
    overflow-y: auto;
    padding: 4px 18px 30px 0;
}

.nz-docs .nz-docs__nav-search {
    margin-bottom: 18px;
}

.nz-docs .nz-docs__group {
    margin-bottom: 4px;
}

/* sub categories are indented and hang off a guide line, like the article list */
.nz-docs .nz-docs__group--depth-1,
.nz-docs .nz-docs__group--depth-2,
.nz-docs .nz-docs__group--depth-3 {
    margin-left: 14px;
    padding-left: 10px;
    border-left: 1px solid var(--nz-docs-border);
}

.nz-docs .nz-docs__group--depth-1 .nz-docs__group-title,
.nz-docs .nz-docs__group--depth-2 .nz-docs__group-title,
.nz-docs .nz-docs__group--depth-3 .nz-docs__group-title {
    font-size: 13px;
    font-weight: 500;
}

.nz-docs .nz-docs__group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 7px;
    font-weight: 600;
    font-size: 13.5px;
    color: var(--nz-docs-text);
    text-decoration: none;
}

.nz-docs .nz-docs__group-title:hover {
    background: var(--nz-docs-bg-soft);
    color: var(--nz-docs-accent);
}

.nz-docs .nz-docs__group-title.active {
    color: var(--nz-docs-accent);
}

.nz-docs .nz-docs__links {
    list-style: none;
    margin: 2px 0 10px 0;
    padding: 0 0 0 10px;
    border-left: 1px solid var(--nz-docs-border);
}

.nz-docs .nz-docs__link {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 9px;
    margin-left: 4px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.35;
    color: var(--nz-docs-text-soft);
    text-decoration: none;
}

.nz-docs .nz-docs__link:hover {
    background: var(--nz-docs-bg-soft);
    color: var(--nz-docs-text);
}

.nz-docs .nz-docs__link.active {
    background: var(--nz-docs-accent-soft);
    color: var(--nz-docs-accent);
    font-weight: 600;
}

.nz-docs .nz-docs__link-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* http verb badges ------------------------------------------------------- */

.nz-docs__method {
    flex: 0 0 auto;
    display: inline-block;
    min-width: 46px;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .5px;
    text-align: center;
    text-transform: uppercase;
    color: #fff;
    background: #6b7280;
}

.nz-docs__method--get {
    background: #1f9d55;
}

.nz-docs__method--post {
    background: #2f5bea;
}

.nz-docs__method--put {
    background: #d97706;
}

.nz-docs__method--patch {
    background: #7c3aed;
}

.nz-docs__method--delete {
    background: #dc2626;
}

.nz-docs__method--head,
.nz-docs__method--options {
    background: #0891b2;
}

/* --------------------------------------------------------------- main ---- */

.nz-docs .nz-docs__main {
    min-width: 0;
    padding: 0 30px;
}

.nz-docs.nz-docs--has-aside .nz-docs__main {
    padding-right: 24px;
}

.nz-docs .nz-docs__breadcrumb .breadcrumb {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
    padding: 0;
    background: none;
}

/* cap the reading width the way a documentation site does */
.nz-docs .nz-docs__article {
    max-width: 880px;
}

.nz-docs .nz-docs__article-head {
    margin-bottom: 22px;
}

.nz-docs .nz-docs__article-head h1 {
    margin: 0 0 6px 0;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--nz-docs-text);
}

.nz-docs .nz-docs__lead {
    margin: 0 0 12px 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--nz-docs-text-soft);
}

.nz-docs .nz-docs__banner {
    margin-bottom: 20px;
    border-radius: var(--nz-docs-radius);
    overflow: hidden;
}

.nz-docs .nz-docs__banner img {
    display: block;
    width: 100%;
}

/* the endpoint pill of the rest_api layout */
.nz-docs .nz-docs__endpoint {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 12px 0;
    padding: 8px 12px;
    border: 1px solid var(--nz-docs-border);
    border-radius: 8px;
    background: var(--nz-docs-bg-soft);
    cursor: pointer;
    max-width: 100%;
    overflow-x: auto;
}

.nz-docs .nz-docs__endpoint code {
    padding: 0;
    background: none;
    font-size: 13.5px;
    color: var(--nz-docs-text);
    white-space: nowrap;
}

.nz-docs .nz-docs__endpoint.is-copied {
    border-color: #1f9d55;
}

.nz-docs .nz-docs__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12px;
    color: var(--nz-docs-text-soft);
}

.nz-docs .nz-docs__ref {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--nz-docs-text-soft);
    text-decoration: none;
}

.nz-docs .nz-docs__ref:hover {
    color: var(--nz-docs-accent);
}

.nz-docs .nz-docs__content {
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--nz-docs-text);
}

.nz-docs .nz-docs__content h1,
.nz-docs .nz-docs__content h2,
.nz-docs .nz-docs__content h3,
.nz-docs .nz-docs__content h4 {
    margin-top: 32px;
    margin-bottom: 12px;
    scroll-margin-top: 90px;
    font-weight: 650;
}

.nz-docs .nz-docs__content h2 {
    padding-bottom: 7px;
    border-bottom: 1px solid var(--nz-docs-border);
}

.nz-docs .nz-docs__content img {
    max-width: 100%;
    height: auto;
}

.nz-docs .nz-docs__content table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.nz-docs .nz-docs__content table th,
.nz-docs .nz-docs__content table td {
    padding: 8px 12px;
    border: 1px solid var(--nz-docs-border);
    text-align: left;
}

.nz-docs .nz-docs__content table th {
    background: var(--nz-docs-bg-soft);
    font-weight: 600;
}

/* article cards on the category landing page */
.nz-docs .nz-docs__cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    margin-top: 10px;
}

.nz-docs .nz-docs__card {
    display: block;
    padding: 16px 18px;
    border: 1px solid var(--nz-docs-border);
    border-radius: var(--nz-docs-radius);
    background: var(--nz-docs-bg);
    color: var(--nz-docs-text);
    text-decoration: none;
    transition: border-color .15s, transform .15s;
}

.nz-docs .nz-docs__card:hover {
    border-color: var(--nz-docs-accent);
    transform: translateY(-2px);
}

.nz-docs .nz-docs__card h3 {
    margin: 0 0 5px 0;
    font-size: 15px;
    font-weight: 650;
}

.nz-docs .nz-docs__card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--nz-docs-text-soft);
}

.nz-docs .nz-docs__card-endpoint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
    overflow: hidden;
}

.nz-docs .nz-docs__card-endpoint code {
    padding: 0;
    background: none;
    font-size: 12px;
    color: var(--nz-docs-text-soft);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nz-docs .nz-docs__files,
.nz-docs .nz-docs__related {
    margin-top: 26px;
    padding-top: 16px;
    border-top: 1px solid var(--nz-docs-border);
}

.nz-docs .nz-docs__related h4 {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 650;
}

.nz-docs .nz-docs__related ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nz-docs .nz-docs__related li a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 0;
    font-size: 13.5px;
}

.nz-docs .nz-docs__feedback {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
    padding-top: 16px;
    border-top: 1px solid var(--nz-docs-border);
    font-size: 13.5px;
    color: var(--nz-docs-text-soft);
}

/* previous / next */
.nz-docs .nz-docs__pager {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin: 30px 0 40px 0;
}

.nz-docs .nz-docs__pager-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 1 48%;
    padding: 14px 16px;
    border: 1px solid var(--nz-docs-border);
    border-radius: var(--nz-docs-radius);
    font-size: 14px;
    font-weight: 600;
    color: var(--nz-docs-text);
    text-decoration: none;
}

.nz-docs .nz-docs__pager-item:hover {
    border-color: var(--nz-docs-accent);
    color: var(--nz-docs-accent);
}

.nz-docs .nz-docs__pager-item--next {
    margin-left: auto;
    justify-content: flex-end;
    text-align: right;
}

.nz-docs .nz-docs__pager-item small {
    display: block;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--nz-docs-text-soft);
}

/* -------------------------------------------------------------- aside ---- */

.nz-docs .nz-docs__aside {
    position: sticky;
    top: var(--nz-docs-sticky-top);
    align-self: start;
    min-width: 0;
}

.nz-docs .nz-docs__aside-inner {
    max-height: calc(100vh - var(--nz-docs-sticky-top) - 20px);
    overflow-y: auto;
    padding-bottom: 20px;
}

.nz-docs .nz-docs__example {
    border: 1px solid var(--nz-docs-border);
    border-radius: var(--nz-docs-radius);
    overflow: hidden;
}

.nz-docs .nz-docs__example-head {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border-bottom: 1px solid var(--nz-docs-border);
    background: var(--nz-docs-bg-soft);
    font-size: 12px;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--nz-docs-text-soft);
}

.nz-docs .nz-docs__example-body {
    padding: 14px;
    font-size: 13px;
    line-height: 1.65;
    overflow-x: auto;
}

.nz-docs .nz-docs__example-body img {
    max-width: 100%;
    height: auto;
}

/* the rest_api example rail reads as a terminal panel */
.nz-docs--rest_api .nz-docs__example {
    border-color: transparent;
}

.nz-docs--rest_api .nz-docs__example-head {
    border-bottom-color: rgba(255, 255, 255, .09);
    background: #161b22;
    color: #9aa4b2;
}

.nz-docs--rest_api .nz-docs__example-body {
    background: var(--nz-docs-code-bg);
    color: var(--nz-docs-code-text);
}

.nz-docs--rest_api .nz-docs__example-body pre,
.nz-docs--rest_api .nz-docs__example-body code {
    background: transparent;
    color: var(--nz-docs-code-text);
}

/* the rail is narrow — wrap long requests instead of hiding them behind a scrollbar */
.nz-docs .nz-docs__example-body pre {
    white-space: pre-wrap;
    word-break: break-word;
}

.nz-docs .nz-docs__example-body h1,
.nz-docs .nz-docs__example-body h2,
.nz-docs .nz-docs__example-body h3,
.nz-docs .nz-docs__example-body h4 {
    margin: 14px 0 6px 0;
    font-size: 13px;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: .5px;
    opacity: .75;
}

.nz-docs .nz-docs__example-body> :first-child {
    margin-top: 0;
}

/* request parameters (rest_api) ------------------------------------------ */

.nz-docs .nz-docs__params {
    margin: 22px 0;
}

.nz-docs .nz-docs__params h3 {
    margin: 0 0 8px 0;
    font-size: 12px;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--nz-docs-text-soft);
}

.nz-docs .nz-docs__params table {
    width: 100%;
    border-collapse: collapse;
    border-top: 1px solid var(--nz-docs-border);
}

.nz-docs .nz-docs__params td {
    padding: 10px 12px 10px 0;
    border-bottom: 1px solid var(--nz-docs-border);
    font-size: 13.5px;
    line-height: 1.55;
    vertical-align: top;
}

.nz-docs .nz-docs__param-name {
    width: 30%;
    white-space: nowrap;
}

.nz-docs .nz-docs__param-name code {
    padding: 0;
    background: none;
    font-size: 13px;
    font-weight: 650;
    color: var(--nz-docs-text);
}

.nz-docs .nz-docs__param-required {
    display: inline-block;
    margin-left: 6px;
    font-size: 10px;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #dc2626;
}

.nz-docs .nz-docs__param-type {
    width: 16%;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    color: var(--nz-docs-text-soft);
}

.nz-docs .nz-docs__param-desc {
    color: var(--nz-docs-text-soft);
}

.nz-docs .nz-docs__param-example {
    display: block;
    margin-top: 3px;
    font-size: 12px;
}

.nz-docs .nz-docs__param-example code {
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--nz-docs-bg-soft);
    font-size: 11.5px;
}

/* The JSON example is highlighted by highlight.js, whose only bundled theme
   here is github-dark — so the block is a dark code card in both app themes,
   matching the request/result rails. */
.nz-docs .nz-docs__param-json {
    margin: 4px 0 0 0;
    padding: 0;
    max-height: 260px;
    /* app.all.css sets a global `pre { white-space: normal }`, which would
       collapse the pretty-printed JSON back onto one line */
    white-space: pre;
    border-radius: 6px;
    background: var(--nz-docs-code-bg);
    overflow: auto;
}

/* beats both `.hljs` and `pre code.hljs` on specificity, so the theme keeps
   its token colours while the card keeps its own background and padding */
.nz-docs .nz-docs__param-json code {
    display: block;
    padding: 10px 12px;
    background: transparent;
    color: var(--nz-docs-code-text);
    font-size: 11.5px;
    line-height: 1.55;
}

/* generated request + language switcher ---------------------------------- */

.nz-docs .nz-docs__request {
    margin-bottom: 16px;
}

.nz-docs .nz-docs__lang-tabs {
    display: flex;
    gap: 2px;
    padding: 6px 8px;
    background: #161b22;
    overflow-x: auto;
    scrollbar-width: none;
}

.nz-docs .nz-docs__lang-tabs::-webkit-scrollbar {
    display: none;
}

.nz-docs .nz-docs__lang {
    flex: 0 0 auto;
    padding: 4px 10px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #8b95a5;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
    cursor: pointer;
}

.nz-docs .nz-docs__lang:hover {
    color: #d5dbe4;
}

.nz-docs .nz-docs__lang.active {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.nz-docs .nz-docs__request .nz-docs__example-body {
    background: var(--nz-docs-code-bg);
    color: var(--nz-docs-code-text);
}

.nz-docs .nz-docs__request pre {
    margin: 0;
    padding: 0;
    background: transparent;
    color: var(--nz-docs-code-text);
    font-size: 12.5px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

/* on this page ----------------------------------------------------------- */

.nz-docs .nz-docs__toc {
    margin-top: 18px;
    padding-left: 14px;
    border-left: 1px solid var(--nz-docs-border);
}

.nz-docs .nz-docs__toc-head {
    margin-bottom: 8px;
    font-size: 11.5px;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--nz-docs-text-soft);
}

.nz-docs .nz-docs__toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nz-docs .nz-docs__toc-list a {
    display: block;
    padding: 4px 0;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--nz-docs-text-soft);
    text-decoration: none;
}

.nz-docs .nz-docs__toc-list a:hover,
.nz-docs .nz-docs__toc-list a.active {
    color: var(--nz-docs-accent);
}

.nz-docs .nz-docs__toc-h3 a {
    padding-left: 12px;
}

.nz-docs .nz-docs__toc-h4 a {
    padding-left: 24px;
}

/* ------------------------------------------------------- copy buttons ---- */

.nz-docs .nz-docs__copy-wrap {
    position: relative;
}

.nz-docs .nz-docs__copy {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 6px;
    background: rgba(255, 255, 255, .08);
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1;
    opacity: 0;
    cursor: pointer;
    transition: opacity .15s;
}

.nz-docs .nz-docs__copy-wrap:hover .nz-docs__copy {
    opacity: 1;
}

.nz-docs .nz-docs__copy.is-copied {
    opacity: 1;
    border-color: #1f9d55;
    color: #34d17c;
}

/* code blocks inside the article body sit on a light card */
.nz-docs .nz-docs__content .nz-docs__copy {
    border-color: var(--nz-docs-border);
    background: var(--nz-docs-bg);
    color: var(--nz-docs-text-soft);
}

/* ------------------------------------------ knowledge base index cards ---- */

/* sub categories listed under their parent's card on the landing page */
.help-subcategory-list {
    list-style: none;
    margin: -8px 0 22px 0;
    padding: 0 4px;
}

.help-subcategory-list li a {
    display: block;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 13.5px;
}

.help-subcategory-list li a:hover {
    background: rgba(127, 127, 127, .12);
}

/* -------------------------------------------- article form: parameters ---- */

/* The request-parameters repeater is the one piece of this feature that lives
   in the admin form rather than under .nz-docs.
   Bootstrap paints table cells with --bs-table-bg, which resolves to
   --bs-body-bg (white); the runtime theme stylesheet restyles the borders and
   the text of .table-bordered but never that variable, so the cells stayed
   white on a dark page. Making them transparent lets the card behind show
   through, which is correct in both themes. */
/* Every table this feature adds needs the same treatment: Bootstrap paints
   cells with --bs-table-bg, which resolves to --bs-body-bg (white). The runtime
   dark theme restyles .table-bordered's borders and text but never that
   variable, so cells stayed white on a dark page. Transparent lets the card
   behind show through, which is correct in both themes. */
.nz-param-table,
.nz-postman-preview table {
    --bs-table-bg: transparent;
    --bs-table-color: inherit;
}

.nz-param-table th {
    font-size: 12px;
    font-weight: 600;
}

.nz-param-table td {
    vertical-align: middle;
}

/* Postman import preview: a long collection scrolls inside the modal
   rather than pushing the footer buttons off screen */
.nz-postman-preview__list {
    max-height: 45vh;
    overflow-y: auto;
}

.nz-postman-preview table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--bs-body-bg);
    font-size: 12px;
    font-weight: 600;
}

body.color-1E202D .nz-postman-preview table th {
    background: #1e202d;
}

.nz-postman-preview table td {
    vertical-align: middle;
}

/* the JSON editor that replaces the plain example input for json/array/object */
.nz-param-table .nz-param-json-input {
    min-height: 78px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    line-height: 1.5;
    white-space: pre;
    resize: vertical;
}

.nz-param-table .nz-param-json-status {
    margin-top: 4px;
    font-size: 11.5px;
    line-height: 1.4;
}

.nz-param-table .nz-param-json-status.is-invalid-json {
    color: #dc2626;
}

.nz-param-table .nz-param-json-input.is-invalid-json {
    border-color: #dc2626;
}

/* --------------------------------------------------------- responsive ---- */

.nz-docs .nz-docs__nav-toggle {
    display: none;
    margin-bottom: 14px;
}

@media (max-width: 1400px) {
    .nz-docs {
        --nz-docs-aside-w: 340px;
    }
}

@media (max-width: 1199px) {

    /* the aside drops under the content */
    .nz-docs.nz-docs--has-aside .nz-docs__shell {
        grid-template-columns: var(--nz-docs-nav-w) minmax(0, 1fr);
    }

    .nz-docs .nz-docs__aside {
        position: static;
        grid-column: 2;
        padding: 0 30px 30px 30px;
    }

    .nz-docs .nz-docs__aside-inner {
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 991px) {
    .nz-docs .nz-docs__nav-toggle {
        display: inline-block;
    }

    .nz-docs .nz-docs__shell,
    .nz-docs.nz-docs--has-aside .nz-docs__shell {
        display: block;
    }

    .nz-docs .nz-docs__nav {
        position: static;
        display: none;
        margin-bottom: 20px;
        padding-bottom: 14px;
        border-right: 0;
        border-bottom: 1px solid var(--nz-docs-border);
    }

    .nz-docs .nz-docs__nav.is-open {
        display: block;
    }

    .nz-docs .nz-docs__nav-inner {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .nz-docs .nz-docs__main,
    .nz-docs .nz-docs__aside {
        padding: 0;
    }

    .nz-docs .nz-docs__pager {
        flex-direction: column;
    }

    .nz-docs .nz-docs__pager-item {
        flex: 1 1 auto;
    }

    .nz-docs .nz-docs__pager-item--next {
        margin-left: 0;
    }
}

/* --------------------------------------------------------- dark theme ---- */

body.color-1E202D .nz-docs {
    --nz-docs-bg: #1e202d;
    --nz-docs-bg-soft: #262939;
    --nz-docs-border: #343849;
    --nz-docs-text: #e7e9ee;
    --nz-docs-text-soft: #9aa1b1;
    --nz-docs-accent: #7d9bff;
    --nz-docs-accent-soft: rgba(125, 155, 255, .14);
}

body.color-1E202D .nz-docs .nz-docs__card,
body.color-1E202D .nz-docs .nz-docs__endpoint,
body.color-1E202D .nz-docs .nz-docs__example-head,
body.color-1E202D .nz-docs .nz-docs__content table th {
    background: var(--nz-docs-bg-soft) !important;
    color: var(--nz-docs-text) !important;
}

body.color-1E202D .nz-docs .nz-docs__article-head h1,
body.color-1E202D .nz-docs .nz-docs__content,
body.color-1E202D .nz-docs .nz-docs__pager-item {
    color: var(--nz-docs-text) !important;
}

body.color-1E202D .nz-docs .nz-docs__lead,
body.color-1E202D .nz-docs .nz-docs__meta,
body.color-1E202D .nz-docs .nz-docs__card p {
    color: var(--nz-docs-text-soft) !important;
}

body.color-1E202D .nz-docs .nz-docs__param-name code,
body.color-1E202D .nz-docs .nz-docs__params td {
    color: var(--nz-docs-text) !important;
}

body.color-1E202D .nz-docs .nz-docs__param-type,
body.color-1E202D .nz-docs .nz-docs__param-desc {
    color: var(--nz-docs-text-soft) !important;
}

body.color-1E202D .nz-docs .nz-docs__param-example code {
    background: var(--nz-docs-bg-soft) !important;
}

body.color-1E202D .nz-docs .nz-docs__content .nz-docs__copy {
    background: var(--nz-docs-bg-soft) !important;
    border-color: var(--nz-docs-border) !important;
    color: var(--nz-docs-text-soft) !important;
}
