-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathlanding-v3.css
More file actions
877 lines (763 loc) · 19.2 KB
/
Copy pathlanding-v3.css
File metadata and controls
877 lines (763 loc) · 19.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
/* =============================================================================
Landing V3 — Hero → Rich Cards → Impact/Support.
Layered on top of landing.css (inherits all base styles + demo component CSS).
Note: scroll-snap was removed (was: y mandatory across the three sections).
`mandatory` snap fights iOS Safari momentum scroll and yanks readers away
from mid-section content on phones. The desktop polish wasn't worth the
mobile friction. `scroll-behavior: smooth` and `scroll-padding-top: 60px`
from landing.css cover the in-page anchor smoothness we still want.
============================================================================= */
/* ─── Hero (identical to V2) ─── */
.mls-landing-v3 .mls-section-hero {
min-height: calc(100vh - 60px);
display: flex;
flex-direction: column;
justify-content: center;
padding-top: 1rem;
padding-bottom: 1rem;
}
.mls-landing-v3 .mls-section-hero .mls-landing-grid {
flex: 1;
align-items: center;
margin-top: -3rem;
}
.mls-landing-v3 .mls-hero-intro {
max-width: 440px;
}
.mls-hero-badge {
font-size: 0.8rem;
font-weight: 600;
color: var(--mls-text-muted);
letter-spacing: 0.04em;
margin: 0;
opacity: 0.8;
}
/* Freshness/edition indicator — signals the book is actively maintained */
.mls-hero-edition {
display: inline-flex;
align-items: center;
gap: 0.5em;
flex-wrap: wrap;
font-size: 0.78rem;
font-weight: 500;
color: var(--mls-text-muted);
letter-spacing: 0.02em;
margin: 0.5rem 0 0 0;
opacity: 0.85;
}
.mls-edition-dot {
width: 0.55em;
height: 0.55em;
border-radius: 50%;
background: #2d8a4e; /* "alive" green */
box-shadow: 0 0 0 0 rgba(45, 138, 78, 0.55);
animation: mlsEditionPulse 2.4s ease-out infinite;
flex-shrink: 0;
}
@keyframes mlsEditionPulse {
0% { box-shadow: 0 0 0 0 rgba(45, 138, 78, 0.55); }
70% { box-shadow: 0 0 0 0.55em rgba(45, 138, 78, 0); }
100% { box-shadow: 0 0 0 0 rgba(45, 138, 78, 0); }
}
.mls-edition-sep {
opacity: 0.5;
}
.mls-edition-link {
color: inherit;
text-decoration: underline;
text-decoration-color: rgba(0, 0, 0, 0.2);
text-underline-offset: 0.18em;
transition: text-decoration-color 0.15s ease;
}
.mls-edition-link:hover {
text-decoration-color: var(--mls-accent, #A51C30);
color: var(--mls-accent, #A51C30);
}
@media (prefers-reduced-motion: reduce) {
.mls-edition-dot { animation: none; }
}
/* Scroll indicator — clickable */
.mls-landing-v3 .mls-scroll-indicator {
pointer-events: auto;
cursor: pointer;
animation: none !important;
transform: translateX(-50%);
}
.mls-landing-v3 .mls-scroll-indicator:hover {
opacity: 1;
}
.mls-landing-v3 .mls-scroll-indicator:hover span {
color: var(--mls-accent);
}
.mls-landing-v3 .mls-scroll-arrow {
animation: bounce-arrow 2s infinite;
}
@keyframes bounce-arrow {
0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
40% { transform: translateY(-10px); }
60% { transform: translateY(-5px); }
}
/* ─── Snap 2: Rich card grid section ─── */
.mls-section-richcards {
min-height: calc(100vh - 60px);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 1.5rem 2rem 3.5rem;
max-width: 1200px;
margin: 0 auto;
position: relative;
}
.mls-section-richcards > :first-child {
margin-top: -1.5rem;
}
.mls-section-richcards .mls-cards-header {
text-align: center;
margin-bottom: 1.25rem;
}
.mls-cards-title {
font-size: clamp(1.3rem, 3vw, 1.7rem);
font-weight: 700;
color: var(--mls-text);
margin: 0;
letter-spacing: -0.02em;
border: none !important;
border-bottom: none !important;
padding: 0;
}
/* 4×2 rich card grid */
.mls-rich-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 0.85rem;
width: 100%;
max-width: 1100px;
}
/* ─── Row labels ─── */
.mls-row-label {
grid-column: 1 / -1;
font-size: 0.95rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.14em;
color: var(--mls-text);
margin: 0.2rem 0 0.5rem;
padding: 0;
opacity: 0.72;
}
/* Second+ row label: divider rule + extra breathing room,
so the two audience groups read as distinct visual bands */
.mls-row-label:not(:first-of-type) {
margin-top: 2.4rem;
padding-top: 1.4rem;
border-top: 1px solid var(--mls-glass-border);
}
/* ─── Card color accents (WCAG AA compliant) ─── */
:root {
--card-explore: #2563EB;
--card-build: #D4740C;
--card-deploy: #148F77;
--card-model: #0284C7;
--card-practice: #475569;
--card-adopt: #6366f1;
--card-teach: #A51C30;
--card-follow: #475569;
}
[data-bs-theme="dark"] {
--card-explore: #60a5fa;
--card-build: #f59e0b;
--card-deploy: #34d399;
--card-model: #38bdf8;
--card-practice: #94a3b8;
--card-adopt: #a5b4fc;
--card-teach: #f87171;
--card-follow: #94a3b8;
}
/* ─── Rich card — vertical: demo thumbnail on top, text below ─── */
.mls-rich-card {
display: flex;
flex-direction: column;
border-radius: 16px;
background: var(--mls-glass-bg);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid var(--mls-glass-border);
box-shadow: var(--mls-card-shadow);
text-decoration: none;
color: var(--mls-text);
transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
cursor: pointer;
position: relative;
overflow: hidden;
}
/* Top accent bar — disabled, demos fill edge-to-edge */
/* Per-card accent colors via data attribute */
.mls-rich-card[data-accent="explore"] { --card-accent: var(--card-explore); }
.mls-rich-card[data-accent="build"] { --card-accent: var(--card-build); }
.mls-rich-card[data-accent="deploy"] { --card-accent: var(--card-deploy); }
.mls-rich-card[data-accent="model"] { --card-accent: var(--card-model); }
.mls-rich-card[data-accent="practice"]{ --card-accent: var(--card-practice); }
.mls-rich-card[data-accent="adopt"] { --card-accent: var(--card-adopt); }
.mls-rich-card[data-accent="teach"] { --card-accent: var(--card-teach); }
.mls-rich-card[data-accent="follow"] { --card-accent: var(--card-follow); }
/* Hover — lift + shadow, no border change */
.mls-rich-card:hover {
transform: translateY(-4px);
box-shadow: var(--mls-card-shadow-hover);
}
.mls-rich-card:hover .mls-cur-name {
color: var(--card-accent, var(--mls-accent));
}
/* Active press feedback */
.mls-rich-card:active {
transform: translateY(-1px);
transition-duration: 0.05s;
}
/* Focus visible for keyboard nav */
.mls-rich-card:focus-visible {
outline: 2px solid var(--card-accent, var(--mls-accent));
outline-offset: 2px;
transform: translateY(-4px);
}
/* ─── Card info (below demo via order) ─── */
.mls-rich-card-info {
display: flex;
flex-direction: column;
padding: 0.75rem 1rem 0.85rem;
flex-shrink: 0;
order: 2;
}
.mls-rich-card-info .mls-cur-verb {
font-size: 0.6rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.12em;
color: var(--card-accent, var(--mls-accent));
margin: 0 0 0.2rem;
}
.mls-rich-card-info .mls-cur-name {
font-size: 0.95rem;
font-weight: 700;
color: var(--mls-text);
margin: 0 0 0.25rem;
transition: color 0.2s ease;
}
.mls-rich-card-info .mls-cur-desc {
font-size: 0.75rem;
color: var(--mls-text-muted);
margin: 0;
line-height: 1.4;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
/* ─── Card demo (top visual via order) ─── */
.mls-rich-card-demo {
width: 100%;
height: 140px;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
padding: 0;
border-bottom: 1px solid var(--mls-glass-border);
order: 1;
}
.mls-rich-card-demo > svg {
width: 100%;
height: 100%;
display: block;
}
/* Hardware kits image */
.mls-rich-card-img {
width: 100%;
height: 100%;
object-fit: contain;
border-radius: 0;
background: #d5f0eb;
padding: 10px;
}
/* ─── Accessibility: visually hidden ─── */
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
/* ─── Snap 2: Scroll indicator ─── */
.mls-scroll-2 {
position: relative;
margin-top: 3rem;
text-align: center;
width: 100%;
color: var(--mls-text-muted);
font-size: 0.85rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.1em;
pointer-events: auto;
cursor: pointer;
animation: none !important;
}
.mls-scroll-2 .mls-scroll-arrow {
font-size: 1.5rem;
margin-top: 0.25rem;
color: var(--mls-accent);
animation: bounce-arrow 2s infinite;
}
.mls-scroll-2:hover span {
color: var(--mls-accent);
}
/* ─── Snap 3: Impact & Mission (identical to V2) ─── */
.mls-section-impact {
min-height: calc(100vh - 60px);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 2rem 2rem 1.5rem;
max-width: 950px;
margin: 0 auto;
gap: 1.5rem;
text-align: center;
}
.mls-impact-top {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.75rem;
max-width: 650px;
background: var(--mls-glass-bg);
border: 1px solid var(--mls-glass-border);
box-shadow: var(--mls-card-shadow);
padding: 1.5rem 2.5rem;
border-radius: 16px;
}
.mls-impact-eyebrow {
font-size: 0.7rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.15em;
color: var(--mls-accent);
margin: 0;
}
.mls-impact-headline {
font-size: clamp(1.6rem, 4vw, 2.4rem);
font-weight: 800;
color: var(--mls-text);
letter-spacing: -0.03em;
line-height: 1.15;
margin: 0 0 0.25rem;
border: none !important;
border-bottom: none !important;
padding: 0;
}
.mls-impact-mission {
font-size: 0.92rem;
color: var(--mls-text-muted);
margin: 0;
line-height: 1.6;
}
.mls-impact-mission strong {
color: var(--mls-accent);
font-weight: 700;
}
.mls-reader-map {
width: 100%;
max-width: 820px;
}
.mls-looker-wrap {
position: relative;
width: 100%;
padding-bottom: 48%;
border-radius: 12px;
overflow: hidden;
border: 1px solid var(--mls-glass-border);
box-shadow: var(--mls-card-shadow);
background: var(--mls-glass-bg);
}
.mls-looker-wrap iframe {
position: absolute;
top: -25%;
left: -25%;
width: 150%;
height: 150%;
border: 0;
pointer-events: none;
}
.mls-looker-wrap:hover iframe {
pointer-events: auto;
}
.mls-map-caption {
font-size: 0.75rem;
color: var(--mls-text);
text-align: center;
margin: 0.5rem 0 0;
font-weight: 600;
letter-spacing: 0.03em;
}
/* Leading countries under the readership map. Secondary to the caption: the
caption states the reach, this makes it concrete without competing. */
.mls-map-countries-label {
font-weight: 700;
color: var(--mls-text-muted);
}
.mls-map-countries {
font-size: 0.68rem;
color: var(--mls-muted);
text-align: center;
margin: 0.2rem 0 0;
letter-spacing: 0.02em;
}
.mls-impact-bottom {
display: flex;
flex-direction: column;
align-items: center;
gap: 1.05rem;
background: var(--mls-glass-bg);
border: 1px solid var(--mls-glass-border);
box-shadow: var(--mls-card-shadow);
padding: 2rem 2.75rem 1.75rem;
border-radius: 18px;
}
/* ── Impact card: reach readout + star call to action ─────────────────────
The numbers are set as instrument readings rather than marketing stats:
tabular monospace numerals with small unit labels, echoing the quantitative
tables the book is built on. The star control fuses button and counter in
GitHub's own idiom, so the action reads as unmistakable and the count feels
live rather than decorative. */
.mls-reach {
display: flex;
align-items: flex-start;
justify-content: center;
gap: clamp(1.5rem, 5.5vw, 3.25rem);
margin: 0 0 0.35rem;
padding: 0;
}
.mls-reach-item {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.15rem;
position: relative;
}
/* Hairline separators drawn between items, not around them, so the group
reads as one instrument panel. */
.mls-reach-item + .mls-reach-item::before {
content: "";
position: absolute;
left: calc(clamp(1.25rem, 5vw, 3rem) / -2);
top: 12%;
bottom: 22%;
width: 1px;
background: currentColor;
opacity: 0.12;
}
.mls-reach-value {
font-variant-numeric: tabular-nums;
font-size: clamp(1.6rem, 4.5vw, 2.5rem);
font-weight: 800;
line-height: 1.02;
letter-spacing: -0.045em;
color: var(--mls-text);
margin: 0;
}
/* GA4 reports ISO 3166-1 regions, which include territories such as Hong Kong
and Puerto Rico alongside sovereign states, so the count exceeds the 195
countries in the world. The label says what is actually being counted; it
takes two lines, and the row aligns on a shared label height. */
.mls-reach-label-wrap {
white-space: normal !important;
line-height: 1.25;
}
.mls-reach-label {
min-height: 2.1em;
font-size: 0.62rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.14em;
color: var(--mls-text-muted);
white-space: nowrap;
}
.mls-impact-goal {
font-size: 0.95rem;
color: var(--mls-text);
margin: 0;
font-weight: 600;
text-align: center;
}
.mls-impact-goal strong {
color: var(--mls-accent);
}
/* The star control. Crimson carries the primary action; the count sits in an
attached well so button and number read as one object. */
.mls-star-cta {
margin: 0.3rem 0 0.15rem;
display: inline-flex;
align-items: stretch;
border-radius: 10px;
overflow: hidden;
text-decoration: none;
font-weight: 700;
font-size: 0.95rem;
border: 1px solid var(--mls-accent);
box-shadow: 0 4px 14px rgba(165, 28, 48, 0.22);
transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.mls-star-cta-label {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.7rem 1.15rem;
background: var(--mls-accent);
color: #ffffff;
}
.mls-star-cta-count {
display: inline-flex;
align-items: center;
padding: 0.7rem 1.05rem;
background: #ffffff;
color: var(--mls-accent);
font-variant-numeric: tabular-nums;
font-weight: 700;
letter-spacing: -0.02em;
}
.mls-star-cta:hover {
transform: translateY(-2px);
box-shadow: 0 8px 22px rgba(165, 28, 48, 0.3);
}
.mls-star-cta:focus-visible {
outline: 3px solid var(--mls-accent);
outline-offset: 3px;
}
.mls-impact-why {
font-size: 0.82rem;
color: var(--mls-text-muted);
margin: 0;
line-height: 1.6;
text-align: center;
max-width: 460px;
}
.mls-impact-why a {
color: var(--mls-accent);
font-weight: 600;
text-decoration: none;
border-bottom: 1px solid rgba(165, 28, 48, 0.3);
}
.mls-impact-why a:hover {
border-bottom-color: var(--mls-accent);
}
[data-bs-theme="dark"] .mls-star-cta-count {
background: rgba(255, 255, 255, 0.12);
color: #ffffff;
}
@media (prefers-reduced-motion: reduce) {
.mls-star-cta {
transition: none;
}
.mls-star-cta:hover {
transform: none;
}
}
@media (max-width: 560px) {
.mls-impact-bottom {
padding: 1.5rem 1rem 1.35rem;
width: 100%;
max-width: 100%;
box-sizing: border-box;
}
.mls-star-cta-label {
white-space: nowrap;
}
.mls-reach {
gap: 0.9rem;
width: 100%;
}
.mls-reach-item {
flex: 1 1 0;
min-width: 0;
}
.mls-reach-item + .mls-reach-item::before {
left: -0.45rem;
}
.mls-reach-value {
font-size: clamp(1.25rem, 6.6vw, 1.7rem);
letter-spacing: -0.05em;
}
.mls-reach-label {
font-size: 0.52rem;
letter-spacing: 0.08em;
}
.mls-impact-goal {
font-size: 0.85rem;
}
.mls-impact-why {
font-size: 0.78rem;
}
}
/* Small phones (iPhone SE and narrower). Everything steps down together so
the three readings stay on one line rather than wrapping into a ragged
block. */
@media (max-width: 390px) {
.mls-impact-bottom {
padding: 1.25rem 0.7rem 1.15rem;
}
.mls-reach {
gap: 0.5rem;
}
.mls-reach-item + .mls-reach-item::before {
left: -0.25rem;
}
.mls-reach-value {
font-size: clamp(0.95rem, 5.4vw, 1.35rem);
letter-spacing: -0.04em;
}
.mls-reach-label {
font-size: 0.46rem;
letter-spacing: 0.05em;
}
.mls-star-cta {
font-size: 0.86rem;
}
.mls-star-cta-label {
padding: 0.6rem 0.85rem;
}
.mls-star-cta-count {
padding: 0.6rem 0.8rem;
}
}
/* Button styles */
.mls-footer-btn {
display: inline-flex;
align-items: center;
gap: 0.4rem;
padding: 0.6rem 1.3rem;
border-radius: 8px;
font-size: 0.9rem;
font-weight: 600;
text-decoration: none;
transition: all 0.2s ease;
border: 1px solid var(--mls-card-border);
}
.mls-footer-btn svg {
flex-shrink: 0;
}
[data-bs-theme="dark"] [data-bs-theme="dark"] /* ═══ Responsive: Tablet (≤900px) ═══ */
@media (max-width: 900px) {
.mls-rich-grid {
grid-template-columns: repeat(2, 1fr);
gap: 0.85rem;
}
.mls-rich-card-demo {
height: 120px;
}
.mls-section-richcards {
padding: 2rem 1.5rem 4rem;
}
.mls-impact-headline {
font-size: 1.8rem;
}
}
/* ═══ Responsive: Phone (≤768px) ═══ */
@media (max-width: 768px) {
/* Cards become single column, info on top, demo below */
.mls-rich-grid {
grid-template-columns: 1fr;
gap: 1.25rem;
}
.mls-rich-card {
flex-direction: column;
min-height: auto;
}
.mls-rich-card-info {
width: 100%;
padding: 1.25rem 1.25rem 0.5rem;
}
.mls-rich-card-demo {
width: 100%;
padding: 0.5rem 1rem 1rem;
justify-content: center;
}
.mls-rich-card-demo {
height: 110px;
}
/* Phone: collapse the section min-height so content packs tightly. */
.mls-landing-v3 .mls-section-hero,
.mls-landing-v3 .mls-section-richcards,
.mls-landing-v3 .mls-section-impact {
min-height: auto;
}
.mls-cards-title {
font-size: 1.2rem;
}
.mls-hero-badge {
font-size: 0.7rem;
}
.mls-impact-headline {
font-size: 1.4rem;
}
.mls-impact-goal {
font-size: 0.8rem;
}
.mls-footer-btn {
padding: 0.45rem 0.9rem;
font-size: 0.8rem;
}
.mls-section-impact {
padding: 1.5rem 1rem 1rem;
gap: 0.6rem;
}
.mls-scroll-2 {
display: none;
}
}
/* ═══ Responsive: Small phone (≤480px) ═══ */
@media (max-width: 480px) {
.mls-rich-card-demo {
height: 100px;
}
.mls-rich-card-info .mls-cur-desc {
font-size: 0.75rem;
}
.mls-rich-card-info .mls-cur-name {
font-size: 0.95rem;
}
}
/* ---------------------------------------------------------------------------
Odometer wheels for the impact figures.
Each digit sits in a window one line box tall with a strip of numerals
behind it; the strip is translated to bring the right digit into view. The
markup exists only while a figure is rolling and collapses back to plain
text when it lands, so the resting card is unchanged and the number stays
selectable. Sizes come from JavaScript because they must match the figure's
own computed line height, which differs between the reach readings and the
star count.
--------------------------------------------------------------------------- */
.mls-odo {
display: inline-flex;
align-items: flex-start;
font-variant-numeric: tabular-nums;
}
.mls-odo-col {
display: inline-block;
overflow: hidden;
will-change: filter;
}
.mls-odo-strip {
display: block;
will-change: transform;
}
.mls-odo-cell {
display: block;
text-align: center;
}
.mls-odo-sep {
display: inline-block;
}