@usableapp/cardds 0.7.158 → 0.7.160

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/dist/cardds.css CHANGED
@@ -377,14 +377,14 @@
377
377
  onlight shade washed 14% into the surface (tone 2's formula) */
378
378
  :root, [data-palette], [data-mode] {
379
379
  /* each kind's style, from its tokens: set here so a palette or a mode that tunes a kind's weight, size, leading or face reaches .t-<kind> */
380
- --type-display: var(--fw-display) var(--fs-display) / var(--lh-display) var(--face-display);
381
- --type-h1: var(--fw-h1) var(--fs-h1) / var(--lh-h1) var(--face-h1);
382
- --type-h2: var(--fw-h2) var(--fs-h2) / var(--lh-h2) var(--face-h2);
383
- --type-title: var(--fw-title) var(--fs-title) / var(--lh-title) var(--face-title);
384
- --type-body: var(--fw-body) var(--fs-body) / var(--lh-body) var(--face-body);
385
- --type-label: var(--fw-label) var(--fs-label) / var(--lh-label) var(--face-label);
386
- --type-caption: var(--fw-caption) var(--fs-caption) / var(--lh-caption) var(--face-caption);
387
- --type-stat: var(--fw-stat) var(--fs-stat) / var(--lh-stat) var(--face-stat);
380
+ --type-display: var(--fw-display) var(--fs-display) / round(down, calc(var(--lh-display) * 1em), 1px) var(--face-display);
381
+ --type-h1: var(--fw-h1) var(--fs-h1) / round(down, calc(var(--lh-h1) * 1em), 1px) var(--face-h1);
382
+ --type-h2: var(--fw-h2) var(--fs-h2) / round(down, calc(var(--lh-h2) * 1em), 1px) var(--face-h2);
383
+ --type-title: var(--fw-title) var(--fs-title) / round(down, calc(var(--lh-title) * 1em), 1px) var(--face-title);
384
+ --type-body: var(--fw-body) var(--fs-body) / round(down, calc(var(--lh-body) * 1em), 1px) var(--face-body);
385
+ --type-label: var(--fw-label) var(--fs-label) / round(down, calc(var(--lh-label) * 1em), 1px) var(--face-label);
386
+ --type-caption: var(--fw-caption) var(--fs-caption) / round(down, calc(var(--lh-caption) * 1em), 1px) var(--face-caption);
387
+ --type-stat: var(--fw-stat) var(--fs-stat) / round(down, calc(var(--lh-stat) * 1em), 1px) var(--face-stat);
388
388
  /* shadows of paper laid on paper: mixed from the onlight ink, so re-derived where a palette is set */
389
389
  --shadow-paper: 0 var(--sp-1) var(--sp-2) color-mix(in srgb, var(--ink-onlight) 16%, transparent); /* a stamp lying on paper: follows its teeth (drop-shadow) */
390
390
  --shadow-lift: 0 var(--sp-0) var(--sp-1) color-mix(in srgb, var(--ink-onlight) 35%, transparent); /* a small disc lifted over a picture */
@@ -610,6 +610,7 @@ body {
610
610
  background: var(--surface);
611
611
  color: var(--card-ink);
612
612
  font: var(--type-body);
613
+ line-height: var(--lh-body); /* the INHERITED leading stays a ratio: the --type-* styles round theirs to whole px for their own size (tokens.css), a length here would reach every child at any size */
613
614
  -webkit-font-smoothing: antialiased;
614
615
  }
615
616
 
@@ -758,7 +759,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
758
759
  .t-expand__sign { justify-self: center; } /* the chevron: down = there is more, up = fold it */
759
760
  .t-label { font: var(--type-label); }
760
761
  .t-caption { font: var(--type-caption); color: var(--t-caption-ink, inherit); }
761
- .t-caption:has(+ .t-h1), .t-h1 + .t-caption { line-height: var(--lh-h1-caption); } /* an h1's caption, over it or under it (Words meta) */
762
+ .t-caption:has(+ .t-h1), .t-h1 + .t-caption { line-height: round(down, calc(var(--lh-h1-caption) * 1em), 1px); } /* an h1's caption, over it or under it (Words meta) */
762
763
  .t-caption:has(+ .t-h1) { display: inline-flex; } /* a caption over an h1 is a span in its div's line: inline, its wrapped lines stood on the div's body leading (33px).
763
764
  As a box it keeps its own leading inside; an inline-flex stands on that line by its FIRST line (an inline-block's would be its last), so a caption
764
765
  that wraps starts where a one-line one does and its next line goes down, the h1 with it (Lh 2026-10-25) */
@@ -810,13 +811,16 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
810
811
  .page > .t-body { color: var(--page-body-ink, var(--on-surface)); max-width: 34ch; } /* full ink: a sentence is read, muted is for meta (Lh 2026-09-22 — the words on the base were grey and hard to read) */
811
812
  /* an illustration among the words (Lh 2026-09-22): capped, so a tall picture never pushes the words under the bar;
812
813
  (the walk's dots are NOT here — they are the Step's, after its Pages: step.css, Lh 2026-09-22) */
813
- .page .cta-pack {
814
+ /* a cta-pack: controls on one line, each its own width, wrapping — under a Page's words, or in a sheet step (a pick beside a folded
815
+ Field, Lh 2026-10-28). It is the box an open .field-fold covers (forms.css), so it is positioned */
816
+ .cta-pack {
817
+ position: relative;
814
818
  display: flex;
815
819
  align-items: start; /* buttons keep their own height, never the row's */
816
- gap: var(--sp-2);
817
- margin-top: var(--sp-2);
820
+ gap: var(--cta-pack-gap, var(--sp-2));
818
821
  flex-wrap: wrap;
819
822
  }
823
+ .page .cta-pack { margin-top: var(--sp-2); }
820
824
 
821
825
  /* ---- empty state: on-surface, centered, optional CTA below ---- */
822
826
  .empty-state {
@@ -1294,7 +1298,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
1294
1298
  .card-feed { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: var(--card-feed-gap, var(--card-gap-rest)); }
1295
1299
  .feed-card { row-gap: 0; }
1296
1300
  .feed-card > .head:has(> .t-caption) > .feed-card__lead { grid-row: span 2; }
1297
- .feed-card__lead { display: grid; align-self: center; } /* a Stamp here is the small one, 48 × 60 (stamp.css) */
1301
+ .feed-card__lead { display: grid; } /* placed by the head's align-items: top with a caption, middle without (parts.css) */ /* a Stamp here is the small one, 48 × 60 (stamp.css) */
1298
1302
  .card-feed__end { text-align: center; }
1299
1303
  .feed-card__more { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr; }
1300
1304
  .feed-card--small > .feed-card__more { grid-template-rows: 0fr; }
@@ -1664,7 +1668,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
1664
1668
  stack deliberately runs a second line under the next card. */
1665
1669
  .sheet-stack > .card > .head :is(h1, h2, h3) {
1666
1670
  font-size: var(--fs-h1);
1667
- line-height: var(--lh-solid);
1671
+ line-height: round(down, calc(var(--lh-solid) * 1em), 1px);
1668
1672
  letter-spacing: var(--track-h2);
1669
1673
  margin-right: auto; /* pins the icon cluster right */
1670
1674
  display: block;
@@ -1893,7 +1897,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
1893
1897
  padding: 0 var(--stack-sheet-count-pad-x, 0.25em) var(--stack-sheet-count-lift, 0.1em); /* "99+" keeps its room at every text size;
1894
1898
  the room UNDER the number lifts it onto the circle's middle: a digit has no descender, so a centred line box sets it low (Lh 2026-10-01) */
1895
1899
  font: var(--type-caption);
1896
- line-height: var(--lh-solid);
1900
+ line-height: round(down, calc(var(--lh-solid) * 1em), 1px);
1897
1901
  pointer-events: none;
1898
1902
  }
1899
1903
  /* a tab not chosen is the icon alone — no ring, no ground (Lh 2026-09-23: "the circle around is not pretty"); the chosen one turns
@@ -2451,7 +2455,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
2451
2455
  flex: none; display: grid; place-items: center; box-sizing: border-box; inline-size: var(--sheet-step-num-size, 1.408em); block-size: var(--sheet-step-num-size, 1.408em); /* em, not rem (Lh 2026-10-03, as the StackSheet's count): the disc is cut from ITS OWN number's size —
2452
2456
  at a large text size the number grew and a 24px disc did not, so the digit sat on its bottom edge; 1.408em of a 17px caption = the 24px it always was */
2453
2457
  padding-bottom: var(--sheet-step-num-lift, 0.1em); /* the room UNDER the number lifts it onto the disc's middle: a digit has no descender, so a centred line box sets it low */
2454
- border-radius: 50%; font: var(--sheet-step-num-font, var(--type-caption)); line-height: var(--lh-solid); font-variant-numeric: tabular-nums;
2458
+ border-radius: 50%; font: var(--sheet-step-num-font, var(--type-caption)); line-height: round(down, calc(var(--lh-solid) * 1em), 1px); font-variant-numeric: tabular-nums;
2455
2459
  background: var(--sheet-step-num-bg, var(--card-bg)); color: var(--sheet-step-num-ink, inherit);
2456
2460
  }
2457
2461
  .sheet-step__summary { color: var(--sheet-step-summary-ink, var(--card-muted)); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@@ -2606,7 +2610,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
2606
2610
  .field select,
2607
2611
  .field textarea,
2608
2612
  .field--rows {
2609
- font: var(--field-font, var(--fw-regular) var(--fs-lg) / var(--lh-field) var(--font-ui)); /* 26: the words being typed read a size up from body (Lh 2026-09-22); the Composer already does. .field--rows too, so 1lh is the textarea's line for its icon */
2613
+ font: var(--field-font, var(--fw-regular) var(--fs-lg) / round(down, calc(var(--lh-field) * 1em), 1px) var(--font-ui)); /* 26: the words being typed read a size up from body (Lh 2026-09-22); the Composer already does. .field--rows too, so 1lh is the textarea's line for its icon */
2610
2614
  }
2611
2615
  .field input,
2612
2616
  .field select,
@@ -2631,6 +2635,30 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
2631
2635
  /* field with its action inside: date pick, send, go — the button sits flush right */
2632
2636
  .field--action { padding-right: var(--sp-1); min-height: var(--field-action-min-h, var(--form-tap-lg)); }
2633
2637
 
2638
+ /* ---- field-fold (Field fold, Lh 2026-10-28): the field folded into a button; opened, it grows out of the button's box to the whole width
2639
+ of what it stands in, the button gone under it. Field measures the button (--_fold-w) and, in a .cta-pack, the line it stands on
2640
+ (--_fold-y). Folded, the field is there but unseen and inert, so the tap can put the cursor in it inside the finger's own event ---- */
2641
+ .field-fold { position: relative; display: grid; justify-items: start; }
2642
+ .field-fold > .field {
2643
+ position: absolute; inset-block-start: 0; inset-inline-start: 0;
2644
+ width: var(--_fold-w, 100%); height: 100%; min-height: 0;
2645
+ opacity: 0; pointer-events: none;
2646
+ transition: width var(--motion-quick) var(--ease), opacity var(--motion-quick) var(--ease);
2647
+ }
2648
+ .field-fold--open > .field { width: 100%; opacity: 1; pointer-events: auto; }
2649
+ .field-fold__btn { white-space: nowrap; } /* its words on one line, so Field reads the width they need */
2650
+ .field-fold--open > .field-fold__btn { visibility: hidden; }
2651
+ /* in a .cta-pack: the button at the line's end; open, the field covers the whole line it stands on, growing leftwards out of the button */
2652
+ /* the fold takes the rest of the line, its button at the end and as tall as the line; with no room for the words beside the other
2653
+ controls (Field's measure: --tight) the button is the icon alone, square, the words still its spoken name */
2654
+ .cta-pack > .field-fold { position: static; flex: 1 1 0; min-width: var(--form-tap); justify-items: end; align-self: stretch; }
2655
+ .cta-pack > .field-fold > .field-fold__btn { min-height: var(--form-tap); padding-block: 0; padding-inline: var(--field-fold-pad-x, var(--sp-4)); }
2656
+ .cta-pack > .field-fold > .field { inset-block-start: var(--_fold-y, 0); inset-inline: auto 0; height: var(--_fold-h, auto); }
2657
+ .field-fold--tight > .field-fold__btn { padding-inline: calc((var(--form-tap) - var(--icon-xs)) / 2); } /* square on the line: a tap wide round its icon */
2658
+ .field-fold--tight .field-fold__words { position: absolute; width: var(--px); height: var(--px); overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
2659
+ .cta-pack:has(> .field-fold--open) > :not(.field-fold) { visibility: hidden; transition: visibility 0s var(--ease-linear) var(--motion-quick); }
2660
+ @media (prefers-reduced-motion: reduce) { .field-fold > .field { transition: none; } }
2661
+
2634
2662
  /* colored palettes drop the visible outline elsewhere — fields keep one */
2635
2663
  [data-palette] .field:not(:has(:focus)) { border-color: color-mix(in srgb, currentColor 25%, transparent); }
2636
2664
 
@@ -2654,7 +2682,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
2654
2682
  display: grid;
2655
2683
  place-items: center;
2656
2684
  font-size: var(--add-row-plus-font-size, var(--fs-md));
2657
- line-height: var(--lh-solid);
2685
+ line-height: round(down, calc(var(--lh-solid) * 1em), 1px);
2658
2686
  }
2659
2687
  .add-row__plus .icon { --icon-size: var(--icon-xs); }
2660
2688
 
@@ -2702,7 +2730,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
2702
2730
  margin: 0;
2703
2731
  padding: var(--message-bar-input-pad-y, var(--sp-2)) var(--message-bar-input-pad-x, var(--sp-4));
2704
2732
  border: 0;
2705
- font: var(--message-bar-input-font, var(--fw-regular) var(--fs-lg) / var(--lh-field) var(--font-ui)); /* the words being typed read as a Field's */
2733
+ font: var(--message-bar-input-font, var(--fw-regular) var(--fs-lg) / round(down, calc(var(--lh-field) * 1em), 1px) var(--font-ui)); /* the words being typed read as a Field's */
2706
2734
  white-space: pre-wrap;
2707
2735
  overflow-wrap: anywhere;
2708
2736
  }
@@ -2797,21 +2825,23 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
2797
2825
  /* the label is the badge's own ink, smaller: a badge is a small fill of any colour (a palette paints it yellow), and only its own ink is
2798
2826
  sure to hold 4.5:1 on it; --dim faded it to 2.4:1 */
2799
2827
  .tile-badge__label { font: var(--tile-badge-label-font, var(--type-caption)); color: var(--tile-badge-label-ink, inherit); }
2800
- .tile-badge__value { font: var(--fw-heavy) var(--fs-lg) / var(--lh-tight) var(--font-display); font-variant-numeric: tabular-nums; }
2828
+ .tile-badge__value { font: var(--fw-heavy) var(--fs-lg) / round(down, calc(var(--lh-tight) * 1em), 1px) var(--font-display); font-variant-numeric: tabular-nums; }
2801
2829
 
2802
2830
  /* plain: no fill — a date box beside a title (Jun / 18) */
2803
2831
  .tile-badge--plain { background: transparent; --dark: inherit; color: inherit; padding: 0; min-width: var(--tile-badge-plain-min-w, var(--tap-sm)); }
2804
- .tile-badge--plain .tile-badge__value { font: var(--fw-heavy) var(--fs-h1) / var(--lh-solid) var(--font-display); }
2832
+ .tile-badge--plain .tile-badge__value { font: var(--fw-heavy) var(--fs-h1) / round(down, calc(var(--lh-solid) * 1em), 1px) var(--font-display); }
2805
2833
 
2806
2834
  /* stretch: a date in a head (Lh 2026-10-19) — as tall as the title block beside it and no taller (the head stretches it; size
2807
2835
  containment keeps its own words from adding height). Its height picks the form: short (a one-line title) = two lines, the day name
2808
2836
  over the number and the month on one line; tall (a two-line title) = three lines, day · number · month. It grows no taller than
2809
2837
  its three lines (2026-10-21, timebank: beside a four-line title it was a tall empty block); held there, it stands at the head's top. */
2810
2838
  .tile-badge--stretch {
2811
- line-height: var(--tile-badge-line, var(--lh-badge)); /* the knob's own property; the cap below reads it too */
2839
+ line-height: var(--tile-badge-line, var(--lh-badge)); /* the knob's own property, a ratio here: each line rounds it at its own size (below), and the caps add those lines */
2812
2840
  align-self: stretch;
2813
- min-block-size: calc((var(--fs-caption) + var(--fs-lg)) * var(--tile-badge-line, var(--lh-badge)) + 2 * var(--sp-3)); /* size containment hides the lines from the box, so it asks for the shortest form's height itself: a head whose chips are shorter (one chip) no longer leaves the lines hanging out of the fill */
2814
- max-block-size: calc((2 * var(--fs-caption) + var(--fs-lg)) * var(--tile-badge-line, var(--lh-badge)) + 2 * var(--sp-3));
2841
+ --_line-caption: round(down, calc(var(--fs-caption) * var(--tile-badge-line, var(--lh-badge))), 1px);
2842
+ --_line-value: round(down, calc(var(--fs-lg) * var(--tile-badge-line, var(--lh-badge))), 1px);
2843
+ min-block-size: calc(var(--_line-caption) + var(--_line-value) + 2 * var(--sp-3)); /* size containment hides the lines from the box, so it asks for the shortest form's height itself: a head whose chips are shorter (one chip) no longer leaves the lines hanging out of the fill */
2844
+ max-block-size: calc(2 * var(--_line-caption) + var(--_line-value) + 2 * var(--sp-3));
2815
2845
  container-type: size;
2816
2846
  /* size containment hides the words' width from the box, so the component passes their count (--_badge-chars: the value, plus half of the sub that stands beside it)
2817
2847
  and the box is the wider of a two-digit date and that many digits; the app's knob still wins */
@@ -2825,7 +2855,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
2825
2855
  row-gap: 0;
2826
2856
  padding: var(--sp-3); /* the same room on all four sides; the box's min height and width count it */
2827
2857
  }
2828
- .tile-badge--stretch > * { line-height: inherit; white-space: nowrap; } /* a value never breaks at its dash */
2858
+ .tile-badge--stretch > * { line-height: round(down, calc(var(--tile-badge-line, var(--lh-badge)) * 1em), 1px); white-space: nowrap; } /* a value never breaks at its dash */
2829
2859
  .tile-badge--stretch > :first-child { grid-column: 1 / -1; }
2830
2860
  @container (min-height: 3.5rem) { /* just under the three lines' own height, the most the badge grows to */
2831
2861
  .tile-badge--stretch > * { grid-column: 1 / -1; }
@@ -2912,7 +2942,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
2912
2942
  margin: 0; text-align: start;
2913
2943
  border-radius: var(--appbar-who-radius, var(--r-chip));
2914
2944
  }
2915
- .appbar__title, .appbar__sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: var(--lh-caption); } /* clipped lines: room for Thai marks */
2945
+ .appbar__title, .appbar__sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: round(down, calc(var(--lh-caption) * 1em), 1px); } /* clipped lines: room for Thai marks */
2916
2946
  .appbar__title { font: var(--type-label); }
2917
2947
  .appbar__sub { font: var(--type-caption); color: var(--on-surface-muted); }
2918
2948
  /* the bar's trailing controls (one or two: a labelled switch chip, a wallet button — home,
@@ -2931,7 +2961,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
2931
2961
  display: grid;
2932
2962
  place-items: center;
2933
2963
  font-size: var(--fs-lg);
2934
- line-height: var(--lh-solid);
2964
+ line-height: round(down, calc(var(--lh-solid) * 1em), 1px);
2935
2965
  }
2936
2966
  .icon-btn--invert { background: var(--icon-btn-invert-bg, var(--accent)); color: var(--icon-btn-invert-ink, var(--on-accent)); border-color: transparent; }
2937
2967
  .icon-btn--sm { width: var(--icon-btn-sm-size, var(--tap-sm)); height: var(--icon-btn-sm-size, var(--tap-sm)); font-size: var(--fs-title); }
@@ -3012,7 +3042,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
3012
3042
  /* sm (Btn sm, Lh 2026-10-28): one small tap tall (the touch floor, 44), the small words, closer sides — a worded move at a card head's end */
3013
3043
  .btn--sm { min-height: var(--btn-sm-size, var(--form-tap-sm)); padding-block: var(--sp-1); padding-inline: var(--btn-sm-pad-x, var(--sp-4)); font-size: var(--btn-sm-font-size, var(--fs-sm)); }
3014
3044
  /* xl: the one giant call to action in a tinted card ("Taxi!") */
3015
- .btn--xl { min-height: var(--btn-xl-h); font: var(--fw-heavy) var(--fs-3xl) / var(--lh-solid) var(--font-display); letter-spacing: var(--track-h1); border-radius: var(--r-card); padding-inline: var(--sp-8); }
3045
+ .btn--xl { min-height: var(--btn-xl-h); font: var(--fw-heavy) var(--fs-3xl) / round(down, calc(var(--lh-solid) * 1em), 1px) var(--font-display); letter-spacing: var(--track-h1); border-radius: var(--r-card); padding-inline: var(--sp-8); }
3016
3046
  /* disabled keeps the slot — a control that vanishes moves everything else,
3017
3047
  and a pager whose "previous" disappeared on page one would shift the bar
3018
3048
  under the thumb on every page */
@@ -3037,6 +3067,26 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
3037
3067
  /* link block (LinkBlock, Lh 2026-10-28): a few pieces of a card's content as one link — stacked with the card's gap, the holder's ink, no underline,
3038
3068
  no frame, no padding; the DIM press answer (below) */
3039
3069
  .link-block { display: grid; gap: var(--link-block-gap, var(--card-gap)); color: inherit; text-decoration: none; }
3070
+ /* a Row in a link block with a lead and a meta (Lh 2026-10-28, the place under a map): laid as a led Head is (parts.css) — everything at the TOP,
3071
+ the lead at the left as tall as the row, the title with the end (and an arrow) at the right of its first line, the meta on a line of its own
3072
+ UNDER BOTH. The Words box gives way (display: contents) so its title and meta stand in the row's grid; the gaps are margins, the four spare
3073
+ columns of no width hold the ends. Only here: a list's rows are untouched.
3074
+ <a class="link-block">…<div class="row"><span class="lead">…</span><span class="words"><span class="words__title">…</span><span class="words__meta">…</span></span><span class="end">…</span><svg class="icon"/></div></a> */
3075
+ .link-block > .row:has(> .lead:first-child + .words > .words__title:first-child + .words__meta) {
3076
+ display: grid;
3077
+ grid-template-columns: auto minmax(0, 1fr) repeat(4, auto);
3078
+ grid-template-rows: minmax(min-content, 0);
3079
+ grid-auto-rows: auto;
3080
+ column-gap: 0;
3081
+ row-gap: var(--words-gap, var(--sp-0));
3082
+ align-items: start;
3083
+ align-content: start;
3084
+ }
3085
+ .link-block > .row:has(> .lead:first-child + .words > .words__title:first-child + .words__meta) > .lead { grid-column: 1; grid-row: 1 / 3; margin-inline-end: var(--row-gap, var(--sp-3)); }
3086
+ .link-block > .row:has(> .lead:first-child + .words > .words__title:first-child + .words__meta) > .words { display: contents; }
3087
+ .link-block > .row:has(> .lead:first-child + .words > .words__title:first-child + .words__meta) > .words > .words__title { grid-column: 2; grid-row: 1; }
3088
+ .link-block > .row:has(> .lead:first-child + .words > .words__title:first-child + .words__meta) > .words > .words__meta { grid-column: 2 / -1; grid-row: 2; }
3089
+ .link-block > .row:has(> .lead:first-child + .words > .words__title:first-child + .words__meta) > :nth-child(n + 3) { grid-row: 1; margin-inline-start: var(--row-gap, var(--sp-3)); }
3040
3090
  /* a row of buttons sharing the width (twin CTAs inside a card) */
3041
3091
  .btn-row { display: flex; gap: var(--btn-row-gap, var(--sp-2)); }
3042
3092
  /* round (BtnRow round, Lh 2026-10-24): a few round IconBtns as one group in the middle of a card's content, a fixed gap apart — Foot round's look,
@@ -3089,9 +3139,9 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
3089
3139
  .dot--info { background: var(--signal-info); }
3090
3140
  /* --sm: a small LABEL (a name on a note, a tag in a tight head) — low and tight; never a tap target */
3091
3141
  /* one height wherever it stands (Lh 2026-10-21): the body's line, so a head that cuts its words with an ellipsis keeps the Thai marks over them, and a foot's or a middle's chip reads the same */
3092
- .chip--sm { min-height: 0; gap: var(--chip-sm-gap, var(--sp-1)); padding: var(--chip-sm-pad-y, var(--sp-0)) var(--chip-sm-pad-x, var(--sp-2)); line-height: var(--chip-sm-line, var(--lh-body)); }
3142
+ .chip--sm { min-height: 0; gap: var(--chip-sm-gap, var(--sp-1)); padding: var(--chip-sm-pad-y, var(--sp-0)) var(--chip-sm-pad-x, var(--sp-2)); line-height: round(down, calc(var(--chip-sm-line, var(--lh-body)) * 1em), 1px); }
3093
3143
  /* --xs: the smallest label — a count in a card's status row (👥 12), smaller than --sm; the icon follows its words (Lh 2026-10-24); never a tap target */
3094
- .chip--xs { min-height: 0; gap: var(--chip-xs-gap, var(--sp-0)); padding: var(--chip-xs-pad-y, var(--sp-0)) var(--chip-xs-pad-x, var(--sp-1)); font-size: var(--chip-xs-font-size, var(--fs-2xs)); line-height: var(--chip-xs-line, var(--lh-tight)); }
3144
+ .chip--xs { min-height: 0; gap: var(--chip-xs-gap, var(--sp-0)); padding: var(--chip-xs-pad-y, var(--sp-0)) var(--chip-xs-pad-x, var(--sp-1)); font-size: var(--chip-xs-font-size, var(--fs-2xs)); line-height: round(down, calc(var(--chip-xs-line, var(--lh-tight)) * 1em), 1px); }
3095
3145
  .chip--xs > .icon { width: var(--chip-xs-icon-size, 1em); height: var(--chip-xs-icon-size, 1em); }
3096
3146
  /* soft: the accent washed into the chip's ground, no edge — a status to see, quieter than on (was the inbox Ribbon, Lh 2026-10-21) */
3097
3147
  .chip--soft { background: var(--chip-soft-bg, var(--accent-wash)); color: var(--chip-soft-ink, var(--card-ink)); border-color: transparent; } /* the wash on the chip's own paper, opaque (--accent-wash): see-through, a dark tone came through under the light side's ink */
@@ -3177,6 +3227,10 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
3177
3227
  background: var(--btngroup-choice-on-bg, var(--accent));
3178
3228
  color: var(--btngroup-choice-on-ink, var(--on-accent));
3179
3229
  }
3230
+ /* --form (Lh 2026-10-28): each word as wide as it is, the frame as wide as them all, in the middle of a grid column (a step) as a
3231
+ `.btn--form`; in a .cta-pack it is just the line's first piece */
3232
+ .segment--choice.segment--form { justify-self: center; max-width: 100%; }
3233
+ .segment--choice.segment--form > .segment__item { flex: 0 1 auto; white-space: nowrap; padding-inline: var(--btngroup-choice-form-pad-x, var(--sp-4)); }
3180
3234
  .segment--choice > .segment__item:active:not(:disabled) { scale: 1; opacity: var(--press-dim); } /* a part of one frame DIMS, it never shrinks inside it */
3181
3235
 
3182
3236
  /* ---- bottom CTA pack: the screen's bottom (Screen `bottom`) ----
@@ -3384,7 +3438,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
3384
3438
 
3385
3439
  /* ---- where it sits in what card.css draws (docs/reference.md rule 15) ---- */
3386
3440
  /* a head's ChipRow takes a line of its own under the title: at most two lines of chips, a chip's words cut with an ellipsis */
3387
- .head > .chip-row { flex: 1 1 100%; order: 2; max-height: calc(2 * (var(--fs-sm) * var(--chip-sm-line, var(--lh-body)) + 2 * var(--chip-sm-pad-y, var(--sp-0)) + 2 * var(--border-w)) + var(--sp-2)); overflow: hidden; }
3441
+ .head > .chip-row { flex: 1 1 100%; order: 2; max-height: calc(2 * (round(down, calc(var(--fs-sm) * var(--chip-sm-line, var(--lh-body))), 1px) + 2 * var(--chip-sm-pad-y, var(--sp-0)) + 2 * var(--border-w)) + var(--sp-2)); overflow: hidden; }
3388
3442
  /* …beside a date that leads the head (card.css) they stand in the date's row, every chip in sight: the meeting place may take a line of its own */
3389
3443
  .head:has(> .tile-badge:first-child + .chip-row) > .chip-row { grid-column: 2; grid-row: 1; max-height: none; }
3390
3444
  .head > .chip-row > .chip { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@@ -3491,7 +3545,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
3491
3545
  .ring__value { font: var(--ring-value-font, var(--type-stat)); letter-spacing: var(--track-display); }
3492
3546
  .ring__label { font: var(--ring-label-font, var(--type-caption)); color: var(--ring-label-ink, var(--card-muted)); }
3493
3547
  .ring--sm { --_size: var(--avatar-xl); --_w: var(--sp-3); }
3494
- .ring--sm .ring__value { font: var(--fw-heavy) var(--fs-2xl) / var(--lh-solid) var(--font-display); }
3548
+ .ring--sm .ring__value { font: var(--fw-heavy) var(--fs-2xl) / round(down, calc(var(--lh-solid) * 1em), 1px) var(--font-display); }
3495
3549
  .ring--xs { --_size: var(--tap-sm); --_w: var(--dot-xs); } /* inline counter (step 3 of 5) */
3496
3550
  .ring--xs .ring__value { font: var(--type-caption); }
3497
3551
 
@@ -3539,7 +3593,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
3539
3593
  background: var(--ink-tint); /* a number is words: on the 30% rail it fell under 4.5:1 on a mid-dark track; the 12% tint is what every tone holds its ink on */
3540
3594
  color: var(--card-ink);
3541
3595
  display: grid; place-items: center; box-sizing: border-box;
3542
- font: var(--track-dot-font, var(--type-caption)); line-height: var(--lh-solid); font-variant-numeric: tabular-nums;
3596
+ font: var(--track-dot-font, var(--type-caption)); line-height: round(down, calc(var(--lh-solid) * 1em), 1px); font-variant-numeric: tabular-nums;
3543
3597
  width: var(--track-dot-size, 1.877em); height: var(--track-dot-size, 1.877em); /* em, not rem (Lh 2026-10-03, as the SheetSteps' number and the StackSheet's count): the round is cut from ITS OWN
3544
3598
  number's size — 1.877em of a 17px caption = the 32px of an icon's round; at a larger text it grows with its number, and the pill with it */
3545
3599
  padding: 0 0 var(--track-dot-lift, 0.1em); /* the room UNDER the number lifts it onto the round's middle: a digit has no descender */
@@ -3549,10 +3603,10 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
3549
3603
 
3550
3604
  /* ---- band: data card — 2-line label · giant number · footnote ----
3551
3605
  <article class="card card--band"><span class="band__label">Hours<br>banked</span><span class="band__num">18</span><span class="band__foot">this week</span></article> */
3552
- .band__label { grid-area: label; align-self: start; font: var(--band-label-font, var(--type-label)); font-size: var(--band-label-font-size, var(--fs-body)); line-height: var(--lh-label); }
3606
+ .band__label { grid-area: label; align-self: start; font: var(--band-label-font, var(--type-label)); font-size: var(--band-label-font-size, var(--fs-body)); line-height: round(down, calc(var(--lh-label) * 1em), 1px); }
3553
3607
  .band__num {
3554
3608
  grid-area: num;
3555
- font: var(--fw-heavy) var(--fs-giant) / var(--lh-band) var(--font-display);
3609
+ font: var(--fw-heavy) var(--fs-giant) / var(--lh-band) var(--font-display); /* a ratio, not rounded: its <small> unit sets a smaller size and inherits this leading */
3556
3610
  letter-spacing: var(--track-display);
3557
3611
  font-variant-numeric: tabular-nums;
3558
3612
  }
@@ -3925,7 +3979,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
3925
3979
  color: var(--day-rest-ink, var(--card-muted)); /* an unpicked day at rest: the muted words of the ground it stands on (an opacity faded it under AA) */
3926
3980
  }
3927
3981
  .day__name { font: var(--day-name-font, var(--type-caption)); }
3928
- .day__num { font: var(--fw-bold) var(--fs-lg) / var(--lh-tight) var(--font-display); font-variant-numeric: tabular-nums; }
3982
+ .day__num { font: var(--fw-bold) var(--fs-lg) / round(down, calc(var(--lh-tight) * 1em), 1px) var(--font-display); font-variant-numeric: tabular-nums; }
3929
3983
  /* today: a light tone, no louder than a rest; the selected pill below wins when it is both (it comes after and weighs more) */
3930
3984
  .day--today { background: var(--day-today-bg, var(--ink-tint)); color: var(--day-today-ink, var(--card-ink)); }
3931
3985
  .day[aria-selected="true"] { background: var(--day-selected-bg, var(--accent)); color: var(--day-selected-ink, var(--on-accent)); }
@@ -3944,7 +3998,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
3944
3998
  display: grid;
3945
3999
  place-items: center;
3946
4000
  border-radius: 50%;
3947
- font: var(--fw-medium) var(--fs-title) / var(--lh-solid) var(--font-ui);
4001
+ font: var(--fw-medium) var(--fs-title) / round(down, calc(var(--lh-solid) * 1em), 1px) var(--font-ui);
3948
4002
  font-variant-numeric: tabular-nums;
3949
4003
  grid-column-start: var(--start, auto); /* --start on the 1st: weekday column 1–7 */
3950
4004
  }
@@ -4103,7 +4157,7 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
4103
4157
  padding: 0;
4104
4158
  background: transparent;
4105
4159
  color: inherit;
4106
- font: var(--composer-input-font, var(--fw-bold) var(--fs-2xl) / var(--lh-h2) var(--font-display));
4160
+ font: var(--composer-input-font, var(--fw-bold) var(--fs-2xl) / round(down, calc(var(--lh-h2) * 1em), 1px) var(--font-display));
4107
4161
  letter-spacing: var(--track-h2);
4108
4162
  outline: none;
4109
4163
  }
@@ -4453,7 +4507,7 @@ a.bubble { color: inherit; text-decoration: none; }
4453
4507
  .words__title { font: var(--words-title-font, var(--type-title)); overflow-wrap: anywhere; } /* wraps freely — no clip, so no padding trick for Thai marks (Lh 2026-09-16, same call as the card heading) */
4454
4508
  .words__over { font: var(--words-over-font, var(--type-caption)); } /* the caption over the title (Words over): its own knob, as title and meta have — a low bar sets all three smaller from outside */
4455
4509
  .words__meta { font: var(--words-meta-font, var(--type-caption)); color: var(--words-meta-ink, var(--card-muted)); display: flex; align-items: center; gap: var(--words-meta-gap, var(--sp-1)); }
4456
- .row--lg > .words > .words__title { font: var(--fw-bold) var(--fs-lg) / var(--lh-h1) var(--font-display); }
4510
+ .row--lg > .words > .words__title { font: var(--fw-bold) var(--fs-lg) / round(down, calc(var(--lh-h1) * 1em), 1px) var(--font-display); }
4457
4511
  .row--done > .words > .words__title { color: var(--card-muted); }
4458
4512
 
4459
4513
  /* ---- end: the value over its caption, right-aligned at the end of a line ---- */
@@ -4530,7 +4584,7 @@ a.bubble { color: inherit; text-decoration: none; }
4530
4584
  text-align: center;
4531
4585
  }
4532
4586
  .head--centre > .words__title { grid-area: 2 / 2; }
4533
- .head--centre > .words__meta { grid-area: 3 / 2; line-height: calc(var(--lh-body) * var(--fs-base)); } /* the meta stands on the body's line, as the sub did, an inline span in a line of the head's own type */
4587
+ .head--centre > .words__meta { grid-area: 3 / 2; line-height: round(down, calc(var(--lh-body) * var(--fs-base)), 1px); } /* the meta stands on the body's line, as the sub did, an inline span in a line of the head's own type */
4534
4588
  .head--centre > :first-child:not(.words__title) { grid-area: 1 / 1 / -1 / 2; }
4535
4589
  .head--centre > :last-child:not(.words__title, .words__meta) { grid-area: 1 / 3 / -1 / 4; }
4536
4590
 
@@ -4574,23 +4628,56 @@ a.bubble { color: inherit; text-decoration: none; }
4574
4628
  }
4575
4629
  .head:has(> .tile-badge:first-child + .chip-row) > :nth-child(n + 3) { grid-column: 1 / -1; grid-row: auto; }
4576
4630
 
4577
- /* a head that LEADS with a person or a thing (Lh 2026-10-28, timebank's welcome card): a `Head` whose first child is a `Lead`, an `Avatar` or an
4578
- `AvatarStack` (a stamp in one) and whose second is the `Words` title. The lead stands at the left; beside it, left-aligned, ONE block — the title
4579
- at the card heading's size over its meta — as a FeedCard's head draws it; whatever follows (an `End`, an `IconBtn`) stands at the right, centred to
4580
- the block. A title without a meta is centred to the lead. The title is cut at --head-title-lines (above), the meta at --head-meta-lines (none).
4581
- A head with no lead before its title is untouched.
4582
- <div class="head"><span class="avatar-stack">…</span><h2 class="words__title t-h2">…</h2><span class="words__meta t-caption t-muted">…</span><span class="end">…</span></div> */
4631
+ /* a head that LEADS with a person or a thing (Lh 2026-10-28, timebank's welcome card; re-laid for a phone's width the same day): a `Head` whose
4632
+ first child is a `Lead`, an `Avatar` or an `AvatarStack` (a stamp in one) and whose second is the `Words` title. Everything stands at the TOP.
4633
+ Two columns: the lead at the left, as tall as the head; at its right the title, with whatever follows it (an `End`, an `IconBtn`, a `Btn sm`)
4634
+ together at the right of the title's first line, and the meta on a line of its own UNDER BOTH, as wide as the title and the ends together, so
4635
+ a long meta never wraps in a thin column. No end: the title takes the line. No meta: no second line, no gap, and the one line (title and ends)
4636
+ stands in the MIDDLE of the lead. The title is cut at
4637
+ --head-title-lines (above), the meta at --head-meta-lines (none). A head with no lead before its title is untouched.
4638
+ The gaps are margins, not column-gap: the head keeps four spare columns of no width for its ends, so the meta can run to the last (2 / -1).
4639
+ The first row is minmax(min-content, 0): a lead taller than title + meta gives its extra room to the meta's row, never between the two lines.
4640
+ <div class="head"><span class="avatar-stack">…</span><h2 class="words__title t-h2">…</h2><span class="words__meta t-caption t-muted">…</span><button class="icon-btn">…</button></div> */
4583
4641
  .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) {
4584
4642
  display: grid;
4585
- grid-template-columns: auto minmax(0, 1fr);
4586
- grid-auto-columns: auto;
4587
- align-items: center;
4643
+ grid-template-columns: auto minmax(0, 1fr) repeat(4, auto);
4644
+ grid-template-rows: minmax(min-content, 0);
4645
+ grid-auto-rows: auto;
4646
+ column-gap: 0;
4647
+ align-items: start;
4648
+ align-content: start;
4588
4649
  }
4589
- .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) > :first-child { grid-column: 1; grid-row: 1 / 3; }
4590
- .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) > :nth-child(2) { grid-column: 2; grid-row: 1; align-self: end; }
4591
- .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) > :nth-child(2):not(:has(+ .words__meta)) { grid-row: 1 / 3; align-self: center; }
4650
+ .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) > :first-child { grid-column: 1; grid-row: 1; margin-inline-end: var(--head-col-gap, var(--sp-3)); }
4651
+ .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title) + .words__meta) > :first-child { grid-row: 1 / 3; }
4652
+ /* round buttons at the end (one or two IconBtn of one size, with a meta; Lh 2026-10-28): they stand fixed in the top-right corner OVER the title's
4653
+ column, and the title's lines wrap round them as round a float — a line past the buttons' height runs the full width under them; the meta runs
4654
+ under all. The room is an empty float at the start of the title, as wide as the buttons and their gaps, as tall as one. An End or a Btn (words
4655
+ of no known width), and a head with no meta (centred, below), keep the two-cell line. The DOM order is untouched: the title is read first. */
4656
+ .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title + .words__meta):has(> .icon-btn):not(:has(> :nth-child(n + 3):not(.words__meta, .icon-btn), > .icon-btn ~ .icon-btn ~ .icon-btn, > .icon-btn:is(.icon-btn--lg, .icon-btn--xl), > .icon-btn--sm ~ .icon-btn:not(.icon-btn--sm), > .icon-btn:not(.icon-btn--sm) ~ .icon-btn--sm)) {
4657
+ --_head-end: var(--icon-btn-size, var(--tap));
4658
+ --_head-ends: 1;
4659
+ }
4660
+ .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title + .words__meta):has(> .icon-btn--sm):not(:has(> :nth-child(n + 3):not(.words__meta, .icon-btn), > .icon-btn ~ .icon-btn ~ .icon-btn, > .icon-btn:is(.icon-btn--lg, .icon-btn--xl), > .icon-btn--sm ~ .icon-btn:not(.icon-btn--sm), > .icon-btn:not(.icon-btn--sm) ~ .icon-btn--sm)) { --_head-end: var(--icon-btn-sm-size, var(--tap-sm)); }
4661
+ .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title + .words__meta):has(> .icon-btn ~ .icon-btn):not(:has(> :nth-child(n + 3):not(.words__meta, .icon-btn), > .icon-btn ~ .icon-btn ~ .icon-btn, > .icon-btn:is(.icon-btn--lg, .icon-btn--xl), > .icon-btn--sm ~ .icon-btn:not(.icon-btn--sm), > .icon-btn:not(.icon-btn--sm) ~ .icon-btn--sm)) { --_head-ends: 2; }
4662
+ .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title + .words__meta):has(> .icon-btn):not(:has(> :nth-child(n + 3):not(.words__meta, .icon-btn), > .icon-btn ~ .icon-btn ~ .icon-btn, > .icon-btn:is(.icon-btn--lg, .icon-btn--xl), > .icon-btn--sm ~ .icon-btn:not(.icon-btn--sm), > .icon-btn:not(.icon-btn--sm) ~ .icon-btn--sm)) > .icon-btn { grid-column: 2; grid-row: 1; justify-self: end; margin-inline-start: 0; }
4663
+ .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title + .words__meta):has(> .icon-btn):not(:has(> :nth-child(n + 3):not(.words__meta, .icon-btn), > .icon-btn ~ .icon-btn ~ .icon-btn, > .icon-btn:is(.icon-btn--lg, .icon-btn--xl), > .icon-btn--sm ~ .icon-btn:not(.icon-btn--sm), > .icon-btn:not(.icon-btn--sm) ~ .icon-btn--sm)) > .icon-btn:has(~ .icon-btn) { margin-inline-end: calc(var(--_head-end) + var(--head-col-gap, var(--sp-3))); }
4664
+ .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title + .words__meta):has(> .icon-btn):not(:has(> :nth-child(n + 3):not(.words__meta, .icon-btn), > .icon-btn ~ .icon-btn ~ .icon-btn, > .icon-btn:is(.icon-btn--lg, .icon-btn--xl), > .icon-btn--sm ~ .icon-btn:not(.icon-btn--sm), > .icon-btn:not(.icon-btn--sm) ~ .icon-btn--sm)) > .words__title {
4665
+ /* WebKit draws a float inside the -webkit-box line clamp as a box of its own ABOVE the words, so this title is a plain block: cut at
4666
+ --head-title-lines by its height (whole lines, no "…") */
4667
+ display: flow-root;
4668
+ max-height: calc(var(--head-title-lines, 3) * 1lh + var(--_mark-room) + var(--_mark-foot));
4669
+ }
4670
+ .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title + .words__meta):has(> .icon-btn):not(:has(> :nth-child(n + 3):not(.words__meta, .icon-btn), > .icon-btn ~ .icon-btn ~ .icon-btn, > .icon-btn:is(.icon-btn--lg, .icon-btn--xl), > .icon-btn--sm ~ .icon-btn:not(.icon-btn--sm), > .icon-btn:not(.icon-btn--sm) ~ .icon-btn--sm)) > .words__title::before {
4671
+ content: "";
4672
+ float: right;
4673
+ width: calc(var(--_head-ends) * (var(--_head-end) + var(--head-col-gap, var(--sp-3))));
4674
+ height: var(--_head-end);
4675
+ }
4676
+ /* no meta: one line beside the lead, the title and the ends centred to it, the title still at the left (Lh 2026-10-28) */
4677
+ .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)):not(:has(> .words__meta)) { align-items: center; }
4678
+ .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) > :nth-child(2) { grid-column: 2; grid-row: 1; }
4592
4679
  .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) > .words__meta:nth-child(3) {
4593
- grid-column: 2; grid-row: 2; align-self: start;
4680
+ grid-column: 2 / -1; grid-row: 2;
4594
4681
  overflow-wrap: anywhere;
4595
4682
  display: -webkit-box;
4596
4683
  -webkit-box-orient: vertical;
@@ -4600,7 +4687,7 @@ a.bubble { color: inherit; text-decoration: none; }
4600
4687
  padding-block: 0.2em 0.15em; /* room for a Thai mark inside the clip, given back outside (as the title's, above) */
4601
4688
  margin-block: -0.2em -0.15em;
4602
4689
  }
4603
- .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) > :nth-child(n + 3):not(.words__meta) { grid-row: 1 / 3; }
4690
+ .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) > :nth-child(n + 3):not(.words__meta) { grid-row: 1; margin-inline-start: var(--head-col-gap, var(--sp-3)); }
4604
4691
 
4605
4692
  /* in a card with paper bands: the head and the foot are paper bands edge to edge, one look */
4606
4693
  :is(.card--bands, .card--bands > .card__face) > :is(.head, .foot) {
@@ -4693,7 +4780,8 @@ a.bubble { color: inherit; text-decoration: none; }
4693
4780
 
4694
4781
  /* in a feed card */
4695
4782
  .feed-card > .head { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; min-height: var(--feed-card-head-h, var(--tap)); }
4696
- .feed-card > .head:has(> :is(.lead, .feed-card__lead)) { grid-template-columns: auto minmax(0, 1fr); } /* a Lead's own row of the head: parts.css */
4783
+ .feed-card > .head:has(> :is(.lead, .feed-card__lead)) { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: minmax(min-content, 0); align-items: start; align-content: start; } /* a Lead's own row of the head: parts.css. Led, it stands at the TOP, as a led Head does (above), and with no caption in the MIDDLE of the lead (below); the first row as the led Head's, so a tall lead's extra room goes under the caption, not between the lines */
4784
+ .feed-card > .head:has(> :is(.lead, .feed-card__lead)):not(:has(> .t-caption)) { align-items: center; }
4697
4785
 
4698
4786
  /* ---- body: the content row, under the head and over the foot. What the member reads or fills in; in a sheet, a stack sheet
4699
4787
  and a modal the one part that scrolls. A grid column from the top, the card's rhythm inside.
@@ -5381,7 +5469,7 @@ a.bubble { color: inherit; text-decoration: none; }
5381
5469
  border-block-end: var(--rule-w) dotted currentColor;
5382
5470
  font: inherit;
5383
5471
  }
5384
- .sticky-heading__title { min-width: 0; max-width: 100%; font: var(--sticky-heading-title-font, var(--type-label)); line-height: var(--lh-caption); /* Thai marks stack taller than the label's 1.2, and overflow clips them */ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
5472
+ .sticky-heading__title { min-width: 0; max-width: 100%; font: var(--sticky-heading-title-font, var(--type-label)); line-height: round(down, calc(var(--lh-caption) * 1em), 1px); /* Thai marks stack taller than the label's 1.2, and overflow clips them */ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
5385
5473
  .sticky-heading__caption { font: var(--sticky-heading-caption-font, var(--type-caption)); color: var(--sticky-heading-caption-ink, var(--card-muted)); white-space: nowrap; } /* the muted words of what it stands on: a note, or the screen */
5386
5474
  /* on a note: across the top of its paper, and the note's words start under it */
5387
5475
  .sticky__stuck > .sticky-heading { position: absolute; inset: var(--sp-2) var(--sp-4) auto; }
@@ -5439,10 +5527,11 @@ a.bubble { color: inherit; text-decoration: none; }
5439
5527
  display: block;
5440
5528
  container-type: inline-size;
5441
5529
  color: var(--stamp-ink, var(--ink-onlight));
5442
- /* the contact shadow every stamp has (Lh 2026-10-26: contact only, lighter than --shadow-contact's 0.4): its edge on any ground, a white one too; black as the scrim, no color-mix (iOS 16.4) */
5443
- --_contact: 0 0 var(--border-w) rgb(0 0 0 / 0.28);
5444
- --_rim: drop-shadow(0 0 0 transparent); /* a framed stamp's teeth are its paper already: no rim (--frameless, below) */
5445
- filter: var(--_rim) drop-shadow(var(--stamp-shadow, var(--_contact))) drop-shadow(var(--stamp-drop, 0 0 0 transparent)); /* drop-shadow follows the teeth; a box-shadow would draw the rectangle. The first is the contact shadow every stamp keeps, the second a lift a theme may add (--stamp-drop; none by default, Lh 2026-10-26 — it was --shadow-paper) */
5530
+ /* the contact shadow every stamp has, framed or not (Lh 2026-10-26: contact only; Lh 2026-10-28: darker, sharper — a quarter of the blur, about
5531
+ twice the opacity, it was 0 0 var(--border-w) rgb(0 0 0 / 0.28); a sliver of blur stays, a 0-offset drop-shadow with none draws nothing):
5532
+ its edge on any ground, a white one too; black as the scrim, no color-mix (iOS 16.4) */
5533
+ --_contact: 0 0 calc(var(--border-w) / 4) rgb(0 0 0 / 0.6);
5534
+ filter: drop-shadow(var(--stamp-shadow, var(--_contact))) drop-shadow(var(--stamp-drop, 0 0 0 transparent)); /* drop-shadow follows the teeth; a box-shadow would draw the rectangle. The first is the contact shadow every stamp keeps, the second a lift a theme may add (--stamp-drop; none by default, Lh 2026-10-26 — it was --shadow-paper) */
5446
5535
  rotate: var(--stamp-turn, none);
5447
5536
  animation: var(--stamp-arrive, none);
5448
5537
  }
@@ -5459,14 +5548,15 @@ a.bubble { color: inherit; text-decoration: none; }
5459
5548
  /* the white frame: the paper's own colour round the picture. --frameless (`frame={false}`): the paper takes the picture's tone class instead,
5460
5549
  so the tone runs out to the teeth — the teeth, 4:5, shadow, pictures and words unchanged (Lh 2026-10-26: a stamp is always perforated) */
5461
5550
  .stamp:not(.stamp--frameless) > .stamp__paper { background-color: var(--stamp-paper-bg, var(--stamp-paper)); }
5462
- /* a frameless stamp keeps a thin rim of that paper round its teeth, under every shadow it wears: the tone never touches the dark contact
5463
- shadow, so the teeth read on any tone, light or dark, at every size (Lh 2026-10-26: the tone and the shadow ran together). Four hard
5464
- drop-shadows, one per side, make the rim; it follows the teeth as the shadow does */
5465
- .stamp--frameless {
5466
- --_rim-ink: var(--stamp-paper-bg, var(--stamp-paper));
5467
- --_rim: drop-shadow(var(--border-w) 0 0 var(--_rim-ink)) drop-shadow(calc(-1 * var(--border-w)) 0 0 var(--_rim-ink))
5468
- drop-shadow(0 var(--border-w) 0 var(--_rim-ink)) drop-shadow(0 calc(-1 * var(--border-w)) 0 var(--_rim-ink));
5469
- }
5551
+ /* no rim round a frameless stamp's teeth (Lh 2026-10-28: the paper-coloured rim of 0.7.149 read as a white edge round a full-colour stamp):
5552
+ the tone runs out to the teeth. Its contact shadow is its own tone made dusky, not black (Lh 2026-10-28): a second punched paper under
5553
+ the first (.stamp__shade, drawn only when frameless) wears the tone class, a grey painted OVER the tone as a background layer (a real
5554
+ overlay, no color-mix — iOS 16.4), blurred as the black one is so its fringe shows round the teeth. Knob --stamp-tone-shadow-bg: the grey
5555
+ laid over the tone (a darker or lighter shade; transparent = the bare tone). The black contact shadow is off here, unless a theme sets
5556
+ --stamp-shadow */
5557
+ .stamp--frameless { --_contact: 0 0 0 transparent; --_tone-shade: rgb(0 0 0 / 0.5); }
5558
+ .stamp__shade { position: absolute; inset: 0; filter: blur(calc(var(--border-w) / 4)); }
5559
+ .stamp__shade > .stamp__paper { background-image: linear-gradient(var(--stamp-tone-shadow-bg, var(--_tone-shade)) 0 0); }
5470
5560
  .stamp__pic { position: absolute; inset: var(--stamp-frame, 8cqw); overflow: hidden; } /* the paper's frame round the picture; the ground is the tone class's */
5471
5561
 
5472
5562
  /* the pictures, placed by COUNT: where, how wide, how far turned — the layout is the stamp's look, never the app's.
@@ -5487,8 +5577,8 @@ a.bubble { color: inherit; text-decoration: none; }
5487
5577
  /* the words on the picture's foot: a small line, then the big name — one line each (clipped sideways only: Thai tone marks stand above the line box) */
5488
5578
  .stamp__cap { position: absolute; inset-inline: 5cqw; bottom: 3.5cqw; display: grid; gap: 0.4cqw; }
5489
5579
  .stamp__words, .stamp__name { display: block; min-width: 0; white-space: nowrap; overflow-x: clip; text-overflow: ellipsis; }
5490
- .stamp__words { --_words: 4.8cqw; font: var(--fw-medium) var(--_words) / var(--lh-title) var(--font-ui); font-size: var(--stamp-words-font-size, var(--_words)); }
5491
- .stamp__name { --_name: 9.5cqw; font: var(--fw-black) var(--_name) / var(--lh-display) var(--font-display); font-size: var(--stamp-name-font-size, var(--_name)); }
5580
+ .stamp__words { --_words: 4.8cqw; font: var(--fw-medium) var(--_words) / round(down, calc(var(--lh-title) * 1em), 1px) var(--font-ui); font-size: var(--stamp-words-font-size, var(--_words)); }
5581
+ .stamp__name { --_name: 9.5cqw; font: var(--fw-black) var(--_name) / round(down, calc(var(--lh-display) * 1em), 1px) var(--font-display); font-size: var(--stamp-name-font-size, var(--_name)); }
5492
5582
  /* at the stamp's own size and under (and stuck on a note): the small line goes, the name grows */
5493
5583
  /* --bare: the pictures alone, no words — a stamp stuck on something (a note, a postcard). The words belong to the album.
5494
5584
  The pictures take the foot's room: each sits a little lower, so the group stands in the middle of the frame. */
@@ -5505,7 +5595,7 @@ a.bubble { color: inherit; text-decoration: none; }
5505
5595
  Too small for words: it is bare whatever it is handed. Only the contact shadow (--stamp-shadow): it lies flat in the line, its edge still seen. The teeth are every stamp's (8 across,
5506
5596
  10 down), and the frame round the picture wider to clear them. Several, lapped, with a "+8": AvatarStack (below).
5507
5597
  <span class="stamp stamp--1 stamp--xs">…</span> */
5508
- .stamp--xs { width: var(--stamp-xs-size, var(--stamp-xs)); flex: none; margin-inline: 0; filter: var(--_rim) drop-shadow(var(--stamp-shadow, var(--_contact))); }
5598
+ .stamp--xs { width: var(--stamp-xs-size, var(--stamp-xs)); flex: none; margin-inline: 0; filter: drop-shadow(var(--stamp-shadow, var(--_contact))); }
5509
5599
  .stamp--xs .stamp__pic { inset: var(--stamp-frame, 12cqw); }
5510
5600
  /* held: the stamp keeps its box and draws nothing (visibility, never display or a size of its own) — shown later in the same box, nothing beside it moves */
5511
5601
  .stamp--held { visibility: hidden; }
@@ -5658,7 +5748,7 @@ a.bubble { color: inherit; text-decoration: none; }
5658
5748
  After the rule above, at the same weight: `main` is the one place a stuck stamp reads --stamp-size. */
5659
5749
  .stamp-on--main > .stamp { width: var(--stamp-size, calc(var(--tap) * 2)); }
5660
5750
  .stamp-on--under { top: var(--card-pad, 0); right: var(--card-pad, 0); left: auto; translate: none; z-index: var(--z-under); pointer-events: none; } /* the card's top right corner, below everything the card holds */
5661
- .stamp-on--under > .stamp { width: var(--stamp-size, calc(var(--tap) * 2)); filter: var(--_rim) drop-shadow(var(--stamp-shadow, var(--_contact))); }
5751
+ .stamp-on--under > .stamp { width: var(--stamp-size, calc(var(--tap) * 2)); filter: drop-shadow(var(--stamp-shadow, var(--_contact))); }
5662
5752
  .stamp-on--move { will-change: transform; } /* its own layer: Safari left the stamp's shadow behind as a trail along the drag when it was painted with the note (seen on the simulator, 2026-10-07) */
5663
5753
  .stamp-on--move { cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none; transition: scale var(--motion-press) var(--ease-out); }
5664
5754
  .stamp-on--move:focus-visible { outline: var(--focus); outline-offset: var(--sp-1); }
@@ -5718,7 +5808,7 @@ a.bubble { color: inherit; text-decoration: none; }
5718
5808
  width: var(--appbar-stamp-size, var(--_fit));
5719
5809
  flex: none;
5720
5810
  margin-inline: 0;
5721
- filter: var(--_rim) drop-shadow(var(--stamp-shadow, var(--_contact)));
5811
+ filter: drop-shadow(var(--stamp-shadow, var(--_contact)));
5722
5812
  }
5723
5813
  :is(.appbar__brand, .appbar__who) > .stamp .stamp__cap { display: none; }
5724
5814
  :is(.appbar__brand, .appbar__who) > .stamp .stamp__art { top: calc(var(--_y) + 9%); }
@@ -5726,10 +5816,10 @@ a.bubble { color: inherit; text-decoration: none; }
5726
5816
  /* a stamp ON a card lies flat: only the contact shadow (--stamp-shadow), at every size (Lh 2026-10-24; the contact shadow 2026-10-26) — a feed card's lead, a foot row's, xs.
5727
5817
  A sheet is a `.card` too, but what it holds stands off its paper: the album, the tray, a start screen's stamp keep their shadow, and so
5728
5818
  does a stamp in an album's cell wherever the album lies */
5729
- .card:not(.sheet) .stamp:not(.stamp-cell > .stamp) { filter: var(--_rim) drop-shadow(var(--stamp-shadow, var(--_contact))); }
5819
+ .card:not(.sheet) .stamp:not(.stamp-cell > .stamp) { filter: drop-shadow(var(--stamp-shadow, var(--_contact))); }
5730
5820
  /* ONE exception (Lh 2026-10-25): a stamp in the head is glued down — plain, `under` or `sm`, a hair of shadow at its teeth, flat paper, never a lifted sticker.
5731
5821
  A bare or xs stamp stays flat, its contact shadow only. Knob: --stamp-under-drop (the name it was born with: `under` had it first) */
5732
- .card:not(.sheet) .head > .stamp:not(.stamp--bare, .stamp--xs) { filter: var(--_rim) drop-shadow(var(--stamp-shadow, var(--_contact))) drop-shadow(var(--stamp-under-drop, var(--shadow-glued))); }
5822
+ .card:not(.sheet) .head > .stamp:not(.stamp--bare, .stamp--xs) { filter: drop-shadow(var(--stamp-shadow, var(--_contact))) drop-shadow(var(--stamp-under-drop, var(--shadow-glued))); }
5733
5823
  .head > .stamp { grid-column: 2; grid-row: 1 / span 2; margin-inline: 0; }
5734
5824
  .head > .stamp--under { grid-column: 1; justify-self: end; } /* `under`: in the words' own column, at its end, the words over it (parts.css) */
5735
5825
  /* ---- where it sits in what people.css draws (docs/reference.md rule 15) ---- */
@@ -5890,7 +5980,7 @@ a.bubble { color: inherit; text-decoration: none; }
5890
5980
  gap: var(--sp-3);
5891
5981
  font: var(--post-letter-hand-font, var(--type-h2));
5892
5982
  font-size: var(--post-letter-hand-font-size, var(--fs-lg));
5893
- line-height: var(--post-letter-hand-leading, var(--lh-hand));
5983
+ line-height: round(down, calc(var(--post-letter-hand-leading, var(--lh-hand)) * 1em), 1px);
5894
5984
  }
5895
5985
  .post-letter__message > p { margin: 0; }
5896
5986
  .post-letter__sign { align-self: flex-end; }
@@ -5963,8 +6053,8 @@ a.bubble { color: inherit; text-decoration: none; }
5963
6053
  background: transparent;
5964
6054
  color: inherit;
5965
6055
  font: var(--post-desk-hand-font, var(--type-h2));
5966
- line-height: calc(var(--fs-body) * var(--post-desk-leading, var(--lh-ruled)));
5967
- --_line: calc(var(--fs-body) * var(--post-desk-leading, var(--lh-ruled)));
6056
+ line-height: var(--_line);
6057
+ --_line: round(down, calc(var(--fs-body) * var(--post-desk-leading, var(--lh-ruled))), 1px);
5968
6058
  /* the ruled lines: one under every line of writing */
5969
6059
  background-image: linear-gradient(to bottom, transparent calc(100% - var(--border-w)), var(--_rule) 0);
5970
6060
  background-size: 100% var(--_line);
@@ -6099,7 +6189,7 @@ a.bubble { color: inherit; text-decoration: none; }
6099
6189
  .quote { margin: 0; display: grid; gap: var(--quote-gap, var(--sp-3)); }
6100
6190
  .quote::before {
6101
6191
  content: "\201C";
6102
- font: var(--fw-black) calc(var(--fs-h1) * 3) / var(--lh-mark) var(--font-display);
6192
+ font: var(--fw-black) calc(var(--fs-h1) * 3) / round(down, calc(var(--lh-mark) * 1em), 1px) var(--font-display);
6103
6193
  height: var(--sp-10);
6104
6194
  opacity: var(--fade-most);
6105
6195
  }
@@ -6681,7 +6771,7 @@ a.bubble { color: inherit; text-decoration: none; }
6681
6771
  .count-in__cancel:focus-visible { outline: var(--focus); outline-offset: calc(-1 * var(--sp-2)); }
6682
6772
  .count-in__number {
6683
6773
  position: relative; pointer-events: none;
6684
- font: var(--fw-heavy) var(--count-in-size, var(--fs-giant)) / var(--lh-solid) var(--font-display);
6774
+ font: var(--fw-heavy) var(--count-in-size, var(--fs-giant)) / round(down, calc(var(--lh-solid) * 1em), 1px) var(--font-display);
6685
6775
  font-variant-numeric: tabular-nums;
6686
6776
  }
6687
6777
  .count-in__digit { display: block; }