jekyll-theme-modootoday 1.4.0 → 1.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 (357) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +141 -1
  3. data/README.ko.md +38 -11
  4. data/README.md +38 -11
  5. data/RULES.md +27 -12
  6. data/_includes/footer-custom.html +4 -5
  7. data/_includes/modootoday/assets/imports.html +14 -0
  8. data/_includes/modootoday/assets/preload.html +11 -0
  9. data/_includes/modootoday/assets/registry.html +89 -0
  10. data/_includes/modootoday/assets/scripts.html +36 -0
  11. data/_includes/modootoday/assets/sheets.html +25 -0
  12. data/_includes/modootoday/assets/site-scripts.html +20 -0
  13. data/_includes/modootoday/assets/site-sheets.html +10 -0
  14. data/_includes/modootoday/assets/url.html +5 -0
  15. data/_includes/modootoday/blog/home-list.html +26 -0
  16. data/_includes/modootoday/blog/home-posts.html +6 -0
  17. data/_includes/modootoday/breadcrumb.html +9 -10
  18. data/_includes/modootoday/chrome/footer.html +16 -0
  19. data/_includes/modootoday/chrome/nav-sheet.html +13 -0
  20. data/_includes/modootoday/config.html +17 -15
  21. data/_includes/modootoday/detail/page.html +28 -0
  22. data/_includes/modootoday/directory/item.html +4 -2
  23. data/_includes/modootoday/directory/items.html +7 -2
  24. data/_includes/modootoday/directory/jsonld.html +2 -2
  25. data/_includes/modootoday/directory/list.html +4 -2
  26. data/_includes/modootoday/directory/self.html +8 -0
  27. data/_includes/modootoday/doc/pagination.html +1 -1
  28. data/_includes/modootoday/doc/sidebar.html +1 -1
  29. data/_includes/modootoday/doc/twin.html +5 -4
  30. data/_includes/modootoday/docs-extra/jsonld.html +7 -7
  31. data/_includes/modootoday/docs-extra/packages.html +3 -3
  32. data/_includes/modootoday/filter/controls.html +4 -0
  33. data/_includes/modootoday/head-meta.html +7 -7
  34. data/_includes/modootoday/home-url.html +1 -1
  35. data/_includes/modootoday/i18n/ar.html +1 -1
  36. data/_includes/modootoday/i18n/de.html +1 -1
  37. data/_includes/modootoday/i18n/el.html +1 -1
  38. data/_includes/modootoday/i18n/es.html +1 -1
  39. data/_includes/modootoday/i18n/fa.html +1 -1
  40. data/_includes/modootoday/i18n/fr.html +1 -1
  41. data/_includes/modootoday/i18n/id.html +1 -1
  42. data/_includes/modootoday/i18n/it.html +1 -1
  43. data/_includes/modootoday/i18n/ja.html +1 -1
  44. data/_includes/modootoday/i18n/ko.html +1 -1
  45. data/_includes/modootoday/i18n/ml.html +1 -1
  46. data/_includes/modootoday/i18n/pl.html +1 -1
  47. data/_includes/modootoday/i18n/pt-BR.html +1 -1
  48. data/_includes/modootoday/i18n/ro.html +1 -1
  49. data/_includes/modootoday/i18n/ru.html +1 -1
  50. data/_includes/modootoday/i18n/th.html +1 -1
  51. data/_includes/modootoday/i18n/tr.html +1 -1
  52. data/_includes/modootoday/i18n/uk.html +1 -1
  53. data/_includes/modootoday/i18n/ur-Latn.html +1 -1
  54. data/_includes/modootoday/i18n/vi.html +1 -1
  55. data/_includes/modootoday/i18n/zh-CN.html +1 -1
  56. data/_includes/modootoday/i18n/zh-TW.html +1 -1
  57. data/_includes/modootoday/i18n.html +126 -123
  58. data/_includes/modootoday/jsonld/author.html +6 -7
  59. data/_includes/modootoday/jsonld/breadcrumb.html +4 -4
  60. data/_includes/modootoday/jsonld/graph.html +1 -1
  61. data/_includes/modootoday/jsonld/profile.html +3 -2
  62. data/_includes/modootoday/jsonld/props.html +2 -2
  63. data/_includes/modootoday/jsonld/schema/defined-term.html +8 -0
  64. data/_includes/modootoday/jsonld/schema/faq.html +19 -0
  65. data/_includes/modootoday/jsonld/schema/learning.html +11 -0
  66. data/_includes/modootoday/jsonld/type.html +10 -3
  67. data/_includes/modootoday/jsonld/webpage.html +1 -0
  68. data/_includes/modootoday/lang-switch.html +1 -1
  69. data/_includes/modootoday/links/content.html +4 -2
  70. data/_includes/modootoday/lookup/crumbs.html +13 -0
  71. data/_includes/modootoday/lookup/page.html +9 -0
  72. data/_includes/modootoday/lookup/urls.html +3 -0
  73. data/_includes/modootoday/markdown/c/faq.html +1 -1
  74. data/_includes/modootoday/markdown/c/params.html +3 -2
  75. data/_includes/modootoday/markdown/code.html +19 -0
  76. data/_includes/modootoday/markdown/components.html +8 -9
  77. data/_includes/modootoday/markdown/llms-pages.html +2 -2
  78. data/_includes/modootoday/markdown/packages.html +22 -0
  79. data/_includes/modootoday/markdown/raw-body.html +10 -2
  80. data/_includes/modootoday/markdown/sections.html +10 -4
  81. data/_includes/modootoday/markdown/split.html +3 -2
  82. data/_includes/modootoday/markdown/visual.html +6 -0
  83. data/_includes/modootoday/meta/byline.html +7 -8
  84. data/_includes/modootoday/meta/share.html +1 -1
  85. data/_includes/modootoday/nav.html +6 -6
  86. data/_includes/modootoday/news/notes.html +1 -1
  87. data/_includes/modootoday/pages/error.html +4 -2
  88. data/_includes/modootoday/pages/hero/poster.html +10 -0
  89. data/_includes/modootoday/pages/search-form.html +6 -4
  90. data/_includes/modootoday/pages/title.html +6 -0
  91. data/_includes/modootoday/profile/name.html +8 -0
  92. data/_includes/modootoday/records/body.html +3 -0
  93. data/_includes/modootoday/records/card.html +5 -0
  94. data/_includes/modootoday/records/facts.html +14 -0
  95. data/_includes/modootoday/records/lookup.html +8 -0
  96. data/_includes/modootoday/ref-url.html +7 -1
  97. data/_includes/modootoday/render/math.html +2 -2
  98. data/_includes/modootoday/render/mermaid.html +2 -2
  99. data/_includes/modootoday/search/record.html +13 -0
  100. data/_includes/modootoday/search.json +14 -7
  101. data/_includes/modootoday/site/author.html +18 -0
  102. data/_includes/modootoday/site/nav-auto.html +22 -0
  103. data/_includes/modootoday/site/nav.html +17 -0
  104. data/_includes/modootoday/stylesheets.html +25 -21
  105. data/_includes/modootoday/t.html +1 -1
  106. data/_includes/modootoday/theme-color.html +3 -3
  107. data/_includes/modootoday/version.html +2 -0
  108. data/_layouts/blog.html +2 -0
  109. data/_layouts/default.html +7 -32
  110. data/_layouts/detail.html +2 -26
  111. data/_layouts/directory.html +9 -3
  112. data/_layouts/doc.html +5 -4
  113. data/_layouts/download.html +2 -2
  114. data/_layouts/events.html +1 -0
  115. data/_layouts/feed.html +3 -3
  116. data/_layouts/home.html +4 -1
  117. data/_layouts/integrations.html +1 -0
  118. data/_layouts/jobs.html +1 -0
  119. data/_layouts/llms-full.html +2 -2
  120. data/_layouts/llms.html +8 -5
  121. data/_layouts/page.html +5 -0
  122. data/_layouts/portfolio.html +1 -0
  123. data/_layouts/reference.html +4 -2
  124. data/_layouts/resume.html +3 -2
  125. data/_layouts/search.html +2 -2
  126. data/_layouts/sponsors.html +1 -0
  127. data/_layouts/team.html +1 -0
  128. data/_layouts/twin.html +5 -2
  129. data/_sass/modootoday/_access.scss +6 -6
  130. data/_sass/modootoday/_core.scss +9 -4
  131. data/_sass/modootoday/_settings.scss +3 -0
  132. data/_sass/modootoday/_sheet.scss +4 -0
  133. data/_sass/modootoday/_site.scss +3 -0
  134. data/_sass/modootoday/base/_code.scss +21 -12
  135. data/_sass/modootoday/base/_prose.scss +18 -12
  136. data/_sass/modootoday/base/_table.scss +3 -6
  137. data/_sass/modootoday/blog/_article.scss +8 -3
  138. data/_sass/modootoday/blog/_cards.scss +13 -12
  139. data/_sass/modootoday/blog/_index.scss +2 -0
  140. data/_sass/modootoday/blog/_news.scss +1 -1
  141. data/_sass/modootoday/blog/_post.scss +1 -1
  142. data/_sass/modootoday/components/core/chrome/_breadcrumb.scss +7 -3
  143. data/_sass/modootoday/components/core/chrome/_header.scss +26 -0
  144. data/_sass/modootoday/components/core/chrome/_nav.scss +15 -20
  145. data/_sass/modootoday/components/core/chrome/_pagination.scss +12 -4
  146. data/_sass/modootoday/components/core/chrome/_theme-toggle.scss +2 -2
  147. data/_sass/modootoday/components/core/inline/_badge.scss +10 -6
  148. data/_sass/modootoday/components/core/inline/_callout.scss +5 -5
  149. data/_sass/modootoday/components/core/inline/_code-copy.scss +34 -8
  150. data/_sass/modootoday/components/core/inline/_code.scss +7 -5
  151. data/_sass/modootoday/components/core/inline/_cta.scss +6 -6
  152. data/_sass/modootoday/components/core/inline/_embed.scss +1 -1
  153. data/_sass/modootoday/components/core/inline/_figure.scss +5 -4
  154. data/_sass/modootoday/components/core/inline/_hero.scss +9 -5
  155. data/_sass/modootoday/components/core/inline/_kbd.scss +1 -1
  156. data/_sass/modootoday/components/core/inline/_reveal.scss +3 -1
  157. data/_sass/modootoday/components/doc/_sidebar.scss +29 -12
  158. data/_sass/modootoday/components/doc/_toc.scss +5 -4
  159. data/_sass/modootoday/components/figure/_figure-svg.scss +1 -1
  160. data/_sass/modootoday/components/filter/_filter.scss +14 -0
  161. data/_sass/modootoday/components/footer/_footer.scss +13 -0
  162. data/_sass/modootoday/components/search/_search.scss +23 -14
  163. data/_sass/modootoday/components/section/showcase/_card.scss +20 -11
  164. data/_sass/modootoday/components/section/showcase/_cta.scss +5 -3
  165. data/_sass/modootoday/components/section/showcase/_linkcards.scss +11 -7
  166. data/_sass/modootoday/components/section/showcase/_pricing.scss +19 -9
  167. data/_sass/modootoday/components/section/showcase/_quote.scss +4 -3
  168. data/_sass/modootoday/components/section/structure/_accordion.scss +7 -1
  169. data/_sass/modootoday/components/section/structure/_params.scss +1 -2
  170. data/_sass/modootoday/components/section/structure/_steps.scss +1 -1
  171. data/_sass/modootoday/components/section/structure/_tabs.scss +14 -6
  172. data/_sass/modootoday/components/section/structure/_timeline.scss +7 -1
  173. data/_sass/modootoday/components/table/_table.scss +65 -0
  174. data/_sass/modootoday/components/table-stack/_table-stack.scss +22 -0
  175. data/_sass/modootoday/components/visual/_visual.scss +9 -0
  176. data/_sass/modootoday/detail/_index.scss +3 -0
  177. data/_sass/modootoday/detail/_page.scss +2 -0
  178. data/_sass/modootoday/directory/_grid.scss +7 -0
  179. data/_sass/modootoday/directory/_index.scss +3 -0
  180. data/_sass/modootoday/docs-extra/_index.scss +3 -0
  181. data/_sass/modootoday/docs-extra/_page.scss +15 -10
  182. data/_sass/modootoday/hero/_index.scss +2 -0
  183. data/_sass/modootoday/hero/_layout.scss +10 -7
  184. data/_sass/modootoday/kit/_button.scss +5 -5
  185. data/_sass/modootoday/kit/_measure.scss +5 -0
  186. data/_sass/modootoday/layout/_shell.scss +7 -21
  187. data/_sass/modootoday/marketing/_index.scss +3 -0
  188. data/_sass/modootoday/marketing/_page.scss +11 -7
  189. data/_sass/modootoday/marketing/_pricing.scss +6 -5
  190. data/_sass/modootoday/pages/_actions.scss +5 -4
  191. data/_sass/modootoday/pages/_error.scss +7 -3
  192. data/_sass/modootoday/pages/_index.scss +3 -0
  193. data/_sass/modootoday/pages/_legal.scss +3 -3
  194. data/_sass/modootoday/pages/_search.scss +3 -1
  195. data/_sass/modootoday/registry/_hooks.scss +13 -0
  196. data/_sass/modootoday/resume/_index.scss +3 -0
  197. data/_sass/modootoday/resume/_page.scss +1 -1
  198. data/_sass/modootoday/tokens/_code-presets.scss +17 -0
  199. data/_sass/modootoday/tokens/_fonts.scss +17 -0
  200. data/_sass/modootoday/tokens/_merge.scss +4 -0
  201. data/_sass/modootoday/tokens/_primitive.scss +4 -2
  202. data/_sass/modootoday/tokens/_scale.scss +9 -0
  203. data/_sass/modootoday/tokens/_semantic.scss +18 -11
  204. data/_sass/modootoday/tools/_functions.scss +9 -0
  205. data/_sass/modootoday.scss +6 -2
  206. data/assets/css/modootoday/chrome/banner.scss +8 -0
  207. data/assets/css/modootoday/chrome/doc-nav.scss +8 -0
  208. data/assets/css/modootoday/chrome/footer.scss +8 -0
  209. data/assets/css/modootoday/{search.scss → chrome/search.scss} +1 -2
  210. data/assets/css/modootoday/{terminal.scss → chrome/terminal.scss} +1 -2
  211. data/assets/css/modootoday/content/code.scss +8 -0
  212. data/assets/css/modootoday/content/extras.scss +8 -0
  213. data/assets/css/modootoday/content/inline.scss +8 -0
  214. data/assets/css/modootoday/{lists.scss → content/lists.scss} +1 -2
  215. data/assets/css/modootoday/{loading.scss → content/loading.scss} +1 -2
  216. data/assets/css/modootoday/data/filter.scss +7 -0
  217. data/assets/css/modootoday/data/table-stack.scss +7 -0
  218. data/assets/css/modootoday/data/table.scss +7 -0
  219. data/assets/css/modootoday/docs/doc.scss +7 -0
  220. data/assets/css/modootoday/marketing/hero.scss +8 -0
  221. data/assets/css/modootoday/media/figure.scss +8 -0
  222. data/assets/css/modootoday/media/visual.scss +7 -0
  223. data/assets/css/modootoday/{bleed.scss → structure/bleed.scss} +1 -2
  224. data/assets/css/modootoday.scss +3 -2
  225. data/assets/js/modootoday/blog/share.js +34 -0
  226. data/assets/js/modootoday/chrome/menu.js +51 -0
  227. data/assets/js/modootoday/chrome/search-keys.js +56 -0
  228. data/assets/js/modootoday/chrome/search.js +112 -0
  229. data/assets/js/modootoday/chrome/theme-toggle.js +36 -0
  230. data/assets/js/modootoday/content/code-copy.js +59 -0
  231. data/assets/js/modootoday/content/scroll-region.js +27 -0
  232. data/assets/js/modootoday/data/filter-chips.js +30 -0
  233. data/assets/js/modootoday/data/filter.js +62 -0
  234. data/assets/js/modootoday/data/table-stack.js +60 -0
  235. data/assets/js/modootoday/dom/config.js +32 -0
  236. data/assets/js/modootoday/structure/accordion.js +25 -0
  237. data/assets/js/modootoday/structure/tabs.js +51 -0
  238. data/assets/js/modootoday/text/normalize.js +28 -0
  239. data/assets/js/modootoday/theme/current.js +38 -0
  240. data/exe/modootoday-stubs +7 -0
  241. data/i18n/ar.yml +2 -1
  242. data/i18n/de.yml +2 -1
  243. data/i18n/el.yml +2 -1
  244. data/i18n/en.yml +2 -1
  245. data/i18n/es.yml +2 -1
  246. data/i18n/fa.yml +2 -1
  247. data/i18n/fr.yml +2 -1
  248. data/i18n/id.yml +2 -1
  249. data/i18n/it.yml +2 -1
  250. data/i18n/ja.yml +3 -2
  251. data/i18n/ko.yml +3 -2
  252. data/i18n/languages.yml +2 -1
  253. data/i18n/ml.yml +2 -1
  254. data/i18n/pl.yml +2 -1
  255. data/i18n/pt-BR.yml +2 -1
  256. data/i18n/ro.yml +2 -1
  257. data/i18n/ru.yml +2 -1
  258. data/i18n/th.yml +2 -1
  259. data/i18n/tr.yml +2 -1
  260. data/i18n/uk.yml +2 -1
  261. data/i18n/ur-Latn.yml +2 -1
  262. data/i18n/vi.yml +2 -1
  263. data/i18n/zh-CN.yml +3 -2
  264. data/i18n/zh-TW.yml +3 -2
  265. data/lib/jekyll-theme-modootoday.rb +14 -6
  266. data/lib/modootoday/check/build/aliases.rb +79 -0
  267. data/lib/modootoday/check/{build_output.rb → build/build_output.rb} +13 -3
  268. data/lib/modootoday/check/build/byte_exact.rb +55 -0
  269. data/lib/modootoday/check/build/records.rb +39 -0
  270. data/lib/modootoday/check/build/site_assets.rb +59 -0
  271. data/lib/modootoday/check/{structured_data.rb → build/structured_data.rb} +10 -1
  272. data/lib/modootoday/check/build/term_sets.rb +46 -0
  273. data/lib/modootoday/check/build/third_party.rb +33 -0
  274. data/lib/modootoday/check/build/twins.rb +98 -0
  275. data/lib/modootoday/check/cli.rb +7 -5
  276. data/lib/modootoday/check/config/keys/appearance/chrome.rb +13 -0
  277. data/lib/modootoday/check/config/keys/appearance/color_scheme.rb +10 -0
  278. data/lib/modootoday/check/config/keys/appearance/components.rb +13 -0
  279. data/lib/modootoday/check/config/keys/appearance/switches.rb +15 -0
  280. data/lib/modootoday/check/config/keys/appearance/tokens.rb +31 -0
  281. data/lib/modootoday/check/config/keys/pages/content.rb +25 -0
  282. data/lib/modootoday/check/config/keys/pages/edit_url.rb +10 -0
  283. data/lib/modootoday/check/config/keys/pages/languages.rb +17 -0
  284. data/lib/modootoday/check/config/keys/pages/search.rb +47 -0
  285. data/lib/modootoday/check/config/keys/pages/twins.rb +30 -0
  286. data/lib/modootoday/check/config/keys/serving/csp.rb +9 -0
  287. data/lib/modootoday/check/config/keys/serving/delivery.rb +59 -0
  288. data/lib/modootoday/check/config/keys.rb +18 -0
  289. data/lib/modootoday/check/{renderers.rb → config/renderers.rb} +2 -51
  290. data/lib/modootoday/check/config/schema.rb +23 -0
  291. data/lib/modootoday/check/config/site_config.rb +25 -0
  292. data/lib/modootoday/check/config/source_mode.rb +18 -0
  293. data/lib/modootoday/check/config/validate.rb +47 -0
  294. data/lib/modootoday/check/context.rb +11 -5
  295. data/lib/modootoday/check/layouts/directory.rb +10 -2
  296. data/lib/modootoday/check/layouts/docs_extra.rb +3 -3
  297. data/lib/modootoday/check/layouts/profile.rb +21 -0
  298. data/lib/modootoday/check/layouts/shells.rb +2 -0
  299. data/lib/modootoday/check/layouts.rb +5 -1
  300. data/lib/modootoday/check/native/collections.rb +47 -0
  301. data/lib/modootoday/check/native/layouts.rb +43 -0
  302. data/lib/modootoday/check/native/sources.rb +27 -0
  303. data/lib/modootoday/check/{a11y → page/a11y}/new_window.rb +2 -3
  304. data/lib/modootoday/check/{component_rules.rb → page/component_rules.rb} +1 -1
  305. data/lib/modootoday/check/page/filter.rb +63 -0
  306. data/lib/modootoday/check/page/hero_script.rb +39 -0
  307. data/lib/modootoday/check/page/math_notation.rb +36 -0
  308. data/lib/modootoday/check/{page_sections.rb → page/page_sections.rb} +5 -3
  309. data/lib/modootoday/check/{page_syntax.rb → page/page_syntax.rb} +4 -1
  310. data/lib/modootoday/check/{pages.rb → page/pages.rb} +11 -0
  311. data/lib/modootoday/check/{i18n.rb → registry/i18n.rb} +8 -30
  312. data/lib/modootoday/check/registry/i18n_pages.rb +80 -0
  313. data/lib/modootoday/check/{registry.rb → registry/registry.rb} +1 -1
  314. data/lib/modootoday/check/source/site_hook.rb +65 -0
  315. data/lib/modootoday/check.rb +29 -15
  316. data/lib/modootoday/i18n/page_lang.rb +56 -0
  317. data/lib/modootoday/i18n/source_rev.rb +26 -0
  318. data/lib/modootoday/i18n.rb +6 -0
  319. data/lib/modootoday/markdown.rb +46 -0
  320. data/lib/modootoday/schema/compat/minima.yml +8 -0
  321. data/lib/modootoday/schema/compat/minimal-mistakes.yml +16 -0
  322. data/lib/modootoday/schema/rules.rb +1 -0
  323. data/lib/modootoday/stubs/aliases.rb +61 -0
  324. data/lib/modootoday/stubs/cli.rb +77 -0
  325. data/lib/modootoday/stubs/page.rb +19 -0
  326. data/lib/modootoday/stubs/plan.rb +43 -0
  327. data/lib/modootoday/stubs/records.rb +101 -0
  328. data/lib/modootoday/stubs/report.rb +31 -0
  329. data/lib/modootoday/stubs/source.rb +87 -0
  330. data/lib/modootoday/stubs/twins.rb +40 -0
  331. data/lib/modootoday/stubs/writer.rb +19 -0
  332. data/lib/modootoday/stubs.rb +24 -0
  333. metadata +158 -43
  334. data/assets/css/modootoday/doc.scss +0 -10
  335. data/assets/css/modootoday/figure.scss +0 -8
  336. data/assets/js/modootoday/accordion.js +0 -13
  337. data/assets/js/modootoday/code-copy.js +0 -29
  338. data/assets/js/modootoday/menu.js +0 -19
  339. data/assets/js/modootoday/scroll-region.js +0 -14
  340. data/assets/js/modootoday/search-keys.js +0 -18
  341. data/assets/js/modootoday/search.js +0 -31
  342. data/assets/js/modootoday/share.js +0 -16
  343. data/assets/js/modootoday/tabs.js +0 -26
  344. data/assets/js/modootoday/theme-toggle.js +0 -17
  345. data/lib/modootoday/check/markdown.rb +0 -39
  346. data/lib/modootoday/check/site_config.rb +0 -88
  347. data/lib/modootoday/check/twins.rb +0 -69
  348. /data/assets/js/modootoday/{theme-init.js → chrome/theme-init.js} +0 -0
  349. /data/lib/modootoday/check/{built_parts.rb → build/built_parts.rb} +0 -0
  350. /data/lib/modootoday/check/{blog.rb → layouts/blog.rb} +0 -0
  351. /data/lib/modootoday/check/{a11y → page/a11y}/content.rb +0 -0
  352. /data/lib/modootoday/check/{a11y → page/a11y}/illustration.rb +0 -0
  353. /data/lib/modootoday/check/{page_values.rb → page/page_values.rb} +0 -0
  354. /data/lib/modootoday/check/{slots.rb → page/slots.rb} +0 -0
  355. /data/lib/modootoday/check/{gh_render.rb → source/gh_render.rb} +0 -0
  356. /data/lib/modootoday/check/{github_pages.rb → source/github_pages.rb} +0 -0
  357. /data/lib/modootoday/check/{stylesheets.rb → source/stylesheets.rb} +0 -0
@@ -1,11 +1,15 @@
1
- // Hero: everything before the first ## when sections: is set.
1
+ // Hero: everything before the first ## when sections: is set. The title size is the hero-title-size hook.
2
2
  @include mt-layer(components) {
3
- .mt-hero { position: relative; padding: 2rem 0 1rem; }
4
- .mt-hero h1 { font-size: unquote("clamp(2.25rem, 1.5rem + 3vw, 3.5rem)"); line-height: 1.08; letter-spacing: -.035em; font-weight: 750; margin-bottom: 1.25rem; }
5
- .mt-hero > p:first-of-type { font-size: 1.2rem; line-height: 1.6; color: mt(muted-foreground); max-width: 40rem; }
3
+ .mt-hero { position: relative; clear: both; padding: 2rem 0 1rem; }
4
+ .mt-hero h1 { font-size: mt-hook(hero-title-size); line-height: calc(1em + .5rem); letter-spacing: -.04em; font-weight: 600; margin-bottom: 1.25rem;
5
+ overflow-wrap: break-word; }
6
+ .mt-hero h1:is(:lang(ko), :lang(ja), :lang(zh)) { letter-spacing: 0; }
7
+ .mt-hero > p:first-of-type { font-size: mt-size(lg); line-height: mt-leading(lg); color: mt(muted-foreground); max-width: 36rem; }
8
+ .mt-hero .mt-actions > a { height: 3rem; padding: 0 1.5rem; }
6
9
  .mt-section { padding: mt(space-section) 0 0; }
7
10
  .mt-section > h2:first-child { margin-top: 0; }
8
- // decor: an aria-hidden ornament in the top end corner; it never takes clicks.
11
+ // decor: an aria-hidden ornament in the top end corner; it never takes clicks. Narrow columns have no free corner.
9
12
  .mt-has-decor { position: relative; }
10
13
  .mt-section-decor { position: absolute; inset-block-start: 0; inset-inline-end: 0; pointer-events: none; }
14
+ @media (max-width: 47.99rem) { .mt-section-decor { display: none; } }
11
15
  }
@@ -2,5 +2,5 @@
2
2
  @include mt-layer(components) {
3
3
  .mt-kbd { white-space: nowrap; font: inherit; }
4
4
  .mt-kbd kbd { font-family: mt(font-mono); font-size: .8em; padding: .1em .45em; border: 1px solid mt(border);
5
- border-bottom-width: 2px; border-radius: var(--mt-p-radius-sm); background: mt(muted); box-shadow: mt(shadow-sm); color: mt(foreground); }
5
+ border-radius: var(--mt-p-radius-sm); background: mt(muted); color: mt(foreground); }
6
6
  }
@@ -1,10 +1,12 @@
1
1
  // Scroll reveal: .mt-reveal (reveal: true on a section or hero:). CSS only, no script.
2
2
  // It runs only where scroll-driven animations exist and the reader allows motion; otherwise content is shown as is.
3
+ // No backwards fill: below the viewport a section keeps full opacity, so a page that is never scrolled (print, a
4
+ // full-page capture, a reader view) shows it; it turns transparent only as it starts to enter, where nothing is seen.
3
5
  @include mt-layer(components) {
4
6
  @supports (animation-timeline: view()) {
5
7
  @media screen and (prefers-reduced-motion: no-preference) {
6
8
  @keyframes mt-reveal { from { opacity: 0; translate: 0 1.5rem; } to { opacity: 1; translate: none; } }
7
- .mt-reveal { animation: mt-reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
9
+ .mt-reveal { animation: mt-reveal linear forwards; animation-timeline: view(); animation-range: entry 0% entry 60%; }
8
10
  }
9
11
  }
10
12
  }
@@ -1,31 +1,48 @@
1
1
  // Doc sidebar from grouped nav: a sticky column from 64rem (aside.mt-doc-nav), a collapsed <details> below it. The sticky column rule is shared with the TOC in layout/_shell.scss.
2
- // With a sidebar the header drops the inline copies of group links (.mt-nav-flat), so narrow headers stay short.
2
+ // Columns come from hooks (registry/_hooks.scss): sidebar-width, the text measure, toc-width from 80rem, doc-gap between.
3
3
  @include mt-layer(components) {
4
- .mt-sidebar { font-size: .9rem; }
4
+ .mt-sidebar { font-size: mt-size(sm); line-height: mt-leading(sm); }
5
5
  .mt-sidebar ul { list-style: none; margin: 0; padding: 0; }
6
- .mt-sidebar a { display: block; padding: .3rem .6rem; border-radius: mt(radius); color: mt(muted-foreground); text-decoration: none; }
6
+ .mt-sidebar a { display: flex; align-items: center; min-height: 2rem; padding: 0 .5rem; border-radius: mt(radius); color: mt(muted-foreground); text-decoration: none; }
7
7
  .mt-sidebar a:hover, .mt-sidebar [aria-current] { color: mt(foreground); background: mt(accent); }
8
- .mt-sidebar [aria-current] { font-weight: 600; }
9
- .mt-sidebar-group { margin-top: 1rem; }
8
+ .mt-sidebar [aria-current] { font-weight: 500; }
9
+ .mt-sidebar-group { margin-top: 1.25rem; }
10
10
  .mt-sidebar summary { cursor: pointer; }
11
- .mt-sidebar ul ul summary { padding: .3rem .6rem; color: mt(muted-foreground); }
11
+ .mt-sidebar ul ul summary { padding: .375rem .5rem; color: mt(muted-foreground); }
12
12
  .mt-sidebar ul ul { padding-inline-start: .75rem; }
13
- .mt-sidebar-title { display: list-item; padding: 0 .6rem .3rem; font-size: .75rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
14
- .mt-doc-nav, .mt-body:has(.mt-doc-nav) .mt-nav-flat { display: none; }
13
+ // The group title is a summary (a 28px target): item size at weight 600 in the text colour, so it reads above its
14
+ // links, with a chevron at the end in place of the small native marker.
15
+ .mt-sidebar-title { display: flex; align-items: center; justify-content: space-between; padding: .25rem .5rem; list-style: none;
16
+ font-weight: 600; color: mt(foreground); }
17
+ // The narrow-screen Guides and On this page disclosures (_toc.scss) take the same chevron.
18
+ .mt-sidebar-mobile > summary, .mt-toc-mobile > summary { display: flex; align-items: center; justify-content: space-between; list-style: none; }
19
+ :is(.mt-sidebar-title, .mt-sidebar-mobile > summary, .mt-toc-mobile > summary)::-webkit-details-marker { display: none; }
20
+ :is(.mt-sidebar-title, .mt-sidebar-mobile > summary, .mt-toc-mobile > summary)::after { content: ""; flex: none; width: .375rem; height: .375rem;
21
+ margin-inline-end: .25rem; border: solid mt(muted-foreground); border-width: 0 1.5px 1.5px 0; rotate: -45deg; }
22
+ [dir="rtl"] :is(.mt-sidebar-title, .mt-sidebar-mobile > summary, .mt-toc-mobile > summary)::after { rotate: 135deg; }
23
+ [open] > :is(.mt-sidebar-title, .mt-sidebar-mobile > summary, .mt-toc-mobile > summary)::after { rotate: 45deg; }
24
+ // The skip link targets the text column past the sidebar (layouts/doc.html); like main, it shows no ring.
25
+ .mt-doc-main:focus { outline: none; }
26
+ .mt-doc-nav { display: none; }
15
27
  .mt-sidebar-mobile { margin: 0 0 1rem; border: 1px solid mt(border); border-radius: mt(radius); background: mt(muted); font-size: .875rem; }
16
28
  .mt-sidebar-mobile > summary { cursor: pointer; padding: .55rem .85rem; font-weight: 600; }
17
29
  .mt-sidebar-mobile > .mt-sidebar { padding: 0 .5rem .6rem; max-height: 60vh; overflow-y: auto; }
30
+ // A page with a sidebar widens header, main and footer to doc-container.
31
+ .mt-body:has(.mt-has-sidebar) :is(.mt-header-inner,.mt-main,.mt-footer-inner) { max-width: mt-hook(doc-container); }
18
32
  @media (min-width: 64rem) {
19
33
  .mt-sidebar-mobile, .mt-has-sidebar .mt-doc-aside { display: none; }
20
- .mt-doc-layout.mt-has-sidebar { display: grid; grid-template-columns: 12rem minmax(0, #{mt(measure)}); gap: 3rem; max-width: none; }
34
+ // The TOC (grid-column 3 from 80rem) gets an implicit column of toc-width.
35
+ .mt-doc-layout.mt-has-sidebar { display: grid; grid-template-columns: #{mt-hook(sidebar-width)} minmax(0, #{mt(measure)}); grid-auto-columns: mt-hook(toc-width); gap: mt-hook(doc-gap); max-width: none; }
21
36
  .mt-has-sidebar .mt-doc-nav { display: block; }
22
37
  .mt-has-sidebar .mt-toc-mobile { display: block; }
23
- .mt-doc-layout.mt-has-sidebar ~ * { max-width: mt(measure); margin-inline-start: 15rem; }
38
+ // Page meta, pager and back-to-top start on the text column, by the same formula at both breakpoints.
39
+ .mt-doc-layout.mt-has-sidebar ~ * { max-width: mt(measure); margin-inline-start: calc(#{mt-hook(sidebar-width)} + #{mt-hook(doc-gap)}); }
24
40
  }
25
41
  @media (min-width: 80rem) {
26
- .mt-has-sidebar.mt-has-toc { grid-template-columns: 12rem minmax(0, 1fr) 12rem; gap: 2.5rem; }
42
+ // toc: false gives the text column the TOC's track (a landing page such as the docs home).
43
+ .mt-doc-layout.mt-has-sidebar.mt-toc-off { grid-template-columns: #{mt-hook(sidebar-width)} minmax(0, calc(#{mt(measure)} + #{mt-hook(doc-gap)} + #{mt-hook(toc-width)})); }
44
+ .mt-doc-layout.mt-toc-off ~ * { max-width: calc(#{mt(measure)} + #{mt-hook(doc-gap)} + #{mt-hook(toc-width)}); }
27
45
  .mt-has-sidebar .mt-doc-aside { display: block; grid-column: 3; grid-row: 1; }
28
46
  .mt-has-sidebar .mt-toc-mobile { display: none; }
29
- .mt-doc-layout.mt-has-sidebar ~ * { margin-inline-start: 14.5rem; }
30
47
  }
31
48
  }
@@ -1,19 +1,20 @@
1
1
  // "On this page": a sticky right column from 64rem (aside > nav.mt-toc), a collapsed <details> below it.
2
2
  @include mt-layer(components) {
3
- .mt-toc { --mt-toc-indent: .85rem; font-size: .875rem; }
4
- .mt-toc-title { margin: 0 0 .6rem; font-size: .75rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: mt(foreground); }
3
+ .mt-toc { --mt-toc-indent: .85rem; font-size: mt-size(sm); line-height: mt-leading(sm); }
4
+ .mt-toc-title { margin: 0 0 .5rem; font-weight: 500; color: mt(foreground); }
5
5
  .mt-toc ol, .mt-toc-mobile ol { list-style: none; margin: 0; padding: 0; }
6
6
  .mt-toc ol { border-inline-start: 1px solid mt(border); }
7
7
  .mt-toc li, .mt-toc-mobile li { margin: 0; }
8
8
  .mt-toc .mt-toc-h3, .mt-toc-mobile .mt-toc-h3 { padding-inline-start: var(--mt-toc-indent); }
9
- .mt-toc a, .mt-toc-mobile a { display: block; min-height: 24px; padding: .2rem 0 .2rem .85rem; line-height: 1.45; color: mt(muted-foreground); text-decoration: none; }
9
+ .mt-toc a, .mt-toc-mobile a { display: block; padding: .25rem 0 .25rem .85rem; line-height: mt-leading(sm); color: mt(muted-foreground); text-decoration: none; }
10
10
  .mt-toc a { margin-inline-start: -1px; border-inline-start: 1px solid transparent; }
11
11
  .mt-toc a:hover, .mt-toc-mobile a:hover { color: mt(foreground); border-inline-start-color: mt(muted-foreground); }
12
+ // The column scrolls (overflow-y: auto), which would clip an outer ring.
13
+ .mt-toc a:focus-visible { outline-offset: -2px; }
12
14
  .mt-toc-mobile { margin: 0 0 1.5rem; border: 1px solid mt(border); border-radius: mt(radius); background: mt(muted); font-size: .875rem; }
13
15
  .mt-toc-mobile > summary { cursor: pointer; padding: .55rem .85rem; font-weight: 600; }
14
16
  .mt-toc-mobile > ol { padding: 0 .5rem .6rem 0; max-height: 50vh; overflow-y: auto; }
15
17
  // The sticky column lists h2 only, so long pages stay scannable; the collapsed mobile list keeps h3 too.
16
18
  .mt-doc-aside .mt-toc .mt-toc-h3 { display: none; }
17
- .mt-doc-aside .mt-toc a { padding-top: .3rem; padding-bottom: .3rem; }
18
19
  @media (min-width: 64rem) { .mt-toc-mobile { display: none; } }
19
20
  }
@@ -5,7 +5,7 @@
5
5
  // Narrow screens: the image keeps --mt-figure-min-width and div.mt-figure-scroll (focusable, labelled) scrolls sideways.
6
6
  @include mt-layer(components) {
7
7
  :where(:root) { --mt-img-filter-dark: brightness(.85) contrast(1.05) saturate(.9); --mt-diagram-filter-dark: invert(.9) hue-rotate(180deg) var(--mt-img-filter-dark); --mt-figure-min-width: 32rem; }
8
- .mt-figure-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; border-radius: mt(radius-lg); }
8
+ .mt-figure-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; border-radius: mt(radius); }
9
9
  .mt-figure-svg img { width: 100%; max-width: none; min-width: var(--mt-figure-min-width); height: auto; }
10
10
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mt-figure-svg img:not(.mt-no-filter):not([src$="#light"]) { filter: var(--mt-diagram-filter-dark); } }
11
11
  [data-theme="dark"] .mt-figure-svg img:not(.mt-no-filter):not([src$="#light"]) { filter: var(--mt-diagram-filter-dark); }
@@ -0,0 +1,14 @@
1
+ // List and table filter (filter: on a section or page, filter_text: on a directory). filter.js reveals .mt-filter and sets
2
+ // hidden on the items it leaves out; the rule below keeps them hidden where a layout gives items their own display.
3
+ @include mt-layer(components) {
4
+ .mt-filter { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1rem 0; }
5
+ .mt-filter > input { font: inherit; font-size: .9375rem; min-height: 2.75rem; padding: 0 .75rem; flex: 1 1 14rem; max-width: 24rem;
6
+ border: 1px solid mt(border); border-radius: mt(radius); background: mt(background); color: mt(foreground); }
7
+ .mt-filter > output { font-size: .875rem; color: mt(muted-foreground); }
8
+ .mt-filter-chips { display: flex; flex-wrap: wrap; gap: .5rem; flex-basis: 100%; }
9
+ .mt-filter-chips > button { font: inherit; font-size: .875rem; font-weight: 600; min-height: 2.75rem; padding: 0 1rem; cursor: pointer;
10
+ border: 1px solid mt(border); border-radius: 999px; background: mt(background); color: mt(foreground); }
11
+ .mt-filter-chips > [aria-pressed="true"] { background: mt(foreground); border-color: mt(foreground); color: mt(background); }
12
+ [data-mt-filter] li[hidden], [data-mt-filter] tr[hidden] { display: none; }
13
+ @media (forced-colors: active) { .mt-filter-chips > [aria-pressed="true"] { forced-color-adjust: none; background: Highlight; color: HighlightText; } }
14
+ }
@@ -0,0 +1,13 @@
1
+ // Footer columns (modootoday/chrome/footer.html): as many 10rem link columns as fit, a 14/20 title and muted links.
2
+ // The footer sheet, linked when _data/nav/footer has columns.
3
+ @include mt-layer(components) {
4
+ // A wrapping column flex sized the grid at its min-content height (every column stacked), about 260px of blank space.
5
+ .mt-footer-inner:has(> .mt-footer-cols) { flex-flow: column nowrap; justify-content: flex-start; gap: 2rem; }
6
+ .mt-footer-cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); }
7
+ .mt-footer .mt-footer-title { margin: 0 0 .75rem; color: mt(foreground); font-size: mt-size(sm); line-height: mt-leading(sm); font-weight: 500; }
8
+ .mt-footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: mt-size(sm); line-height: mt-leading(sm); }
9
+ .mt-footer-cols li { margin: 0; }
10
+ .mt-footer-cols a { color: mt(muted-foreground); text-decoration: none; }
11
+ .mt-footer-cols a:hover { color: mt(foreground); text-decoration: underline; }
12
+ .mt-footer-copy { font-size: mt-size(xs); line-height: mt-leading(xs); }
13
+ }
@@ -1,36 +1,45 @@
1
1
  // Search box (header) and results list; needs a site /search.json (include modootoday/search.json).
2
+ // The box is always positioned, so the icon and the results stay anchored to the field at every width.
2
3
  @include mt-layer(components) {
3
4
  .mt-search { position: relative; margin-inline-start: auto; flex: none; }
4
- // Reserve the box from the first paint when scripting is on (search.js only wires it up), so the header does not jump.
5
+ // Reserve the box from the first paint when scripting is on (chrome/search-keys.js only shows it), so the header does not jump.
5
6
  @media (scripting: enabled) { .mt-search[hidden] { display: block; } }
6
- .mt-search > .mt-icon { position: absolute; inset-inline-start: .65rem; top: 1.125rem; translate: 0 -50%; color: mt(muted-foreground); pointer-events: none; }
7
- .mt-search input { font: inherit; font-size: .875rem; height: 2.25rem; padding: 0 .75rem; padding-inline-start: 2.1rem; border: 1px solid mt(border); border-radius: mt(radius);
8
- background: mt(muted); color: mt(foreground); width: 12rem; transition: border-color .15s, background-color .15s; }
7
+ .mt-search > .mt-icon { position: absolute; inset-inline-start: .75rem; top: 50%; translate: 0 -50%; color: mt(muted-foreground); pointer-events: none; }
8
+ .mt-search input { display: block; font: inherit; font-size: .875rem; height: 2.5rem; padding: 0 .75rem; padding-inline-start: 2.25rem; border: 1px solid mt(border); border-radius: mt(radius);
9
+ background: mt(muted); color: mt(foreground); width: 2.5rem; transition: border-color .15s, background-color .15s; }
9
10
  .mt-search input::placeholder { color: mt(muted-foreground); }
10
11
  .mt-search input:hover { border-color: mt(muted-foreground); }
11
12
  .mt-search input:focus-visible { outline-offset: 1px; background: mt(background); }
12
- .mt-search-results { position: absolute; inset-inline-end: 0; z-index: 30; list-style: none; margin: .4rem 0 0; padding: .35rem; width: 22rem; max-width: calc(100vw - 2rem);
13
+ .mt-search-results { position: absolute; inset-inline-end: 0; top: 100%; z-index: 30; list-style: none; margin: .4rem 0 0; padding: .35rem; width: 22rem; max-width: calc(100vw - 2rem);
13
14
  background: mt(card); color: mt(card-foreground); border: 1px solid mt(border); border-radius: mt(radius-lg); box-shadow: mt(shadow); }
14
15
  .mt-search-results:empty { display: none; }
15
16
  .mt-search-results li + li { margin-top: 0; }
16
- .mt-search-results a { display: block; padding: .4rem .6rem; border-radius: var(--mt-p-radius-sm); text-decoration: none; font-size: .9rem; }
17
- .mt-search-results a { color: mt(foreground); }
17
+ .mt-search-results a { display: block; padding: .4rem .6rem; border-radius: var(--mt-p-radius-sm); text-decoration: none; font-size: .9rem; color: mt(foreground); }
18
18
  .mt-search-title { display: block; font-weight: 600; }
19
+ // The accent fill was 1.1:1 on the popover; an underline carries the match, a light tint helps, and the word takes the
20
+ // text colour (muted snippet text is 4.3:1 on the tint).
21
+ .mt-search-results mark { background: color-mix(in srgb, #{mt(primary)} 14%, transparent); color: mt(foreground); font-weight: 600;
22
+ text-decoration: underline 1px; text-underline-offset: .2em; border-radius: 2px; }
19
23
  .mt-search-snippet { display: block; margin-top: .1rem; font-size: .8rem; line-height: 1.45; color: mt(muted-foreground);
20
24
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
25
+ // The ellipsis hides text but not an inline background, so a cut match would leave a tint chip past it.
26
+ .mt-search-snippet mark { background: none; }
21
27
  .mt-search-results a:hover, .mt-search-results a:focus { background: mt(accent); color: mt(accent-foreground); }
22
- @media (max-width: 47.99rem) { .mt-search { flex: 1 1 0; min-width: 0; } .mt-search input { width: 100%; padding-inline-end: .5rem; } .mt-search { position: static; }
23
- .mt-search-results { inset-inline: 1rem; top: 2.9rem; width: auto; max-width: none; } }
24
- // Narrow phones: search takes its own row under the title so the input stays usable next to the header buttons.
25
- @media (max-width: 29.99rem) { .mt-search { order: 9; flex: 1 0 100%; position: relative; }
26
- .mt-search-results { inset-inline: 0; top: 100%; } }
28
+ // Below 48rem a 2.5rem icon field; while it has focus it covers the header row, and the results hang from it.
29
+ @media (max-width: 47.99rem) {
30
+ .mt-search:not(:focus-within) ::placeholder { color: transparent; }
31
+ .mt-search:focus-within { position: absolute; z-index: 1; inset-inline: calc(var(--mt-gutter) + var(--mt-safe-left)); top: calc(var(--mt-safe-top) + (#{mt(header-height)} - 2.5rem) / 2); }
32
+ .mt-search:focus-within input { width: 100%; }
33
+ .mt-search-results { inset-inline: 0; width: auto; max-width: none; }
34
+ }
35
+ @media (min-width: 48rem) { .mt-search input { height: 2rem; width: 15rem; } }
27
36
  }
28
37
  @include mt-layer(components) {
29
- // 64–80rem: the one-line header is tight; let search shrink so it never overlaps the nav (WCAG 2.2 target-size).
38
+ // From 64rem the nav shares the row: let search shrink so it never overlaps the nav (WCAG 2.2 target-size).
30
39
  @media (min-width: 64rem) { .mt-search { flex: 0 1 15rem; min-width: 5rem; } .mt-search input { width: 100%; } }
31
40
  }
32
41
  // Coarse pointers and forced colors (here, not in core _access, because this sheet loads after core).
33
42
  @include mt-layer(components) {
34
- @media (pointer: coarse) { .mt-search input { height: 2.75rem; font-size: 1rem; } }
43
+ @media (pointer: coarse) { .mt-search input { height: 2.75rem; min-width: 2.75rem; font-size: 1rem; } }
35
44
  @media (forced-colors: active) { .mt-search input { border: 1px solid ButtonText; } }
36
45
  }
@@ -1,20 +1,29 @@
1
1
  // Cards: c: features section, list items "- **Title** — description" (the dash is dropped in Liquid).
2
+ // The grid fits as many 16rem columns as the section holds; cols-<n> sets the count by the section's own width.
2
3
  @include mt-layer(components) {
3
- .mt-c-features > ul { --mt-card-padding: 1.25rem;
4
- list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
4
+ .mt-c-features { container-type: inline-size; }
5
+ .mt-c-features > ul { --mt-card-padding: 1.5rem;
6
+ list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
5
7
  .mt-c-features > ul > li { margin: 0; border: 1px solid mt(border); border-radius: mt(radius-lg); padding: var(--mt-card-padding);
6
- background: mt(card); color: mt(muted-foreground); box-shadow: mt(shadow-sm); font-size: .9375rem; line-height: 1.6;
7
- transition: border-color .15s, box-shadow .15s; }
8
+ background: mt(card); color: mt(muted-foreground); font-size: mt-size(sm); line-height: mt-leading(sm);
9
+ transition: border-color .15s; }
8
10
  .mt-c-features > ul > li code { white-space: nowrap; }
9
- .mt-c-features > ul > li:hover { border-color: color-mix(in srgb, #{mt(primary)} 40%, #{mt(border)}); box-shadow: mt(shadow); }
10
- .mt-c-features > ul > li > strong:first-child { display: block; margin-bottom: .35rem; color: mt(card-foreground); font-size: 1rem; }
11
+ .mt-c-features > ul > li:hover { border-color: mt(border-input); }
12
+ .mt-c-features > ul > li > strong:first-child { display: block; margin-bottom: .5rem; color: mt(card-foreground); font-size: mt-size(base);
13
+ line-height: 1.5rem; font-weight: 600; }
11
14
  // badge: bottom: a status badge (.mt-badge) written as a direct child of the item sits at the card's bottom edge.
12
15
  .mt-badge-bottom > ul > li:has(> .mt-badge) { position: relative; padding-block-end: calc(var(--mt-card-padding) + 2rem); }
13
16
  .mt-badge-bottom > ul > li > .mt-badge { position: absolute; inset-block-end: var(--mt-card-padding); inset-inline-start: var(--mt-card-padding); }
14
- @media (min-width: 48rem) {
15
- .mt-cols-2 > ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
16
- .mt-cols-3 > ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
17
- .mt-cols-4 > ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
17
+ // cols-<n> adds a track only once every track can be 16rem (n x 16rem + gaps), so no card is ever cramped; in two
18
+ // columns an odd last card of cols-3 spans the row instead of sitting alone.
19
+ .mt-c-features:is(.mt-cols-2, .mt-cols-3, .mt-cols-4) > ul { grid-template-columns: minmax(0, 1fr); }
20
+ @container (min-width: 33rem) {
21
+ .mt-c-features:is(.mt-cols-2, .mt-cols-3, .mt-cols-4) > ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
22
+ .mt-c-features.mt-cols-3 > ul > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
18
23
  }
19
- @media (min-width: 64rem) { .mt-cols-4 > ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
24
+ @container (min-width: 50rem) {
25
+ .mt-c-features.mt-cols-3 > ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
26
+ .mt-c-features.mt-cols-3 > ul > li:last-child:nth-child(odd) { grid-column: auto; }
27
+ }
28
+ @container (min-width: 67rem) { .mt-c-features.mt-cols-4 > ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
20
29
  }
@@ -1,7 +1,9 @@
1
- // c: cta sections: a centred, tinted panel around the heading and its action buttons (.mt-actions lives in core).
1
+ // c: cta sections: the heading and its action buttons (.mt-actions lives in core), flat like every other section.
2
+ // Centred on landing pages; a doc page keeps them on the text column's start edge under its usual h2 rule.
2
3
  @include mt-layer(components) {
3
- .mt-cta { margin-top: mt(space-section); padding: 2.5rem 2rem; text-align: center; border: 1px solid mt(border); border-radius: mt(radius-lg);
4
- background: radial-gradient(120% 140% at 50% 0%, color-mix(in srgb, #{mt(primary)} 10%, #{mt(background)}), #{mt(muted)}); }
4
+ .mt-cta { margin-top: mt(space-section); text-align: center; }
5
5
  .mt-cta > h2 { margin: 0 0 .5rem; }
6
6
  .mt-cta > .mt-actions { justify-content: center; margin-top: 1.25rem; }
7
+ .mt-doc .mt-cta { text-align: start; }
8
+ .mt-doc .mt-cta > .mt-actions { justify-content: flex-start; }
7
9
  }
@@ -1,12 +1,16 @@
1
- // Link cards: c: linkcards, list items "[Title](url) — description"; the whole card is one link target.
1
+ // Link cards: c: linkcards, list items "[Title](url) — description"; the whole card is one link target, so the focus
2
+ // ring goes round the card, not the title.
2
3
  @include mt-layer(components) {
3
- .mt-c-linkcards > ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
4
- .mt-c-linkcards > ul > li { position: relative; margin: 0; padding: 1.1rem 1.25rem; border: 1px solid mt(border); border-radius: mt(radius-lg);
5
- background: mt(card); color: mt(muted-foreground); font-size: .9375rem; transition: border-color .15s, box-shadow .15s; }
6
- .mt-c-linkcards > ul > li > a:first-child { display: block; margin-bottom: .25rem; color: mt(card-foreground); font-weight: 650; text-decoration: none; }
4
+ .mt-c-linkcards > ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
5
+ .mt-c-linkcards > ul > li { position: relative; margin: 0; padding: 1.5rem; border: 1px solid mt(border); border-radius: mt(radius-lg);
6
+ background: mt(card); color: mt(muted-foreground); font-size: mt-size(sm); line-height: mt-leading(sm); transition: border-color .15s; }
7
+ .mt-c-linkcards > ul > li > a:first-child { display: block; margin-bottom: .5rem; color: mt(card-foreground); font-size: mt-size(base);
8
+ line-height: 1.5rem; font-weight: 600; text-decoration: none; }
7
9
  .mt-c-linkcards > ul > li > a:first-child::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
8
10
  .mt-c-linkcards > ul > li > a:first-child::after { content: " →"; color: mt(primary); }
9
11
  [dir="rtl"] .mt-c-linkcards > ul > li > a:first-child::after { content: " ←"; }
10
- .mt-c-linkcards > ul > li:hover { border-color: mt(primary); box-shadow: mt(shadow); }
11
- .mt-c-linkcards > ul > li > a:first-child:focus-visible { outline: 2px solid mt(ring); outline-offset: 2px; border-radius: mt(radius); }
12
+ .mt-c-linkcards > ul > li:hover { border-color: mt(border-input); }
13
+ // Without :has() both rules drop and the link keeps its own ring.
14
+ .mt-c-linkcards > ul > li:has(> a:first-child:focus-visible) { outline: 2px solid mt(ring); outline-offset: 2px; }
15
+ .mt-c-linkcards > ul > li:has(> a:first-child:focus-visible) > a:first-child { outline: none; }
12
16
  }
@@ -1,12 +1,22 @@
1
- // Pricing: c: pricing; each ### is a plan card (price, feature list, link). recommended: <n> marks one plan in text.
1
+ // Pricing: c: pricing; each ### is a plan (price, feature list, link). recommended: <n> marks one plan in text.
2
+ // One bordered grid with hairline dividers (the 1px gap shows the border colour); a narrow grid stacks the plans.
2
3
  @include mt-layer(components) {
3
- .mt-plans { display: grid; gap: 1rem; margin-top: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); align-items: stretch; }
4
- .mt-plan { position: relative; display: flex; flex-direction: column; padding: 1.5rem; border: 1px solid mt(border); border-radius: mt(radius-lg); background: mt(card); box-shadow: mt(shadow-sm); }
5
- .mt-plan h3 { margin: 0 0 .5rem; font-size: 1.0625rem; }
6
- .mt-plan h3 + p { margin: 0 0 1rem; color: mt(muted-foreground); }
7
- .mt-plan h3 + p strong { color: mt(card-foreground); font-size: 1.875rem; font-weight: 750; letter-spacing: -.02em; }
8
- .mt-plan ul { flex: 1; margin: 0 0 1.25rem; padding-inline-start: 1.1rem; color: mt(muted-foreground); font-size: .9375rem; }
4
+ .mt-plans { display: grid; gap: 1px; margin-top: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
5
+ align-items: stretch; background: mt(border); border: 1px solid mt(border); border-radius: mt(radius-lg); overflow: hidden; }
6
+ .mt-c-pricing, .mt-mk-pricing-box { container-type: inline-size; }
7
+ .mt-plan { position: relative; display: flex; flex-direction: column; padding: 1.5rem; background: mt(muted); }
8
+ .mt-plan h3 { margin: 0 0 .5rem; font-size: mt-size(base); line-height: 1.5rem; }
9
+ .mt-plan h3 + p { margin: 0 0 1rem; color: mt(muted-foreground); font-family: mt(font-mono); font-size: mt-size(sm); }
10
+ .mt-plan h3 + p strong { color: mt(card-foreground); font-family: mt(font-sans); font-size: mt-size(4xl); line-height: mt-leading(4xl);
11
+ font-weight: 600; letter-spacing: -.02em; }
12
+ .mt-plan ul { flex: 1; margin: 0 0 1.5rem; padding-inline-start: 1.1rem; color: mt(muted-foreground); font-size: mt-size(sm); line-height: mt-leading(sm); }
13
+ .mt-plan li { padding-block: .375rem; margin: 0; }
9
14
  .mt-plan .mt-actions { margin-top: auto; }
10
- .mt-plan-recommended { border: 2px solid mt(primary); box-shadow: mt(shadow); }
11
- .mt-plan-flag { align-self: flex-start; margin-bottom: .75rem; padding: .1rem .6rem; border-radius: 999px; background: mt(primary); color: mt(primary-foreground); font-size: .75rem; font-weight: 600; }
15
+ .mt-plan .mt-actions > a { flex: 1; justify-content: center; }
16
+ .mt-plan-recommended { background: mt(card); }
17
+ .mt-plan-recommended > :is(h2, h3) { padding-inline-end: 7rem; }
18
+ .mt-plan-flag { position: absolute; inset-block-start: 1.5rem; inset-inline-end: 1.5rem; margin: 0; padding: .125rem .5rem; border-radius: 999px;
19
+ background: mt(accent); color: mt(foreground); font-size: mt-size(xs); line-height: mt-leading(xs); font-weight: 500; }
20
+ .mt-plans + p { margin-top: 1.5rem; }
21
+ @container (max-width: 44rem) { .mt-plans { grid-template-columns: minmax(0, 1fr); } }
12
22
  }
@@ -1,7 +1,8 @@
1
1
  // Quote: c: quote; a quote whose last paragraph starts with "— " becomes figure > blockquote + figcaption.
2
+ // Flat like a body quote (the same 2px start rule, no box or fill), set larger with the attribution below.
2
3
  @include mt-layer(components) {
3
- .mt-quote { margin: 1.5rem 0; padding: 1.5rem 1.75rem; border: 1px solid mt(border); border-radius: mt(radius-lg); background: mt(card); }
4
- .mt-quote blockquote { margin: 0; padding: 0; border: 0; color: mt(card-foreground); font-size: 1.125rem; line-height: 1.6; }
4
+ .mt-quote { margin: 2rem 0; padding-inline-start: 1.5rem; border-inline-start: 2px solid mt(border); }
5
+ .mt-quote blockquote { margin: 0; padding: 0; border: 0; color: mt(foreground); font-size: mt-size(lg); line-height: mt-leading(lg); }
5
6
  .mt-quote blockquote > :last-child { margin-bottom: 0; }
6
- .mt-quote figcaption { margin-top: 1rem; color: mt(muted-foreground); font-size: .875rem; font-weight: 600; }
7
+ .mt-quote figcaption { margin-top: 1rem; color: mt(muted-foreground); font-size: mt-size(sm); line-height: mt-leading(sm); font-weight: 500; }
7
8
  }
@@ -1,4 +1,4 @@
1
- // Accordion: sections with `c: accordion`; each `###` becomes a disclosure (assets/js/modootoday/accordion.js).
1
+ // Accordion: sections with `c: accordion`; each `###` becomes a disclosure (assets/js/modootoday/structure/accordion.js).
2
2
  @include mt-layer(components) {
3
3
  .mt-c-accordion h3 { margin: 0; border-top: 1px solid mt(border); font-size: 1rem; }
4
4
  .mt-c-accordion > h2 + h3 { margin-top: 1.25rem; }
@@ -13,3 +13,9 @@
13
13
  .mt-accordion-panel[hidden] { display: none; }
14
14
  .mt-c-accordion { border-bottom: 1px solid mt(border); }
15
15
  }
16
+ // Touch target and forced colors last, so they win at equal specificity (the shell's part is _access.scss).
17
+ @include mt-layer(components) {
18
+ @media (pointer: coarse) {
19
+ .mt-accordion-trigger { min-height: 2.75rem; }
20
+ }
21
+ }
@@ -1,6 +1,5 @@
1
- // Parameter table: c: params, a GFM table (name, type, default, description); `required` in a cell becomes a badge.
1
+ // Parameter table: c: params, a GFM table (name, type, default, description), stacked below 40rem; `required` in a cell becomes a badge.
2
2
  @include mt-layer(components) {
3
- .mt-c-params table { font-size: .9375rem; }
4
3
  .mt-c-params td:first-child code { color: mt(primary); font-weight: 600; white-space: nowrap; }
5
4
  .mt-c-params td:nth-child(2) { color: mt(muted-foreground); font-family: mt(font-mono); font-size: .8125rem; }
6
5
  .mt-param-required { display: inline-block; padding: 0 .45rem; border: 1px solid color-mix(in srgb, #{mt(caution)} 50%, transparent); border-radius: 999px;
@@ -8,6 +8,6 @@
8
8
  .mt-c-steps > h3 ~ :not(h3) { padding-inline-start: 2.75rem; }
9
9
  .mt-c-steps > ol > li::before, .mt-c-steps > h3::before { content: counter(mt-step); position: absolute; inset-inline-start: 0; top: 0;
10
10
  width: 1.75rem; height: 1.75rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
11
- background: mt(muted); border: 1px solid mt(border); color: mt(foreground); font-size: .8rem; font-weight: 650; }
11
+ background: mt(muted); border: 1px solid mt(border); color: mt(foreground); font-size: mt-size(xs); font-weight: 600; }
12
12
  .mt-c-steps > h3 { margin-top: 1.5rem; line-height: 1.75rem; }
13
13
  }
@@ -1,11 +1,12 @@
1
1
  // The tablist scrolls sideways only: no negative margins or outer focus rings that would overflow it vertically.
2
- // Tabs (assets/js/modootoday/tabs.js): c: tabs, ### name + code block pairs → WAI-ARIA tabs.
2
+ // Tabs (assets/js/modootoday/structure/tabs.js): c: tabs, ### name + code block pairs → WAI-ARIA tabs. 40px tabs,
3
+ // 14/20 text, a 2px foreground bar under the selected one.
3
4
  @include mt-layer(components) {
4
- [role="tablist"] { display: flex; gap: .25rem; overflow: auto hidden; scrollbar-width: thin; box-shadow: inset 0 -1px mt(border); margin: 1.25rem 0 0; }
5
- [role="tab"] { font: inherit; font-size: .875rem; line-height: 1.5; font-weight: 500; white-space: nowrap; background: none; color: mt(muted-foreground);
6
- border: 0; border-bottom: 2px solid transparent; padding: .55rem .85rem; cursor: pointer; transition: color .15s; }
5
+ [role="tablist"] { display: flex; gap: 1rem; overflow: auto hidden; scrollbar-width: thin; box-shadow: inset 0 -1px mt(border); margin: 1.25rem 0 0; }
6
+ [role="tab"] { font: inherit; font-size: mt-size(sm); line-height: mt-leading(sm); font-weight: 500; white-space: nowrap; background: none; color: mt(muted-foreground);
7
+ border: 0; border-bottom: 2px solid transparent; padding: .625rem 0 .5rem; cursor: pointer; transition: color .15s; }
7
8
  [role="tab"]:hover { color: mt(foreground); }
8
- [role="tab"][aria-selected="true"] { color: mt(foreground); border-bottom-color: mt(primary); font-weight: 600; }
9
+ [role="tab"][aria-selected="true"] { color: mt(foreground); border-bottom-color: mt(foreground); }
9
10
  [role="tabpanel"] { margin-top: .75rem; }
10
11
  [role="tabpanel"] pre { margin-top: 0; }
11
12
  }
@@ -14,8 +15,15 @@
14
15
  @media (scripting: enabled) {
15
16
  @include mt-layer(components) {
16
17
  [data-tabs]:not(:has([role="tablist"])) {
17
- > h3:has(+ div, + pre) { font-size: .875rem; line-height: 1.5; padding: .55rem .85rem; margin: 1.25rem 0 0; border-bottom: 2px solid mt(primary); }
18
+ > h3:has(+ div, + pre) { font-size: mt-size(sm); line-height: mt-leading(sm); font-weight: 500; letter-spacing: normal;
19
+ padding: .625rem 0 .5rem; margin: 1.25rem 0 0; border-bottom: 2px solid mt(foreground); }
18
20
  > h3 ~ h3:has(+ div, + pre), > h3 ~ h3 + * { display: none; }
19
21
  }
20
22
  }
21
23
  }
24
+ // Touch target and forced colors last, so they win at equal specificity (the shell's part is _access.scss).
25
+ @include mt-layer(components) {
26
+ @media (pointer: coarse) {
27
+ [role="tab"] { min-height: 2.75rem; }
28
+ }
29
+ }
@@ -2,9 +2,15 @@
2
2
  @include mt-layer(components) {
3
3
  .mt-c-timeline { --mt-timeline-line: #{mt(border)}; --mt-timeline-dot: #{mt(primary)}; }
4
4
  .mt-c-timeline > h3, .mt-c-timeline > h3 ~ * { position: relative; margin-inline-start: .5rem; padding-inline-start: 1.5rem; border-inline-start: 2px solid var(--mt-timeline-line); }
5
- .mt-c-timeline > h3 { margin-bottom: 0; padding-top: 1.25rem; margin-top: 0; font-size: .8125rem; font-weight: 650; letter-spacing: .02em; color: mt(muted-foreground); font-family: mt(font-mono); }
5
+ .mt-c-timeline > h3 { margin-bottom: 0; padding-top: 1.25rem; margin-top: 0; font-size: .8125rem; font-weight: 600; letter-spacing: .02em; color: mt(muted-foreground); font-family: mt(font-mono); }
6
6
  .mt-c-timeline > h2 + h3 { margin-top: 1rem; }
7
7
  .mt-c-timeline > h3 ~ * { margin-top: 0; margin-bottom: 0; padding-bottom: .5rem; }
8
8
  .mt-c-timeline > h3::before { content: ""; position: absolute; inset-inline-start: -.45rem; top: 1.55rem;
9
9
  width: .75rem; height: .75rem; border-radius: 50%; background: var(--mt-timeline-dot); box-shadow: 0 0 0 3px #{mt(background)}; }
10
10
  }
11
+ // Forced colours drop backgrounds: the dot is drawn in CanvasText instead.
12
+ @include mt-layer(components) {
13
+ @media (forced-colors: active) {
14
+ .mt-c-timeline > h3::before { forced-color-adjust: none; background: CanvasText; box-shadow: none; }
15
+ }
16
+ }
@@ -0,0 +1,65 @@
1
+ // Body tables (div.mt-table > table, from links/content.html): table sheet, linked by pages whose body has a <table.
2
+ // Short tables keep column floors and scroll past them; 4+ column tables get a wider budget and a sticky first column.
3
+ // Below 40rem table-stack.js stacks a table that does not fit (table-stack sheet).
4
+ @include mt-layer(components) {
5
+ // Local gradients cover the shades until the region scrolls, so a shade shows only on the side with more content.
6
+ .mt-table { --mt-table-shade: color-mix(in srgb, #{mt(foreground)} 18%, transparent); overflow-x: auto; overscroll-behavior-inline: contain;
7
+ margin: 0 0 1.5rem;
8
+ background: linear-gradient(to right, #{mt(background)} 40%, transparent) left / 1.5rem 100% no-repeat local,
9
+ linear-gradient(to left, #{mt(background)} 40%, transparent) right / 1.5rem 100% no-repeat local,
10
+ radial-gradient(farthest-side at 0 50%, var(--mt-table-shade), transparent) left / .5rem 100% no-repeat scroll,
11
+ radial-gradient(farthest-side at 100% 50%, var(--mt-table-shade), transparent) right / .5rem 100% no-repeat scroll; }
12
+ .mt-table > table { display: table; width: max-content; max-inline-size: 100%; overflow: visible; margin: 0;
13
+ font-size: mt-size(sm); line-height: mt-leading(sm); font-variant-numeric: tabular-nums; }
14
+ .mt-table :is(th, td) { padding: .5rem 1rem; border-bottom: 1px solid mt(border); overflow-wrap: break-word; }
15
+ .mt-table :is(th, td):first-child { padding-inline-start: 0; }
16
+ .mt-table :is(th, td):last-child { padding-inline-end: 0; }
17
+ .mt-table th { font-weight: 500; color: mt(muted-foreground); white-space: nowrap; }
18
+ .mt-table td { text-wrap: pretty; }
19
+ // Keys never break; numbers and aligned cells stay on one line.
20
+ .mt-table td:first-child code, .mt-table td:is([style*="right"], [style*="center"]) { white-space: nowrap; }
21
+ // 2-3 columns: later cells may break long words, but never below 5rem (the last one 9rem); then the region scrolls.
22
+ // From 40rem only a word longer than its column breaks (break-word keeps min-content), so a short key never splits.
23
+ .mt-table > table:not(:has(th:nth-child(4))) td:not(:first-child) { min-inline-size: 5rem; }
24
+ @media (min-width: 40rem) { .mt-table > table:not(:has(th:nth-child(4))) td:not(:first-child) code { overflow-wrap: break-word; } }
25
+ @media (max-width: 39.99rem) {
26
+ .mt-table > table:not(:has(th:nth-child(4))) td:not(:first-child),
27
+ .mt-table > table:not(:has(th:nth-child(4))) td:not(:first-child) * { overflow-wrap: anywhere; }
28
+ }
29
+ .mt-table > table:not(:has(th:nth-child(4))) td:last-child:not(:first-child) { min-inline-size: 9rem; }
30
+ // 4+ columns: the table may grow to about 9rem per column and the first column stays in view.
31
+ .mt-table > table:has(th:nth-child(4)) { max-inline-size: unquote("max(100%, 36rem)"); }
32
+ .mt-table > table:has(th:nth-child(5)) { max-inline-size: unquote("max(100%, 45rem)"); }
33
+ .mt-table > table:has(th:nth-child(6)) { max-inline-size: unquote("max(100%, 54rem)"); }
34
+ // Code in the first column never breaks; later cells may break long code (6rem floor), so a table whose code is longer
35
+ // than its share fits the measure instead of scrolling a clipped last column.
36
+ .mt-table > table:has(th:nth-child(4)) td:first-child code { overflow-wrap: normal; }
37
+ .mt-table > table:has(th:nth-child(4)) td:not(:first-child) { min-inline-size: 6rem; }
38
+ .mt-table > table:has(th:nth-child(4)) td:not(:first-child) code { overflow-wrap: anywhere; }
39
+ .mt-table > table:has(th:nth-child(4)) :is(th, td):first-child { position: sticky; inset-inline-start: 0; z-index: 1;
40
+ padding-inline-end: 1rem; background: mt(background); box-shadow: inset -1px 0 mt(border); }
41
+ .mt-table > table:has(th:nth-child(4)) :is(th, td):first-child:dir(rtl) { box-shadow: inset 1px 0 mt(border); }
42
+ @media print { .mt-table { overflow: visible; background: none; } }
43
+ @media (forced-colors: active) {
44
+ .mt-table { background: none; }
45
+ .mt-table > table:has(th:nth-child(4)) :is(th, td):first-child { background: Canvas; box-shadow: none; border-inline-end: 1px solid CanvasText; }
46
+ }
47
+ }
48
+ // Edge hint that content cannot cover (code chips, the sticky column paint over the shades above): where scroll timelines
49
+ // exist, the region's mask fades the side with more to scroll. Each fade sits 2rem outside the box until the scroll
50
+ // position moves it in; a sticky first column never fades.
51
+ @include mt-layer(components) {
52
+ @supports (animation-timeline: scroll()) {
53
+ @media screen {
54
+ @keyframes mt-table-edge { from { mask-position: -2rem 0, -2rem 0; } to { mask-position: 0 0, 0 0; } }
55
+ @keyframes mt-table-edge-end { from { mask-position: -2rem 0, -2rem 0; } to { mask-position: -2rem 0, 0 0; } }
56
+ @keyframes mt-table-edge-rtl { from { mask-position: 0 0, 0 0; } to { mask-position: -2rem 0, 0 0; } }
57
+ .mt-table { mask: linear-gradient(to right, transparent, #000 2rem) -2rem 0 / calc(100% + 2rem) 100% no-repeat,
58
+ linear-gradient(to left, transparent, #000 2rem) 0 0 / calc(100% + 2rem) 100% no-repeat;
59
+ mask-composite: intersect; animation: mt-table-edge linear both; animation-timeline: scroll(self inline); }
60
+ .mt-table:has(> table th:nth-child(4)) { animation-name: mt-table-edge-end; }
61
+ .mt-table:dir(rtl) { animation-direction: reverse; }
62
+ .mt-table:dir(rtl):has(> table th:nth-child(4)) { animation-name: mt-table-edge-rtl; animation-direction: normal; }
63
+ }
64
+ }
65
+ }
@@ -0,0 +1,22 @@
1
+ // Table variant hooks for a site's own HTML (c: params sets the first): mt-table--stack (labelled blocks), mt-table--dl
2
+ // (key over value) and mt-table--fixed (equal columns). The two stacked forms apply only once table-stack.js has set roles and labels;
3
+ // below 40rem the script also stacks a plain table that does not fit.
4
+ @include mt-layer(components) {
5
+ @media (max-width: 39.99rem) {
6
+ // [role] lifts these over the table sheet's floors, widths and sticky first column.
7
+ .mt-table > table[data-mt-labelled][role] { display: block; width: auto; max-inline-size: none; }
8
+ [data-mt-labelled] :is(tbody, tr) { display: block; }
9
+ [data-mt-labelled] thead { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
10
+ // A label sits close to its value and fields clearly apart, so a block reads as one record on a phone.
11
+ [data-mt-labelled] tr { display: grid; gap: .875rem; padding: 1.25rem 0; border-bottom: 1px solid mt(border); }
12
+ .mt-table > table[data-mt-labelled][role] :is(th, td):is(:first-child, *) { display: block; position: static; min-inline-size: 0;
13
+ padding: 0; border: 0; background: none; box-shadow: none; }
14
+ // A block is the full width, so long code may break here rather than scroll the stacked table.
15
+ .mt-table > table[data-mt-labelled][role] td code { white-space: normal; overflow-wrap: anywhere; }
16
+ .mt-table--stack[data-mt-labelled] td[data-label]::before { content: attr(data-label); content: unquote('attr(data-label) / ""'); display: block;
17
+ margin-block-end: .25rem; color: mt(muted-foreground); font-size: mt-size(xs); line-height: mt-leading(xs); }
18
+ [data-mt-labelled] :is(th, td):first-child { font-weight: 500; color: mt(foreground); }
19
+ }
20
+ .mt-table > table.mt-table--fixed { table-layout: fixed; width: 100%; }
21
+ .mt-table--fixed td { overflow-wrap: anywhere; }
22
+ }
@@ -0,0 +1,9 @@
1
+ // Script visuals (script: on hero: or a section item) and posters (poster:). The poster fills the visual box and is the
2
+ // first paint; a .mt-visual-stage after it covers the same box. The module sets data-mt-ready on the root once it has drawn,
3
+ // which hides the poster; without the module, or under reduced motion, the poster stays.
4
+ @include mt-layer(components) {
5
+ .mt-visual, [data-mt-script] { position: relative; }
6
+ .mt-visual-poster { display: block; width: 100%; height: auto; }
7
+ .mt-visual-poster ~ .mt-visual-stage { position: absolute; inset: 0; }
8
+ [data-mt-ready] > .mt-visual-poster { opacity: 0; }
9
+ }
@@ -2,6 +2,9 @@
2
2
  @import "../settings";
3
3
  @import "../tools/functions";
4
4
  @import "../tools/mixins";
5
+ @import "../tokens/scale";
6
+ @import "../registry/hooks";
7
+ @import "../kit/measure";
5
8
  @import "../kit/button";
6
9
  @import "page";
7
10
  @import "../tools/img-dark";
@@ -23,3 +23,5 @@
23
23
  .mt-detail-cta .mt-ics { font-size: .875rem; font-weight: 600; }
24
24
  @media print { .mt-detail-cta, .mt-detail-media audio { display: none; } }
25
25
  }
26
+ // Running text on detail pages stops at the measure; facts, media and covers keep the full width.
27
+ @include mt-layer(components) { @include mt-kit-measure(".mt-main.mt-detail"); }