/* Reading layout; colors and site navigation are shared with the landing page. The diagrams are HTML drawn with the
   site's colour tokens, so they follow the theme and reflow on a phone; their words are in the legend under each. */
.documentation { --header-height:70px; }
.documentation .docs { max-width:1376px; grid-template-columns:252px minmax(0,1fr); gap:48px; padding:42px 32px 88px; }
/* ---- Sidebar (2026-11-08, the user's spec): group label > page > section by size, weight and indent; 32px rows, 4px apart,
   24px between groups; sticky under the header with a scroll of its own; one edge - the search box and every row start at the
   menu's edge and their text 12px in. The page being read: brand text, bold, a bar and the soft fill; the page whose section
   is being read: the same without the fill; the section itself: lighter, its stretch of the rail in brand. */
.documentation .toc { position:sticky; top:calc(var(--header-height) + 24px); align-self:start; max-height:calc(100dvh - var(--header-height) - 48px); overflow-y:auto; overscroll-behavior:contain; padding:0 16px 24px 0; scrollbar-width:thin; }   /* no line between the menu and the page (the user, 2026-11-08) */
.toc-heading { display:flex; justify-content:space-between; align-items:center; margin:0 0 12px; padding-left:12px; font-size:11px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--brand); }
/* the search box as a command palette's trigger: an icon inside, the / key on the right, a brand ring on focus */
.documentation .find { padding-bottom:4px; }
.documentation .find input { height:36px; min-height:36px; padding:0 34px 0 31px; font-size:13px; color:var(--text); background:var(--bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%238a949e' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='4.6'/%3E%3Cpath d='m10.5 10.5 3 3'/%3E%3C/svg%3E") no-repeat 10px 50% / 14px; border:1px solid var(--line); border-radius:8px; transition:border-color .12s, box-shadow .12s, background-color .12s; }
.documentation .find input:hover { border-color:color-mix(in srgb, var(--muted) 45%, var(--line)); }
.documentation .find input:focus { outline:none; background-color:var(--bg); border-color:var(--brand); box-shadow:0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.documentation .find-key { top:9px; right:8px; padding:3px 5px; font-size:10.5px; line-height:1; color:var(--muted); background:var(--bg); border:1px solid var(--line); border-bottom-width:2px; border-radius:5px; }
/* level 1: the group */
/* the user's words, 2026-11-08: a group's name bold, in the brand colour, its pages indented under it (not on its starting line),
   and each group after the first set apart by a line */
.documentation .toc-group { margin:18px 0 4px 0; padding:14px 0 0 12px; border-top:1px solid var(--line); font-size:14px; font-weight:700; letter-spacing:0; text-transform:none; color:var(--brand); }
.documentation .find + .toc-group { margin-top:14px; padding-top:0; border-top:0; }
.documentation .toc > ul { margin-left:12px; }
/* level 2: the page */
.documentation .toc li { margin:0; }
.documentation .toc ul > li + li { margin-top:4px; }
.documentation .toc a { position:relative; display:flex; align-items:center; min-height:32px; padding:0 12px; font-size:14px; font-weight:500; line-height:1.3; color:color-mix(in srgb, var(--text) 80%, var(--bg)); text-decoration:none; border-radius:6px; transition:background-color .12s, color .12s; }
.documentation .toc a:hover { background:var(--bg-soft); color:var(--text); }
.documentation .toc a:focus-visible { outline:2px solid var(--brand); outline-offset:-2px; }
.documentation .toc a[aria-current=location], .documentation .toc li:has(> .toc-subs a[aria-current=location]) > a { color:var(--brand); font-weight:650; }
.documentation .toc a[aria-current=location] { background:var(--brand-bg); }
.documentation .toc a[aria-current=location]::before, .documentation .toc li:has(> .toc-subs a[aria-current=location]) > a::before { content:""; position:absolute; left:0; top:7px; bottom:7px; width:3px; border-radius:2px; background:var(--brand); }
/* level 3: the page's sections, on a rail under its text */
.documentation .toc .toc-subs { list-style:none; margin:4px 0 8px 12px; padding:0; border-left:1px solid var(--line); }
.documentation .toc .toc-subs li + li { margin-top:2px; }
.documentation .toc .toc-subs a { min-height:30px; margin-left:-1px; padding-left:15px; font-size:13.5px; font-weight:400; color:color-mix(in srgb, var(--text) 66%, var(--bg)); border-left:1px solid transparent; border-radius:0 6px 6px 0; }
.documentation .toc .toc-subs a:hover { border-left-color:var(--muted); }
.documentation .toc .toc-subs a[aria-current=location] { padding-left:14px; font-weight:600; color:var(--brand); background:color-mix(in srgb, var(--brand-bg) 60%, transparent); border-left:2px solid var(--brand); }
.documentation .toc .toc-subs a[aria-current=location]::before { content:none; }
@media (prefers-reduced-motion: reduce) { .documentation .toc a, .documentation .find input { transition:none; } }
.documentation #find-results { max-height:340px; overflow-y:auto; border-bottom:1px solid var(--line); padding-bottom:8px; }.documentation #find-results .where { white-space:normal; }.documentation #find-results li { font-size:12px; }
.doc { min-width:0; counter-reset:doc-section; font-size:15px; line-height:1.8; }
.docs-intro { padding:28px 32px 30px; border:1px solid var(--line); border-radius:14px; margin-bottom:30px; background:radial-gradient(ellipse at top right,light-dark(#dcefe980,#29473c80),transparent 75%),var(--bg-soft); }
.docs-eyebrow { color:var(--brand); font-size:10px; letter-spacing:.13em; font-weight:650; margin:0 0 16px; }
.documentation .doc h1 { font-size:clamp(30px,3.4vw,45px); font-weight:650; line-height:1.12; letter-spacing:-.04em; margin:0 0 18px; text-wrap:balance; }
.docs-lead { color:var(--muted); font-size:15px; margin:0; max-width:520px; }
.docs-quicklinks { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; margin-top:28px; }
.docs-quicklinks a { padding-top:15px; border-top:1px solid var(--line); text-decoration:none; color:var(--text); }
.docs-quicklinks a>span { display:block; font:9px ui-monospace,monospace; color:var(--brand); letter-spacing:.06em; margin-bottom:7px; }.docs-quicklinks strong { display:flex; align-items:center; justify-content:space-between; gap:5px; font-size:12px; font-weight:550; }.docs-quicklinks a:hover strong { color:var(--brand); }
.documentation .doc h2 { display:flex; align-items:baseline; gap:13px; counter-increment:doc-section; font-size:28px; font-weight:620; line-height:1.3; letter-spacing:-.035em; padding-top:32px; margin:56px 0 16px; scroll-margin-top:30px; }
.documentation .doc h2::before { content:counter(doc-section,decimal-leading-zero); color:var(--brand); font:11px ui-monospace,monospace; letter-spacing:0; }
.documentation .doc h3 { font-size:18px; font-weight:600; letter-spacing:-.02em; margin:32px 0 10px; }
.documentation .doc p,.documentation .doc li { max-width:78ch; }.documentation .doc p { margin-block:14px; }.documentation .doc li { margin-block:9px; padding-left:3px; }.documentation .doc li::marker { color:var(--brand); }.documentation .doc ul,.documentation .doc ol { padding-left:24px; }
.documentation .doc a { text-underline-offset:4px; }.documentation .doc strong { font-weight:620; }
.documentation .doc figure { margin:26px 0 32px; padding:8px; background:var(--bg-soft); border:1px solid var(--line); border-radius:12px; }.documentation .doc figure img { width:100%; border:0; border-radius:6px; }.documentation .doc figcaption { font-size:12px; padding:6px 8px 4px; color:var(--muted); }
.documentation .note { border-left-width:3px; background:var(--brand-bg); padding:16px 20px; border-radius:0 8px 8px 0; font-size:14px; }
.documentation table { margin:24px 0 30px; border:1px solid var(--line); border-radius:8px; font-size:13px; width:100%; }.documentation thead { background:var(--bg-soft); }.documentation th { padding:12px 16px; color:var(--text); font-size:12px; white-space:nowrap; }.documentation td { padding:12px 16px; }.documentation tbody tr:nth-child(even) { background:light-dark(#f0f4f255,#1b262055); }.documentation tbody tr:last-child td { border-bottom:0; }
.documentation .doc code { font-size:.85em; padding:2px 5px; overflow-wrap:anywhere; }.documentation .doc pre { padding:20px; }.documentation .doc pre code { overflow-wrap:normal; }.documentation .doc kbd { font-size:11px; border-bottom-width:2px; }
.documentation .find-flash { outline-offset:4px; }
.docs-mobile-bar,#close-side,.docs-backdrop { display:none; }
@media(max-width:1080px) {
 .documentation .docs { display:block; max-width:880px; padding-top:26px; }
 .docs-mobile-bar { display:flex; justify-content:space-between; align-items:center; position:sticky; top:var(--header-height); z-index:16; padding:10px 24px; border-bottom:1px solid var(--line); background:var(--bg); font-size:12px; color:var(--muted); }
 .docs-mobile-bar button,#close-side { border:1px solid var(--line); color:var(--text); background:var(--bg-soft); border-radius:5px; padding:6px 10px; font:inherit; cursor:pointer; }.docs-mobile-bar button span { margin-left:15px; }
 /* the drawer: a panel sliding in from the left over a scrim, rows of 44px to tap; hidden (and out of the tab order) until .open */
 .documentation .toc { display:block; position:fixed; z-index:20; top:var(--header-height); left:0; bottom:0; width:min(340px, 88vw); max-height:none; padding:20px 16px 32px; background:var(--bg); border:0; border-right:1px solid var(--line); border-radius:0; box-shadow:0 0 48px #0005; transform:translateX(-102%); visibility:hidden; transition:transform .22s ease, visibility 0s linear .22s; }
 .documentation .toc.open { transform:none; visibility:visible; transition:transform .22s ease, visibility 0s; }
 #close-side { display:inline-flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; padding:0; font-size:14px; }.toc-heading { margin-bottom:14px; }
 .documentation .toc a, .documentation .toc .toc-subs a { min-height:44px; }
 .documentation .find input { height:44px; min-height:44px; font-size:16px; }.documentation .find-key { top:13px; }
 .docs-backdrop:not([hidden]) { display:block; position:fixed; inset:var(--header-height) 0 0; z-index:17; border:0; background:rgb(0 0 0 / .45); animation:docs-scrim .22s ease; }
 @keyframes docs-scrim { from { opacity:0; } }
 @media (prefers-reduced-motion: reduce) { .documentation .toc, .documentation .toc.open { transition:none; } .docs-backdrop:not([hidden]) { animation:none; } }
 .documentation .doc h2 { scroll-margin-top:80px; }
 /* any place a link goes to clears the header and the topics bar, not only a section heading (2026-11-08) */
 .documentation .doc [id] { scroll-margin-top:80px; }
}
@media(max-width:680px) {
 .documentation .docs { padding:20px 20px 50px; }.docs-mobile-bar { padding-inline:20px; }.docs-intro { padding:24px 20px; }.documentation .doc h1 { font-size:32px; }.docs-quicklinks { grid-template-columns:1fr; gap:14px; margin-top:22px; }.docs-quicklinks a { padding-top:12px; }.docs-quicklinks strong { font-size:14px; }.docs-lead { font-size:14px; }.documentation .doc { font-size:14px; }.documentation .doc h2 { margin-top:40px; padding-top:24px; font-size:24px; }.documentation .doc figure { margin-inline:0; padding:5px; }.documentation .note { padding:12px 14px; }.documentation th,.documentation td { padding:10px 12px; }
}

/* ---- short sections: a lead line, rows, tips ---- */
.lead-line { font-size:17px; line-height:1.6; color:var(--text); max-width:64ch; margin:6px 0 22px; }
.documentation .doc .tip { border-left:3px solid var(--blue); background:light-dark(#e9f0fa,#1c2735); padding:12px 16px; border-radius:0 8px 8px 0; font-size:14px; max-width:78ch; margin:18px 0; }
.documentation .doc .note { font-size:14px; }
.kv { display:grid; grid-template-columns:minmax(150px,210px) minmax(0,1fr); margin:18px 0 26px; border-top:1px solid var(--line); font-size:14px; line-height:1.55; }
.kv dt, .kv dd { margin:0; padding:10px 0; border-bottom:1px solid var(--line); }
.kv dt { font-weight:620; padding-right:18px; }
.kv dd { color:var(--muted); }
.documentation table.two-col td:first-child { width:32%; font-weight:560; }

/* ---- lists drawn as tiles, steps, chips: no bullets ---- */
.documentation .doc :is(.glance,.step-cards,.kinds,.flow,.chips,.legend) { list-style:none; padding:0; }
.documentation .doc :is(.glance,.step-cards,.kinds,.flow,.chips,.legend) > li { margin:0; max-width:none; }
.doc .glance > li { padding:0; }

.glance { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; margin:26px 0 0; }
.glance a { display:grid; gap:5px; height:100%; padding:13px 13px 14px; border:1px solid var(--line); border-radius:10px; background:var(--card); color:var(--text); text-decoration:none; font-size:12px; line-height:1.45; }
.glance a:hover, .glance a:focus-visible { border-color:var(--brand); }
.glance strong { font-size:13px; font-weight:620; }
.glance span { color:var(--muted); }
.ic { width:20px; height:20px; fill:none; stroke:var(--brand); stroke-width:1.3; stroke-linecap:round; stroke-linejoin:round; }

.step-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:18px 0 22px; counter-reset:step; }
.step-cards.step-4 { grid-template-columns:repeat(4,minmax(0,1fr)); }
.doc .step-cards > li { counter-increment:step; display:grid; gap:4px; align-content:start; padding:14px 14px 15px; border:1px solid var(--line); border-radius:10px; background:var(--bg-soft); font-size:13px; line-height:1.45; }
.step-cards > li::before { content:counter(step); width:24px; height:24px; border-radius:50%; display:grid; place-items:center; margin-bottom:4px; background:var(--brand); color:var(--brand-text); font:600 12px ui-monospace,monospace; }
.step-cards strong { font-size:14px; font-weight:620; }
.step-cards span { color:var(--muted); }

.chips { display:flex; flex-wrap:wrap; gap:6px; margin:14px 0 18px; }
.doc .chips > li { padding:3px 11px; border:1px solid var(--line); border-radius:999px; background:var(--bg-soft); font-size:12px; }

/* ---- numbered pins and their legend ---- */
.diagram b, .legend > li::before { width:20px; height:20px; border-radius:50%; display:grid; place-items:center; background:var(--brand); color:var(--brand-text); font:600 11px/1 ui-monospace,monospace; }
.legend { counter-reset:pin; margin:14px 0 26px; display:grid; gap:9px; font-size:14px; line-height:1.5; }
.doc .legend > li { counter-increment:pin; position:relative; padding-left:32px; }
.legend > li::before { content:counter(pin); position:absolute; left:0; top:1px; }
.legend strong { font-weight:620; }

.documentation .doc figure.diagram { padding:12px; background:var(--bg-soft); border:1px solid var(--line); border-radius:12px; margin:20px 0 6px; }

/* the builder, drawn: request line, outline, cards, JSON, answer */
.anatomy { display:grid; grid-template-columns:.8fr 1.25fr 1.05fr; grid-template-rows:auto 150px auto; grid-template-areas:"top top top" "outline cards json" "answer answer answer"; gap:8px; }
.anatomy .an { position:relative; display:flex; flex-direction:column; gap:7px; padding:30px 12px 12px; border:1px solid var(--line); border-radius:8px; background:var(--card); min-width:0; }
.anatomy .an > b { position:absolute; top:7px; left:9px; }
.anatomy .an > em { position:absolute; top:9px; left:36px; font-style:normal; font-size:10px; font-weight:650; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); }
.an-top { grid-area:top; flex-direction:row!important; align-items:center; padding:9px 10px 9px 38px!important; }
.an-top > b { top:50%!important; transform:translateY(-50%); }
.an-outline { grid-area:outline; } .an-cards { grid-area:cards; } .an-json { grid-area:json; }
.an-answer { grid-area:answer; flex-direction:row!important; align-items:center; padding:9px 10px 9px 38px!important; }
.an-answer > b { top:50%!important; transform:translateY(-50%); } .an-answer > em { position:static!important; margin-right:6px; }
.an-chip, .an-box { font:11px ui-monospace,monospace; padding:3px 7px; border-radius:5px; background:var(--code-bg); border:1px solid var(--line); white-space:nowrap; }
.an-box { min-width:90px; }
.an-gap { flex:1; }
.an-run { padding:4px 11px; border-radius:6px; background:var(--brand); color:var(--brand-text); font-size:11px; font-weight:650; white-space:nowrap; }
.sk { display:block; height:6px; border-radius:3px; background:var(--line); }
.sk.in { margin-left:12px; } .sk.on { background:var(--brand); }
.sk.w30 { width:30%; } .sk.w40 { width:40%; } .sk.w50 { width:50%; } .sk.w55 { width:55%; } .sk.w60 { width:60%; } .sk.w70 { width:70%; }
.card-sk { display:block; height:28px; border:1px solid var(--line); border-radius:6px; background:var(--bg-soft); }
.card-sk.on { border-color:var(--brand); box-shadow:0 0 0 3px var(--brand-bg); } .card-sk.short { height:18px; }
.an-tabs { display:flex; flex-wrap:wrap; gap:6px; }
.an-tabs > span { font-size:11px; padding:2px 8px; border-radius:5px; border:1px solid var(--line); }
.an-tabs > span:first-child { border-color:var(--brand); color:var(--brand); }

/* three views, linked */
.link3 { display:flex; align-items:center; gap:0; }
.link3 .v { flex:0 1 auto; min-width:0; display:grid; gap:3px; padding:11px 14px; border:1px solid var(--line); border-radius:9px; background:var(--card); }
.link3 .v.on { border-color:var(--brand); box-shadow:0 0 0 3px var(--brand-bg); }
.link3 small { font-size:10px; font-weight:650; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); }
.link3 .v > span { font:12px ui-monospace,monospace; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.link3 .link { flex:1 1 24px; min-width:18px; height:2px; background:var(--brand); position:relative; }
.link3 .link::before, .link3 .link::after { content:""; position:absolute; top:-3px; width:8px; height:8px; border-radius:50%; background:var(--brand); }
.link3 .link::before { left:-4px; } .link3 .link::after { right:-4px; }

/* the four kinds of advice */
.kinds { --kc:var(--brand); display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:16px 0 18px; }
.doc .kinds > li { display:grid; gap:6px; align-content:start; padding:13px 13px 14px; border:1px solid var(--line); border-top:3px solid var(--kc); border-radius:8px; background:var(--card); font-size:12.5px; line-height:1.45; }
.kinds strong { color:var(--kc); font-size:13.5px; font-weight:650; }
.kinds span, .kinds em { color:var(--muted); }
.kinds em { font-style:normal; font-size:12px; }
.kinds em b { color:var(--text); font-weight:600; }
.kinds code { justify-self:start; }
.kinds .k-slow { --kc:light-dark(#8a5a06,#e6b26b); }
.kinds .k-none { --kc:var(--pink); }
.kinds .k-reads { --kc:var(--blue); }
.kinds .k-refused { --kc:light-dark(#b23441,#f4929c); }
/* the builder's four groups, in Inspect DSL's order and colours: the cluster's answer and errors red, behavior amber, performance
   the options colour (2026-11-08) */
.kinds .k-cluster, .kinds .k-errors { --kc:light-dark(#b23441,#f4929c); }
.kinds .k-behavior { --kc:light-dark(#8a5a06,#e6b26b); }
.kinds .k-performance { --kc:var(--violet); }
/* each card's sample is marked as one, so it is not read as what the kind is (the user, 2026-11-08) */
.kinds .k-eg { margin-top:4px; font-size:10px; font-weight:650; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); }

/* folds for reference lists */
.documentation .doc details.ref { margin:18px 0 26px; border:1px solid var(--line); border-radius:9px; background:var(--bg-soft); }
.documentation .doc details.ref > summary { cursor:pointer; padding:11px 16px; font-size:14px; font-weight:600; color:var(--brand); }
.documentation .doc details.ref[open] > summary { border-bottom:1px solid var(--line); }
.documentation .doc details.ref > :not(summary) { margin-inline:18px; }
.documentation .doc details.ref h4 { margin:16px 18px 6px; font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); }
.documentation .doc ul.cols { columns:2; column-gap:34px; font-size:13px; line-height:1.5; padding-left:18px; margin-bottom:14px; }
.documentation .doc ul.cols > li { break-inside:avoid; margin-block:4px; }
.documentation .doc ul.tight > li { margin-block:6px; }

/* from building to keeping */
.flow { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:22px; margin:16px 0 20px; counter-reset:none; }
.doc .flow > li { position:relative; display:grid; gap:3px; padding:12px 13px; border:1px solid var(--line); border-radius:9px; background:var(--card); font-size:12px; line-height:1.4; }
.flow > li:not(:last-child)::after { content:""; position:absolute; top:50%; right:-17px; transform:translateY(-50%); border:6px solid transparent; border-left:8px solid var(--brand); }
.flow strong { color:var(--brand); font-size:14px; font-weight:650; }
.flow span { color:var(--muted); }

/* a Console request, labelled */
.documentation .doc .code-anatomy pre { position:relative; margin:0; padding:16px 18px 16px 40px; background:var(--code-bg); border:1px solid var(--line); border-radius:9px; font:13px/1.8 ui-monospace,SFMono-Regular,Menlo,monospace; overflow-x:auto; }
.code-anatomy .run-mark { position:absolute; left:16px; top:16px; color:var(--brand); font-size:12px; }
.code-anatomy .ln { display:inline; }
.code-anatomy b { display:inline-grid; vertical-align:middle; margin-right:10px; width:18px; height:18px; }
.code-anatomy .m { color:var(--violet); font-weight:650; } .code-anatomy .ix { color:var(--brand); font-weight:700; }
.code-anatomy .k { color:var(--blue); } .code-anatomy .s { color:var(--pink); }

/* the Health overview, drawn */
.health-map { display:grid; gap:8px; }
.health-map > div { position:relative; padding:10px 12px 10px 40px; border:1px solid var(--line); border-radius:8px; background:var(--card); font-size:12.5px; min-width:0; }
.health-map > div > b { position:absolute; left:11px; top:10px; }
.hm-band { background:light-dark(#fbebd3,#4a3a22)!important; border-color:light-dark(#e5c48c,#6b5530)!important; color:light-dark(#6e4704,#f2cf97); font-weight:600; }
.hm-attn { display:flex; flex-wrap:wrap; justify-content:space-between; gap:4px 16px; }
.hm-link { color:var(--brand); font-weight:600; }
.hm-figs { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; }
.hm-figs > span { padding:9px 6px; border:1px solid var(--line); border-radius:6px; background:var(--bg-soft); text-align:center; color:var(--muted); font-size:11.5px; }
.hm-trends { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.hm-trends svg { width:100%; height:34px; padding:4px; border:1px solid var(--line); border-radius:6px; background:var(--bg-soft); }
.hm-trends polyline { fill:none; stroke:var(--brand); stroke-width:1.6; stroke-linejoin:round; vector-effect:non-scaling-stroke; }

/* a short loop beside its picture: plays while in view, still where motion is reduced */
.documentation .doc figure.loop { margin:0; padding:8px; background:var(--bg-soft); border:1px solid var(--line); border-radius:12px; }
.loop-video { display:block; width:100%; height:auto; aspect-ratio:1200 / 698; border-radius:6px; background:#1e1f22; }

/* advice: the figures, a wide loop, how a note reads, and every check */
.stat-strip { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:6px 0 22px; padding:0; list-style:none; }
.doc .stat-strip > li { margin:0; max-width:none; display:grid; align-content:start; gap:2px; padding:13px 14px; border:1px solid var(--line); border-radius:10px; background:var(--card); font-size:12.5px; line-height:1.4; }
.stat-strip strong { font-size:22px; font-weight:680; letter-spacing:-.02em; color:var(--brand); }
.stat-strip span { color:var(--muted); }
.documentation .doc figure.wide-loop { margin:0 0 22px; }

.note-anatomy { display:grid; gap:10px; }
.na-card { border:1px solid var(--line); border-radius:9px; background:var(--card); overflow:hidden; }
.na-head { padding:9px 12px; font-size:13px; border-bottom:1px solid var(--line); }
.na-type { font:600 12px ui-monospace,monospace; color:var(--brand); padding:2px 7px; border:1px solid var(--brand-bg); border-radius:5px; margin-right:6px; }
.na-type.agg { color:var(--violet); }
.na-note { position:relative; display:grid; grid-template-columns:20px minmax(0,1fr) auto auto; gap:10px; align-items:start; margin:10px 12px 12px; padding:11px 12px; border:1px solid var(--blue); border-radius:8px; background:light-dark(#eef4fc,#1c2735); font-size:13px; line-height:1.5; }
.na-note p { margin:0; }
.na-fix { display:inline-flex; align-items:center; gap:7px; padding:3px 10px 3px 4px; border:1px solid var(--line); border-radius:6px; background:var(--card); font-size:12px; font-weight:600; white-space:nowrap; }
.na-x { display:inline-flex; align-items:center; gap:5px; color:var(--muted); font-size:15px; }
.na-info { display:flex; align-items:center; gap:9px; padding:10px 12px; font-size:12.5px; color:var(--muted); }
.na-i { display:inline-grid; place-items:center; width:16px; height:16px; border-radius:50%; border:1px solid var(--muted); font:italic 600 10px/1 Georgia,serif; }
.note-anatomy b { flex:none; }

.catalog { margin:10px 0 30px; border:1px solid var(--line); border-radius:12px; background:var(--bg-soft); padding:14px 16px 6px; }
.cat-bar { position:sticky; top:calc(var(--header-height) + 8px); z-index:2; display:flex; flex-wrap:wrap; gap:10px; align-items:center; padding:6px 0 12px; background:var(--bg-soft); border-bottom:1px solid var(--line); }
.cat-bar input { flex:1 1 220px; min-height:36px; padding:0 12px; border:1px solid var(--line); border-radius:8px; background:var(--card); color:var(--text); font:inherit; font-size:13px; }
.cat-bar input:focus-visible { outline:2px solid var(--brand); outline-offset:1px; }
.cat-kinds { display:flex; flex-wrap:wrap; gap:6px; }
.cat-kinds button { padding:5px 10px; border:1px solid var(--line); border-radius:999px; background:var(--card); color:var(--muted); font:inherit; font-size:12px; cursor:pointer; }
.cat-kinds button span { margin-left:3px; color:var(--text); font-weight:600; }
.cat-kinds button[aria-pressed="true"] { border-color:var(--brand); color:var(--brand); background:var(--brand-bg); }
.cat-kinds button:focus-visible { outline:2px solid var(--brand); outline-offset:1px; }
.cat-group { --kc:var(--brand); margin:14px 0 6px; }
.cat-group h4 { display:flex; align-items:center; gap:8px; margin:0 0 6px; font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--kc); }
.cat-group h4 span { font:600 11px ui-monospace,monospace; color:var(--muted); letter-spacing:0; }
.documentation .doc .cat-group ul { columns:2; column-gap:30px; margin:0; padding:0 0 0 2px; list-style:none; font-size:13px; line-height:1.5; }
.documentation .doc .cat-group li { break-inside:avoid; margin:0 0 7px; padding:0 0 0 14px; position:relative; max-width:none; }
.cat-group li::before { content:""; position:absolute; left:0; top:.62em; width:6px; height:6px; border-radius:50%; background:var(--kc); }
.cat-group.k-slow { --kc:light-dark(#8a5a06,#e6b26b); } .cat-group.k-none { --kc:var(--pink); } .cat-group.k-reads { --kc:var(--blue); }
.cat-group.k-refused { --kc:light-dark(#b23441,#f4929c); } .cat-group.k-grey { --kc:var(--muted); }
.cat-none { color:var(--muted); font-size:13px; }
.cat-part { margin:16px 0 4px; }
.cat-part + .cat-part { padding-top:14px; border-top:1px dashed var(--line); }
.cat-part-head { margin:0 0 4px; font-size:12.5px; color:var(--muted); }
.cat-part-head strong { color:var(--text); font-size:14px; }
.cat-group .eng { display:inline-block; margin-left:4px; padding:0 6px; border:1px solid var(--line); border-radius:999px; font-size:10.5px; line-height:1.6; color:var(--muted); vertical-align:1px; white-space:nowrap; }
.grey-also { margin:-14px 0 28px; padding:12px 16px; border:1px solid var(--line); border-radius:10px; font-size:13px; color:var(--muted); }
.grey-also p { margin:0 0 6px; }
.grey-also strong { color:var(--text); }
.documentation .doc .grey-also ul { margin:0; padding-left:18px; }
.documentation .doc .grey-also li { margin:2px 0; max-width:none; }

/* two pictures side by side */
.fig-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:22px 0 30px; }
.documentation .doc .fig-pair figure { margin:0; }

@media(max-width:1080px) {
 .glance { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .kinds { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .stat-strip { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:680px) {
 .glance, .fig-pair { grid-template-columns:1fr; }
 .step-cards, .step-cards.step-4, .flow { grid-template-columns:1fr; gap:10px; }
 .flow > li:not(:last-child)::after { top:auto; right:auto; left:50%; bottom:-14px; transform:translateX(-50%); border:6px solid transparent; border-top:8px solid var(--brand); }
 .kinds { grid-template-columns:1fr; }
 .documentation .doc .cat-group ul { columns:1; }
 .na-note { grid-template-columns:20px minmax(0,1fr); }
 .na-fix, .na-x { grid-column:2; justify-self:start; }
 .kv { grid-template-columns:1fr; }
 .kv dt { border-bottom:0; padding-bottom:0; }
 .documentation .doc ul.cols { columns:1; }
 .anatomy { grid-template-columns:1fr 1fr; grid-template-rows:auto 120px 90px auto; grid-template-areas:"top top" "outline cards" "json json" "answer answer"; }
 .an-top .an-box { min-width:0; overflow:hidden; text-overflow:ellipsis; }
 .glance a { grid-template-columns:20px minmax(0,1fr); column-gap:12px; row-gap:2px; padding:11px 13px; }
 .glance .ic { grid-row:1 / span 2; margin-top:1px; }
 .link3 { flex-direction:column; align-items:stretch; }
 .link3 .link { flex:0 0 18px; width:2px; height:18px; align-self:center; }
 .link3 .link::before { left:-3px; top:-4px; } .link3 .link::after { left:-3px; right:auto; top:auto; bottom:-4px; }
 .hm-figs { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .lead-line { font-size:15.5px; }
}
@media(max-width:680px) { .cat-bar { position:static; } .stat-strip strong { font-size:19px; } }
