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