@aitrien/motifspec 1.18.0 → 1.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +3 -3
  3. package/dist/backdrop-side.html +1 -0
  4. package/dist/codex.css +185 -1
  5. package/dist/codex.js +175 -0
  6. package/dist/plate.js +4 -4
  7. package/dist/tokens.css +5 -1
  8. package/dist/tokens.js +21 -1
  9. package/dist/tokens.json +21 -1
  10. package/docs/components/_template.md +1 -1
  11. package/docs/components/accession-label.md +1 -1
  12. package/docs/components/backdrop.md +19 -7
  13. package/docs/components/button-and-link.md +2 -2
  14. package/docs/components/callout.md +1 -1
  15. package/docs/components/code-block.md +1 -1
  16. package/docs/components/component-preview.md +68 -0
  17. package/docs/components/data-table.md +2 -2
  18. package/docs/components/disclosure.md +1 -1
  19. package/docs/components/docs-shell.md +125 -0
  20. package/docs/components/figure.md +1 -1
  21. package/docs/components/heading-anchor.md +1 -1
  22. package/docs/components/icon.md +5 -1
  23. package/docs/components/keyboard-key.md +1 -1
  24. package/docs/components/ornament.md +1 -1
  25. package/docs/components/page-actions.md +56 -0
  26. package/docs/components/page-footer.md +67 -0
  27. package/docs/components/pagination.md +2 -1
  28. package/docs/components/post-list-item.md +1 -1
  29. package/docs/components/project-card.md +1 -1
  30. package/docs/components/prose.md +1 -1
  31. package/docs/components/search.md +117 -0
  32. package/docs/components/site-footer.md +1 -1
  33. package/docs/components/site-header.md +22 -1
  34. package/docs/components/specimen-plate.md +1 -1
  35. package/docs/components/status.md +1 -1
  36. package/docs/components/steps.md +70 -0
  37. package/docs/components/table-of-contents.md +1 -1
  38. package/docs/components/tabs.md +81 -0
  39. package/docs/components/tag.md +1 -1
  40. package/docs/components/tooltip.md +1 -1
  41. package/docs/hugo.md +67 -3
  42. package/docs/layouts/documentation.md +4 -7
  43. package/layouts/_markup/render-codeblock.html +18 -3
  44. package/layouts/_markup/render-heading.html +1 -1
  45. package/layouts/_partials/motifspec/article.html +1 -1
  46. package/layouts/_partials/motifspec/body-start.html +7 -4
  47. package/layouts/_partials/motifspec/docs-nav.html +31 -0
  48. package/layouts/_partials/motifspec/page-actions.html +8 -0
  49. package/layouts/_partials/motifspec/page-footer.html +21 -0
  50. package/layouts/_partials/motifspec/pagination-docs.html +37 -0
  51. package/layouts/_partials/motifspec/search.html +18 -0
  52. package/layouts/_partials/motifspec/site-header.html +11 -2
  53. package/layouts/_partials/motifspec/table-of-contents.html +1 -1
  54. package/layouts/home.markdown.md +7 -0
  55. package/layouts/page.markdown.md +7 -0
  56. package/layouts/section.markdown.md +7 -0
  57. package/package.json +2 -1
  58. package/scripts/check.mjs +55 -21
  59. package/scripts/lib.mjs +39 -2
  60. package/tokens/color.json +13 -0
package/CHANGELOG.md CHANGED
@@ -2,6 +2,33 @@
2
2
 
3
3
  Every release of MotifSpec (named brand-codex until 1.10.0), newest first. Entries before 1.10.0 keep the names they were released under. Versions follow the rules in `CONVENTIONS.md`: renaming or removing a semantic token is major, adding tokens, components or icons is minor, and changing a value or fixing a description is a patch. `npm run build` fails if the version in `package.json` has no entry here.
4
4
 
5
+ ## [1.19.0] - 2026-11-04
6
+
7
+ ### Added
8
+ - Docs shell (`docs-shell.md`, documentation layout): grouped page navigation beside the page, with "On this page" on the right when there is room. On a phone the navigation sits behind a Menu control that ships closed and opens without script. With `dist/codex.js` it docks beside the page and scrolls on its own. The Hugo partial `docs-nav.html` writes it from the site's sections, and `docs/hugo.md` shows a documentation page.
9
+
10
+ - Page actions (`page-actions.md`, documentation layout): Copy page, which copies the page's Markdown, and View as Markdown. The copy button is shown by script; the link always works.
11
+ - A Markdown copy of each page: the module defines a `markdown` output format (`index.md` beside `index.html`) with templates for pages, sections and the home page. Sites turn it on with `outputs`.
12
+ - Page footer (`page-footer.md`, documentation layout): Last updated, and Edit this page from `params.motifspec.editURL`. Hugo partials `page-actions.html`, `page-footer.html`, and `pagination-docs.html` for previous and next in the docs navigation's order.
13
+
14
+ - Search (`search.md`, shared): a trigger in the header and a modal dialog of results as you type, from a Pagefind index built with the site. Ctrl+K, Cmd+K or "/" opens it, arrow keys move through the results, and Escape closes it. MotifSpec draws it with Pagefind's API, not Pagefind's own interface, and it makes no requests to other hosts. The trigger ships hidden and the script shows it.
15
+ - The site header can carry search (`params.motifspec.search`), the version linked to the changelog (`params.motifspec.version` and `changelog`), and external links in its nav with the outward arrow.
16
+ - Component preview (`component-preview.md`, documentation layout): an `html` fence with `{preview=true}` shows the example live above its code, in an iframe whose document has the system's stylesheet, script, theme snippet and icons, so an example's ids, sticky headers and landmarks can't clash with the page. `codex.js` sizes the frame to its example, keeps it in the page's theme, and stops its links navigating.
17
+ - Steps (`steps.md`, shared): a numbered procedure, from HTML or from a Markdown ordered list with `{.cx-steps}`.
18
+ - Tabs (`tabs.md`, shared): the same content in two to four forms. Without script every panel shows under its label; with it, an ARIA tab list with arrow keys, and sets that share a `data-tabs` name change together and are remembered.
19
+ - A side layer for the backdrop (`dist/backdrop-side.html`, `cx-backdrop-page--side`): on a documentation site, contours down the left edge behind the navigation, fixed as the page scrolls, with the page and header fading in across them so there is no edge across the page. On a phone the foot shows instead. `body-start.html` writes it on every page of a site whose layout is `documentation`.
20
+ - `color.scrim` and `color.wash.scrim`: the colour behind a modal dialog and how much of it is mixed in, dark in both themes.
21
+ - The Markdown render hooks and partials mark what isn't page content `data-pagefind-ignore` (heading anchors, code block bars, the end mark, the table of contents, page actions, page footer and docs pagination), so search excerpts are the page's own text. It changes nothing without Pagefind.
22
+
23
+ ### Changed
24
+ - The checker decides a class's layouts from the component that owns it (its root class, `__elements` and `--modifiers`), not from every doc whose example shows it. Shared classes such as `cx-page-head`, `cx-lede` and `cx-meta`, which the new documentation docs show in their examples, stay shared. The map of each doc's own selectors moved from `scripts/build.mjs` to `scripts/lib.mjs`, where both use it.
25
+ - Component examples are fenced as ```` ```html {preview=true} ```` instead of ```` ```html preview ````. Hugo drops a bare word after the language but passes attributes to the render hook, which the component preview needs. GitHub still shows them as HTML. The build, the checker, the JSX conversion and the MCP server read the new form.
26
+
27
+ ## [1.18.1] - 2026-11-04
28
+
29
+ ### Fixed
30
+ - The checker read a Hugo site's `[params.motifspec]` only when the table started at the beginning of a line. An indented table, such as one under `[params]` in a config that indents its tables, was ignored, so the site was checked as portfolio whatever it declared. It now reads the table indented or not, and also dotted keys (`motifspec.layout = "dashboard"` under `[params]`, or `params.motifspec.layout` at the top) and inline tables (`motifspec = { layout = "dashboard" }`).
31
+
5
32
  ## [1.18.0] - 2026-11-04
6
33
 
7
34
  ### Added
package/README.md CHANGED
@@ -20,7 +20,7 @@ A layout is a kind of site: its shell, page templates, components, decoration an
20
20
  |---|---|---|
21
21
  | Portfolio | Case studies, writing and an about page | `docs/layouts/portfolio.md` |
22
22
  | Dashboard | Tools and admin screens (in progress) | `docs/layouts/dashboard.md` |
23
- | Documentation | Guides, reference and a changelog (in progress) | `docs/layouts/documentation.md` |
23
+ | Documentation | Guides, reference and a changelog | `docs/layouts/documentation.md` |
24
24
  | À la carte | A project that fits none of them: chosen components, its own frame | `docs/layouts/a-la-carte.md` |
25
25
 
26
26
  Each component doc says which layouts it belongs to in its front matter (`layouts:`). Shared components belong to every layout.
@@ -77,7 +77,7 @@ showcase/ Source of the system's showcase page
77
77
  mcp/ The MCP server (server.mjs), its Lambda handler, bundle step and tests
78
78
  infra/mcp.yml The server's AWS stack and deploy role (CloudFormation, applied by hand)
79
79
  hugo.toml, go.mod Hugo module definition and its mounts
80
- dist/ Generated: tokens.css, components in codex.css, chroma.css, fonts.css, icons.svg (sprite), tokens.json, tokens.js (ES module export), codex.js and theme-init.js (behaviour), backdrop.html and backdrop-foot.html, plate.html and plate.js (backdrop and specimen plate), contrast.md, showcase.html (fragment for publishing), showcase.standalone.html (open locally)
80
+ dist/ Generated: tokens.css, components in codex.css, chroma.css, fonts.css, icons.svg (sprite), tokens.json, tokens.js (ES module export), codex.js and theme-init.js (behaviour), backdrop.html, backdrop-foot.html and backdrop-side.html, plate.html and plate.js (backdrop and specimen plate), contrast.md, showcase.html (fragment for publishing), showcase.standalone.html (open locally)
81
81
  ```
82
82
 
83
83
  ## Commands
@@ -127,7 +127,7 @@ Pin an exact version, as a Hugo site pins a tag: the version you install is the
127
127
  | `@aitrien/motifspec/tokens.css`, `fonts.css`, `chroma.css` | The parts on their own: tokens only, `@font-face` only, syntax highlighting only. |
128
128
  | `@aitrien/motifspec/codex.js` | Behaviour: theme toggle, copy buttons, TOC, tooltips. Load with `defer`. |
129
129
  | `@aitrien/motifspec/theme-init.js` | Inline it in `<head>` before the stylesheet so a stored theme applies before first paint. |
130
- | `@aitrien/motifspec/plate.js`, `backdrop.html`, `backdrop-foot.html` | The contour backdrop and its motion (`backdrop.md`). |
130
+ | `@aitrien/motifspec/plate.js`, `backdrop.html`, `backdrop-foot.html`, `backdrop-side.html` | The contour backdrop and its motion (`backdrop.md`). |
131
131
  | `@aitrien/motifspec/icons.svg` | The icon sprite. Inline it once in `<body>`. |
132
132
  | `@aitrien/motifspec/tokens.js`, `tokens.json` | Every token with its value, tier and CSS name, for build tools. |
133
133
  | `@aitrien/motifspec/check` | `checkText` and `checkProject` from the rule checker. |
@@ -0,0 +1 @@
1
+ <div class="cx-backdrop cx-backdrop--side" aria-hidden="true" data-plate-seed="11" data-plate-cells="48"><svg class="cx-plate__map" viewBox="0 0 240 240" preserveAspectRatio="xMidYMid slice" focusable="false"><path class="cx-plate__grid" d="M60 0V240M0 60H240M120 0V240M0 120H240M180 0V240M0 180H240"></path><path class="cx-plate__line" style="--i: 0" pathLength="1" d="M11.6 0C11.5 1.7 11.3 3.3 11.2 5C11.1 6.7 11 8.3 11.1 10C11.1 11.7 11 13.4 11.5 15C12.1 16.7 13.3 18.8 14.8 20C16.2 21.2 18.2 21.9 20 22.4C21.7 23 23.3 23.3 25 23.4C26.7 23.4 28.4 23.3 30 22.9C31.7 22.6 33.6 21.9 35 21.3C36.1 20.9 37.1 20.4 38 20C38.7 19.6 39.2 19.4 40 18.9C41.3 18.3 43.5 17 45 16.3C46.1 15.7 47.1 15.4 48 15C48.7 14.6 49.2 14.3 50 13.9C51.3 13.3 53.3 12.5 55 11.9C56.7 11.3 58.4 10.9 60 10.2C61.7 9.4 63.5 8.5 65 7.6C66.4 6.8 67.6 6.1 68.9 5C70.4 3.7 71.8 1.7 73.2 0M240 176.6C238.5 177.7 237.1 179.1 235.5 180C233.8 181 231.8 181.5 230 182.3C228.3 183 226.6 183.6 225 184.5C223.3 185.4 221.3 186.6 220 187.7C219 188.5 218.4 189.2 217.6 190C216.7 190.8 215.8 191.5 215 192.3C214.2 193.1 213.6 194 212.8 195C211.9 196.1 211 197.1 210 198.5C208.7 200.3 207.1 202.9 205.9 205C204.9 206.7 204.2 208.3 203.5 210C202.8 211.6 202.2 213.3 201.6 215C201.1 216.7 200.6 218.3 200.1 220C199.7 221.7 199.3 223.3 198.8 225C198.3 226.7 197.9 228.3 197.2 230C196.6 231.7 195.9 233.3 195.1 235C194.3 236.7 193.3 238.3 192.4 240"></path><path class="cx-plate__line" style="--i: 1" pathLength="1" d="M4.2 0C4.3 1.7 4.3 3.3 4.4 5C4.5 6.7 4.7 8.7 4.8 10C4.9 10.9 4.9 11.4 5 12.2C5.1 13 5.1 13.9 5.2 15C5.4 16.4 5.3 18.4 5.8 20C6.3 21.7 7.2 24 8.1 25C8.7 25.7 9.2 25.8 10 26.2C11.3 26.9 13.3 28 15 28.6C16.6 29.2 18.1 29.7 19.7 30C21.4 30.3 23.5 30.5 25 30.4C26.1 30.4 27.1 30.1 28 30C28.7 29.9 29.2 29.9 30 29.7C31.3 29.4 33.3 28.6 35 27.9C36.7 27.3 38.3 26.4 40 25.6C41.7 24.8 43.3 23.8 45 23C46.7 22.2 48.6 21.4 50 20.8C50.9 20.5 51.6 20.3 52.4 20C53.3 19.7 54 19.3 55 19C56.4 18.5 58.3 17.9 60 17.3C61.7 16.8 63.4 16.3 65 15.7C66.7 15 68.4 14.3 70 13.4C71.7 12.4 73.4 11.4 75 10.1C76.7 8.7 78.4 6.8 79.8 5C81.1 3.4 82 1.7 83 0M240 161.9C238.9 162.9 237.7 164.1 236.8 165C236.1 165.7 235.7 166.1 235 166.8C234.1 167.7 232.6 169.1 231.7 170C231.1 170.6 230.7 170.9 230 171.4C228.9 172.4 227.5 173.7 226 175C224.2 176.5 222 178.3 220.2 180C218.4 181.6 216.8 183.3 215.3 185C213.9 186.6 212.3 188.8 211.4 190C210.8 190.7 210.5 191 210 191.7C209.3 192.6 208.6 193.8 207.8 195C206.9 196.3 206 197.6 205 199.1C203.9 200.9 202.5 203.3 201.6 205C200.9 206.2 200.5 207.2 200 208.1C199.6 208.8 199.4 209.2 199 210C198.5 211.3 197.7 213.3 197 215C196.3 216.7 195.7 218.3 195.1 220C194.4 221.7 193.8 223.3 193.1 225C192.3 226.7 191.5 228.4 190.6 230C189.6 231.7 188.6 233.4 187.6 235C186.5 236.7 185.2 238.3 184.1 240"></path><path class="cx-plate__line" style="--i: 2" pathLength="1" d="M91.5 0C91 0.7 90.5 1.3 90 2C89.4 2.9 88.7 4 88 5C87.1 6.2 86.2 7.4 85 8.6C83.6 10.2 81.3 12.5 80 13.6C79.3 14.2 79 14.5 78.3 15C77.4 15.6 76.2 16.3 75 17C73.5 17.8 71.7 18.7 70 19.4C68.4 20.1 66.7 20.6 65 21.1C63.3 21.6 61.7 22 60 22.6C58.3 23.1 56.3 23.7 55 24.2C54.2 24.5 53.7 24.7 52.9 25C52 25.3 51.1 25.6 50 26.1C48.5 26.7 46.4 27.8 45 28.5C43.9 29 43.1 29.5 42.2 30C41.4 30.4 40.9 30.8 40 31.2C38.7 31.9 36.5 33.2 35 33.8C33.9 34.3 33 34.6 32.1 35C31.3 35.3 30.9 35.6 30 35.9C28.7 36.3 26.7 36.8 25 37C23.3 37.2 21.7 37.2 20 37.1C18.3 37 16.7 36.6 15 36.3C13.3 36 11.7 35.5 10 35.1C8.3 34.7 6.7 34.3 5 33.9C3.3 33.5 1.7 33.2 0 32.8M240 148.9C238.3 150.6 236.6 152.3 235 154.1C233.3 156 231.6 158.1 230.1 160C228.7 161.7 227.5 163.3 226.2 165C224.8 166.7 223.2 168.7 222 170C221.3 170.9 220.7 171.4 220 172.2C219.2 173 218.5 174 217.7 175C216.9 176 215.7 177.2 215 178.1C214.4 178.8 214.2 179.2 213.6 180C212.7 181.2 211.1 183.2 210 184.8C208.8 186.5 207.6 188.6 206.7 190C206 191 205.5 191.6 205 192.5C204.5 193.3 204.1 194 203.5 195C202.6 196.4 201.4 198.3 200.4 200C199.4 201.7 198.4 203.3 197.5 205C196.6 206.6 195.8 208.2 195 209.8C194.2 211.5 193.4 213.3 192.6 215C191.8 216.7 191.1 218.3 190.2 220C189.4 221.7 188.5 223.4 187.6 225C186.7 226.5 186 227.7 185 229.2C183.8 231 182.2 233.2 180.8 235C179.4 236.7 178.1 238.3 176.8 240"></path><path class="cx-plate__line" style="--i: 3" pathLength="1" d="M101 0C99.3 1.7 97.7 3.3 96.1 5C94.5 6.6 92.7 8.8 91.6 10C90.9 10.7 90.6 11 90 11.6C89.1 12.5 87.5 14.1 86.6 15C86 15.6 85.7 15.8 85 16.3C83.8 17.3 81.7 18.9 80 19.9C78.4 20.9 76.7 21.6 75 22.3C73.3 23 71.4 23.6 70 24.1C68.9 24.5 68 24.7 67.1 25C66.4 25.2 65.9 25.3 65 25.6C63.7 26 61.7 26.5 60 27C58.3 27.5 56.5 28.1 55 28.7C53.8 29.1 52.8 29.6 51.9 30C51.2 30.3 50.8 30.5 50 30.9C48.7 31.5 46.4 32.8 45 33.6C44 34.1 43.4 34.5 42.6 35C41.7 35.5 41 36.1 40 36.7C38.6 37.6 36.7 38.8 35 39.7C33.4 40.6 31.7 41.5 30 42.1C28.4 42.7 26.7 43.2 25 43.5C23.3 43.8 21.7 43.8 20 43.8C18.3 43.8 16.7 43.5 15 43.3C13.3 43.1 11.7 42.7 10 42.5C8.3 42.3 6.7 42.1 5 42.2C3.3 42.3 1.7 42.8 0 43.1M240 134.2C238.3 135.4 236.2 136.7 235 137.8C234.2 138.6 233.8 139.1 233.2 140C232.2 141.3 230.9 143.3 230 145C229.1 146.6 228.5 148.4 227.7 150C226.8 151.6 225.9 153.2 225 154.8C224.1 156.5 223.1 158.5 222.1 160C221.4 161.2 220.6 162.2 220 163.1C219.6 163.8 219.4 164.2 218.9 165C218 166.3 216.5 168.3 215.3 170C214.1 171.7 212.7 173.6 211.8 175C211.1 176 210.6 176.6 210 177.4C209.4 178.3 209 179 208.4 180C207.5 181.4 206.3 183.3 205.3 185C204.3 186.7 203.3 188.4 202.4 190C201.6 191.4 200.9 192.5 200 194C198.9 195.8 197.3 198.4 196.4 200C195.8 201 195.5 201.6 195 202.4C194.5 203.3 194 204 193.5 205C192.7 206.4 191.6 208.3 190.7 210C189.8 211.7 189 213.3 188.1 215C187.2 216.7 186.3 218.4 185.3 220C184.3 221.7 183 223.6 182 225C181.3 226.1 180.7 227 180 227.9C179.4 228.6 178.9 229.2 178.2 230C177.3 231.1 176.3 232.4 175 233.8C173.4 235.7 171.2 237.9 169.3 240M18.7 240C17.5 239.1 15.8 238.3 15 237.4C14.4 236.6 14 235.8 14 235C14 234.2 14.3 233.3 15 232.7C16 231.7 18.5 230 20 230.4C21.6 230.7 24 233.4 24.1 235C24.2 236.6 21.8 238.3 20.7 240"></path><path class="cx-plate__line cx-plate__line--index" style="--i: 4" pathLength="1" d="M111.8 0C111.2 0.4 110.7 0.8 110 1.3C108.8 2.2 106.9 3.7 105.3 5C103.5 6.4 101.7 8 100 9.6C98.3 11.1 96.7 12.7 95 14.2C93.3 15.8 91.2 17.7 90 18.7C89.3 19.3 89.1 19.5 88.4 20C87.5 20.7 86.3 21.5 85 22.3C83.5 23.2 81.7 24.2 80 25C78.4 25.7 76.7 26.3 75 26.8C73.3 27.4 71.7 27.8 70 28.3C68.3 28.8 66.7 29.2 65 29.7C63.3 30.1 61.7 30.6 60 31.2C58.3 31.7 56.6 32.4 55 33.1C53.6 33.7 52.5 34.2 51 35C49.2 36 46.4 37.9 45 38.8C44.2 39.3 43.9 39.5 43.2 40C42.3 40.7 41.1 41.7 40 42.5C38.8 43.4 37.8 44.1 36.4 45C34.6 46.2 32 48 30 48.8C28.5 49.5 27.4 49.7 25.8 50C24.1 50.3 21.9 50.5 20 50.5C18.3 50.5 16.7 50.2 15 50C13.3 49.8 11.7 49.5 10 49.4C8.3 49.2 6.4 49.2 5 49.3C3.9 49.4 2.9 49.8 2 50C1.3 50.2 0.7 50.3 0 50.5M240 124.6C238.3 125.2 236.6 125.7 235 126.3C233.3 127 231.2 128 230 128.8C229.2 129.2 228.9 129.4 228.2 130C227.3 130.9 225.9 132.4 225 133.9C224 135.7 223.4 138.1 222.8 140C222.3 141.7 222 143.3 221.5 145C221.1 146.7 220.6 148.3 220 150C219.5 151.7 218.9 153.4 218.2 155C217.4 156.7 216.6 158.3 215.7 160C214.8 161.7 213.8 163.4 212.8 165C211.9 166.5 211 167.8 210 169.3C208.9 171.1 207.4 173.5 206.4 175C205.9 176 205.5 176.6 205 177.4C204.5 178.2 204.1 179 203.6 180C202.8 181.4 201.8 183.3 200.9 185C200 186.7 199.2 188.3 198.3 190C197.3 191.7 196.4 193.3 195.4 195C194.4 196.7 193.3 198.4 192.4 200C191.5 201.4 190.9 202.5 190 203.9C188.9 205.7 187.2 208.5 186.3 210C185.7 210.9 185.5 211.5 185 212.3C184.5 213.2 183.9 214 183.2 215C182.3 216.4 181.2 218.3 180 220C178.8 221.7 177.4 223.4 176 225C174.5 226.7 172.9 228.4 171.3 230C169.6 231.7 167.8 233.4 165.9 235C163.8 236.7 161.6 238.3 159.4 240M0 217.7C1.7 217.5 3.3 217.1 5 217.1C6.7 217.1 8.4 217.3 10 217.7C11.7 218 13.7 218.8 15 219.3C15.8 219.6 16.2 219.7 16.9 220C17.8 220.4 18.9 220.7 20 221.3C21.5 222.1 23.4 223.1 25 224.4C26.8 225.8 28.6 227.8 30 229.7C31.3 231.4 32.3 233.2 33.3 235C34.2 236.7 35 238.3 35.8 240"></path><path class="cx-plate__line" style="--i: 5" pathLength="1" d="M120.8 0C118.9 1.6 116.9 3.4 115 4.9C113.3 6.3 111.7 7.5 110 8.8C108.3 10.1 106.4 11.6 105 12.7C103.9 13.6 103.1 14.3 102.3 15C101.5 15.7 100.8 16.1 100 16.8C98.9 17.7 97.7 18.9 96.3 20C94.5 21.5 92 23.4 90 24.8C88.3 25.9 86.7 26.7 85 27.5C83.4 28.3 81.7 28.9 80 29.5C78.3 30.1 76.7 30.6 75 31C73.3 31.5 71.7 31.9 70 32.3C68.3 32.8 66.6 33.2 65 33.7C63.6 34.1 62.4 34.4 60.9 35C59.1 35.7 56.8 36.8 55 37.7C53.5 38.4 52.5 39 51 40C49.2 41.3 46.9 43.1 45 44.7C43.2 46.3 41.7 47.9 40 49.4C38.3 50.9 36.4 52.8 35 53.8C34.2 54.4 33.6 54.6 32.8 55C31.9 55.5 31.1 56.2 30 56.7C28.6 57.2 26.7 57.7 25 57.9C23.3 58.1 21.7 58 20 57.9C18.3 57.8 16.7 57.4 15 57.2C13.3 57 11.7 56.6 10 56.5C8.3 56.4 6.7 56.2 5 56.5C3.3 56.7 1.7 57.3 0 57.8M194.8 0C195.9 1.7 197.2 3.6 198.1 5C198.8 6.1 199.2 7 200 7.8C200.8 8.7 201.8 9.2 202.6 10C203.5 10.8 204 11.9 205 12.4C206.3 13 208.3 13.2 210 13.1C211.7 13 213.3 12.3 215 11.9C216.7 11.5 218.6 11.6 220 10.6C221.6 9.5 222.8 6.3 223.7 5C224.2 4.3 224.4 4.1 225 3.5C225.9 2.5 227.5 1.2 228.8 0M240 117.6C238.3 118 236.7 118.5 235 118.9C233.4 119.3 231.8 119.5 230.1 120C228.4 120.5 226.7 120.9 225 121.7C223.3 122.5 221.3 123.3 220 124.7C218.6 126.1 217.7 128.2 217 130C216.4 131.6 216.2 133.3 216 135C215.7 136.7 215.7 138.4 215.5 140C215.3 141.4 215.2 142.4 215 143.9C214.7 145.7 214.3 148.1 213.8 150C213.3 151.8 212.7 153.4 212 155C211.4 156.5 210.8 157.8 210 159.3C209.1 161.1 207.8 163.4 206.8 165C206.2 166.2 205.5 167.2 205 168.1C204.6 168.8 204.3 169.2 203.9 170C203.2 171.3 201.9 173.6 201.2 175C200.7 175.9 200.4 176.5 200 177.3C199.6 178.2 199.2 179 198.7 180C198.1 181.4 197.1 183.6 196.4 185C195.9 186.1 195.4 187.1 195 188C194.6 188.7 194.4 189.2 194 190C193.3 191.3 191.9 193.7 191.2 195C190.7 195.8 190.4 196.2 190 196.9C189.4 197.8 188.7 198.9 188 200C187.1 201.4 186.1 203.1 185 204.7C183.9 206.4 182.2 208.6 181.3 210C180.8 210.8 180.5 211.3 180 212C179.4 212.9 178.5 214 177.7 215C176.8 216.1 175.8 217.6 175 218.5C174.5 219.1 174.1 219.4 173.6 220C172.6 221 171 222.8 170 223.7C169.4 224.2 169 224.5 168.4 225C167.5 225.8 166.1 227 165 227.8C163.9 228.6 162.7 229.4 161.8 230C161.1 230.5 160.8 230.8 160 231.2C158.8 232 156.6 233.1 155 233.8C153.5 234.4 152.2 234.7 150.6 235C148.9 235.3 146.8 235.5 145 235.6C143.3 235.7 141.7 235.6 140 235.6C138.3 235.6 136.7 235.5 135 235.5C133.3 235.6 131.7 235.6 130 235.7C128.3 235.9 126.7 236.1 125 236.3C123.3 236.6 121.7 236.9 120 237.3C118.3 237.7 116.8 238.1 115 238.5C112.9 239 110.5 239.5 108.2 240M0 206.5C1.7 207.2 3.4 208.1 5 208.7C6.3 209.2 7.4 209.6 8.8 210C10.6 210.6 13 211.2 15 211.7C16.8 212.2 18.3 212.5 20 213C21.7 213.6 23.4 214.1 25 214.9C26.7 215.7 28.8 217.1 30 218.1C30.7 218.8 31 219.2 31.6 220C32.5 221.2 34 223.3 35 225C36 226.6 36.8 228.4 37.6 230C38.4 231.5 39.2 233 40 234.5C40.9 236.3 42 238.2 43 240"></path><path class="cx-plate__line" style="--i: 6" pathLength="1" d="M127.9 0C126.9 1.1 125.9 2.4 125 3.3C124.4 4 123.9 4.4 123.3 5C122.3 5.9 121 7.2 120 8.1C119.2 8.8 118.5 9.4 117.7 10C116.9 10.7 116 11.5 115 12.2C113.9 13.1 112.7 14 111.3 15C109.5 16.4 107 18.3 105 19.8C103.2 21.2 101.2 22.8 100 23.7C99.3 24.3 99 24.5 98.4 25C97.5 25.7 96.2 26.7 95 27.5C93.7 28.3 92.3 29.2 90.8 30C89 30.9 86.9 31.8 85 32.5C83.3 33.1 81.6 33.6 80 34C78.6 34.4 77.4 34.6 76 35C74.2 35.4 71.9 36 70 36.5C68.3 37 66.7 37.4 65 38C63.3 38.5 61.6 39.1 60 39.9C58.3 40.7 56.4 42 55 42.9C53.9 43.7 53.1 44.3 52.2 45C51.4 45.7 50.8 46.4 50 47.1C49.1 48 48 49 47.1 50C46.3 50.9 45.7 51.8 45 52.7C44.3 53.5 43.7 54.1 43 55C42.1 56.1 41.2 57.6 40 59C38.6 60.5 36.5 62.6 35 63.7C34 64.4 33.2 64.6 32.4 65C31.5 65.4 31 65.8 30 66.1C28.7 66.6 26.7 66.9 25 67C23.3 67.1 21.7 66.9 20 66.7C18.3 66.5 16.7 66.1 15 65.9C13.3 65.6 11.7 65.2 10 65.1C8.3 65 6.6 64.9 5 65.3C3.3 65.7 1.7 66.7 0 67.5M185.7 0C186.4 1.7 187.2 3.3 187.8 5C188.5 6.7 189.2 8.3 189.7 10C190.2 11.7 190.7 13.3 190.9 15C191.1 16.7 191.1 18.3 191 20C190.8 21.7 190.3 23.3 190 25C189.7 26.7 189.3 28.3 189.1 30C188.9 31.7 188.7 33.3 188.7 35C188.7 36.7 189 38.6 189.2 40C189.4 41 189.7 41.6 190 42.5C190.3 43.3 190.6 44.1 191.2 45C192 46.4 193.5 48.7 195 50C196.4 51.2 198.3 52.1 200 52.7C201.6 53.2 203.3 53.5 205 53.4C206.7 53.3 208.6 52.7 210 52C211.1 51.5 212 50.8 212.8 50C213.6 49.2 214.4 48.3 215 47.5C215.6 46.7 216 46 216.4 45C217.1 43.6 217.7 41.7 218.2 40C218.7 38.3 219.1 36.3 219.4 35C219.6 34.1 219.8 33.6 220 32.9C220.3 32 220.5 31.1 221 30C221.6 28.5 222.3 26.3 223.7 25C225.2 23.6 228.5 23.2 230 22.2C231 21.5 231.7 21 232.3 20C233.1 18.8 233.1 16.2 233.7 15C234.1 14.2 234.4 13.9 235 13.3C236.1 12.4 238.3 11.2 240 10.2M240 111.1C238.3 111.6 236.7 112.2 235 112.6C233.3 113 231.7 113.2 230 113.5C228.3 113.8 226.6 113.9 225 114.2C223.5 114.4 222.2 114.5 220.6 115C218.9 115.5 216.5 116.5 215 117.4C213.8 118.2 212.9 119 212.1 120C211.2 121.2 210.5 122.7 210 124.2C209.4 125.9 209.2 128.1 209.1 130C208.9 131.7 209 133.3 209 135C209 136.7 209.1 138.3 209.1 140C209 141.7 208.9 143.3 208.7 145C208.4 146.7 208 148.3 207.5 150C207 151.7 206.4 153.4 205.7 155C205 156.7 204 158.3 203.1 160C202.2 161.7 201.3 163.3 200.3 165C199.4 166.7 198.4 168.3 197.5 170C196.7 171.6 196.1 173.3 195.4 175C194.7 176.7 194.1 178.3 193.5 180C192.8 181.7 192.2 183.5 191.6 185C191.1 186.3 190.7 187.2 190 188.6C189.1 190.4 187.3 193.4 186.4 195C185.8 195.9 185.5 196.4 185 197.1C184.4 198 183.7 199 183 200C182.1 201.3 181.1 202.7 180 204.2C178.7 206 177 208.2 175.4 210C173.9 211.8 172.5 213.4 170.8 215C169 216.7 166.9 218.6 165 220C163.3 221.3 161.6 222.4 160 223.2C158.7 224 157.7 224.4 156.2 225C154.4 225.7 152 226.7 150 227.2C148.3 227.7 146.7 227.9 145 228.1C143.3 228.3 141.7 228.4 140 228.5C138.3 228.7 136.7 228.7 135 228.8C133.3 228.9 131.7 229 130 229.1C128.3 229.2 126.5 229.4 125 229.6C123.8 229.7 122.9 229.8 121.6 230C119.8 230.2 117.1 230.6 115 230.8C113.2 231 111.7 231.1 110 231.1C108.3 231.2 106.7 231.1 105 231.1C103.3 231 101.7 230.9 100 230.9C98.3 230.8 96.7 230.8 95 231C93.3 231.1 91.6 231.4 90 231.9C88.3 232.3 86.4 233.1 85 233.7C83.9 234.1 83.1 234.6 82.3 235C81.5 235.4 80.9 235.7 80 236.2C78.6 236.9 76.3 238.4 75 239C74.3 239.5 73.8 239.7 73.2 240M0 199.8C1.7 200.5 3.3 201.3 5 201.9C6.6 202.5 8.3 202.9 10 203.3C11.7 203.7 13.3 203.9 15 204.1C16.7 204.3 18.3 204.5 20 204.6C21.7 204.7 23.3 204.8 25 204.9C26.7 204.9 28.3 204.9 30 204.9C31.7 204.8 33.4 204.2 35 204.7C36.8 205.3 39.1 206.9 40 208.6C40.9 210.3 40.2 213 40.5 215C40.7 216.8 40.8 218.3 41.2 220C41.6 221.7 42.1 223.4 42.6 225C43.2 226.7 43.9 228.4 44.8 230C45.7 231.7 47.2 233.6 48.1 235C48.8 236 49.3 236.8 50 237.6C50.8 238.5 51.8 239.2 52.6 240"></path><path class="cx-plate__line" style="--i: 7" pathLength="1" d="M134.5 0C133.2 1.7 132.1 3.4 130.7 5C129.4 6.7 127.6 8.8 126.5 10C125.9 10.7 125.6 11 125 11.6C124 12.6 122.7 13.8 121.3 15C119.5 16.5 117 18.4 115 19.9C113.2 21.3 111.2 22.8 110 23.7C109.3 24.2 108.9 24.5 108.2 25C107.3 25.7 106.1 26.7 105 27.5C103.9 28.3 102.9 29.1 101.6 30C99.8 31.2 96.6 33.3 95 34.1C94.2 34.6 93.8 34.7 93.1 35C92.2 35.4 91.2 35.8 90 36.2C88.5 36.7 86.7 37.3 85 37.7C83.3 38.1 81.7 38.4 80 38.8C78.3 39.1 76.7 39.4 75 39.8C73.3 40.1 71.7 40.6 70 41.1C68.3 41.6 66.6 42.2 65 42.9C63.5 43.5 62.2 44.1 60.8 45C58.9 46.2 56.7 48 55 49.7C53.4 51.3 52 53.2 50.8 55C49.7 56.7 48.8 58.3 47.8 60C46.9 61.7 46.1 63.4 45 65C43.9 66.7 42.7 68.5 41.2 70C39.4 71.7 37 73.5 35 74.7C33.3 75.6 31.7 76.1 30 76.7C28.4 77.2 26.7 77.6 25 77.9C23.3 78.2 21.7 78.4 20 78.6C18.3 78.8 16.6 78.8 15 79.1C13.6 79.3 12.4 79.3 11.1 80C9.2 80.9 6.6 82.9 5 84.7C3.6 86.3 2.8 88.6 1.8 90C1.2 91 0.6 91.8 0 92.6M177.6 0C178.1 1.7 178.6 3.4 179 5C179.4 6.4 179.7 7.5 180 8.9C180.4 10.7 180.9 13.1 181 15C181.1 16.7 181.1 18.3 180.9 20C180.8 21.7 180.5 23.3 180.3 25C180 26.7 179.7 28.3 179.5 30C179.3 31.7 179.1 33.3 179 35C178.9 36.7 178.9 38.3 178.9 40C179 41.7 179.1 43.5 179.4 45C179.5 46.1 179.8 47.1 180 48C180.2 48.8 180.2 49.2 180.5 50C180.9 51.3 181.8 53.5 182.6 55C183.3 56.3 184.3 57.5 185 58.4C185.5 59.1 185.9 59.4 186.5 60C187.4 60.8 188.7 62 190 62.8C191.4 63.7 193 64.4 194.6 65C196.3 65.6 198.2 66.2 200 66.5C201.7 66.9 203.3 67 205 67.1C206.7 67.2 208.3 67.2 210 67.2C211.7 67.1 213.3 67 215 66.8C216.7 66.7 218.3 66.5 220 66.2C221.7 65.9 223.4 65.6 225 65.1C226.7 64.5 228.3 63.7 230 63C231.7 62.2 233.3 61.1 235 60.4C236.6 59.8 238.3 59.5 240 59M240 103.8C239.2 104.2 238.4 104.6 237.6 105C236.8 105.4 236 105.7 235 105.9C233.6 106.3 231.7 106.7 230 106.9C228.3 107.2 226.7 107.2 225 107.4C223.3 107.5 221.7 107.6 220 107.8C218.3 108 216.6 108.2 215 108.5C213.4 108.9 211.9 109.3 210.4 110C208.6 110.8 206.2 112.5 205 113.5C204.3 114 204 114.3 203.5 115C202.7 116.1 201.7 118.3 201.3 120C200.9 121.6 201 123.3 201 125C201 126.7 201.2 128.3 201.3 130C201.5 131.7 201.8 133.3 201.9 135C202 136.7 202.2 138.3 202.2 140C202.2 141.7 202 143.3 201.7 145C201.4 146.7 201 148.4 200.4 150C199.7 151.7 198.6 153.4 197.7 155C196.8 156.5 196 157.9 195 159.4C193.9 161.2 192.3 163.3 191.5 165C190.8 166.4 190.5 167.5 190 169C189.4 170.8 188.8 173.1 188.3 175C187.9 176.7 187.7 178.3 187.2 180C186.8 181.7 186.3 183.7 185.8 185C185.5 185.8 185.3 186.2 185 186.9C184.6 187.8 184.1 188.9 183.5 190C182.6 191.5 181.5 193.4 180.4 195C179.3 196.7 177.6 198.7 176.6 200C176 200.8 175.6 201.3 175 202C174.2 202.9 173.2 204.1 172.3 205C171.5 205.9 170.8 206.7 170 207.5C169.1 208.4 168.1 209.2 167.3 210C166.5 210.7 165.9 211.3 165 212C163.8 212.9 162.3 214 160.7 215C158.9 216.1 156.9 217.2 155 218.1C153.3 218.8 151.7 219.4 150 219.9C148.3 220.4 146.7 220.9 145 221.2C143.3 221.6 141.7 221.8 140 222C138.3 222.2 136.7 222.3 135 222.4C133.3 222.5 131.7 222.6 130 222.6C128.3 222.7 126.7 222.7 125 222.8C123.3 222.8 121.7 222.8 120 222.8C118.3 222.8 116.7 222.7 115 222.5C113.3 222.4 111.7 222.1 110 221.8C108.3 221.4 106.4 220.9 105 220.6C103.9 220.3 102.9 220.2 102.1 220C101.3 219.8 100.8 219.7 100 219.6C98.7 219.4 96.4 219.3 95 219.4C93.9 219.5 93 219.8 92.1 220C91.4 220.2 90.8 220.2 90 220.4C88.7 220.8 86.6 221.8 85 222.5C83.5 223.3 82.2 224.1 80.7 225C78.9 226 76.7 227.3 75 228.2C73.7 228.9 72.8 229.4 71.4 230C69.6 230.8 67 231.9 65 232.2C63.3 232.5 61.6 232.6 60 232.2C58.3 231.9 56.4 231.1 55 230C53.6 228.8 52.3 226.7 51.5 225C50.8 223.4 50.4 221.7 50.4 220C50.3 218.3 50.7 216.6 51.2 215C51.8 213.3 52.7 211.4 53.4 210C54 208.9 54.5 208.1 55 207.2C55.4 206.4 55.8 205.9 56.2 205C56.9 203.7 58 201.6 58.6 200C59.2 198.5 59.8 196.7 60 195.5C60.1 194.7 60.1 194.1 60 193.3C59.9 192.3 60.1 191 59.5 190C58.7 188.8 56.6 187.4 55 186.9C53.5 186.4 51.6 186.6 50 186.8C48.3 187.1 46.5 187.8 45 188.3C43.6 188.8 42.6 189.3 41.2 190C39.4 190.8 37 192.2 35 193C33.3 193.8 31.7 194.4 30 194.9C28.3 195.4 26.7 195.8 25 196.1C23.3 196.4 21.7 196.6 20 196.6C18.3 196.7 16.7 196.7 15 196.6C13.3 196.6 11.6 196.4 10 196.1C8.4 195.9 6.8 195.5 5.2 195C3.5 194.4 1.7 193.5 0 192.7"></path><path class="cx-plate__line" style="--i: 8" pathLength="1" d="M141.8 0C141.2 0.9 140.5 1.9 140 2.8C139.5 3.6 139.2 4.1 138.7 5C137.8 6.3 136.7 8.4 135.6 10C134.5 11.7 133.2 13.7 132.1 15C131.3 16 130.8 16.6 130 17.4C129.2 18.3 128.2 19.2 127.4 20C126.6 20.8 125.9 21.4 125 22.2C123.9 23.1 122.8 23.9 121.5 25C119.6 26.4 117 28.3 115 29.9C113.2 31.3 111.7 32.6 110 33.9C108.3 35.2 106.7 36.6 105 37.6C103.5 38.6 102.1 39.3 100.4 40C98.7 40.7 96.8 41.3 95 41.8C93.3 42.2 91.7 42.5 90 42.7C88.3 43 86.7 43.2 85 43.4C83.3 43.7 81.7 43.9 80 44.1C78.4 44.4 76.8 44.6 75.1 45C73.4 45.4 71.7 46 70 46.7C68.3 47.4 66.6 48.1 65 49.2C63.2 50.4 61.5 52 60 53.7C58.4 55.5 56.7 58.5 55.9 60C55.4 60.8 55.3 61.2 55 62C54.6 62.9 54.1 63.9 53.6 65C52.9 66.5 52 68.7 51.3 70C50.8 70.8 50.5 71.3 50 72C49.4 72.9 48.6 74.1 47.8 75C47 75.9 46 76.7 45 77.5C43.9 78.3 42.9 79.1 41.6 80C39.8 81.1 36.8 82.6 35 83.5C33.8 84.1 32.8 84.6 31.9 85C31.2 85.3 30.8 85.5 30 85.9C28.7 86.5 26.4 87.6 25 88.4C23.9 89 23 89.5 22.1 90C21.3 90.5 20.8 90.8 20 91.3C18.7 92.2 16.6 93.6 15 94.9C13.3 96.2 11.6 97.5 10 99C8.3 100.5 6.7 102.2 5 103.8C3.3 105.4 1.7 107 0 108.6M169.4 0C169.6 1.1 169.8 2.1 170 3.4C170.2 5.2 170.5 8 170.4 10C170.4 11.6 170.3 12.8 170 14.3C169.7 16.1 169.1 18.2 168.6 20C168.2 21.7 167.8 23.3 167.6 25C167.3 26.7 167.3 28.3 167.2 30C167.1 31.7 167.1 33.3 167 35C167 36.7 166.9 38.3 166.7 40C166.6 41.7 166.4 43.3 166.2 45C165.9 46.7 165.8 48.4 165.4 50C164.9 51.7 164.3 53.4 163.6 55C162.8 56.7 161.6 58.3 160.6 60C159.6 61.7 158 63.3 157.5 65C157.1 66.6 157.5 68.3 157.7 70C157.9 71.7 158.4 73.3 158.7 75C159 76.7 159.3 78.5 159.5 80C159.7 81.2 159.8 82 160 83.3C160.3 85.1 160.8 87.9 161.2 90C161.6 91.8 162 93.3 162.4 95C162.9 96.7 163.5 98.6 164 100C164.3 101.1 164.6 101.9 165 102.7C165.4 103.5 165.7 104.1 166.2 105C167 106.3 168 108.4 169.2 110C170.6 111.7 172.3 113.6 174.1 115C175.9 116.4 178.5 117.6 180 118.6C180.9 119.1 181.4 119.5 182.2 120C183.1 120.6 184.2 121 185 121.8C186 122.6 186.7 123.9 187.6 125C188.4 126.2 189.3 127.2 190 128.6C190.8 130.4 191.6 133 192 135C192.3 136.7 192.6 138.3 192.4 140C192.3 141.7 191.7 143.8 191.2 145C190.8 145.8 190.6 146.3 190 146.9C189.2 147.9 187.5 149.2 186.6 150C186 150.5 185.7 150.8 185 151.2C183.8 151.9 181.7 152.7 180 153.3C178.3 153.9 176.6 154 175 154.8C173.3 155.7 171.1 157.4 170 158.4C169.3 159 168.8 159.2 168.6 160C168.1 161.2 168.1 163.4 168.8 165C169.5 166.8 172.2 168.8 173.3 170C174 170.7 174.5 170.9 175 171.5C175.7 172.4 176.3 173.7 176.8 175C177.3 176.5 177.8 178.3 177.9 180C177.9 181.7 177.6 183.4 177.1 185C176.7 186.7 176 188.4 175.1 190C174.2 191.7 172.7 193.7 171.8 195C171.1 195.9 170.6 196.5 170 197.3C169.3 198.1 168.6 199.1 167.8 200C166.9 201 165.9 202 165 202.9C164.2 203.6 163.6 204.3 162.8 205C161.9 205.8 161 206.5 160 207.2C158.8 208.1 157.6 209.1 156.1 210C154.3 211.1 152 212.3 150 213.1C148.3 213.8 146.7 214.4 145 214.8C143.3 215.3 141.7 215.6 140 215.8C138.3 216 136.7 216.2 135 216.3C133.3 216.3 131.7 216.3 130 216.3C128.3 216.2 126.7 216.1 125 216C123.3 215.8 121.7 215.6 120 215.3C118.3 214.9 116.7 214.5 115 214C113.3 213.4 111.6 212.7 110 212C108.5 211.4 107.1 210.8 105.6 210C103.8 209.1 101.8 207.9 100 207.2C98.3 206.5 96.7 205.9 95 205.7C93.4 205.5 91.6 205.5 90 205.8C88.3 206.2 86.4 207 85 207.8C83.8 208.5 82.8 209.4 81.9 210C81.2 210.5 80.8 210.7 80 211.1C78.7 212 76.7 213.7 75 214.6C73.4 215.4 71.4 216.4 70 216.4C68.9 216.3 67.6 215.8 67.1 215C66.4 213.9 67.1 211.6 67.5 210C67.9 208.3 68.7 206.6 69.5 205C70.2 203.3 71.3 201.7 72.1 200C72.8 198.4 73.5 196.5 74 195C74.4 193.7 74.7 192.8 75 191.4C75.5 189.6 76.7 186.6 76.5 185C76.3 184 75.5 183.5 75 182.7C74.4 181.8 74.1 180.7 73.3 180C72.4 179.3 71.2 179 70 178.6C68.5 178 66.7 177.3 65 176.9C63.4 176.5 61.7 176.3 60 176.2C58.3 176.1 56.7 176.2 55 176.4C53.3 176.7 51.6 177.1 50 177.7C48.3 178.3 46.7 179.2 45 180C43.3 180.8 41.6 181.8 40 182.7C38.5 183.5 37.2 184.2 35.6 185C33.9 185.8 31.9 186.8 30 187.5C28.3 188 26.7 188.4 25 188.7C23.3 189 21.7 189.1 20 189.2C18.3 189.3 16.7 189.2 15 189C13.3 188.9 11.6 188.6 10 188.1C8.3 187.7 6.3 186.9 5 186.3C4 185.9 3.4 185.5 2.6 185C1.8 184.4 0.9 183.5 0 182.8M193.3 85C194.9 83.6 197.9 82.8 200 82.3C201.8 81.8 203.3 81.8 205 81.7C206.7 81.6 208.3 81.7 210 81.8C211.7 81.9 213.3 82.1 215 82.4C216.7 82.6 218.3 82.8 220 83.1C221.7 83.4 223.4 83.7 225 84C226.4 84.3 227.5 84.4 228.8 85C230.7 85.9 234.3 87.7 235 89.6C235.6 91.2 234.6 93.8 233.6 95C232.8 96 231.3 96.4 230 96.9C228.5 97.4 226.7 97.7 225 98C223.3 98.3 221.7 98.3 220 98.4C218.3 98.6 216.7 98.6 215 98.8C213.3 98.9 211.7 99.1 210 99.2C208.3 99.4 206.7 99.6 205 99.7C203.3 99.8 201.6 99.9 200 99.6C198.3 99.4 196.4 98.8 195 98C193.7 97.2 192.5 96.3 191.8 95C191 93.6 190.6 91.6 190.8 90C191 88.3 191.9 86.3 193.3 85Z"></path><path class="cx-plate__line cx-plate__line--index" style="--i: 9" pathLength="1" d="M0 129C0.8 127.6 1.6 126.3 2.5 125C3.3 123.8 4.1 122.8 5 121.5C6.2 119.7 7.7 117 9 115C10.2 113.2 11.5 111.4 12.6 110C13.5 109 14.3 108.2 15 107.3C15.7 106.5 16.2 105.8 16.9 105C17.8 104 19.1 102.9 20 102C20.7 101.3 21.2 100.7 22 100C22.9 99.2 24 98.3 25 97.5C26 96.7 27.2 95.7 28.1 95C28.8 94.5 29.2 94.2 30 93.7C31.3 92.9 33.3 91.6 35 90.6C36.7 89.7 38.3 88.8 40 87.9C41.7 87 43.4 86.2 45 85.3C46.7 84.3 48.5 83.1 50 82.2C51.2 81.4 52.2 80.8 53.1 80C53.8 79.4 54.3 78.8 55 78C55.8 77.1 56.8 76.2 57.6 75C58.5 73.7 59.2 72 60 70.4C60.8 68.7 61.5 66.8 62.4 65C63.2 63.3 63.8 61.6 64.9 60C66.1 58.2 67.7 56.3 69.4 55C71.1 53.7 73.1 52.8 75 52.1C76.7 51.5 78.3 51.1 80 50.8C81.7 50.5 83.3 50.4 85 50.3C86.7 50.2 88.3 50.2 90 50.3C91.7 50.4 93.3 50.5 95 50.7C96.7 50.9 98.3 51.1 100 51.4C101.7 51.8 103.4 52.1 105 52.7C106.6 53.3 107.9 54 109.4 55C111.2 56.2 113.2 58 115 59.5C116.7 61 118.3 62.5 120 63.9C121.6 65.2 123.5 66.5 125 67.6C126.3 68.5 127.2 69.2 128.6 70C130.4 71.1 133.4 72.6 135 73.5C136 74.1 136.6 74.5 137.5 75C138.3 75.5 139.1 75.9 140 76.6C141.2 77.5 142.7 78.7 143.9 80C145.2 81.4 146.4 83.3 147.3 85C148.2 86.6 148.7 88.5 149.2 90C149.6 91.3 149.7 92.2 150 93.5C150.4 95.3 150.8 98 151.3 100C151.8 101.8 152.2 103.4 152.8 105C153.4 106.6 154.2 108.1 155 109.7C155.9 111.4 157 113.3 157.8 115C158.6 116.5 159.3 117.7 160 119.2C160.8 121 161.9 123.1 162.6 125C163.1 126.7 163.6 128.3 163.7 130C163.7 131.7 163.6 133.4 163 135C162.4 136.7 161.2 138.2 160 139.7C158.6 141.4 156.7 143.1 155 144.7C153.4 146.2 151.6 147.4 150 149C148.3 150.6 146.4 152.3 145 154.2C143.6 156 142.2 158.1 141.7 160C141.2 161.7 140.9 163.4 141.3 165C141.8 166.7 143.1 168.4 144.4 170C145.9 171.8 148.2 173.3 150 174.9C151.7 176.4 153.4 177.7 155 179.3C156.7 181 159 183 160 185C160.9 186.6 161.3 188.4 161.3 190C161.3 191.6 160.7 193 160 194.6C159.2 196.4 157.5 198.8 156.5 200C156 200.7 155.6 200.9 155 201.5C154 202.4 152.5 203.9 150.9 205C149.2 206.2 146.9 207.3 145 208.1C143.3 208.7 141.7 209.2 140 209.5C138.4 209.8 136.9 209.9 135.3 210C133.6 210.1 131.7 210 130 209.8C128.3 209.6 126.7 209.3 125 208.8C123.3 208.4 121.6 207.8 120 207.1C118.5 206.5 117.3 206 115.9 205C114.2 203.8 111.9 201.8 110.6 200C109.4 198.4 108.5 196.7 108 195C107.5 193.4 107.5 191.7 107.5 190C107.6 188.3 108 186.7 108.4 185C108.7 183.3 109.3 181.5 109.6 180C109.8 178.8 109.9 177.9 110 176.9C110.1 175.9 110.1 175 110 173.9C109.8 172.7 109.7 171.3 109 170C108.2 168.4 106.5 166.7 105 165.5C103.5 164.3 101.7 163.5 100 162.8C98.4 162.2 96.7 161.8 95 161.6C93.3 161.4 91.7 161.3 90 161.4C88.3 161.5 86.7 161.9 85 162.2C83.3 162.5 81.7 163 80 163.4C78.3 163.7 76.7 164.1 75 164.4C73.3 164.6 71.7 164.8 70 164.8C68.3 164.9 66.7 164.7 65 164.6C63.3 164.5 61.7 164.1 60 164.1C58.3 164.1 56.6 164.1 55 164.5C53.3 165 51.5 165.9 50 166.8C48.6 167.7 47.9 168.9 46.5 170C44.7 171.4 42 173.3 40 174.6C38.2 175.8 36.7 176.8 35 177.7C33.4 178.6 32 179.4 30.3 180C28.6 180.6 26.8 181.1 25 181.3C23.3 181.5 21.7 181.4 20 181.2C18.3 181 16.6 180.8 15 180C13.3 179.1 11.3 177.7 10 176.1C8.7 174.4 7.8 172 7.2 170C6.6 168.3 6.6 166.7 6.3 165C6.1 163.3 5.9 161.5 5.7 160C5.5 158.8 5.4 158 5 156.7C4.4 154.9 3.1 151.9 2.1 150C1.4 148.6 0.7 147.6 0 146.3"></path><path class="cx-plate__line" style="--i: 10" pathLength="1" d="M79.7 60C81.3 59.4 83.2 59.1 85 59C86.7 58.8 88.5 59 90 59.2C91.3 59.4 92.2 59.6 93.6 60C95.4 60.5 98 61.4 100 62.2C101.8 63 103.3 64 105 65C106.7 66 108.6 67.2 110 68.1C111 68.8 111.8 69.4 112.6 70C113.4 70.6 114.1 71 115 71.6C116.3 72.6 118.1 73.9 119.7 75C121.4 76.2 123.7 77.8 125 78.8C125.8 79.3 126.2 79.5 126.9 80C127.8 80.7 129 81.7 130 82.5C131 83.3 132.3 84.1 133.2 85C133.9 85.7 134.4 86.5 135 87.3C135.6 88.2 136.4 88.9 136.9 90C137.6 91.4 138.1 93.3 138.4 95C138.7 96.6 138.7 98.3 138.7 100C138.8 101.7 138.6 103.4 138.9 105C139.1 106.7 139.4 108.3 140 109.9C140.7 111.6 141.9 113.6 142.8 115C143.5 116.1 144.4 116.9 145 117.8C145.5 118.6 145.9 119.1 146.4 120C147.2 121.3 148.4 123.3 148.8 125C149.2 126.6 149.4 128.4 149 130C148.7 131.7 147.4 133.8 146.6 135C146.1 135.8 145.6 136.1 145 136.8C144.2 137.8 143.3 139 142.4 140C141.6 140.9 140.7 141.7 140 142.6C139.3 143.4 138.8 144.1 138.1 145C137.2 146.1 136.2 147.5 135 148.9C133.5 150.7 131.8 153.2 130 155C128.4 156.6 126.6 158.4 125 159.2C123.7 159.8 122.3 159.9 121.2 160C120.4 160.1 119.8 160.1 119 160C117.8 159.9 116.4 159.7 115 159.3C113.4 158.9 111.7 158.2 110 157.6C108.3 157 106.5 156.3 105 155.9C103.7 155.5 102.9 155.3 101.5 155C99.7 154.6 97 154.3 95 154.1C93.2 154 91.7 154 90 154C88.3 154 86.7 154.1 85 154.1C83.3 154.1 81.7 154.2 80 154.1C78.3 154 76.6 154 75 153.6C73.3 153.2 71.3 152.4 70 151.7C69 151.2 68.5 150.6 67.7 150C66.8 149.3 65.9 148.5 65 147.7C64.1 146.9 63.3 145.9 62.5 145C61.6 144.2 60.9 143.4 60 142.7C59 141.8 57.8 140.7 56.9 140C56.2 139.5 55.8 139.2 55 138.7C53.7 138 51.5 136.8 50 136.2C48.7 135.7 47.9 135.3 46.5 135C44.7 134.5 42 134.1 40 133.8C38.2 133.6 36.7 133.7 35 133.5C33.3 133.3 31.6 133.3 30 132.8C28.4 132.2 26.7 131.2 25.4 130C24.1 128.7 23 126.7 22.3 125C21.6 123.4 21.3 121.7 21.3 120C21.2 118.3 21.5 116.6 21.9 115C22.4 113.3 23.2 111.6 24.1 110C25 108.3 26.4 106.4 27.5 105C28.4 104 29.2 103.3 30 102.4C30.8 101.6 31.5 100.8 32.3 100C33.1 99.2 34 98.6 35 97.8C36.2 96.9 37.4 95.9 38.8 95C40.6 93.8 43.3 92.4 45 91.5C46.1 90.9 47 90.5 47.9 90C48.7 89.6 49.2 89.4 50 88.9C51.3 88.2 53.7 86.9 55 86.2C55.8 85.7 56.3 85.5 57 85C57.9 84.4 59 83.5 60 82.7C61 81.8 62.2 80.9 63.1 80C63.8 79.2 64.4 78.3 65 77.5C65.6 76.7 66.2 76 66.9 75C67.7 73.6 68.7 71.6 69.7 70C70.7 68.3 72 66.3 73 65C73.7 64.1 74.1 63.6 75 62.8C76.2 61.9 78 60.6 79.7 60ZM22.8 155C23.5 154.4 24.1 153.8 25 153.6C26.3 153.4 28.5 153.8 30 154.7C31.7 155.7 33.7 158.1 34.4 160C35 161.6 35.1 163.4 34.5 165C33.9 166.8 31.8 169 30.1 170C28.6 170.9 26.4 171.1 25 171C23.9 170.9 23.1 170.5 22.3 170C21.4 169.5 20.6 168.7 20 167.9C19.4 167 19 166.1 18.8 165C18.5 163.6 18.7 161.4 19 160C19.2 159 19.5 158.3 20 157.5C20.6 156.6 21.9 155.7 22.8 155ZM123.7 180C124.2 179.3 124.3 178.8 125 178.4C126.1 177.6 128.3 176.9 130 176.8C131.7 176.6 133.4 177.2 135 177.7C136.7 178.2 138.4 179 140 180C141.7 181 143.6 182.2 145 183.8C146.5 185.5 148.2 188 148.5 190C148.9 191.7 148.5 193.5 147.9 195C147.3 196.4 145.9 197.7 145 198.6C144.4 199.2 144 199.6 143.2 200C142.4 200.5 141.2 201.1 140 201.5C138.5 201.9 136.7 202.2 135 202.2C133.3 202.2 131.5 202 130 201.6C128.6 201.2 127.3 200.9 126 200C124.4 198.9 122.2 196.8 121.2 195C120.4 193.5 120.1 191.8 120 190.2C119.9 188.5 120.2 186.7 120.8 185C121.4 183.3 122.8 181.2 123.7 180Z"></path><path class="cx-plate__line" style="--i: 11" pathLength="1" d="M83.7 70C85.5 69.3 88 68.7 90 68.7C91.8 68.6 93.4 69 95 69.4C96.7 69.7 98.4 70.3 100 71C101.7 71.7 103.7 72.7 105 73.5C105.9 74 106.5 74.5 107.4 75C108.2 75.6 109 76.1 110 76.7C111.3 77.6 112.8 78.8 114.3 80C116 81.5 118 83.3 119.5 85C120.9 86.6 122.3 88.3 123.2 90C124 91.6 124.5 93.3 124.8 95C125.1 96.6 125 98.3 124.9 100C124.8 101.7 124.5 103.3 124.4 105C124.2 106.7 124.1 108.3 124.1 110C124 111.7 124.1 113.3 124.2 115C124.4 116.7 124.6 118.3 124.9 120C125.2 121.7 125.8 123.3 126.3 125C126.7 126.7 127.2 128.3 127.5 130C127.7 131.7 127.8 133.3 127.7 135C127.5 136.7 127 138.7 126.4 140C126 141 125.5 141.6 125 142.5C124.5 143.3 124 144.2 123.2 145C122.3 145.9 121.3 146.8 120 147.5C118.6 148.2 116.7 148.7 115 149C113.4 149.3 111.7 149.2 110 149.1C108.3 149.1 106.7 148.9 105 148.8C103.3 148.7 101.7 148.5 100 148.4C98.3 148.3 96.7 148.2 95 148.1C93.3 148 91.7 148 90 147.8C88.3 147.7 86.7 147.6 85 147.4C83.3 147.1 81.4 146.7 80 146.3C78.8 145.9 77.9 145.4 77 145C76.2 144.7 75.8 144.5 75 144C73.7 143.2 71.6 141.6 70 140.3C68.3 138.9 66.7 137.3 65 136C63.4 134.7 61.6 133.3 60 132.3C58.7 131.4 57.6 130.8 56.2 130C54.4 129 51.9 127.7 50 126.9C48.5 126.1 47.3 125.7 45.8 125C44 124.1 41.5 122.7 40 121.8C39 121.1 38.3 120.8 37.5 120C36.5 119 35.4 117.3 35 115.8C34.6 114.2 34.6 112.2 35 110.4C35.4 108.6 36.6 106.4 37.6 105C38.3 103.9 39.2 103.2 40 102.4C40.8 101.6 41.5 100.7 42.4 100C43.2 99.3 44 98.9 45 98.2C46.4 97.3 48.3 96.1 50 95.1C51.6 94.2 53.3 93.5 55 92.6C56.7 91.8 58.3 90.9 60 90C61.7 89 63.6 87.8 65 86.9C66 86.2 66.8 85.7 67.6 85C68.5 84.3 69.2 83.6 70 82.8C70.9 81.9 72 80.9 72.9 80C73.6 79.1 74.3 78.2 75 77.3C75.7 76.5 76.4 75.8 77.2 75C78.1 74.1 78.9 72.9 80 72.1C81.1 71.3 82.3 70.5 83.7 70Z"></path><path class="cx-plate__line" style="--i: 12" pathLength="1" d="M84.4 80C86.1 79 88.2 78.1 90 77.7C91.7 77.3 93.3 77.4 95 77.6C96.7 77.8 98.7 78.4 100 78.9C100.9 79.2 101.4 79.6 102.2 80C103.1 80.5 104 80.9 105 81.6C106.3 82.5 107.9 83.7 109.3 85C110.7 86.4 112.2 88.3 113.2 90C114.1 91.5 114.6 92.9 115 94.5C115.5 96.2 115.7 98.2 115.8 100C115.9 101.7 115.8 103.3 115.7 105C115.7 106.7 115.6 108.3 115.6 110C115.5 111.7 115.5 113.3 115.5 115C115.5 116.7 115.5 118.3 115.5 120C115.5 121.7 115.6 123.3 115.6 125C115.6 126.7 115.6 128.6 115.5 130C115.4 131 115.2 131.7 115 132.6C114.8 133.4 114.9 134.1 114.4 135C113.7 136.4 111.7 138.8 110 139.8C108.5 140.8 106.7 141 105 141.4C103.3 141.7 101.7 141.9 100 142C98.3 142.1 96.7 142.1 95 142.1C93.3 142 91.7 141.9 90 141.7C88.3 141.5 86.6 141.2 85 140.7C83.3 140.1 81.6 139.4 80 138.5C78.3 137.5 76.6 136.3 75 135.1C73.3 133.8 71.7 132.3 70 130.9C68.3 129.6 66.5 128.1 65 127C63.9 126.2 62.8 125.6 61.9 125C61.2 124.5 60.8 124.2 60 123.6C58.7 122.8 56.6 121.7 55 120.5C53.3 119.2 51.3 118 50 116.4C48.6 114.6 46.9 112 46.8 110C46.7 108.3 47.6 106.5 48.7 105C49.9 103.2 52.4 101.4 54.3 100C56.1 98.7 58.4 97.8 60 96.9C61.2 96.2 62 95.7 63.3 95C65.1 93.9 68 92.4 70 91.1C71.8 89.9 73.5 88.6 75 87.4C76.2 86.6 77.2 85.8 78.1 85C78.8 84.4 79.2 83.9 80 83.2C81.2 82.3 82.8 80.9 84.4 80Z"></path><path class="cx-plate__line" style="--i: 13" pathLength="1" d="M83.7 90C85.5 89 88 87.4 90 86.8C91.7 86.3 93.4 86.1 95 86.2C96.7 86.4 98.6 87.2 100 87.9C101.1 88.5 102 89.2 102.8 90C103.6 90.8 104.4 91.8 105 92.7C105.5 93.4 105.9 94 106.3 95C106.8 96.3 107.3 98.3 107.6 100C107.9 101.7 108 103.3 108.1 105C108.2 106.7 108.2 108.3 108.2 110C108.2 111.7 108.1 113.3 108 115C107.9 116.7 107.8 118.3 107.6 120C107.4 121.7 107.2 123.4 106.7 125C106.3 126.6 106 128.3 105 129.7C103.9 131.3 101.8 132.9 100 133.8C98.5 134.6 96.8 134.9 95.1 135C93.5 135.1 91.7 135 90 134.6C88.3 134.3 86.6 133.6 85 132.9C83.3 132.1 81.8 131.1 80.2 130C78.4 128.8 76.7 127.2 75 125.8C73.3 124.3 71.2 122.3 70 121.3C69.3 120.7 69 120.6 68.4 120C67.5 119.1 66 117.4 65 116.5C64.4 115.9 63.9 115.7 63.3 115C62.5 113.9 60.9 111.7 60.8 110C60.7 108.4 61.9 106.2 62.8 105C63.4 104.1 64.2 103.9 65 103.2C66.1 102.3 67.3 101.1 68.8 100C70.6 98.7 73 97.2 75 95.9C76.8 94.7 78.5 93.5 80 92.4C81.3 91.5 82.3 90.8 83.7 90Z"></path></svg></div>
package/dist/codex.css CHANGED
@@ -2,7 +2,7 @@
2
2
  @font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-wght.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }
3
3
  @font-face { font-family: "Yarndings 12"; src: url("../fonts/yarndings-12-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: block; }
4
4
 
5
- /* MotifSpec 1.18.0 — generated from tokens/*.json. Do not edit.
5
+ /* MotifSpec 1.19.0 — generated from tokens/*.json. Do not edit.
6
6
  Themes: semantic colours use light-dark(); color-scheme follows the system unless
7
7
  <html data-theme="light|dark"> pins it. --cx-primitive-* are for this file only. */
8
8
  :root {
@@ -182,6 +182,10 @@
182
182
 
183
183
  /* color.wash */
184
184
  --cx-color-wash-hover: var(--cx-primitive-color-amount-1);
185
+ --cx-color-wash-scrim: var(--cx-primitive-color-amount-3);
186
+
187
+ /* color.scrim */
188
+ --cx-color-scrim: light-dark(var(--cx-primitive-color-ash-1000), var(--cx-primitive-color-ash-1000));
185
189
 
186
190
  /* primitive.motion.duration */
187
191
  --cx-primitive-motion-duration-0: 0ms;
@@ -547,6 +551,165 @@ p, li, dd, figcaption { text-wrap: pretty; }
547
551
  .cx-article > .cx-article__main { flex: 999 1 0; min-width: min(100%, 60%); }
548
552
  .cx-article > .cx-toc { flex: 1 1 var(--cx-size-column-sidebar); }
549
553
 
554
+ /* ------------------------------------------------------------ docs shell (documentation layout) */
555
+ /* A side column of page navigation beside the main column, inside the page container. The main column holds the
556
+ page head and a cx-article, so "On this page" sits on the right when there is room for it. */
557
+ .cx-docs { display: grid; grid-template-columns: var(--cx-size-column-sidebar) minmax(0, 1fr); align-items: start; gap: 0 var(--cx-space-gutter-grid); }
558
+ .cx-docs__main { min-width: 0; padding-bottom: var(--cx-space-section-sm); }
559
+ .cx-docs-nav { min-width: 0; padding-block: var(--cx-space-section-sm); font-size: var(--cx-font-size-small); }
560
+ /* Docked by dist/codex.js while it sits beside the main column: it stays in view and scrolls on its own. */
561
+ .cx-docs-nav.is-docked {
562
+ position: sticky; top: var(--_header-height, var(--cx-size-target-touch));
563
+ max-height: calc(var(--_viewport-height) - var(--_header-height, var(--cx-size-target-touch))); overflow-y: auto; scrollbar-width: thin;
564
+ }
565
+ .cx-docs-nav__menu > summary {
566
+ display: flex; align-items: center; gap: var(--cx-space-inline-xs); width: fit-content; min-height: var(--cx-size-target-control);
567
+ padding-inline: var(--cx-space-inset-md); border: var(--cx-border-width-hairline) solid var(--cx-color-border-strong); border-radius: var(--cx-radius-pill);
568
+ color: var(--cx-color-text-primary); font-weight: var(--cx-font-weight-strong); cursor: pointer; list-style: none;
569
+ }
570
+ .cx-docs-nav__menu > summary::-webkit-details-marker, .cx-docs-nav__group > summary::-webkit-details-marker { display: none; }
571
+ .cx-docs-nav__menu[open] > summary .cx-icon, .cx-docs-nav__group[open] > summary .cx-icon { transform: rotate(180deg); }
572
+ .cx-docs-nav__groups { display: flex; flex-direction: column; gap: var(--cx-space-stack-md); }
573
+ .cx-docs-nav__group > summary {
574
+ display: flex; align-items: center; gap: var(--cx-space-inline-sm); min-height: var(--cx-size-target-min); padding-inline: var(--cx-space-inset-md);
575
+ color: var(--cx-color-text-primary); font-weight: var(--cx-font-weight-strong); cursor: pointer; list-style: none;
576
+ }
577
+ .cx-docs-nav__group > summary .cx-icon { margin-left: auto; color: var(--cx-color-text-muted); transition: transform var(--cx-motion-duration-base) var(--cx-motion-easing-standard); }
578
+ .cx-docs-nav__list { margin: 0; padding: 0; list-style: none; border-left: var(--cx-border-width-hairline) solid var(--cx-color-border-default); }
579
+ .cx-docs-nav__group > .cx-docs-nav__list { margin-top: var(--cx-space-stack-xs); }
580
+ .cx-docs-nav__list a {
581
+ display: flex; align-items: center; min-height: var(--cx-size-target-min);
582
+ margin-left: calc(var(--cx-border-width-hairline) * -1); padding: var(--cx-space-inset-xs) var(--cx-space-inset-md);
583
+ border-left: var(--cx-border-width-emphasis) solid transparent; color: var(--cx-color-text-secondary); text-decoration: none; line-height: var(--cx-font-line-height-ui);
584
+ transition: color var(--cx-motion-duration-base) var(--cx-motion-easing-standard), border-color var(--cx-motion-duration-base) var(--cx-motion-easing-standard);
585
+ }
586
+ .cx-docs-nav__list a:hover { color: var(--cx-color-text-primary); border-left-color: var(--cx-color-border-strong); }
587
+ .cx-docs-nav__list a[aria-current="page"] { color: var(--cx-color-text-primary); font-weight: var(--cx-font-weight-strong); border-left-color: var(--cx-color-accent-border); }
588
+ /* Wide: the navigation is always open and the Menu control is hidden. */
589
+ @media (width >= 48rem) {
590
+ .cx-docs-nav__menu > summary { display: none; }
591
+ .cx-docs-nav__menu::details-content { content-visibility: visible; }
592
+ }
593
+ /* Phone: one column; the navigation sits behind the Menu control above the page, closed until it's opened. */
594
+ @media (width < 48rem) {
595
+ .cx-docs { grid-template-columns: minmax(0, 1fr); }
596
+ .cx-docs-nav { padding-block: var(--cx-space-stack-md) 0; }
597
+ .cx-docs-nav__menu[open] > .cx-docs-nav__groups { padding-top: var(--cx-space-stack-md); }
598
+ }
599
+
600
+ /* ------------------------------------------------------------ page actions and page footer (documentation layout) */
601
+ /* Copy page and View as Markdown, under a docs page's title. */
602
+ .cx-page-actions { display: flex; flex-wrap: wrap; gap: var(--cx-space-inline-xs); }
603
+ .cx-page-actions .cx-icon { flex: none; }
604
+ /* After the article: when the page last changed and where to edit it, then previous and next. */
605
+ .cx-page-footer {
606
+ display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--cx-space-stack-sm) var(--cx-space-inline-lg);
607
+ margin-block: var(--cx-space-section-sm) var(--cx-space-stack-lg); padding-top: var(--cx-space-stack-md);
608
+ border-top: var(--cx-border-width-hairline) solid var(--cx-color-border-subtle);
609
+ }
610
+ .cx-page-footer .cx-meta { margin: 0; }
611
+
612
+ /* ------------------------------------------------------------ search (a dialog over the page, from the header) */
613
+ .cx-search-trigger {
614
+ flex: none; display: inline-flex; align-items: center; gap: var(--cx-space-inline-sm); min-height: var(--cx-size-target-touch);
615
+ padding-inline: var(--cx-space-inset-sm) var(--cx-space-inset-xs); border: var(--cx-border-width-hairline) solid var(--cx-color-border-strong);
616
+ border-radius: var(--cx-radius-pill); background: var(--cx-color-surface-base); color: var(--cx-color-text-secondary);
617
+ font: inherit; font-size: var(--cx-font-size-small); cursor: pointer;
618
+ }
619
+ .cx-search-trigger:hover { color: var(--cx-color-text-primary); background: var(--cx-color-surface-hover); }
620
+ .cx-search-trigger__keys { display: inline-flex; gap: var(--cx-space-inline-xs); }
621
+ .cx-search {
622
+ width: min(100% - 2 * var(--cx-space-gutter-page), 2 * var(--cx-size-column-card)); max-height: calc(100% - 2 * var(--cx-space-section-sm));
623
+ margin: var(--cx-space-section-sm) auto auto; padding: 0; border: var(--cx-border-width-hairline) solid var(--cx-color-border-default);
624
+ background: var(--cx-color-surface-raised); color: var(--cx-color-text-primary);
625
+ }
626
+ .cx-search[open] { display: flex; flex-direction: column; }
627
+ .cx-search::backdrop { background: color-mix(in srgb, var(--cx-color-scrim) var(--cx-color-wash-scrim), transparent); }
628
+ .cx-search__form { display: flex; align-items: center; gap: var(--cx-space-inline-sm); padding: var(--cx-space-inset-xs) var(--cx-space-inset-xs) var(--cx-space-inset-xs) var(--cx-space-inset-md); border-bottom: var(--cx-border-width-hairline) solid var(--cx-color-border-default); }
629
+ .cx-search__form > .cx-icon { flex: none; color: var(--cx-color-text-muted); }
630
+ .cx-search__input {
631
+ flex: 1 1 auto; min-width: 0; min-height: var(--cx-size-target-touch); padding: 0; border: 0; background: transparent;
632
+ color: var(--cx-color-text-primary); font: inherit; font-size: var(--cx-font-size-body);
633
+ }
634
+ .cx-search__input:focus { outline: none; }
635
+ .cx-search__input::-webkit-search-cancel-button { display: none; }
636
+ .cx-search__form:focus-within { box-shadow: inset 0 calc(var(--cx-border-width-focus) * -1) 0 var(--cx-color-focus-ring); }
637
+ .cx-search__close {
638
+ flex: none; display: inline-grid; place-items: center; width: var(--cx-size-target-touch); height: var(--cx-size-target-touch); padding: 0;
639
+ border: 0; border-radius: var(--cx-radius-pill); background: transparent; color: var(--cx-color-text-secondary); cursor: pointer;
640
+ }
641
+ .cx-search__close:hover { color: var(--cx-color-text-primary); background: var(--cx-color-surface-hover); }
642
+ .cx-search__status { margin: 0; padding: var(--cx-space-inset-sm) var(--cx-space-inset-md); font-family: var(--cx-font-family-mono); font-size: var(--cx-font-size-label); letter-spacing: var(--cx-font-tracking-ui); color: var(--cx-color-text-muted); }
643
+ .cx-search__status:empty { display: none; }
644
+ .cx-search__results { margin: 0; padding: 0 0 var(--cx-space-inset-xs); list-style: none; overflow-y: auto; }
645
+ .cx-search__result {
646
+ display: flex; flex-direction: column; gap: var(--cx-space-stack-xs); padding: var(--cx-space-inset-sm) var(--cx-space-inset-md);
647
+ border-top: var(--cx-border-width-hairline) solid var(--cx-color-border-subtle); color: var(--cx-color-text-primary); text-decoration: none;
648
+ }
649
+ .cx-search__result:hover, .cx-search__result:focus-visible { background: var(--cx-color-surface-hover); }
650
+ .cx-search__result:focus-visible { outline-offset: calc(var(--cx-border-focus-offset) * -1); }
651
+ .cx-search__title { font-weight: var(--cx-font-weight-strong); line-height: var(--cx-font-line-height-heading); }
652
+ .cx-search__excerpt { font-size: var(--cx-font-size-small); line-height: var(--cx-font-line-height-ui); color: var(--cx-color-text-secondary); }
653
+ .cx-search__excerpt mark { background: var(--cx-color-surface-highlight); color: var(--cx-color-text-primary); }
654
+ @media (width < 48rem) {
655
+ .cx-search-trigger { width: var(--cx-size-target-touch); padding: 0; justify-content: center; }
656
+ .cx-search-trigger__label, .cx-search-trigger__keys { display: none; }
657
+ }
658
+ /* The header's version, when it has one: the release a docs site describes, linking to its changelog. */
659
+ .cx-header__version { display: inline-flex; align-items: center; min-height: var(--cx-size-target-touch); padding-inline: var(--_nav-pad); border-radius: var(--cx-radius-pill); color: var(--cx-color-text-secondary); font-family: var(--cx-font-family-mono); font-size: var(--cx-font-size-label); text-decoration: none; }
660
+ @media (hover: hover) { .cx-header__version:hover { color: var(--cx-color-text-primary); background: var(--_wash); } }
661
+ .cx-nav a .cx-icon { margin-left: var(--cx-space-inline-xs); }
662
+
663
+ /* ------------------------------------------------------------ component preview (a live example above its code) */
664
+ /* The example runs in its own document (an iframe's srcdoc) with the system's stylesheet and script, so its ids,
665
+ sticky headers and landmarks can't clash with the page around it. dist/codex.js sizes it to its content. */
666
+ .cx-preview { margin-block: var(--cx-space-stack-lg); border: var(--cx-border-width-hairline) solid var(--cx-color-border-default); }
667
+ .cx-preview__frame {
668
+ display: block; width: 100%; height: var(--_frame-height, var(--cx-size-column-card)); border: 0;
669
+ border-bottom: var(--cx-border-width-hairline) solid var(--cx-color-border-default); background: var(--cx-color-surface-base);
670
+ }
671
+ .cx-preview > .cx-code { margin: 0; border: 0; }
672
+ .cx-preview-body { margin: 0; padding: var(--cx-space-inset-md); background: var(--cx-color-surface-base); }
673
+
674
+ /* ------------------------------------------------------------ steps (a numbered procedure) */
675
+ .cx-steps, .cx-prose .cx-steps { margin: 0; padding: 0; list-style: none; counter-reset: cx-step; }
676
+ .cx-steps > li::marker { content: none; }
677
+ /* The number sits in the step's left padding, so a step's content flows as ordinary text: a Markdown list item's
678
+ bold lead-in, inline code and links stay on their lines. */
679
+ .cx-steps > li {
680
+ position: relative; counter-increment: cx-step; margin: 0;
681
+ padding: var(--cx-space-stack-md) 0 var(--cx-space-stack-md) calc(var(--cx-size-target-min) + var(--cx-space-inline-md));
682
+ border-top: var(--cx-border-width-hairline) solid var(--cx-color-border-subtle);
683
+ }
684
+ .cx-steps > li:last-child { border-bottom: var(--cx-border-width-hairline) solid var(--cx-color-border-subtle); }
685
+ .cx-steps > li::before {
686
+ content: counter(cx-step, decimal-leading-zero); position: absolute; left: 0; top: var(--cx-space-stack-md);
687
+ font-family: var(--cx-font-family-mono); font-size: var(--cx-font-size-label); letter-spacing: var(--cx-font-tracking-ui);
688
+ line-height: var(--cx-font-line-height-body); font-variant-numeric: tabular-nums; color: var(--cx-color-text-accent);
689
+ }
690
+ .cx-steps > li > :first-child { margin-top: 0; }
691
+ .cx-steps > li > :last-child { margin-bottom: 0; }
692
+ /* A step's title: an h3 with this class in HTML, or the bold lead-in of a Markdown list item. */
693
+ .cx-steps .cx-steps__title, .cx-steps > li > strong:first-child { display: block; margin: 0 0 var(--cx-space-stack-xs); font-size: var(--cx-font-size-body); font-weight: var(--cx-font-weight-strong); line-height: var(--cx-font-line-height-heading); }
694
+
695
+ /* ------------------------------------------------------------ tabs (the same content in two or more forms) */
696
+ /* Without script every panel shows, each under its own label. dist/codex.js adds a tab list, keeps one panel shown
697
+ and hides the labels (the tabs name the panels). */
698
+ .cx-tabs { margin-block: var(--cx-space-stack-lg); }
699
+ .cx-tabs__panel + .cx-tabs__panel { margin-top: var(--cx-space-stack-lg); }
700
+ .cx-tabs .cx-tabs__label { margin: 0 0 var(--cx-space-stack-sm); font-family: var(--cx-font-family-mono); font-size: var(--cx-font-size-label); font-weight: var(--cx-font-weight-ui); letter-spacing: var(--cx-font-tracking-label); text-transform: uppercase; color: var(--cx-color-text-muted); }
701
+ .cx-tabs.is-tabbed .cx-tabs__label { display: none; }
702
+ .cx-tabs.is-tabbed .cx-tabs__panel + .cx-tabs__panel { margin-top: 0; }
703
+ .cx-tabs__list { display: flex; flex-wrap: wrap; gap: 0 var(--cx-space-inline-xs); margin-bottom: var(--cx-space-stack-sm); border-bottom: var(--cx-border-width-hairline) solid var(--cx-color-border-default); }
704
+ .cx-tabs__tab {
705
+ min-height: var(--cx-size-target-control); margin-bottom: calc(var(--cx-border-width-hairline) * -1); padding-inline: var(--cx-space-inset-md);
706
+ border: 0; border-bottom: var(--cx-border-width-emphasis) solid transparent; background: transparent; color: var(--cx-color-text-secondary);
707
+ font: inherit; font-size: var(--cx-font-size-small); cursor: pointer;
708
+ }
709
+ .cx-tabs__tab:hover { color: var(--cx-color-text-primary); border-bottom-color: var(--cx-color-border-strong); }
710
+ .cx-tabs__tab[aria-selected="true"] { color: var(--cx-color-text-primary); font-weight: var(--cx-font-weight-strong); border-bottom-color: var(--cx-color-accent-border); }
711
+ .cx-tabs__panel:focus-visible { outline-offset: var(--cx-border-focus-offset); }
712
+
550
713
  /* ------------------------------------------------------------ site header and nav */
551
714
  .cx-header {
552
715
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
@@ -1112,6 +1275,27 @@ body:not(.cx-backdrop-page):has(.cx-backdrop-page) { background: transparent; }
1112
1275
  mask-composite: intersect;
1113
1276
  }
1114
1277
  .cx-backdrop--foot { bottom: 0; }
1278
+ /* Side: documentation pages (cx-backdrop-page--side) from size.breakpoint.md up. One layer down the left edge, fixed,
1279
+ so it stays beside the navigation as the page scrolls. It reaches the left edge of the docs' main column
1280
+ (--_side: the page container's margin and gutter, then the navigation column), and the page's surface fades in
1281
+ across it, so the contours show in the margin, keep color.backdrop.calm behind the navigation, and are gone before
1282
+ the article. The header fades the same way, so there is no edge across the band. On a phone the foot takes over. */
1283
+ .cx-backdrop--side { display: none; }
1284
+ .cx-backdrop-page--side {
1285
+ --_side: calc(max(0%, 50% - var(--cx-size-container-page) / 2 - var(--cx-space-gutter-page)) + var(--cx-space-gutter-page) + var(--cx-size-column-sidebar));
1286
+ }
1287
+ @media (width >= 48rem) {
1288
+ .cx-backdrop-page--side { background: linear-gradient(to right, transparent, var(--cx-color-surface-base) var(--_side)); }
1289
+ /* The header keeps the same fade when it sticks: what scrolls under it is the article, which is past --_side. */
1290
+ .cx-backdrop-page--side .cx-header, .cx-backdrop-page--side .cx-header[data-scrolled] { background: linear-gradient(to right, transparent, var(--cx-color-surface-base) var(--_side)); }
1291
+ .cx-backdrop-page--side .cx-header[data-scrolled="true"] { background-color: transparent; }
1292
+ .cx-backdrop-page--side .cx-backdrop--foot { display: none; }
1293
+ .cx-backdrop-page--side .cx-backdrop--side {
1294
+ display: block; position: fixed; top: 0; bottom: 0; left: 0; right: auto; width: var(--_side); height: auto;
1295
+ -webkit-mask-image: linear-gradient(to right, var(--_full), var(--_calm) 55%);
1296
+ mask-image: linear-gradient(to right, var(--_full), var(--_calm) 55%);
1297
+ }
1298
+ }
1115
1299
  .cx-backdrop .cx-plate__map { position: relative; z-index: 0; width: 100%; height: 100%; filter: saturate(var(--cx-color-backdrop-saturation)); }
1116
1300
  /* Sharp hairlines, as on the plate, without its survey grid. No draw-in: the backdrop is already there when a page opens. */
1117
1301
  .cx-backdrop .cx-plate__grid { display: none; }
package/dist/codex.js CHANGED
@@ -21,6 +21,10 @@
21
21
  b.setAttribute('aria-label', label);
22
22
  var tip = b.querySelector('.cx-tooltip'); if (tip) tip.textContent = label;
23
23
  });
24
+ // Component previews run in their own documents; keep them in the page's theme.
25
+ document.querySelectorAll('.cx-preview__frame').forEach(function (f) {
26
+ try { var r = f.contentDocument && f.contentDocument.documentElement; if (r) { if (pref === 'auto') r.removeAttribute('data-theme'); else r.setAttribute('data-theme', pref); } } catch (e) { /* not ready yet */ }
27
+ });
24
28
  }
25
29
 
26
30
  // Durations come from the tokens, never from literals in this file.
@@ -64,6 +68,7 @@
64
68
  var end = header.querySelector('.cx-header__end'), mark = header.querySelector('.cx-wordmark');
65
69
  var measure = function () {
66
70
  root.style.setProperty('--_header-height', header.offsetHeight + 'px');
71
+ root.style.setProperty('--_viewport-height', window.innerHeight + 'px');
67
72
  // When the nav and controls wrap below the wordmark, mark the header so the nav aligns with the page text.
68
73
  if (end && mark) header.toggleAttribute('data-wrapped', end.offsetTop > mark.offsetTop + mark.offsetHeight / 2);
69
74
  };
@@ -105,6 +110,176 @@
105
110
  });
106
111
  });
107
112
 
113
+ // Component previews: size each frame to its document's body (the root is never shorter than the frame), and keep
114
+ // its theme. Inside a preview, links don't navigate.
115
+ document.querySelectorAll('.cx-preview__frame').forEach(function (f) {
116
+ var fit = function () {
117
+ try { var d = f.contentDocument; if (d && d.body) f.style.setProperty('--_frame-height', d.body.offsetHeight + 'px'); } catch (e) { /* cross-origin: keep the default height */ }
118
+ };
119
+ var start = function () {
120
+ apply(theme); fit();
121
+ try { if ('ResizeObserver' in window) new ResizeObserver(fit).observe(f.contentDocument.body); } catch (e) { /* keep the measured height */ }
122
+ };
123
+ f.addEventListener('load', start);
124
+ try { if (f.contentDocument && f.contentDocument.readyState === 'complete' && f.contentDocument.body && f.contentDocument.body.childNodes.length) start(); } catch (e) { /* wait for load */ }
125
+ });
126
+ if (document.body.classList.contains('cx-preview-body')) {
127
+ document.addEventListener('click', function (e) { if (e.target.closest && e.target.closest('a[href]')) e.preventDefault(); });
128
+ }
129
+
130
+ // Tabs: turn the labelled panels into a tab list with one panel shown. Sets that share data-tabs stay in step,
131
+ // and the choice is remembered for the next page (cx-tabs:<name> in localStorage).
132
+ document.querySelectorAll('.cx-tabs').forEach(function (set, n) {
133
+ var panels = Array.prototype.slice.call(set.querySelectorAll(':scope > .cx-tabs__panel'));
134
+ if (panels.length < 2) return;
135
+ var list = document.createElement('div'); list.className = 'cx-tabs__list'; list.setAttribute('role', 'tablist');
136
+ if (set.getAttribute('aria-label')) list.setAttribute('aria-label', set.getAttribute('aria-label'));
137
+ var tabs = panels.map(function (panel, i) {
138
+ var label = panel.querySelector('.cx-tabs__label');
139
+ var id = 'cx-tabs-' + n + '-' + i;
140
+ var tab = document.createElement('button'); tab.type = 'button'; tab.className = 'cx-tabs__tab'; tab.id = id + '-tab';
141
+ tab.setAttribute('role', 'tab'); tab.setAttribute('aria-controls', panel.id || (panel.id = id + '-panel'));
142
+ tab.textContent = label ? label.textContent : 'Tab ' + (i + 1);
143
+ panel.setAttribute('role', 'tabpanel'); panel.setAttribute('aria-labelledby', tab.id); panel.tabIndex = 0;
144
+ list.appendChild(tab);
145
+ return tab;
146
+ });
147
+ var key = set.dataset.tabs ? 'cx-tabs:' + set.dataset.tabs : null;
148
+ var select = function (i, focus) {
149
+ tabs.forEach(function (t, j) { t.setAttribute('aria-selected', i === j ? 'true' : 'false'); t.tabIndex = i === j ? 0 : -1; panels[j].hidden = i !== j; });
150
+ if (focus) tabs[i].focus();
151
+ };
152
+ set.insertBefore(list, panels[0]); set.classList.add('is-tabbed');
153
+ var stored = null; try { stored = key && localStorage.getItem(key); } catch (e) { /* storage blocked */ }
154
+ var first = tabs.findIndex(function (t) { return t.textContent === stored; });
155
+ select(first < 0 ? 0 : first);
156
+ set.addEventListener('cx-tabs-sync', function (e) { var i = tabs.findIndex(function (t) { return t.textContent === e.detail; }); if (i >= 0) select(i); });
157
+ var choose = function (i, focus) {
158
+ select(i, focus);
159
+ if (!key) return;
160
+ try { localStorage.setItem(key, tabs[i].textContent); } catch (e) { /* storage blocked */ }
161
+ document.querySelectorAll('.cx-tabs[data-tabs="' + set.dataset.tabs + '"]').forEach(function (other) {
162
+ if (other !== set) other.dispatchEvent(new CustomEvent('cx-tabs-sync', { detail: tabs[i].textContent }));
163
+ });
164
+ };
165
+ tabs.forEach(function (t, i) { t.addEventListener('click', function () { choose(i); }); });
166
+ list.addEventListener('keydown', function (e) {
167
+ var at = tabs.indexOf(document.activeElement), last = tabs.length - 1;
168
+ var to = { ArrowRight: at + 1 > last ? 0 : at + 1, ArrowLeft: at - 1 < 0 ? last : at - 1, Home: 0, End: last }[e.key];
169
+ if (to === undefined || at < 0) return;
170
+ e.preventDefault(); choose(to, true);
171
+ });
172
+ });
173
+
174
+ // Search: a dialog over a Pagefind index. The trigger is shown once this script runs; Pagefind's script loads on the
175
+ // first open. Ctrl+K or Cmd+K, or "/" outside a text field, opens it; Escape closes it (native to <dialog>).
176
+ document.querySelectorAll('.cx-search[data-search]').forEach(function (dialog) {
177
+ var input = dialog.querySelector('.cx-search__input');
178
+ var list = dialog.querySelector('.cx-search__results');
179
+ var status = dialog.querySelector('.cx-search__status');
180
+ var triggers = document.querySelectorAll('[data-search-open][aria-controls="' + dialog.id + '"]');
181
+ var pagefind = null, failed = false, seq = 0;
182
+ var load = function () {
183
+ if (!pagefind) pagefind = import(dialog.dataset.search).then(function (pf) { return pf.options({ excerptLength: 24 }).then(function () { return pf; }); });
184
+ return pagefind;
185
+ };
186
+ // Pagefind marks matches with <mark> in an escaped excerpt; keep the text and the marks, nothing else.
187
+ var excerpt = function (html) {
188
+ var out = document.createDocumentFragment();
189
+ new DOMParser().parseFromString('<p>' + html + '</p>', 'text/html').body.firstChild.childNodes.forEach(function (n) {
190
+ if (n.nodeName === 'MARK') { var m = document.createElement('mark'); m.textContent = n.textContent; out.appendChild(m); }
191
+ else out.appendChild(document.createTextNode(n.textContent));
192
+ });
193
+ return out;
194
+ };
195
+ var render = function (items, query) {
196
+ list.replaceChildren();
197
+ items.forEach(function (r) {
198
+ var li = document.createElement('li');
199
+ var a = document.createElement('a'); a.className = 'cx-search__result'; a.href = r.url;
200
+ var t = document.createElement('span'); t.className = 'cx-search__title'; t.textContent = (r.meta && r.meta.title) || r.url;
201
+ var e = document.createElement('span'); e.className = 'cx-search__excerpt'; e.appendChild(excerpt(r.excerpt || ''));
202
+ a.append(t, e); li.appendChild(a); list.appendChild(li);
203
+ });
204
+ status.textContent = !query ? '' : items.length ? items.length + (items.length === 1 ? ' result' : ' results') : 'No results for \u201c' + query + '\u201d';
205
+ };
206
+ var search = function () {
207
+ var q = input.value.trim(), n = ++seq;
208
+ if (!q) { render([], ''); return; }
209
+ if (failed) return;
210
+ load().then(function (pf) { return pf.debouncedSearch(q, {}, 150); }).then(function (s) {
211
+ if (!s || n !== seq) return null;
212
+ return Promise.all(s.results.slice(0, 8).map(function (r) { return r.data(); }));
213
+ }).then(function (items) { if (items && n === seq) render(items, q); }, function () {
214
+ failed = true; list.replaceChildren(); status.textContent = 'Search isn\u2019t available right now.';
215
+ });
216
+ };
217
+ var back = null;
218
+ var open = function () { if (!dialog.open) { back = document.activeElement; dialog.showModal(); input.select(); load().catch(function () {}); } };
219
+ dialog.addEventListener('close', function () { if (back && back.isConnected && back.focus) back.focus(); back = null; });
220
+ triggers.forEach(function (t) { t.hidden = false; t.addEventListener('click', open); });
221
+ dialog.querySelectorAll('[data-search-close]').forEach(function (b) { b.addEventListener('click', function () { dialog.close(); }); });
222
+ dialog.addEventListener('click', function (e) { if (e.target === dialog) dialog.close(); });
223
+ input.addEventListener('input', search);
224
+ // Escape closes, even from the field (a search field would otherwise spend the first Escape clearing itself).
225
+ // Arrow keys move between the field and the results; Enter follows a result as any link does.
226
+ dialog.addEventListener('keydown', function (e) {
227
+ if (e.key === 'Escape') { e.preventDefault(); dialog.close(); return; }
228
+ if (e.key !== 'ArrowDown' && e.key !== 'ArrowUp') return;
229
+ var links = Array.prototype.slice.call(list.querySelectorAll('a'));
230
+ if (!links.length) return;
231
+ var at = links.indexOf(document.activeElement);
232
+ var next = e.key === 'ArrowDown' ? (at < 0 ? 0 : Math.min(at + 1, links.length - 1)) : at - 1;
233
+ e.preventDefault();
234
+ if (next < 0) input.focus(); else links[next].focus();
235
+ });
236
+ document.addEventListener('keydown', function (e) {
237
+ var typing = /^(INPUT|TEXTAREA|SELECT)$/.test(document.activeElement.tagName) || document.activeElement.isContentEditable;
238
+ if (((e.ctrlKey || e.metaKey) && e.key.toLowerCase() === 'k') || (e.key === '/' && !typing && !e.ctrlKey && !e.metaKey && !e.altKey)) {
239
+ e.preventDefault(); open();
240
+ }
241
+ });
242
+ });
243
+
244
+ // Copy page: copies the page's Markdown (its index.md) as plain text. ClipboardItem takes a promise, so the copy
245
+ // still counts as part of the click while the file loads; without it, the text is fetched first.
246
+ document.querySelectorAll('[data-copy-page]').forEach(function (btn) {
247
+ var label = btn.querySelector('.cx-page-actions__label');
248
+ var icon = btn.querySelector('use');
249
+ var set = function (state, text, iconId) {
250
+ btn.dataset.state = state; if (label) label.textContent = text;
251
+ if (icon) icon.setAttribute('href', '#cx-icon-' + iconId);
252
+ };
253
+ var done = function (ok) {
254
+ set(ok ? 'copied' : 'failed', ok ? 'Copied' : 'Couldn\u2019t copy', ok ? 'check' : 'content-copy');
255
+ setTimeout(function () { set('', 'Copy page', 'content-copy'); }, ms('--cx-motion-duration-plate'));
256
+ };
257
+ if (!navigator.clipboard) return;
258
+ btn.hidden = false;
259
+ btn.addEventListener('click', function () {
260
+ var text = fetch(btn.dataset.copyPage).then(function (r) { if (!r.ok) throw new Error(r.status); return r.text(); });
261
+ var copied = window.ClipboardItem && navigator.clipboard.write
262
+ ? navigator.clipboard.write([new ClipboardItem({ 'text/plain': text.then(function (t) { return new Blob([t], { type: 'text/plain' }); }) })])
263
+ : text.then(function (t) { return navigator.clipboard.writeText(t); });
264
+ copied.then(function () { done(true); }, function () { done(false); });
265
+ });
266
+ });
267
+
268
+ // Docs navigation: dock it (sticky, scrolling on its own) while it sits beside the main column, as the TOC does.
269
+ document.querySelectorAll('.cx-docs').forEach(function (docs) {
270
+ var nav = docs.querySelector('.cx-docs-nav');
271
+ var main = docs.querySelector('.cx-docs__main');
272
+ if (!nav || !main) return;
273
+ var dock = function () {
274
+ root.style.setProperty('--_viewport-height', window.innerHeight + 'px');
275
+ nav.classList.toggle('is-docked', Math.abs(nav.offsetTop - main.offsetTop) < 1);
276
+ };
277
+ dock(); window.addEventListener('resize', dock);
278
+ // Bring the current page into view inside the docked navigation.
279
+ var current = nav.querySelector('[aria-current="page"]');
280
+ if (current && nav.classList.contains('is-docked') && current.offsetTop > nav.clientHeight / 2) nav.scrollTop = current.offsetTop - nav.clientHeight / 2;
281
+ });
282
+
108
283
  // Table of contents: dock beside the article when there is room, and mark the current section.
109
284
  document.querySelectorAll('.cx-article').forEach(function (article) {
110
285
  var toc = article.querySelector('.cx-toc');
package/dist/plate.js CHANGED
@@ -216,11 +216,11 @@
216
216
  }
217
217
 
218
218
  // ------------------------------------------------------------ static markup (used by the build)
219
- // kind 'head' or 'foot' draws the same survey full-bleed behind a page (docs/components/backdrop.md): sliced to cover
220
- // its layer instead of fitted into the plate's square, on a finer grid so a warmed hill is round.
221
- var BACKDROP = { head: { seed: 3, cells: 48 }, foot: { seed: 7, cells: 48 } };
219
+ // kind 'head', 'foot' or 'side' draws the same survey full-bleed behind a page (docs/components/backdrop.md): sliced
220
+ // to cover its layer instead of fitted into the plate's square, on a finer grid so a warmed hill is round.
221
+ var BACKDROP = { head: { seed: 3, cells: 48 }, foot: { seed: 7, cells: 48 }, side: { seed: 11, cells: 48 } };
222
222
  function markup(opts, kind) {
223
- var bg = kind === 'head' || kind === 'foot';
223
+ var bg = Object.prototype.hasOwnProperty.call(BACKDROP, kind);
224
224
  if (bg) { opts = opts || {}; for (var key in BACKDROP[kind]) if (opts[key] == null) opts[key] = BACKDROP[kind][key]; }
225
225
  var s = survey(opts), S = s.options.size, q = S / 4;
226
226
  var grid = [q, 2 * q, 3 * q].map(function (v) { return 'M' + v + ' 0V' + S + 'M0 ' + v + 'H' + S; }).join('');
package/dist/tokens.css CHANGED
@@ -1,4 +1,4 @@
1
- /* MotifSpec 1.18.0 — generated from tokens/*.json. Do not edit.
1
+ /* MotifSpec 1.19.0 — generated from tokens/*.json. Do not edit.
2
2
  Themes: semantic colours use light-dark(); color-scheme follows the system unless
3
3
  <html data-theme="light|dark"> pins it. --cx-primitive-* are for this file only. */
4
4
  :root {
@@ -178,6 +178,10 @@
178
178
 
179
179
  /* color.wash */
180
180
  --cx-color-wash-hover: var(--cx-primitive-color-amount-1);
181
+ --cx-color-wash-scrim: var(--cx-primitive-color-amount-3);
182
+
183
+ /* color.scrim */
184
+ --cx-color-scrim: light-dark(var(--cx-primitive-color-ash-1000), var(--cx-primitive-color-ash-1000));
181
185
 
182
186
  /* primitive.motion.duration */
183
187
  --cx-primitive-motion-duration-0: 0ms;