/* Public pages share one shell; content-specific workbenches keep their layout. */
:root[data-site-shell] {
  --brand-navy:#29255c; --brand-red:#d22525;
  --header-height:74px; --shell-surface:#fff; --shell-ink:#20242a; --shell-brand:#29255c; --shell-line:#dfe5eb;
  --page:#f5f7fa; --bg:#f5f7fa; --surface:#fff; --surface-solid:#fff; --paper:#fff;
  --text:#292d33; --ink:#292d33; --heading:#20242a; --nav:#20242a; --muted:#626970;
  --accent:#245caa; --blue:#245caa; --soft:#edf3fa; --blue-soft:#edf3fa; --line:#dfe5eb;
  --panel:#fff; --panel-raised:#edf3fa; --sidebar:#f4f7fa;
  --font-body:"Segoe UI","Microsoft YaHei UI","Microsoft YaHei",sans-serif;
  --font-text:var(--font-body); --font-display:var(--font-body);
}
:root[data-site-shell][data-theme=dark] {
  --brand-navy:#f0edf9; --brand-red:#ff6268;
  color-scheme:dark; --shell-surface:#1c2531; --shell-ink:#eceef1; --shell-brand:#e0dcff; --shell-line:#3d4b5e;
  --page:#151b24; --bg:#151b24; --surface:#1c2531; --surface-solid:#202a37; --paper:#1c2531;
  --text:#e4e7eb; --ink:#e4e7eb; --heading:#eceef1; --nav:#eceef1; --muted:#b3bac3;
  --accent:#9fc3fa; --blue:#9fc3fa; --soft:#243349; --blue-soft:#243349; --line:#3d4b5e;
  --panel:#1c2531; --panel-raised:#263342; --sidebar:#19222d;
}
:root[data-site-shell][data-appearance=noi] { --header-height:126px; --page:#f0f3f4; --bg:#f0f3f4; --heading:#20242a; --nav:#20242a; --shell-ink:#20242a; --accent:#d22525; --blue:#d22525; --soft:#f7eeee; --blue-soft:#f7eeee; }
:root[data-site-shell][data-appearance=noi][data-theme=dark] { --page:#171c22; --bg:#171c22; --heading:#eceef1; --nav:#eceef1; --shell-ink:#eceef1; --accent:#ff999e; --blue:#ff999e; --soft:#35282d; --blue-soft:#35282d; }
html[data-site-shell] header.site-shell { position:sticky; top:0; z-index:100; display:block; min-height:0; width:100%; margin:0; padding:0; border:0; border-bottom:1px solid var(--shell-line); background:var(--shell-surface); color:var(--shell-ink); font:15px/1.5 var(--font-body); box-sizing:border-box; }
html[data-site-shell] header.site-shell * { box-sizing:border-box; }
html[data-site-shell] header.site-shell .shell-inner { display:flex; align-items:center; gap:24px; max-width:1320px; min-height:74px; margin:0 auto; padding:0 28px; }
html[data-site-shell] header.site-shell a.shell-brand { display:inline-flex; flex:none; align-items:center; gap:5px; margin:0; padding:0; font:800 24px/1.2 var(--font-body); letter-spacing:-.7px; text-decoration:none; white-space:nowrap; color:var(--shell-brand); }
html[data-site-shell] header.site-shell .shell-brand b { color:var(--accent); }
html[data-site-shell] header.site-shell .csp-mark { display:block; flex:none; width:112px; height:auto; }
html[data-site-shell] header.site-shell .shell-brand-copy { display:flex; align-items:baseline; gap:7px; }
html[data-site-shell] header.site-shell .shell-brand-copy strong { color:var(--shell-ink); font:850 19px/1.2 var(--font-body); letter-spacing:-.5px; }
html[data-site-shell] header.site-shell .shell-brand-copy b { color:var(--brand-red); font:850 19px/1.2 var(--font-body); letter-spacing:-.7px; }
html[data-site-shell] header.site-shell .shell-subtitle { display:none; }
html[data-site-shell] header.site-shell .shell-navigation { display:flex; flex:1; align-self:stretch; justify-content:center; gap:24px; min-width:0; width:auto; margin:0; padding:0; border:0; background:transparent; font:15px/1.5 var(--font-body); }
html[data-site-shell] header.site-shell .shell-navigation a { position:relative; display:flex; align-items:center; font:inherit; min-height:74px; margin:0; padding:0; color:var(--shell-ink); text-decoration:none; white-space:nowrap; }
html[data-site-shell] header.site-shell .shell-navigation a[aria-current=page] { color:var(--accent); font-weight:700; }
html[data-site-shell] header.site-shell .shell-navigation a[aria-current=page]::after { content:""; position:absolute; left:0; right:0; bottom:0; height:3px; background:var(--accent); }
html[data-site-shell] header.site-shell .shell-appearance { position:relative; flex:none; order:0; margin:0 0 0 auto; font:13px/1.5 var(--font-body); }
html[data-site-shell] header.site-shell .shell-appearance summary { display:flex; align-items:center; min-height:40px; padding:0; list-style:none; cursor:pointer; white-space:nowrap; }
html[data-site-shell] header.site-shell summary::-webkit-details-marker { display:none; }
html[data-site-shell] header.site-shell .shell-preferences { position:absolute; right:0; top:calc(100% + 8px); width:230px; padding:16px; border:1px solid var(--shell-line); border-radius:6px; background:var(--shell-surface); box-shadow:0 8px 24px #0002; color:var(--shell-ink); }
html[data-site-shell] header.site-shell .shell-preferences label { display:grid; gap:6px; margin:0 0 12px; font-size:13px; }
html[data-site-shell] header.site-shell .shell-preferences select { width:100%; min-height:38px; padding:5px 8px; border:1px solid var(--shell-line); border-radius:5px; background:var(--shell-surface); color:var(--shell-ink); font:14px var(--font-body); }
html[data-site-shell] header.site-shell .shell-theme, html[data-site-shell] header.site-shell .shell-menu { display:inline-flex; flex:none; align-items:center; justify-content:center; width:40px; min-height:40px; margin:0; padding:0; border:0; border-radius:5px; background:transparent; color:var(--shell-ink); font-size:20px; cursor:pointer; }
html[data-site-shell] header.site-shell .shell-menu { display:none; }
html[data-site-shell][data-appearance=noi] header.site-shell .shell-inner { position:relative; flex-wrap:wrap; gap:0 24px; min-height:126px; padding-bottom:52px; }
html[data-site-shell][data-appearance=noi] header.site-shell .shell-subtitle { display:block; flex:1; font-size:15px; }
html[data-site-shell][data-appearance=noi] header.site-shell .shell-masthead { background:var(--shell-surface); box-shadow:inset 0 -52px #d22525; }
html[data-site-shell][data-appearance=noi] header.site-shell .shell-navigation { position:absolute; left:28px; right:28px; bottom:0; height:52px; width:auto; justify-content:flex-start; gap:0; }
html[data-site-shell][data-appearance=noi] header.site-shell .shell-navigation a { min-height:52px; padding:0 24px; color:#fff; }
html[data-site-shell][data-appearance=noi] header.site-shell .shell-navigation a[aria-current=page] { background:#29255c; color:#fff; }
html[data-site-shell][data-appearance=noi] header.site-shell .shell-navigation a[aria-current=page]::after { display:none; }
html[data-site-shell] :is(.page-intro,.docs-intro) { min-height:160px; padding:30px 0 26px; }
html[data-site-shell] :is(.page-intro,.docs-intro,.intro,.hero) h1 { font:750 clamp(30px,3.1vw,42px)/1.25 var(--font-body); letter-spacing:-.8px; color:var(--heading); }
:root[data-site-shell] body :is(h1,h2,h3,h4,h5,h6) { color:var(--heading); }
html[data-site-shell] :is(.page-intro,.docs-intro) > p { font-size:16px; line-height:1.7; }
html[data-site-shell] :is(.page-intro,.docs-intro) > .eyebrow, html[data-site-shell] .docs-eyebrow { display:none; }
html[data-site-shell] :is(.browse-toolbar,.filter-form,.download-heading) :is(input,select) { min-height:40px; border:1px solid var(--line); border-radius:6px; background:var(--surface); color:var(--text); font:14px var(--font-body); }
html[data-site-shell] .docs-page { background:var(--page); color:var(--text); font:15px/1.6 var(--font-body); }
html[data-site-shell] .docs-sidebar { top:calc(var(--header-height) + 16px); }
html[data-site-shell] header.site-shell :focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
@media(max-width:1100px) and (min-width:901px) { html[data-site-shell] header.site-shell .shell-inner { gap:16px; } html[data-site-shell] header.site-shell .shell-navigation { gap:16px; } }
@media(max-width:900px) {
  :root[data-site-shell] { --header-height:64px; }
  :root[data-site-shell][data-appearance=noi] { --header-height:68px; }
  html[data-site-shell] header.site-shell .shell-inner, html[data-site-shell][data-appearance=noi] header.site-shell .shell-inner { min-height:64px; padding:0 16px; gap:12px; flex-wrap:nowrap; }
  html[data-site-shell] header.site-shell .shell-menu { display:inline-flex; }
  html[data-site-shell] header.site-shell a.shell-brand { font-size:22px; margin-right:auto; }
  html[data-site-shell] header.site-shell .csp-mark { width:88px; }
  html[data-site-shell] header.site-shell .shell-brand-copy { flex-direction:column; gap:1px; }
  html[data-site-shell] header.site-shell .shell-brand-copy strong { font-size:14px; letter-spacing:-.3px; }
  html[data-site-shell] header.site-shell .shell-brand-copy b { font-size:12px; letter-spacing:0; }
  html[data-site-shell][data-appearance=noi] header.site-shell .shell-subtitle { display:none; }
  html[data-site-shell][data-appearance=noi] header.site-shell .shell-masthead { background:var(--shell-surface); box-shadow:none; border-bottom:4px solid #d22525; }
  html[data-site-shell] header.site-shell .shell-navigation, html[data-site-shell][data-appearance=noi] header.site-shell .shell-navigation { display:none; position:absolute; left:0; right:0; top:100%; bottom:auto; height:auto; width:100%; margin:0; padding:8px 16px; background:var(--shell-surface); border-bottom:1px solid var(--shell-line); box-shadow:0 6px 16px #0002; }
  html[data-site-shell] header.site-shell.shell-menu-open .shell-navigation { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; }
  html[data-site-shell] header.site-shell .shell-navigation a, html[data-site-shell][data-appearance=noi] header.site-shell .shell-navigation a { justify-content:center; min-height:44px; padding:8px 0; color:var(--shell-ink); font-size:14px; }
  html[data-site-shell][data-appearance=noi] header.site-shell .shell-navigation a[aria-current=page] { color:#fff; }
  html[data-site-shell] header.site-shell .shell-theme { display:none; }
  html[data-site-shell] header.site-shell .shell-appearance summary { min-height:44px; }
}

html[data-site-shell] body { background:var(--page); color:var(--text); font:15px/1.6 var(--font-body); }
html[data-site-shell] .wrap { width:100%; max-width:1320px; padding-inline:28px; margin-inline:auto; }
@media(max-width:900px) { html[data-site-shell] .wrap { padding-inline:16px; } }

html[data-site-shell] .docs-shell { padding:0 28px 64px; gap:48px; grid-template-columns:220px minmax(0,1fr); }
html[data-site-shell] .docs-sidebar { padding-top:30px; }
@media(max-width:767px) {
  html[data-site-shell] .docs-shell { display:flex; flex-direction:column; padding-inline:16px; gap:0; }
  html[data-site-shell] .docs-main { display:contents; }
  html[data-site-shell] .docs-intro { order:0; width:100%; margin-bottom:20px; }
  html[data-site-shell] .docs-sidebar { order:1; width:100%; padding-top:0; margin-bottom:24px; }
  html[data-site-shell] .docs-markdown { order:2; min-width:0; width:100%; }
}

html[data-site-shell] .folder-return { display:inline-flex; align-items:center; min-height:36px; margin-bottom:6px; color:var(--accent); font-size:13px; }
@media(max-width:900px) { html[data-site-shell] .folder-return { min-height:44px; } }

html[data-site-shell] .hero.brand-banner { display:grid; grid-template-columns:minmax(220px,.8fr) minmax(0,1.4fr); gap:24px 40px; align-items:center; margin:28px 0; padding:30px; border:1px solid var(--line); border-left:5px solid var(--brand-red); background:var(--surface); }
html[data-site-shell] .brand-banner-art { display:grid; gap:20px; min-width:0; padding-right:24px; border-right:1px solid var(--line); }
html[data-site-shell] .brand-banner-art .csp-mark { display:block; width:min(100%,300px); height:auto; }
html[data-site-shell] .brand-banner-art pre { margin:0; font:12px/1.7 Consolas,"Cascadia Code",monospace; color:var(--muted); white-space:pre-wrap; overflow-wrap:anywhere; }
html[data-site-shell] .brand-banner > .search-wrap { grid-column:1/-1; width:100%; max-width:none; }
html[data-site-shell] .brand-banner .search { width:100%; }
html[data-site-shell] .brand-intro .csp-mark { display:block; width:min(280px,70%); height:auto; margin-bottom:24px; }
@media(max-width:900px) {
  html[data-site-shell] .hero.brand-banner { grid-template-columns:minmax(0,1fr); gap:20px; margin:20px 0; padding:20px 16px; }
  html[data-site-shell] .brand-banner-art { border:0; padding:0; }
  html[data-site-shell] .brand-banner-art .csp-mark { width:160px; }
  html[data-site-shell] .brand-banner-art pre { display:none; }
}
@media(max-width:360px) {
  html[data-site-shell] header.site-shell .shell-inner, html[data-site-shell][data-appearance=noi] header.site-shell .shell-inner { padding-inline:12px; gap:8px; }
  html[data-site-shell] header.site-shell .csp-mark { width:72px; }
  html[data-site-shell] header.site-shell .shell-brand-copy strong { font-size:12px; }
}
