@backgold/template-kit 0.0.0-stage → 0.1.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 (340) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +12 -2
  3. package/dist/chunk-KOB36GSF.js +62 -0
  4. package/dist/constants-DvTNj4JI.d-Batjcj3Z.d.ts +38 -0
  5. package/dist/content-api-CYeY0vU8.d.ts +849 -0
  6. package/dist/contract/content-api-examples.d.ts +58 -0
  7. package/dist/contract/content-api-examples.js +783 -0
  8. package/dist/contract/content-api.d.ts +2 -0
  9. package/dist/contract/content-api.js +1 -0
  10. package/dist/contract/site-templates.d.ts +252 -0
  11. package/dist/contract/site-templates.js +185 -0
  12. package/package.json +70 -3
  13. package/src/components/EntryCard.astro +35 -0
  14. package/src/components/EventMap.astro +118 -0
  15. package/src/components/EventPage.astro +194 -0
  16. package/src/components/FieldValue.astro +41 -0
  17. package/src/components/LeadingHero.astro +21 -0
  18. package/src/components/NotFound.astro +20 -0
  19. package/src/components/PageSections.astro +47 -0
  20. package/src/components/Prose.astro +18 -0
  21. package/src/components/chrome/Brand.astro +54 -0
  22. package/src/components/chrome/ClosingCall.astro +94 -0
  23. package/src/components/chrome/DonateStrip.astro +61 -0
  24. package/src/components/chrome/FooterColumns.astro +32 -0
  25. package/src/components/chrome/FooterContact.astro +28 -0
  26. package/src/components/chrome/MenuList.astro +45 -0
  27. package/src/components/chrome/ModeToggle.astro +125 -0
  28. package/src/components/chrome/SignedInNotice.astro +53 -0
  29. package/src/components/chrome/SignupBand.astro +12 -0
  30. package/src/components/chrome/TakeoverBanner.astro +56 -0
  31. package/src/components/chrome/VisitorAccount.astro +82 -0
  32. package/src/components/entries/AuthorBox.astro +47 -0
  33. package/src/components/entries/EntryFields.astro +29 -0
  34. package/src/components/entries/EntryHeader.astro +77 -0
  35. package/src/components/entries/ListFrame.astro +126 -0
  36. package/src/components/entries/ListSearch.astro +24 -0
  37. package/src/components/entries/Share.astro +24 -0
  38. package/src/components/entries/course/classroom.astro +26 -0
  39. package/src/components/entries/course/lesson.astro +18 -0
  40. package/src/components/entries/course/section.ts +20 -0
  41. package/src/components/entries/course/syllabus.astro +15 -0
  42. package/src/components/entries/index.ts +77 -0
  43. package/src/components/entries/newsletter/issue.astro +41 -0
  44. package/src/components/entries/newsletter/list.astro +26 -0
  45. package/src/components/entries/podcast/episode.astro +42 -0
  46. package/src/components/entries/podcast/list.astro +36 -0
  47. package/src/components/entries/post/article.astro +31 -0
  48. package/src/components/entries/post/list.astro +85 -0
  49. package/src/components/entries/props.ts +61 -0
  50. package/src/components/entries/video/cards.astro +39 -0
  51. package/src/components/entries/video/grid.astro +15 -0
  52. package/src/components/entries/video/watch.astro +41 -0
  53. package/src/components/live/LivePage.astro +215 -0
  54. package/src/components/live/LocalTime.astro +29 -0
  55. package/src/components/sections/About/books.astro +188 -0
  56. package/src/components/sections/About/credentials.ts +90 -0
  57. package/src/components/sections/About/index.astro +57 -0
  58. package/src/components/sections/About/left.astro +54 -0
  59. package/src/components/sections/About/letter.astro +108 -0
  60. package/src/components/sections/About/portrait.astro +308 -0
  61. package/src/components/sections/Advocacy/compact.astro +14 -0
  62. package/src/components/sections/Advocacy/index.astro +14 -0
  63. package/src/components/sections/Band.astro +39 -0
  64. package/src/components/sections/Blog/feature.astro +176 -0
  65. package/src/components/sections/Blog/index.astro +37 -0
  66. package/src/components/sections/Blog/latest.ts +80 -0
  67. package/src/components/sections/Blog/list.astro +186 -0
  68. package/src/components/sections/Booking/index.astro +139 -0
  69. package/src/components/sections/Booking/list.astro +144 -0
  70. package/src/components/sections/Booking/types.ts +60 -0
  71. package/src/components/sections/Calendar/agenda.astro +14 -0
  72. package/src/components/sections/Calendar/index.astro +14 -0
  73. package/src/components/sections/CandidateRoster/ballot.astro +394 -0
  74. package/src/components/sections/CandidateRoster/candidates.ts +69 -0
  75. package/src/components/sections/CandidateRoster/compact.astro +115 -0
  76. package/src/components/sections/CandidateRoster/index.astro +57 -0
  77. package/src/components/sections/CaseStudies/beforeafter.astro +222 -0
  78. package/src/components/sections/CaseStudies/cases.ts +111 -0
  79. package/src/components/sections/CaseStudies/grid.astro +261 -0
  80. package/src/components/sections/CaseStudies/index.astro +333 -0
  81. package/src/components/sections/Classroom/CourseCard.astro +181 -0
  82. package/src/components/sections/Classroom/Courses.astro +88 -0
  83. package/src/components/sections/Classroom/classroom.ts +141 -0
  84. package/src/components/sections/Classroom/index.astro +20 -0
  85. package/src/components/sections/Classroom/list.astro +15 -0
  86. package/src/components/sections/Collection/compact.astro +7 -0
  87. package/src/components/sections/Collection/entries.ts +62 -0
  88. package/src/components/sections/Collection/feature.astro +180 -0
  89. package/src/components/sections/Collection/index.astro +46 -0
  90. package/src/components/sections/Collection/library.astro +271 -0
  91. package/src/components/sections/Collection/list.astro +7 -0
  92. package/src/components/sections/Collection/outline.astro +134 -0
  93. package/src/components/sections/Collection/shelves.astro +191 -0
  94. package/src/components/sections/Comparison/Unlisted.astro +6 -0
  95. package/src/components/sections/Comparison/cards.astro +171 -0
  96. package/src/components/sections/Comparison/index.astro +191 -0
  97. package/src/components/sections/Comparison/sides.ts +98 -0
  98. package/src/components/sections/Comparison/spectrum.astro +261 -0
  99. package/src/components/sections/ContentPost/banner.astro +152 -0
  100. package/src/components/sections/ContentPost/index.astro +35 -0
  101. package/src/components/sections/ContentPost/lesson.ts +119 -0
  102. package/src/components/sections/ContentPost/player.astro +254 -0
  103. package/src/components/sections/ContentPost/theater.astro +329 -0
  104. package/src/components/sections/Countdown/index.astro +53 -0
  105. package/src/components/sections/Course/Bar.astro +46 -0
  106. package/src/components/sections/Course/CourseHead.astro +123 -0
  107. package/src/components/sections/Course/Crumbs.astro +44 -0
  108. package/src/components/sections/Course/Icon.astro +29 -0
  109. package/src/components/sections/Course/Ring.astro +62 -0
  110. package/src/components/sections/Course/Syllabus.astro +146 -0
  111. package/src/components/sections/Course/course.ts +146 -0
  112. package/src/components/sections/Course/index.astro +143 -0
  113. package/src/components/sections/Course/outline.astro +39 -0
  114. package/src/components/sections/Cta/banner.astro +64 -0
  115. package/src/components/sections/Cta/card.astro +88 -0
  116. package/src/components/sections/Cta/index.astro +31 -0
  117. package/src/components/sections/Cta/photo.astro +114 -0
  118. package/src/components/sections/Cta/strip.astro +91 -0
  119. package/src/components/sections/Donate/index.astro +136 -0
  120. package/src/components/sections/Donate/story.astro +7 -0
  121. package/src/components/sections/Event/card.astro +14 -0
  122. package/src/components/sections/Event/index.astro +14 -0
  123. package/src/components/sections/EventsList/AgendaMonths.astro +105 -0
  124. package/src/components/sections/EventsList/CalendarLine.astro +23 -0
  125. package/src/components/sections/EventsList/EventRows.astro +196 -0
  126. package/src/components/sections/EventsList/LiveCounts.astro +75 -0
  127. package/src/components/sections/EventsList/TypeTabs.astro +53 -0
  128. package/src/components/sections/EventsList/agenda.astro +55 -0
  129. package/src/components/sections/EventsList/calendar.astro +392 -0
  130. package/src/components/sections/EventsList/cards.astro +186 -0
  131. package/src/components/sections/EventsList/cohorts.astro +205 -0
  132. package/src/components/sections/EventsList/compact.astro +163 -0
  133. package/src/components/sections/EventsList/events.ts +168 -0
  134. package/src/components/sections/EventsList/index.astro +46 -0
  135. package/src/components/sections/EventsList/map.astro +436 -0
  136. package/src/components/sections/EventsList/shifts.astro +355 -0
  137. package/src/components/sections/EventsList/week.astro +361 -0
  138. package/src/components/sections/Faq/Contact.astro +63 -0
  139. package/src/components/sections/Faq/Questions.astro +98 -0
  140. package/src/components/sections/Faq/cards.astro +74 -0
  141. package/src/components/sections/Faq/faq.ts +101 -0
  142. package/src/components/sections/Faq/index.astro +49 -0
  143. package/src/components/sections/Faq/topics.astro +178 -0
  144. package/src/components/sections/Financials/Foot.astro +38 -0
  145. package/src/components/sections/Financials/Head.astro +47 -0
  146. package/src/components/sections/Financials/donut.astro +197 -0
  147. package/src/components/sections/Financials/financials.ts +52 -0
  148. package/src/components/sections/Financials/index.astro +148 -0
  149. package/src/components/sections/Financials/table.astro +157 -0
  150. package/src/components/sections/FormBlock/index.astro +33 -0
  151. package/src/components/sections/FormBlock/wide.astro +7 -0
  152. package/src/components/sections/Hero/cover.astro +170 -0
  153. package/src/components/sections/Hero/donate.astro +209 -0
  154. package/src/components/sections/Hero/field.astro +390 -0
  155. package/src/components/sections/Hero/index.astro +52 -0
  156. package/src/components/sections/Hero/overlap.astro +151 -0
  157. package/src/components/sections/Hero/rotating.astro +30 -0
  158. package/src/components/sections/Hero/split.astro +96 -0
  159. package/src/components/sections/Hero/statement.astro +55 -0
  160. package/src/components/sections/Hero/video.astro +399 -0
  161. package/src/components/sections/Issues/checklist.astro +204 -0
  162. package/src/components/sections/Issues/drawer.astro +237 -0
  163. package/src/components/sections/Issues/index.astro +115 -0
  164. package/src/components/sections/Issues/issues.ts +37 -0
  165. package/src/components/sections/Issues/numbered.astro +79 -0
  166. package/src/components/sections/Issues/rows.astro +137 -0
  167. package/src/components/sections/Issues/steps.astro +81 -0
  168. package/src/components/sections/Issues/tabs.astro +322 -0
  169. package/src/components/sections/Leaderboard/index.astro +29 -0
  170. package/src/components/sections/Lesson/Door.astro +121 -0
  171. package/src/components/sections/Lesson/LessonBody.astro +416 -0
  172. package/src/components/sections/Lesson/Rail.astro +182 -0
  173. package/src/components/sections/Lesson/Tracker.astro +137 -0
  174. package/src/components/sections/Lesson/index.astro +27 -0
  175. package/src/components/sections/Lesson/lesson.ts +233 -0
  176. package/src/components/sections/Lesson/reading.astro +21 -0
  177. package/src/components/sections/Map/CoverageLine.astro +19 -0
  178. package/src/components/sections/Map/RegionMap.astro +109 -0
  179. package/src/components/sections/Map/bar.astro +160 -0
  180. package/src/components/sections/Map/index.astro +192 -0
  181. package/src/components/sections/Map/map.astro +275 -0
  182. package/src/components/sections/MediaKit/BioCard.astro +108 -0
  183. package/src/components/sections/MediaKit/Downloads.astro +88 -0
  184. package/src/components/sections/MediaKit/index.astro +183 -0
  185. package/src/components/sections/MediaKit/kit.ts +140 -0
  186. package/src/components/sections/MediaKit/press.astro +189 -0
  187. package/src/components/sections/MediaKit/speaker.astro +205 -0
  188. package/src/components/sections/Membership/Benefits.astro +42 -0
  189. package/src/components/sections/Membership/Check.astro +12 -0
  190. package/src/components/sections/Membership/Price.astro +61 -0
  191. package/src/components/sections/Membership/compare.astro +312 -0
  192. package/src/components/sections/Membership/index.astro +281 -0
  193. package/src/components/sections/Membership/offers.ts +169 -0
  194. package/src/components/sections/Membership/tiers.astro +217 -0
  195. package/src/components/sections/MovementMap/index.astro +50 -0
  196. package/src/components/sections/MovementTicker/index.astro +43 -0
  197. package/src/components/sections/Pathways/Doors.astro +147 -0
  198. package/src/components/sections/Pathways/Head.astro +37 -0
  199. package/src/components/sections/Pathways/index.astro +27 -0
  200. package/src/components/sections/Pathways/pathways.ts +100 -0
  201. package/src/components/sections/Pathways/quiz.astro +286 -0
  202. package/src/components/sections/Pathways/tabs.astro +271 -0
  203. package/src/components/sections/PdfEmbed/card.astro +99 -0
  204. package/src/components/sections/PdfEmbed/index.astro +26 -0
  205. package/src/components/sections/PdfEmbed/medium.astro +7 -0
  206. package/src/components/sections/PdfEmbed/tall.astro +7 -0
  207. package/src/components/sections/Petition/coverage.astro +14 -0
  208. package/src/components/sections/Petition/image.astro +14 -0
  209. package/src/components/sections/Petition/index.astro +14 -0
  210. package/src/components/sections/Petition/map.astro +14 -0
  211. package/src/components/sections/PlatformPlanks/anchors.ts +66 -0
  212. package/src/components/sections/PlatformPlanks/columns.astro +171 -0
  213. package/src/components/sections/PlatformPlanks/index.astro +56 -0
  214. package/src/components/sections/PlatformPlanks/longread.astro +250 -0
  215. package/src/components/sections/PollBlock/index.astro +30 -0
  216. package/src/components/sections/Portfolio/featured.astro +343 -0
  217. package/src/components/sections/Portfolio/index.astro +571 -0
  218. package/src/components/sections/Portfolio/strip.astro +173 -0
  219. package/src/components/sections/Portfolio/work.ts +100 -0
  220. package/src/components/sections/Progress/MatchClock.astro +166 -0
  221. package/src/components/sections/Progress/compact.astro +150 -0
  222. package/src/components/sections/Progress/index.astro +32 -0
  223. package/src/components/sections/Progress/match.astro +126 -0
  224. package/src/components/sections/Progress/ring.astro +179 -0
  225. package/src/components/sections/QuickDonate/DonateCard.astro +149 -0
  226. package/src/components/sections/QuickDonate/Picker.astro +95 -0
  227. package/src/components/sections/QuickDonate/band.astro +164 -0
  228. package/src/components/sections/QuickDonate/bar.astro +208 -0
  229. package/src/components/sections/QuickDonate/donate.ts +126 -0
  230. package/src/components/sections/QuickDonate/hero.astro +143 -0
  231. package/src/components/sections/QuickDonate/index.astro +73 -0
  232. package/src/components/sections/QuickDonate/jar.astro +225 -0
  233. package/src/components/sections/QuickDonate/ladder.astro +248 -0
  234. package/src/components/sections/QuoteStrip/carousel.astro +340 -0
  235. package/src/components/sections/QuoteStrip/index.astro +58 -0
  236. package/src/components/sections/QuoteStrip/logos.astro +226 -0
  237. package/src/components/sections/QuoteStrip/quotes.ts +61 -0
  238. package/src/components/sections/QuoteStrip/single.astro +92 -0
  239. package/src/components/sections/QuoteStrip/ticker.astro +319 -0
  240. package/src/components/sections/QuoteStrip/wall.astro +113 -0
  241. package/src/components/sections/Resources/band.astro +93 -0
  242. package/src/components/sections/Resources/featured.astro +239 -0
  243. package/src/components/sections/Resources/index.astro +225 -0
  244. package/src/components/sections/Resources/resources.ts +92 -0
  245. package/src/components/sections/SampleBallot/Position.astro +39 -0
  246. package/src/components/sections/SampleBallot/ballot.ts +92 -0
  247. package/src/components/sections/SampleBallot/cards.astro +299 -0
  248. package/src/components/sections/SampleBallot/index.astro +326 -0
  249. package/src/components/sections/SampleBallot/measures.astro +172 -0
  250. package/src/components/sections/Scorecard/grades.astro +141 -0
  251. package/src/components/sections/Scorecard/index.astro +294 -0
  252. package/src/components/sections/Scorecard/promise.astro +167 -0
  253. package/src/components/sections/Scorecard/votes.ts +83 -0
  254. package/src/components/sections/SectionHead.astro +31 -0
  255. package/src/components/sections/Services/Button.astro +24 -0
  256. package/src/components/sections/Services/Check.astro +12 -0
  257. package/src/components/sections/Services/Includes.astro +42 -0
  258. package/src/components/sections/Services/compare.astro +328 -0
  259. package/src/components/sections/Services/index.astro +187 -0
  260. package/src/components/sections/Services/list.astro +181 -0
  261. package/src/components/sections/Services/services.ts +80 -0
  262. package/src/components/sections/ShareKit/Actions.astro +71 -0
  263. package/src/components/sections/ShareKit/Buttons.astro +62 -0
  264. package/src/components/sections/ShareKit/compact.astro +123 -0
  265. package/src/components/sections/ShareKit/index.astro +160 -0
  266. package/src/components/sections/ShareKit/share.ts +60 -0
  267. package/src/components/sections/ShareKit/strip.astro +173 -0
  268. package/src/components/sections/SignupCapture/band.astro +7 -0
  269. package/src/components/sections/SignupCapture/index.astro +103 -0
  270. package/src/components/sections/SignupCapture/inline.astro +7 -0
  271. package/src/components/sections/SocialFeed/index.astro +34 -0
  272. package/src/components/sections/StatCards/feature.astro +143 -0
  273. package/src/components/sections/StatCards/index.astro +51 -0
  274. package/src/components/sections/StatCards/ribbon.astro +113 -0
  275. package/src/components/sections/StatCards/wall.astro +177 -0
  276. package/src/components/sections/Store/featured.astro +14 -0
  277. package/src/components/sections/Store/index.astro +14 -0
  278. package/src/components/sections/Stories/Status.astro +42 -0
  279. package/src/components/sections/Stories/StoryCards.astro +171 -0
  280. package/src/components/sections/Stories/cards.astro +42 -0
  281. package/src/components/sections/Stories/index.astro +238 -0
  282. package/src/components/sections/Stories/stories.ts +97 -0
  283. package/src/components/sections/Stories/timeline.astro +135 -0
  284. package/src/components/sections/TeamGrid/board.astro +280 -0
  285. package/src/components/sections/TeamGrid/index.astro +71 -0
  286. package/src/components/sections/TeamGrid/list.astro +306 -0
  287. package/src/components/sections/TeamGrid/people.ts +178 -0
  288. package/src/components/sections/VideoEmbed/index.astro +52 -0
  289. package/src/components/sections/VideoEmbed/landscape.astro +7 -0
  290. package/src/components/sections/VideoEmbed/portrait.astro +7 -0
  291. package/src/components/sections/VideoEmbed/square.astro +7 -0
  292. package/src/components/sections/VoterTools/DaysLeft.astro +33 -0
  293. package/src/components/sections/VoterTools/dates.astro +149 -0
  294. package/src/components/sections/VoterTools/index.astro +228 -0
  295. package/src/components/sections/VoterTools/polling.astro +141 -0
  296. package/src/components/sections/VoterTools/voter-tools.ts +70 -0
  297. package/src/components/sections/index.ts +370 -0
  298. package/src/components/sections/modules/Headed.astro +39 -0
  299. package/src/components/sections/modules/ModuleFrame.astro +179 -0
  300. package/src/components/volunteer/ShiftLive.astro +90 -0
  301. package/src/components/volunteer/detail.astro +247 -0
  302. package/src/components/volunteer/list.astro +298 -0
  303. package/src/components/volunteer/props.ts +21 -0
  304. package/src/env.d.ts +22 -0
  305. package/src/index.d.ts +10 -0
  306. package/src/index.js +64 -0
  307. package/src/layouts/Site.astro +371 -0
  308. package/src/lib/academy.ts +146 -0
  309. package/src/lib/brand.ts +534 -0
  310. package/src/lib/chrome.ts +119 -0
  311. package/src/lib/donate-frame.ts +64 -0
  312. package/src/lib/entries.ts +190 -0
  313. package/src/lib/env.ts +34 -0
  314. package/src/lib/event-map-draw.ts +91 -0
  315. package/src/lib/events.ts +476 -0
  316. package/src/lib/fonts.ts +116 -0
  317. package/src/lib/footer.ts +24 -0
  318. package/src/lib/format.ts +160 -0
  319. package/src/lib/geo.ts +131 -0
  320. package/src/lib/live.ts +54 -0
  321. package/src/lib/menu.ts +48 -0
  322. package/src/lib/petition-text.ts +29 -0
  323. package/src/lib/reading.ts +17 -0
  324. package/src/lib/regions.ts +215 -0
  325. package/src/lib/section.ts +94 -0
  326. package/src/lib/shifts.ts +186 -0
  327. package/src/lib/stream-time.ts +20 -0
  328. package/src/lib/stream.ts +141 -0
  329. package/src/lib/visitor.ts +54 -0
  330. package/src/routes/catch-all.astro +286 -0
  331. package/src/routes/form.astro +30 -0
  332. package/src/routes/live.astro +49 -0
  333. package/src/routes/not-found.astro +18 -0
  334. package/src/routes/preview.astro +60 -0
  335. package/src/routes/setup.astro +62 -0
  336. package/src/routes/volunteer-shift.astro +61 -0
  337. package/src/routes/volunteer.astro +37 -0
  338. package/src/styles/entries.css +784 -0
  339. package/src/styles/site.css +1839 -0
  340. package/src/template.ts +182 -0
@@ -0,0 +1,237 @@
1
+ ---
2
+ // Issues, 'drawer' layout (REPORT §3, "Issue cards with a 'read the plan'
3
+ // drawer"): the kicker, the heading and the lead, then the issues as cards,
4
+ // three to a row on a wide screen and one on a phone. A card is on the band's
5
+ // surface: the issue's two-digit number in the accent with its note as a chip
6
+ // beside it, the title, the first paragraph of its line, and under them
7
+ // "Read the plan", a native <details> that opens the rest of the line and
8
+ // what the issue includes (a checked list) in place, under the words it
9
+ // opened from. The browser opens and closes it, with the keyboard too, so it
10
+ // works with scripts off. An issue with nothing past its first paragraph and
11
+ // nothing it includes has no "Read the plan". While a card is open the cards
12
+ // in its row keep their own height. The section's links follow as buttons,
13
+ // the first the main one. With no issue, heading, kicker or lead nothing is
14
+ // drawn.
15
+ import type { ComponentProps } from 'astro/types'
16
+ import Band from '../Band.astro'
17
+ import Prose from '../../Prose.astro'
18
+ import type Default from './index.astro'
19
+ import { issuesOf, numeral } from './issues'
20
+ import { links } from '../../../lib/section'
21
+ import { prose, text, type Prose as ProseValue } from '../../../lib/format'
22
+
23
+ type Props = ComponentProps<typeof Default>
24
+
25
+ const { section } = Astro.props
26
+ const heading = text(section.copy.heading)
27
+ const kicker = text(section.copy.kicker)
28
+ const issues = issuesOf(section)
29
+ const ctas = links(section)
30
+ const drawn = heading || kicker || prose(section.copy.lead) || issues.length > 0
31
+
32
+ // A line's first paragraph, which the card shows, and the rest, which the
33
+ // drawer opens. Rich text that opens with words outside a paragraph is all
34
+ // shown on the card.
35
+ const FIRST_PARAGRAPH = /^\s*(<p\b[^>]*>[\s\S]*?<\/p>)([\s\S]*)$/i
36
+ const split = (value: unknown): { lead: ProseValue | null; rest: ProseValue | null } => {
37
+ const body = prose(value)
38
+ if (!body) return { lead: null, rest: null }
39
+ if ('paragraphs' in body) {
40
+ const [first, ...more] = body.paragraphs
41
+ return { lead: { paragraphs: [first] }, rest: more.length > 0 ? { paragraphs: more } : null }
42
+ }
43
+ const m = FIRST_PARAGRAPH.exec(body.html)
44
+ if (!m) return { lead: body, rest: null }
45
+ return { lead: { html: m[1] }, rest: m[2].trim() ? { html: m[2] } : null }
46
+ }
47
+ const cards = issues.map((issue, i) => ({ ...issue, ...split(issue.body), name: issue.title ?? numeral(i) }))
48
+ ---
49
+ {drawn && (
50
+ <Band section={section} class="issues issues-drawer">
51
+ {kicker && <p class="kicker">{kicker}</p>}
52
+ {heading && <h2>{heading}</h2>}
53
+ <Prose value={section.copy.lead} class="lede" />
54
+ {cards.length > 0 && (
55
+ <ul class="grid grid-3 dr-grid" role="list">
56
+ {cards.map((card, i) => (
57
+ <li class="dr-card">
58
+ <p class="dr-top">
59
+ <span class="dr-number" aria-hidden="true">{numeral(i)}</span>
60
+ {card.note && <span class="chip">{card.note}</span>}
61
+ </p>
62
+ {card.title && <h3>{card.title}</h3>}
63
+ {card.lead && ('html' in card.lead ? (
64
+ <div class="prose dr-lead" set:html={card.lead.html} />
65
+ ) : (
66
+ <div class="prose dr-lead">{card.lead.paragraphs.map((p) => <p>{p}</p>)}</div>
67
+ ))}
68
+ {(card.rest || card.includes.length > 0) && (
69
+ <details class="dr-plan">
70
+ <summary>
71
+ <span>Read the plan<span class="visually-hidden">: {card.name}</span></span>
72
+ </summary>
73
+ <div class="dr-rest">
74
+ {card.rest && ('html' in card.rest ? (
75
+ <div class="prose dr-body" set:html={card.rest.html} />
76
+ ) : (
77
+ <div class="prose dr-body">{card.rest.paragraphs.map((p) => <p>{p}</p>)}</div>
78
+ ))}
79
+ {card.includes.length > 0 && (
80
+ <ul class="dr-includes" role="list">
81
+ {card.includes.map((line) => (
82
+ <li>
83
+ <svg viewBox="0 0 16 16" width="16" height="16" aria-hidden="true" focusable="false"><path d="M3 8.5l3.2 3.2L13 4.8" fill="none" stroke="currentColor" stroke-width="2.25" stroke-linecap="round" stroke-linejoin="round" /></svg>
84
+ <span>{line}</span>
85
+ </li>
86
+ ))}
87
+ </ul>
88
+ )}
89
+ </div>
90
+ </details>
91
+ )}
92
+ </li>
93
+ ))}
94
+ </ul>
95
+ )}
96
+ {ctas.length > 0 && (
97
+ <p class="actions">
98
+ {ctas.map((link, i) => <a class:list={['button', i > 0 && 'button-quiet']} href={link.href} rel={link.rel}>{link.label}</a>)}
99
+ </p>
100
+ )}
101
+ </Band>
102
+ )}
103
+
104
+ <style>
105
+ .dr-grid {
106
+ margin-top: 2rem;
107
+ }
108
+ /* A card open: the cards beside it keep their own height rather than stretching to its. */
109
+ .dr-grid:has(.dr-plan[open]) {
110
+ align-items: start;
111
+ }
112
+ .dr-card {
113
+ display: flex;
114
+ flex-direction: column;
115
+ min-width: 0;
116
+ padding: clamp(1.25rem, 1rem + 1vw, 1.625rem);
117
+ border: 1px solid var(--line);
118
+ border-radius: var(--radius-card);
119
+ background: var(--surface);
120
+ box-shadow: var(--shadow);
121
+ }
122
+ .dr-card > * {
123
+ margin: 0;
124
+ }
125
+ .dr-top {
126
+ display: flex;
127
+ flex-wrap: wrap;
128
+ align-items: center;
129
+ justify-content: space-between;
130
+ gap: 0.5rem;
131
+ }
132
+ .dr-number {
133
+ color: var(--accent);
134
+ font-family: var(--font-display);
135
+ font-size: clamp(1.625rem, 1.4rem + 0.6vw, 2rem);
136
+ font-weight: 800;
137
+ line-height: 1;
138
+ }
139
+ .dr-card h3 {
140
+ margin-top: 0.875rem;
141
+ }
142
+ .dr-card .dr-lead {
143
+ margin-top: 0.5rem;
144
+ color: var(--muted);
145
+ }
146
+ .dr-lead > :global(:last-child) {
147
+ margin-bottom: 0;
148
+ }
149
+
150
+ /* "Read the plan": a text link with a chevron that points down, and up while the plan is open. */
151
+ .dr-card .dr-plan {
152
+ margin-top: auto;
153
+ padding-top: 1rem;
154
+ }
155
+ .dr-plan summary {
156
+ display: inline-flex;
157
+ align-items: center;
158
+ gap: 0.625rem;
159
+ min-height: 2.75rem;
160
+ color: var(--link);
161
+ font-weight: 700;
162
+ text-decoration: underline;
163
+ text-decoration-thickness: 1.5px;
164
+ text-underline-offset: 0.25em;
165
+ list-style: none;
166
+ cursor: pointer;
167
+ }
168
+ .dr-plan summary::-webkit-details-marker {
169
+ display: none;
170
+ }
171
+ .dr-plan summary:hover {
172
+ text-decoration-thickness: 2.5px;
173
+ }
174
+ .dr-plan summary::after {
175
+ content: '';
176
+ flex: 0 0 auto;
177
+ width: 0.4375rem;
178
+ height: 0.4375rem;
179
+ margin-top: -0.25rem;
180
+ border-right: 2px solid currentColor;
181
+ border-bottom: 2px solid currentColor;
182
+ transform: rotate(45deg);
183
+ }
184
+ .dr-plan[open] summary::after {
185
+ margin-top: 0.25rem;
186
+ transform: rotate(225deg);
187
+ }
188
+ .dr-rest {
189
+ margin-top: 0.5rem;
190
+ padding-top: 1rem;
191
+ border-top: 1px solid var(--line);
192
+ }
193
+ .dr-body {
194
+ color: var(--muted);
195
+ }
196
+ .dr-body > :global(:last-child) {
197
+ margin-bottom: 0;
198
+ }
199
+ .dr-includes {
200
+ display: grid;
201
+ gap: 0.375rem;
202
+ margin: 1rem 0 0;
203
+ padding: 0;
204
+ list-style: none;
205
+ font-size: var(--text-sm);
206
+ }
207
+ .dr-rest > .dr-includes:first-child {
208
+ margin-top: 0;
209
+ }
210
+ .dr-includes li {
211
+ display: flex;
212
+ align-items: flex-start;
213
+ gap: 0.5rem;
214
+ line-height: 1.45;
215
+ }
216
+ .dr-includes svg {
217
+ flex: 0 0 auto;
218
+ margin-top: 0.15em;
219
+ color: var(--accent);
220
+ }
221
+ @media (prefers-reduced-motion: no-preference) {
222
+ .dr-plan summary::after {
223
+ transition:
224
+ transform 0.2s ease,
225
+ margin 0.2s ease;
226
+ }
227
+ .dr-plan[open] .dr-rest {
228
+ animation: dr-open 0.2s ease-out;
229
+ }
230
+ }
231
+ @keyframes dr-open {
232
+ from {
233
+ opacity: 0;
234
+ transform: translateY(-0.375rem);
235
+ }
236
+ }
237
+ </style>
@@ -0,0 +1,115 @@
1
+ ---
2
+ // Issues (Cards, the default; boards A8, C1 and C7): the section head (the
3
+ // kicker and the heading; a section with one link draws it beside them as a
4
+ // text link, C1's "Read the whole plan"), a lead paragraph, then one raised
5
+ // card per issue on the band's card colour with its title and its line,
6
+ // counted in a disc when `numbered` is set (the candidate template's
7
+ // Issues · cards, C1's "Three things she will fix first"; the party's A8
8
+ // draws the same cards uncounted), and a section with more than one link
9
+ // draws them under the cards as buttons, the first the main call. `variant`
10
+ // is the card style chosen in BackGold, kept as `data-variant` on the
11
+ // section for your CSS.
12
+ import type { Section } from '@backgold/content'
13
+ import Band from '../Band.astro'
14
+ import Prose from '../../Prose.astro'
15
+ import SectionHead from '../SectionHead.astro'
16
+ import { links, rows } from '../../../lib/section'
17
+ import { text } from '../../../lib/format'
18
+
19
+ interface Props {
20
+ section: Section
21
+ variant?: string
22
+ /** Count the cards, 1 up, each in a disc. */
23
+ numbered?: boolean
24
+ }
25
+
26
+ const { section, numbered = false } = Astro.props
27
+ const issues = rows(section).filter((row) => text(row.title) || text(row.body))
28
+ const ctas = links(section)
29
+ const headLink = ctas.length === 1
30
+ ---
31
+ <Band section={section} class="issues">
32
+ <SectionHead kicker={text(section.copy.kicker)} heading={text(section.copy.heading)} more={headLink ? ctas : []} />
33
+ <Prose value={section.copy.lead} class="lede" />
34
+ {issues.length > 0 && (
35
+ <ul class="issue-cards" role="list">
36
+ {issues.map((issue, i) => (
37
+ <li class="issue-card">
38
+ {numbered && <span class="issue-num" aria-hidden="true">{i + 1}</span>}
39
+ {text(issue.title) && <h3 class="issue-title">{text(issue.title)}</h3>}
40
+ <Prose value={issue.body} class="issue-body" />
41
+ </li>
42
+ ))}
43
+ </ul>
44
+ )}
45
+ {!headLink && ctas.length > 0 && (
46
+ <p class="actions">
47
+ {ctas.map((link, i) => <a class:list={['button', i > 0 && 'button-quiet']} href={link.href} rel={link.rel}>{link.label}</a>)}
48
+ </p>
49
+ )}
50
+ </Band>
51
+
52
+ <style>
53
+ .issue-cards {
54
+ display: grid;
55
+ gap: 1.25rem;
56
+ /* auto-fit: three cards share the row (C1, C7), never leaving an empty fourth track. */
57
+ grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
58
+ margin: 1.5rem 0 0;
59
+ padding: 0;
60
+ list-style: none;
61
+ }
62
+ .issue-card {
63
+ display: flex;
64
+ flex-direction: column;
65
+ gap: 0.5rem;
66
+ min-width: 0;
67
+ padding: 1.25rem 1.375rem 1.5rem;
68
+ border: 1px solid var(--line);
69
+ border-radius: var(--radius-card);
70
+ background: var(--surface);
71
+ box-shadow: var(--shadow);
72
+ }
73
+ .issue-card > * {
74
+ margin: 0;
75
+ }
76
+ /* C1's disc: the count in the display face on the wash, in the link's colour. */
77
+ .issue-num {
78
+ display: grid;
79
+ place-items: center;
80
+ width: 2.125rem;
81
+ height: 2.125rem;
82
+ margin-bottom: 0.25rem;
83
+ border-radius: 50%;
84
+ background: var(--band-wash);
85
+ color: var(--band-wash-link);
86
+ font-family: var(--font-display);
87
+ font-size: 1.125rem;
88
+ font-weight: 800;
89
+ line-height: 1;
90
+ }
91
+ .issue-title {
92
+ font-size: var(--h3);
93
+ font-weight: 700;
94
+ line-height: 1.2;
95
+ }
96
+ .issue-card :global(.issue-body) {
97
+ color: var(--muted);
98
+ font-size: 0.96875rem;
99
+ }
100
+ .issue-card :global(.issue-body) > :global(:last-child) {
101
+ margin-bottom: 0;
102
+ }
103
+ @media (prefers-reduced-motion: no-preference) {
104
+ .issue-card {
105
+ transition:
106
+ transform 0.15s ease,
107
+ box-shadow 0.15s ease;
108
+ }
109
+ /* The boards' motion note: a card lifts 2px with a deeper shadow on hover. */
110
+ .issue-card:hover {
111
+ transform: translateY(-2px);
112
+ box-shadow: var(--shadow), 0 14px 28px -18px color-mix(in srgb, var(--shadow-ink) 45%, transparent);
113
+ }
114
+ }
115
+ </style>
@@ -0,0 +1,37 @@
1
+ // An Issues section's rows as its rows and checklist layouts read them: the
2
+ // rows with a title or a body (the rule every Issues layout keeps), each with
3
+ // its picture (`imageUrl`, null for none or an unsafe one), its `note` (a
4
+ // chip such as "Week 0") and what it `includes`, its blank lines left out,
5
+ // in the row's order.
6
+
7
+ import type { Section } from '@backgold/content'
8
+ import { safeSrc } from '@backgold/astro/server'
9
+ import { rows } from '../../../lib/section'
10
+ import { text } from '../../../lib/format'
11
+
12
+ export interface Issue {
13
+ title: string | null
14
+ body: unknown
15
+ picture: string | null
16
+ note: string | null
17
+ includes: string[]
18
+ }
19
+
20
+ export function issuesOf(section: Section): Issue[] {
21
+ return rows(section).flatMap((row) => {
22
+ if (!text(row.title) && !text(row.body)) return []
23
+ const includes = Array.isArray(row.includes) ? row.includes.map((s) => text(s)?.trim()).filter((s): s is string => !!s) : []
24
+ return [
25
+ {
26
+ title: text(row.title),
27
+ body: row.body,
28
+ picture: safeSrc(row.imageUrl),
29
+ note: text(row.note)?.trim() || null,
30
+ includes,
31
+ },
32
+ ]
33
+ })
34
+ }
35
+
36
+ /** "01", "02": an issue's place in the list. */
37
+ export const numeral = (i: number): string => String(i + 1).padStart(2, '0')
@@ -0,0 +1,79 @@
1
+ ---
2
+ // Issues, 'numbered' layout (board A1, section 3): the section head (the
3
+ // kicker and the heading, with the section's links beside them as text
4
+ // links), the lead paragraph, then the issues as a numbered list: each a
5
+ // large two-digit numeral in the accent under a heavy rule, its title and
6
+ // its line. Three to a row on a wide screen, one to a row on a phone.
7
+ import type { ComponentProps } from 'astro/types'
8
+ import Band from '../Band.astro'
9
+ import Prose from '../../Prose.astro'
10
+ import SectionHead from '../SectionHead.astro'
11
+ import type Default from './index.astro'
12
+ import { links, rows } from '../../../lib/section'
13
+ import { text } from '../../../lib/format'
14
+
15
+ type Props = ComponentProps<typeof Default>
16
+
17
+ const { section } = Astro.props
18
+ const issues = rows(section).filter((row) => text(row.title) || text(row.body))
19
+ const numeral = (i: number) => String(i + 1).padStart(2, '0')
20
+ ---
21
+ <Band section={section} class="issues">
22
+ <SectionHead kicker={text(section.copy.kicker)} heading={text(section.copy.heading)} more={links(section)} />
23
+ <Prose value={section.copy.lead} class="lede" />
24
+ {issues.length > 0 && (
25
+ <ol class="numbered" role="list">
26
+ {issues.map((issue, i) => (
27
+ <li class="numbered-item">
28
+ <p class="numbered-numeral" aria-hidden="true">{numeral(i)}</p>
29
+ {text(issue.title) && <h3>{text(issue.title)}</h3>}
30
+ <Prose value={issue.body} class="numbered-body" />
31
+ </li>
32
+ ))}
33
+ </ol>
34
+ )}
35
+ </Band>
36
+
37
+ <style>
38
+ .numbered {
39
+ display: grid;
40
+ grid-template-columns: 1fr;
41
+ gap: 1.75rem;
42
+ list-style: none;
43
+ margin: 0;
44
+ padding: 0;
45
+ }
46
+ .numbered-item {
47
+ border-top: 3px solid var(--ink);
48
+ padding-top: 1.125rem;
49
+ }
50
+ .numbered-numeral {
51
+ margin: 0;
52
+ font-family: var(--font-display);
53
+ font-size: clamp(2.375rem, 2rem + 1.2vw, 3rem);
54
+ font-weight: 800;
55
+ line-height: 1;
56
+ color: var(--accent);
57
+ }
58
+ .numbered-item h3 {
59
+ margin: 0.75rem 0 0.5rem;
60
+ }
61
+ .numbered-item :global(.numbered-body) {
62
+ color: var(--muted);
63
+ font-size: 0.96875rem;
64
+ }
65
+ .numbered-item :global(.numbered-body) > :global(:last-child) {
66
+ margin-bottom: 0;
67
+ }
68
+ @media (min-width: 40rem) {
69
+ .numbered {
70
+ grid-template-columns: repeat(2, minmax(0, 1fr));
71
+ gap: 2.5rem 2.25rem;
72
+ }
73
+ }
74
+ @media (min-width: 60rem) {
75
+ .numbered {
76
+ grid-template-columns: repeat(3, minmax(0, 1fr));
77
+ }
78
+ }
79
+ </style>
@@ -0,0 +1,137 @@
1
+ ---
2
+ // Issues, 'rows' layout (board S22, B, "Alternating rows"): the kicker, the
3
+ // heading and the lead, then each issue as a large row: its picture (16:10,
4
+ // rounded) on one side, and on the other its two-digit number in the accent,
5
+ // its title, its line and its note as a chip ("Week 0"). The picture starts
6
+ // at the left and changes sides with each row on a wide screen; on a phone
7
+ // every row is the picture over the words. A row without a picture shows its
8
+ // number large in the display face on the band's surface in the picture's
9
+ // place. The section's links follow as buttons. Nothing is drawn with no
10
+ // heading, lead or issue.
11
+ import type { ComponentProps } from 'astro/types'
12
+ import Band from '../Band.astro'
13
+ import Prose from '../../Prose.astro'
14
+ import type Default from './index.astro'
15
+ import { issuesOf, numeral } from './issues'
16
+ import { links } from '../../../lib/section'
17
+ import { prose, text } from '../../../lib/format'
18
+
19
+ type Props = ComponentProps<typeof Default>
20
+
21
+ const { section } = Astro.props
22
+ const heading = text(section.copy.heading)
23
+ const kicker = text(section.copy.kicker)
24
+ const issues = issuesOf(section)
25
+ const ctas = links(section)
26
+ const drawn = heading || kicker || prose(section.copy.lead) || issues.length > 0
27
+ ---
28
+ {drawn && (
29
+ <Band section={section} class="issues">
30
+ {kicker && <p class="kicker">{kicker}</p>}
31
+ {heading && <h2>{heading}</h2>}
32
+ <Prose value={section.copy.lead} class="lede" />
33
+ {issues.length > 0 && (
34
+ <ol class="rows" role="list">
35
+ {issues.map((issue, i) => (
36
+ <li class:list={['row', i % 2 === 1 && 'row-flip']}>
37
+ {issue.picture ? (
38
+ <img class="row-picture" src={issue.picture} alt="" loading="lazy" decoding="async" />
39
+ ) : (
40
+ <div class="row-picture row-blank" aria-hidden="true">{numeral(i)}</div>
41
+ )}
42
+ <div class="row-words">
43
+ <p class="row-number" aria-hidden="true">{numeral(i)}</p>
44
+ {issue.title && <h3>{issue.title}</h3>}
45
+ <Prose value={issue.body} class="row-body" />
46
+ {issue.note && <p class="row-note"><span class="chip">{issue.note}</span></p>}
47
+ </div>
48
+ </li>
49
+ ))}
50
+ </ol>
51
+ )}
52
+ {ctas.length > 0 && (
53
+ <p class="actions">
54
+ {ctas.map((link, i) => <a class:list={['button', i > 0 && 'button-quiet']} href={link.href} rel={link.rel}>{link.label}</a>)}
55
+ </p>
56
+ )}
57
+ </Band>
58
+ )}
59
+
60
+ <style>
61
+ .rows {
62
+ display: grid;
63
+ gap: clamp(2rem, 1.5rem + 2vw, 3rem);
64
+ margin: 2rem 0 0;
65
+ padding: 0;
66
+ list-style: none;
67
+ }
68
+ .row {
69
+ display: grid;
70
+ gap: 1.25rem;
71
+ min-width: 0;
72
+ }
73
+ .row-picture {
74
+ display: block;
75
+ width: 100%;
76
+ aspect-ratio: 16 / 10;
77
+ object-fit: cover;
78
+ border-radius: calc(var(--radius) * 1.5);
79
+ }
80
+ /* No picture: the row's number, large, on the band's surface. */
81
+ .row-blank {
82
+ display: grid;
83
+ place-items: center;
84
+ border: 1px solid var(--line);
85
+ background: var(--surface);
86
+ color: var(--accent);
87
+ font-family: var(--font-display);
88
+ font-size: clamp(4rem, 3rem + 4vw, 6.5rem);
89
+ font-weight: 800;
90
+ line-height: 1;
91
+ letter-spacing: -0.03em;
92
+ }
93
+ .row-words {
94
+ min-width: 0;
95
+ }
96
+ .row-words > * {
97
+ margin: 0;
98
+ }
99
+ .row-words .row-number {
100
+ color: var(--accent);
101
+ font-family: var(--font-display);
102
+ font-size: clamp(1.75rem, 1.5rem + 0.8vw, 2.25rem);
103
+ font-weight: 800;
104
+ line-height: 1;
105
+ }
106
+ .row-words h3 {
107
+ margin-top: 0.5rem;
108
+ }
109
+ .row-words :global(.row-body) {
110
+ margin-top: 0.5rem;
111
+ color: var(--muted);
112
+ }
113
+ .row-words :global(.row-body) > :global(:last-child) {
114
+ margin-bottom: 0;
115
+ }
116
+ .row-words .row-note {
117
+ margin-top: 0.875rem;
118
+ }
119
+ /* A chip's ground is the tint band's own colour: on that band it takes the surface, ruled. */
120
+ :global(.bg-band-tint) .row-note .chip {
121
+ background: var(--surface);
122
+ box-shadow: inset 0 0 0 1px var(--line);
123
+ }
124
+ @media (min-width: 48rem) {
125
+ .row {
126
+ grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
127
+ gap: clamp(1.75rem, 4vw, 3.5rem);
128
+ align-items: center;
129
+ }
130
+ .row-flip {
131
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
132
+ }
133
+ .row-flip .row-picture {
134
+ order: 2;
135
+ }
136
+ }
137
+ </style>
@@ -0,0 +1,81 @@
1
+ ---
2
+ // Issues, 'steps' layout (boards A10 and C8, "What happens next"): the
3
+ // section head (the kicker and the heading), the lead, then the issues as
4
+ // numbered steps, each under a rule in the quieter button's colour (the
5
+ // primary): "Step 1" small in the display face and the accent, the step's
6
+ // title and its line. Up to four steps run across a wide screen and one to a
7
+ // row on a phone; more wrap. The section's links follow as buttons.
8
+ import type { ComponentProps } from 'astro/types'
9
+ import Band from '../Band.astro'
10
+ import Prose from '../../Prose.astro'
11
+ import SectionHead from '../SectionHead.astro'
12
+ import type Default from './index.astro'
13
+ import { links, rows } from '../../../lib/section'
14
+ import { text } from '../../../lib/format'
15
+
16
+ type Props = ComponentProps<typeof Default>
17
+
18
+ const { section } = Astro.props
19
+ const steps = rows(section).filter((row) => text(row.title) || text(row.body))
20
+ const ctas = links(section)
21
+ ---
22
+ <Band section={section} class="issues">
23
+ <SectionHead kicker={text(section.copy.kicker)} heading={text(section.copy.heading)} more={[]} />
24
+ <Prose value={section.copy.lead} class="lede" />
25
+ {steps.length > 0 && (
26
+ <ol class="steps" role="list">
27
+ {steps.map((step, i) => (
28
+ <li class="step">
29
+ <p class="step-label">Step {i + 1}</p>
30
+ {text(step.title) && <h3 class="step-title">{text(step.title)}</h3>}
31
+ <Prose value={step.body} class="step-body" />
32
+ </li>
33
+ ))}
34
+ </ol>
35
+ )}
36
+ {ctas.length > 0 && (
37
+ <p class="actions">
38
+ {ctas.map((link, i) => <a class:list={['button', i > 0 && 'button-quiet']} href={link.href} rel={link.rel}>{link.label}</a>)}
39
+ </p>
40
+ )}
41
+ </Band>
42
+
43
+ <style>
44
+ .steps {
45
+ display: grid;
46
+ gap: 1.75rem 1.25rem;
47
+ grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
48
+ margin: 1.5rem 0 0;
49
+ padding: 0;
50
+ list-style: none;
51
+ }
52
+ .step {
53
+ padding-top: 1rem;
54
+ border-top: 3px solid var(--button-2);
55
+ }
56
+ .step > * {
57
+ margin: 0;
58
+ }
59
+ .step-label {
60
+ color: var(--accent);
61
+ font-family: var(--font-display);
62
+ font-size: 1rem;
63
+ font-weight: 800;
64
+ letter-spacing: 0.06em;
65
+ text-transform: uppercase;
66
+ }
67
+ .step-title {
68
+ margin-top: 0.25rem;
69
+ font-size: 1.5rem;
70
+ font-weight: 700;
71
+ line-height: 1.2;
72
+ }
73
+ .step :global(.step-body) {
74
+ margin-top: 0.375rem;
75
+ color: var(--muted);
76
+ font-size: 0.96875rem;
77
+ }
78
+ .step :global(.step-body) > :global(:last-child) {
79
+ margin-bottom: 0;
80
+ }
81
+ </style>