@lupinum/ginko-docs 0.4.0-rc.9 → 0.5.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 (304) hide show
  1. package/CHANGELOG.md +141 -0
  2. package/LICENSE +1 -1
  3. package/README.md +300 -53
  4. package/app/app.config.ts +44 -55
  5. package/app/assets/docs.css +619 -0
  6. package/app/components/DocsBanner.vue +29 -0
  7. package/app/components/DocsExample.vue +43 -0
  8. package/app/components/DocsFooter.vue +19 -0
  9. package/app/components/DocsHeader.vue +113 -0
  10. package/app/components/DocsIcon.vue +12 -0
  11. package/app/components/DocsLanding.vue +58 -0
  12. package/app/components/DocsLanguage.vue +40 -0
  13. package/app/components/DocsNavSheet.vue +37 -0
  14. package/app/components/DocsNavTree.vue +38 -0
  15. package/app/components/DocsPage.vue +88 -0
  16. package/app/components/DocsPageActions.vue +47 -0
  17. package/app/components/DocsPageEnd.ts +12 -0
  18. package/app/components/DocsPost.vue +58 -0
  19. package/app/components/DocsSearch.vue +136 -0
  20. package/app/components/DocsShell.vue +36 -0
  21. package/app/components/DocsSidebar.vue +19 -0
  22. package/app/components/DocsSidebarEnd.ts +4 -0
  23. package/app/components/DocsTable.vue +11 -0
  24. package/app/components/DocsThemeToggle.vue +45 -0
  25. package/app/components/DocsToc.vue +73 -0
  26. package/app/composables/useDocs.ts +53 -0
  27. package/app/composables/useDocsBlog.ts +33 -0
  28. package/app/composables/useDocsCopy.ts +17 -0
  29. package/app/composables/useDocsFrame.ts +11 -0
  30. package/app/composables/useDocsPopover.ts +36 -0
  31. package/app/composables/useDocsSite.ts +31 -0
  32. package/app/docs-pages/blog.vue +55 -0
  33. package/app/docs-pages/changelog.vue +35 -0
  34. package/app/docs-pages/doc.vue +16 -0
  35. package/app/docs-pages/docs.vue +9 -0
  36. package/app/docs-pages/index.vue +12 -0
  37. package/app/docs-pages/post.vue +8 -0
  38. package/app/error.vue +38 -115
  39. package/app/layouts/default.vue +29 -7
  40. package/app/lib/blogTypes.ts +8 -0
  41. package/app/lib/docsFirst.ts +11 -0
  42. package/app/lib/docsInit.ts +18 -0
  43. package/app/lib/docsNav.ts +36 -0
  44. package/app/lib/docsPage.ts +84 -0
  45. package/app/lib/markdownComponents.ts +15 -0
  46. package/app/lib/previewToc.ts +18 -0
  47. package/dist/config.d.mts +252 -0
  48. package/dist/config.d.ts +252 -0
  49. package/dist/config.mjs +83 -0
  50. package/dist/icons.d.mts +38 -0
  51. package/dist/icons.d.ts +38 -0
  52. package/dist/icons.mjs +175 -0
  53. package/dist/pages.d.mts +5 -0
  54. package/dist/pages.d.ts +5 -0
  55. package/dist/pages.mjs +68 -0
  56. package/i18n/de.json +1 -0
  57. package/i18n/en.json +1 -0
  58. package/i18n/fr.json +1 -0
  59. package/icons/README.md +2 -0
  60. package/icons/bluesky.svg +1 -0
  61. package/icons/claude.svg +1 -0
  62. package/icons/discord.svg +1 -0
  63. package/icons/github.svg +1 -0
  64. package/icons/linkedin.svg +1 -0
  65. package/icons/mastodon.svg +1 -0
  66. package/icons/openai.svg +1 -0
  67. package/icons/x.svg +1 -0
  68. package/icons/youtube.svg +1 -0
  69. package/nuxt.config.ts +22 -212
  70. package/package.json +44 -76
  71. package/public/_docs/fonts/LICENSE +188 -0
  72. package/public/_docs/fonts/inter-latin-wght-normal.woff2 +0 -0
  73. package/public/_docs/fonts/jetbrains-mono-latin-400-normal.woff2 +0 -0
  74. package/public/_docs/fonts/jetbrains-mono-latin-500-normal.woff2 +0 -0
  75. package/server/feeds/blog-locale.get.ts +9 -0
  76. package/server/feeds/blog.get.ts +4 -0
  77. package/server/lib/blogFeed.ts +35 -0
  78. package/server/mcp/handler.ts +108 -0
  79. package/server/routes/__ginko/docs-mcp.ts +35 -0
  80. package/shared/layerRoutes.ts +66 -0
  81. package/shared/paths.ts +4 -0
  82. package/app/app.vue +0 -98
  83. package/app/assets/css/prose.css +0 -3240
  84. package/app/assets/css/tailwind.css +0 -394
  85. package/app/assets/css/theme-palettes.css +0 -309
  86. package/app/assets/css/theme-presets.css +0 -141
  87. package/app/components/OgImage/GinkoDocs.satori.vue +0 -238
  88. package/app/components/content/DocumentPageShell.vue +0 -55
  89. package/app/components/content/Feedback.vue +0 -102
  90. package/app/components/content/ImageZoomDialog.vue +0 -84
  91. package/app/components/content/PageMarkdownCopy.vue +0 -104
  92. package/app/components/content/imageZoom.ts +0 -25
  93. package/app/components/mdc/MdcAccordion.vue +0 -67
  94. package/app/components/mdc/MdcAccordionItem.vue +0 -42
  95. package/app/components/mdc/MdcApi.vue +0 -159
  96. package/app/components/mdc/MdcAside.vue +0 -23
  97. package/app/components/mdc/MdcCallout.vue +0 -61
  98. package/app/components/mdc/MdcCard.vue +0 -175
  99. package/app/components/mdc/MdcCards.vue +0 -30
  100. package/app/components/mdc/MdcCenter.vue +0 -71
  101. package/app/components/mdc/MdcCodeGroup.vue +0 -197
  102. package/app/components/mdc/MdcCodeTree.vue +0 -234
  103. package/app/components/mdc/MdcCollapse.vue +0 -61
  104. package/app/components/mdc/MdcColumn.vue +0 -70
  105. package/app/components/mdc/MdcDropcap.vue +0 -84
  106. package/app/components/mdc/MdcError.vue +0 -23
  107. package/app/components/mdc/MdcExcerpt.vue +0 -26
  108. package/app/components/mdc/MdcFigure.vue +0 -85
  109. package/app/components/mdc/MdcFiles.vue +0 -120
  110. package/app/components/mdc/MdcIdea.vue +0 -17
  111. package/app/components/mdc/MdcInfo.vue +0 -17
  112. package/app/components/mdc/MdcInlineToc.vue +0 -51
  113. package/app/components/mdc/MdcKbd.vue +0 -10
  114. package/app/components/mdc/MdcLayout.vue +0 -57
  115. package/app/components/mdc/MdcNote.vue +0 -17
  116. package/app/components/mdc/MdcQuiz.vue +0 -241
  117. package/app/components/mdc/MdcQuizQuestion.vue +0 -221
  118. package/app/components/mdc/MdcReadMore.vue +0 -70
  119. package/app/components/mdc/MdcSteps.vue +0 -59
  120. package/app/components/mdc/MdcSuccess.vue +0 -23
  121. package/app/components/mdc/MdcTab.vue +0 -17
  122. package/app/components/mdc/MdcTabs.vue +0 -150
  123. package/app/components/mdc/MdcTimeline.vue +0 -17
  124. package/app/components/mdc/MdcTimelineItem.vue +0 -40
  125. package/app/components/mdc/MdcWarning.vue +0 -23
  126. package/app/components/mdc/api.utils.ts +0 -132
  127. package/app/components/mdc/code-tree.utils.ts +0 -22
  128. package/app/components/mdc/icons.ts +0 -10
  129. package/app/components/mdc/quiz.utils.ts +0 -38
  130. package/app/components/prose/ProseA.vue +0 -27
  131. package/app/components/prose/ProseBlockquote.vue +0 -30
  132. package/app/components/prose/ProseCode.vue +0 -14
  133. package/app/components/prose/ProseEm.vue +0 -14
  134. package/app/components/prose/ProseH1.vue +0 -18
  135. package/app/components/prose/ProseH2.vue +0 -29
  136. package/app/components/prose/ProseH3.vue +0 -29
  137. package/app/components/prose/ProseH4.vue +0 -29
  138. package/app/components/prose/ProseH5.vue +0 -15
  139. package/app/components/prose/ProseH6.vue +0 -15
  140. package/app/components/prose/ProseHr.vue +0 -12
  141. package/app/components/prose/ProseImg.vue +0 -55
  142. package/app/components/prose/ProseLi.vue +0 -14
  143. package/app/components/prose/ProseOl.vue +0 -14
  144. package/app/components/prose/ProseP.vue +0 -14
  145. package/app/components/prose/ProsePre.vue +0 -180
  146. package/app/components/prose/ProseStrong.vue +0 -14
  147. package/app/components/prose/ProseTable.vue +0 -18
  148. package/app/components/prose/ProseTbody.vue +0 -14
  149. package/app/components/prose/ProseTd.vue +0 -14
  150. package/app/components/prose/ProseTh.vue +0 -14
  151. package/app/components/prose/ProseThead.vue +0 -14
  152. package/app/components/prose/ProseTr.vue +0 -14
  153. package/app/components/prose/ProseUl.vue +0 -14
  154. package/app/components/site/ModeToggle.vue +0 -81
  155. package/app/components/site/SiteBanner.vue +0 -97
  156. package/app/components/site/SiteFooter.vue +0 -90
  157. package/app/components/site/SiteHeader.vue +0 -371
  158. package/app/components/site/SiteHeroCode.vue +0 -173
  159. package/app/components/site/SiteInteractionLayer.vue +0 -42
  160. package/app/components/site/SiteLocaleSwitcher.vue +0 -190
  161. package/app/components/site/SiteLogoMark.vue +0 -12
  162. package/app/components/site/SiteSkipLink.vue +0 -14
  163. package/app/components/site/SiteSocialLinks.vue +0 -33
  164. package/app/components/site/header-utils.ts +0 -3
  165. package/app/components/site/mode-toggle.utils.ts +0 -18
  166. package/app/components/ui/badge/Badge.vue +0 -28
  167. package/app/components/ui/badge/index.ts +0 -24
  168. package/app/components/ui/button/Button.vue +0 -31
  169. package/app/components/ui/button/index.ts +0 -35
  170. package/app/components/ui/collapsible/Collapsible.vue +0 -15
  171. package/app/components/ui/collapsible/CollapsibleContent.vue +0 -25
  172. package/app/components/ui/collapsible/CollapsibleTrigger.vue +0 -12
  173. package/app/components/ui/collapsible/index.ts +0 -3
  174. package/app/components/ui/dropdown-menu/DropdownMenu.vue +0 -15
  175. package/app/components/ui/dropdown-menu/DropdownMenuContent.vue +0 -50
  176. package/app/components/ui/dropdown-menu/DropdownMenuItem.vue +0 -41
  177. package/app/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue +0 -15
  178. package/app/components/ui/dropdown-menu/DropdownMenuRadioItem.vue +0 -37
  179. package/app/components/ui/dropdown-menu/DropdownMenuSeparator.vue +0 -23
  180. package/app/components/ui/dropdown-menu/DropdownMenuTrigger.vue +0 -14
  181. package/app/components/ui/dropdown-menu/index.ts +0 -7
  182. package/app/components/ui/kbd/Kbd.vue +0 -23
  183. package/app/components/ui/kbd/index.ts +0 -21
  184. package/app/components/ui/scroll-area/ScrollArea.vue +0 -39
  185. package/app/components/ui/scroll-area/ScrollBar.vue +0 -33
  186. package/app/components/ui/scroll-area/index.ts +0 -2
  187. package/app/components/ui/separator/Separator.vue +0 -27
  188. package/app/components/ui/separator/index.ts +0 -1
  189. package/app/components/ui/sheet/Sheet.vue +0 -15
  190. package/app/components/ui/sheet/SheetContent.vue +0 -59
  191. package/app/components/ui/sheet/SheetDescription.vue +0 -21
  192. package/app/components/ui/sheet/SheetOverlay.vue +0 -26
  193. package/app/components/ui/sheet/SheetTitle.vue +0 -21
  194. package/app/components/ui/sheet/SheetTrigger.vue +0 -12
  195. package/app/components/ui/sheet/index.ts +0 -5
  196. package/app/components/ui/tabs/Tabs.vue +0 -24
  197. package/app/components/ui/tabs/TabsList.vue +0 -26
  198. package/app/components/ui/tabs/TabsTrigger.vue +0 -28
  199. package/app/components/ui/tabs/index.ts +0 -3
  200. package/app/composables/site-navigation.utils.ts +0 -133
  201. package/app/composables/useCanonicalUrl.ts +0 -9
  202. package/app/composables/useContentRouteAlternates.ts +0 -35
  203. package/app/composables/useGinkoAnalytics.ts +0 -52
  204. package/app/composables/useGinkoDocsConfig.ts +0 -6
  205. package/app/composables/useGinkoOgImage.ts +0 -20
  206. package/app/composables/useLocalizedPath.ts +0 -12
  207. package/app/composables/useLocalizedRouteSwitch.ts +0 -31
  208. package/app/composables/useMetaKey.ts +0 -18
  209. package/app/composables/usePageMarkdownActions.ts +0 -79
  210. package/app/composables/useProseAppearance.ts +0 -24
  211. package/app/composables/useSchemaJsonLd.ts +0 -25
  212. package/app/composables/useSiteNavigation.ts +0 -64
  213. package/app/config/site.utils.ts +0 -36
  214. package/app/features/docs/components/DocsBreadcrumb.vue +0 -37
  215. package/app/features/docs/components/DocsContributeLinks.vue +0 -75
  216. package/app/features/docs/components/DocsMobileToc.vue +0 -108
  217. package/app/features/docs/components/DocsPageContent.vue +0 -234
  218. package/app/features/docs/components/DocsPageNav.vue +0 -57
  219. package/app/features/docs/components/DocsSidebar.vue +0 -145
  220. package/app/features/docs/components/DocsSidebarDropdown.vue +0 -70
  221. package/app/features/docs/components/DocsSidebarItem.vue +0 -122
  222. package/app/features/docs/components/DocsSidebarList.vue +0 -35
  223. package/app/features/docs/components/DocsSidebarRow.vue +0 -27
  224. package/app/features/docs/components/DocsSidebarTabs.vue +0 -59
  225. package/app/features/docs/components/DocsToc.vue +0 -106
  226. package/app/features/docs/composables/useDocsNavigation.ts +0 -29
  227. package/app/features/docs/composables/useDocsNavigationData.ts +0 -18
  228. package/app/features/docs/composables/useRevealActive.ts +0 -58
  229. package/app/features/docs/composables/useScrollspy.ts +0 -135
  230. package/app/features/docs/docs-navigation.ts +0 -157
  231. package/app/features/docs/toc-context.ts +0 -6
  232. package/app/features/search/command-center.ts +0 -110
  233. package/app/features/search/components/SiteCommandCenter.vue +0 -359
  234. package/app/features/search/components/SiteSearchPageHighlight.vue +0 -126
  235. package/app/features/search/useCommandCenter.ts +0 -292
  236. package/app/layouts/blog.vue +0 -15
  237. package/app/layouts/docs.vue +0 -20
  238. package/app/lib/errors.ts +0 -37
  239. package/app/lib/schema-org.ts +0 -38
  240. package/app/pages/blog/[slug].vue +0 -228
  241. package/app/pages/blog/index.vue +0 -130
  242. package/app/pages/docs/[...slug].vue +0 -10
  243. package/app/pages/docs/index.vue +0 -19
  244. package/app/pages/index.vue +0 -278
  245. package/app/plugins/ginko-docs-theme.ts +0 -14
  246. package/app/plugins/ssr-width.ts +0 -6
  247. package/app/utils/content.ts +0 -67
  248. package/app/utils/file-icons.ts +0 -90
  249. package/app/utils/index.ts +0 -7
  250. package/app/utils/repository.ts +0 -20
  251. package/components.ts +0 -9
  252. package/content-collections.ts +0 -89
  253. package/content.js +0 -200
  254. package/content.ts +0 -104
  255. package/i18n/i18n.config.ts +0 -10
  256. package/i18n/locales.ts +0 -81
  257. package/i18n/messages/global/banner.ts +0 -8
  258. package/i18n/messages/global/blog.ts +0 -18
  259. package/i18n/messages/global/command.ts +0 -49
  260. package/i18n/messages/global/docs.ts +0 -36
  261. package/i18n/messages/global/errors.ts +0 -36
  262. package/i18n/messages/global/feedback.ts +0 -11
  263. package/i18n/messages/global/index.ts +0 -21
  264. package/i18n/messages/global/nav.ts +0 -26
  265. package/i18n/messages/global/site.ts +0 -4
  266. package/i18n/messages/global/theme.ts +0 -9
  267. package/i18n/messages/index.ts +0 -20
  268. package/i18n/messages/localize.ts +0 -35
  269. package/i18n/routes.ts +0 -33
  270. package/icon-bundle.ts +0 -116
  271. package/index.d.ts +0 -37
  272. package/modules/analytics-boundary.ts +0 -23
  273. package/modules/feature-routing.ts +0 -68
  274. package/modules/syntax-highlighting.ts +0 -120
  275. package/public/fonts/public-sans/LICENSE +0 -93
  276. package/public/fonts/public-sans/README.md +0 -12
  277. package/public/fonts/public-sans/public-sans-400-normal-latin.woff +0 -0
  278. package/public/fonts/public-sans/public-sans-500-normal-latin.woff +0 -0
  279. package/public/fonts/public-sans/public-sans-600-normal-latin.woff +0 -0
  280. package/public/fonts/public-sans/public-sans-700-normal-latin.woff +0 -0
  281. package/runtime/generate-favicons.mjs +0 -124
  282. package/runtime/server/agent-markdown.ts +0 -19
  283. package/server/api/_ginko-docs/redirects.get.ts +0 -28
  284. package/server/mcp/tools/get-page.ts +0 -14
  285. package/server/mcp/tools/list-pages.ts +0 -10
  286. package/server/middleware/redirects.ts +0 -22
  287. package/server/plugins/agent-markdown.ts +0 -6
  288. package/server/plugins/sitemap-policy.ts +0 -12
  289. package/server/routes/.well-known/ai-catalog.json.get.ts +0 -10
  290. package/server/routes/[locale]/blog/rss.xml.get.ts +0 -13
  291. package/server/routes/blog/rss.xml.get.ts +0 -5
  292. package/server/routes/mcp/server-card.get.ts +0 -14
  293. package/server/utils/blog-feed.ts +0 -51
  294. package/server/utils/feed.ts +0 -70
  295. package/server/utils/mcp-server-card.ts +0 -45
  296. package/server/utils/redirects.ts +0 -38
  297. package/server/utils/redirects.utils.ts +0 -58
  298. package/server/utils/sitemap.ts +0 -45
  299. package/shared/route-slugs.ts +0 -5
  300. package/shared/theme-palettes.ts +0 -37
  301. package/shared/theme-presets.ts +0 -3
  302. package/shared/types/app-config.ts +0 -172
  303. package/shared/types/nuxt-config.ts +0 -14
  304. package/tags.ts +0 -192
@@ -0,0 +1,619 @@
1
+ /* Ginko docs layer. Plain CSS, every rule under a `docs-` class, so the layer can sit inside another site.
2
+ Colours, radius and fonts are shadcn-style tokens (--background, --foreground, --muted, --border, --primary,
3
+ --radius, --font-sans, ...), the same ones @lupinum/ginko-components reads. The defaults below have zero
4
+ specificity: a site that defines these tokens (any shadcn-vue site) themes the docs with no extra CSS.
5
+ Each default is light-dark(light, dark); which half applies follows color-scheme. */
6
+
7
+ @font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/_docs/fonts/inter-latin-wght-normal.woff2') format('woff2'); }
8
+ @font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/_docs/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); }
9
+ @font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/_docs/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); }
10
+
11
+ /* Default theme: PrimeVue Aura's pairing, emerald on zinc. Stock emerald-500 with white text is 2.5:1, so light mode
12
+ uses emerald-700 for filled controls (5.5:1); dark mode keeps emerald-400 with dark text. */
13
+ :where(:root) {
14
+ --background: light-dark(#ffffff, #09090b);
15
+ --foreground: light-dark(#27272a, #fafafa);
16
+ --muted: light-dark(#f4f4f5, #27272a);
17
+ --muted-foreground: light-dark(#6b6b74, #a1a1aa);
18
+ --accent: light-dark(#ecfdf5, #052e22);
19
+ --accent-foreground: light-dark(#065f46, #6ee7b7);
20
+ --secondary: light-dark(#f4f4f5, #27272a);
21
+ --secondary-foreground: light-dark(#27272a, #fafafa);
22
+ --card: light-dark(#ffffff, #09090b);
23
+ --popover: light-dark(#ffffff, #18181b);
24
+ --sidebar: light-dark(#fafafa, #18181b);
25
+ --border: light-dark(#e4e4e7, #3f3f46);
26
+ --input: light-dark(#d4d4d8, #52525b);
27
+ --primary: light-dark(#047857, #34d399);
28
+ --primary-foreground: light-dark(#ffffff, #09090b);
29
+ --ring: light-dark(#047857, #34d399);
30
+ --success: light-dark(#157a39, #4ade80);
31
+ --warning: light-dark(#985807, #fbbf24);
32
+ --info: light-dark(#1d4ed8, #60a5fa);
33
+ --radius: 0.75rem;
34
+ --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
35
+ --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
36
+ }
37
+
38
+ /* Layout tokens. --docs-top is the height of whatever sticks above the docs (the standalone header, or a
39
+ host site's header): the sidebar, the phone bar and the table of contents stick below it. */
40
+ :where(:root) {
41
+ --docs-top: 0px;
42
+ --docs-header: 4rem;
43
+ --docs-sidebar: 17rem;
44
+ --docs-toc: 13.5rem;
45
+ --docs-max: 90rem;
46
+ /* Space between the window edge and the docs: the site's container padding when the docs sit in its layout. */
47
+ --docs-gutter: 1rem;
48
+ /* One page-title size for docs, blog, changelog and 404. */
49
+ --docs-h1: clamp(1.75rem, 1.4rem + 1vw, 2.25rem);
50
+ /* Height of the phone bar above the page; 0 where the bar is hidden. Anchors scroll below both. */
51
+ --docs-bar: 0px;
52
+ /* Radii step up by nesting: a control, a box (code, table, notice), the framed page. */
53
+ --docs-r-control: max(4px, calc(var(--radius) - 4px));
54
+ --docs-r-box: var(--radius);
55
+ --docs-r-panel: calc(var(--radius) + 4px);
56
+ /* Reading width of running text. */
57
+ --docs-measure: 38rem;
58
+ }
59
+
60
+ /* Theme presets (docs.theme in app.config.ts), set on <html data-docs-theme>. */
61
+ :where(html[data-docs-theme='green']) {
62
+ --background: light-dark(#ffffff, #020617);
63
+ --foreground: light-dark(#0f172a, #f8fafc);
64
+ --muted: light-dark(#f1f5f9, #0f172a);
65
+ --muted-foreground: light-dark(#5f6f86, #94a3b8);
66
+ --accent: light-dark(#f1f5f9, #1e293b);
67
+ --card: light-dark(#ffffff, #020617);
68
+ --popover: light-dark(#ffffff, #0f172a);
69
+ --border: light-dark(#e2e8f0, #1e293b);
70
+ --primary: light-dark(#00a155, #00dc82);
71
+ --primary-foreground: light-dark(#ffffff, #052e16);
72
+ --accent-foreground: light-dark(#0f172a, #f8fafc);
73
+ --sidebar: light-dark(#f8fafc, #0f172a);
74
+ --input: light-dark(#cbd5e1, #334155);
75
+ }
76
+
77
+ /* ---------- Standalone frame (layouts/default.vue sets html.docs-standalone) ---------- */
78
+
79
+ :root.docs-standalone { color-scheme: light dark; --docs-top: var(--docs-header); scroll-padding-top: calc(var(--docs-top) + var(--docs-bar) + 1rem); }
80
+ :root.docs-standalone[data-theme='light'] { color-scheme: light; }
81
+ :root.docs-standalone[data-theme='dark'] { color-scheme: dark; }
82
+ :root.docs-standalone body { margin: 0; background: var(--background); color: var(--foreground); font: 400 1rem/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
83
+
84
+ .docs-frame { min-height: 100dvh; display: flex; flex-direction: column; }
85
+ .docs-frame-main { flex: 1; }
86
+ :where(#docs-main, #docs-content):focus { outline: none; }
87
+ .docs-skip { position: absolute; left: -999px; top: 0.5rem; z-index: 50; padding: 0.5rem 0.75rem; border-radius: calc(var(--radius) - 2px); background: var(--background); color: var(--foreground); }
88
+ .docs-skip:focus { left: 1rem; }
89
+
90
+ /* Base for everything the layer renders, standalone or embedded. */
91
+ :where([class^='docs-'], [class*=' docs-']) { box-sizing: border-box; }
92
+ :where([class^='docs-'], [class*=' docs-']) :where(*, *::before, *::after) { box-sizing: border-box; }
93
+ .docs-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
94
+ .docs-icon { flex: none; font-size: 1rem; }
95
+ :where(.docs-header, .docs-shell, .docs-landing, .docs-blog, .docs-search-dialog, .docs-menu) { caret-color: var(--primary); }
96
+ :where(.docs-header, .docs-shell, .docs-landing, .docs-blog) ::selection { background: color-mix(in oklab, var(--primary) 22%, transparent); }
97
+ :where(.docs-shell, .docs-landing, .docs-blog) :where(time) { font-variant-numeric: tabular-nums; }
98
+
99
+ /* Code blocks: "Night", a dark panel tinted with the theme colour, in light and dark mode. Sets the tokens
100
+ of @lupinum/ginko-components, so a site that sets them itself wins. */
101
+ :where(.docs-shell, .docs-landing, .docs-blog) {
102
+ --ginko-code-frame: color-mix(in oklab, var(--primary) 21%, #111114);
103
+ --ginko-code-bg: color-mix(in oklab, var(--primary) 16%, #0b0b0d);
104
+ --ginko-code-fg: #e6e8ee;
105
+ --ginko-code-muted: #9a9cab;
106
+ --ginko-code-hover: rgb(230 232 238 / 0.08);
107
+ --docs-code-line: color-mix(in oklab, var(--primary) 26%, #26262b);
108
+ }
109
+ :where(.docs-header, .docs-shell, .docs-landing, .docs-blog, .docs-footer, .docs-search-dialog, .docs-menu) :focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
110
+
111
+ /* Shown only in the light or dark scheme (logo, theme button). Follows data-theme, a `.dark` class, or the system. */
112
+ .docs-when-dark { display: none !important; }
113
+ :root[data-theme='dark'] .docs-when-dark, :root.dark .docs-when-dark { display: revert !important; }
114
+ :root[data-theme='dark'] .docs-when-light, :root.dark .docs-when-light { display: none !important; }
115
+ @media (prefers-color-scheme: dark) {
116
+ :root:not([data-theme='light'], .light).docs-standalone .docs-when-dark { display: revert !important; }
117
+ :root:not([data-theme='light'], .light).docs-standalone .docs-when-light { display: none !important; }
118
+ }
119
+
120
+ /* Small shared pieces: icon buttons, buttons, kbd, popovers. */
121
+ .docs-icon-button { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; padding: 0; border: 0; border-radius: var(--docs-r-control); background: none; color: var(--muted-foreground); font: inherit; cursor: pointer; text-decoration: none; transition: color 0.15s, background-color 0.15s; }
122
+ .docs-icon-button:hover { color: var(--foreground); background: var(--muted); }
123
+ .docs-icon-button .docs-icon { font-size: 1.125rem; }
124
+ .docs-button { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; height: 2.25rem; padding: 0 0.875rem; border: 1px solid var(--border); border-radius: var(--docs-r-control); background: var(--card); color: var(--foreground); font: 500 0.875rem/1 var(--font-sans); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 0.15s, border-color 0.15s; }
125
+ .docs-button:hover { background: var(--muted); }
126
+ .docs-button.is-primary { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
127
+ .docs-button.is-primary:hover { background: color-mix(in oklab, var(--primary) 88%, var(--background)); }
128
+ .docs-button.is-soft { border-color: transparent; background: var(--muted); }
129
+ .docs-button.is-soft:hover { background: color-mix(in oklab, var(--foreground) 9%, var(--muted)); }
130
+ .docs-button.is-large { height: 2.875rem; padding: 0 1.25rem; font-size: 0.9375rem; }
131
+ .docs-kbd { display: inline-flex; align-items: center; gap: 0.125rem; height: 1.25rem; padding: 0 0.375rem; border: 1px solid var(--border); border-radius: 0.3125rem; background: var(--background); color: var(--muted-foreground); font: 500 0.6875rem/1 var(--font-sans); }
132
+ .docs-popover { position: absolute; z-index: 40; min-width: 12rem; margin: 0; padding: 0.25rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--popover, var(--background)); color: var(--foreground); box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.25), 0 2px 6px -2px rgb(0 0 0 / 0.08); list-style: none; }
133
+ .docs-popover a, .docs-popover button { display: flex; align-items: center; gap: 0.625rem; width: 100%; padding: 0.5rem 0.625rem; border: 0; border-radius: calc(var(--radius) - 4px); background: none; color: var(--foreground); font: 400 0.875rem/1.25 var(--font-sans); text-align: left; text-decoration: none; cursor: pointer; }
134
+ .docs-popover a:hover, .docs-popover button:hover, .docs-popover a:focus-visible, .docs-popover button:focus-visible { background: var(--muted); outline: none; }
135
+ .docs-popover .docs-icon { color: var(--muted-foreground); }
136
+ .docs-popover [aria-current] { font-weight: 600; }
137
+ .docs-popover a > .docs-icon:last-child:not(:first-child) { margin-left: auto; }
138
+ .docs-popover [aria-current] .docs-icon:last-child { color: var(--foreground); }
139
+ .docs-popover small { display: block; color: var(--muted-foreground); font-size: 0.75rem; }
140
+
141
+ /* ---------- Header (standalone) ---------- */
142
+
143
+ .docs-header { position: sticky; top: 0; z-index: 30; height: var(--docs-header); background: var(--background); }
144
+ .docs-header-inner { display: flex; align-items: center; gap: 0.25rem; height: 100%; max-width: var(--docs-max); margin: 0 auto; padding: 0 1rem 0 1.5rem; }
145
+ .docs-brand { display: flex; align-items: center; gap: 0.5625rem; margin-right: 1.25rem; color: var(--foreground); font-weight: 650; font-size: 1.0625rem; letter-spacing: -0.015em; text-decoration: none; }
146
+ .docs-brand img { display: block; height: 1.75rem; width: auto; }
147
+ .docs-nav-links { display: flex; align-items: center; gap: 0.125rem; }
148
+ .docs-nav-links a { display: inline-flex; align-items: center; height: 2.125rem; padding: 0 0.75rem; border-radius: var(--docs-r-control); color: var(--muted-foreground); font-size: 0.875rem; font-weight: 500; text-decoration: none; transition: color 0.15s, background-color 0.15s; }
149
+ .docs-nav-links a:hover { color: var(--foreground); }
150
+ .docs-nav-links a[aria-current] { color: var(--foreground); background: var(--muted); }
151
+ .docs-header-end { display: flex; align-items: center; gap: 0.125rem; margin-left: auto; }
152
+ .docs-header-end .docs-search-trigger { margin-right: 0.5rem; }
153
+ .docs-header-sep { width: 1px; height: 1.25rem; margin: 0 0.375rem; background: var(--border); }
154
+ .docs-header-menu { display: none; }
155
+ .docs-header-menu[aria-expanded='true'] { background: var(--muted); color: var(--foreground); }
156
+ .docs-social { display: flex; align-items: center; }
157
+
158
+ /* Language menu */
159
+ .docs-lang { position: relative; }
160
+ .docs-lang > button { display: inline-flex; align-items: center; width: auto; gap: 0.375rem; padding: 0 0.5rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; }
161
+ .docs-lang .docs-popover { right: 0; top: calc(100% + 0.375rem); }
162
+
163
+ /* Search trigger: looks like a field on wide screens, an icon button on phones. */
164
+ .docs-search-trigger { display: flex; align-items: center; gap: 0.5rem; width: 15.5rem; height: 2.25rem; padding: 0 0.375rem 0 0.6875rem; border: 1px solid var(--border); border-radius: var(--docs-r-control); background: var(--card); color: var(--muted-foreground); font: 400 0.875rem/1 var(--font-sans); cursor: pointer; transition: border-color 0.15s, background-color 0.15s; }
165
+ .docs-search-trigger:hover { border-color: var(--input); }
166
+ .docs-search-label { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
167
+
168
+ /* Search dialog */
169
+ .docs-search-dialog { width: min(40rem, calc(100vw - 2rem)); max-height: min(36rem, calc(100dvh - 4rem)); margin: 92px auto auto; padding: 0; overflow: hidden; border: 0; border-radius: var(--docs-r-panel); background: var(--card); color: var(--foreground); box-shadow: 0 0 0 1px color-mix(in oklab, var(--foreground) 10%, transparent), 0 24px 60px -12px rgb(0 0 0 / 0.4); font-family: var(--font-sans); }
170
+ .docs-search-dialog[open] { display: flex; flex-direction: column; }
171
+ .docs-search-dialog::backdrop { background: rgb(9 9 11 / 0.4); backdrop-filter: blur(2px); }
172
+ .docs-search-field { display: flex; align-items: center; gap: 10px; flex: none; margin: 10px; height: 48px; padding: 0 10px 0 14px; border: 1px solid var(--primary); border-radius: var(--docs-r-control); font-size: 16px; }
173
+ .docs-search-field:focus-within { box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 18%, transparent); }
174
+ .docs-search-field .docs-icon { color: var(--muted-foreground); font-size: 1.125rem; }
175
+ .docs-search-field input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: inherit; font: 400 1rem/1 var(--font-sans); outline: none; }
176
+ .docs-search-field input::placeholder { color: var(--muted-foreground); }
177
+ .docs-search-field input::-webkit-search-cancel-button { display: none; }
178
+ .docs-search-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 10px 8px; }
179
+ .docs-search-results, .docs-search-results ul { list-style: none; margin: 0; padding: 0; }
180
+ .docs-search-group { margin: 0.75rem 0 0.25rem; padding: 0 0.625rem; color: var(--muted-foreground); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.07em; line-height: 1.5rem; text-transform: uppercase; }
181
+ .docs-search-results > li:first-child .docs-search-group { margin-top: 0; }
182
+ .docs-search-hit { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--docs-r-control); color: var(--foreground); text-decoration: none; cursor: pointer; }
183
+ .docs-search-hit.is-section { padding-left: 2.25rem; }
184
+ .docs-search-hit[aria-selected='true'] { background: var(--muted); }
185
+ .docs-search-hit[aria-selected='true'] .docs-search-enter { visibility: visible; }
186
+ .docs-search-tile { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: var(--docs-r-control); background: var(--sidebar); color: var(--muted-foreground); box-shadow: inset 0 0 0 1px var(--border); }
187
+ .docs-search-tile .docs-icon { font-size: 16px; }
188
+ .docs-search-hit[aria-selected='true'] .docs-search-tile { background: var(--card); color: var(--primary); }
189
+ .docs-search-text { flex: 1; min-width: 0; }
190
+ .docs-search-text strong { display: block; font-size: 0.9375rem; font-weight: 500; line-height: 1.4; }
191
+ .docs-search-text span { display: block; overflow: hidden; color: var(--muted-foreground); font-size: 13px; line-height: 1.5; white-space: nowrap; text-overflow: ellipsis; }
192
+ .docs-search-enter { visibility: hidden; flex: none; color: var(--muted-foreground); font-size: 15px; }
193
+ .docs-search-empty { margin: 0; padding: 2.5rem 1rem; color: var(--muted-foreground); font-size: 0.875rem; text-align: center; }
194
+ .docs-search-foot { display: flex; align-items: center; gap: 18px; flex: none; padding: 10px 20px; border-top: 1px solid var(--border); color: var(--muted-foreground); font-size: 12px; }
195
+ .docs-search-foot span { display: inline-flex; align-items: center; gap: 6px; }
196
+
197
+ /* ---------- Docs shell: sidebar, phone bar, content ---------- */
198
+
199
+ /* The navigation sits on the page background; the page is a framed panel. */
200
+ .docs-shell { display: grid; grid-template-columns: var(--docs-sidebar) minmax(0, 1fr); gap: 0.75rem; box-sizing: border-box; max-width: var(--docs-max); margin: 0 auto; padding: 0 var(--docs-gutter) 1rem; }
201
+ .docs-sidebar { position: sticky; top: var(--docs-top); align-self: start; max-height: calc(100dvh - var(--docs-top)); overflow-y: auto; overscroll-behavior: contain; padding: 1rem 0.5rem 3rem 0.25rem; scrollbar-width: none; }
202
+ .docs-content { min-width: 0; padding: 2rem 2.25rem 4.5rem 3.5rem; border: 1px solid var(--border); border-radius: var(--docs-r-panel); background: var(--card); }
203
+ .docs-bar { display: none; }
204
+
205
+ /* Sidebar content */
206
+ .docs-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 0.25rem; margin: 0 0 1.25rem 0.25rem; padding: 0.25rem; border-radius: calc(var(--docs-r-control) + 2px); background: var(--muted); }
207
+ .docs-tabs a { overflow: hidden; padding: 0.375rem 0.5rem; border-radius: var(--docs-r-control); color: var(--muted-foreground); font-size: 0.8125rem; font-weight: 500; text-align: center; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; transition: color 0.15s, background-color 0.15s; }
208
+ .docs-tabs a:hover { color: var(--foreground); }
209
+ .docs-tabs a[aria-current] { background: var(--card); color: var(--foreground); box-shadow: 0 1px 2px rgb(0 0 0 / 0.08); }
210
+ .docs-nav-section + .docs-nav-section { margin-top: 1.5rem; }
211
+ .docs-nav-heading { margin: 0 0 0.25rem; padding: 0 0.625rem; color: var(--muted-foreground); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.07em; line-height: 1.5rem; text-transform: uppercase; }
212
+ .docs-nav-list { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
213
+ .docs-nav-item { display: flex; align-items: center; border-radius: var(--docs-r-control); transition: background-color 0.15s; }
214
+ .docs-nav-item:hover { background: var(--muted); }
215
+ .docs-nav-item:has(> a[aria-current]) { background: var(--accent); }
216
+ .docs-nav-item > a { display: flex; flex: 1; align-items: center; gap: 0.625rem; min-width: 0; min-height: 2.125rem; padding: 0.4375rem 0.625rem; color: var(--muted-foreground); font-size: 0.875rem; line-height: 1.35; text-decoration: none; }
217
+ .docs-nav-item > a:hover { color: var(--foreground); }
218
+ .docs-nav-item > a[aria-current] { color: var(--accent-foreground); font-weight: 500; }
219
+ .docs-nav-item > a[aria-current] .docs-icon { color: var(--primary); }
220
+ .docs-nav-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
221
+ .docs-badge { flex: none; padding: 0 0.4375rem; border-radius: 999px; background: var(--accent); color: var(--accent-foreground); font-size: 0.6875rem; font-weight: 600; line-height: 1.25rem; letter-spacing: 0.01em; }
222
+ .docs-nav-item:has(> a[aria-current]) .docs-badge { background: var(--card); }
223
+ .docs-nav-toggle { display: grid; flex: none; place-items: center; width: 1.75rem; height: 1.75rem; margin-right: 0.25rem; padding: 0; border: 0; border-radius: max(4px, calc(var(--docs-r-control) - 2px)); background: none; color: var(--muted-foreground); cursor: pointer; }
224
+ .docs-nav-toggle:hover { color: var(--foreground); background: var(--muted); }
225
+ .docs-nav-toggle .docs-icon { font-size: 0.875rem; transition: transform 0.15s; }
226
+ .docs-nav-toggle[aria-expanded='true'] .docs-icon { transform: rotate(90deg); }
227
+ .docs-nav-children { margin: 2px 0 0.25rem 1.25rem; padding-left: 0.5rem; border-left: 1px solid var(--border); }
228
+
229
+ /* Phone menu: opened by the header's menu button, below 64rem. The docs navigation (docs pages only), the site
230
+ links, then the language and the light/dark switch. */
231
+ .docs-menu { position: fixed; inset: var(--docs-header) 0 0; z-index: 29; display: flex; flex-direction: column; border-top: 1px solid var(--border); background: var(--background); color: var(--foreground); font-family: var(--font-sans); outline: none; animation: docs-menu-in 0.15s ease-out; }
232
+ @keyframes docs-menu-in { from { opacity: 0; } }
233
+ @media (prefers-reduced-motion: reduce) { .docs-menu { animation: none; } }
234
+ @media (min-width: 64rem) { .docs-menu { display: none; } }
235
+ .docs-menu-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0.75rem 0.5rem 0.5rem; }
236
+ .docs-menu-scroll .docs-nav-item > a { min-height: 2.75rem; font-size: 0.96875rem; }
237
+ .docs-menu-scroll .docs-nav-item > a .docs-icon { font-size: 1.125rem; }
238
+ .docs-menu-more { flex: none; padding: 1rem 0.5rem; }
239
+ .docs-menu-links { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 2px 0.625rem 0; }
240
+ .docs-menu-links a { display: inline-flex; align-items: center; height: 2.375rem; padding: 0 0.875rem; border-radius: var(--docs-r-control); background: var(--muted); color: var(--foreground); font-size: 0.875rem; font-weight: 500; text-decoration: none; }
241
+ .docs-menu-links a:hover { background: color-mix(in oklab, var(--foreground) 9%, var(--muted)); }
242
+ .docs-menu-links a[aria-current] { font-weight: 700; }
243
+ .docs-menu-foot { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: auto; padding: 0.75rem 1rem 1.75rem; border-top: 1px solid var(--border); }
244
+ /* The languages at the top of the phone menu: one link each, named in its own language. */
245
+ .docs-lang-list { display: flex; flex: none; flex-wrap: wrap; gap: 0.5rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
246
+ .docs-lang-list a { display: inline-flex; flex-direction: column; justify-content: center; min-height: 2.75rem; padding: 0.25rem 0.875rem; border-radius: var(--docs-r-control); background: var(--muted); color: var(--foreground); font-size: 0.9375rem; font-weight: 500; line-height: 1.25; text-decoration: none; }
247
+ .docs-lang-list a[aria-current] { box-shadow: inset 0 0 0 1px var(--foreground); font-weight: 700; }
248
+ .docs-lang-list small { display: block; color: var(--muted-foreground); font-size: 0.75rem; font-weight: 400; }
249
+ .docs-segmented { display: inline-flex; gap: 4px; padding: 3px; border-radius: calc(var(--docs-r-control) + 2px); background: var(--muted); }
250
+ .docs-segmented button { height: 1.875rem; padding: 0 0.75rem; border: 0; border-radius: var(--docs-r-control); background: none; color: var(--muted-foreground); font: 500 0.8125rem/1 var(--font-sans); cursor: pointer; }
251
+ .docs-segmented button[aria-pressed='true'] { background: light-dark(var(--card), var(--muted)); color: var(--foreground); box-shadow: 0 1px 2px rgb(0 0 0 / 0.08); }
252
+
253
+ /* ---------- Docs page ---------- */
254
+
255
+ .docs-page { display: grid; grid-template-columns: minmax(0, 1fr) var(--docs-toc); gap: 3.5rem; max-width: 68.75rem; }
256
+ .docs-article { min-width: 0; max-width: 45rem; }
257
+ .docs-crumbs { margin: 0 0 0.75rem; font-size: 0.8125rem; }
258
+ .docs-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
259
+ .docs-crumbs li { display: flex; align-items: center; gap: 0.25rem; }
260
+ .docs-crumbs .docs-icon { color: var(--muted-foreground); font-size: 0.875rem; opacity: 0.7; }
261
+ .docs-crumbs a { color: var(--muted-foreground); text-decoration: none; }
262
+ .docs-crumbs a:hover { color: var(--foreground); }
263
+ .docs-crumbs [aria-current] { color: var(--foreground); font-weight: 500; }
264
+ .docs-page-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.625rem 1.5rem; align-items: start; padding-bottom: 1.75rem; margin-bottom: 2rem; border-bottom: 1px solid var(--border); }
265
+ .docs-page-head h1 { grid-column: 1; margin: 0; color: var(--foreground); font-size: var(--docs-h1); font-weight: 700; line-height: 1.2; letter-spacing: -0.025em; text-wrap: balance; }
266
+ .docs-lead { grid-column: 1; max-width: 36rem; margin: 0; color: var(--muted-foreground); font-size: 1.0625rem; line-height: 1.6; text-wrap: pretty; }
267
+ .docs-page-head .docs-actions { grid-column: 2; grid-row: 1; margin-top: 0.125rem; }
268
+
269
+ /* Copy page: a split button with a menu */
270
+ .docs-actions { position: relative; display: inline-flex; gap: 2px; }
271
+ .docs-actions > .docs-button { height: 2.125rem; padding: 0 0.75rem; gap: 0.375rem; border-color: transparent; background: var(--muted); font-size: 0.84375rem; }
272
+ .docs-actions > .docs-button:hover { background: color-mix(in oklab, var(--foreground) 9%, var(--muted)); }
273
+ .docs-actions > .docs-button:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
274
+ .docs-actions > .docs-button + .docs-button { width: 2.125rem; padding: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
275
+ .docs-actions .docs-popover { right: 0; top: calc(100% + 0.375rem); min-width: 15rem; }
276
+
277
+ .docs-page-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; margin-top: 3.5rem; color: var(--muted-foreground); font-size: 0.8125rem; }
278
+ .docs-page-foot a { display: inline-flex; align-items: center; gap: 0.375rem; color: var(--muted-foreground); text-decoration: none; }
279
+ .docs-page-foot a:hover { color: var(--foreground); }
280
+ .docs-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-top: 1rem; }
281
+ .docs-pager a { display: flex; flex-direction: column; gap: 0.1875rem; padding: 0.875rem 1rem 0.9375rem; border: 1px solid var(--border); border-radius: var(--docs-r-box); color: var(--foreground); font-size: 0.9375rem; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; hyphens: auto; transition: border-color 0.15s, background-color 0.15s; }
282
+ .docs-pager a:hover { background: color-mix(in oklab, var(--muted) 60%, transparent); }
283
+ .docs-pager small { display: inline-flex; align-items: center; gap: 0.375rem; color: var(--muted-foreground); font-size: 0.78125rem; font-weight: 500; }
284
+ .docs-pager .is-next { grid-column: 2; align-items: flex-end; text-align: right; }
285
+
286
+ /* Headings outside .docs-prose have no wrap rule of their own. `anywhere` (not break-word) because the blog head is a flex container and needs the smaller min-content. */
287
+ :where(.docs-page-head, .docs-hero, .docs-blog, .docs-error) h1, .docs-posts h2, .docs-prose :is(h1, h2, h3, h4) { hyphens: auto; overflow-wrap: anywhere; }
288
+
289
+ /* Table of contents: a rail on wide screens, a menu in the phone bar */
290
+ .docs-toc { position: sticky; top: calc(var(--docs-top) + 2rem); align-self: start; max-height: calc(100dvh - var(--docs-top) - 4rem); overflow-y: auto; scrollbar-width: none; font-size: 0.8125rem; }
291
+ .docs-toc-title { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.625rem; color: var(--foreground); font-size: 0.78125rem; font-weight: 600; }
292
+ .docs-toc-title .docs-icon { color: var(--muted-foreground); font-size: 0.875rem; }
293
+ .docs-toc-list { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--border); }
294
+ .docs-toc-list a { display: block; margin-left: -1px; padding: 0.3125rem 0 0.3125rem 0.875rem; border-left: 2px solid transparent; color: var(--muted-foreground); line-height: 1.4; text-decoration: none; overflow-wrap: break-word; hyphens: auto; transition: color 0.15s, border-color 0.15s; }
295
+ .docs-toc-list a.is-sub { padding-left: 1.625rem; }
296
+ .docs-toc-list a:hover { color: var(--foreground); }
297
+ .docs-toc-list a[aria-current] { border-left-color: var(--primary); color: var(--foreground); font-weight: 500; }
298
+ .docs-toc-more { display: flex; flex-direction: column; gap: 0.125rem; margin-top: 1.125rem; padding-top: 0.875rem; border-top: 1px solid var(--border); }
299
+ .docs-toc-more a, .docs-toc-more button { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0; border: 0; background: none; color: var(--muted-foreground); font: inherit; text-decoration: none; cursor: pointer; }
300
+ .docs-toc-more a:hover, .docs-toc-more button:hover { color: var(--foreground); }
301
+ .docs-toc-menu { position: relative; min-width: 0; max-width: 100%; }
302
+ .docs-toc-menu > button > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
303
+ .docs-toc-menu > button { display: inline-flex; align-items: center; gap: 0.375rem; height: 2rem; padding: 0 0.5rem; border: 0; border-radius: calc(var(--radius) - 2px); background: none; color: var(--muted-foreground); font: 500 0.8125rem/1 var(--font-sans); cursor: pointer; max-width: 100%;}
304
+ .docs-toc-menu > button:hover { color: var(--foreground); }
305
+ .docs-toc-menu > button[aria-expanded='true'] .docs-icon { transform: rotate(180deg); }
306
+ .docs-toc-menu .docs-popover { right: 0; top: calc(100% + 0.25rem); width: min(20rem, calc(100vw - 2rem)); max-height: 60dvh; overflow-y: auto; padding: 0.75rem 0.75rem 0.75rem 0.5rem; }
307
+ .docs-toc-menu .docs-toc-list a { padding-top: 0.375rem; padding-bottom: 0.375rem; font-size: 0.875rem; }
308
+
309
+ /* ---------- Prose: text around the components ---------- */
310
+
311
+ .docs-prose { color: var(--foreground); font-size: 1rem; line-height: 1.7; overflow-wrap: break-word; }
312
+ .docs-prose > :where(p, ul, ol, dl, blockquote) { max-width: var(--docs-measure); }
313
+ .docs-prose :where(p, li) { text-wrap: pretty; }
314
+ .docs-prose > :first-child { margin-top: 0; }
315
+ .docs-prose :where(p, ul, ol, dl, .docs-table, blockquote, figure) { margin: 0 0 1rem; }
316
+ .docs-prose :where(h2, h3, h4) { color: var(--foreground); font-weight: 600; letter-spacing: -0.015em; scroll-margin-top: calc(var(--docs-top) + var(--docs-bar) + 1rem); }
317
+ /* Standalone, the root's scroll-padding already clears header and bar; a heading margin on top would double it. */
318
+ :root.docs-standalone .docs-prose :where(h2, h3, h4) { scroll-margin-top: 0; }
319
+ .docs-prose h2 { margin: 3rem 0 0.625rem; font-size: 1.4375rem; font-weight: 650; line-height: 1.3; letter-spacing: -0.02em; text-wrap: balance; }
320
+ .docs-prose h3 { margin: 2rem 0 0.625rem; font-size: 1.125rem; line-height: 1.4; letter-spacing: -0.01em; }
321
+ .docs-prose h4 { margin: 1.75rem 0 0.5rem; font-size: 1rem; }
322
+ .docs-prose :where(h2, h3, h4) > a { color: inherit; text-decoration: none; }
323
+ .docs-prose :where(h2, h3, h4) > a::after { content: '#'; margin-left: 0.375rem; color: var(--muted-foreground); opacity: 0; transition: opacity 0.15s; }
324
+ .docs-prose :where(h2, h3, h4):hover > a::after { opacity: 1; }
325
+ .docs-prose a:not([class]) { color: var(--primary); font-weight: 500; text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--primary) 35%, transparent); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color 0.15s; }
326
+ .docs-prose a:not([class]):hover { text-decoration-color: var(--primary); }
327
+ .docs-prose strong { font-weight: 600; }
328
+ .docs-prose :where(ul, ol) { padding-left: 1.5rem; }
329
+ .docs-prose li { padding-left: 0.25rem; }
330
+ .docs-prose li::marker { color: var(--muted-foreground); }
331
+ .docs-prose li + li { margin-top: 0.375rem; }
332
+ .docs-prose li > :where(ul, ol) { margin: 0.375rem 0 0; }
333
+ .docs-prose ol > li::marker { color: var(--muted-foreground); font-weight: 500; }
334
+ .docs-prose :not(pre) > code { padding: 0.125rem 0.25rem; border-radius: 5px; background: var(--muted); font-family: var(--font-mono); font-size: 0.84em; font-weight: 500; overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
335
+ /* Code in a heading is part of the title: same weight and colour, no chip. */
336
+ .docs-prose :is(h1, h2, h3, h4) code { padding: 0; background: none; font-size: 0.92em; font-weight: inherit; color: inherit; }
337
+ .docs-prose hr { margin: 2.5rem 0; border: 0; border-top: 1px solid var(--border); }
338
+ .docs-prose blockquote { padding-left: 1rem; border-left: 2px solid var(--border); color: var(--muted-foreground); }
339
+ .docs-prose img { max-width: 100%; height: auto; border-radius: var(--radius); }
340
+ /* The edge shadows are the scroll cue: the "local" covers hide them at the ends, so a shadow shows only on a side with more to scroll to. */
341
+ .docs-prose .docs-table {
342
+ width: 100%; max-width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--docs-r-box);
343
+ background:
344
+ linear-gradient(to right, var(--card), var(--card)) left center / 1.5rem 100% no-repeat local,
345
+ linear-gradient(to left, var(--card), var(--card)) right center / 1.5rem 100% no-repeat local,
346
+ linear-gradient(to right, color-mix(in oklab, var(--foreground) 14%, transparent), transparent) left center / 0.75rem 100% no-repeat scroll,
347
+ linear-gradient(to left, color-mix(in oklab, var(--foreground) 14%, transparent), transparent) right center / 0.75rem 100% no-repeat scroll;
348
+ }
349
+ /* At least as wide as its frame, so a short table's rows and header reach the frame's edge. */
350
+ .docs-prose table { min-width: 100%; border-collapse: separate; border-spacing: 0; margin: 0; font-size: 0.875rem; line-height: 1.5; font-variant-numeric: tabular-nums; }
351
+ .docs-prose :where(th, td) { padding: 0.6875rem 0.875rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
352
+ .docs-prose tr:last-child > td { border-bottom: 0; }
353
+ .docs-prose th { background: var(--sidebar); color: var(--muted-foreground); font-size: 0.78125rem; font-weight: 600; white-space: nowrap; }
354
+ .docs-prose td code { white-space: normal; overflow-wrap: normal; }
355
+ .docs-prose td:first-child code { white-space: nowrap; }
356
+ /* Only the last column of a table with 4+ columns needs room; in narrower tables it would force a scroll on phones. */
357
+ .docs-prose table:has(th:nth-child(4)) td:last-child { min-width: 14rem; }
358
+ /* Below 360 px a 3-column table squeezes its last column to a few letters; there it scrolls too. */
359
+ @media (max-width: 22.5rem) { .docs-prose table:has(th:nth-child(3)) td:last-child { min-width: 10rem; } }
360
+
361
+ /* Code blocks: one bordered panel with the file name or tabs on a lighter head (ginko-components draws an inset). */
362
+ :where(.docs-prose, .docs-landing) :is(.ginko-code, .ginko-code-group, .ginko-code-tree):not([data-bare]) { padding: 0; overflow: hidden; border: 1px solid var(--docs-code-line); border-radius: var(--docs-r-box); }
363
+ :where(.docs-prose, .docs-landing) .ginko-code:not([data-bare]):not(:has(> .ginko-code-label)) { background: var(--ginko-code-bg); }
364
+ :where(.docs-prose, .docs-landing) :is(.ginko-code-label, .ginko-code-tabs) { min-height: 2.625rem; border-bottom: 1px solid var(--docs-code-line); }
365
+ :where(.docs-prose, .docs-landing) .ginko-code-label { padding-left: 0.8125rem; }
366
+ :where(.docs-prose, .docs-landing) .ginko-code-tabs { align-items: center; padding-left: 0.3125rem; }
367
+ :where(.docs-prose, .docs-landing) .ginko-code pre { padding: 0.875rem 1.125rem 1rem; line-height: 1.7; }
368
+ /* The code area meets its header (file name or tabs) with a straight edge; only the frame's bottom corners stay round.
369
+ Not :where(): it must beat ginko-components' `.ginko-code pre` radius. */
370
+ :is(.docs-prose, .docs-landing) .ginko-code pre { border-radius: 0 0 calc(var(--docs-r-box) - 1px) calc(var(--docs-r-box) - 1px); }
371
+ :is(.docs-prose, .docs-landing) .ginko-code:not([data-labelled], [data-bare]) pre { border-radius: calc(var(--docs-r-box) - 1px); }
372
+ .docs-example .ginko-code pre { border-radius: 0; }
373
+ :where(.docs-prose, .docs-landing) .ginko-code-copy { top: 0.3125rem; right: 0.3125rem; width: 2rem; height: 2rem; justify-content: center; border-radius: max(4px, calc(var(--docs-r-control) - 2px)); }
374
+ :where(.docs-prose, .docs-landing) .ginko-code-group .ginko-code[data-bare] > .ginko-code-copy { top: 0.3125rem; right: 0.3125rem; background: var(--ginko-code-frame); }
375
+ /* The copy button sits at the end of the file tabs: tabs that overflow scroll under it, never behind it. */
376
+ :where(.docs-prose, .docs-landing) .ginko-code-group .ginko-code-tabs { padding-right: 2.75rem; }
377
+ /* The square copy button shows the check icon; "Kopiert" stays for screen readers (aria-live), not in 2rem. */
378
+ :where(.docs-prose, .docs-landing) .ginko-code-copy .ginko-code-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
379
+ :where(.docs-prose, .docs-landing) .ginko-code-tabs > .ginko-code-tab { min-height: 2rem; padding: 0 0.625rem; border: 0; border-radius: max(4px, calc(var(--docs-r-control) - 2px)); }
380
+ :where(.docs-prose, .docs-landing) .ginko-code-tabs > .ginko-code-tab[aria-selected='true'] { border-bottom-color: transparent; background: rgb(230 232 238 / 0.08); }
381
+
382
+ /* ---------- Example: a ```md preview fence, its rendering and its Markdown as tabs (DocsExample) ---------- */
383
+ .docs-example { margin: 1.5rem 0 2rem; border: 1px solid var(--border); border-radius: var(--docs-r-box); overflow: hidden; }
384
+ .docs-example > .ginko-tabs { margin: 0; }
385
+ .docs-example > .ginko-tabs > .ginko-tabs-list { gap: 0.25rem; margin: 0; padding: 0.5rem 0.5rem 0.5rem 0.625rem; border-bottom: 1px solid var(--border); background: var(--sidebar); }
386
+ /* The Preview/Markdown switch: pills, the chosen one lifted on the card colour (row E, PrimeVue SelectButton). */
387
+ .docs-example > .ginko-tabs > .ginko-tabs-list > .ginko-tabs-tab { height: 1.875rem; margin: 0; padding: 0 0.75rem; border: 0; border-radius: var(--docs-r-control); font-size: 0.8125rem; font-weight: 500; }
388
+ .docs-example > .ginko-tabs > .ginko-tabs-list > .ginko-tabs-tab[aria-selected='true'] { background: light-dark(var(--card), var(--muted)); color: var(--foreground); box-shadow: 0 1px 2px rgb(0 0 0 / 0.08), 0 0 0 1px var(--border); }
389
+ .docs-example > .ginko-tabs > .ginko-tabs-panel, .docs-example > .ginko-tabs[data-variant] > .ginko-tabs-panel { padding: 0; }
390
+ .docs-example-preview {
391
+ padding: 2rem 1.75rem;
392
+ background-color: var(--card);
393
+ background-image: radial-gradient(color-mix(in oklab, var(--foreground) 10%, transparent) 1px, transparent 1px);
394
+ background-size: 14px 14px;
395
+ }
396
+ .docs-example-preview > :first-child { margin-top: 0; }
397
+ .docs-example-preview > :last-child { margin-bottom: 0; }
398
+ .docs-example .ginko-code { margin: 0; border: 0; border-radius: 0; }
399
+ /* The frame is the only border: the code block inside draws none and has no radius (beats the .docs-prose rules above). */
400
+ :is(.docs-prose, .docs-landing) .docs-example .ginko-code:not([data-bare]) { border: 0; border-radius: 0; }
401
+ :is(.docs-prose, .docs-landing) .docs-example .ginko-code pre { border-radius: 0; }
402
+ /* Both panels share one grid cell; the inactive one is only hidden (visibility keeps it out of the a11y tree and the tab
403
+ order), so the frame is as tall as the taller panel and switching tabs does not move the page. */
404
+ .docs-example { position: relative; }
405
+ .docs-example > .ginko-tabs { display: grid; grid-template-columns: minmax(0, 1fr); }
406
+ .docs-example > .ginko-tabs > .ginko-tabs-panel { grid-column: 1; grid-row: 2; }
407
+ .docs-example > .ginko-tabs > .ginko-tabs-panel[hidden] { display: block; visibility: hidden; }
408
+ /* The source fills the shared cell, so a shorter source shows no empty strip under the code. */
409
+ .docs-example > .ginko-tabs > .ginko-tabs-panel, .docs-example .ginko-tabs-panel > .ginko-tab, .docs-example .ginko-tab > .ginko-code { display: flex; flex: 1; flex-direction: column; }
410
+ .docs-example .ginko-tabs-panel > .ginko-tab > .ginko-code:only-child { margin: 0; padding: 0; }
411
+ .docs-example .ginko-tab > .ginko-code > pre { flex: 1; margin: 0; }
412
+ /* One copy button for both tabs (DocsExample); the code block's own is hidden here. */
413
+ .docs-example .ginko-code > .ginko-code-copy { display: none; }
414
+ /* The copy button sits at the right end of the tab strip, the same place for both tabs. */
415
+ .docs-example > .docs-example-copy { top: calc((2.875rem - 2rem) / 2); right: 0.5rem; width: 2rem; height: 2rem; justify-content: center; border-radius: var(--docs-r-control); color: var(--muted-foreground); background: none; }
416
+ .docs-example > .docs-example-copy:is(:hover, :focus-visible) { color: var(--foreground); background: var(--muted); }
417
+ .docs-example > .ginko-tabs > .ginko-tabs-list { padding-right: 3rem; }
418
+ .docs-example-copy .ginko-code-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
419
+ @media (max-width: 40rem) { .docs-example-preview { padding: 1.25rem 1rem; } }
420
+
421
+ /* ---------- Start page ---------- */
422
+
423
+ .docs-landing-inner { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem 6rem; }
424
+ .docs-hero { max-width: 65rem; margin: 0 auto; padding-top: 6rem; text-align: center; }
425
+ .docs-hero h1 { margin: 0; color: var(--foreground); font-size: clamp(2.25rem, 1.25rem + 4.5vw, 3.625rem); font-weight: 700; line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
426
+ .docs-hero p { max-width: 40rem; margin: 1.5rem auto 0; color: var(--muted-foreground); font-size: 1.1875rem; line-height: 1.6; text-wrap: pretty; }
427
+ .docs-hero-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.625rem; margin-top: 2.25rem; }
428
+ .docs-install { display: inline-flex; align-items: center; gap: 0.625rem; max-width: 100%; height: 2.625rem; margin-top: 1rem; padding: 0 0.3125rem 0 0.875rem; border: 1px solid var(--border); border-radius: var(--docs-r-control); background: var(--card); font: 500 0.84375rem/1 var(--font-mono); }
429
+ .docs-install code { min-width: 0; font: inherit; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
430
+ .docs-install code::before { content: '$ '; color: var(--muted-foreground); }
431
+ .docs-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.75rem 3rem; margin: 6.5rem 0 0; padding: 0; list-style: none; }
432
+ .docs-feature { position: relative; display: grid; align-content: start; gap: 0.5rem; padding-top: 1.375rem; border-top: 1px solid var(--border); }
433
+ .docs-feature-icon { margin-bottom: 0.375rem; color: var(--primary); line-height: 0; }
434
+ .docs-feature-icon .docs-icon { font-size: 1.25rem; }
435
+ .docs-feature h2 { margin: 0; font-size: 1rem; font-weight: 600; letter-spacing: -0.005em; }
436
+ .docs-feature h2 a { color: inherit; text-decoration: none; }
437
+ .docs-feature h2 a::after { content: ''; position: absolute; inset: 0; }
438
+ .docs-feature h2 a:hover { color: var(--primary); }
439
+ .docs-feature p { margin: 0; color: var(--muted-foreground); font-size: 0.9375rem; line-height: 1.6; text-wrap: pretty; }
440
+ .docs-landing-body { margin-top: 6.5rem; }
441
+ .docs-landing-body > h2:first-child { margin-top: 0; font-size: 2.125rem; font-weight: 700; letter-spacing: -0.03em; }
442
+ @media (max-width: 63.99rem) { .docs-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
443
+ @media (max-width: 40rem) { .docs-features { grid-template-columns: minmax(0, 1fr); } }
444
+
445
+ /* ---------- Blog and changelog: one framed column ---------- */
446
+
447
+ .docs-blog { max-width: 56rem; margin: 0 auto; padding: 0 1rem 1rem; }
448
+ .docs-blog-panel { border: 1px solid var(--border); border-radius: var(--docs-r-panel); background: var(--card); padding: 2.75rem 3rem 3.5rem; }
449
+ .docs-blog h1 { margin: 0; font-size: var(--docs-h1); font-weight: 700; line-height: 1.15; letter-spacing: -0.03em; text-wrap: balance; }
450
+ .docs-blog-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 0.75rem 1rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--border); }
451
+ .docs-blog-head .docs-lead { margin: 0.5rem 0 0; font-size: 1.0625rem; color: var(--muted-foreground); }
452
+ .docs-blog-head a { display: inline-flex; align-items: center; gap: 0.375rem; color: var(--muted-foreground); font-size: 0.875rem; text-decoration: none; }
453
+ .docs-blog-head a:hover { color: var(--foreground); }
454
+ .docs-meta { margin: 0; color: var(--muted-foreground); font-size: 0.875rem; }
455
+ .docs-meta a { color: inherit; }
456
+ .docs-posts { display: grid; gap: 4px; margin: 0.5rem -1rem 0; padding: 0; list-style: none; }
457
+ .docs-posts li { position: relative; display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1.5rem; align-items: start; padding: 1.25rem 1rem 1.375rem; border-radius: var(--docs-r-box); }
458
+ .docs-posts li:hover { background: color-mix(in oklab, var(--muted) 60%, transparent); }
459
+ .docs-post-side { display: grid; gap: 0.625rem; align-content: start; padding-top: 0.1875rem; }
460
+ .docs-post-side .docs-meta { font-variant-numeric: tabular-nums; }
461
+ .docs-posts h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 0.625rem; margin: 0; font-size: 1.1875rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.015em; }
462
+ .docs-posts h2 a { color: var(--foreground); text-decoration: none; }
463
+ .docs-posts h2 a::after { content: ''; position: absolute; inset: 0; border-radius: var(--docs-r-box); }
464
+ .docs-tag { display: inline-flex; align-items: center; height: 1.5rem; padding: 0 0.5625rem; border-radius: 999px; background: var(--muted); color: var(--foreground); font-size: 0.78125rem; font-weight: 500; }
465
+ .docs-tag-draft { height: 1.375rem; padding: 0 0.5rem; border: 1px dashed var(--warning); background: transparent; color: var(--warning); font-size: 0.75rem; font-weight: 600; }
466
+ .docs-tags { display: flex; flex-wrap: wrap; gap: 0.375rem; margin: 0.75rem 0 0; }
467
+ .docs-post-teaser { max-width: 34rem; margin: 0.375rem 0 0; color: var(--muted-foreground); font-size: 0.9375rem; line-height: 1.6; text-wrap: pretty; }
468
+ .docs-authors { display: flex; align-items: center; gap: 0.5rem; margin: 0; color: var(--muted-foreground); font-size: 0.84375rem; }
469
+ .docs-avatar { width: 1.5rem; height: 1.5rem; border-radius: 999px; object-fit: cover; }
470
+ .docs-avatar + .docs-avatar { margin-inline-start: -0.875rem; outline: 2px solid var(--card); }
471
+ .docs-post .docs-crumbs { margin-bottom: 1.5rem; }
472
+ .docs-post .docs-lead { margin-top: 1rem; }
473
+ .docs-post .docs-meta { margin: 1.25rem 0 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
474
+ .docs-post-image { display: block; width: 100%; height: auto; margin: 0 0 2rem; border-radius: var(--radius); }
475
+ .docs-release { display: grid; grid-template-columns: 11.5rem minmax(0, 1fr); gap: 2rem; padding: 2.25rem 0; border-bottom: 1px solid var(--border); }
476
+ .docs-release:last-child { padding-bottom: 0; border-bottom: 0; }
477
+ .docs-release-meta { position: sticky; top: calc(var(--docs-top) + 1.5rem); align-self: start; display: grid; gap: 0.25rem; justify-items: start; }
478
+ .docs-release h2 { margin: 0; font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; scroll-margin-top: calc(var(--docs-top) + 1.5rem); }
479
+ .docs-release h2 a { color: var(--foreground); text-decoration: none; }
480
+ .docs-release h2 a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
481
+ .docs-release .docs-meta { font-size: 0.84375rem; }
482
+ .docs-release .docs-prose h3 { margin-top: 1.5rem; color: var(--muted-foreground); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
483
+ .docs-release .docs-prose > h3:first-child { margin-top: 0.375rem; }
484
+
485
+ /* ---------- Not found and error ---------- */
486
+
487
+ .docs-error { display: grid; place-items: center; min-height: calc(100dvh - var(--docs-header) - 10rem); padding: 4rem 1.5rem; text-align: center; }
488
+ .docs-error-code { margin: 0; color: var(--muted-foreground); font-size: clamp(4.5rem, 3rem + 6vw, 7.5rem); font-weight: 700; line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
489
+ .docs-error h1 { margin: 0.75rem 0 0; font-size: var(--docs-h1); font-weight: 700; letter-spacing: -0.025em; }
490
+ .docs-error p:not(.docs-error-code) { max-width: 28rem; margin: 0.75rem auto 0; color: var(--muted-foreground); }
491
+ .docs-error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 2rem; }
492
+ .docs-post .docs-crumbs { margin-bottom: 1.5rem; }
493
+ .docs-post .docs-lead { margin-top: 1rem; }
494
+ .docs-post .docs-meta { margin: 1.25rem 0 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
495
+ .docs-post-image { display: block; width: 100%; height: auto; margin: 0 0 2rem; border-radius: var(--radius); }
496
+ .docs-release { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 1.5rem; padding: 2.5rem 0; border-bottom: 1px solid var(--border); }
497
+ .docs-release-meta { position: sticky; top: calc(var(--docs-top) + 1.5rem); align-self: start; }
498
+ .docs-release h2 { margin: 0 0 0.25rem; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; scroll-margin-top: calc(var(--docs-top) + 1.5rem); }
499
+ .docs-release h2 a { color: var(--foreground); text-decoration: none; }
500
+ .docs-release h2 a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
501
+ .docs-release .docs-prose h3 { margin-top: 1.5rem; font-size: 1rem; }
502
+
503
+ /* ---------- Banner and footer ---------- */
504
+
505
+ .docs-banner { position: relative; display: flex; align-items: center; justify-content: center; min-height: 2.5rem; padding: 0.5rem 3rem; background: var(--primary); color: var(--primary-foreground); font-size: 0.875rem; font-weight: 500; text-align: center; }
506
+ .docs-banner p { margin: 0; }
507
+ .docs-banner a { color: inherit; text-underline-offset: 0.2em; }
508
+ .docs-banner button { position: absolute; top: 50%; right: 0.5rem; translate: 0 -50%; color: inherit; opacity: 0.8; }
509
+ .docs-banner button:hover { opacity: 1; background: color-mix(in oklab, var(--primary-foreground) 15%, transparent); color: inherit; }
510
+ html[data-docs-banner-off] .docs-banner { display: none; }
511
+
512
+ .docs-footer { font-size: 0.84375rem; }
513
+ .docs-footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; max-width: var(--docs-max); margin: 0 auto; padding: 1.75rem 1rem 2.5rem 1.5rem; border-top: 1px solid var(--border); color: var(--muted-foreground); }
514
+ .docs-footer-inner > a { margin-right: auto; }
515
+ .docs-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; order: 2; }
516
+ .docs-footer a { color: var(--muted-foreground); text-decoration: none; }
517
+ .docs-footer a:hover { color: var(--foreground); }
518
+
519
+ /* ---------- Narrow screens ---------- */
520
+
521
+ /* Below 80rem the table of contents moves into the bar above the page. */
522
+ @media (max-width: 79.99rem) {
523
+ :root { --docs-bar: 2.75rem; }
524
+ .docs-page { grid-template-columns: minmax(0, 1fr); }
525
+ .docs-page > .docs-toc { display: none; }
526
+ .docs-bar { position: sticky; top: var(--docs-top); z-index: 20; display: flex; align-items: center; justify-content: flex-end; height: 2.75rem; margin: 0 -2.25rem 0 -3.5rem; padding: 0 1rem 0 2.5rem; border-bottom: 1px solid var(--border); border-radius: var(--docs-r-panel) var(--docs-r-panel) 0 0; background: color-mix(in oklab, var(--card) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
527
+ .docs-bar:not(:has(.docs-toc-menu)) { display: none; }
528
+ .docs-content { padding-top: 0; }
529
+ .docs-bar + * { margin-top: 2.5rem; }
530
+ }
531
+
532
+ /* Below 64rem the sidebar moves into the header's menu. */
533
+ @media (max-width: 63.99rem) {
534
+ .docs-shell { grid-template-columns: minmax(0, 1fr); padding: 0; }
535
+ .docs-sidebar { display: none; }
536
+ .docs-content { padding: 0 1.5rem 4rem; border: 0; border-radius: 0; background: none; }
537
+ .docs-bar { justify-content: flex-end; margin: 0 -1.5rem; padding: 0 0.75rem 0 1rem; border-block: 1px solid var(--border); border-radius: 0; background: color-mix(in oklab, var(--background) 92%, transparent); }
538
+ .docs-nav-links, .docs-header-end > :not(.docs-search-trigger, .docs-theme-toggle, .docs-header-menu) { display: none; }
539
+ .docs-header-menu { display: inline-grid; }
540
+ .docs-header-inner { padding: 0 0.5rem 0 1rem; }
541
+ .docs-search-trigger { width: 2.25rem; padding: 0; justify-content: center; border-color: transparent; background: none; }
542
+ .docs-search-trigger:hover { background: var(--muted); border-color: transparent; }
543
+ .docs-search-trigger .docs-icon { font-size: 1.125rem; }
544
+ .docs-search-trigger > :not(.docs-icon) { display: none; }
545
+ .docs-header-end .docs-search-trigger { margin-right: 0; }
546
+ }
547
+
548
+ @media (max-width: 40rem) {
549
+ .docs-content { padding: 0 1rem 3rem; }
550
+ .docs-bar { margin: 0 -1rem; padding: 0 0.5rem; }
551
+ .docs-page-head { grid-template-columns: minmax(0, 1fr); }
552
+ .docs-page-head .docs-actions { grid-column: 1; grid-row: auto; margin-top: 0.75rem; }
553
+ .docs-pager { grid-template-columns: minmax(0, 1fr); }
554
+ .docs-pager .is-next { grid-column: 1; }
555
+ .docs-landing-inner { padding: 3rem 1rem 4rem; }
556
+ .docs-features { margin-top: 3.5rem; }
557
+ .docs-landing-body { margin-top: 3.5rem; }
558
+ .docs-feature:has(.docs-feature-icon) { grid-template-columns: auto minmax(0, 1fr); column-gap: 0.75rem; align-items: center; }
559
+ .docs-feature-icon { margin-bottom: 0; }
560
+ .docs-feature > p { grid-column: 1 / -1; }
561
+ .docs-blog-panel { padding: 1.5rem 1rem 3rem; border: 0; background: none; }
562
+ .docs-posts { margin-inline: 0; }
563
+ .docs-posts li { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; padding-inline: 0; }
564
+ .docs-post-side { grid-auto-flow: column; justify-content: start; align-items: center; gap: 0.75rem; padding-top: 0; }
565
+ .docs-release { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
566
+ .docs-release-meta { position: static; }
567
+ .docs-footer-inner { padding: 1.25rem 1rem; }
568
+ }
569
+
570
+ /* Touch screens: small controls keep their look but get a 44px hit area. */
571
+ /* ---------- Embedded: the docs inside a site's own layout (no html.docs-standalone) ----------
572
+ No framed panel: the page sits on the site's background, and the shell lines up with the site's container through
573
+ --docs-max and --docs-gutter. The search sits above the navigation; on phones the bar always shows, with the
574
+ navigation button and the search on the start side and the table of contents on the end side. */
575
+ :root:not(.docs-standalone) .docs-shell { gap: 3rem; padding-bottom: 0; }
576
+ :root:not(.docs-standalone) .docs-sidebar { padding: 2rem 0 3rem; }
577
+ :root:not(.docs-standalone) .docs-content { padding: 2rem 0 4.5rem; border: 0; border-radius: 0; background: none; }
578
+ .docs-sidebar-search { margin: 0 0 1.25rem; }
579
+ .docs-sidebar-search .docs-search-trigger { width: 100%; }
580
+ .docs-bar-start { display: none; }
581
+ .docs-bar-nav { display: inline-flex; align-items: center; gap: 0.5rem; height: 2.75rem; padding: 0 0.5rem; border: 0; background: none; color: var(--foreground); font: 500 0.875rem/1 var(--font-sans); cursor: pointer; }
582
+ .docs-bar-nav .docs-icon { font-size: 1.125rem; color: var(--muted-foreground); }
583
+ .docs-nav-sheet { inset-block: 0; inset-inline: 0 auto; width: min(20rem, calc(100vw - 3rem)); max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; border-inline-end: 1px solid var(--border); background: var(--background); color: var(--foreground); font-family: var(--font-sans); animation: docs-menu-in 0.15s ease-out; }
584
+ .docs-nav-sheet[open] { display: flex; flex-direction: column; }
585
+ .docs-nav-sheet::backdrop { background: rgb(0 0 0 / 0.4); }
586
+ .docs-nav-sheet-head { display: flex; flex: none; align-items: center; justify-content: space-between; height: 3.5rem; padding: 0 0.5rem 0 1rem; border-bottom: 1px solid var(--border); }
587
+ .docs-nav-sheet-head p { margin: 0; font-weight: 600; }
588
+ .docs-nav-sheet-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0.75rem 0.5rem 2rem; }
589
+ .docs-nav-sheet-body .docs-nav-item > a { min-height: 2.75rem; }
590
+ @media (prefers-reduced-motion: reduce) { .docs-nav-sheet { animation: none; } }
591
+ @media (max-width: 79.99rem) {
592
+ :root:not(.docs-standalone) .docs-content { padding-top: 0; }
593
+ :root:not(.docs-standalone) .docs-bar { margin: 0; padding: 0; border-radius: 0; background: color-mix(in oklab, var(--background) 92%, transparent); }
594
+ }
595
+ @media (max-width: 63.99rem) {
596
+ :root:not(.docs-standalone) .docs-shell { padding: 0 var(--docs-gutter); }
597
+ :root:not(.docs-standalone) .docs-content { padding: 0 0 4rem; }
598
+ /* No top border: the site's header above has one. */
599
+ :root:not(.docs-standalone) .docs-bar { display: flex; justify-content: space-between; margin: 0 calc(-1 * var(--docs-gutter)); padding: 0 max(0px, calc(var(--docs-gutter) - 0.5rem)); border-top: 0; }
600
+ .docs-bar-start { display: flex; align-items: center; gap: 0.25rem; }
601
+ }
602
+
603
+ @media (pointer: coarse) {
604
+ :where(.docs-icon-button, .ginko-code-copy, .ginko-code-tab, .docs-toc-menu > button, .docs-example .ginko-tabs-tab) { position: relative; }
605
+ :where(.docs-icon-button, .ginko-code-copy, .ginko-code-tab, .docs-toc-menu > button, .docs-example .ginko-tabs-tab)::after { content: ''; position: absolute; inset: -7px; }
606
+ .docs-toc-menu .docs-toc-list a { min-height: 2.75rem; display: flex; align-items: center; }
607
+ }
608
+
609
+ /* Phones: blog and changelog text on the same 16px gutter as the docs; a calmer hero lede. */
610
+ @media (max-width: 40rem) {
611
+ .docs-blog { padding-inline: 0; }
612
+ .docs-hero p { font-size: 1.0625rem; }
613
+ }
614
+ /* 320px: both hero buttons fill the row. */
615
+ @media (max-width: 23.99rem) {
616
+ .docs-hero-links { flex-direction: column; }
617
+ .docs-hero-links > .docs-button { width: 100%; justify-content: center; }
618
+ }
619
+ .ginko-excerpt-source { font-family: var(--font-sans); }