/* carbium.sh/docs and the legal pages (docs.js, legal.js): the landing's family, under its header and footer (landing.css), on the cui tokens. */

.cw-docs { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100dvh; overflow: hidden; }
.cw-docs-main { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
/* /terms, /privacy and /docs as nginx sends them (legal-render.js): the text in the view's bar and footer. A reader that runs no script
   (no data-theme: boot-theme.js stamps it) keeps the links and loses every button and the latency pill, which need one. Where scripts
   run, the stamp lands before the first paint, in every browser: the text goes, its box keeps the page's row, and the view's first mount
   replaces the frame. Signed in (cw-session), the frame holds back the call to action until the view's (Dashboard), and a legal page,
   the dashboard then, all of it. */
.cw-noscript button, :root:not([data-theme]) [data-static] :is(button, .cw-ch-lat) { display: none; }
[data-theme] .cw-noscript > * { display: none; }
.cw-session [data-static] .ch-right > .c-btn--primary, .cw-session [data-static="out"] { visibility: hidden; }

.cw-docs-doc { width: 100%; max-width: 1180px; margin: 0 auto; padding: var(--c-s-10) var(--c-s-10) var(--c-s-12); }

.cw-docs-head { display: flex; align-items: baseline; gap: var(--c-s-7); flex-wrap: wrap; padding: var(--c-s-8) 0 var(--c-s-6); border-bottom: 1px solid var(--c-line-soft); }
.cw-docs-h1 { margin: 0; font-family: var(--c-font-display); font-weight: 700; font-size: clamp(30px, 4vw, 42px); line-height: 1.05; letter-spacing: -.03em; color: var(--c-text); }

.cw-kick { display: block; font-family: var(--c-font-mono); font-weight: 500; font-size: 11px; line-height: 1; letter-spacing: .14em; text-transform: uppercase; color: var(--c-faint); }
.cw-kick b { color: var(--c-brand-tint); font-weight: 500; }   /* the tint: brand purple as text reads 4.5:1 in both themes */
.cw-kick.red b { color: var(--c-stream-tint); }

.cw-docs-grid { display: grid; grid-template-columns: minmax(186px, max-content) minmax(0, 1fr); gap: var(--c-s-12); padding-top: var(--c-s-10); align-items: start; }
.cw-docs-aside { position: sticky; top: var(--c-s-8); align-self: start; }
.cw-dx-t { font-family: var(--c-font-mono); font-weight: 500; font-size: 11px; line-height: 1; letter-spacing: .14em; text-transform: uppercase; color: var(--c-faint); margin: 0 0 var(--c-s-6); padding-bottom: var(--c-s-5); border-bottom: 1px solid var(--c-line-soft); }
.cw-dx { display: flex; flex-direction: column; gap: 1px; white-space: nowrap; }   /* a TOC entry is a nav item: one line; its column grows to fit */
.cw-dx-a { display: flex; align-items: center; gap: var(--c-s-4); font-family: var(--c-font-body); font-size: 13.5px; line-height: 1.2; color: var(--c-muted); padding: var(--c-s-2) var(--c-s-4); border-radius: var(--c-r-ctl); border-left: 2px solid transparent; text-decoration: none; transition: color var(--c-dur-2) var(--c-ease), border-color var(--c-dur-2) var(--c-ease), background var(--c-dur-2) var(--c-ease); }
/* faint, not ghost: the # / > sigil is rendered text and owes 4.5:1 like any content. A plane's section carries its plane's
   identity hue, the one every plane dot on the site uses, as an 8px square in the sigil's place and as its active rule. The
   label names the section and the active entry also turns --c-text, so the hue is context only (on a light page the quote gold
   is 1.8:1 as a mark). */
.cw-dx-a .cw-dx-h { flex: none; width: 8px; text-align: center; font-family: var(--c-font-mono); font-size: 12px; color: var(--c-faint); font-weight: 600; }
.cw-dx-a[data-p="rpc"] { --_h: var(--c-brand); }
.cw-dx-a[data-p="ws"] { --_h: var(--c-ws); }
.cw-dx-a[data-p="stream"] { --_h: var(--c-stream); }
.cw-dx-a[data-p="quote"] { --_h: var(--c-quote); }
.cw-dx-a[data-p="das"] { --_h: var(--c-das); }
.cw-dx-h.is-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--_h, var(--_g, var(--c-faint))); }   /* the bullet (item 110: no "#"): its plane, else its group's hue */
.cw-dx-a:hover { color: var(--c-text); background: var(--c-row-hover); }
.cw-dx-a:hover .cw-dx-h { color: var(--c-brand-tint); }
.cw-dx-a.is-active, .cw-dx-a.is-on, .cw-dx-a[aria-current="page"] { color: var(--c-text); background: color-mix(in srgb, var(--_h, var(--c-brand)) 14%, var(--c-raised)); border-left-color: var(--_h, var(--c-brand)); }
.cw-dx-a.is-active .cw-dx-h, .cw-dx-a.is-on .cw-dx-h, .cw-dx-a[aria-current="page"] .cw-dx-h { color: var(--c-text); }
.cw-dx-a:focus-visible { outline: none; box-shadow: var(--c-focus); }
.cw-dxr { margin-top: var(--c-s-8); padding-top: var(--c-s-7); border-top: 1px solid var(--c-line-soft); }
.cw-dx-cta { margin-top: var(--c-s-6); width: 100%; }

.cw-docs-body { min-width: 0; }
.cw-sec { padding-top: var(--c-s-9); margin-bottom: var(--c-s-12); scroll-margin-top: var(--c-s-6); }
.cw-sec:last-child { margin-bottom: 0; }
.cw-sec-h { display: flex; align-items: flex-end; gap: var(--c-s-7); flex-wrap: wrap; margin-bottom: var(--c-s-9); }
.cw-sec-h .cw-kick, .cw-docs-head .cw-kick { flex: none; }
.cw-h2 { flex: 0 1 auto; margin: 0; font-family: var(--c-font-display); font-weight: 700; font-size: 28px; line-height: 1.15; letter-spacing: -.025em; color: var(--c-text); }
.cw-sh-note { font-family: var(--c-font-body); font-size: 12.5px; line-height: 1.5; color: var(--c-muted); margin: 0 0 3px; }
.cw-sec-lead { color: var(--c-muted); font-size: 13.5px; line-height: 1.6; max-width: 66ch; margin: 0 0 var(--c-s-9); }

.cw-inl { font-family: var(--c-font-mono); font-size: 12px; color: var(--c-brand-tint); background: var(--c-surface-2); border: 1px solid var(--c-line-soft); border-radius: var(--c-r-ctl); padding: 2px 6px; }
.cw-inl.r { color: var(--c-stream-tint); }
.cw-inl.b { color: var(--c-ws-tint); }
.cw-alink { color: var(--c-brand-tint); text-decoration: none; }
.cw-alink:hover { text-decoration: underline; text-underline-offset: 3px; }
.cw-alink:focus-visible { outline: none; box-shadow: var(--c-focus); border-radius: var(--c-r-ctl); }
.cw-alink.red { color: var(--c-stream-tint); }
.cw-subh { font-family: var(--c-font-mono); font-weight: 500; font-size: 10.5px; line-height: 1; letter-spacing: .1em; text-transform: uppercase; color: var(--c-faint); margin: var(--c-s-10) 0 var(--c-s-6); }

.cw-win { background: var(--c-surface); border: 1px solid var(--c-line); overflow: hidden; }
.cw-win-bar { display: flex; align-items: center; justify-content: space-between; height: 30px; padding: 0 var(--c-s-6); background: var(--c-raised); border-bottom: 1px solid var(--c-line); }
.cw-win-path { font-family: var(--c-font-mono); font-weight: 500; font-size: 11px; letter-spacing: .06em; color: var(--c-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-win-path b { color: var(--c-muted); font-weight: 500; }
.cw-win.is-rpc .cw-win-path b { color: var(--c-brand-tint); }
.cw-win.is-ws .cw-win-path b { color: var(--c-ws-tint); }
.cw-win.is-stream .cw-win-path b { color: var(--c-stream-tint); }
.cw-win.is-quote .cw-win-path b { color: var(--c-quote-tint); }
.cw-win-sq { display: flex; gap: 5px; flex: none; margin-left: var(--c-s-6); }
.cw-win-sq i { width: 8px; height: 8px; border-radius: 50%; background: var(--c-line-2); display: block; }
.cw-win-body { padding: var(--c-s-10); }

.cw-eplist { display: flex; flex-direction: column; gap: var(--c-s-5); }
/* scoped: dashboard.css declares its own .cw-eprow and docs.css loads last */
.cw-eplist .cw-eprow { display: flex; align-items: center; gap: var(--c-s-7); background: var(--c-surface-2); border: 1px solid var(--c-line-soft); padding: var(--c-s-5) var(--c-s-6); }
.cw-ep-dot { width: 7px; height: 7px; flex: none; }
.cw-eprow.is-rpc .cw-ep-dot { background: var(--c-brand); }
.cw-eprow.is-ws .cw-ep-dot { background: var(--c-ws); }
.cw-eprow.is-stream .cw-ep-dot { background: var(--c-stream); }
.cw-eprow.is-quote .cw-ep-dot { background: var(--c-quote); }
.cw-ep-lbl { font-family: var(--c-font-mono); font-weight: 500; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--c-faint); min-width: 130px; white-space: nowrap; flex: none; }
.cw-ep-val { flex: 1; font-family: var(--c-font-mono); font-size: 13px; word-break: break-all; }
.cw-eprow.is-rpc .cw-ep-val { color: var(--c-brand-tint); }
.cw-eprow.is-ws .cw-ep-val { color: var(--c-ws-tint); }
.cw-eprow.is-stream .cw-ep-val { color: var(--c-stream-tint); }
/* the dot fills with the identity hue; text takes the tint, the split every plane row keeps */
.cw-eprow.is-quote .cw-ep-val { color: var(--c-quote-tint); }
.cw-eplist .cw-eprow .c-copy { flex: none; margin-left: auto; }

.cw-tt-wrap { overflow-x: auto; container: tt / inline-size; }
.cw-tt { width: 100%; border-collapse: collapse; font-family: var(--c-font-mono); font-size: 12px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.cw-tt th { font-weight: 500; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-faint); text-align: right; padding: var(--c-s-5) var(--c-s-7); border-bottom: 1px solid var(--c-line-2); white-space: nowrap; }
.cw-tt td { padding: var(--c-s-5) var(--c-s-7); text-align: right; border-bottom: 1px solid var(--c-line-soft); color: var(--c-muted); white-space: nowrap; vertical-align: top; }   /* a label sits by its row's first line, not mid-way down a wrapped one */
.cw-tt td.p { white-space: normal; }   /* a long plain-text cell wraps; every other cell is a label (docs.js ttTable) */
.cw-tt td.p .cw-inl { overflow-wrap: anywhere; }   /* a long path or name in a wrapping cell breaks inside it, never widening the table past a phone */
.cw-tt td .cw-ui { font-weight: 600; color: var(--c-text); white-space: nowrap; }   /* a dashboard button's name in a guide step: one line, as on screen */
/* a narrow column (a phone): each row stacks, every value under its column's name (data-label, docs.js ttTable), so no column starts
   off-screen and no URL is cut; the head row's names move into the rows */
@media (max-width: 1199px) {   /* docked index (1200 px up): a table keeps its columns; with the drawer, rows stack below 860 px of their box */
@container tt (width < 860px) {
  .cw-tt thead { display: none; }
  .cw-tt, .cw-tt tbody, .cw-tt tr, .cw-tt td { display: block; }
  .cw-tt tr { padding: var(--c-s-3) 0; border-bottom: 1px solid var(--c-line-soft); }
  .cw-tt td, .cw-tt.lft td { padding: var(--c-s-2) var(--c-s-7); border-bottom: 0; text-align: left; white-space: normal; overflow-wrap: anywhere; }
  .cw-tt td:empty { display: none; }
  .cw-tt td[data-label]::before { content: attr(data-label); display: block; font-weight: 500; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-faint); }   /* a long name wraps in its cell */
}}

/* the glossary: a term in the prose opens its tip (docs-more.js tips); the tip opens and closes as the header's latency popover does */
.cw-term { color: inherit; text-decoration: underline dotted; text-decoration-color: var(--c-faint); text-underline-offset: 3px; cursor: help; }
.cw-term:hover, .cw-term[aria-expanded="true"] { text-decoration-color: currentColor; }
.cw-tip { width: min(320px, calc(100vw - 32px)); font: 400 13px/1.5 var(--c-font-body); text-align: left; opacity: 0; transform: translateY(-4px);
  transition: opacity var(--c-dur-2) var(--c-ease), transform var(--c-dur-2) var(--c-ease), display var(--c-dur-2), overlay var(--c-dur-2); transition-behavior: allow-discrete; }
.cw-tip:popover-open { animation: none; opacity: 1; transform: none; transition-duration: var(--c-dur-3); transition-timing-function: var(--c-ease-out); }
@starting-style { .cw-tip:popover-open { opacity: 0; transform: translateY(-4px); } }
.cw-tip-n { margin-right: var(--c-s-2); font: 500 11px/1 var(--c-font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--c-text); }
.cw-gl { padding: var(--c-s-4) 0; border-bottom: 1px solid var(--c-line); }
.cw-gl-n { margin: 0; font-weight: 600; color: var(--c-text); }
.cw-gl-d { margin: var(--c-s-2) 0 0; }
.cw-gl-back { font-size: 12px; }
@media (prefers-reduced-motion: reduce) { .cw-tip, .cw-tip:popover-open { transition: none; transform: none; } }
.cw-tt th:first-child, .cw-tt td:first-child { text-align: left; }
.cw-tt.lft th, .cw-tt.lft td { text-align: left; }
.cw-tt td.k { color: var(--c-text); }
.cw-tt td.m { color: var(--c-brand-tint); }
.cw-tt td.m.r { color: var(--c-stream-tint); }
.cw-tt td.none { color: var(--c-ghost); }
.cw-tt td.wk { color: var(--c-faint); }
.cw-tt td.pro { color: var(--c-brand-tint); }
.cw-tt td .cw-tt-n { color: var(--c-text); }
.cw-tt td .cw-tt-n.r { color: var(--c-stream-tint); }
.cw-tt td .cw-tt-sub { display: block; margin-top: 2px; font-size: 10px; letter-spacing: .02em; color: var(--c-muted); white-space: nowrap; }
.cw-tt td.cw-faint, .cw-tt .cw-faint { color: var(--c-faint); }
.cw-tt tr:hover td { background: var(--c-row-hover); }
.cw-tt tr.cw-tt-grp td { color: var(--c-brand-tint); text-transform: uppercase; letter-spacing: .08em; font-size: 10.5px; padding-top: var(--c-s-8); border-bottom: none; }
.cw-tt tr.cw-tt-grp.red td { color: var(--c-stream-tint); }
.cw-tt tr.cw-tt-grp:hover td { background: none; }

.cw-bdg { display: inline-flex; align-items: center; font-family: var(--c-font-mono); font-weight: 500; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: var(--c-r-chip); border: 1px solid var(--c-line); background: var(--c-surface); }
.cw-bdg.tier-free { color: var(--c-faint); }
.cw-bdg.tier-dev { color: var(--c-muted); }
.cw-bdg.tier-buss { color: var(--c-ws-tint); }
.cw-bdg.tier-pro { color: var(--c-brand-tint); }
.cw-bdg.is-code { color: var(--c-danger-tint); border-color: var(--c-danger-line); background: var(--c-danger-wash); }

.cw-note { display: flex; gap: var(--c-s-6); background: var(--c-surface); border: 1px solid var(--c-line); border-left: 2px solid var(--c-line-2); padding: var(--c-s-6) var(--c-s-7); font-family: var(--c-font-mono); font-size: 12.5px; line-height: 1.6; color: var(--c-muted); margin-top: var(--c-s-8); }
.cw-note-g { color: var(--c-faint); font-weight: 600; flex: none; }
/* a flex item never shrinks under its longest token: an inline JSON or URL would widen the page on a phone */
.cw-note > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.cw-note a { color: var(--c-brand-tint); text-decoration: none; }
.cw-note a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cw-note.warn { border-left-color: var(--c-warn); } .cw-note.warn .cw-note-g { color: var(--c-warn); }
.cw-note.purple { border-left-color: var(--c-brand); } .cw-note.purple .cw-note-g { color: var(--c-brand-tint); }
.cw-note.red { border-left-color: var(--c-stream); } .cw-note.red .cw-note-g { color: var(--c-stream-tint); }

.cw-code2 { position: relative; background: var(--c-surface-2); padding: var(--c-s-7) var(--c-s-8); overflow: auto; }
.cw-code2.doc { height: 186px; padding: var(--c-s-8) var(--c-s-9); }
/* the SKILL.md window carries ~124 lines: a taller well, still capped inside the viewport */
.cw-code2.doc.is-tall { height: min(58vh, 560px); }
.cw-code2 pre { margin: 0; font-family: var(--c-font-mono); font-size: 12.5px; line-height: 1.7; white-space: break-spaces; overflow-wrap: anywhere; text-transform: none; color: var(--c-muted); }
.cw-code2 .cw-codeln { display: block; text-transform: none; letter-spacing: 0; }
.cw-code2 .cw-st { color: var(--c-brand-tint); }
.cw-code2 .cw-sr { color: var(--c-stream-tint); }
.cw-code2 .cw-sw { color: var(--c-ws-tint); }
.cw-code2 .cw-sq { color: var(--c-quote-tint); }
.cw-code2 .cw-fl { color: var(--c-ws-tint); }
.cw-code2 .cw-cm { color: var(--c-faint); }
.cw-code2.doc .c-copy { float: right; z-index: 1; margin: calc(var(--c-s-6) - var(--c-s-8)) calc(var(--c-s-6) - var(--c-s-9)) 0 var(--c-s-4); }   /* 12 px in from the top and right: its 44 px touch target ends at the well's edge, and the first line of code flows around it, never under it */
/* above the lines: c-linein (below) leaves each line a transform, and a later box with one paints over an unstacked button, so a real click hit the code */
@media (prefers-reduced-motion: no-preference) {
  .cw-code2 .cw-codeln { opacity: 0; animation: c-linein 500ms var(--c-ease-out) forwards; }
  .cw-code2 .cw-codeln:nth-child(1) { animation-delay: 50ms; }
  .cw-code2 .cw-codeln:nth-child(2) { animation-delay: 130ms; }
  .cw-code2 .cw-codeln:nth-child(3) { animation-delay: 210ms; }
  .cw-code2 .cw-codeln:nth-child(4) { animation-delay: 290ms; }
  .cw-code2 .cw-codeln:nth-child(5) { animation-delay: 370ms; }
  .cw-code2 .cw-codeln:nth-child(6) { animation-delay: 450ms; }
  .cw-code2 .cw-codeln:nth-child(7) { animation-delay: 530ms; }
  .cw-code2 .cw-codeln:nth-child(n+8) { animation-delay: 610ms; }
}

.cw-caps { display: flex; flex-wrap: wrap; align-items: center; gap: var(--c-s-5); margin-top: var(--c-s-8); }
.cw-cap { display: inline-flex; align-items: center; gap: var(--c-s-4); height: 28px; padding: 0 var(--c-s-6); border: 1px solid var(--c-line); border-radius: var(--c-r-chip); background: var(--c-surface); }
.cw-cap-dot { width: 6px; height: 6px; flex: none; }
.cw-cap-dot.is-p { background: var(--c-brand); }
.cw-cap-dot.is-ws { background: var(--c-ws); }
.cw-cap-dot.is-data { background: var(--c-info); }
.cw-cap-k { font-family: var(--c-font-mono); font-weight: 500; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-faint); }
.cw-cap-v { font-family: var(--c-font-mono); font-variant-numeric: tabular-nums; font-size: 12px; color: var(--c-text); }

.cw-docs-doc.cw-doc-embed { max-width: 100%; padding: 0; }
.cw-docs-doc.cw-doc-embed .cw-docs-aside { top: 0; }

@media (max-width: 860px) {
  .cw-docs-doc { padding: var(--c-s-8); }
  /* minmax(0,...), not 1fr: 1fr's auto minimum takes the nowrap chip row and blows the track */
  .cw-docs-grid { grid-template-columns: minmax(0, 1fr); gap: var(--c-s-8); padding-top: var(--c-s-8); }
  .cw-docs-aside { position: sticky; top: 0; z-index: 5; background: var(--c-bg); border-bottom: 1px solid var(--c-line-soft); padding: var(--c-s-3) 0; }
  .cw-dx-t, .cw-dxr, .cw-dx-cta { display: none; }
  .cw-dx { flex-direction: row; overflow-x: auto; gap: var(--c-s-4); }
  .cw-dx-a { flex-shrink: 0; white-space: nowrap; border-left: none; border-bottom: 2px solid transparent; min-height: 44px; align-items: center; }
  .cw-dx-a.is-active { border-left: none; border-bottom-color: var(--_h, var(--c-brand)); }
  .cw-sec { scroll-margin-top: 56px; } /* the aside is sticky here: 44px control + 12px padding */
}
@media (max-width: 560px) {
  .cw-eplist .cw-eprow { flex-wrap: wrap; }
  .cw-ep-lbl { width: auto; min-width: 0; }
  .cw-ep-val { flex-basis: 100%; }   /* the URL takes its own line under its label */
  .cw-eplist .cw-eprow .c-copy { margin-left: 0; }
}

/* quote try it: the form beside the request and response wells, one column under 860px */
.cw-try { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--c-s-8); padding: var(--c-s-8); }
.cw-try-form, .cw-try-io { display: flex; flex-direction: column; gap: var(--c-s-6); min-width: 0; }
.cw-try-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--c-s-6); }
.cw-try-row:first-child { grid-template-columns: minmax(0, 1fr); }
.cw-try-help { font-size: 11.5px; color: var(--c-faint); }
.cw-try-venues { display: flex; flex-direction: column; gap: var(--c-s-5); margin: 0; min-width: 0; padding: var(--c-s-5) var(--c-s-6) var(--c-s-6); border: 1px solid var(--c-line-soft); border-radius: var(--c-r-ctl); }
.cw-try-venues legend, .cw-try-cap { padding: 0 var(--c-s-2); margin: 0; font-family: var(--c-font-mono); font-weight: 500; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); }
.cw-try-chips { display: flex; flex-wrap: wrap; gap: var(--c-s-4); }
.cw-try-chips .c-chip { min-height: 32px; text-transform: none; letter-spacing: .02em; }
.cw-try-act, .cw-try-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--c-s-6); }
.cw-try-status { margin: 0; min-height: 1.6em; font-size: 12.5px; color: var(--c-muted); overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .cw-try { grid-template-columns: minmax(0, 1fr); padding: var(--c-s-6); }
}
@media (max-width: 560px) {
  .cw-try-row { grid-template-columns: minmax(0, 1fr); }
  .cw-try-chips .c-chip, .cw-try-act .c-btn { min-height: 44px; }
}

/* Intelligent Agents: the SKILL.md copy is the page's largest control (cui primary button, scaled up; full width on a phone). */
.cw-skill-cta { margin: var(--c-s-8) 0 var(--c-s-10); }
.cw-skill-copy { height: 56px; padding: 0 var(--c-s-12); gap: var(--c-s-6); font-size: 16px; font-weight: 600; }
.cw-skill-copy svg { width: 20px; height: 20px; }
.cw-skill-size { font-family: var(--c-font-mono); font-size: 12px; font-weight: 500; color: var(--c-muted); }
.cw-skill-copy.is-copied { border-color: var(--c-brand); background: var(--c-brand-wash); }
@media (max-width: 560px) { .cw-skill-copy { width: 100%; } }

/* /docs in the form the operator chose (mock B, 2026-11-21; docs.js bFrame): the index with search, and the reference (the sections,
   one scroller) with each section's try block in it. One screen at every width: each region scrolls inside. The no-script copy keeps
   the long column above. */
.cw-docs-main.is-b { overflow: clip; display: grid; }   /* clip, not hidden: a jump's scrollIntoView can never scroll the frame itself */
.cw-b { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; }
.cw-bbar { display: none; }
.cw-b-split { grid-row: 2; display: grid; grid-template-columns: 336px minmax(0, 1fr); min-height: 0; }   /* row 2 (1fr) at every width: with the bar hidden it would auto-place into row 1 and end at its content's height */   /* 336: the longest method leaf (getMinimumBalanceForRentExemption, 12px mono, in its group) and a scrollbar, on one line */
.cw-idx { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--c-line); background: rgb(from var(--c-surface) r g b / .6); }   /* the landing's waves show through the docked index */
.cw-idx-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--c-s-6) var(--c-s-9); }
.cw-grp { margin: var(--c-s-7) 0 var(--c-s-2); padding: 0 var(--c-s-4); font: 500 10.5px var(--c-font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--c-faint); white-space: nowrap; }
.cw-idx-list .cw-dx-a { white-space: nowrap; }
/* the index's groups: an icon and the plane's hue each, the method count as a pill in it; the open group and the section being
   read carry the hue (a left rule and a tint). Nested groups (RPC's tasks) take their plane's hue from the group above. */
.cw-fam[data-g] { --_g: var(--c-faint); --_gt: var(--c-muted); }
.cw-fam[data-g="quote"] { --_g: var(--c-quote); --_gt: var(--c-quote-tint); }
.cw-fam[data-g="stream"] { --_g: var(--c-stream); --_gt: var(--c-stream-tint); }
.cw-fam[data-g="websocket"] { --_g: var(--c-ws); --_gt: var(--c-ws-tint); }
.cw-fam[data-g="rpc"] { --_g: var(--c-brand); --_gt: var(--c-rpc-tint); }
.cw-fam[data-g="start"], .cw-fam[data-g="support"] { --_g: var(--c-brand); --_gt: var(--c-rpc-tint); }   /* every group its own hue (item 110) */
.cw-fam[data-g="das"], .cw-fam[data-g="webhooks"], .cw-fam[data-g="dashboard"] { --_g: var(--c-das); --_gt: var(--c-das-tint); }
.cw-fam[data-g="account"] { --_g: var(--c-quote); --_gt: var(--c-quote-tint); }
.cw-fam[data-g="reference"] { --_g: var(--c-ws); --_gt: var(--c-ws-tint); }
.cw-fam[data-g="libraries"] { --_g: var(--c-sdk); --_gt: var(--c-sdk-tint); }   /* /sdk's two groups (sdk.js) */
.cw-fam[data-g="tools"] { --_g: var(--c-das); --_gt: var(--c-das-tint); }
.cw-sdk-part { scroll-margin-top: var(--c-s-6); }
.cw-idx-list > .cw-fam > summary.cw-grp { font: 600 13.5px/1.2 var(--c-font-body); letter-spacing: 0; text-transform: none; color: var(--c-muted); }   /* a group named in reading case, as the library's */
.cw-idx-list > .cw-fam[open] > summary.cw-grp { color: var(--c-text); }
.cw-ico { display: inline-flex; flex: none; color: var(--_g, currentColor); }
.cw-ico svg { display: block; }
.cw-fam > summary { display: flex; align-items: center; gap: var(--c-s-4); list-style: none; cursor: pointer; padding: var(--c-s-3) var(--c-s-4); border-left: 2px solid transparent; border-radius: var(--c-r-ctl); }
.cw-fam[open] > summary { color: var(--c-text); border-left-color: var(--_g); background: color-mix(in srgb, var(--_g) 9%, transparent); }
.cw-fam .cw-fam > summary, .cw-fam .cw-fam[open] > summary { border-left-color: transparent; background: none; }
.cw-fam > summary::-webkit-details-marker { display: none; }
.cw-fam > summary::before { content: "\203A"; flex: none; width: 8px; }
.cw-fam[open] > summary::before { transform: rotate(90deg); }
.cw-fam > summary:hover { color: var(--c-muted); }
.cw-fam > summary:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--c-brand); }
.cw-fam-n { margin-left: auto; font-variant-numeric: tabular-nums; }
.cw-fam-n:not(:empty) { padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--_g) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--_g) 55%, transparent); color: var(--c-text); font: 600 10px/1.5 var(--c-font-mono); letter-spacing: .04em; }   /* the hue as fill and ring; the count in text colour, AA on every hue and theme */
.cw-fam-list { display: flex; flex-direction: column; gap: 1px; }
.cw-fam .cw-fam { margin-left: var(--c-s-4); }
.cw-fam .cw-fam > summary { margin: var(--c-s-4) 0 var(--c-s-2); letter-spacing: .1em; }
@media (pointer: coarse) { .cw-fam > summary { min-height: 44px; } }
.cw-idx-list .cw-dx-a.m { font-family: var(--c-font-mono); font-size: 12px; padding-left: calc(var(--c-s-4) + 14px); }
.cw-idx-list .cw-dx-a.m .cw-dx-h.is-dot { width: 5px; height: 5px; margin: 0 1px; background: none; box-shadow: inset 0 0 0 1.5px var(--_h, var(--_g, var(--c-faint))); }   /* a method or guide: a ring */
/* /docs's index is about four fifths of the 336 px the library keeps (his word 2026-11-22): its method leaves at 10.5px mono, level
   with the section names, so the longest (getMinimumBalanceForRentExemption) and a scrollbar still fit on one line in 280 px. */
@media (min-width: 1200px) { .cw-docs:not(.cw-lib) .cw-b-split { grid-template-columns: 280px minmax(0, 1fr); } }
.cw-docs:not(.cw-lib) .cw-idx-scroll { padding-inline: var(--c-s-4); }
.cw-docs:not(.cw-lib) .cw-fam .cw-fam { margin-left: 0; }
.cw-docs:not(.cw-lib) .cw-idx-list .cw-dx-a.m { font-size: 10.5px; padding-left: var(--c-s-5); }
/* room after /sdk's last part, so a link to any of them (#cli) lands at the column's top (a docs part has its own address instead) */
.cw-sdk .cw-docs-body::after { content: ""; display: block; height: calc(100dvh - 220px); }
.cw-b-ref { position: relative; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: var(--c-s-10) clamp(20px, 4vw, 56px) var(--c-s-12); }   /* positioned: its absolute status lines scroll and clip with it, never past the frame */
.cw-b-ref > * { max-width: 1036px; }
/* text walls justify at a reading measure, on this page only (the no-script copy and the legal pages share these classes) */
.cw-b-ref :is(.cw-sec-lead, .cw-note > span:last-child) { max-width: 76ch; text-align: justify; hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 6 3 2; text-wrap: pretty; text-align-last: start; }
.cw-b-ref .cw-inl { hyphens: manual; }   /* a method name or a path never takes an inserted hyphen */
.cw-b-ref .cw-note { border-top: 0; border-right: 0; border-bottom: 0; font-family: var(--c-font-body); font-size: 13px; }
.cw-start { padding-bottom: var(--c-s-10); margin-bottom: var(--c-s-8); }
.cw-start-h1 { margin: var(--c-s-5) 0 var(--c-s-8); font-family: var(--c-font-display); font-weight: 700; font-size: clamp(30px, 3vw, 42px); line-height: 1.05; letter-spacing: -.03em; color: var(--c-text); }
.cw-ep { display: grid; gap: var(--c-s-3); }
.cw-steps { display: grid; gap: var(--c-s-4); margin-top: var(--c-s-8); }
.cw-step { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: var(--c-s-6); width: 100%; min-height: 56px; padding: var(--c-s-6) var(--c-s-7); border: 1px solid var(--c-line); border-radius: var(--c-r-card); background: var(--c-surface-2); color: var(--c-text); text-align: left; cursor: pointer; font: inherit; }
.cw-step:hover { border-color: var(--c-line-2); }
.cw-step:focus-visible { outline: none; box-shadow: var(--c-focus); }
.cw-step:first-child { border-color: var(--c-brand-line); background: var(--c-brand-wash); }
.cw-step-n { font: 600 22px/1 var(--c-font-mono); letter-spacing: -.04em; color: var(--c-faint); }
.cw-step b { font: 600 15px var(--c-font-display); letter-spacing: -.01em; white-space: nowrap; }
.cw-step-go { font: 500 16px var(--c-font-mono); color: var(--c-faint); }
.cw-step:first-child :is(.cw-step-n, .cw-step-go) { color: var(--c-rpc-tint); }   /* purple as text: AA on the wash in both themes */
.cw-con { margin-top: var(--c-s-8); min-width: 0; }
.cw-sp { flex: 1; min-width: 0; }
.cw-con [hidden] { display: none; }   /* .c-pill's and .c-badge's display beat the browser's own [hidden] */
.cw-con-pick { display: flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; margin-bottom: var(--c-s-5); }
.cw-con-pick .c-seg-cell { flex: none; text-transform: none; letter-spacing: 0; font-size: 12px; }
.cw-con-row { display: flex; align-items: center; gap: var(--c-s-5); padding-bottom: var(--c-s-5); min-width: 0; }
.cw-con-row.cw-con-run { padding: var(--c-s-6) 0 0; flex-wrap: wrap; }   /* whole items move to the next line; the countdown never hides off the edge */
.cw-con-run .c-pill, .cw-con-run .c-badge, .cw-con-row .c-pill, .cw-run { white-space: nowrap; flex: none; }
.cw-b .c-btn[aria-disabled="true"] { background: var(--c-surface-2); border-color: var(--c-line); color: var(--c-faint); box-shadow: none; opacity: .38; cursor: not-allowed; }   /* spent or busy: still focusable, as .c-btn:disabled looks */
.cw-bare { text-transform: none; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.cw-con-tabs .c-seg-cell { white-space: nowrap; padding: var(--c-s-3) var(--c-s-6); }
@media (max-width: 860px) { .cw-con-pick { flex-wrap: wrap; overflow-x: visible; } }   /* a phone: whole method buttons move to the next row, none hides off the edge */
/* rings inside a box that clips its overflow sit inset, so the clip never cuts them */
:is(.cw-con-pick, .cw-con-tabs) .c-seg-cell:focus-visible, .cw-idx-list .cw-dx-a:focus-visible, .cw-con .cw-code2:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--c-brand); }
@media (pointer: coarse) { .cw-run, .cw-con .c-seg-cell { min-height: 44px; } }
/* the answer well holds its height before and after a Run, so the reference never jumps when an answer lands */
.cw-con-ans { display: grid; height: 168px; padding-top: var(--c-s-5); }
.cw-con-run[hidden] + .cw-con-ans { display: none; }
.cw-con-ans:empty::before { content: ""; border: 1px solid var(--c-line); background: var(--c-surface-2); }
.cw-con-ans .cw-code2.doc { height: auto; min-height: 0; border: 1px solid var(--c-line); }
.cw-scrim { display: none; }
/* search: the welcome field (a button that opens it), the bar's button under 1200px, and one overlay at the top centre (the whole
   frame at 859px and under) holding the combobox and its results; only the list scrolls */
.cw-q-open { display: flex; align-items: center; gap: var(--c-s-5); width: 100%; max-width: 640px; height: 44px; margin: 0 auto var(--c-s-8); padding: 0 var(--c-s-6); border: 1px solid var(--c-line-2); border-radius: var(--c-r-card); background: var(--c-surface-2); color: var(--c-faint); font: inherit; font-size: 14px; text-align: left; cursor: text; }
.cw-q-open:hover { border-color: var(--c-brand-line); }
.cw-q-open:focus-visible { outline: none; box-shadow: var(--c-focus); }
.cw-q-open > span:not(.cw-ico) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-q-x { flex: none; min-width: 32px; height: 26px; padding: 0 6px; border: 1px solid var(--c-line-2); border-radius: var(--c-r-ctl); background: none; color: var(--c-faint); font: 500 10.5px var(--c-font-mono); cursor: pointer; }
.cw-q-x:hover { color: var(--c-text); }
.cw-q-x:focus-visible { outline: none; box-shadow: var(--c-focus); }
:is(.cw-q-open, .cw-q-row) kbd { flex: none; padding: 0 6px; border: 1px solid var(--c-line-2); border-radius: var(--c-r-ctl); font: 500 10.5px/18px var(--c-font-mono); color: var(--c-faint); white-space: nowrap; }
.cw-q-btn { flex: none; margin-left: auto; display: inline-flex; align-items: center; justify-content: center; }
.cw-q { --_g: var(--c-brand); --_gt: var(--c-rpc-tint); position: fixed; z-index: 80; top: var(--q-top, var(--c-s-7)); left: 50%; transform: translateX(-50%); width: min(720px, calc(100% - 2 * var(--c-s-7))); max-height: calc(100% - var(--q-top, var(--c-s-7)) - var(--c-s-7)); display: grid; grid-template-rows: auto minmax(0, 1fr); border: 1px solid var(--c-line-2); border-radius: var(--c-r-card); background: var(--c-surface); box-shadow: var(--c-shadow-pop); }
.cw-q[hidden] { display: none; }
.cw-q-row { display: flex; align-items: center; gap: var(--c-s-5); padding: var(--c-s-4) var(--c-s-6); border-bottom: 1px solid var(--c-line); }
.cw-q-in { flex: 1; min-width: 0; height: 40px; border: 0; background: transparent; font-size: 16px; }   /* 16px: a phone never zooms on focus */
/* The search as a field in the page (search.js searchField; /docs and /sdk, operator 2026-11-22 "as in library"): library.css's own
   rules for its field and list, with the same names so the library's pages are unchanged; the edge at 3:1 as cui's .c-input. */
.cw-lib-q { position: relative; width: 100%; max-width: 640px; margin: 0 auto var(--c-s-8); }
.cw-lib-q > .cw-q-open { margin: 0; max-width: none; cursor: text; }
.cw-lib-q > .cw-q-open:focus-within { border-color: var(--c-brand-line); box-shadow: 0 0 0 4px var(--c-brand-wash); }
.cw-lib-q .cw-q-in { height: 100%; padding: 0; color: var(--c-text); }
.cw-lib-q .cw-q-in::-webkit-search-cancel-button { display: none; }
.cw-lib-ql { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; max-height: min(60vh, 520px); overflow-y: auto; overscroll-behavior: contain;
  padding: var(--c-s-3); border: 1px solid var(--c-line); border-radius: var(--c-r-card); background: var(--c-surface); text-align: left;
  box-shadow: 0 18px 48px rgb(0 0 0 / .4), 0 0 0 1px rgb(from var(--c-brand) r g b / .08); }
.cw-lib-ql[hidden] { display: none; }
.cw-lib-qo { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--c-s-5); row-gap: 2px; padding: var(--c-s-4) var(--c-s-5);
  border-radius: var(--c-r-ctl); color: inherit; text-decoration: none; }
.cw-lib-qo > .cw-ico { grid-row: span 3; align-self: center; color: var(--_g); }
.cw-lib-qo > :not(.cw-ico) { grid-column: 2; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cw-lib-qo-t { font: 600 14.5px/1.3 var(--c-font-body); color: var(--c-text); }
.cw-lib-qo-d { font-size: 13px; line-height: 1.4; color: var(--c-muted); }
.cw-lib-qo-p { font: 500 11px/1.4 var(--c-font-mono); color: var(--c-faint); }
.cw-lib-qo mark { background: none; color: var(--_gt); font-weight: 700; }
.cw-lib-qo[aria-selected="true"], .cw-lib-qo:hover { background: color-mix(in srgb, var(--_g) 12%, var(--c-raised)); }
.cw-lib-qn { margin: 0; padding: var(--c-s-5); font-size: 13px; color: var(--c-muted); }
.cw-q-field { --_g: var(--c-brand); --_gt: var(--c-rpc-tint); }
.cw-sdk .cw-q-field { --_g: var(--c-sdk); --_gt: var(--c-sdk-tint); }
.cw-q-field > .cw-q-open { border-color: var(--c-faint); }
.cw-q-field .cw-grp { margin: var(--c-s-4) var(--c-s-5) var(--c-s-2); }
/* /sdk: the overview's tiles (the module card, dashboard.css), and an index line per package whose parts show while it is read */
.cw-sdk-tiles > .cw-subh:first-child { margin-top: 0; }
/* five tiles a row from 1200 px, two on a phone: all thirteen on the first screen at 1440 by 900 (operator 2026-11-22 "show all the
   core ones nicely"); each one line of values, its links small */
.cw-sdk-tiles .cw-dash { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--c-s-5); }
@media (min-width: 1200px) { .cw-sdk-tiles .cw-dash { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.cw-sdk-tiles.cw-sec { padding-top: 0; }
.cw-sdk-tiles > .cw-subh { margin: var(--c-s-5) 0 var(--c-s-3); }
.cw-tile { padding: var(--c-s-5) var(--c-s-6); gap: var(--c-s-3); }
.cw-tile .cw-cardhead { gap: var(--c-s-4); margin: calc(-1 * var(--c-s-5)) calc(-1 * var(--c-s-6)) 0; padding: var(--c-s-4) var(--c-s-6); }
.cw-tile .cw-cardhead { flex-wrap: nowrap; }
.cw-tile .cw-cardhead-title { flex: 1; font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* the pill, then maker and package, on the line under the title, so a title reads whole; a long value ends in an ellipsis */
.cw-tile-s { display: flex; align-items: center; gap: var(--c-s-3); min-width: 0; }
.cw-tile-s > .c-pill { flex: none; }
.cw-tile-s > span:last-child, .cw-tile-v.cw-tile-t { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }   /* the install line ellipses its code alone: Copy's focus ring stays whole */
.cw-tile-v { display: flex; align-items: center; gap: var(--c-s-3); font-size: 12px; color: var(--c-muted); }
/* the install line scrolls sideways under an edge fade, the house's sign of more text (ui-assert); Copy takes it whole */
.cw-tile-v > code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; font-size: 11.5px; word-break: normal;
  mask-image: linear-gradient(90deg, #000 calc(100% - 20px), transparent); }
.cw-tile-v > code::-webkit-scrollbar { display: none; }
.cw-tile-a { display: flex; gap: var(--c-s-5); margin-top: auto; padding-top: var(--c-s-2); font-size: 12.5px; }
.cw-tile .cw-cardhead > .cw-ico { color: var(--_g); }
.cw-ver { text-transform: none; letter-spacing: .02em; }   /* v0.1.0, as the package names it */
/* a tool's own page: its facts in one row under its name, no card: whole items wrap on a phone, no label splits, and the install
   line shows whole in its well with Copy beside it (where a phone is narrower than the line, it wraps at a space: none of it hides);
   the guide starts close under the row, the room its unseen heading left taken back */
.cw-sdk-facts { display: flex; align-items: center; flex-wrap: wrap; gap: var(--c-s-4) var(--c-s-6); margin-bottom: var(--c-s-10); }
.cw-sdk-facts > * { flex: none; white-space: nowrap; }
.cw-sdk-facts > .cw-sdk-cmd { display: flex; align-items: center; gap: var(--c-s-4); flex: 0 1 auto; min-width: 0; padding: var(--c-s-3) var(--c-s-4) var(--c-s-3) var(--c-s-6); background: var(--c-surface-2); border: 1px solid var(--c-line-2); }
.cw-sdk-cmd > code { min-width: 0; white-space: normal; word-break: normal; overflow-wrap: anywhere; font-size: 12.5px; color: var(--c-text); }
.cw-start:has(> .cw-sdk-facts) { padding-bottom: 0; }
.cw-sec:has(> .cw-sec-h.cw-vh) { padding-top: 0; }
.cw-ver-ok { display: inline-flex; }
.cw-sdk .cw-idx-list .cw-dx-a:not(.m) > .c-pill { margin-left: auto; }
.cw-sdk .cw-idx-list .cw-dx-a.m:not(.is-shown):not(.is-on) { display: none; }
.cw-q-in:focus { outline: none; box-shadow: none; }
.cw-q > .cw-q-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: var(--c-s-3) var(--c-s-5) var(--c-s-6); }
.cw-q > .cw-q-list .cw-grp { margin: var(--c-s-5) 0 var(--c-s-2); }
.cw-q mark, mark.cw-hit { background: color-mix(in srgb, var(--c-quote) 32%, transparent); color: var(--c-text); border-radius: 2px; }   /* full text colour: AA on the gold */
::highlight(cw-hit) { background-color: color-mix(in srgb, var(--c-quote) 38%, transparent); color: var(--c-text); }
.cw-b-ref [tabindex="-1"]:focus { outline: none; box-shadow: inset 0 0 0 2px var(--c-brand); }   /* where a search landed */
.cw-b-ref h1[tabindex="-1"]:focus { box-shadow: none; }   /* a part's heading, focused when the link followed left with the part before it */
/* a docs part's one line on its section's page (and a section's on the start): the name, then what it answers, cut at the line's end */
.cw-unit { display: flex; align-items: baseline; gap: var(--c-s-6); min-width: 0; margin: 0; padding: var(--c-s-4) 0; border-bottom: 1px solid var(--c-line-soft); }
.cw-unit > a { flex: none; white-space: nowrap; }
.cw-unit > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
/* every docs part ends with its Previous and Next */
.cw-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--c-s-5); margin-top: var(--c-s-10); }
.cw-pg { display: flex; align-items: baseline; gap: var(--c-s-4); min-width: 0; white-space: nowrap; padding: var(--c-s-5) var(--c-s-6); border: 1px solid var(--c-line); border-radius: var(--c-r-ctl); background: var(--c-surface); color: var(--c-text); text-decoration: none; }   /* one line: a label never wraps */
.cw-pg:hover { border-color: var(--c-line-2); }
.cw-pg:focus-visible { outline: none; box-shadow: var(--c-focus); }
.cw-pg[rel="next"] { grid-column: 2; justify-content: flex-end; }
.cw-pg span { flex: none; font-family: var(--c-font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-faint); }
.cw-pg b { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.cw-b-ref nav[aria-label="breadcrumb"] a { white-space: nowrap; }   /* each step of the trail on one line */
@media (max-width: 859px) { .cw-q { left: var(--c-s-4); right: var(--c-s-4); transform: none; width: auto; } .cw-lib-qo, .cw-q-x { min-height: 44px; } }   /* a phone: the full width under the bar, rows and Close a thumb can hit */
@media (pointer: coarse) { .cw-lib-qo, .cw-q-btn, .cw-q-x { min-height: 44px; } .cw-q-open kbd { display: none; } }
.cw-ent { margin-top: var(--c-s-9); scroll-margin-top: var(--c-s-6); }
.cw-ent-g { margin: var(--c-s-10) 0 0; font: 600 15px var(--c-font-display); letter-spacing: -.01em; color: var(--c-text); }
.cw-ent-h { display: flex; align-items: center; flex-wrap: wrap; gap: var(--c-s-4) var(--c-s-6); margin-bottom: var(--c-s-5); }
.cw-ent-h > * { flex: none; white-space: nowrap; }
.cw-ent-n { font: 600 14px var(--c-font-mono); color: var(--c-text); }
.cw-ent-n[data-p="rpc"] { color: var(--c-rpc-tint); }
.cw-ent-n[data-p="ws"] { color: var(--c-ws-tint); }
.cw-ent-n[data-p="stream"] { color: var(--c-stream-tint); }
.cw-ent-n[data-p="quote"] { color: var(--c-quote-tint); }
.cw-ent-r { font: 500 11px var(--c-font-mono); color: var(--c-muted); font-variant-numeric: tabular-nums; }
.cw-ent-r span { color: var(--c-faint); letter-spacing: .06em; }
.cw-ent-r span:not(:first-child) { margin-left: var(--c-s-5); }
.cw-ent .cw-tt-wrap { margin-top: var(--c-s-4); }
.cw-ent-x { display: flex; align-items: flex-start; gap: var(--c-s-5); margin-top: var(--c-s-5); padding: var(--c-s-6) var(--c-s-8); overflow: visible; }
.cw-ent-x pre { flex: 1; min-width: 0; }   /* the call wraps as every code window does, at every width: none is cut where it cannot be seen */
.cw-ent-x .c-copy { position: static; order: 1; flex: none; }   /* beside the call, never over it */
.cw-ent-a { margin: var(--c-s-4) 0 0; font-size: 13px; line-height: 1.5; color: var(--c-muted); }
.cw-ent-k { margin-right: var(--c-s-5); font: 500 10.5px var(--c-font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--c-faint); }
@media (max-width: 1199px) {
  .cw-bbar { display: flex; align-items: center; gap: var(--c-s-5); min-width: 0; padding: var(--c-s-4) var(--c-s-7); border-bottom: 1px solid var(--c-line); }
  .cw-idx-btn { display: inline-flex; align-items: center; gap: var(--c-s-4); min-width: 0; max-width: 100%; }
  .cw-idx-ico { font-size: 16px; line-height: 1; }
  .cw-idx-cur { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--c-font-mono); }
  .cw-b-split { grid-template-columns: minmax(0, 1fr); }
  .cw-idx { position: absolute; z-index: 20; top: 0; bottom: 0; left: 0; width: min(336px, 92vw); background: var(--c-surface); transform: translateX(-102%); visibility: hidden; transition: transform var(--c-dur-2) var(--c-ease-out), visibility 0s var(--c-dur-2); }
  .cw-docs:not(.cw-lib) .cw-idx { width: min(280px, 92vw); }
  .cw-b.is-idx .cw-idx { transform: none; visibility: visible; transition: transform var(--c-dur-2) var(--c-ease-out); box-shadow: var(--c-shadow-pop); }
  .cw-b.is-idx .cw-scrim { display: block; position: absolute; inset: 0; z-index: 19; border: 0; padding: 0; background: var(--c-scrim); }
}
@media (max-width: 860px) {
  /* the index stays a column in its drawer: the old strip under 860px (above) is the no-script page's */
  .cw-idx-list { flex-direction: column; overflow-x: visible; gap: 1px; }
  .cw-idx-list .cw-dx-a { border-left: 2px solid transparent; border-bottom: none; min-height: 44px; }
  .cw-idx-list .cw-dx-a.is-active, .cw-idx-list .cw-dx-a.is-on, .cw-idx-list .cw-dx-a[aria-current="page"] { border-left-color: var(--_h, var(--c-brand)); border-bottom: none; }
  .cw-b-ref .cw-sec { scroll-margin-top: var(--c-s-6); }
}
@media (max-width: 859px) { .cw-b-ref { padding: var(--c-s-8) var(--c-s-7) var(--c-s-10); } }
@media (prefers-reduced-motion: reduce) { .cw-idx, .cw-b.is-idx .cw-idx { transition: none; } }
