/* API documentation */

/* DataNewton-style schema tree */

.api-schema-tree {
    padding: 4px 0;
}

.api-schema-node {
    border-bottom: 1px solid #eef2f7;
}

.api-schema-node:last-child {
    border-bottom: none;
}

.api-schema-node__row {
    display: grid;
    grid-template-columns: 28px minmax(120px, 180px) minmax(90px, 140px) 1fr;
    gap: 12px 16px;
    align-items: start;
    padding: 14px 18px 14px calc(18px + var(--schema-depth, 0) * 20px);
    transition: background 0.15s ease;
}

.api-schema-node__row:hover {
    background: #fafbfd;
}

.api-schema-node__toggle {
    appearance: none;
    border: none;
    background: transparent;
    width: 24px;
    height: 24px;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: #64748b;
    flex-shrink: 0;
}

.api-schema-node__toggle:hover {
    background: #f1f5f9;
    color: #334155;
}

.api-schema-node__chevron {
    display: block;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
    margin-top: -2px;
}

.api-schema-node--expandable:not(.is-expanded) > .api-schema-node__children {
    display: none;
}

.api-schema-node.is-expanded > .api-schema-node__row .api-schema-node__chevron {
    transform: rotate(45deg);
    margin-top: -4px;
}

.api-schema-node__spacer {
    display: block;
    width: 24px;
    flex-shrink: 0;
}

.api-schema-node__name {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    background: transparent;
    padding: 2px 0;
    word-break: break-word;
}

.api-schema-node__type {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
    font-weight: 600;
    color: #7c3aed;
    padding-top: 2px;
    word-break: break-word;
}

.api-schema-node__body {
    min-width: 0;
}

.api-schema-node__desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #334155;
}

.api-schema-node__example {
    margin-top: 6px;
    font-size: 13px;
    color: #64748b;
}

.api-schema-node__example span {
    font-weight: 600;
    margin-right: 4px;
}

.api-schema-node__example code {
    background: #f1f5f9;
    padding: 1px 6px;
    border-radius: 4px;
    color: #0f172a;
    font-size: 12px;
    word-break: break-all;
}

.api-schema-node__children {
    border-top: 1px solid #f1f5f9;
}

.api-schema-node__children > .api-schema-node:last-child {
    border-bottom: none;
}

.api-schema-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.api-schema-panel--nested {
    margin-bottom: 20px;
    border-radius: 12px;
}

.api-schema-panel--request {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.api-schema-panel__bar {
    padding: 11px 18px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.api-schema-table-wrap {
    overflow-x: auto;
}

.api-schema-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.api-schema-table thead th {
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 18px;
    white-space: nowrap;
}

.api-schema-table tbody tr {
    border-bottom: 1px solid #eef2f7;
}

.api-schema-table tbody tr:last-child {
    border-bottom: none;
}

.api-schema-table tbody tr:hover {
    background: #fafbfd;
}

.api-schema-table td {
    vertical-align: top;
    padding: 16px 18px;
    line-height: 1.55;
}

.api-schema-table__name code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    background: transparent;
    padding: 0;
}

.api-schema-table__type {
    width: 110px;
    white-space: nowrap;
}

.api-schema-table__flags {
    width: 130px;
    white-space: nowrap;
}

.api-schema-table__desc p {
    margin: 0 0 8px;
    color: #334155;
}

.api-schema-table__desc p:last-child {
    margin-bottom: 0;
}

.api-type-badge {
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    font-weight: 600;
    color: #7c3aed;
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    border-radius: 6px;
    padding: 3px 8px;
}

.api-required-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 999px;
    padding: 3px 9px;
}

.api-optional-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 3px 9px;
}

.api-schema-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: #64748b;
}

.api-schema-meta span {
    font-weight: 600;
    margin-right: 4px;
}

.api-schema-meta code {
    background: #f1f5f9;
    padding: 1px 6px;
    border-radius: 4px;
    color: #0f172a;
    font-size: 12px;
}

.api-json-sample {
    margin-top: 4px;
}

.api-json-sample__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: #1e293b;
    border: 1px solid #334155;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
}

.api-json-sample__head .api-method-copy {
    margin-top: 0;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.api-json-sample__head .api-method-copy:hover {
    background: rgba(255, 255, 255, 0.14);
}

.api-docs-code--json {
    margin: 0;
    border-radius: 0 0 12px 12px;
    max-height: 520px;
    overflow: auto;
    border: 1px solid #334155;
    border-top: none;
}

.api-docs-code--sample {
    margin: 0;
    border-radius: 0 0 12px 12px;
    border: 1px solid #334155;
    border-top: none;
    word-break: break-all;
    white-space: pre-wrap;
}

.api-params-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 4px 0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.api-params-panel .api-param-card {
    border: none;
    border-radius: 0;
    border-bottom: 1px solid #eef2f7;
    background: transparent;
    padding: 18px 22px;
}

.api-params-panel .api-param-card:last-child {
    border-bottom: none;
}

.api-params-panel .api-param-name {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 15px;
    background: transparent;
    padding: 0;
    color: #0f172a;
}

.api-params-panel .api-param-type {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.api-params-panel .api-param-desc {
    font-size: 14px;
    color: #334155;
}

.api-live-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    vertical-align: middle;
}

.api-docs-page {
    background: #f4f6f8;
    min-height: 100vh;
}

.api-docs-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 8px 0 48px;
}

.api-docs-intro {
    margin-bottom: 40px;
}

.api-docs-badge {
    display: inline-block;
    background: #e8f1ff;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.api-docs-intro h1 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
    margin: 0 0 16px;
}

.api-docs-intro-lead {
    font-size: 16px;
    line-height: 1.65;
    color: #4b5563;
    max-width: 820px;
    margin: 0 0 20px;
}

.api-docs-intro-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.api-docs-meta-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px 18px;
}

.api-docs-meta-card strong {
    display: block;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 6px;
}

.api-docs-meta-card code {
    font-size: 13px;
    color: #111827;
    word-break: break-all;
}

.api-docs-notice {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 14px;
    padding: 14px 18px;
    color: #92400e;
    font-size: 14px;
    line-height: 1.55;
    margin-top: 20px;
}

.api-docs-section {
    margin-bottom: 48px;
}

.api-docs-section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 18px;
}

.api-docs-toolbar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 22px;
}

.api-docs-search {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 14px 16px 14px 44px;
    font-size: 15px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='M16 16l-4-4'/%3E%3C/svg%3E") 14px center no-repeat;
    transition: border-color .2s, box-shadow .2s;
}

.api-docs-search:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}

.api-docs-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.api-docs-filter {
    border: none;
    background: #fff;
    color: #2563eb;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.api-docs-filter:hover {
    background: #eff6ff;
}

.api-docs-filter.is-active {
    background: #2563eb;
    color: #fff;
}

.api-docs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.api-method-card {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 16px;
    padding: 22px 22px 20px;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    min-height: 168px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.api-method-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
    border-color: #dbeafe;
}

.api-method-card.is-open {
    border-color: #93c5fd;
    box-shadow: 0 14px 32px rgba(37, 99, 235, .12);
}

.api-method-card.is-hidden {
    display: none;
}

.api-method-card__title {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1.3;
}

.api-method-card__path {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
    color: #dc2626;
    font-weight: 600;
}

.api-method-card__desc {
    font-size: 14px;
    line-height: 1.55;
    color: #6b7280;
    margin: 0;
    flex: 1;
}

.api-method-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.api-method-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    background: #ecfdf5;
    color: #047857;
    padding: 3px 8px;
    border-radius: 999px;
}

.api-method-tag--dict {
    background: #eef2ff;
    color: #4338ca;
}

.api-method-detail {
    display: none;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #eef2f7;
}

.api-method-card.is-open .api-method-detail {
    display: block;
}

.api-method-detail__label {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 8px;
}

.api-method-params {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.api-method-param {
    font-size: 12px;
    background: #f3f4f6;
    color: #374151;
    padding: 4px 9px;
    border-radius: 8px;
}

.api-method-param.is-required {
    background: #dbeafe;
    color: #1d4ed8;
}

.api-method-sample {
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    line-height: 1.5;
    background: #0f172a;
    color: #e2e8f0;
    padding: 12px 14px;
    border-radius: 10px;
    word-break: break-all;
    position: relative;
}

.api-method-copy {
    margin-top: 8px;
    border: none;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 8px;
    cursor: pointer;
}

.api-method-copy:hover {
    background: #dbeafe;
}

.api-docs-empty {
    display: none;
    text-align: center;
    padding: 48px 20px;
    color: #6b7280;
    background: #fff;
    border-radius: 16px;
    border: 1px dashed #d1d5db;
}

.api-docs-empty.is-visible {
    display: block;
}

.api-docs-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 28px;
    margin-bottom: 20px;
}

.api-docs-panel h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 14px;
}

.api-docs-panel p,
.api-docs-panel li {
    color: #4b5563;
    line-height: 1.6;
}

.api-docs-code {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px;
    overflow-x: auto;
    font-size: 13px;
    margin: 12px 0;
}

.api-docs-limits-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.api-docs-limit-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 16px;
}

.api-docs-limit-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px;
}

.api-docs-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.api-docs-price-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 22px;
    text-align: center;
}

.api-docs-price-card.is-featured {
    border-color: #3b82f6;
    box-shadow: 0 10px 30px rgba(59, 130, 246, .12);
}

.api-docs-price-name {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: #111827;
}

.api-docs-price-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #2563eb;
    margin: 0 0 8px;
}

.api-docs-price-value--violet {
    color: #6d28d9;
}

.api-docs-price-desc {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.api-docs-price-link {
    display: inline-block;
    margin-top: 16px;
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.api-docs-price-link:hover {
    text-decoration: underline;
}

.api-docs-price-link--violet {
    color: #6d28d9;
}

.api-docs-price-card--extra-plus {
    border-color: #c4b5fd;
    background: linear-gradient(180deg, #faf5ff 0%, #fff 100%);
}

.api-docs-test-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.api-docs-test-table th,
.api-docs-test-table td {
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 8px;
    text-align: left;
}

.api-docs-back {
    margin-top: 32px;
    font-size: 14px;
    color: #6b7280;
}

.api-docs-back a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.api-docs-back a:hover {
    text-decoration: underline;
}

.api-docs-pricing-note {
    margin: 16px 0 0;
    font-size: 0.9375rem;
    color: #64748b;
    text-align: center;
}

@media (max-width: 1024px) {
    .api-docs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .api-docs-pricing-grid {
        grid-template-columns: 1fr;
    }
}

.api-method-card--link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.api-method-card--link:hover {
    border-color: #93c5fd;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
    transform: translateY(-1px);
}

.api-method-params--preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.api-method-card__more {
    display: inline-block;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 600;
    color: #2563eb;
}

/* Endpoint detail page */

.api-docs-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #6b7280;
}

.api-docs-breadcrumb a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.api-docs-breadcrumb a:hover {
    text-decoration: underline;
}

.api-docs-breadcrumb .sep {
    color: #cbd5e1;
}

.api-endpoint-hero {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 28px;
}

.api-endpoint-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.api-endpoint-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    color: #111827;
    line-height: 1.25;
}

.api-endpoint-hero__desc {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.65;
    color: #4b5563;
    max-width: 900px;
}

.api-endpoint-method-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.api-endpoint-path {
    flex: 1 1 280px;
    font-size: 13px;
    background: #0f172a;
    color: #e2e8f0;
    padding: 10px 14px;
    border-radius: 10px;
    word-break: break-all;
}

.api-endpoint-notes ul {
    margin: 0;
    padding-left: 18px;
}

.api-endpoint-notes li + li {
    margin-top: 6px;
}

.api-param-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.api-param-list--compact {
    margin-bottom: 18px;
}

.api-param-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 16px;
}

.api-param-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.api-param-name {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 6px;
}

.api-param-type {
    font-size: 12px;
    color: #2563eb;
    font-weight: 600;
}

.api-param-req {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 999px;
    padding: 2px 8px;
}

.api-param-opt {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 2px 8px;
}

.api-param-desc {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.55;
    color: #4b5563;
}

.api-param-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: #6b7280;
}

.api-param-meta span {
    font-weight: 600;
    margin-right: 4px;
}

.api-param-meta code {
    background: #f3f4f6;
    padding: 1px 6px;
    border-radius: 4px;
    color: #111827;
}

.api-endpoint-sample-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}

.api-endpoint-sample-head.mt-4 {
    margin-top: 16px;
}

.api-response-tabs {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.api-response-tabs__nav {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: 0 8px;
}

.api-response-tab {
    appearance: none;
    border: none;
    background: transparent;
    padding: 14px 20px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    border-radius: 8px 8px 0 0;
}

.api-response-tab.is-active {
    color: #16a34a;
    border-bottom-color: #16a34a;
    background: #fff;
}

.api-response-tab[data-tab="error"].is-active {
    color: #dc2626;
    border-bottom-color: #dc2626;
}

.api-response-panel {
    padding: 22px 24px 26px;
}

.api-response-subtitle {
    margin: 0 0 14px;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.api-endpoint-pager {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: stretch;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.api-endpoint-pager__link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    color: inherit;
}

.api-endpoint-pager__link.is-next {
    text-align: right;
    justify-self: end;
}

.api-endpoint-pager__link span {
    font-size: 12px;
    color: #6b7280;
}

.api-endpoint-pager__link strong {
    font-size: 14px;
    color: #111827;
}

.api-endpoint-pager__link:hover {
    border-color: #93c5fd;
}

.api-endpoint-pager__index {
    align-self: center;
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.api-endpoint-pager__index:hover {
    text-decoration: underline;
}

@media (max-width: 720px) {
    .api-schema-node__row {
        grid-template-columns: 28px 1fr;
        grid-template-areas:
            "toggle name"
            ". type"
            ". body";
    }

    .api-schema-node__toggle,
    .api-schema-node__spacer {
        grid-area: toggle;
    }

    .api-schema-node__name {
        grid-area: name;
    }

    .api-schema-node__type {
        grid-area: type;
    }

    .api-schema-node__body {
        grid-area: body;
    }

    .api-schema-table thead {
        display: none;
    }

    .api-schema-table tbody tr {
        display: block;
        padding: 14px 16px;
        border-bottom: 1px solid #eef2f7;
    }

    .api-schema-table tbody td {
        display: block;
        padding: 4px 0;
        width: auto;
    }

    .api-schema-table__name {
        margin-bottom: 6px;
    }

    .api-schema-node__head {
        padding: 12px 14px;
    }

    .api-schema-node__children {
        margin-left: 18px;
        padding-left: 14px;
    }

    .api-schema-node__title-row {
        gap: 8px;
    }

    .api-endpoint-pager {
        grid-template-columns: 1fr;
    }
    .api-endpoint-pager__link.is-next {
        text-align: left;
        justify-self: stretch;
    }
}

@media (max-width: 640px) {
    .api-docs-wrap {
        padding-top: 8px;
    }
    .api-docs-grid,
    .api-docs-limits-grid {
        grid-template-columns: 1fr;
    }
}
