/* Public API docs — /developers (2026-09-22) */
main.dx-page { background: var(--rv-page, #fbfbfd); padding: 34px 20px 90px; color: #16161d; }
.dx-wrap { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 40px; align-items: start; }
.dx-nav { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 120px); overflow-y: auto; padding-right: 6px; }
.dx-nav__group { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #8e8ea3; margin: 16px 0 6px; }
.dx-nav__group:first-child { margin-top: 0; }
.dx-nav a { display: flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: #3f3f50; text-decoration: none; }
.dx-nav a:hover { background: #f0effa; color: #5b4dd1; text-decoration: none; }
.dx-nav a.is-on { background: #f0effa; color: #5b4dd1; }
.dx-m { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .04em; padding: 2px 6px; border-radius: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.dx-m--get { background: #e8f8f1; color: #00915f; }
.dx-m--post { background: #eef2ff; color: #4338ca; }
.dx-m--del { background: #fef3f2; color: #b42318; }
.dx-m--put { background: #fff6e5; color: #b54708; }

.dx-main { min-width: 0; }
.dx-sec { padding: 8px 0 34px; border-bottom: 1px solid #ececf4; margin-bottom: 30px; scroll-margin-top: 96px; }
.dx-sec:last-child { border-bottom: none; }
.dx-eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .1em; color: #5b4dd1; background: #f0effa; border: 1px solid #ddd6fe; border-radius: 999px; padding: 5px 12px; }
.dx-h1 { margin: 14px 0 12px; font-size: clamp(30px, 4.4vw, 44px); line-height: 1.08; font-weight: 800; letter-spacing: -.035em; }
.dx-h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 24px; font-weight: 800; letter-spacing: -.025em; }
.dx-h2 .dx-m { font-size: 12px; padding: 4px 8px; }
.dx-lead { font-size: 17px; line-height: 1.65; color: #4a4a5c; margin: 0 0 18px; }
.dx-sec p, .dx-list, .dx-steps { font-size: 15px; line-height: 1.7; color: #3f3f50; }
.dx-sec a { color: #5b4dd1; font-weight: 600; }
.dx-sec code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: #f0effa; color: #4c3fb8; padding: 1px 6px; border-radius: 6px; }
.dx-label { font-size: 13px !important; font-weight: 800; color: #16161d !important; margin: 16px 0 6px; }
.dx-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.dx-facts div { background: #fff; border: 1px solid #ececf4; border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dx-facts span { font-size: 11.5px; font-weight: 700; color: #8e8ea3; text-transform: uppercase; letter-spacing: .06em; }
.dx-facts code { background: none !important; padding: 0 !important; color: #16161d !important; font-weight: 700; overflow-wrap: anywhere; }
.dx-list { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.dx-steps { padding-left: 22px; display: flex; flex-direction: column; gap: 14px; }

pre.dx-code { position: relative; margin: 10px 0 14px; padding: 16px 18px; border-radius: 14px; background: #16161d; overflow-x: auto; }
pre.dx-code code { background: none !important; color: #e4e4ef !important; padding: 0 !important; font-size: 13px; line-height: 1.65; white-space: pre; display: block; }
.dx-copy { position: absolute; top: 10px; right: 10px; font: inherit; font-size: 11.5px; font-weight: 700; color: #c4c4d6; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 8px; padding: 4px 10px; cursor: pointer; }
.dx-copy:hover { color: #fff; background: rgba(255,255,255,.14); }

.dx-table-wrap { overflow-x: auto; margin: 8px 0 14px; border: 1px solid #ececf4; border-radius: 14px; background: #fff; }
.dx-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dx-table th { text-align: left; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #8e8ea3; padding: 10px 14px; border-bottom: 1px solid #ececf4; background: #fafaff; }
.dx-table td { padding: 11px 14px; border-bottom: 1px solid #f0f0f7; color: #3f3f50; vertical-align: top; line-height: 1.55; }
.dx-table tr:last-child td { border-bottom: none; }
.dx-table td:first-child { white-space: nowrap; }

.dx-flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 12px 0 16px; }
.dx-flow div { background: #fff; border: 1px solid #ececf4; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: #5c5c70; line-height: 1.45; }
.dx-flow div code { align-self: flex-start; }
.dx-flow--bad code { background: #fef3f2 !important; color: #b42318 !important; }

.dx-tabs__bar { display: flex; gap: 4px; margin-bottom: -4px; }
.dx-tabs__bar button { font: inherit; font-size: 13px; font-weight: 700; color: #6b6b80; background: #f0f0f7; border: 1px solid #ececf4; border-bottom: none; border-radius: 10px 10px 0 0; padding: 8px 14px; cursor: pointer; }
.dx-tabs__bar button.is-on { background: #16161d; color: #fff; border-color: #16161d; }
.dx-tabs pre.dx-code { border-top-left-radius: 0; margin-top: 0; }

.dx-cta { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 22px; border-radius: 20px; background: #16161d; color: #fff; }
.dx-cta b { display: block; font-size: 17px; }
.dx-cta span { font-size: 13px; color: #a3a3b8; }
a.dx-btn { display: inline-flex; padding: 12px 20px; border-radius: 999px; background: linear-gradient(120deg, #5850ec, #8b5cf6); color: #fff !important; font-weight: 800; font-size: 14px; text-decoration: none; }

[data-theme="dark"] main.dx-page { background: var(--rv-page); color: #f3f3f8; }
[data-theme="dark"] .dx-h1, [data-theme="dark"] .dx-h2, [data-theme="dark"] .dx-label { color: #f3f3f8 !important; }
[data-theme="dark"] .dx-lead, [data-theme="dark"] .dx-sec p, [data-theme="dark"] .dx-list, [data-theme="dark"] .dx-steps, [data-theme="dark"] .dx-table td, [data-theme="dark"] .dx-flow div { color: #b4b4c8; }
[data-theme="dark"] .dx-nav a { color: #c4c4d6; }
[data-theme="dark"] .dx-nav a:hover, [data-theme="dark"] .dx-nav a.is-on { background: rgba(139,92,246,.16); color: #c4b5fd; }
[data-theme="dark"] .dx-facts div, [data-theme="dark"] .dx-table-wrap, [data-theme="dark"] .dx-flow div { background: var(--rv-surface, #1c1c28); border-color: var(--rv-border, #2c2c3c); }
[data-theme="dark"] .dx-table th { background: rgba(255,255,255,.03); border-color: var(--rv-border, #2c2c3c); }
[data-theme="dark"] .dx-table td { border-color: var(--rv-border, #2c2c3c); }
[data-theme="dark"] .dx-facts code { color: #f3f3f8 !important; }
[data-theme="dark"] .dx-sec code { background: rgba(139,92,246,.16); color: #c4b5fd; }
[data-theme="dark"] .dx-sec { border-color: var(--rv-border, #2c2c3c); }

@media (max-width: 980px) {
    .dx-wrap { grid-template-columns: 1fr; }
    .dx-nav { position: static; max-height: none; flex-direction: row; flex-wrap: wrap; gap: 6px; padding: 0; }
    .dx-nav__group { display: none; }
    .dx-nav a { background: #fff; border: 1px solid #ececf4; }
    .dx-flow { grid-template-columns: 1fr 1fr; }
    .dx-facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .dx-flow { grid-template-columns: 1fr; } }
