:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #171717; background: #f7f7f7; }
* { box-sizing: border-box; }
body { margin: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; font-size: 16px; line-height: 1.6; }
a { color: inherit; }
.skip { position: fixed; left: -10000px; top: 8px; z-index: 10; background: white; padding: 8px 12px; }
.skip:focus { left: 8px; }
a:focus-visible { outline: 3px solid #5269e8; outline-offset: 3px; }
.header { flex: none; height: 80px; display: grid; grid-template-columns: 300px 1fr auto; align-items: center; gap: 20px; padding: 0 32px; }
.header a { text-decoration: none; }
.brand { font-size: 25px; font-weight: 760; letter-spacing: -1.3px; line-height: 1; }
.brand span { color: #355eea; }
.top-nav a { font-weight: 600; display: inline-flex; align-items: center; gap: 10px; }
.top-nav span { font-size: 23px; line-height: 1; }
.actions { display: flex; gap: 10px; }
.actions a { padding: 8px 14px; border: 1px solid #e4e4e4; border-radius: 10px; background: white; white-space: nowrap; }
.actions .primary { background: #090b0e; border-color: #090b0e; color: white; }
.layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; padding: 0 12px 12px 20px; flex: 1; min-height: 0; }
.sidebar { min-height: 0; overflow-y: auto; padding: 32px 0; }
.sidebar-title { margin: 0 12px 12px; font-weight: 700; }
.sidebar nav a { display: block; text-decoration: none; padding: 8px 12px; border-radius: 11px; }
.sidebar nav a[aria-current="page"] { background: #e3e3e3; font-weight: 600; }
main { background: #fff; border: 1px solid #e5e5e5; border-radius: 20px; min-width: 0; min-height: 0; overflow-y: auto; }
article { max-width: 760px; margin: 0 auto; padding: 64px 28px 100px; }
.eyebrow { color: #777; margin: 0; }
h1 { font-size: clamp(38px, 4vw, 48px); line-height: 1.12; letter-spacing: -1.8px; margin: 14px 0; }
.lead { font-size: 22px; line-height: 1.45; color: #555; margin: 0; }
.article-body { margin-top: 70px; color: #444; font-size: 18px; }
.article-body h2 { color: #171717; font-size: 27px; margin-top: 48px; line-height: 1.2; }
.article-body li { padding-left: 6px; margin: 12px 0; }
.article-link { color: #171717; text-underline-offset: 4px; }
@media (max-width: 700px) {
  .header { height: auto; grid-template-columns: 1fr auto; gap: 16px; padding: 18px; }
  .top-nav { grid-row: 2; grid-column: 1 / -1; }
  .actions { font-size: 14px; }
  .actions a { padding: 7px 10px; }
  .layout { display: flex; flex-direction: column; padding: 0 10px 10px; min-height: 0; }
  .sidebar { flex: 0 1 auto; max-height: 30%; padding: 8px 2px 14px; }
  main { flex: 1; }
  .sidebar-title { margin: 0 10px 5px; }
  article { padding: 38px 22px 72px; }
  .lead { font-size: 19px; }
  .article-body { margin-top: 45px; font-size: 16px; }
}
/* Controls stay in place while the navigation beneath them scrolls. */
.sidebar { display: flex; flex-direction: column; overflow: hidden; padding: 8px 0 0; }
.sidebar-controls { flex: none; display: flex; gap: 10px; padding: 0 8px 18px; }
.search-wrap { display: flex; align-items: center; min-width: 0; flex: 1; gap: 10px; padding: 0 12px; height: 48px; border: 1px solid #d8d8d8; border-radius: 14px; background: #fff; }
.search-wrap svg, .assistant-button svg { width: 21px; height: 21px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.search-wrap input { border: 0; outline: 0; width: 100%; min-width: 0; background: transparent; font: inherit; }
.search-wrap:focus-within { outline: 3px solid #5269e8; outline-offset: 2px; }
.search-wrap kbd { color: #777; font: 13px system-ui, sans-serif; white-space: nowrap; }
.assistant-button { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border: 1px solid #d8d8d8; border-radius: 14px; background: white; color: #555; }
.assistant-button:disabled { cursor: not-allowed; }
.sidebar-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 0 0 24px; }
.sidebar nav a[hidden], .search-status[hidden] { display: none; }
.search-status { color: #666; margin: 8px 12px; font-size: 14px; }
@media (max-width: 700px) {
  .sidebar { max-height: 35%; padding: 4px 2px 8px; }
  .sidebar-controls { padding: 0 0 10px; }
  .sidebar-scroll { padding-bottom: 4px; }
}
.menu-button, .mobile-sidebar-header { display: none; }
.sidebar-backdrop[hidden] { display: none; }
@media (max-width: 700px) {
  .header { grid-template-columns: auto 1fr auto; gap: 12px; }
  .menu-ready .menu-button { display: grid; place-items: center; border: 0; background: transparent; font-size: 23px; width: 36px; height: 40px; cursor: pointer; }
  .top-nav { grid-column: 1 / -1; }
  .menu-ready .sidebar { position: fixed; z-index: 11; inset: 0 auto 0 0; width: min(320px, 85vw); max-height: none; padding: 16px 12px; background: #f7f7f7; transform: translateX(-100%); visibility: hidden; transition: transform .2s ease; }
  .menu-ready .sidebar.is-open { transform: translateX(0); visibility: visible; }
  .sidebar-backdrop:not([hidden]) { position: fixed; z-index: 10; inset: 0; display: block; background: rgb(0 0 0 / 40%); }
  .mobile-sidebar-header { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 16px; }
  .menu-close { border: 0; background: transparent; font-size: 28px; line-height: 1; cursor: pointer; }
  .menu-button:focus-visible, .menu-close:focus-visible { outline: 3px solid #5269e8; outline-offset: 2px; }
  .layout { display: flex; }
  main { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .menu-ready .sidebar { transition: none; } }
@media (max-width: 400px) {
  .header { padding: 14px 10px; gap: 6px; }
  .brand { font-size: 21px; }
  .actions a:first-child { display: none; }
}
@media (max-width: 700px) {
  .header { grid-template-columns: auto minmax(0, 1fr) auto; padding-left: 10px; padding-right: 10px; }
  .menu-ready .menu-button { justify-self: start; }
  .brand { justify-self: start; }
  .top-nav { padding-left: 0; }
}
@media (max-width: 700px) {
  .header { grid-template-columns: auto auto 1fr; column-gap: 12px; }
  .menu-ready .menu-button { width: auto; height: 40px; padding: 0; margin: 0; justify-content: start; }
  .actions { justify-self: end; }
  .top-nav { grid-column: 1 / -1; }
}
/* Compact header, keeping the mobile navigation on its own row. */
.header { height: 64px; }
@media (max-width: 700px) {
  .header { height: auto; row-gap: 2px; padding-top: 6px; padding-bottom: 6px; }
}
/* Use the marketing site's theme policy, colours, typography and logo. */
@font-face { font-family: "Plus Jakarta Sans Variable"; src: url('/docs/font.woff2') format('woff2'); font-style: normal; font-weight: 200 800; font-display: swap; }
:root { --docs-bg: #f8fafc; --docs-surface: #fff; --docs-input: #f8fafc; --docs-border: rgba(203, 213, 225, .7); --docs-text: #0f172a; --docs-secondary: #334155; --docs-muted: #64748b; --docs-selected: #e2e8f0; --docs-primary: linear-gradient(135deg, #0284c7, #4f46e5); --docs-primary-text: #fff; color: var(--docs-text); background: var(--docs-bg); font-family: "Plus Jakarta Sans Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
html[data-scheme="dark"] { --docs-bg: #07090e; --docs-surface: #0f172a; --docs-input: #0b0f19; --docs-border: rgba(255, 255, 255, .15); --docs-text: #f8fafc; --docs-secondary: #cbd5e1; --docs-muted: #a8b5c8; --docs-selected: #24344b; --docs-primary: linear-gradient(135deg, #00f2fe, #4facfe); --docs-primary-text: #07090e; }
body { color: var(--docs-text); background: var(--docs-bg); }
.brand { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.brand svg { flex: none; }
.brand-text { color: var(--docs-text) !important; }
.brand-text span { color: #38bdf8; }
main { background: var(--docs-surface); border-color: var(--docs-border); }
.sidebar nav a[aria-current="page"] { background: var(--docs-selected); }
.eyebrow, .search-status, .search-wrap kbd { color: var(--docs-muted); }
.lead, .article-body { color: var(--docs-secondary); }
.article-body h2, .article-link { color: var(--docs-text); }
.actions a, .search-wrap, .assistant-button { color: var(--docs-text); background: var(--docs-input); border-color: var(--docs-border); }
.actions .primary { color: var(--docs-primary-text); background: var(--docs-primary); border-color: transparent; }
.search-wrap input, .menu-button, .menu-close { color: var(--docs-text); }
.search-wrap input::placeholder { color: var(--docs-muted); opacity: 1; }
.skip { background: var(--docs-surface); color: var(--docs-text); }
@media (max-width: 700px) { .menu-ready .sidebar { background: var(--docs-bg); } }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0; margin: 0; list-style: none; color: var(--docs-muted); font-size: 14px; }
.breadcrumbs li + li::before { content: ">"; margin-right: 8px; color: var(--docs-muted); }
.breadcrumbs a { color: inherit; text-underline-offset: 3px; }
.breadcrumbs [aria-current="page"] { color: var(--docs-secondary); }
.top-nav.breadcrumbs span { font-size: inherit; line-height: inherit; }
.top-nav.breadcrumbs a { font-weight: inherit; display: inline; }
/* Match the marketing site's navigation typography. */
.brand { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; gap: 10px; }
.breadcrumbs ol { font-size: .9rem; font-weight: 600; }
.breadcrumbs li { display: inline-flex; align-items: center; }
.breadcrumbs li + li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 12px 0 2px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }
.breadcrumbs a:hover { color: #38bdf8; }
@media (max-width: 700px) {
  .menu-ready .menu-button, .menu-close { min-width: 44px; min-height: 44px; }
  .menu-ready .menu-button { margin-left: -10px; }
}
@media (forced-colors: active) {
  .sidebar nav a[aria-current="page"] { outline: 2px solid Highlight; outline-offset: -2px; }
  .search-wrap, .assistant-button { border: 1px solid ButtonText; }
}
@media (max-width: 700px) {
  .menu-ready .menu-button { justify-content: center; }
}

/* Reserve a reflowing sidekick column without coupling the shell to chat. */
@media (min-width: 701px) {
  .header { grid-template-columns: 240px minmax(0, 1fr) auto; }
  .layout { grid-template-columns: 240px minmax(0, 1fr); }

}
.assistant-panel[hidden] { display: none; }
.assistant-panel { min-width: 0; min-height: 0; overflow-y: auto; padding: 20px; border: 1px solid var(--docs-border); border-radius: 20px; background: var(--docs-surface); }
.assistant-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.assistant-panel p { color: var(--docs-muted); }
.assistant-button { cursor: pointer; }
.assistant-close { min-width: 44px; min-height: 44px; border: 0; border-radius: 8px; background: transparent; color: var(--docs-text); font-size: 28px; cursor: pointer; }
.assistant-button:focus-visible, .assistant-close:focus-visible { outline: 3px solid #5269e8; outline-offset: 2px; }
@media (max-width: 700px) {
  .assistant-panel:not([hidden]) { position: fixed; z-index: 12; inset: 0; border-radius: 0; }
}

@media (min-width: 1051px) { .layout.assistant-open { grid-template-columns: 240px minmax(0, 1fr) minmax(280px, 33vw); } }
@media (min-width: 701px) and (max-width: 1050px) { .assistant-panel:not([hidden]) { position: fixed; z-index: 12; inset: 0 0 0 auto; width: min(440px, 100%); border-radius: 0; box-shadow: 0 0 0 100vmax rgb(0 0 0 / 40%); } }

.sidebar-section { margin-bottom: 24px; }
.sidebar-section[hidden], .sidebar-group[hidden] { display: none; }
.sidebar-group summary { display: flex; align-items: center; justify-content: space-between; list-style: none; padding: 8px 12px; border-radius: 11px; cursor: pointer; }
.sidebar-group summary::-webkit-details-marker { display: none; }
.sidebar-group summary::after { content: ''; width: 6px; height: 6px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); margin-right: 3px; }
.sidebar-group[open] > summary::after { transform: rotate(135deg); }
.sidebar-group > .sidebar-children { padding-left: 12px; }
.sidebar-group summary:hover { background: var(--docs-selected); }
.sidebar-group summary:focus-visible { outline: 3px solid #5269e8; outline-offset: 2px; }
/* Keep section headings distinct while letting navigation labels read lightly. */
.sidebar nav { font-size: 14px; line-height: 1.5; }
.sidebar-title { margin: 0 12px 10px; font-weight: 600; color: var(--docs-text); }
.sidebar nav a, .sidebar-group summary { font-weight: 400; color: var(--docs-secondary); }
.sidebar nav a[aria-current="page"] { color: var(--docs-text); font-weight: 600; }
.sidebar-group > .sidebar-children { padding-left: 0; }
.sidebar-group > .sidebar-children > a, .sidebar-group > .sidebar-children > .sidebar-group > summary { padding-left: 24px; }
.sidebar-group .sidebar-group > .sidebar-children > a { padding-left: 36px; }
