/* Documentation owns its layout; colors follow the site's shared theme. */
body.documentation { --theme-link: var(--theme-primary); background: var(--theme-bg); color: var(--theme-text); }
.docs-shell { font-family: 'DM Sans Variable', 'DM Sans', system-ui, sans-serif; line-height: 1.7; font-size: 15px; overflow-wrap: anywhere; }
.docs-shell *, .docs-shell *::before, .docs-shell *::after { box-sizing: border-box; }
.docs-shell [hidden] { display: none !important; }
.docs-shell a { color: var(--theme-link); }
.docs-shell a:focus-visible, .docs-shell button:focus-visible, .docs-shell summary:focus-visible, .docs-shell input:focus-visible, .docs-shell select:focus-visible, .docs-shell pre:focus-visible { outline: 3px solid var(--theme-primary); outline-offset: 3px; }
.docs-header { height: 76px; border-bottom: 1px solid var(--theme-border); background: var(--theme-surface); display: flex; align-items: center; gap: 36px; padding: 0 34px; position: sticky; top: 0; z-index: 20; }
.docs-brand { display: flex; align-items: center; gap: 10px; color: var(--theme-text) !important; white-space: nowrap; font-size: 18px; }
.docs-brand img { object-fit: contain; }
.docs-header-label { color: var(--theme-text-soft) !important; font-size: 13px; }
.docs-header-label span { color: var(--theme-border-strong); margin: 0 10px; }
.docs-header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 22px; font-size: 13px; font-weight: 600; }
.docs-theme { cursor: pointer; border: 1px solid var(--theme-border); border-radius: 8px; background: var(--theme-surface); color: var(--theme-muted); width: 34px; height: 34px; }
.docs-theme:hover { background: var(--theme-surface-hover); color: var(--theme-text); }
.docs-workspace { display: grid; grid-template-columns: 256px minmax(0, 820px) 210px; justify-content: center; max-width: 1536px; margin: auto; }
.docs-sidebar { background: var(--theme-sidebar); border-inline-end: 1px solid var(--theme-border); padding: 28px 22px; height: calc(100vh - 76px); position: sticky; top: 76px; overflow-y: auto; scrollbar-width: thin; }
.docs-navigation > summary { display: none; }
.docs-navigation:not([open]) > .docs-navigation-content { display: block; }
.docs-api-switch { display: grid; gap: 6px; margin-bottom: 24px; }
body.documentation .docs-shell .docs-api-switch a { display: block; padding: 9px 10px; border: 1px solid var(--theme-border); border-radius: 7px; color: var(--theme-text-soft); line-height: 1.4; text-decoration: none; }
.docs-api-switch strong { display: block; font-size: 13px; }
.docs-api-switch span { display: block; font-size: 11px; margin-top: 3px; }
body.documentation .docs-shell .docs-api-switch a[aria-current="true"] { background: var(--theme-action); color: #fff; border-color: var(--theme-action); }
body.documentation .docs-shell .docs-api-switch .docs-api-overview { font-size: 11px; border: 0; padding-top: 5px; }
.docs-workflow-note { font-size: 12px; margin: 14px 0 0; color: var(--theme-muted); }
.docs-sidebar-keys { display: grid; gap: 6px; padding: 0 10px 16px; font-size: 12px; }
.docs-search { margin-bottom: 26px; }
.docs-search label, .docs-example-filter label, .docs-example-choice label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; color: var(--theme-muted); }
.docs-search-input { position: relative; }
.docs-search input, .docs-example-filter input, .docs-example-choice select { width: 100%; background: var(--theme-input-bg); color: var(--theme-text); border: 1px solid var(--theme-border); border-radius: 7px; padding: 9px 11px; font-size: 12px; }
.docs-search input { padding-inline-end: 26px; }
.docs-search kbd { position: absolute; inset-inline-end: 9px; top: 8px; background: transparent; color: var(--theme-muted); box-shadow: none; }
.docs-search-results { margin-top: 10px; font-size: 12px; }
.docs-search-results a { display: block; padding: 9px; border-bottom: 1px solid var(--theme-border); }
.docs-search-results small { display: block; color: var(--theme-muted); }
.docs-nav-group { margin-bottom: 25px; }
.docs-nav-group h2, .docs-outline h2 { font: inherit; font-size: 11px; font-weight: 700; color: var(--theme-muted); text-transform: uppercase; letter-spacing: .09em; margin: 0 0 8px; margin-inline-start: 10px; }
body.documentation .docs-shell .docs-nav-group a { display: block; color: var(--theme-text-soft); padding: 6px 10px; border-radius: 6px; font-size: 13px; line-height: 1.5; margin: 2px 0; }
body.documentation .docs-shell .docs-nav-group a:hover, body.documentation .docs-shell .docs-nav-group a:focus-visible { background: var(--theme-surface-hover); color: var(--theme-text); text-decoration: none; }
body.documentation .docs-shell .docs-nav-group a[aria-current="page"] { color: #fff; background: var(--theme-action); font-weight: 700; box-shadow: inset 3px 0 var(--theme-nav-indicator); }
.docs-sidebar-footer { display: block; border-top: 1px solid var(--theme-border); padding: 20px 10px 4px; font-size: 12px; }
.docs-main { padding: 46px 48px 24px; min-width: 0; }
.docs-main:focus { outline: none; }
.docs-page-heading { margin-bottom: 30px; padding-bottom: 26px; border-bottom: 1px solid var(--theme-border); }
.docs-eyebrow { color: var(--theme-primary); font-size: 12px; font-weight: 700; margin-bottom: 16px; }
.docs-eyebrow span { border: 1px solid var(--theme-border); border-radius: 5px; padding: 2px 7px; color: var(--theme-muted); margin-inline-start: 12px; font-size: 10px; }
.docs-page-heading h1 { color: var(--theme-text); font-size: clamp(29px, 3vw, 38px); font-weight: 650; letter-spacing: -.035em; line-height: 1.18; margin-bottom: 15px; }
.docs-description { font-size: 17px; color: var(--theme-muted); line-height: 1.65; margin: 0; }
.docs-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 28px; }
.docs-paths a { background: var(--theme-surface); border: 1px solid var(--theme-border); border-radius: 10px; padding: 19px; display: flex; flex-direction: column; gap: 7px; }
.docs-paths a:hover { border-color: var(--theme-primary); text-decoration: none; background: var(--theme-info-soft); }
.docs-paths strong { color: var(--theme-text); font-size: 14px; }
.docs-paths span { color: var(--theme-muted); font-size: 12px; }
.docs-paths .docs-path-icon { color: var(--theme-primary); font: 600 21px ui-monospace, monospace; margin-bottom: 8px; }
.docs-prose p { margin-bottom: 20px; }
.docs-prose h2 { font-size: 23px; letter-spacing: -.02em; font-weight: 650; margin: 42px 0 17px; scroll-margin-top: 100px; }
.docs-prose h3 { font-size: 18px; font-weight: 650; margin: 28px 0 14px; scroll-margin-top: 100px; }
.docs-prose li { padding-inline-start: 3px; margin-bottom: 8px; }
.docs-prose ul, .docs-prose ol { padding-inline-start: 24px; margin-bottom: 24px; }
.docs-prose a { text-decoration: underline; text-underline-offset: 3px; }
.docs-prose code { color: var(--theme-text); background: var(--theme-surface-muted); border: 1px solid var(--theme-border); padding: 2px 5px; border-radius: 4px; font-size: .85em; overflow-wrap: anywhere; }
.docs-prose table { border-collapse: collapse; width: 100%; margin: 20px 0 26px; font-size: 13px; }
.docs-prose th { background: var(--theme-surface-muted); color: var(--theme-text); font-weight: 650; }
.docs-prose th, .docs-prose td { padding: 12px 14px; border-bottom: 1px solid var(--theme-border); text-align: start; vertical-align: top; }
.docs-prose table p { margin: 0; }
.docs-table-scroll { overflow-x: auto; max-width: 100%; margin-bottom: 24px; }
.docs-table-scroll table { margin-bottom: 0; }
.docs-prose blockquote { border: 1px solid var(--theme-info-border); border-inline-start: 3px solid var(--theme-primary); background: var(--theme-info-soft); border-radius: 6px; padding: 16px 20px; margin: 24px 0; color: var(--theme-text-soft); font-size: 14px; }
.docs-prose blockquote p:last-child { margin-bottom: 0; }
.docs-shell pre { background: var(--theme-code-bg); border: 1px solid var(--theme-border); color: var(--theme-text); border-radius: 8px; padding: 20px; margin: 20px 0 26px; overflow-x: auto; white-space: pre; font: 12px/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; tab-size: 2; direction: ltr; }
.docs-shell pre code { font: inherit; color: inherit; padding: 0; border: 0; background: transparent; white-space: pre; overflow-wrap: normal; }
.docs-code { min-width: 0; margin: 20px 0 26px; }
.docs-code pre { margin: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
.docs-code-toolbar { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--theme-border); border-bottom: 0; border-radius: 8px 8px 0 0; padding: 7px 12px; background: var(--theme-surface-muted); font-size: 11px; color: var(--theme-muted); }
.docs-code-toolbar button { border: 0; background: transparent; color: var(--theme-link); padding: 4px 7px; font-size: 12px; cursor: pointer; }
.docs-outline { position: sticky; top: 76px; height: calc(100vh - 76px); overflow-y: auto; padding: 47px 18px 20px 8px; font-size: 12px; scrollbar-width: thin; }
.docs-outline h2 { margin-inline-start: 0; }
body.documentation .docs-shell .docs-outline nav a { display: block; color: var(--theme-muted); border-inline-start: 1px solid var(--theme-border); padding: 6px 12px; line-height: 1.5; }
body.documentation .docs-shell .docs-outline nav a[aria-current] { color: var(--theme-primary); border-inline-start: 2px solid var(--theme-primary); }
.docs-outline .docs-outline-child { padding-inline-start: 24px; }
.docs-outline-help { border-top: 1px solid var(--theme-border); margin-top: 28px; padding-top: 20px; }
.docs-outline-help p { color: var(--theme-muted); margin: 8px 0; }
.docs-outline-help a { display: block; margin-top: 8px; }
.docs-pagination { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; border-top: 1px solid var(--theme-border); padding-top: 28px; margin-top: 48px; }
.docs-pagination a { display: flex; flex-direction: column; gap: 7px; }
.docs-pagination a:last-child { text-align: end; }
.docs-pagination span { font-size: 12px; color: var(--theme-muted); }
.docs-pagination strong { font-size: 14px; font-weight: 600; }
.docs-page-footer { margin-top: 46px; padding-top: 18px; border-top: 1px solid var(--theme-border); color: var(--theme-muted); font-size: 11px; display: flex; justify-content: space-between; gap: 12px; }
.docs-example { background: var(--theme-surface); margin: 12px 0; border: 1px solid var(--theme-border); border-radius: 8px; }
.docs-example summary { padding: 16px 18px; font-weight: 650; cursor: pointer; }
.docs-example summary span { float: inline-end; font-size: 11px; color: var(--theme-muted); font-weight: 400; }
.docs-example[open] summary { border-bottom: 1px solid var(--theme-border); }
.docs-example-body { padding: 18px; min-width: 0; }
.docs-example-body h3 { font-size: 17px; margin: 18px 0 10px; }
.docs-example-choice { max-width: 260px; margin-bottom: 18px; }
.docs-example-filter { margin: 24px 0; }
.docs-sample-endpoint { font: 12px/1.7 ui-monospace, monospace; overflow-wrap: anywhere; color: var(--theme-muted); }
.docs-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.docs-skip { position: fixed; left: 16px; top: -80px; padding: 12px 18px; background: var(--theme-surface); z-index: 50; border: 2px solid var(--theme-primary); }
.docs-skip:focus { top: 8px; }
@media (max-width: 1199px) { .docs-workspace { grid-template-columns: 235px minmax(0, 820px); } .docs-outline { display: none; } .docs-main { padding: 36px; } }
@media (max-width: 767.98px) {
    .docs-header { height: 62px; padding: 0 18px; gap: 14px; }
    .docs-brand { font-size: 15px; }
    .docs-brand img { width: 26px; height: 26px; }
    .docs-header-label, .docs-header-actions > a { display: none; }
    .docs-header-actions { gap: 12px; font-size: 12px; }
    .docs-workspace { display: block; }
    .docs-sidebar { position: static; height: auto; padding: 0; border-inline-end: 0; border-bottom: 1px solid var(--theme-border); }
    .docs-navigation > summary { display: list-item; padding: 13px 22px; font-size: 13px; cursor: pointer; }
    .docs-navigation:not([open]) > .docs-navigation-content { display: none; }
    .docs-navigation-content { padding: 14px 22px; max-height: 65vh; overflow-y: auto; }
    .docs-main { padding: 28px 20px 20px; }
    .docs-page-heading h1 { font-size: 30px; }
    .docs-description { font-size: 16px; }
    .docs-paths { grid-template-columns: 1fr; }
    .docs-prose h2 { font-size: 22px; margin-top: 34px; scroll-margin-top: 80px; }
    .docs-prose table { font-size: 12px; }
    .docs-prose th, .docs-prose td { padding: 10px; min-width: 110px; }
    .docs-prose td:first-child code { white-space: nowrap; }
    .docs-shell pre { padding: 15px; font-size: 11px; }
    .docs-example summary span { float: none; display: block; margin-inline-start: 16px; }
    .docs-example-body { padding: 12px; }
    .docs-page-footer { flex-direction: column; }
}
@media print { .docs-header, .docs-sidebar, .docs-outline, .docs-pagination, .docs-code-toolbar { display: none; } .docs-workspace { display: block; } .docs-main { padding: 0; } .docs-shell pre { white-space: pre-wrap; overflow-wrap: anywhere; } }
.docs-prose table { display: block; overflow-x: auto; }
.docs-example { scroll-margin-top: 90px; }

.docs-mobile-outline { display: none; }
@media (max-width: 1199px) {
    .docs-mobile-outline { background: var(--theme-surface); display: block; margin: 0 0 28px; padding: 12px 16px; border: 1px solid var(--theme-border); border-radius: 7px; font-size: 13px; }
    .docs-mobile-outline summary { cursor: pointer; font-weight: 600; }
    .docs-mobile-outline nav { padding-top: 10px; }
    .docs-mobile-outline a { display: block; padding: 6px 0; }
}

/* Keep protocol values and copyable commands left-to-right inside RTL prose. */
.docs-prose code, .docs-sample-endpoint { direction: ltr; unicode-bidi: isolate; }
.docs-prose :not(pre) > code { display: inline-block; max-width: 100%; vertical-align: baseline; }
.docs-shell pre, .docs-sample-endpoint { text-align: left; }
.docs-shell[dir="rtl"] .docs-nav-group a[aria-current="page"] { box-shadow: inset -3px 0 var(--theme-nav-indicator); }
