/* Article-only rules use Charlie's shared tokens. The embedded API renderer owns its syntax and table theme. */
html body main:has(> .docs-hub) { width:100%;max-width:var(--page-max);margin:0 auto;padding:0 var(--gutter); }
.docs-hub.docs-hub { display:grid;grid-template-columns:250px minmax(0,1fr) 200px;gap:clamp(24px,3vw,56px);align-items:start;width:100%;margin:0;color:var(--ink);font:16px/1.65 var(--font);text-align:left; }
.docs-hub * { box-sizing:border-box; }
.docs-hub a:not(:where(#api-reference *)) { color:var(--accent);text-underline-offset:3px; }
.docs-hub a.btn-primary { color:var(--bg); }
.docs-hub .beginner-os a[aria-current] { background:var(--ink);color:var(--bg);border-color:var(--ink); }
.docs-hub :is(a,button,input,summary,pre):focus-visible { outline:2px solid var(--accent);outline-offset:4px; }
.docs-hub [hidden] { display:none !important; }
.docs-hub .docs-hub__sidebar { position:sticky;top:var(--header-h);height:calc(100dvh - var(--header-h));max-height:none;overflow:auto;padding:28px 16px 40px 0;border-right:1px solid var(--line);scrollbar-width:thin; }
.docs-hub #docs-navigation :is(ul,li) { list-style:none;margin:0;padding:0;border:0; }
.docs-hub #docs-navigation a { display:block;padding:7px 10px;border-radius:7px;color:var(--ink-2);text-decoration:none;font:.92rem/1.5 var(--font); }
.docs-hub #docs-navigation a:hover { background:var(--bg-soft);color:var(--ink); }
.docs-hub #docs-navigation a[aria-current] { background:var(--accent-soft);color:var(--accent);font-weight:600; }
.docs-hub #docs-navigation .docs-hub__home { font-weight:600; }
.docs-hub .docs-hub__nav-group > p { margin:20px 0 6px; }
.docs-hub #docs-navigation .docs-hub__nav-group > p a { font-size:.75rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding-block:0;color:var(--ink-2); }
.docs-hub .docs-hub__search { margin:0 0 18px;padding:0;border:0; }
.docs-hub .docs-hub__search > div { display:flex;gap:6px; }
.docs-hub .docs-hub__search input { width:100%;min-width:0;height:40px;padding:8px 10px;background:var(--bg);color:var(--ink);border:1px solid var(--line-strong);border-radius:8px;font:14px var(--font); }
.docs-hub .docs-hub__search input::placeholder { color:var(--ink-2);opacity:1; }
.docs-hub .docs-hub__search button { display:grid;place-items:center;min-width:44px;min-height:44px;padding:6px;background:var(--bg-soft);color:var(--ink);border:1px solid var(--line-strong);border-radius:8px;cursor:pointer; }
.docs-hub .docs-hub__main { min-width:0;padding:28px 0 72px; }
.docs-hub .docs-hub__breadcrumbs ol { display:flex;flex-wrap:wrap;gap:6px 10px;list-style:none;margin:0 0 16px;padding:0;color:var(--ink-2);font-size:.85rem; }
.docs-hub .docs-hub__breadcrumbs li { margin:0;padding:0;list-style:none; }
.docs-hub .docs-hub__breadcrumbs li + li::before { content:'/';margin-right:10px; }
.docs-hub .docs-hub__breadcrumbs a { color:inherit;text-decoration:none; }
.docs-hub .docs-hub__breadcrumbs a:hover { text-decoration:underline; }
.docs-hub .docs-hub__content { min-width:0;max-width:none;overflow-wrap:anywhere; }
.docs-hub__content :is(.docs-page,.agent-builder-docs,.hc-article,.hc-wrap,.wrap) { width:100%;max-width:none;margin:0;padding:0; }
.docs-hub .docs-hub__content h1:not(:where(#api-reference *)) { margin:10px 0 14px;color:var(--ink);font:800 clamp(2rem,1.5rem + 1.6vw,2.75rem)/1.15 var(--font);letter-spacing:-.035em; }
.docs-hub .docs-hub__content h2:not(:where(#api-reference *)) { margin:40px 0 12px;color:var(--ink);font:700 1.5rem/1.3 var(--font);scroll-margin-top:calc(var(--header-h) + 24px); }
.docs-hub .docs-hub__content h3:not(:where(#api-reference *)) { margin:24px 0 10px;color:var(--ink);font:700 1.125rem/1.4 var(--font); }
.docs-hub .docs-hub__content p:not(:where(#api-reference *)) { margin:12px 0;color:var(--ink-2); }
.docs-hub .docs-hub__content :is(ul,ol):not(:where(#api-reference *)) { padding-left:1.3em; }
.docs-hub .docs-hub__content li:not(:where(#api-reference *)) { margin:6px 0;color:var(--ink-2); }
.docs-hub .docs-hub__source { margin:20px 0;padding:12px 0;border-block:1px solid var(--line);font-size:.85rem; }
.docs-hub__source summary { color:var(--ink-2);cursor:pointer; }
.docs-hub .hb-explorer-bar { display:block;padding:0 0 20px;background:transparent;color:var(--ink);border-bottom:1px solid var(--line); }
.docs-hub .hb-explorer-bar a { margin-right:16px;font-size:.85rem;color:var(--accent); }
.docs-hub .hb-explorer-intro { padding:0;max-width:none; }
.docs-hub__content :is(.lede,.developer-quickstart__sub) { font-size:1.12rem;line-height:1.65; }
.docs-hub .docs-hub__content pre:not(:where(#api-reference *)) { position:relative;max-width:100%;overflow:auto;margin:18px 0;padding:24px 20px;border:1px solid var(--line);border-radius:var(--radius);background:var(--bg-sunk);color:var(--ink);font: .85rem/1.7 var(--mono);white-space:pre;tab-size:2; }
.docs-hub .docs-hub__content pre:has(> button):not(:where(#api-reference *)) { padding-top:54px; }
.docs-hub .docs-hub__content pre code:not(:where(#api-reference *)) { padding:0;background:none;color:inherit;font:inherit;white-space:inherit; }
.docs-hub__content :not(pre) > code:not(:where(#api-reference *)) { padding:2px 5px;border-radius:4px;background:var(--bg-sunk);font:.88em var(--mono); }
.docs-hub .docs-hub__copy, .docs-hub .docs-hub__content pre > .hb-docs-copy:not(:where(#api-reference *)) { position:absolute;top:10px;right:10px;min-height:32px;padding:4px 10px;border:1px solid var(--line-strong);border-radius:7px;background:var(--bg);color:var(--ink);font:600 .78rem var(--font);cursor:pointer; }
.docs-hub .docs-hub__content table:not(:where(#api-reference *)) { display:block;width:100%;max-width:100%;overflow:auto;margin:20px 0;border-collapse:collapse;font-size:.9rem; }
.docs-hub .docs-hub__content :is(th,td):not(:where(#api-reference *)) { padding:12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top; }
.docs-hub .docs-hub__content th:not(:where(#api-reference *)) { color:var(--ink);background:var(--bg-soft); }
.docs-hub__content :is(.api-quickstart-grid,.agent-connections-grid,.phase2-agent-job-cards) { display:grid;grid-template-columns:minmax(0,1fr);gap:20px; }
.docs-hub__content :is(.api-quickstart-card,.agent-connections-grid article) { min-width:0; }
.docs-hub .agent-guides-grid { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:16px; }
.docs-hub .agent-guide { display:grid;gap:12px;padding:20px;border:1px solid var(--line);border-radius:var(--radius);text-decoration:none; }
.docs-hub .agent-guide:hover { border-color:var(--accent);background:var(--bg-soft); }
.docs-hub .agent-guide strong { color:var(--ink);font-family:var(--mono); }
.docs-hub .agent-guide span { font-size:.9rem;color:var(--ink-2); }
.docs-hub .agent-guide .agent-guide-action { color:var(--accent);font-weight:600; }
.docs-hub .docs-hub__toc { position:sticky;top:calc(var(--header-h) + 28px);margin-top:28px;max-height:calc(100dvh - var(--header-h) - 56px);overflow:auto;scrollbar-width:thin; }
.docs-hub__toc .eyebrow { margin:0 0 12px;font-size:.72rem;color:var(--ink-2);letter-spacing:.08em; }
.docs-hub [data-docs-toc-links] a { display:block;padding:6px 0 6px 12px;border-left:2px solid var(--line);color:var(--ink-2);font-size:.87rem;line-height:1.5;text-decoration:none;overflow-wrap:anywhere; }
.docs-hub [data-docs-toc-links] a:hover,.docs-hub [data-docs-toc-links] a[aria-current] { border-left-color:var(--accent);color:var(--ink); }
.docs-hub .docs-hub__toc-mobile { display:none;margin:0 0 24px;padding:12px 0;border-block:1px solid var(--line); }
.docs-hub__toc-mobile summary { min-height:44px;padding-block:10px;cursor:pointer;font-size:.9rem;font-weight:600; }
.docs-hub__toc-mobile nav { margin-top:12px; }
.docs-hub .docs-hub__back { display:flex;justify-content:space-between;flex-wrap:wrap;gap:16px;margin-top:48px;padding-top:24px;border-top:1px solid var(--line);font-size:.9rem; }
.docs-hub__back a { text-decoration:none; }
.docs-hub .docs-hub__menu { display:none; }
.docs-hub #docs-search-results { margin-bottom:28px; }
.docs-hub #docs-search-results ul { padding:0;list-style:none;display:grid;gap:8px; }
.docs-hub #docs-search-results li { margin:0; }
.docs-hub #docs-search-results a { display:grid;gap:4px;padding:14px;border:1px solid var(--line);border-radius:10px;text-decoration:none; }
.docs-hub #docs-search-results :is(span,small) { color:var(--ink-2);font-size:.85rem; }
.docs-hub .docs-hub__sections { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px; }
.docs-hub__section { scroll-margin-top:calc(var(--header-h) + 24px); }
@media (min-width:1201px) { .docs-hub:has(> .docs-hub__toc[hidden]) { grid-template-columns:250px minmax(0,1fr); } }
@media (min-width:1600px) { .docs-hub__content :is(.api-quickstart-grid,.agent-connections-grid,.phase2-agent-job-cards) { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:1200px) {
 .docs-hub.docs-hub { grid-template-columns:230px minmax(0,1fr); }
 .docs-hub .docs-hub__toc { display:none; }
 .docs-hub .docs-hub__toc-mobile:not([hidden]) { display:block; }
}
@media (max-width:860px) {
 .docs-hub.docs-hub { grid-template-columns:minmax(0,1fr);gap:0; }
 .docs-hub .docs-hub__sidebar { position:static;height:auto;max-height:none;padding:16px 0;border-right:0;border-bottom:1px solid var(--line); }
 .docs-hub .docs-hub__menu:not([hidden]) { display:flex;width:100%;min-height:44px;align-items:center;justify-content:space-between;padding:8px 12px;border:1px solid var(--line-strong);border-radius:8px;background:var(--bg);color:var(--ink);font:600 .9rem var(--font);cursor:pointer; }
 .docs-hub__menu::after { content:'+'; }
 .docs-hub__menu[aria-expanded=true]::after { content:'−'; }
 .docs-hub[data-docs-ready=true] .docs-hub__menu[aria-expanded=false] + nav { display:none; }
 .docs-hub__menu[aria-expanded=true] + nav { padding-top:20px; }
 .docs-hub .docs-hub__main { padding-top:20px; }
 .docs-hub #docs-navigation a { padding-block:10px; }
 .docs-hub .docs-hub__search input { font-size:16px; }
 .docs-hub .docs-hub__sections { grid-template-columns:minmax(0,1fr); }
}
