-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.html
More file actions
674 lines (621 loc) · 39.5 KB
/
Copy pathapp.html
File metadata and controls
674 lines (621 loc) · 39.5 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="PathFinder workspace — assessment, roadmap, lab explorer, scholarships, and application tracking for Sri Lankan students pursuing a PhD in New Zealand." />
<title>PathFinder — Workspace</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<!-- Source Serif 4 and Inter (the brand display/body faces) are self-hosted
in brand.css below — not requested from Google Fonts. IBM Plex Mono and
Material Symbols are unchanged from the shared site look. -->
<!-- Google Fonts is loaded ASYNCHRONOUSLY, on purpose.
As a plain stylesheet link this file is render-blocking: the browser
paints NOTHING until fonts.googleapis.com answers. Measured on a
connection where that host was unreachable, first contentful paint
went from 88ms to 12.7 SECONDS — a blank screen, on the exact mobile
networks this audience is on. media="print" makes the browser fetch
it at low priority without blocking the render, and the onload
handler promotes it to "all" the moment it arrives.
`display=block` (not swap) on Material Symbols is deliberate: these
icons are ligatures, so with `swap` the fallback font briefly renders
the LITERAL WORDS ("location_on", "check") all over the page. `block`
keeps the glyph invisible for up to ~3s instead, then swaps in. Text
faces keep `swap`, where a fallback is the right behaviour. -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap" media="print" onload="this.media='all';this.onload=null" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,400,0,0&display=block" media="print" onload="this.media='all';this.onload=null" />
<noscript><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap" /><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,400,0,0&display=block" /></noscript>
<link rel="stylesheet" href="assets/css/site.css?v=5d6b2b40" />
<!-- "Ink & Brass" brand system — overrides site.css's tokens for the app
shell only. index.html and the legal pages load site.css directly and
never see this file, so they keep today's look. -->
<link rel="stylesheet" href="assets/css/brand.css?v=c1adaeaa" />
<link rel="stylesheet" href="assets/css/settlement.css?v=04517ebc" />
<!-- Three.js for the Settlement 3D visualisations — pulled in lazily via
dynamic import() from assets/js/settlement/scene3d.js (no bundler). -->
<script type="importmap">
{ "imports": { "three": "https://unpkg.com/three@0.160.0/build/three.module.js" } }
</script>
<style>
/* grid-template-columns is explicit (not left implicit/auto) and uses
minmax(0, 1fr): a bare implicit column, or even a plain 1fr, sizes to
fit its widest descendant's preferred width instead of clamping to
the viewport — the classic CSS grid "blowout" bug. Any element deep
inside .main that wants to be wider than the screen (a hero panel
capping a paragraph at max-width:520px, a long unbroken title) was
growing this column instead of wrapping, giving the whole page a
horizontal scrollbar on mobile. minmax(0, 1fr) is the standard fix:
it gives the column an explicit floor of 0 so it always shrinks to
the actual available width. */
.shell { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; min-height: 100vh; background: var(--canvas); }
/* study-track switch — masters vs PhD, now inside the overflow popover */
.track-switch { display: flex; margin: 0 8px 14px; padding: 3px; gap: 3px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.tsw-opt {
flex: 1; padding: 7px 4px; border: none; border-radius: 5px; cursor: pointer;
font-family: var(--font-mono); font-size: 10px; font-weight: 600;
letter-spacing: .09em; text-transform: uppercase;
background: transparent; color: var(--ink-faint); transition: background .2s, color .2s;
}
.tsw-opt:hover { color: var(--ink); }
.tsw-opt.active { background: var(--ink); color: var(--paper); }
/* contextual nudge banner (login / sync) — a generic banner style used
wherever a view nudges a signed-out visitor (Funding, etc), independent
of the old sidebar journey meter and journey map this file used to
carry (both retired — the hero + segments replace them). */
.journey-nudge {
display: flex; align-items: center; gap: 11px; margin-top: 14px;
padding: 13px 16px; border: 1px solid var(--line-2); border-radius: 7px;
background: var(--gold-soft); font-size: 13.5px; color: var(--ink-soft);
transition: border-color .2s, transform .15s;
}
.journey-nudge:hover { border-color: var(--route); transform: translateY(-1px); }
.journey-nudge .material-symbols-outlined { color: var(--route); flex-shrink: 0; }
.journey-nudge strong { color: var(--ink); }
/* ── Briefing (live news) ── */
.news-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.news-fils { display: flex; gap: 7px; flex-wrap: wrap; }
.news-upd { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .04em; color: var(--ink-faint); white-space: nowrap; }
.news-list { display: flex; flex-direction: column; }
.news-row {
display: flex; align-items: flex-start; gap: 14px;
padding: 15px 4px; border-top: 1px solid var(--line);
transition: padding-left .2s cubic-bezier(.22,1,.36,1), background .2s;
}
.news-row:last-child { border-bottom: 1px solid var(--line); }
.news-row:hover { padding-left: 10px; }
.news-main { flex: 1; min-width: 0; }
.news-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 5px; }
.news-src { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .04em; color: var(--ink-faint); text-transform: uppercase; }
.news-time { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-faint); }
.news-title { display: block; font-size: 14.5px; line-height: 1.4; color: var(--ink); }
.news-row:hover .news-title { color: var(--route); }
.news-sum { margin: 5px 0 0; font-size: 13px; line-height: 1.55; color: var(--ink-soft); }
.news-go { font-size: 16px; color: var(--ink-faint); flex-shrink: 0; margin-top: 2px; transition: color .2s, transform .2s; }
.news-row:hover .news-go { color: var(--route); transform: translate(2px, -2px); }
/* the dashboard strip uses the same rows but trims the top border of the first */
#dash-news .news-row:first-child { border-top: none; padding-top: 4px; }
/* ── Briefing cards (#news) ────────────────────────────────────
A card wall rather than a list of links, because a headline with a
publisher, a date and two lines of context is a thing you can judge
before you spend a tap on it — and this audience is on metered data.
On the pictures: none of the feeds carrying this topic publish
images (Google News RSS has none at all; RNZ's and Beehive's have
none either). Rather than fetch twenty article pages through a free
proxy to scrape one og:image each, a card falls back to a cover
drawn from the publisher's name — deterministic, so RNZ always
looks like RNZ and the wall reads as a set. */
.nc-grid {
display: grid; gap: 16px;
grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
}
.nc {
display: flex; flex-direction: column; overflow: hidden;
border: 1px solid var(--line); border-radius: 10px;
background: var(--surface); color: inherit; text-decoration: none;
transition: border-color .2s, transform .2s cubic-bezier(.22,1,.36,1), box-shadow .2s;
}
.nc:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow-1); }
.nc:focus-visible { outline: 2px solid var(--route); outline-offset: 2px; }
.nc-media { position: relative; aspect-ratio: 16 / 9; background: var(--paper-2); overflow: hidden; }
.nc-img {
position: absolute; inset: 0; width: 100%; height: 100%;
object-fit: cover; z-index: 1; background: var(--paper-2);
}
/* The cover sits UNDER any real image, so a broken URL simply reveals
it — no onerror juggling, no empty frame, no layout shift. */
.nc-cover {
position: absolute; inset: 0; overflow: hidden;
background:
radial-gradient(130% 130% at 16% 8%, hsl(var(--h) 38% 36%) 0%, transparent 62%),
linear-gradient(135deg, hsl(var(--h) 28% 21%) 0%, hsl(calc(var(--h) + 42) 32% 12%) 100%);
}
/* A fine diagonal weave, barely there — enough to stop a flat panel
reading as a missing image. */
.nc-cover::after {
content: ""; position: absolute; inset: 0; opacity: .16;
background-image: repeating-linear-gradient(115deg,
rgba(255,255,255,.5) 0 1px, transparent 1px 9px);
}
/* A large geometric motif, drawn in CSS.
This was a 118px Material Symbols glyph, and it was the single worst
place in the product to depend on that font: the icons are LIGATURES,
so while the async font was still in flight every card rendered the
literal word "takeoff" or "gavel" in 118px type across its cover. A
decorative element must not be able to fail that loudly, so it is now
two rings and an arc that need no font at all. */
.nc-motif {
position: absolute; right: -34px; bottom: -46px;
width: 190px; height: 190px; border-radius: 50%;
border: 1.5px solid rgba(255,255,255,.16);
box-shadow:
inset 0 0 0 26px rgba(255,255,255,.05),
inset 0 0 0 27px rgba(255,255,255,.13);
pointer-events: none;
}
.nc-motif::before {
content: ""; position: absolute; inset: 52px;
border-radius: 50%; border: 1.5px solid rgba(255,255,255,.20);
border-bottom-color: transparent; border-right-color: transparent;
transform: rotate(-38deg);
}
/* The publisher, with its real logo. */
.nc-chip {
position: absolute; top: 12px; left: 12px; z-index: 2;
display: inline-flex; align-items: center; gap: 7px;
max-width: calc(100% - 24px);
padding: 5px 11px 5px 6px; border-radius: 999px;
background: rgba(255,255,255,.94);
font-family: var(--font-mono); font-size: 10px; font-weight: 500;
letter-spacing: .04em; color: #1C1A15;
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nc-chip > span { overflow: hidden; text-overflow: ellipsis; }
/* No background: a favicon that fails or comes back blank should leave
nothing behind, not a white blob beside the publisher's name. */
.nc-logo { width: 20px; height: 20px; border-radius: 5px; flex: none; object-fit: contain; }
/* The subject, named. */
.nc-topic {
position: absolute; left: 14px; bottom: 12px; z-index: 2;
display: inline-flex; align-items: center; gap: 6px;
font-family: var(--font-mono); font-size: 11px; font-weight: 500;
letter-spacing: .09em; text-transform: uppercase;
color: rgba(255,255,255,.92); text-shadow: 0 1px 6px rgba(0,0,0,.45);
}
.nc-topic .material-symbols-outlined { font-size: 15px; }
.nc-badge {
position: absolute; z-index: 3; top: 12px; right: 12px;
padding: 3px 9px; border-radius: 999px;
background: var(--ink); color: var(--paper);
font-family: var(--font-mono); font-size: 9.5px;
letter-spacing: .1em; text-transform: uppercase;
}
.nc-body { display: flex; flex-direction: column; gap: 8px; padding: 15px 16px 16px; flex: 1; }
.nc-meta { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.nc-src {
font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em;
text-transform: uppercase; color: var(--ink); font-weight: 500;
}
.nc-time { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-faint); }
.nc-title {
margin: 0; font-size: 15.5px; line-height: 1.35; font-weight: 500;
letter-spacing: -.008em; color: var(--ink); text-wrap: balance;
}
.nc:hover .nc-title { color: var(--route); }
.nc-sum {
margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-soft);
display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.nc-foot {
display: flex; align-items: center; justify-content: space-between;
gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-soft);
}
.nc-go {
display: inline-flex; align-items: center; gap: 4px;
font-size: 11.5px; color: var(--ink-faint); white-space: nowrap;
overflow: hidden; text-overflow: ellipsis;
}
.nc-go .material-symbols-outlined { font-size: 13px; }
.nc:hover .nc-go { color: var(--route); }
/* Loading skeletons keep the grid's shape so nothing jumps on arrival. */
.nc-skel { pointer-events: none; }
.nc-skel .nc-media { background: var(--line-soft); }
.nc-skel-line { display: block; height: 10px; border-radius: 3px; background: var(--line-soft); }
@keyframes ncPulse { 0%,100% { opacity: 1 } 50% { opacity: .55 } }
.nc-skel .nc-media, .nc-skel-line { animation: ncPulse 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
.nc-skel .nc-media, .nc-skel-line { animation: none; }
.nc:hover { transform: none; }
}
.news-note { font-size: 12px; line-height: 1.6; color: var(--ink-faint); }
.news-note strong { color: var(--ink-soft); }
@media (max-width: 560px) {
.nc-grid { grid-template-columns: 1fr; gap: 14px; }
.nc-media { aspect-ratio: 2 / 1; }
}
/* ── Course Catalogue (#courses) ── */
.crs-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.crs-search, .crs-sel {
padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 6px;
background: var(--paper); color: var(--ink); font-family: inherit; font-size: 13.5px;
transition: border-color .2s;
}
.crs-search { flex: 1; min-width: 220px; }
.crs-search:focus, .crs-sel:focus { outline: none; border-color: var(--route); }
.crs-sel { max-width: 230px; cursor: pointer; }
.vh-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: 12px; }
.vh-facts > div { display: flex; flex-direction: column; gap: 3px; }
.vh-facts span { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.vh-facts strong { font-size: 13.5px; font-weight: 560; line-height: 1.45; }
.fh-check { display: flex; align-items: center; gap: 8px; padding: 9px 12px; font-size: 13px; color: var(--ink-soft); cursor: pointer; }
.fh-check input { accent-color: var(--route); width: 15px; height: 15px; cursor: pointer; }
.crs-rail { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.crs-rail-sub { padding-left: 14px; border-left: 2px solid var(--line); margin-bottom: 20px; }
.crs-n { font-family: var(--font-mono); font-size: 9.5px; opacity: .55; margin-left: 4px; }
.crs-count { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.crs-card { margin-bottom: 10px; padding: 0; overflow: hidden; }
.crs-head {
display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
justify-content: space-between; padding: 16px 20px; cursor: pointer;
transition: background .2s;
}
.crs-head:hover { background: var(--surface); }
.crs-caret { font-size: 20px; color: var(--ink-faint); transition: transform .25s; }
.crs-caret.open { transform: rotate(180deg); color: var(--route); }
.crs-body { padding: 4px 20px 20px; border-top: 1px solid var(--line); }
.crs-sect { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.crs-sect:last-of-type { border-bottom: none; }
.crs-sect p { font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); }
.crs-lbl { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 6px; }
.crs-prov { display: flex; gap: 14px; justify-content: space-between; align-items: baseline; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line-soft); }
.crs-prov:first-of-type { border-top: none; }
.crs-prov-links { display: flex; gap: 14px; font-family: var(--font-mono); font-size: 11.5px; }
.crs-prov-links a { color: var(--route); }
/* ── Funds Readiness Check ── */
.fc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line-soft); font-size: 13.5px; color: var(--ink-soft); }
.fc-row:first-of-type { border-top: none; }
.fc-row strong { color: var(--ink); white-space: nowrap; }
.fc-row-strong { border-top: 1px solid var(--line); margin-top: 2px; font-size: 14.5px; }
.fc-row-strong span, .fc-row-strong strong { color: var(--ink); font-weight: 600; }
.fc-row-gap { border-top: 1px solid var(--route); }
.fc-row-gap span, .fc-row-gap strong { color: var(--route); font-weight: 600; }
.fc-cur { padding: 0 14px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .04em; background: var(--paper); border: none; color: var(--ink-faint); cursor: pointer; }
.fc-cur + .fc-cur { border-left: 1px solid var(--line); }
.fc-cur.active { background: var(--ink); color: var(--paper); }
.fc-flags { list-style: none; margin: 0; padding: 0; }
.fc-flags li { display: flex; gap: 9px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.fc-flags li:first-child { border-top: none; }
.fc-flags li .material-symbols-outlined { font-size: 17px; color: var(--ochre); flex-shrink: 0; margin-top: 1px; }
/* Main */
.main { min-width: 0; padding: var(--pad-view); max-width: 1280px; width: 100%; margin: 0 auto; background: var(--canvas); }
.vhead { margin-bottom: 40px; padding-top: 14px; border-top: 1px solid var(--ink); }
.vhead .tag { margin-bottom: 4px; }
.vhead h1 { margin: 12px 0 8px !important; }
/* Assessment options */
.asm-opts { display: flex; flex-direction: column; }
.asm-opt {
display: flex; align-items: center; gap: 14px; text-align: left;
padding: 15px 6px; font-size: 15px; color: var(--ink);
background: none; border: none; border-top: 1px solid var(--line);
transition: padding-left .25s cubic-bezier(.22,1,.36,1), color .2s;
}
.asm-opt:last-child { border-bottom: 1px solid var(--line); }
.asm-opt:hover { padding-left: 16px; color: var(--route); }
.asm-radio { width: 15px; height: 15px; border-radius: 50%; border: 1.4px solid var(--line-2); flex-shrink: 0; transition: border-color .2s, background .2s; }
.asm-opt:hover .asm-radio { border-color: var(--route); background: rgba(194,64,28,.12); }
/* Timeline */
.timeline { position: relative; padding-left: 34px; max-width: 760px; }
.timeline::before { content: ''; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 0; border-left: 1px dashed var(--route); opacity: .55; }
.tl-phase { position: relative; margin-bottom: 22px; }
.tl-node {
position: absolute; left: -34px; top: 24px; width: 27px; height: 27px; border-radius: 50%;
display: flex; align-items: center; justify-content: center;
font-family: var(--font-mono); font-size: 11px; font-weight: 600;
background: var(--paper); border: 1.4px solid var(--ink); color: var(--ink);
}
.tl-teal, .tl-violet, .tl-gold, .tl-rose { border-color: var(--ink); }
.tl-card { margin-left: 14px; }
.tl-list { margin: 14px 0 0; list-style: none; }
.tl-list li { position: relative; padding: 6px 0 6px 22px; font-size: 14px; color: var(--ink-soft); border-top: 1px solid var(--line-soft); }
.tl-list li::before { content: '—'; position: absolute; left: 0; color: var(--route); }
/* Explorer */
/* ── Profile strip (#dashboard / #assessment / #funds / #cost / #news) ──
A sub-navigation band, not a filter row: these five tabs each swap
the whole view beneath them. It sits ABOVE the hero for that reason
— the hero belongs to the tab, so it has to change underneath a bar
that stays put.
Each tab carries a live status line, which is what makes this the
student's profile rather than a menu. Horizontally scrollable on a
phone with the scrollbar hidden, the same idiom as .segs. */
.ptabs {
display: flex; gap: 6px; margin: 0 0 22px; padding-bottom: 4px;
overflow-x: auto; scroll-snap-type: x proximity;
scrollbar-width: none; -ms-overflow-style: none;
}
.ptabs::-webkit-scrollbar { display: none; }
.ptab {
display: flex; align-items: center; gap: 9px; flex: 0 0 auto;
padding: 9px 14px; border: 1px solid var(--line); border-radius: 8px;
background: var(--surface); color: var(--ink-soft);
text-decoration: none; scroll-snap-align: start;
transition: border-color .18s, color .18s, background .18s;
}
.ptab:hover { border-color: var(--line-2); color: var(--ink); }
.ptab:focus-visible { outline: 2px solid var(--route); outline-offset: 2px; }
.ptab .material-symbols-outlined { font-size: 19px; flex: none; color: var(--ink-faint); }
.ptab-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ptab-label { font-size: 13.5px; font-weight: 500; line-height: 1.25; white-space: nowrap; }
.ptab-state {
font-family: var(--font-mono); font-size: 10px; letter-spacing: .05em;
color: var(--ink-faint); white-space: nowrap; text-transform: uppercase;
}
.ptab.is-on {
background: var(--ink); border-color: var(--ink); color: var(--paper);
}
.ptab.is-on .material-symbols-outlined,
.ptab.is-on .ptab-state { color: rgba(255,255,255,.62); }
@media (max-width: 768px) {
/* Full-bleed on a phone so the strip scrolls edge to edge instead of
ending in a dead gutter the thumb has to avoid. The 20px matches
`.shell .main`'s mobile padding (site.css) — keep them in step, or
the first tab stops lining up with the content below it. */
.ptabs { margin: 0 -20px 18px; padding: 0 20px 4px; }
.ptab { padding: 8px 12px; }
}
.chip-filter {
padding: 7px 13px; border-radius: 2px;
font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
letter-spacing: .08em; text-transform: uppercase;
background: none; border: 1px solid var(--line); color: var(--ink-faint);
transition: all .2s;
}
.chip-filter:hover { border-color: var(--ink); color: var(--ink); }
.chip-filter.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.lab-row {
display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
padding: 15px 2px; margin-top: 0;
background: none; border: none; border-top: 1px solid var(--line);
}
.save-btn.saved { border-color: var(--pine); color: var(--pine); }
.visa-row { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.tpl-preview {
background: var(--surface); border: 1px solid var(--line); border-radius: 2px;
padding: 16px; font-size: 11px; line-height: 1.65; color: var(--ink-soft);
max-height: 200px; overflow-y: auto; white-space: pre-wrap; font-family: var(--font-mono);
scrollbar-width: thin;
}
/* ── Visa Hub ── */
.vh-head {
display: flex; align-items: center; gap: 10px; flex-wrap: wrap; width: 100%;
background: none; border: none; text-align: left; padding: 0; cursor: pointer;
}
.vh-head h3 { font-size: 1.1rem; margin-right: auto; }
.vh-caret { font-size: 20px; color: var(--ink-faint); transition: transform .25s; }
.vh-stage.open .vh-caret { transform: rotate(180deg); }
.vh-stage.done { border-color: var(--pine); }
.vh-count { font-size: 10.5px; color: var(--ink-faint); }
.vh-stage.done .vh-count { color: var(--pine); }
.vh-body { margin-top: 4px; }
/* custom checklist */
.ck-list { list-style: none; margin: 16px 0 0; }
.ck-item label { display: flex; align-items: flex-start; gap: 12px; padding: 10px 2px; cursor: pointer; border-top: 1px solid var(--line-soft); font-size: 14px; }
.ck-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ck-box {
flex-shrink: 0; width: 17px; height: 17px; margin-top: 2px; border-radius: 2px;
border: 1.4px solid var(--line-2); display: flex; align-items: center; justify-content: center;
transition: background .2s, border-color .2s; font-size: 12px; color: transparent;
}
.ck-item input:checked + .ck-box { background: var(--pine); border-color: var(--pine); color: #fff; }
.ck-item input:focus-visible + .ck-box { outline: 2px solid var(--route); outline-offset: 2px; }
.ck-item.done .ck-t { color: var(--ink-faint); text-decoration: line-through; }
.ck-item em { display: block; font-style: normal; font-size: 12px; color: var(--ink-faint); margin-top: 2px; }
/* consultation hook — quiet by design */
.consult-hook {
margin-top: 18px; padding-top: 13px; border-top: 1px dashed var(--line);
display: flex; align-items: center; gap: 8px;
font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em; color: var(--ink-faint);
}
.consult-hook { flex-wrap: wrap; }
.consult-hook a { color: var(--ochre); transition: color .2s; }
.consult-hook a:hover { color: var(--route); }
/* inline "Ask a mentor" toggle styled like the old link */
.consult-hook-toggle {
background: none; border: none; padding: 0; cursor: pointer;
font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em;
color: var(--ochre); transition: color .2s;
}
.consult-hook-toggle:hover { color: var(--route); }
.consult-hook-form {
flex-basis: 100%; width: 100%; margin-top: 10px;
display: flex; flex-direction: column; gap: 8px;
}
.consult-hook-form .field { font-size: 13px; }
/* mentor cards */
.m-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.m-initials {
flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%;
background: var(--paper-2); border: 1px solid var(--line);
display: flex; align-items: center; justify-content: center;
font-family: var(--font-display); font-size: 17px; font-weight: 560; color: var(--route);
}
.m-pkgs { width: 100%; border-collapse: collapse; margin: 14px 0 4px; }
.m-pkgs td { padding: 8px 0; border-top: 1px solid var(--line-soft); font-size: 13.5px; }
.m-pkgs td:last-child { text-align: right; font-family: var(--font-mono); font-size: 11.5px; color: var(--pine); white-space: nowrap; }
.m-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
/* partner placements — clearly labelled */
.partner-row {
display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
margin-top: 18px; padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: 3px;
background: var(--gold-soft);
}
.partner-row p { flex: 1; min-width: 200px; font-size: 13px; color: var(--ink-soft); margin: 0; }
/* auth / sync */
#auth-slot { margin-top: 14px; padding: 0 8px; }
#auth-slot .btn { width: 100%; justify-content: center; }
/* ── Modal (payment flows) ── */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; transition: opacity .2s; }
.modal.show { opacity: 1; }
.modal-overlay { position: absolute; inset: 0; background: rgba(20,16,12,.5); backdrop-filter: blur(3px); }
.modal-card {
position: relative; background: var(--paper); border: 1px solid var(--ink);
border-radius: 6px; max-width: 460px; width: 100%; max-height: 88vh; overflow-y: auto;
padding: 24px; box-shadow: 0 24px 60px rgba(20,16,12,.28);
transform: translateY(10px); transition: transform .2s;
}
.modal.show .modal-card { transform: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.modal-close { background: none; border: none; font-size: 26px; line-height: 1; color: var(--ink-faint); cursor: pointer; padding: 0 4px; }
.modal-close:hover { color: var(--ink); }
/* payment instructions box */
.pay-box { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.pay-row { display: flex; justify-content: space-between; gap: 14px; padding: 10px 14px; font-size: 13.5px; border-top: 1px solid var(--line-soft); }
.pay-row:first-child { border-top: none; }
.pay-row span { color: var(--ink-faint); }
.pay-row strong { text-align: right; word-break: break-word; display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; }
/* One-tap copy on the two fields people retype into a banking app.
A mistyped account number sends the money to a stranger; a mistyped
reference makes a real payment unmatchable for days. */
.pay-copy {
appearance: none; border: 1px solid var(--line); background: transparent;
color: var(--ink-faint); border-radius: 4px; cursor: pointer;
width: 26px; height: 26px; flex: none; padding: 0;
display: inline-flex; align-items: center; justify-content: center;
transition: color .15s, border-color .15s, background .15s;
}
.pay-copy .material-symbols-outlined { font-size: 15px; }
.pay-copy:hover { color: var(--ink); border-color: var(--line-2); }
.pay-copy:focus-visible { outline: 2px solid var(--pine); outline-offset: 2px; }
.pay-copy.is-copied { color: var(--pine); border-color: var(--pine); }
/* The amount, given its own line. It was previously one bold word in a
sentence above the account box — the single most important number in
the modal, styled as the least important thing on it. */
.pay-amt {
display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
font-size: 13px; color: var(--ink-faint);
}
.pay-amt strong { font-size: 19px; color: var(--ink); font-variant-numeric: tabular-nums; }
.pay-amt-lead {
justify-content: space-between; padding: 12px 14px; margin: 0 0 12px;
border: 1px solid var(--line); border-radius: 4px; background: var(--paper-2, rgba(0,0,0,.02));
}
/* LankaQR — the cheapest and fastest rail, so it leads the modal. */
.pay-qr {
display: grid; grid-template-columns: auto 1fr; gap: 14px 16px;
align-items: start; padding: 14px; border: 1px solid var(--line);
border-radius: 5px; margin-bottom: 14px;
}
.pay-qr-head { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }
.pay-qr-head strong { font-size: 14px; }
.pay-qr-img {
width: 148px; height: 148px; display: block; border-radius: 4px;
background: #fff; padding: 6px; border: 1px solid var(--line-soft);
}
.pay-qr-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pay-qr-name { font-size: 12.5px; color: var(--ink-soft); margin: 0; line-height: 1.5; }
.pay-or {
display: flex; align-items: center; gap: 12px; margin: 0 0 12px;
font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint);
}
.pay-or::before, .pay-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pay-ref-why { font-size: 12.5px; line-height: 1.55; color: var(--ink-soft); margin: 12px 0 0; }
@media (max-width: 460px) {
.pay-qr { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.pay-qr-side { align-items: center; }
.pay-amt-lead { justify-content: space-between; }
}
/* locked premium template card */
.locked-card { position: relative; border-style: dashed; }
.lock-chip { position: absolute; top: 14px; right: 14px; }
@media (max-width: 899px) {
.app-form { grid-template-columns: 1fr !important; }
}
</style>
</head>
<body>
<div class="shell">
<nav class="topnav" aria-label="Primary">
<a class="tn-logo" href="index.html"><span class="tn-logo-path">Path</span><span class="tn-logo-finder">finder</span></a>
<ul class="topnav-links">
<li><a data-view="dashboard" href="#dashboard"><span class="material-symbols-outlined" aria-hidden="true" style="font-size:14px;vertical-align:-2px;margin-right:5px">space_dashboard</span>Home</a></li>
<li><a data-view="courses" href="#courses"><span class="material-symbols-outlined" aria-hidden="true" style="font-size:14px;vertical-align:-2px;margin-right:5px">school</span>Programmes</a></li>
<li><a data-view="roadmap" href="#roadmap"><span class="material-symbols-outlined" aria-hidden="true" style="font-size:14px;vertical-align:-2px;margin-right:5px">route</span>Roadmap</a></li>
<li><a data-view="mentors" href="#mentors"><span class="material-symbols-outlined" aria-hidden="true" style="font-size:14px;vertical-align:-2px;margin-right:5px">support_agent</span>Mentors</a></li>
<li><a data-view="funding" href="#funding"><span class="material-symbols-outlined" aria-hidden="true" style="font-size:14px;vertical-align:-2px;margin-right:5px">request_quote</span>Funding</a></li>
<li><a data-view="visa" href="#visa"><span class="material-symbols-outlined" aria-hidden="true" style="font-size:14px;vertical-align:-2px;margin-right:5px">flight_takeoff</span>Visa</a></li>
</ul>
<div class="topnav-right">
<span class="topnav-context" id="nav-context"></span>
<button type="button" class="navmore" id="nav-more-btn" aria-haspopup="true" aria-expanded="false" aria-controls="nav-pop" aria-label="More, account and settings">
<span class="material-symbols-outlined ic-more" aria-hidden="true">more_horiz</span>
<span class="material-symbols-outlined ic-menu" aria-hidden="true">menu</span>
</button>
<div class="avatar avatar-nav" id="nav-avatar" aria-hidden="true"></div>
<div class="navpop" id="nav-pop" role="menu" aria-label="More" hidden>
<!-- which journey the student is on; painted by paintTrackSwitch() -->
<div class="track-switch" id="track-switch" role="group" aria-label="Study track"></div>
<a class="navpop-link" role="menuitem" data-view="billing" href="#billing"><span class="material-symbols-outlined" aria-hidden="true">receipt_long</span>Billing</a>
<a class="navpop-link" role="menuitem" data-view="account" href="#account"><span class="material-symbols-outlined" aria-hidden="true">account_circle</span>Account</a>
<a class="navpop-link" role="menuitem" data-view="pricing" href="#pricing"><span class="material-symbols-outlined" aria-hidden="true">payments</span>Plans</a>
<a class="navpop-link hidden" role="menuitem" id="admin-link" data-view="admin" href="#admin"><span class="material-symbols-outlined" aria-hidden="true">admin_panel_settings</span>Admin</a>
<a class="navpop-link hidden" role="menuitem" id="mentor-link" data-view="mentor" href="#mentor"><span class="material-symbols-outlined" aria-hidden="true">badge</span>Mentor Dashboard</a>
<div class="navpop-sep"></div>
<!-- The phone line, one tap from every view. href + label are filled
by paintContactLinks() in app.js from PF_CONFIG, so the number
is never written twice. -->
<a class="navpop-link" role="menuitem" id="nav-whatsapp" href="#" target="_blank" rel="noopener" hidden><span class="material-symbols-outlined" aria-hidden="true">chat</span><span class="wa-label">WhatsApp us</span></a>
<div class="navpop-sep"></div>
<div id="auth-slot"></div>
<!-- Its own line, not folded into the legal-links row below — mixed
in there it read as just another tiny link (U-29). -->
<p class="navpop-sync" id="sync-state">Data stays on device</p>
<div class="navpop-foot">
<a href="privacy.html">Privacy</a>
<a href="terms.html">Terms</a>
<a href="terms.html#refunds">Refunds</a>
<a href="disclaimer.html">Disclaimer</a>
</div>
</div>
</div>
</nav>
<main class="main">
<div id="view"></div>
</main>
<nav class="tabbar" aria-label="Primary">
<a data-view="dashboard" href="#dashboard"><span class="material-symbols-outlined" aria-hidden="true">space_dashboard</span>Home</a>
<a data-view="courses" href="#courses"><span class="material-symbols-outlined" aria-hidden="true">school</span>Programmes</a>
<a data-view="roadmap" href="#roadmap"><span class="material-symbols-outlined" aria-hidden="true">route</span>Roadmap</a>
<a data-view="mentors" href="#mentors"><span class="material-symbols-outlined" aria-hidden="true">support_agent</span>Mentors</a>
<a data-view="funding" href="#funding"><span class="material-symbols-outlined" aria-hidden="true">request_quote</span>Funding</a>
<a data-view="visa" href="#visa"><span class="material-symbols-outlined" aria-hidden="true">flight_takeoff</span>Visa</a>
</nav>
</div>
<div id="toast" role="status"></div>
<!-- ── The critical path ────────────────────────────────────────────────
Only what every visitor needs to see a first screen. Three bundles
that used to sit here are now fetched by the view that wants them
(ensureRoi / ensureInvoice / ensureSettlementTools in app.js):
roi-data.js + roi.js ~15 KB gz — only #cost
invoice.js ~11 KB gz — only #cost, #billing, #mentor, #admin
settlement/*.js (×4) ~17 KB gz — only the Settle In tool tabs
That is ~43 KB gzipped taken off the landing → dashboard → courses
funnel, which is where nearly all the traffic is, on an audience
mostly arriving over mobile data. -->
<script src="assets/js/data.js?v=b7f65c43"></script>
<script src="assets/js/store.js?v=f236f4ed"></script>
<script src="assets/js/contact.js?v=9b92476f"></script>
<!-- Analytics. analytics-config.js holds the GA4 Measurement ID and is the
only file you edit to turn measurement on; with it empty nothing is
fetched and no cookie is set. See docs/ANALYTICS.md. -->
<script src="assets/js/analytics-config.js?v=ed56ba2c"></script>
<script src="assets/js/analytics.js?v=8663fcb9"></script>
<!-- Checkout rails stay eager: several views call PFPay during render
(pay labels, plan names on #billing and #pricing), so deferring them
would trade 8 KB for a flash of missing prices. -->
<script src="assets/js/payhere.js?v=02d5f9c1"></script>
<script src="assets/js/paypal.js?v=e4f20ac5"></script>
<script src="assets/js/pay.js?v=6babfcbd"></script>
<script src="assets/js/firebase-config.js?v=2a33308f"></script>
<script src="assets/js/app.js?v=b7b345da"></script>
<script type="module" src="assets/js/firebase.js?v=cedd5879"></script>
</body>
</html>