pi-durable-bot 0.8.4 → 0.8.6

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.
package/kit/pots.css CHANGED
@@ -1,46 +1,92 @@
1
1
  /*
2
- * Pots page kit: a plain, readable look for pages that bots write. Phone first, light and dark. Plain HTML looks right
3
- * without classes; the few classes are listed in the pages skill (skills/pages/SKILL.md).
2
+ * Pots page kit: the stylesheet. Link it from a page as ../../__pots/kit/pots.css.
3
+ * Reading first, calm and plain: Inter for Latin text and the system's font for Chinese, Japanese and Korean, text in
4
+ * near-black greys, hairlines instead of boxes, and one accent colour for what the reader acts on or looks for:
5
+ * links, key numbers, the selected and the recommended choice, focus. Status colours mean a status only.
6
+ * No gradients, glows or shadows. Light and dark. pots-ui.js adds the moving parts (charts from tables, tabs, sorting,
7
+ * filtering); everything reads without it.
8
+ * Type and spacing after Linear's docs: weights 400 / 510 / 590, title 2.5rem at -.022em, radii 4/6/8/12.
4
9
  */
5
10
 
6
- :root {
7
- color-scheme: light dark;
8
- --pots-bg: #f7f7f5;
9
- --pots-surface: #ffffff;
10
- --pots-text: #1d1d1f;
11
- --pots-muted: #5f6368;
12
- --pots-border: #dcdcd7;
13
- --pots-accent: #1f7a70;
14
- --pots-accent-text: #ffffff;
15
- --pots-accent-soft: #e3f1ee;
16
- --pots-good: #1e7d3a;
17
- --pots-good-soft: #e5f4e9;
18
- --pots-bad: #b3261e;
19
- --pots-bad-soft: #fbe9e7;
20
- --pots-warn-soft: #fff4d6;
21
- --pots-code-bg: #efefeb;
22
- --pots-radius: 10px;
23
- --pots-font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
24
- --pots-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
11
+ @font-face {
12
+ font-family: "Inter Variable";
13
+ font-style: normal;
14
+ font-display: swap;
15
+ font-weight: 100 900;
16
+ /* Inter 4, OFL 1.1: fonts/Inter-LICENSE.txt */
17
+ src: url("fonts/InterVariable-latin.woff2") format("woff2-variations");
18
+ /* Latin only, without curly quotes and the ellipsis, so Chinese text keeps its own full-width “” and …. */
19
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
20
+ U+2000-2017, U+201E-2025, U+2027-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
25
21
  }
26
22
 
27
- @media (prefers-color-scheme: dark) {
28
- :root {
29
- --pots-bg: #141516;
30
- --pots-surface: #1d1f21;
31
- --pots-text: #e8e8e6;
32
- --pots-muted: #a2a6ab;
33
- --pots-border: #34373a;
34
- --pots-accent: #4fb3a5;
35
- --pots-accent-text: #0c1a18;
36
- --pots-accent-soft: #1b3330;
37
- --pots-good: #6cc58a;
38
- --pots-good-soft: #18301f;
39
- --pots-bad: #f08a80;
40
- --pots-bad-soft: #3a1f1c;
41
- --pots-warn-soft: #3a3118;
42
- --pots-code-bg: #26292c;
43
- }
23
+ :root {
24
+ color-scheme: light dark;
25
+ /* The accent, light and dark, in one place: a muted teal. A page can change it with one line of its own:
26
+ :root { --pots-accent: light-dark(#305a88, #8bb0db); } (a muted slate blue) */
27
+ --pots-accent: light-dark(#0d7466, #5fbfae);
28
+ --pots-bg: light-dark(#ffffff, #0c0d0f);
29
+ --pots-soft: light-dark(#f7f7f8, #141518);
30
+ --pots-soft-2: light-dark(#f0f1f3, #1a1c1f);
31
+ --pots-text: light-dark(#1b1d22, #eceef1); /* headings, names, numbers */
32
+ --pots-text-2: light-dark(#2e3238, #d3d7de); /* body text */
33
+ --pots-muted: light-dark(#4f545d, #a2a8b2); /* lead text, explanations, labels: 7.6:1 on white */
34
+ --pots-faint: light-dark(#6a6f78, #868c96); /* section numbers, placeholders, separators: 5:1 on white */
35
+ --pots-line: light-dark(#e4e5e8, #24262b);
36
+ --pots-line-2: light-dark(#d3d5da, #33363c);
37
+ --pots-good: light-dark(#3a7d16, #8cc265); /* a yellow-green, so it is not the teal accent */
38
+ --pots-warn: light-dark(#a95006, #e09a5c);
39
+ --pots-bad: light-dark(#c2352f, #e8817a);
40
+ --pots-info: var(--pots-accent);
41
+ --pots-good-dot: light-dark(#5aa52a, #6fb23f);
42
+ --pots-warn-dot: light-dark(#f2792f, #e0874a);
43
+ --pots-bad-dot: light-dark(#e5534b, #e0645c);
44
+ /* chart colours, in order: the accent first, no violet, no green next to the teal */
45
+ --pots-c1: var(--pots-accent);
46
+ --pots-c2: light-dark(#d9772b, #d99062);
47
+ --pots-c3: light-dark(#4f7fa8, #7ea6c8);
48
+ --pots-c4: light-dark(#c49a1a, #cdb04e);
49
+ --pots-c5: light-dark(#cc5470, #d6809a);
50
+ --pots-c6: light-dark(#7f9a3a, #a3b85e);
51
+ --pots-c7: light-dark(#9298a1, #8e949d);
52
+ --pots-r-s: 4px;
53
+ --pots-r: 6px;
54
+ --pots-r-m: 8px;
55
+ --pots-r-l: 12px;
56
+ --pots-measure: 44rem;
57
+ --pots-width: 64rem;
58
+ --pots-toc: 12rem;
59
+ --pots-font: "Inter Variable", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
60
+ "Noto Sans CJK SC", "Source Han Sans SC", "Hiragino Sans GB", "Microsoft YaHei", Roboto, sans-serif;
61
+ --pots-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Noto Sans Mono CJK SC", "DejaVu Sans Mono", monospace;
62
+ /* Made from the colours above, so they follow the accent and dark mode. */
63
+ --pots-accent-text: var(--pots-bg);
64
+ --pots-accent-soft: light-dark(color-mix(in srgb, var(--pots-accent) 7%, var(--pots-bg)), color-mix(in srgb, var(--pots-accent) 9%, var(--pots-bg)));
65
+ --pots-accent-line: light-dark(color-mix(in srgb, var(--pots-accent) 32%, var(--pots-line)), color-mix(in srgb, var(--pots-accent) 34%, var(--pots-line)));
66
+ --pots-good-soft: light-dark(color-mix(in srgb, var(--pots-good) 7%, var(--pots-bg)), color-mix(in srgb, var(--pots-good) 8%, var(--pots-bg)));
67
+ --pots-warn-soft: light-dark(color-mix(in srgb, var(--pots-warn) 7%, var(--pots-bg)), color-mix(in srgb, var(--pots-warn) 8%, var(--pots-bg)));
68
+ --pots-bad-soft: light-dark(color-mix(in srgb, var(--pots-bad) 7%, var(--pots-bg)), color-mix(in srgb, var(--pots-bad) 8%, var(--pots-bg)));
69
+ --pots-raised: light-dark(var(--pots-bg), var(--pots-soft));
70
+ /* old names, kept for pages written for earlier kits */
71
+ --pots-surface: var(--pots-bg);
72
+ --pots-border: var(--pots-line);
73
+ --pots-code-bg: var(--pots-soft);
74
+ --pots-radius-s: var(--pots-r);
75
+ --pots-radius: var(--pots-r-m);
76
+ --pots-radius-l: var(--pots-r-l);
77
+ --pots-radius-xl: var(--pots-r-l);
78
+ --pots-tint: var(--pots-accent-soft);
79
+ --pots-tint-line: var(--pots-accent-line);
80
+ --pots-shadow-1: none;
81
+ --pots-shadow-2: none;
82
+ --pots-accent-2: var(--pots-accent);
83
+ }
84
+ /* The reader's choice from the switch (pots-ui.js or pots.js) wins over the system's; every colour above follows it. */
85
+ :root[data-pots-theme="light"] {
86
+ color-scheme: light;
87
+ }
88
+ :root[data-pots-theme="dark"] {
89
+ color-scheme: dark;
44
90
  }
45
91
 
46
92
  *,
@@ -48,245 +94,1349 @@
48
94
  *::after {
49
95
  box-sizing: border-box;
50
96
  }
51
-
52
97
  html {
53
98
  -webkit-text-size-adjust: 100%;
54
99
  text-size-adjust: 100%;
100
+ background: var(--pots-bg);
55
101
  }
56
-
102
+ /* text-large: 1.0625rem / 1.6, the size of Linear's docs prose on a computer. Chinese gets more leading. */
57
103
  body {
58
104
  margin: 0;
59
- padding: 16px;
60
105
  background: var(--pots-bg);
61
- color: var(--pots-text);
62
- font: 17px/1.55 var(--pots-font);
106
+ color: var(--pots-text-2);
107
+ font: 400 1.0625rem/1.6 var(--pots-font);
108
+ font-optical-sizing: auto;
109
+ font-feature-settings: "cv01", "ss03";
110
+ -webkit-font-smoothing: antialiased;
111
+ -moz-osx-font-smoothing: grayscale;
63
112
  overflow-wrap: break-word;
113
+ text-autospace: normal;
114
+ }
115
+ body:lang(zh),
116
+ body:lang(ja),
117
+ body:lang(ko) {
118
+ line-height: 1.78;
119
+ }
120
+ ::selection {
121
+ background: color-mix(in srgb, var(--pots-accent) 22%, transparent);
64
122
  }
65
123
 
124
+ /* ---- The page ---- */
66
125
  main,
67
126
  .pots-page {
68
- max-width: 44rem;
127
+ width: 100%;
128
+ max-width: calc(var(--pots-width) + 48px);
69
129
  margin: 0 auto;
70
- padding-bottom: 48px;
130
+ padding: 28px max(20px, env(safe-area-inset-right, 0px)) 80px max(20px, env(safe-area-inset-left, 0px));
71
131
  }
72
-
73
132
  @media (min-width: 720px) {
74
- body {
75
- padding: 32px 24px;
133
+ main,
134
+ .pots-page {
135
+ padding: 72px 32px 120px;
76
136
  }
77
137
  }
138
+ :where(p, ul, ol, dl, blockquote, h1, h2, h3, h4, details, header, address, label, figure, .pots-scroll),
139
+ :is(main, .pots-page) > header > * {
140
+ max-width: var(--pots-measure);
141
+ }
142
+ .pots-wide {
143
+ max-width: none;
144
+ }
145
+ [id] {
146
+ scroll-margin-top: 72px;
147
+ }
78
148
 
79
- /* ---- Text ---- */
80
-
149
+ /* ---- Type: Linear's title scale, weight 590, tight tracking for Latin and lighter for CJK ---- */
81
150
  h1,
82
151
  h2,
83
152
  h3,
84
153
  h4 {
85
- line-height: 1.25;
86
- margin: 1.6em 0 0.5em;
154
+ color: var(--pots-text);
155
+ font-weight: 590;
156
+ text-wrap: balance;
87
157
  }
88
158
  h1 {
89
- font-size: 1.7rem;
90
- margin-top: 0.4em;
159
+ margin: 0 0 16px;
160
+ font-size: 2.5rem; /* title-5 */
161
+ line-height: 1.15;
162
+ letter-spacing: -0.022em;
91
163
  }
92
164
  h2 {
93
- font-size: 1.3rem;
165
+ margin: 0 0 12px;
166
+ font-size: 1.5rem; /* title-3 */
167
+ line-height: 1.33;
168
+ letter-spacing: -0.012em;
94
169
  }
95
170
  h3 {
96
- font-size: 1.1rem;
171
+ margin: 32px 0 8px;
172
+ font-size: 1.0625rem; /* title-1 */
173
+ line-height: 1.4;
174
+ letter-spacing: -0.012em;
175
+ }
176
+ h4 {
177
+ margin: 24px 0 6px;
178
+ font-size: 0.9375rem;
179
+ line-height: 1.6;
180
+ }
181
+ :lang(zh) :is(h1, h2) {
182
+ letter-spacing: -0.008em;
183
+ }
184
+ :lang(zh) h1 {
185
+ line-height: 1.25;
97
186
  }
98
187
  p,
99
188
  ul,
100
189
  ol,
190
+ dl,
101
191
  blockquote,
102
192
  pre,
103
193
  table,
104
194
  figure {
105
195
  margin: 0 0 1em;
106
196
  }
197
+ p {
198
+ text-wrap: pretty;
199
+ }
107
200
  ul,
108
201
  ol {
109
202
  padding-left: 1.4em;
110
203
  }
111
204
  li + li {
112
- margin-top: 0.25em;
205
+ margin-top: 4px;
206
+ }
207
+ li::marker {
208
+ color: var(--pots-faint);
113
209
  }
210
+ b,
211
+ strong {
212
+ font-weight: 590;
213
+ color: var(--pots-text);
214
+ }
215
+ /* A link is in the accent, with a light underline that darkens under the pointer. */
114
216
  a {
115
217
  color: var(--pots-accent);
116
- text-underline-offset: 2px;
218
+ text-decoration: underline;
219
+ text-decoration-color: var(--pots-accent-line);
220
+ text-underline-offset: 3px;
221
+ text-decoration-thickness: 1px;
222
+ transition: text-decoration-color 0.12s;
117
223
  }
118
- hr {
119
- border: 0;
120
- border-top: 1px solid var(--pots-border);
121
- margin: 2em 0;
224
+ a:hover {
225
+ text-decoration-color: currentColor;
122
226
  }
123
- img,
124
- svg,
125
- video,
126
- canvas {
127
- max-width: 100%;
128
- height: auto;
227
+ a:focus-visible {
228
+ outline: 2px solid var(--pots-accent);
229
+ outline-offset: 2px;
230
+ border-radius: 2px;
129
231
  }
130
- blockquote {
131
- margin-left: 0;
132
- padding: 0.2em 0 0.2em 1em;
133
- border-left: 3px solid var(--pots-border);
134
- color: var(--pots-muted);
232
+ hr {
233
+ height: 1px;
234
+ margin: 40px 0;
235
+ border: 0;
236
+ background: var(--pots-line);
135
237
  }
136
238
  code,
137
239
  kbd,
138
240
  pre {
139
241
  font-family: var(--pots-mono);
140
- font-size: 0.9em;
242
+ font-size: 0.86em;
141
243
  }
142
244
  code {
143
- background: var(--pots-code-bg);
144
245
  padding: 0.1em 0.35em;
145
- border-radius: 5px;
246
+ border: 1px solid var(--pots-line);
247
+ border-radius: var(--pots-r-s);
248
+ background: var(--pots-soft);
249
+ color: var(--pots-text);
146
250
  }
147
251
  pre {
148
- background: var(--pots-code-bg);
149
- padding: 12px 14px;
150
- border-radius: var(--pots-radius);
252
+ padding: 14px 16px;
253
+ border: 1px solid var(--pots-line);
254
+ border-radius: var(--pots-r-m);
255
+ background: var(--pots-soft);
151
256
  overflow-x: auto;
257
+ line-height: 1.6;
152
258
  }
153
259
  pre code {
154
- background: none;
155
260
  padding: 0;
261
+ border: 0;
262
+ background: none;
263
+ }
264
+ small {
265
+ font-size: 0.875em;
156
266
  }
157
267
  small,
158
268
  .pots-muted {
159
269
  color: var(--pots-muted);
160
270
  }
161
271
 
162
- /* ---- Tables: they scroll sideways on a phone instead of squeezing ---- */
272
+ /* ---- Sections: space, not lines ---- */
273
+ :is(main, .pots-page) section {
274
+ margin-top: 88px;
275
+ }
276
+ :is(main, .pots-page) > form > section:first-child {
277
+ margin-top: 88px;
278
+ }
279
+ section > h2:first-child {
280
+ margin-bottom: 16px;
281
+ }
282
+ /* A section number: the accent, the same size, so the words lead. */
283
+ .pots-no {
284
+ display: inline-block;
285
+ min-width: 1.1em;
286
+ margin-right: 0.45em;
287
+ color: var(--pots-accent);
288
+ font-variant-numeric: tabular-nums;
289
+ }
290
+
291
+ /* ---- The opening: no panel. A small label in the accent, the title, one sentence in the secondary grey, a quiet line ---- */
292
+ :is(main, .pots-page) > header {
293
+ margin: 0 0 56px;
294
+ max-width: none;
295
+ }
296
+ :is(main, .pots-page) > header > * {
297
+ max-width: 44rem;
298
+ }
299
+ .pots-eyebrow {
300
+ margin: 0 0 14px;
301
+ color: var(--pots-accent);
302
+ font-size: 0.8125rem; /* text-mini */
303
+ font-weight: 510;
304
+ line-height: 1.5;
305
+ letter-spacing: -0.01em;
306
+ }
307
+ header > h1 + p {
308
+ margin-bottom: 20px;
309
+ color: var(--pots-muted);
310
+ font-size: 1.25rem;
311
+ line-height: 1.6;
312
+ letter-spacing: -0.012em;
313
+ }
314
+ header > h1 + p:lang(zh) {
315
+ letter-spacing: 0;
316
+ line-height: 1.7;
317
+ }
318
+ /* Who and when: plain text in one line, a dot between the parts; an icon may lead each part. */
319
+ .pots-meta {
320
+ display: flex;
321
+ flex-wrap: wrap;
322
+ gap: 4px 0;
323
+ margin: 0 0 8px;
324
+ color: var(--pots-muted);
325
+ font-size: 0.8125rem;
326
+ font-weight: 510;
327
+ line-height: 1.5;
328
+ }
329
+ .pots-meta > * + *::after {
330
+ content: none;
331
+ }
332
+ .pots-meta > * + * {
333
+ margin-left: 0;
334
+ }
335
+ .pots-meta > *:not(:last-child)::after {
336
+ content: "·";
337
+ margin: 0 10px;
338
+ color: var(--pots-faint);
339
+ }
340
+ header > .pots-muted:last-child {
341
+ font-size: 0.875rem;
342
+ }
343
+
344
+ /* ---- Status words: a small dot in the status colour, the words stay in the text colour.
345
+ With data-icon the icon takes the dot's place, in the same colour. ---- */
346
+ .pots-good,
347
+ .pots-warn,
348
+ .pots-bad,
349
+ .pots-info {
350
+ --pots-k: var(--pots-good-dot);
351
+ }
352
+ .pots-warn { --pots-k: var(--pots-warn-dot); }
353
+ .pots-bad { --pots-k: var(--pots-bad-dot); }
354
+ .pots-info { --pots-k: var(--pots-accent); }
355
+ :is(span, b, strong, em, small).pots-good,
356
+ :is(span, b, strong, em, small).pots-warn,
357
+ :is(span, b, strong, em, small).pots-bad {
358
+ color: var(--pots-text-2);
359
+ }
360
+ :is(span, b, strong, em, small):is(.pots-good, .pots-warn, .pots-bad):not([data-icon])::before {
361
+ content: "";
362
+ display: inline-block;
363
+ width: 7px;
364
+ height: 7px;
365
+ margin: 0 7px 0 1px;
366
+ vertical-align: 0.12em;
367
+ border-radius: 50%;
368
+ background: var(--pots-k);
369
+ }
370
+ :is(span, b, strong, em, small):is(.pots-good, .pots-warn, .pots-bad, .pots-info)[data-icon]::before {
371
+ background: var(--pots-k);
372
+ }
373
+
374
+ /* ---- Icons: data-icon="name" on any element puts a small line drawing before its text, in a muted colour.
375
+ An empty <i data-icon="lock"></i> is the icon alone. CSS only (data: URLs), so it works offline and under the CSP.
376
+ Icons mark the places a reader scans: the opening, notes, questions, labels. Section headings and folds stay
377
+ plain, so an icon there draws nothing. ---- */
378
+ [data-icon]::before {
379
+ content: "";
380
+ display: inline-block;
381
+ flex: none;
382
+ width: 1.05em;
383
+ height: 1.05em;
384
+ margin-right: 0.4em;
385
+ vertical-align: -0.16em;
386
+ background: var(--pots-icon-colour, var(--pots-faint));
387
+ -webkit-mask: var(--pots-icon) center / contain no-repeat;
388
+ mask: var(--pots-icon) center / contain no-repeat;
389
+ }
390
+ [data-icon]:empty::before {
391
+ margin-right: 0;
392
+ }
393
+ :is(h1, h2, h3, h4, summary)[data-icon]::before {
394
+ content: none;
395
+ }
396
+ .pots-eyebrow[data-icon]::before {
397
+ background: currentColor;
398
+ }
399
+ :root {
400
+ --pots-i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
401
+ --pots-i-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E");
402
+ --pots-i-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E");
403
+ --pots-i-warn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0zM12 9v4M12 17h.01'/%3E%3C/svg%3E");
404
+ --pots-i-question: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.1 9a3 3 0 0 1 5.8 1c0 2-3 3-3 3M12 17h.01'/%3E%3C/svg%3E");
405
+ --pots-i-ban: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m4.9 4.9 14.2 14.2'/%3E%3C/svg%3E");
406
+ --pots-i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E");
407
+ --pots-i-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7'/%3E%3C/svg%3E");
408
+ --pots-i-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M19 12l-7 7-7-7'/%3E%3C/svg%3E");
409
+ --pots-i-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E");
410
+ --pots-i-calendar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
411
+ --pots-i-user: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E");
412
+ --pots-i-users: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='4'/%3E%3Cpath d='M2 21a7 7 0 0 1 14 0M16 3.1a4 4 0 0 1 0 7.8M22 21a7 7 0 0 0-4-6.3'/%3E%3C/svg%3E");
413
+ --pots-i-bot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='8' width='16' height='12' rx='3'/%3E%3Cpath d='M12 8V4M9 13v2M15 13v2M2 14h2M20 14h2'/%3E%3C/svg%3E");
414
+ --pots-i-chat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
415
+ --pots-i-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E");
416
+ --pots-i-link: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.5.5l3-3a5 5 0 0 0-7-7l-1.7 1.7M14 11a5 5 0 0 0-7.5-.5l-3 3a5 5 0 0 0 7 7l1.7-1.7'/%3E%3C/svg%3E");
417
+ --pots-i-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E");
418
+ --pots-i-key: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7.5' cy='15.5' r='5.5'/%3E%3Cpath d='m21 2-9.6 9.6M15.5 7.5l3 3L22 7l-3-3'/%3E%3C/svg%3E");
419
+ --pots-i-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
420
+ --pots-i-eye: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
421
+ --pots-i-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
422
+ --pots-i-chart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18M8 17v-6M13 17V7M18 17v-4'/%3E%3C/svg%3E");
423
+ --pots-i-file: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8zM14 2v6h6M8 13h8M8 17h5'/%3E%3C/svg%3E");
424
+ --pots-i-code: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m16 18 6-6-6-6M8 6l-6 6 6 6'/%3E%3C/svg%3E");
425
+ --pots-i-terminal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 17 6-6-6-6M12 19h8'/%3E%3C/svg%3E");
426
+ --pots-i-settings: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21v-7M4 10V3M12 21v-9M12 8V3M20 21v-5M20 12V3M1 14h6M9 8h6M17 16h6'/%3E%3C/svg%3E");
427
+ --pots-i-money: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M16 8h-6a2 2 0 0 0 0 4h4a2 2 0 0 1 0 4H8M12 6v2M12 16v2'/%3E%3C/svg%3E");
428
+ --pots-i-place: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
429
+ --pots-i-globe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15 15 0 0 1 0 20M12 2a15 15 0 0 0 0 20'/%3E%3C/svg%3E");
430
+ --pots-i-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 2 3.1 6.3 6.9 1-5 4.9 1.2 6.8L12 17.8 5.8 21l1.2-6.8-5-4.9 6.9-1z'/%3E%3C/svg%3E");
431
+ --pots-i-bolt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2 3 14h9l-1 8 10-12h-9z'/%3E%3C/svg%3E");
432
+ --pots-i-flag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 22V4M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1'/%3E%3C/svg%3E");
433
+ --pots-i-bell: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9M10.3 21a1.9 1.9 0 0 0 3.4 0'/%3E%3C/svg%3E");
434
+ --pots-i-list: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01'/%3E%3C/svg%3E");
435
+ --pots-i-sun: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E");
436
+ --pots-i-moon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z'/%3E%3C/svg%3E");
437
+ }
438
+ [data-icon="check"] { --pots-icon: var(--pots-i-check); }
439
+ [data-icon="x"] { --pots-icon: var(--pots-i-x); }
440
+ [data-icon="info"] { --pots-icon: var(--pots-i-info); }
441
+ [data-icon="warn"] { --pots-icon: var(--pots-i-warn); }
442
+ [data-icon="question"] { --pots-icon: var(--pots-i-question); }
443
+ [data-icon="ban"] { --pots-icon: var(--pots-i-ban); }
444
+ [data-icon="arrow"] { --pots-icon: var(--pots-i-arrow); }
445
+ [data-icon="up"] { --pots-icon: var(--pots-i-up); }
446
+ [data-icon="down"] { --pots-icon: var(--pots-i-down); }
447
+ [data-icon="clock"] { --pots-icon: var(--pots-i-clock); }
448
+ [data-icon="calendar"] { --pots-icon: var(--pots-i-calendar); }
449
+ [data-icon="user"] { --pots-icon: var(--pots-i-user); }
450
+ [data-icon="users"] { --pots-icon: var(--pots-i-users); }
451
+ [data-icon="bot"] { --pots-icon: var(--pots-i-bot); }
452
+ [data-icon="chat"] { --pots-icon: var(--pots-i-chat); }
453
+ [data-icon="mail"] { --pots-icon: var(--pots-i-mail); }
454
+ [data-icon="link"] { --pots-icon: var(--pots-i-link); }
455
+ [data-icon="lock"] { --pots-icon: var(--pots-i-lock); }
456
+ [data-icon="key"] { --pots-icon: var(--pots-i-key); }
457
+ [data-icon="shield"] { --pots-icon: var(--pots-i-shield); }
458
+ [data-icon="eye"] { --pots-icon: var(--pots-i-eye); }
459
+ [data-icon="search"] { --pots-icon: var(--pots-i-search); }
460
+ [data-icon="chart"] { --pots-icon: var(--pots-i-chart); }
461
+ [data-icon="file"] { --pots-icon: var(--pots-i-file); }
462
+ [data-icon="code"] { --pots-icon: var(--pots-i-code); }
463
+ [data-icon="terminal"] { --pots-icon: var(--pots-i-terminal); }
464
+ [data-icon="settings"] { --pots-icon: var(--pots-i-settings); }
465
+ [data-icon="money"] { --pots-icon: var(--pots-i-money); }
466
+ [data-icon="place"] { --pots-icon: var(--pots-i-place); }
467
+ [data-icon="globe"] { --pots-icon: var(--pots-i-globe); }
468
+ [data-icon="star"] { --pots-icon: var(--pots-i-star); }
469
+ [data-icon="bolt"] { --pots-icon: var(--pots-i-bolt); }
470
+ [data-icon="flag"] { --pots-icon: var(--pots-i-flag); }
471
+ [data-icon="bell"] { --pots-icon: var(--pots-i-bell); }
472
+ [data-icon="list"] { --pots-icon: var(--pots-i-list); }
473
+ [data-icon="sun"] { --pots-icon: var(--pots-i-sun); }
474
+ [data-icon="moon"] { --pots-icon: var(--pots-i-moon); }
475
+
476
+ /* ---- Contents. Phone: a row that scrolls sideways. Computer: Linear's sidebar list at the left ---- */
477
+ .pots-toc {
478
+ position: sticky;
479
+ top: 0;
480
+ z-index: 5;
481
+ display: flex;
482
+ gap: 2px;
483
+ overflow-x: auto;
484
+ scrollbar-width: none;
485
+ margin: 0 -20px 40px;
486
+ padding: 8px 14px;
487
+ background: color-mix(in srgb, var(--pots-bg) 90%, transparent);
488
+ -webkit-backdrop-filter: blur(12px);
489
+ backdrop-filter: blur(12px);
490
+ border-bottom: 1px solid var(--pots-line);
491
+ }
492
+ .pots-toc::-webkit-scrollbar {
493
+ display: none;
494
+ }
495
+ .pots-toc a {
496
+ flex: none;
497
+ padding: 4px 8px;
498
+ border-radius: var(--pots-r);
499
+ color: var(--pots-muted);
500
+ font-size: 0.8125rem;
501
+ font-weight: 510;
502
+ line-height: 1.5;
503
+ letter-spacing: -0.01em;
504
+ text-decoration: none;
505
+ transition: color 0.12s, background-color 0.12s;
506
+ }
507
+ .pots-toc a:hover {
508
+ color: var(--pots-text);
509
+ background: var(--pots-soft);
510
+ }
511
+ .pots-toc a[aria-current="true"] {
512
+ color: var(--pots-accent);
513
+ background: var(--pots-accent-soft);
514
+ }
515
+ .pots-toc a:focus-visible {
516
+ outline: 2px solid var(--pots-accent);
517
+ outline-offset: -2px;
518
+ }
519
+ @media (min-width: 720px) {
520
+ .pots-toc {
521
+ margin: 0 -32px 48px;
522
+ padding: 8px 26px;
523
+ }
524
+ }
525
+ @media (min-width: 1080px) {
526
+ :is(main, .pots-page):has(> .pots-toc) {
527
+ max-width: calc(var(--pots-width) + var(--pots-toc) + 64px + 64px);
528
+ padding-left: calc(32px + var(--pots-toc) + 64px);
529
+ }
530
+ .pots-toc {
531
+ position: fixed;
532
+ top: 72px;
533
+ left: calc(max(0px, (100vw - (var(--pots-width) + var(--pots-toc) + 64px + 64px)) / 2) + 32px);
534
+ width: var(--pots-toc);
535
+ max-height: calc(100vh - 120px);
536
+ overflow-y: auto;
537
+ flex-direction: column;
538
+ gap: 1px;
539
+ margin: 0;
540
+ padding: 0;
541
+ background: none;
542
+ -webkit-backdrop-filter: none;
543
+ backdrop-filter: none;
544
+ border-bottom: 0;
545
+ }
546
+ .pots-toc::before {
547
+ content: "On this page";
548
+ display: block;
549
+ padding: 0 8px 8px;
550
+ color: var(--pots-faint);
551
+ font-size: 0.75rem;
552
+ font-weight: 510;
553
+ line-height: 1.4;
554
+ }
555
+ .pots-toc:lang(zh)::before {
556
+ content: "本页内容";
557
+ }
558
+ .pots-toc a {
559
+ padding: 3px 8px;
560
+ white-space: normal;
561
+ }
562
+ }
563
+
564
+ /* ---- Layout blocks ---- */
565
+ .pots-cols {
566
+ display: grid;
567
+ grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
568
+ gap: 24px 48px;
569
+ margin: 0 0 1.2em;
570
+ align-items: start;
571
+ }
572
+ .pots-cols > * {
573
+ min-width: 0;
574
+ margin: 0;
575
+ }
576
+ .pots-grid {
577
+ display: grid;
578
+ grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
579
+ gap: 16px;
580
+ margin: 0 0 1.2em;
581
+ }
582
+
583
+ .pots-row {
584
+ display: flex;
585
+ flex-wrap: wrap;
586
+ gap: 16px;
587
+ }
588
+ .pots-row > * {
589
+ flex: 1 1 12rem;
590
+ margin: 0;
591
+ }
592
+
593
+ /* A card: no box. A hairline over it and its heading; a status shows as a dot before the heading, or as the
594
+ heading's icon in the status colour. .pots-info is the card that leads (the one to read first, or the choice you
595
+ recommend): a fine accent border and a light tint. */
596
+ .pots-card {
597
+ --pots-k: var(--pots-faint);
598
+ min-width: 0;
599
+ padding-top: 16px;
600
+ border-top: 1px solid var(--pots-line);
601
+ }
602
+ .pots-card.pots-good { --pots-k: var(--pots-good-dot); }
603
+ .pots-card.pots-warn { --pots-k: var(--pots-warn-dot); }
604
+ .pots-card.pots-bad { --pots-k: var(--pots-bad-dot); }
605
+ .pots-card.pots-info {
606
+ --pots-k: var(--pots-accent);
607
+ padding: 16px 20px 18px;
608
+ border: 1px solid var(--pots-accent-line);
609
+ border-radius: var(--pots-r-l);
610
+ background: var(--pots-accent-soft);
611
+ }
612
+ .pots-card > :is(h2, h3, h4):first-child {
613
+ display: flex;
614
+ align-items: center;
615
+ gap: 8px;
616
+ margin: 0 0 12px;
617
+ font-size: 0.9375rem;
618
+ line-height: 1.5;
619
+ }
620
+ .pots-card > :is(h2, h3, h4):first-child::before {
621
+ content: "";
622
+ flex: none;
623
+ width: 8px;
624
+ height: 8px;
625
+ margin: 0;
626
+ border-radius: 50%;
627
+ background: var(--pots-k);
628
+ -webkit-mask: none;
629
+ mask: none;
630
+ }
631
+ .pots-card > :is(h2, h3, h4)[data-icon]:first-child::before {
632
+ width: 16px;
633
+ height: 16px;
634
+ border-radius: 0;
635
+ -webkit-mask: var(--pots-icon) center / contain no-repeat;
636
+ mask: var(--pots-icon) center / contain no-repeat;
637
+ }
638
+ .pots-card.pots-info > :is(h2, h3, h4):first-child {
639
+ color: var(--pots-accent);
640
+ }
641
+ .pots-card > :first-child {
642
+ margin-top: 0;
643
+ }
644
+ .pots-card > :last-child {
645
+ margin-bottom: 0;
646
+ }
647
+ .pots-card p {
648
+ font-size: 0.9375rem;
649
+ }
650
+ a.pots-card {
651
+ display: block;
652
+ color: inherit;
653
+ text-decoration: none;
654
+ }
655
+ a.pots-card:hover > :is(h2, h3, h4):first-child {
656
+ color: var(--pots-accent);
657
+ }
658
+ .pots-cols > * > :first-child,
659
+ [data-pots-tabs] > * > :first-child {
660
+ margin-top: 0;
661
+ }
662
+ .pots-cols > * > :last-child {
663
+ margin-bottom: 0;
664
+ }
665
+
666
+ /* Key numbers: <div class="pots-stats"><div class="pots-stat"><b>$229</b><span>a week for two</span></div>…</div>
667
+ A hairline over each, the number large, its name under it. .pots-info puts the number in the accent, a status
668
+ colour means that status. A change: <small class="pots-delta pots-good" data-icon="up">12% on last week</small>.
669
+ data-icon on the stat puts its icon at the top right. */
670
+ .pots-stats {
671
+ display: grid;
672
+ grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
673
+ gap: 16px 24px;
674
+ margin: 0 0 1.6em;
675
+ }
676
+ .pots-stat {
677
+ --pots-k: var(--pots-faint);
678
+ position: relative;
679
+ min-width: 0;
680
+ padding-top: 14px;
681
+ border-top: 1px solid var(--pots-line);
682
+ line-height: 1.4;
683
+ }
684
+ .pots-stat > :is(b, strong) {
685
+ display: block;
686
+ color: var(--pots-text);
687
+ font-size: clamp(1.75rem, 1.45rem + 1vw, 2.25rem);
688
+ font-weight: 590;
689
+ line-height: 1.1;
690
+ letter-spacing: -0.022em;
691
+ font-variant-numeric: tabular-nums;
692
+ }
693
+ .pots-stat > span,
694
+ .pots-stat > small {
695
+ display: block;
696
+ margin-top: 6px;
697
+ color: var(--pots-muted);
698
+ font-size: 0.875rem;
699
+ }
700
+ .pots-stat.pots-info > :is(b, strong) { color: var(--pots-accent); }
701
+ .pots-stat.pots-good > :is(b, strong) { color: var(--pots-good); }
702
+ .pots-stat.pots-warn > :is(b, strong) { color: var(--pots-warn); }
703
+ .pots-stat.pots-bad > :is(b, strong) { color: var(--pots-bad); }
704
+ .pots-stat.pots-info { --pots-k: var(--pots-accent); }
705
+ .pots-stat.pots-good { --pots-k: var(--pots-good); }
706
+ .pots-stat.pots-warn { --pots-k: var(--pots-warn); }
707
+ .pots-stat.pots-bad { --pots-k: var(--pots-bad); }
708
+ .pots-stat[data-icon] > :is(b, strong) {
709
+ padding-right: 28px;
710
+ }
711
+ .pots-stat[data-icon]::before {
712
+ position: absolute;
713
+ top: 18px;
714
+ right: 0;
715
+ width: 16px;
716
+ height: 16px;
717
+ margin: 0;
718
+ background: var(--pots-k);
719
+ }
720
+ .pots-delta,
721
+ .pots-stat > .pots-delta {
722
+ display: inline-flex;
723
+ align-items: center;
724
+ width: fit-content;
725
+ gap: 3px;
726
+ margin-top: 8px;
727
+ padding: 1px 7px 1px 5px;
728
+ border-radius: var(--pots-r);
729
+ background: var(--pots-soft);
730
+ color: var(--pots-muted);
731
+ font-size: 0.8125rem;
732
+ font-weight: 510;
733
+ line-height: 1.5;
734
+ font-variant-numeric: tabular-nums;
735
+ }
736
+ .pots-delta[data-icon]::before {
737
+ width: 0.95em;
738
+ height: 0.95em;
739
+ margin: 0;
740
+ vertical-align: 0;
741
+ background: currentColor;
742
+ }
743
+ .pots-delta.pots-good { background: var(--pots-good-soft); color: var(--pots-good); }
744
+ .pots-delta.pots-warn { background: var(--pots-warn-soft); color: var(--pots-warn); }
745
+ .pots-delta.pots-bad { background: var(--pots-bad-soft); color: var(--pots-bad); }
746
+ .pots-delta:is(.pots-good, .pots-warn, .pots-bad):not([data-icon])::before {
747
+ content: none;
748
+ }
749
+
750
+ /* A note (a callout): a light tint, a fine border and an icon. Plain is the accent; .pots-good, .pots-warn and
751
+ .pots-bad colour it. data-icon picks another icon; a <b> or <strong> that starts it is its title. */
752
+ .pots-note:not([data-icon]) {
753
+ --pots-icon: var(--pots-i-info);
754
+ }
755
+ .pots-note {
756
+ --pots-n: var(--pots-accent);
757
+ position: relative;
758
+ margin: 24px 0;
759
+ padding: 14px 20px 14px 46px;
760
+ border: 1px solid color-mix(in srgb, var(--pots-n) 26%, var(--pots-line));
761
+ border-radius: var(--pots-r-m);
762
+ background: color-mix(in srgb, var(--pots-n) 6%, var(--pots-bg));
763
+ font-size: 0.9375rem;
764
+ --pots-mid: 0.5lh;
765
+ }
766
+ .pots-note::before {
767
+ content: "";
768
+ position: absolute;
769
+ left: 17px;
770
+ top: calc(14px + var(--pots-mid) - 9px);
771
+ width: 18px;
772
+ height: 18px;
773
+ margin: 0;
774
+ background: var(--pots-n);
775
+ -webkit-mask: var(--pots-icon) center / contain no-repeat;
776
+ mask: var(--pots-icon) center / contain no-repeat;
777
+ }
778
+ .pots-note > :first-child {
779
+ margin-top: 0;
780
+ }
781
+ .pots-note > :last-child {
782
+ margin-bottom: 0;
783
+ }
784
+ .pots-note.pots-good { --pots-n: var(--pots-good); }
785
+ .pots-note.pots-good:not([data-icon]) { --pots-icon: var(--pots-i-check); }
786
+ .pots-note.pots-warn { --pots-n: var(--pots-warn); }
787
+ .pots-note.pots-warn:not([data-icon]) { --pots-icon: var(--pots-i-warn); }
788
+ .pots-note.pots-bad { --pots-n: var(--pots-bad); }
789
+ .pots-note.pots-bad:not([data-icon]) { --pots-icon: var(--pots-i-ban); }
790
+ .pots-note > :is(b, strong):first-child {
791
+ display: block;
792
+ margin-bottom: 2px;
793
+ }
794
+
795
+ /* A label: a pill with a hairline round it. A status shows as a dot, or as its icon in the status colour;
796
+ .pots-info is in the accent. */
797
+ .pots-badge {
798
+ display: inline-flex;
799
+ align-items: center;
800
+ height: 22px;
801
+ padding: 0 8px;
802
+ border: 1px solid var(--pots-line);
803
+ border-radius: 9999px;
804
+ color: var(--pots-text-2);
805
+ font-size: 0.75rem;
806
+ font-weight: 510;
807
+ line-height: 1;
808
+ white-space: nowrap;
809
+ vertical-align: 0.1em;
810
+ }
811
+ .pots-badge.pots-info {
812
+ border-color: var(--pots-accent-line);
813
+ background: var(--pots-accent-soft);
814
+ color: var(--pots-accent);
815
+ }
816
+ .pots-badge::before {
817
+ margin: 0 5px 0 0;
818
+ vertical-align: 0;
819
+ }
820
+ .pots-badge:not([data-icon])::before {
821
+ width: 6px;
822
+ height: 6px;
823
+ }
824
+ .pots-badge[data-icon]::before {
825
+ width: 12px;
826
+ height: 12px;
827
+ }
828
+
829
+ /* Key points: a numbered list with the numbers in the accent, hairlines between. <ul> has small dots;
830
+ data-icon on an item draws that icon instead. */
831
+ ol.pots-points,
832
+ ul.pots-points {
833
+ margin: 0;
834
+ padding: 0;
835
+ list-style: none;
836
+ counter-reset: pt;
837
+ }
838
+ .pots-points > li {
839
+ position: relative;
840
+ margin: 0;
841
+ padding: 14px 0 14px 32px;
842
+ border-top: 1px solid var(--pots-line);
843
+ counter-increment: pt;
844
+ }
845
+ .pots-points > li:first-child {
846
+ padding-top: 0;
847
+ border-top: 0;
848
+ }
849
+ .pots-points > li::before {
850
+ position: absolute;
851
+ left: 0;
852
+ top: 14px;
853
+ }
854
+ .pots-points > li:first-child::before {
855
+ top: 0;
856
+ }
857
+ ol.pots-points > li:not([data-icon])::before {
858
+ content: counter(pt);
859
+ color: var(--pots-accent);
860
+ font-weight: 590;
861
+ font-variant-numeric: tabular-nums;
862
+ }
863
+ ul.pots-points > li:not([data-icon])::before {
864
+ content: "";
865
+ left: 4px;
866
+ top: calc(14px + 0.5lh - 3px);
867
+ width: 6px;
868
+ height: 6px;
869
+ border-radius: 50%;
870
+ background: var(--pots-accent);
871
+ }
872
+ ul.pots-points > li:not([data-icon]):first-child::before {
873
+ top: calc(0.5lh - 3px);
874
+ }
875
+ .pots-points > li[data-icon]::before {
876
+ margin-top: calc(0.5lh - 0.55em);
877
+ background: var(--pots-accent);
878
+ }
879
+ .pots-points > li.pots-good::before { background: var(--pots-good); }
880
+ .pots-points > li.pots-warn::before { background: var(--pots-warn); }
881
+ .pots-points > li.pots-bad::before { background: var(--pots-bad); }
882
+
883
+ /* Name and value pairs: <dl class="pots-kv"><dt>Rice</dt><dd>1 bowl</dd></dl>, each pair a row on a hairline. */
884
+ .pots-kv {
885
+ display: grid;
886
+ grid-template-columns: minmax(2.5em, max-content) 1fr;
887
+ column-gap: 24px;
888
+ }
889
+ .pots-kv > :is(dt, dd) {
890
+ padding: 8px 0;
891
+ border-top: 1px solid var(--pots-line);
892
+ }
893
+ .pots-kv > :is(dt, dd):nth-child(-n + 2) {
894
+ border-top: 0;
895
+ padding-top: 0;
896
+ }
897
+ .pots-kv > :is(dt, dd):nth-last-child(-n + 2) {
898
+ padding-bottom: 0;
899
+ }
900
+ .pots-kv > dt {
901
+ color: var(--pots-muted);
902
+ }
903
+ .pots-kv > dd {
904
+ margin: 0;
905
+ }
906
+ .pots-card > .pots-kv > dt {
907
+ color: var(--pots-text);
908
+ font-weight: 510;
909
+ }
910
+
911
+ /* A pull quote: what someone said, larger, with who said it. <blockquote class="pots-quote"><p>…</p><footer>Name</footer> */
912
+ blockquote {
913
+ margin-left: 0;
914
+ padding: 0.1em 0 0.1em 1em;
915
+ border-left: 2px solid var(--pots-line-2);
916
+ color: var(--pots-muted);
917
+ }
918
+ blockquote.pots-quote {
919
+ margin: 1.6em 0;
920
+ padding: 0.1em 0 0.1em 1.2em;
921
+ border-left: 2px solid var(--pots-accent);
922
+ color: var(--pots-text);
923
+ font-size: 1.1875rem;
924
+ font-weight: 510;
925
+ line-height: 1.55;
926
+ letter-spacing: -0.012em;
927
+ }
928
+ blockquote.pots-quote > :is(footer, cite, small) {
929
+ display: block;
930
+ margin-top: 0.6em;
931
+ color: var(--pots-muted);
932
+ font-size: 0.8125rem;
933
+ font-style: normal;
934
+ letter-spacing: 0;
935
+ }
936
+ blockquote.pots-quote > :last-child {
937
+ margin-bottom: 0;
938
+ }
939
+
940
+ /* Terms: a list of names and meanings, like Linear's docs glossary, no boxes. */
941
+ .pots-terms {
942
+ display: grid;
943
+ grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
944
+ gap: 20px 32px;
945
+ margin: 0;
946
+ }
947
+ .pots-terms > div {
948
+ min-width: 0;
949
+ }
950
+ .pots-terms dt {
951
+ color: var(--pots-text);
952
+ font-weight: 590;
953
+ font-size: 0.9375rem;
954
+ }
955
+ .pots-terms dd {
956
+ margin: 2px 0 0;
957
+ color: var(--pots-muted);
958
+ font-size: 0.875rem;
959
+ line-height: 1.65;
960
+ }
163
961
 
962
+ /* Steps in order: small numbers on a thin line. */
963
+ ol.pots-steps,
964
+ ul.pots-steps {
965
+ margin: 0 0 1.2em;
966
+ padding: 0;
967
+ list-style: none;
968
+ counter-reset: st;
969
+ }
970
+ .pots-steps > li {
971
+ position: relative;
972
+ margin: 0;
973
+ padding: 0 0 18px 36px;
974
+ counter-increment: st;
975
+ }
976
+ .pots-steps > li::before {
977
+ content: counter(st);
978
+ position: absolute;
979
+ left: 0;
980
+ top: calc(0.5lh - 11px);
981
+ width: 22px;
982
+ height: 22px;
983
+ border: 1px solid var(--pots-accent-line);
984
+ border-radius: 50%;
985
+ background: var(--pots-bg);
986
+ color: var(--pots-accent);
987
+ font-size: 0.75rem;
988
+ font-weight: 510;
989
+ line-height: 20px;
990
+ text-align: center;
991
+ font-variant-numeric: tabular-nums;
992
+ }
993
+ ul.pots-steps > li::before {
994
+ content: "";
995
+ width: 9px;
996
+ height: 9px;
997
+ left: 6.5px;
998
+ top: calc(0.5lh - 4.5px);
999
+ }
1000
+ .pots-steps > li:not(:last-child)::after {
1001
+ content: "";
1002
+ position: absolute;
1003
+ left: 11px;
1004
+ top: calc(0.5lh + 14px);
1005
+ bottom: 2px;
1006
+ width: 1px;
1007
+ background: var(--pots-line);
1008
+ }
1009
+ .pots-steps > li:last-child {
1010
+ padding-bottom: 0;
1011
+ }
1012
+
1013
+ /* A date or time over a step: <li><time>18 Nov</time><b>Launch</b> …</li> */
1014
+ .pots-steps > li > time:first-child {
1015
+ display: block;
1016
+ color: var(--pots-accent);
1017
+ font-size: 0.8125rem;
1018
+ font-weight: 510;
1019
+ font-variant-numeric: tabular-nums;
1020
+ }
1021
+
1022
+ /* ---- A flow: plain boxes with hairlines and thin arrows; a fork is a column per way, with a status dot over each ---- */
1023
+ .pots-flow {
1024
+ --pots-arrow: var(--pots-line-2);
1025
+ --pots-head: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z'/%3E%3C/svg%3E");
1026
+ margin: 8px 0 1.4em;
1027
+ }
1028
+ .pots-flow > * {
1029
+ position: relative;
1030
+ margin: 0;
1031
+ }
1032
+ .pots-flow > * + :not(figcaption) {
1033
+ margin-top: 32px;
1034
+ }
1035
+ .pots-flow > * + :not(figcaption)::after {
1036
+ content: "";
1037
+ position: absolute;
1038
+ left: calc(50% - 5px);
1039
+ top: -28px;
1040
+ width: 10px;
1041
+ height: 24px;
1042
+ background: var(--pots-arrow);
1043
+ -webkit-mask: var(--pots-head) bottom / 10px 6px no-repeat, linear-gradient(#000, #000) center top / 1px calc(100% - 5px) no-repeat;
1044
+ mask: var(--pots-head) bottom / 10px 6px no-repeat, linear-gradient(#000, #000) center top / 1px calc(100% - 5px) no-repeat;
1045
+ }
1046
+ .pots-flow > .pots-node {
1047
+ max-width: 34rem;
1048
+ margin-left: auto;
1049
+ margin-right: auto;
1050
+ }
1051
+ .pots-node {
1052
+ padding: 12px 16px;
1053
+ border: 1px solid var(--pots-line);
1054
+ border-radius: var(--pots-r-m);
1055
+ background: var(--pots-bg);
1056
+ font-size: 0.9375rem;
1057
+ line-height: 1.6;
1058
+ }
1059
+ .pots-node.pots-info {
1060
+ border-color: var(--pots-accent-line);
1061
+ background: var(--pots-accent-soft);
1062
+ }
1063
+ .pots-node.pots-good { border-color: color-mix(in srgb, var(--pots-good) 30%, var(--pots-line)); }
1064
+ .pots-node.pots-warn { border-color: color-mix(in srgb, var(--pots-warn) 30%, var(--pots-line)); }
1065
+ .pots-node.pots-bad { border-color: color-mix(in srgb, var(--pots-bad) 30%, var(--pots-line)); }
1066
+ .pots-node > :is(b, strong) {
1067
+ display: block;
1068
+ color: var(--pots-text);
1069
+ }
1070
+ .pots-node > :is(span, small) {
1071
+ display: block;
1072
+ margin-top: 2px;
1073
+ color: var(--pots-muted);
1074
+ font-size: 0.875rem;
1075
+ }
1076
+ .pots-lanes {
1077
+ --pots-lane-gap: 24px;
1078
+ display: grid;
1079
+ grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
1080
+ gap: var(--pots-lane-gap);
1081
+ }
1082
+ .pots-lane {
1083
+ --pots-k: var(--pots-faint);
1084
+ position: relative;
1085
+ min-width: 0;
1086
+ }
1087
+ .pots-lane.pots-good { --pots-k: var(--pots-good-dot); }
1088
+ .pots-lane.pots-warn { --pots-k: var(--pots-warn-dot); }
1089
+ .pots-lane.pots-bad { --pots-k: var(--pots-bad-dot); }
1090
+ .pots-lane > :is(h3, h4, b):first-child {
1091
+ display: flex;
1092
+ align-items: center;
1093
+ justify-content: center;
1094
+ gap: 8px;
1095
+ margin: 0 0 10px;
1096
+ color: var(--pots-text);
1097
+ font-size: 0.875rem;
1098
+ font-weight: 590;
1099
+ line-height: 1.5;
1100
+ }
1101
+ .pots-lane > :is(h3, h4, b):first-child::before {
1102
+ content: "";
1103
+ flex: none;
1104
+ width: 8px;
1105
+ height: 8px;
1106
+ margin: 0;
1107
+ border-radius: 50%;
1108
+ background: var(--pots-k);
1109
+ -webkit-mask: none;
1110
+ mask: none;
1111
+ }
1112
+ .pots-lane > :is(h3, h4, b)[data-icon]:first-child::before {
1113
+ width: 16px;
1114
+ height: 16px;
1115
+ border-radius: 0;
1116
+ -webkit-mask: var(--pots-icon) center / contain no-repeat;
1117
+ mask: var(--pots-icon) center / contain no-repeat;
1118
+ }
1119
+ .pots-lane > .pots-node + .pots-node {
1120
+ margin-top: 8px;
1121
+ }
1122
+ .pots-flow > figcaption {
1123
+ margin: 20px auto 0;
1124
+ max-width: 40rem;
1125
+ color: var(--pots-muted);
1126
+ font-size: 0.875rem;
1127
+ text-align: center;
1128
+ }
1129
+ @media (min-width: 720px) {
1130
+ .pots-flow > .pots-lanes {
1131
+ grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
1132
+ }
1133
+ .pots-flow > * + .pots-lanes::after {
1134
+ top: -32px;
1135
+ height: 16px;
1136
+ -webkit-mask: linear-gradient(#000, #000) center / 1px 100% no-repeat;
1137
+ mask: linear-gradient(#000, #000) center / 1px 100% no-repeat;
1138
+ }
1139
+ /* The fork's line, drawn by each lane over its own width and half the gaps beside it, from the first lane's middle
1140
+ to the last one's: right for any number of lanes. */
1141
+ .pots-flow > .pots-lanes > .pots-lane::before {
1142
+ content: "";
1143
+ position: absolute;
1144
+ top: -16px;
1145
+ inset-inline: calc(var(--pots-lane-gap) / -2);
1146
+ height: 1px;
1147
+ background: var(--pots-arrow);
1148
+ }
1149
+ .pots-flow > .pots-lanes > .pots-lane:first-child::before {
1150
+ inset-inline-start: 50%;
1151
+ }
1152
+ .pots-flow > .pots-lanes > .pots-lane:last-child::before {
1153
+ inset-inline-end: 50%;
1154
+ }
1155
+ .pots-flow > .pots-lanes > .pots-lane:only-child::before {
1156
+ content: none;
1157
+ }
1158
+ .pots-flow > .pots-lanes > .pots-lane::after {
1159
+ content: "";
1160
+ position: absolute;
1161
+ left: calc(50% - 5px);
1162
+ top: -16px;
1163
+ width: 10px;
1164
+ height: 14px;
1165
+ background: var(--pots-arrow);
1166
+ -webkit-mask: var(--pots-head) bottom / 10px 6px no-repeat, linear-gradient(#000, #000) center top / 1px calc(100% - 5px) no-repeat;
1167
+ mask: var(--pots-head) bottom / 10px 6px no-repeat, linear-gradient(#000, #000) center top / 1px calc(100% - 5px) no-repeat;
1168
+ }
1169
+ }
1170
+
1171
+ /* ---- Tables: hairline rows, headers in text-mini weight 510, no capitals ---- */
164
1172
  table {
165
1173
  display: block;
166
1174
  max-width: 100%;
167
1175
  overflow-x: auto;
168
1176
  border-collapse: collapse;
169
- font-size: 0.95em;
1177
+ font-size: 0.9375rem;
1178
+ line-height: 1.6;
1179
+ font-variant-numeric: tabular-nums;
1180
+ }
1181
+ .pots-scroll {
1182
+ overflow-x: auto;
1183
+ margin: 0 0 1.4em;
1184
+ }
1185
+ .pots-scroll > table {
1186
+ display: table;
1187
+ width: 100%;
1188
+ max-width: none;
1189
+ overflow: visible;
1190
+ margin: 0;
170
1191
  }
171
1192
  th,
172
1193
  td {
173
- padding: 8px 12px;
174
- border-bottom: 1px solid var(--pots-border);
1194
+ padding: 10px 16px;
1195
+ border-bottom: 1px solid var(--pots-line);
175
1196
  text-align: left;
176
1197
  vertical-align: top;
177
1198
  }
178
- th {
179
- font-weight: 600;
1199
+ :is(th, td):first-child {
1200
+ padding-left: 0;
1201
+ }
1202
+ :is(th, td):last-child {
1203
+ padding-right: 0;
1204
+ }
1205
+ thead th {
1206
+ padding-top: 4px;
1207
+ padding-bottom: 8px;
1208
+ color: var(--pots-muted);
1209
+ font-size: 0.8125rem;
1210
+ font-weight: 510;
180
1211
  white-space: nowrap;
1212
+ vertical-align: bottom;
1213
+ }
1214
+ tbody td:first-child,
1215
+ tbody th {
1216
+ color: var(--pots-text);
1217
+ font-weight: 510;
1218
+ }
1219
+ tr:last-child > td {
1220
+ border-bottom: 0;
181
1221
  }
182
1222
  td.pots-num,
183
1223
  th.pots-num {
184
1224
  text-align: right;
185
- font-variant-numeric: tabular-nums;
1225
+ white-space: nowrap;
186
1226
  }
187
-
188
- /* ---- Blocks ---- */
189
-
190
- .pots-card {
191
- background: var(--pots-surface);
192
- border: 1px solid var(--pots-border);
193
- border-radius: var(--pots-radius);
194
- padding: 16px;
195
- margin: 0 0 16px;
1227
+ @media (max-width: 640px) {
1228
+ table.pots-stack,
1229
+ .pots-scroll:has(> table.pots-stack) {
1230
+ display: block;
1231
+ overflow: visible;
1232
+ }
1233
+ table.pots-stack thead {
1234
+ position: absolute;
1235
+ width: 1px;
1236
+ height: 1px;
1237
+ overflow: hidden;
1238
+ clip: rect(0 0 0 0);
1239
+ }
1240
+ table.pots-stack :is(tbody, tr) {
1241
+ display: block;
1242
+ }
1243
+ table.pots-stack tr {
1244
+ padding: 14px 0;
1245
+ border-top: 1px solid var(--pots-line);
1246
+ }
1247
+ table.pots-stack tr:last-child {
1248
+ padding-bottom: 0;
1249
+ }
1250
+ table.pots-stack :is(td, th) {
1251
+ display: grid;
1252
+ grid-template-columns: 5.5em 1fr;
1253
+ justify-items: start;
1254
+ align-items: baseline;
1255
+ gap: 12px;
1256
+ padding: 2px 0;
1257
+ border: 0;
1258
+ white-space: normal;
1259
+ }
1260
+ table.pots-stack tr > :first-child {
1261
+ display: block;
1262
+ padding-bottom: 6px;
1263
+ }
1264
+ table.pots-stack td:empty {
1265
+ display: none;
1266
+ }
1267
+ table.pots-stack td[data-label]::before {
1268
+ content: attr(data-label);
1269
+ color: var(--pots-muted);
1270
+ font-size: 0.8125rem;
1271
+ font-weight: 510;
1272
+ }
196
1273
  }
197
- .pots-note {
198
- background: var(--pots-accent-soft);
199
- border-radius: var(--pots-radius);
200
- padding: 12px 16px;
201
- margin: 0 0 16px;
1274
+
1275
+ /* ---- Folding ---- */
1276
+ details:not(.pots-comment) {
1277
+ margin: 0 0 8px;
1278
+ border-top: 1px solid var(--pots-line);
1279
+ border-bottom: 1px solid var(--pots-line);
202
1280
  }
203
- .pots-note.pots-warn {
204
- background: var(--pots-warn-soft);
1281
+ details:not(.pots-comment) + details:not(.pots-comment) {
1282
+ margin-top: -9px;
205
1283
  }
206
- .pots-row {
207
- display: flex;
208
- flex-wrap: wrap;
209
- gap: 12px;
1284
+ details:not(.pots-comment) > summary {
1285
+ position: relative;
1286
+ cursor: pointer;
1287
+ list-style: none;
1288
+ padding: 12px 0 12px 22px;
1289
+ color: var(--pots-text);
1290
+ font-size: 0.9375rem;
1291
+ font-weight: 510;
210
1292
  }
211
- .pots-row > * {
212
- flex: 1 1 12rem;
1293
+ details:not(.pots-comment) > summary::-webkit-details-marker {
1294
+ display: none;
213
1295
  }
214
- .pots-badge {
215
- display: inline-block;
216
- padding: 0.1em 0.6em;
217
- border-radius: 999px;
218
- background: var(--pots-code-bg);
219
- font-size: 0.85em;
1296
+ details:not(.pots-comment) > summary::after {
1297
+ content: "";
1298
+ position: absolute;
1299
+ left: 3px;
1300
+ top: calc(12px + 0.5lh - 4px);
1301
+ width: 6px;
1302
+ height: 6px;
1303
+ border-right: 1.5px solid var(--pots-muted);
1304
+ border-bottom: 1.5px solid var(--pots-muted);
1305
+ transform: rotate(-45deg);
1306
+ transition: transform 0.15s;
1307
+ }
1308
+ details[open]:not(.pots-comment) > summary::after {
1309
+ transform: translateY(-2px) rotate(45deg);
1310
+ }
1311
+ details:not(.pots-comment) > summary:hover {
1312
+ color: var(--pots-text);
220
1313
  }
221
- .pots-badge.pots-good {
222
- background: var(--pots-good-soft);
223
- color: var(--pots-good);
1314
+ details:not(.pots-comment) > summary:focus-visible {
1315
+ outline: 2px solid var(--pots-accent);
1316
+ outline-offset: 2px;
1317
+ border-radius: 4px;
224
1318
  }
225
- .pots-badge.pots-bad {
226
- background: var(--pots-bad-soft);
227
- color: var(--pots-bad);
1319
+ details[open]:not(.pots-comment) {
1320
+ padding-bottom: 16px;
1321
+ }
1322
+ details:not(.pots-comment) > :last-child {
1323
+ margin-bottom: 0;
1324
+ }
1325
+ details:not(.pots-comment) li {
1326
+ color: var(--pots-muted);
228
1327
  }
229
1328
 
230
- /* ---- Forms ---- */
231
-
1329
+ /* ---- Forms (answer pages): a question is a box with a fine border; its legend has a question icon in the accent.
1330
+ Its choices are bordered rows; the chosen one, which starts as the recommended one, has an accent border and tint ---- */
232
1331
  form[data-pots] [data-pots-question],
233
1332
  fieldset {
234
- background: var(--pots-surface);
235
- border: 1px solid var(--pots-border);
236
- border-radius: var(--pots-radius);
237
- padding: 14px 16px 16px;
238
- margin: 0 0 16px;
239
1333
  min-width: 0;
1334
+ max-width: var(--pots-measure);
1335
+ margin: 32px 0 0;
1336
+ padding: 18px 22px 20px;
1337
+ border: 1px solid var(--pots-line);
1338
+ border-radius: var(--pots-r-l);
1339
+ background: var(--pots-bg);
240
1340
  }
241
1341
  fieldset [data-pots-question],
242
1342
  [data-pots-question] fieldset {
243
- border: 0;
1343
+ margin: 0;
244
1344
  padding: 0;
1345
+ border: 0;
245
1346
  background: none;
246
1347
  }
247
1348
  legend {
248
1349
  float: left;
249
1350
  width: 100%;
1351
+ margin: 0 0 14px;
250
1352
  padding: 0;
251
- margin: 0 0 10px;
252
- font-weight: 600;
1353
+ color: var(--pots-text);
1354
+ font-size: 1.0625rem;
1355
+ font-weight: 590;
1356
+ line-height: 1.45;
1357
+ letter-spacing: -0.012em;
253
1358
  }
254
1359
  legend + * {
255
1360
  clear: both;
256
1361
  }
257
- [data-pots-question] > h2:first-child,
258
- [data-pots-question] > h3:first-child,
259
- [data-pots-question] > h4:first-child {
1362
+ :is(fieldset, [data-pots-question]) > legend:not([data-icon]) {
1363
+ --pots-icon: var(--pots-i-question);
1364
+ }
1365
+ :is(fieldset, [data-pots-question]) > legend::before {
1366
+ content: "";
1367
+ display: inline-block;
1368
+ width: 1.05em;
1369
+ height: 1.05em;
1370
+ margin-right: 0.45em;
1371
+ vertical-align: -0.17em;
1372
+ background: var(--pots-accent);
1373
+ -webkit-mask: var(--pots-icon) center / contain no-repeat;
1374
+ mask: var(--pots-icon) center / contain no-repeat;
1375
+ }
1376
+ [data-pots-question] > :is(h2, h3, h4):first-child {
260
1377
  margin-top: 0;
261
1378
  }
262
-
263
1379
  label {
264
1380
  display: block;
265
- font-weight: 600;
1381
+ color: var(--pots-text);
1382
+ font-size: 0.9375rem;
1383
+ font-weight: 510;
266
1384
  }
267
1385
  label + label {
268
- margin-top: 8px;
1386
+ margin-top: 12px;
269
1387
  }
270
-
271
- /* A choice: the whole row is the tap target. */
1388
+ /* A choice: the whole row is the tap target; it can have a title and a line of explanation under it. */
272
1389
  label:has(> input[type="radio"]),
273
1390
  label:has(> input[type="checkbox"]),
274
1391
  .pots-choice {
275
- display: flex;
276
- align-items: center;
277
- gap: 12px;
1392
+ display: block;
1393
+ position: relative;
278
1394
  min-height: 48px;
279
- padding: 10px 14px;
280
- border: 1px solid var(--pots-border);
281
- border-radius: var(--pots-radius);
1395
+ padding: 12px 16px 13px 42px;
1396
+ border: 1px solid var(--pots-line-2);
1397
+ border-radius: var(--pots-r-m);
282
1398
  background: var(--pots-bg);
1399
+ color: var(--pots-text-2);
283
1400
  font-weight: 400;
1401
+ line-height: 1.6;
284
1402
  cursor: pointer;
1403
+ transition: border-color 0.12s, background-color 0.12s, box-shadow 0.12s;
1404
+ }
1405
+ label:has(> input[type="radio"]) + label:has(> input[type="radio"]),
1406
+ label:has(> input[type="checkbox"]) + label:has(> input[type="checkbox"]) {
1407
+ margin-top: 8px;
1408
+ }
1409
+ label:has(> input[type="radio"]):hover,
1410
+ label:has(> input[type="checkbox"]):hover,
1411
+ .pots-choice:hover {
1412
+ border-color: var(--pots-faint);
1413
+ }
1414
+ label:has(> input[type="radio"]) > input,
1415
+ label:has(> input[type="checkbox"]) > input,
1416
+ .pots-choice > input {
1417
+ position: absolute;
1418
+ left: 15px;
1419
+ top: calc(12px + 0.8em - 8px);
1420
+ }
1421
+ label:has(> input) > b {
1422
+ color: var(--pots-text);
1423
+ font-weight: 590;
1424
+ }
1425
+ /* Its explanation goes on a line of its own: <label><input type="radio" …> Test <small>Nobody sees it</small></label> */
1426
+ :is(label:has(> input[type="radio"]), label:has(> input[type="checkbox"]), .pots-choice) > :is(small, .pots-muted) {
1427
+ display: block;
1428
+ margin-top: 4px;
1429
+ color: var(--pots-muted);
1430
+ font-size: 0.875rem;
1431
+ line-height: 1.65;
285
1432
  }
286
1433
  label:has(> input[type="radio"]:checked),
287
- label:has(> input[type="checkbox"]:checked) {
1434
+ label:has(> input[type="checkbox"]:checked),
1435
+ label:has(> input[type="radio"]:checked):hover,
1436
+ label:has(> input[type="checkbox"]:checked):hover {
288
1437
  border-color: var(--pots-accent);
289
1438
  background: var(--pots-accent-soft);
1439
+ box-shadow: inset 0 0 0 0.5px var(--pots-accent);
290
1440
  }
291
1441
  label:has(> input:focus-visible) {
292
1442
  outline: 2px solid var(--pots-accent);
@@ -294,74 +1444,108 @@ label:has(> input:focus-visible) {
294
1444
  }
295
1445
  input[type="radio"],
296
1446
  input[type="checkbox"] {
297
- width: 20px;
298
- height: 20px;
1447
+ width: 16px;
1448
+ height: 16px;
299
1449
  margin: 0;
300
1450
  flex: none;
301
1451
  accent-color: var(--pots-accent);
302
1452
  }
303
-
304
- /* Approve or reject: two buttons side by side. */
1453
+ /* Yes or no: two choices side by side, in the good and the bad colour when chosen. */
305
1454
  .pots-approve {
306
1455
  display: flex;
307
- gap: 10px;
1456
+ flex-wrap: wrap;
1457
+ gap: 8px;
308
1458
  margin: 8px 0;
309
1459
  }
310
- .pots-approve label {
311
- flex: 1 1 0;
312
- justify-content: center;
1460
+ .pots-approve label,
1461
+ .pots-approve label + label {
1462
+ flex: 1 1 9rem;
313
1463
  margin: 0;
314
- font-weight: 600;
1464
+ font-weight: 510;
1465
+ }
1466
+ .pots-approve > label:has(> input[type]) + label:has(> input[type]) {
1467
+ margin-top: 0;
1468
+ }
1469
+ .pots-approve input[value="approve"] {
1470
+ accent-color: var(--pots-good);
315
1471
  }
316
- .pots-approve label:has(input[value="approve"]:checked) {
1472
+ .pots-approve input[value="reject"] {
1473
+ accent-color: var(--pots-bad);
1474
+ }
1475
+ .pots-approve label:has(input[value="approve"]:checked),
1476
+ .pots-approve label:has(input[value="approve"]:checked):hover {
317
1477
  border-color: var(--pots-good);
318
1478
  background: var(--pots-good-soft);
1479
+ box-shadow: inset 0 0 0 0.5px var(--pots-good);
319
1480
  color: var(--pots-good);
320
1481
  }
321
- .pots-approve label:has(input[value="reject"]:checked) {
1482
+ .pots-approve label:has(input[value="reject"]:checked),
1483
+ .pots-approve label:has(input[value="reject"]:checked):hover {
322
1484
  border-color: var(--pots-bad);
323
1485
  background: var(--pots-bad-soft);
1486
+ box-shadow: inset 0 0 0 0.5px var(--pots-bad);
324
1487
  color: var(--pots-bad);
325
1488
  }
326
-
327
1489
  input:not([type="radio"], [type="checkbox"], [type="submit"], [type="button"], [type="range"], [type="color"]),
328
1490
  select,
329
1491
  textarea {
330
1492
  display: block;
331
1493
  width: 100%;
332
- margin-top: 6px;
1494
+ margin-top: 8px;
333
1495
  padding: 10px 12px;
334
1496
  /* 16px or more, so phones do not zoom in on the field. */
335
- font: 400 17px/1.4 var(--pots-font);
1497
+ font: 400 16px/1.6 var(--pots-font);
336
1498
  color: var(--pots-text);
337
1499
  background: var(--pots-bg);
338
- border: 1px solid var(--pots-border);
339
- border-radius: 8px;
1500
+ border: 1px solid var(--pots-line-2);
1501
+ border-radius: var(--pots-r);
1502
+ transition: border-color 0.12s, box-shadow 0.12s;
1503
+ }
1504
+ :is(input, select, textarea):hover {
1505
+ border-color: var(--pots-faint);
1506
+ }
1507
+ ::placeholder {
1508
+ color: var(--pots-faint);
1509
+ }
1510
+ input[type="range"] {
1511
+ width: 100%;
1512
+ accent-color: var(--pots-accent);
340
1513
  }
341
1514
  textarea {
342
1515
  min-height: 6em;
343
1516
  resize: vertical;
344
1517
  }
345
- input:focus,
346
- select:focus,
347
- textarea:focus {
1518
+ input:focus-visible,
1519
+ select:focus-visible,
1520
+ textarea:focus-visible {
348
1521
  outline: 2px solid var(--pots-accent);
349
1522
  outline-offset: 1px;
1523
+ }
1524
+ :is(input:not([type="radio"], [type="checkbox"], [type="range"]), select, textarea):focus {
1525
+ outline: none;
350
1526
  border-color: var(--pots-accent);
1527
+ box-shadow: 0 0 0 1px var(--pots-accent);
1528
+ }
1529
+ input[type="range"]:focus-visible {
1530
+ outline-offset: 4px;
1531
+ border-radius: 4px;
351
1532
  }
352
-
353
- /* A comment on a section: closed until someone wants to write one. */
354
1533
  details.pots-comment {
355
- margin-top: 10px;
1534
+ margin-top: 12px;
356
1535
  }
357
1536
  details.pots-comment > summary {
358
1537
  display: inline-block;
359
- cursor: pointer;
1538
+ padding: 4px 0;
360
1539
  color: var(--pots-accent);
361
- font-weight: 600;
362
- padding: 6px 0;
1540
+ font-size: 0.875rem;
1541
+ font-weight: 510;
1542
+ cursor: pointer;
363
1543
  list-style: none;
364
1544
  }
1545
+ details.pots-comment > summary:hover {
1546
+ text-decoration: underline;
1547
+ text-underline-offset: 3px;
1548
+ }
365
1549
  details.pots-comment > summary::-webkit-details-marker {
366
1550
  display: none;
367
1551
  }
@@ -371,26 +1555,40 @@ details.pots-comment > summary::before {
371
1555
  details.pots-comment[open] > summary::before {
372
1556
  content: "− ";
373
1557
  }
374
-
1558
+ /* The button: the accent as the fill. */
375
1559
  button,
376
1560
  input[type="submit"],
377
1561
  input[type="button"] {
378
1562
  display: inline-flex;
379
1563
  align-items: center;
380
1564
  justify-content: center;
381
- min-height: 48px;
382
- padding: 10px 22px;
383
- border: 1px solid transparent;
384
- border-radius: var(--pots-radius);
1565
+ min-height: 40px;
1566
+ padding: 0 18px;
1567
+ border: 0;
1568
+ border-radius: var(--pots-r);
385
1569
  background: var(--pots-accent);
386
1570
  color: var(--pots-accent-text);
387
- font: 600 17px/1.2 var(--pots-font);
1571
+ font: 510 0.9375rem/1 var(--pots-font);
1572
+ letter-spacing: -0.011em;
388
1573
  cursor: pointer;
1574
+ transition: background-color 0.12s;
1575
+ }
1576
+ button:hover,
1577
+ input[type="submit"]:hover,
1578
+ input[type="button"]:hover {
1579
+ background: color-mix(in srgb, var(--pots-accent) 86%, var(--pots-text));
1580
+ }
1581
+ button:focus-visible,
1582
+ input[type="submit"]:focus-visible,
1583
+ input[type="button"]:focus-visible {
1584
+ outline: 2px solid var(--pots-accent);
1585
+ outline-offset: 2px;
389
1586
  }
390
1587
  form button[type="submit"],
391
1588
  form button:not([type]),
392
1589
  form input[type="submit"] {
393
1590
  width: 100%;
1591
+ min-height: 44px;
394
1592
  margin-top: 8px;
395
1593
  }
396
1594
  @media (min-width: 720px) {
@@ -398,25 +1596,40 @@ form input[type="submit"] {
398
1596
  form button:not([type]),
399
1597
  form input[type="submit"] {
400
1598
  width: auto;
1599
+ min-height: 40px;
1600
+ padding: 0 24px;
401
1601
  }
402
1602
  }
403
1603
  button.pots-secondary {
404
- background: transparent;
405
- color: var(--pots-accent);
406
- border-color: var(--pots-border);
1604
+ background: var(--pots-bg);
1605
+ color: var(--pots-text);
1606
+ box-shadow: inset 0 0 0 1px var(--pots-line-2);
1607
+ }
1608
+ button.pots-secondary:hover {
1609
+ background: var(--pots-soft);
1610
+ }
1611
+ form button + button {
1612
+ margin-left: 8px;
407
1613
  }
408
1614
  button:disabled,
409
1615
  input:disabled,
410
1616
  select:disabled,
411
1617
  textarea:disabled {
412
- opacity: 0.6;
1618
+ opacity: 0.5;
413
1619
  cursor: default;
414
1620
  }
415
-
416
- /* What happened to the answers, written by pots.js. */
1621
+ button:disabled:hover:not(.pots-secondary) {
1622
+ background: var(--pots-accent);
1623
+ }
1624
+ @media (prefers-reduced-motion: reduce) {
1625
+ * {
1626
+ transition: none !important;
1627
+ scroll-behavior: auto !important;
1628
+ }
1629
+ }
417
1630
  [data-pots-status] {
418
1631
  margin: 12px 0 0;
419
- font-weight: 600;
1632
+ font-weight: 510;
420
1633
  }
421
1634
  [data-pots-status]:empty {
422
1635
  display: none;
@@ -436,7 +1649,366 @@ form[data-pots-state="gone"] [data-pots-question] {
436
1649
  opacity: 0.75;
437
1650
  }
438
1651
 
439
- /* "This page has changed", from pots.js. */
1652
+ /* ---- Moving parts drawn by pots-ui.js, and what pots.js adds ---- */
1653
+
1654
+ /* Tabs: <div data-pots-tabs><section data-tab="Rice">…</section>…</div>. data-pots-tabs="phone": tabs on a phone only;
1655
+ a computer shows every panel (lay them out with a class of your own, such as pots-cols). */
1656
+ .pots-tabbar {
1657
+ display: flex;
1658
+ gap: 2px;
1659
+ width: fit-content;
1660
+ max-width: 100%;
1661
+ overflow-x: auto;
1662
+ scrollbar-width: none;
1663
+ margin: 0 0 16px;
1664
+ padding: 2px;
1665
+ border: 1px solid var(--pots-line);
1666
+ border-radius: var(--pots-r-m);
1667
+ background: var(--pots-soft);
1668
+ }
1669
+ .pots-tabbar::-webkit-scrollbar {
1670
+ display: none;
1671
+ }
1672
+ .pots-tabbar button {
1673
+ flex: none;
1674
+ min-height: 34px;
1675
+ margin: 0;
1676
+ padding: 5px 14px;
1677
+ border: 0;
1678
+ border-radius: var(--pots-r);
1679
+ background: none;
1680
+ box-shadow: none;
1681
+ color: var(--pots-muted);
1682
+ font: 510 0.875rem/1.3 var(--pots-font);
1683
+ transition: color 0.15s, background-color 0.15s, box-shadow 0.15s;
1684
+ }
1685
+ .pots-tabbar button:hover {
1686
+ background: none;
1687
+ color: var(--pots-text);
1688
+ }
1689
+ .pots-tabbar button[aria-selected="true"] {
1690
+ background: var(--pots-bg);
1691
+ color: var(--pots-accent);
1692
+ box-shadow: 0 0 0 1px var(--pots-line-2);
1693
+ }
1694
+ .pots-tabbar button:focus-visible {
1695
+ outline: 2px solid var(--pots-accent);
1696
+ outline-offset: 0;
1697
+ }
1698
+ .pots-cols > .pots-tabbar {
1699
+ margin-bottom: 0;
1700
+ }
1701
+ /* Also inside main: the phone rule that spaces sections out must not push a panel down from its tabs. */
1702
+ [data-pots-tabs] > section,
1703
+ :is(main, .pots-page) [data-pots-tabs] > section {
1704
+ margin-top: 0;
1705
+ }
1706
+ [data-pots-tabs]:not([data-pots-tabs="phone"]) > .pots-off {
1707
+ display: none;
1708
+ }
1709
+ @media (max-width: 719.98px) {
1710
+ [data-pots-tabs="phone"] > .pots-off {
1711
+ display: none;
1712
+ }
1713
+ /* While the tabs show, the bar and its panel go one under the other, though two columns would fit. */
1714
+ :is(.pots-cols, .pots-grid)[data-pots-tabs="phone"]:has(> .pots-tabbar) {
1715
+ grid-template-columns: minmax(0, 1fr);
1716
+ }
1717
+ }
1718
+ @media (min-width: 720px) {
1719
+ [data-pots-tabs="phone"] > .pots-tabbar {
1720
+ display: none;
1721
+ }
1722
+ }
1723
+
1724
+ /* Charts: a <table data-pots-chart="bar|stack|line"> becomes a chart; its numbers stay one tap away.
1725
+ Bar and stack charts keep the reading width (pots-wide on the table lets them use it all); a line chart uses the width. */
1726
+ .pots-chart {
1727
+ container-type: inline-size;
1728
+ margin: 0 0 1.4em;
1729
+ }
1730
+ .pots-chart > figcaption {
1731
+ margin: 0 0 14px;
1732
+ color: var(--pots-text);
1733
+ font-size: 0.9375em;
1734
+ font-weight: 590;
1735
+ line-height: 1.4;
1736
+ }
1737
+ .pots-chart details.pots-data {
1738
+ margin: 10px 0 0;
1739
+ border: 0;
1740
+ border-radius: 0;
1741
+ padding: 0;
1742
+ background: none;
1743
+ box-shadow: none;
1744
+ }
1745
+ .pots-chart details.pots-data > summary {
1746
+ display: inline-block;
1747
+ padding: 4px 0;
1748
+ color: var(--pots-muted);
1749
+ font-size: 0.8125rem;
1750
+ font-weight: 510;
1751
+ text-decoration: underline;
1752
+ text-decoration-color: color-mix(in srgb, var(--pots-muted) 40%, transparent);
1753
+ text-underline-offset: 3px;
1754
+ }
1755
+ .pots-chart details.pots-data > summary:hover {
1756
+ color: var(--pots-text);
1757
+ }
1758
+ .pots-chart details.pots-data[open] > summary {
1759
+ margin-bottom: 6px;
1760
+ }
1761
+ .pots-chart details.pots-data > summary::after {
1762
+ display: none;
1763
+ }
1764
+ .pots-hbars {
1765
+ --pots-track: color-mix(in srgb, var(--pots-text) 7%, transparent);
1766
+ list-style: none;
1767
+ padding: 0;
1768
+ margin: 0;
1769
+ }
1770
+ .pots-hbars > li {
1771
+ display: grid;
1772
+ grid-template-columns: 1fr auto;
1773
+ column-gap: 12px;
1774
+ margin: 0 0 12px;
1775
+ line-height: 1.4;
1776
+ }
1777
+ .pots-hbars > li > .pots-v {
1778
+ font-weight: 590;
1779
+ font-variant-numeric: tabular-nums;
1780
+ text-align: right;
1781
+ white-space: nowrap;
1782
+ }
1783
+ .pots-hbars .pots-track {
1784
+ grid-column: 1 / -1;
1785
+ position: relative;
1786
+ height: 10px;
1787
+ margin-top: 6px;
1788
+ border-radius: 2px;
1789
+ background: var(--pots-track);
1790
+ }
1791
+ .pots-hbars .pots-fill {
1792
+ position: absolute;
1793
+ inset: 0 auto 0 0;
1794
+ width: var(--v, 0%);
1795
+ border-radius: 2px;
1796
+ background: var(--pots-c1);
1797
+ }
1798
+ .pots-hbars li.pots-good .pots-fill {
1799
+ background: var(--pots-good);
1800
+ }
1801
+ .pots-hbars li.pots-warn .pots-fill {
1802
+ background: var(--pots-c2);
1803
+ }
1804
+ .pots-hbars li.pots-bad .pots-fill {
1805
+ background: var(--pots-bad);
1806
+ }
1807
+ .pots-hbars li.pots-muted .pots-fill {
1808
+ background: var(--pots-c7);
1809
+ }
1810
+ .pots-hbars li.pots-muted > .pots-l {
1811
+ color: var(--pots-text);
1812
+ }
1813
+ .pots-hbars li.pots-bad > .pots-v {
1814
+ color: var(--pots-bad);
1815
+ }
1816
+ /* A reference line (data-marks): a thin line across every bar, its name above the first. */
1817
+ .pots-hbars .pots-mark {
1818
+ position: absolute;
1819
+ top: -5px;
1820
+ bottom: -5px;
1821
+ left: var(--v);
1822
+ width: 0;
1823
+ border-left: 1.5px dashed color-mix(in srgb, var(--pots-text) 65%, transparent);
1824
+ margin-left: -0.75px;
1825
+ }
1826
+ .pots-hbars > li.pots-marks {
1827
+ margin-bottom: 0;
1828
+ }
1829
+ .pots-hbars > li.pots-marks .pots-track {
1830
+ height: 1.5em;
1831
+ margin-top: 0;
1832
+ background: none;
1833
+ }
1834
+ /* The name is centred over its line, and moves in when that would take it past either end of the bar: it is centred
1835
+ in a box around the line that ends at the bar's end, and when it does not fit, its auto margins give way and it
1836
+ starts at that end (the right end, after the middle: pots-end). */
1837
+ .pots-hbars > li.pots-marks .pots-track > span {
1838
+ position: absolute;
1839
+ left: 0;
1840
+ right: 0;
1841
+ bottom: 2px;
1842
+ display: flex;
1843
+ padding-left: max(0%, calc(2 * var(--v) - 100%));
1844
+ padding-right: max(0%, calc(100% - 2 * var(--v)));
1845
+ color: var(--pots-muted);
1846
+ font-size: 0.75rem;
1847
+ font-weight: 590;
1848
+ white-space: nowrap;
1849
+ }
1850
+ .pots-hbars > li.pots-marks .pots-track > span.pots-end {
1851
+ flex-direction: row-reverse;
1852
+ }
1853
+ .pots-hbars > li.pots-marks .pots-track > span > span {
1854
+ flex: none;
1855
+ margin: 0 auto;
1856
+ }
1857
+ @container (min-width: 30rem) {
1858
+ .pots-hbars {
1859
+ display: grid;
1860
+ grid-template-columns: minmax(0, max-content) minmax(6em, 1fr) max-content;
1861
+ column-gap: 16px;
1862
+ row-gap: 10px;
1863
+ }
1864
+ .pots-hbars > li {
1865
+ grid-column: 1 / -1;
1866
+ display: grid;
1867
+ grid-template-columns: subgrid;
1868
+ align-items: center;
1869
+ margin: 0;
1870
+ }
1871
+ .pots-hbars > li > .pots-l {
1872
+ max-width: 14em;
1873
+ }
1874
+ .pots-hbars .pots-track,
1875
+ .pots-hbars > li.pots-marks .pots-track {
1876
+ grid-column: 2;
1877
+ grid-row: 1;
1878
+ margin-top: 0;
1879
+ }
1880
+ .pots-hbars > li.pots-marks {
1881
+ margin-bottom: -6px;
1882
+ }
1883
+ }
1884
+ .pots-stackbar {
1885
+ display: flex;
1886
+ height: 12px;
1887
+ border-radius: var(--pots-r-s);
1888
+ overflow: hidden;
1889
+ gap: 2px;
1890
+ margin: 0 0 14px;
1891
+ }
1892
+ .pots-stackbar > span {
1893
+ flex: 0 1 var(--v);
1894
+ min-width: 2px;
1895
+ }
1896
+ /* A legend: one line of names that wraps; each with its colour, its value and its share. */
1897
+ .pots-legend {
1898
+ list-style: none;
1899
+ padding: 0;
1900
+ margin: 0;
1901
+ display: flex;
1902
+ flex-wrap: wrap;
1903
+ gap: 6px 22px;
1904
+ font-size: 0.875em;
1905
+ line-height: 1.45;
1906
+ }
1907
+ .pots-legend > li {
1908
+ display: inline-flex;
1909
+ align-items: baseline;
1910
+ gap: 7px;
1911
+ margin: 0;
1912
+ }
1913
+ .pots-legend > li > i {
1914
+ flex: none;
1915
+ align-self: center;
1916
+ width: 10px;
1917
+ height: 10px;
1918
+ border-radius: 2px;
1919
+ }
1920
+ .pots-legend .pots-v {
1921
+ font-variant-numeric: tabular-nums;
1922
+ color: var(--pots-muted);
1923
+ }
1924
+ .pots-legend .pots-v:empty {
1925
+ display: none;
1926
+ }
1927
+ .pots-line svg {
1928
+ display: block;
1929
+ width: 100%;
1930
+ height: auto;
1931
+ overflow: visible;
1932
+ font: 12px var(--pots-font);
1933
+ font-variant-numeric: tabular-nums;
1934
+ }
1935
+ .pots-line .pots-axis {
1936
+ stroke: var(--pots-line);
1937
+ }
1938
+ .pots-line .pots-axis.pots-base {
1939
+ stroke: color-mix(in srgb, var(--pots-text) 30%, transparent);
1940
+ }
1941
+ .pots-line text {
1942
+ fill: var(--pots-muted);
1943
+ }
1944
+ .pots-line path {
1945
+ fill: none;
1946
+ stroke-width: 2;
1947
+ stroke-linejoin: round;
1948
+ stroke-linecap: round;
1949
+ }
1950
+ .pots-line circle {
1951
+ stroke: var(--pots-bg);
1952
+ stroke-width: 1.5;
1953
+ }
1954
+ .pots-line .pots-legend {
1955
+ margin-top: 10px;
1956
+ }
1957
+ .pots-s1 { background: var(--pots-c1); stroke: var(--pots-c1); fill: var(--pots-c1); }
1958
+ .pots-s2 { background: var(--pots-c2); stroke: var(--pots-c2); fill: var(--pots-c2); }
1959
+ .pots-s3 { background: var(--pots-c3); stroke: var(--pots-c3); fill: var(--pots-c3); }
1960
+ .pots-s4 { background: var(--pots-c4); stroke: var(--pots-c4); fill: var(--pots-c4); }
1961
+ .pots-s5 { background: var(--pots-c5); stroke: var(--pots-c5); fill: var(--pots-c5); }
1962
+ .pots-s6 { background: var(--pots-c6); stroke: var(--pots-c6); fill: var(--pots-c6); }
1963
+ .pots-s7 { background: var(--pots-c7); stroke: var(--pots-c7); fill: var(--pots-c7); }
1964
+ .pots-line path.pots-s1, .pots-line path.pots-s2, .pots-line path.pots-s3, .pots-line path.pots-s4,
1965
+ .pots-line path.pots-s5, .pots-line path.pots-s6, .pots-line path.pots-s7 {
1966
+ fill: none;
1967
+ }
1968
+ .pots-line circle.pots-s1, .pots-line circle.pots-s2, .pots-line circle.pots-s3, .pots-line circle.pots-s4,
1969
+ .pots-line circle.pots-s5, .pots-line circle.pots-s6, .pots-line circle.pots-s7 {
1970
+ stroke: var(--pots-bg);
1971
+ }
1972
+
1973
+ /* Sortable tables (data-pots-sort): the column headers become buttons. */
1974
+ th > button.pots-sort {
1975
+ all: unset;
1976
+ cursor: pointer;
1977
+ font: inherit;
1978
+ color: inherit;
1979
+ }
1980
+ th > button.pots-sort:hover {
1981
+ color: var(--pots-text);
1982
+ }
1983
+ th > button.pots-sort:focus-visible {
1984
+ outline: 2px solid var(--pots-accent);
1985
+ outline-offset: 2px;
1986
+ border-radius: 4px;
1987
+ }
1988
+ th > button.pots-sort::after {
1989
+ content: " ↕";
1990
+ opacity: 0.35;
1991
+ }
1992
+ th[aria-sort] {
1993
+ color: var(--pots-text);
1994
+ }
1995
+ th[aria-sort="ascending"] > button.pots-sort::after {
1996
+ content: " ↑";
1997
+ opacity: 1;
1998
+ }
1999
+ th[aria-sort="descending"] > button.pots-sort::after {
2000
+ content: " ↓";
2001
+ opacity: 1;
2002
+ }
2003
+ /* What a filter (data-pots-filter) hides. */
2004
+ .pots-hide {
2005
+ display: none !important;
2006
+ }
2007
+ /* A highlight a page's own script can put on anything. */
2008
+ .pots-hl {
2009
+ background: var(--pots-accent-soft);
2010
+ box-shadow: 0 0 0 1px var(--pots-accent);
2011
+ }
440
2012
  .pots-banner {
441
2013
  position: sticky;
442
2014
  top: 0;
@@ -445,29 +2017,109 @@ form[data-pots-state="gone"] [data-pots-question] {
445
2017
  align-items: center;
446
2018
  justify-content: space-between;
447
2019
  gap: 12px;
448
- margin: 0 0 16px;
449
- padding: 10px 16px;
450
- background: var(--pots-warn-soft);
451
- border: 1px solid var(--pots-border);
452
- border-radius: var(--pots-radius);
2020
+ margin: 0 0 24px;
2021
+ padding: 8px 8px 8px 16px;
2022
+ border: 1px solid color-mix(in srgb, var(--pots-warn) 30%, var(--pots-line));
2023
+ border-radius: var(--pots-r-m);
2024
+ background: color-mix(in srgb, var(--pots-warn) 6%, var(--pots-bg));
2025
+ font-size: 0.875rem;
453
2026
  }
454
2027
  .pots-banner button {
455
- min-height: 40px;
456
- padding: 6px 16px;
2028
+ min-height: 32px;
2029
+ padding: 0 12px;
2030
+ font-size: 0.8125rem;
2031
+ }
2032
+ /* The light and dark switch, at the page's top corner; it scrolls away with the page. */
2033
+ .pots-theme {
2034
+ position: absolute;
2035
+ top: 6px;
2036
+ inset-inline-end: max(6px, env(safe-area-inset-right, 0px));
2037
+ z-index: 10;
2038
+ min-height: 0;
2039
+ width: 32px;
2040
+ height: 32px;
2041
+ padding: 0;
2042
+ border-radius: var(--pots-r);
2043
+ background: none;
2044
+ --pots-icon-colour: var(--pots-faint);
2045
+ }
2046
+ .pots-theme:hover {
2047
+ background: var(--pots-soft);
2048
+ --pots-icon-colour: var(--pots-text);
2049
+ }
2050
+ .pots-theme[data-icon]::before {
2051
+ width: 18px;
2052
+ height: 18px;
2053
+ margin: 0;
2054
+ }
2055
+ @media (min-width: 720px) {
2056
+ .pots-theme {
2057
+ top: 16px;
2058
+ inset-inline-end: 16px;
2059
+ }
457
2060
  }
458
-
459
2061
  [data-pots-error]::before {
460
2062
  content: "Could not load this part of the page.";
461
2063
  display: block;
462
2064
  color: var(--pots-bad);
463
2065
  }
464
-
465
2066
  @media print {
466
- body {
467
- background: none;
468
- }
2067
+ .pots-toc,
2068
+ .pots-tabbar,
469
2069
  form button,
470
- .pots-banner {
2070
+ .pots-banner,
2071
+ .pots-theme {
471
2072
  display: none;
472
2073
  }
2074
+ [data-pots-tabs] > .pots-off {
2075
+ display: block !important;
2076
+ }
2077
+ :is(main, .pots-page):has(> .pots-toc) {
2078
+ padding-left: 0;
2079
+ }
2080
+ }
2081
+
2082
+ /* ---- Adjustments after the first screenshots ---- */
2083
+ code {
2084
+ border: 0;
2085
+ background: var(--pots-soft-2);
2086
+ }
2087
+ pre code {
2088
+ background: none;
2089
+ }
2090
+ .pots-steps > li::before {
2091
+ top: calc(0.5lh - 10px);
2092
+ }
2093
+ :is(main, .pots-page) > header {
2094
+ margin-bottom: 0;
2095
+ }
2096
+ :is(main, .pots-page) > .pots-toc + section {
2097
+ margin-top: 64px;
2098
+ }
2099
+ @media (max-width: 719px) {
2100
+ body {
2101
+ font-size: 1rem;
2102
+ }
2103
+ form[data-pots] [data-pots-question],
2104
+ fieldset {
2105
+ padding: 16px 16px 18px;
2106
+ }
2107
+ h1 {
2108
+ font-size: 2rem; /* title-4 */
2109
+ }
2110
+ h2 {
2111
+ font-size: 1.25rem; /* title-2 */
2112
+ }
2113
+ header > h1 + p {
2114
+ font-size: 1.0625rem;
2115
+ }
2116
+ :is(main, .pots-page) section {
2117
+ margin-top: 64px;
2118
+ }
2119
+ .pots-toc {
2120
+ margin-top: 32px;
2121
+ }
2122
+ :is(main, .pots-page) > .pots-toc + section {
2123
+ margin-top: 40px;
2124
+ }
473
2125
  }