/* Shared neutral surfaces and teal accents follow multimodal-ui. */
:root { color-scheme: light; --ink:#171717; --muted:#666; --border:#e5e5e5; --teal:#0f766e; --header-height:104px; --radius:10px; --sans:"Geist",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; --mono:"Geist Mono","SFMono-Regular",Consolas,monospace; }
* { box-sizing:border-box; }
[hidden] { display:none!important; }
html { scroll-padding-top:calc(var(--header-height) + 28px); scroll-behavior:smooth; }
body { margin:0; background:white; color:var(--ink); font:16px/1.75 var(--sans); letter-spacing:-.01em; -webkit-font-smoothing:antialiased; }
a { color:inherit; text-decoration:none; }
button,input { font:inherit; }
button { cursor:pointer; }
a,button,input { -webkit-tap-highlight-color:transparent; }
a:focus-visible,button:focus-visible,input:focus-visible,[tabindex]:focus-visible { outline:2px solid var(--teal); outline-offset:4px; border-radius:4px; }
main:focus { outline:none; }
.skip-link { position:fixed; z-index:50; top:8px; left:16px; transform:translateY(-150%); padding:8px 16px; background:var(--ink); color:white; border-radius:6px; }
.skip-link:focus { transform:translateY(0); }
.site-header { position:sticky; top:0; z-index:10; background:rgb(255 255 255 / .97); backdrop-filter:blur(12px); border-bottom:1px solid var(--border); }
.header-inner,.top-nav,.docs-layout { max-width:1440px; margin-inline:auto; }
.header-inner { height:60px; display:flex; align-items:center; justify-content:space-between; padding:0 36px; gap:20px; }
.brand { display:inline-flex; align-items:center; gap:10px; font-size:14px; font-weight:600; letter-spacing:-.025em; }
.brand img { flex-shrink:0; }
.badge { border:1px solid var(--border); padding:1px 7px; border-radius:6px; color:#737373; font-size:11px; font-weight:500; }
.source-link { color:#525252; font-size:12px; }
.source-link span { margin-left:8px; }
.source-link:hover { color:var(--teal); }
.top-nav { display:flex; align-items:stretch; gap:24px; padding:0 36px; height:44px; overflow-x:auto; scrollbar-width:thin; }
.top-nav a { display:flex; flex-shrink:0; align-items:center; padding:0 2px; border-bottom:2px solid transparent; color:var(--muted); font-size:13px; white-space:nowrap; }
.top-nav a:hover { color:var(--ink); }
.top-nav .selected { border-bottom-color:var(--teal); color:var(--teal); font-weight:600; }
.menu-toggle { display:none; border:1px solid var(--border); background:white; border-radius:6px; padding:6px 10px; font-size:12px; }
.docs-layout { display:grid; grid-template-columns:240px minmax(0,1fr) 220px; }
.sidebar { position:sticky; top:var(--header-height); height:calc(100dvh - var(--header-height)); display:flex; flex-direction:column; justify-content:space-between; padding:32px 24px 24px 28px; overflow-y:auto; border-right:1px solid var(--border); }
.search-trigger { display:flex; align-items:center; justify-content:space-between; width:100%; padding:8px 10px; margin-bottom:25px; border:1px solid var(--border); border-radius:7px; background:white; color:var(--muted); font-size:12px; }
kbd { border:1px solid var(--border); padding:0 5px; border-radius:3px; font:11px/18px var(--mono); }
.nav-group { margin-bottom:26px; }
.nav-group h2 { margin:0 0 8px 10px; font-size:12px; color:#404040; font-weight:600; }
.nav-group ul { list-style:none; padding:0; margin:0; }
.nav-group a { display:block; padding:6px 10px; min-height:34px; border-radius:6px; color:#666; font-size:13px; }
.nav-group a:hover { background:#fafafa; color:var(--ink); }
.nav-group a[aria-current] { background:#f0fdfa; color:var(--teal); font-weight:600; }
.sidebar-footer { display:flex; gap:7px; align-items:center; padding:12px 4px 0; color:#737373; font-size:10px; }
.status-dot { width:5px; height:5px; border-radius:50%; background:#0d9488; flex-shrink:0; }
main { min-width:0; padding:44px 56px 0; }
article { max-width:672px; margin-inline:auto; }
.eyebrow { color:var(--teal); font-size:12px; font-weight:600; margin:0 0 14px; }
h1 { font-size:36px; line-height:1.22; font-weight:600; letter-spacing:-.045em; margin:0; }
.lead { font-size:17px; line-height:1.65; color:#666; margin:14px 0 32px; }
.prose { overflow-wrap:break-word; color:#404040; font-size:16px; line-height:1.8; }
.prose p { margin:20px 0; }
.prose h2 { color:var(--ink); font-size:24px; line-height:1.4; font-weight:600; letter-spacing:-.025em; margin:48px 0 18px; }
.prose h3 { color:var(--ink); font-size:19px; line-height:1.4; font-weight:600; margin:30px 0 14px; }
.prose > :first-child { margin-top:0; }
.prose a:not(.guide-card) { color:var(--teal); text-decoration:underline; text-decoration-color:#a6d6cf; text-underline-offset:3px; }
.prose a:hover { text-decoration-color:var(--teal); }
.prose strong { font-weight:600; }
.prose ul,.prose ol { padding-left:24px; }
.prose li { margin:10px 0; }
.prose li::marker { color:var(--teal); }
.prose code { padding:2px 5px; background:#f5f5f5; border:1px solid #ededed; border-radius:4px; font:13px/1.6 var(--mono); letter-spacing:0; }
.code-block { margin:24px 0; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; background:#fafafa; }
.code-header { display:flex; align-items:center; justify-content:space-between; min-height:40px; padding:7px 14px 7px 20px; border-bottom:1px solid var(--border); color:#666; font:12px/1.6 var(--sans); }
.prose pre { margin:0; padding:18px 20px 22px; overflow:auto; white-space:pre; }
.prose pre code { background:none; border:0; padding:0; font-size:13px; line-height:1.8; }
.copy-code { background:white; color:#525252; border:1px solid var(--border); border-radius:5px; padding:3px 9px; font-size:11px; }
.hljs-keyword,.hljs-literal { color:#8b3f85; }
.hljs-string,.hljs-regexp { color:#0f766e; }
.hljs-comment { color:#737373; }
.hljs-number,.hljs-attr,.hljs-title { color:#3757a6; }
.hljs-built_in,.hljs-type { color:#92531a; }
.table-scroll { width:100%; overflow-x:auto; margin:24px 0; border:1px solid var(--border); border-radius:var(--radius); }
.prose table { width:100%; border-collapse:collapse; text-align:left; font-size:13px; line-height:1.75; }
.prose th { font-weight:600; background:#fafafa; color:#404040; }
.prose td,.prose th { padding:14px 16px; vertical-align:top; border-bottom:1px solid var(--border); min-width:150px; overflow-wrap:anywhere; }
.prose tr:last-child td { border-bottom:0; }
.prose td code,.prose th code { font-size:12px; border:0; }
.diagram { margin:29px 0 34px; padding:8px; border:1px solid var(--border); border-radius:16px; background:#fafafa; }
.diagram-preview { display:block; position:relative; border-radius:10px; background:white; cursor:zoom-in; }
.diagram-preview img { display:block; width:100%; max-width:100%; height:auto; border-radius:inherit; }
.diagram-expand { position:absolute; right:12px; top:12px; padding:3px 8px; background:rgb(255 255 255 / .95); color:#525252; border:1px solid var(--border); border-radius:5px; font:11px/1.7 var(--sans); opacity:0; pointer-events:none; transition:opacity .15s; }
.diagram-preview:hover .diagram-expand,.diagram-preview:focus-visible .diagram-expand { opacity:1; color:var(--teal); border-color:#9ccbc4; }
.diagram figcaption { padding:12px 12px 4px; text-align:center; font-size:12px; line-height:1.6; color:#666; }
.diagram-links { display:flex; justify-content:center; flex-wrap:wrap; gap:8px 18px; margin-top:7px; }
.start-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:25px 0; }
.guide-card { display:block; padding:23px; border:1px solid var(--border); border-radius:var(--radius); transition:border-color .15s,background .15s; }
.guide-card:hover { border-color:#9ccbc4; background:#fcfefd; }
.card-kicker { font:10px/1.5 var(--mono); color:var(--teal); letter-spacing:.03em; }
.prose .guide-card h3 { font-size:17px; margin:17px 0 9px; }
.prose .guide-card p { color:var(--muted); font-size:14px; line-height:1.8; margin:0 0 19px; }
.card-action { font-size:12px; color:var(--teal); }
.page-neighbors { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:48px; padding-top:28px; border-top:1px solid var(--border); }
.page-neighbors a { border:1px solid var(--border); border-radius:var(--radius); padding:14px 17px; }
.page-neighbors a:last-child { text-align:right; }
.page-neighbors a:hover { border-color:#9ccbc4; }
.page-neighbors span { display:block; font-size:10px; color:var(--muted); }
.page-neighbors strong { display:block; font-size:12px; font-weight:500; margin-top:4px; }
.page-footer { display:flex; justify-content:space-between; gap:16px; padding:25px 0 36px; font-size:10px; color:var(--muted); }
.page-footer a:hover { color:var(--teal); }
.on-this-page { position:sticky; top:var(--header-height); align-self:start; max-height:calc(100dvh - var(--header-height)); overflow:auto; padding:44px 24px 24px 10px; font-size:12px; }
.on-this-page h2 { font-size:12px; font-weight:600; margin:0 0 15px; }
.on-this-page nav { display:flex; flex-direction:column; }
.on-this-page nav a { padding:6px 0 6px 13px; border-left:1px solid var(--border); color:#737373; line-height:1.6; }
.on-this-page nav a:hover { color:var(--ink); }
.on-this-page nav a[aria-current] { border-left-color:var(--teal); color:var(--teal); }
.toc-note { color:#737373; margin-top:26px; font-size:10px; }
dialog { width:min(680px,calc(100% - 32px)); max-height:80dvh; padding:25px; border:1px solid var(--border); border-radius:14px; box-shadow:0 24px 70px #0002; color:var(--ink); }
dialog::backdrop { background:rgb(10 10 10 / .3); backdrop-filter:blur(3px); }
.search-dialog-heading { display:flex; justify-content:space-between; align-items:center; gap:15px; }
.search-dialog-heading h2 { margin:0; font-size:17px; font-weight:600; }
.search-close { border:0; background:#f5f5f5; border-radius:5px; padding:4px 9px; }
.search-label { display:block; margin:16px 0 6px; color:var(--muted); font-size:12px; }
#docs-search { width:100%; border:1px solid #d4d4d4; border-radius:7px; padding:10px 12px; background:white; color:var(--ink); }
#search-status { font-size:11px; color:var(--muted); margin:12px 0; }
.search-result { display:block; padding:12px; margin:7px 0; border:1px solid var(--border); border-radius:8px; }
.search-result:hover { background:#f0fdfa; border-color:#a6d6cf; }
.search-result span { display:block; font-size:10px; color:var(--teal); }
.search-result strong { display:block; font-size:13px; font-weight:600; margin:3px 0; }
.search-result p { font-size:11px; color:#666; line-height:1.6; margin:4px 0 0; }
@media (max-width:1120px) { .docs-layout { grid-template-columns:220px minmax(0,1fr); } .on-this-page { display:none; } main { padding-inline:42px; } }
@media (max-width:760px) { :root { --header-height:100px; } .header-inner { height:56px; padding-inline:20px; gap:12px; } .brand { font-size:12px; gap:8px; } .brand img { width:26px; height:26px; } .badge,.source-link { display:none; } .menu-toggle { display:block; } .top-nav { gap:22px; padding-inline:20px; } .top-nav a { font-size:12px; } .docs-layout { display:block; } .sidebar { position:static; height:auto; max-height:calc(100dvh - var(--header-height)); padding:20px; border-right:0; border-bottom:1px solid var(--border); } .js .sidebar:not(.is-open) { display:none; } .sidebar-footer { display:none; } .nav-group:last-child { margin-bottom:0; } main { padding:34px 24px 0; } .lead { font-size:16px; } h1 { font-size:30px; } .prose h2 { font-size:22px; margin-top:36px; } .prose { font-size:16px; } .prose pre { margin-inline:0; } .prose pre code { font-size:12px; } .prose td,.prose th { min-width:150px; } .diagram figcaption { padding:10px 8px 4px; } .guide-card { padding:19px; } }
@media (max-width:480px) { .header-inner,.top-nav { padding-inline:16px; } .brand { max-width:245px; font-size:11px; } .menu-toggle { padding:5px 8px; font-size:11px; } main { padding-inline:20px; } .start-grid { grid-template-columns:1fr; } .page-footer { flex-direction:column; gap:7px; } .page-neighbors { gap:10px; } .page-neighbors a { padding:12px; } .diagram-links { gap:12px; flex-wrap:wrap; } }
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } .guide-card,.diagram-expand { transition:none; } }
#diagram-dialog { width:min(1200px,calc(100vw - 40px)); height:calc(100dvh - 64px); max-height:none; padding:0; overflow:hidden; }
#diagram-dialog[open] { display:flex; flex-direction:column; }
.diagram-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 20px; border-bottom:1px solid var(--border); }
.diagram-toolbar h2 { margin:0; font-size:16px; font-weight:600; line-height:1.4; }
.diagram-close,.diagram-controls button { border:1px solid var(--border); background:white; border-radius:6px; padding:4px 11px; font-size:13px; }
.diagram-viewport { flex:1; min-height:0; overflow:auto; background:#fafafa; padding:24px; }
.diagram-viewport img { display:block; max-width:none; height:auto; margin:auto; background:white; }
.diagram-controls { display:flex; align-items:center; justify-content:center; gap:12px; padding:12px 20px; border-top:1px solid var(--border); font-size:12px; }
.diagram-controls output { min-width:40px; text-align:center; }
.diagram-original { margin-left:auto; color:var(--teal); }
body:has(dialog[open]) { overflow:hidden; }
@media (max-width:760px) { #diagram-dialog { width:calc(100vw - 16px); height:calc(100dvh - 24px); } .diagram-toolbar { padding:12px; } .diagram-controls { padding:12px; gap:8px; flex-wrap:wrap; } .diagram-original { font-size:11px; } .diagram-viewport { padding:12px; } }
@media print { .site-header,.sidebar,.on-this-page,.page-neighbors,.page-footer,.copy-code { display:none!important; } .docs-layout { display:block; } main { padding:0; } article { max-width:none; } .prose pre { white-space:pre-wrap; padding:15px; } .diagram { break-inside:avoid; } .diagram-expand { display:none; } }
