x
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
<div class="tw:p-6 tw:max-w-7xl tw:mx-auto tw:space-y-8">
<div class="callout">
<p class="tw:mb-1 tw:text-sm tw:font-mono">
<strong>FILTERS:</strong> Consumer results-filtering surfaces<br>
<strong>VARIANTS:</strong> Advanced panel | Rail
</p>
<p class="tw:mb-0 tw:text-sm">
Consolidated entry for the two filtering patterns. Advanced panel is the collapsible
zone below the hero pill; Rail is the 280px left-aside filter panel for results pages.
</p>
</div>
<div data-controller="tabs">
<div class="tabs" role="tablist">
<button class="tab" role="tab" aria-selected="true" data-tabs-target="tab" data-tabs-anchor="advanced-panel" data-action="click->tabs#select keydown->tabs#keydown" type="button">Advanced panel</button>
<button class="tab" role="tab" aria-selected="false" data-tabs-target="tab" data-tabs-anchor="rail" data-action="click->tabs#select keydown->tabs#keydown" type="button">Rail</button>
</div>
<div class="tab-content">
<div class="tab-panel" role="tabpanel" data-tabs-target="panel">
<div class="callout">
<p class="tw:mb-1 tw:text-sm tw:font-mono">
<strong>PATTERN:</strong> Advanced Filters Panel (consumer-only)<br>
<strong>COMPOSES:</strong> form-check + form-select
</p>
<p class="tw:mb-0 tw:text-sm">
Collapsible filter zone that drops below the Hero Search pill.
White card with sky-blue border. Sections: quick-toggle checkboxes,
Gender chip-buttons (3-col grid), Ofsted rating selects (2-col grid with orange warnings).
</p>
</div>
<!-- ── Full panel demo ───────────────────────────────────────── -->
<div class="tw:border-t tw:pt-6">
<h2 class="h4 tw:mb-4">Full panel — all sections visible</h2>
<div class="callout tw:mb-4">
<p class="tw:mb-0 tw:text-sm">
<strong>Demo:</strong> Panel with 3 active filters indicated by the count badge.
Quick Apply is pre-checked. Gender + Ofsted sections fully rendered.
</p>
</div>
<div class="advanced-filters-panel">
<!-- Header row -->
<div class="advanced-filters-panel-header">
<!-- Title + count badge -->
<div class="advanced-filters-panel-title">
<span class="advanced-filters-panel-title-text">Advanced Filter</span>
<span class="advanced-filters-panel-count" aria-label="3 active filters">3</span>
</div>
<!-- Quick-toggle checkboxes -->
<div class="advanced-filters-panel-quick">
<div class="form-check form-check-inline">
<input class="form-check-input" type="checkbox" id="adv-eligible" value="1">
<label class="form-check-label" for="adv-eligible">
Eligible course only
<i class="fa-light fa-circle-info tw:text-neutral-400 tw:ml-1" aria-label="What is eligible course?" ></i>
</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="checkbox" id="adv-quick-apply" value="1" checked>
<label class="form-check-label" for="adv-quick-apply">Quick Apply only</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="checkbox" id="adv-nursery" value="1">
<label class="form-check-label" for="adv-nursery">Primary has nursery</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="checkbox" id="adv-no-online" value="1">
<label class="form-check-label" for="adv-no-online">Exclude online providers</label>
</div>
</div>
</div>
<!-- Gender of school section -->
<div class="advanced-filters-panel-section">
<div class="advanced-filters-panel-section-label">Gender of school :</div>
<div class="advanced-filters-panel-chip-row">
<!-- Girls -->
<label class="advanced-filters-panel-chip" for="gender-girls">
<span class="tw:inline-flex tw:items-center tw:gap-2">
<input class="form-check-input tw:m-0" type="checkbox" id="gender-girls" value="girls">
<span class="tw:text-sm tw:text-neutral-700">Girls</span>
</span>
<i class="fa-light fa-venus tw:text-neutral-400" aria-hidden="true"></i>
</label>
<!-- Boys -->
<label class="advanced-filters-panel-chip" for="gender-boys">
<span class="tw:inline-flex tw:items-center tw:gap-2">
<input class="form-check-input tw:m-0" type="checkbox" id="gender-boys" value="boys">
<span class="tw:text-sm tw:text-neutral-700">Boys</span>
</span>
<i class="fa-light fa-mars tw:text-neutral-400" aria-hidden="true"></i>
</label>
<!-- Mixed -->
<label class="advanced-filters-panel-chip" for="gender-mixed">
<span class="tw:inline-flex tw:items-center tw:gap-2">
<input class="form-check-input tw:m-0" type="checkbox" id="gender-mixed" value="mixed" checked>
<span class="tw:text-sm tw:text-neutral-700">Mixed</span>
</span>
<i class="fa-light fa-venus-mars tw:text-neutral-400" aria-hidden="true"></i>
</label>
</div>
</div>
<!-- Ofsted Rating section -->
<div class="advanced-filters-panel-section">
<div class="advanced-filters-panel-section-label">Ofsted Rating :</div>
<p class="advanced-filters-panel-warning">
(Applies to school inspected <span class="tw:not-italic">AFTER</span> September 2024):
</p>
<div class="advanced-filters-panel-rating-grid">
<!-- 1. Quality of Education -->
<div>
<div class="advanced-filters-panel-rating-label">1. Quality of Education :</div>
<select class="form-select form-select-sm" id="ofsted-quality" aria-label="Quality of Education rating">
<option value="">Select rating</option>
<option value="o">Outstanding</option>
<option value="g">Good</option>
<option value="r">Requires Improvement</option>
<option value="i">Inadequate</option>
</select>
</div>
<!-- 2. Behaviour & Attitudes -->
<div>
<div class="advanced-filters-panel-rating-label">2. Behaviour & Attitudes :</div>
<select class="form-select form-select-sm" id="ofsted-behaviour" aria-label="Behaviour and Attitudes rating">
<option value="">Select rating</option>
<option value="o">Outstanding</option>
<option value="g" selected>Good</option>
<option value="r">Requires Improvement</option>
<option value="i">Inadequate</option>
</select>
</div>
<!-- 3. Personal Development -->
<div>
<div class="advanced-filters-panel-rating-label">3. Personal Development :</div>
<select class="form-select form-select-sm" id="ofsted-personal" aria-label="Personal Development rating">
<option value="">Select rating</option>
<option value="o">Outstanding</option>
<option value="g">Good</option>
<option value="r">Requires Improvement</option>
<option value="i">Inadequate</option>
</select>
</div>
<!-- 4. Leadership & Management -->
<div>
<div class="advanced-filters-panel-rating-label">4. Leadership & Management :</div>
<select class="form-select form-select-sm" id="ofsted-leadership" aria-label="Leadership and Management rating">
<option value="">Select rating</option>
<option value="o">Outstanding</option>
<option value="g">Good</option>
<option value="r">Requires Improvement</option>
<option value="i">Inadequate</option>
</select>
</div>
</div>
<!-- Before Sept 2024 warning + single select -->
<p class="advanced-filters-panel-warning advanced-filters-panel-warning-below">
(Applies to school inspected <span class="tw:not-italic">BEFORE</span> September 2024):
</p>
<div class="tw:mt-2 tw:w-1/2">
<select class="form-select form-select-sm" id="ofsted-legacy" aria-label="Legacy Ofsted overall rating">
<option value="">Select rating</option>
<option value="o">Outstanding</option>
<option value="g">Good</option>
<option value="r">Requires Improvement</option>
<option value="i">Inadequate</option>
</select>
</div>
</div>
</div>
<div class="tw:mt-4 tw:text-sm tw:text-gray-600">
<code><div class="advanced-filters-panel"><div class="advanced-filters-panel-header">...</div>...</div></code>
</div>
</div>
<!-- ── In context below Hero Search ─────────────────────────── -->
<div class="tw:border-t tw:pt-6">
<h2 class="h4 tw:mb-4">In context — below Hero Search</h2>
<div class="callout tw:mb-4">
<p class="tw:mb-0 tw:text-sm">
The panel drops 16px below the hero pill. Together they sit inside the consumer hero wash.
</p>
</div>
<div class="consumer-hero-wash tw:py-10 tw:px-6 tw:rounded-lg">
<!-- Hero search pill (abbreviated, Providers filled) -->
<div class="hero-search">
<div class="hero-search-pill">
<div class="hero-search-field tw:flex-[1.4]">
<span class="hero-search-field-label">Type of school</span>
<div class="hero-search-field-value-row">
<div class="hero-search-field-tags">
<span class="hero-search-field-tag">
Sixth Form & Colleges
<span class="hero-search-field-tag-dismiss" aria-hidden="true">×</span>
</span>
</div>
</div>
</div>
<div class="hero-search-field tw:flex-[2]">
<span class="hero-search-field-label">What to study</span>
<div class="hero-search-field-value-row">
<span class="hero-search-field-value">Mathematics A-Level</span>
</div>
</div>
<div class="hero-search-field tw:flex-[1.3]">
<span class="hero-search-field-label">Near to</span>
<div class="hero-search-field-value-row">
<span class="hero-search-field-value">KA30 8LD</span>
</div>
</div>
<button type="button" class="hero-search-submit" aria-label="Search providers">
<i class="fa-light fa-magnifying-glass" class="tw:text-lg" aria-hidden="true"></i>
</button>
</div>
<div class="hero-search-meta">
<a href="#" class="hero-search-toggle" aria-label="Filters open, 2 active">
<i class="fa-light fa-sliders" aria-hidden="true"></i>
Advanced Filters
<span class="hero-search-toggle-badge" aria-hidden="true">2</span>
<i class="fa-light fa-chevron-up tw:text-xs" aria-hidden="true"></i>
</a>
<span class="hero-search-results">
<i class="fa-light fa-magnifying-glass" aria-hidden="true"></i>
63 potential results
</span>
</div>
</div>
<!-- Advanced filters panel (16px below) -->
<div class="tw:mt-4">
<div class="advanced-filters-panel">
<div class="advanced-filters-panel-header">
<div class="advanced-filters-panel-title">
<span class="advanced-filters-panel-title-text">Advanced Filter</span>
<span class="advanced-filters-panel-count">2</span>
</div>
<div class="advanced-filters-panel-quick">
<div class="form-check form-check-inline">
<input class="form-check-input" type="checkbox" id="ctx-quick-apply" value="1" checked>
<label class="form-check-label" for="ctx-quick-apply">Quick Apply only</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="checkbox" id="ctx-no-online" value="1">
<label class="form-check-label" for="ctx-no-online">Exclude online providers</label>
</div>
</div>
</div>
<div class="advanced-filters-panel-section">
<div class="advanced-filters-panel-section-label">Gender of school :</div>
<div class="advanced-filters-panel-chip-row">
<label class="advanced-filters-panel-chip" for="ctx-girls">
<span class="tw:inline-flex tw:items-center tw:gap-2">
<input class="form-check-input tw:m-0" type="checkbox" id="ctx-girls" value="girls">
<span class="tw:text-sm tw:text-neutral-700">Girls</span>
</span>
<i class="fa-light fa-venus tw:text-neutral-400" aria-hidden="true"></i>
</label>
<label class="advanced-filters-panel-chip" for="ctx-boys">
<span class="tw:inline-flex tw:items-center tw:gap-2">
<input class="form-check-input tw:m-0" type="checkbox" id="ctx-boys" value="boys">
<span class="tw:text-sm tw:text-neutral-700">Boys</span>
</span>
<i class="fa-light fa-mars tw:text-neutral-400" aria-hidden="true"></i>
</label>
<label class="advanced-filters-panel-chip" for="ctx-mixed">
<span class="tw:inline-flex tw:items-center tw:gap-2">
<input class="form-check-input tw:m-0" type="checkbox" id="ctx-mixed" value="mixed" checked>
<span class="tw:text-sm tw:text-neutral-700">Mixed</span>
</span>
<i class="fa-light fa-venus-mars tw:text-neutral-400" aria-hidden="true"></i>
</label>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="tab-panel" role="tabpanel" data-tabs-target="panel">
<!-- Intro callout -->
<div class="callout">
<p class="tw:mb-1 tw:text-sm tw:font-mono">
<strong>PATTERN: filter-rail</strong><br>
<strong>COMPOSES:</strong> form-check, form-select<br>
<strong>STATES:</strong> Expanded (default) · Expanded with collapse toggle (map mode) · Collapsed button
</p>
<p class="tw:mb-0 tw:text-sm">
280px-wide left-aside filter panel for ApplicaaOne results pages. Quick-toggle
checkboxes, gender section, and Ofsted rating selects. In map mode a collapse
chevron appears in the header. When collapsed the entire rail shrinks to a
44×44 sky-blue icon button with a red active-count badge.
</p>
</div>
<!-- 1. Default expanded rail -->
<div class="tw:border-t tw:pt-6">
<h2 class="h4 tw:mb-4">1. Default expanded rail</h2>
<div class="callout tw:mb-4">
<p class="tw:mb-0 tw:text-sm">
<strong>Expanded (default):</strong> Full content — header with title + active-count badge
and "Clear All" link, four quick-toggle checkboxes, Gender section, and Ofsted Rating section
with four dimension selects, warning notices, and a legacy (before-2024) select.
</p>
</div>
<aside class="filter-rail">
<!-- Header -->
<div class="filter-rail-header">
<span class="filter-rail-title">
<span class="filter-rail-title-text">Advanced Filter</span>
<span class="filter-rail-count" aria-label="1 active filter">1</span>
</span>
<div class="filter-rail-header-actions">
<a class="filter-rail-clear" role="button">Clear All</a>
</div>
</div>
<!-- Quick toggles -->
<div class="filter-rail-quick">
<div class="form-check">
<input class="form-check-input" type="checkbox" id="rail-eligible-1">
<label class="form-check-label" for="rail-eligible-1">
Eligible course only
<i class="fa-light fa-circle-info tw:text-neutral-400 tw:ml-1" aria-hidden="true"></i>
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" id="rail-quick-apply-1" checked>
<label class="form-check-label" for="rail-quick-apply-1">Quick Apply only</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" id="rail-online-1">
<label class="form-check-label" for="rail-online-1">Exclude online providers</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" id="rail-nursery-1">
<label class="form-check-label" for="rail-nursery-1">Primary has nursery</label>
</div>
</div>
<!-- Gender section -->
<div class="filter-rail-section">
<div class="filter-rail-section-header">
<span class="filter-rail-section-title">Gender of Provider</span>
<span class="filter-rail-section-toggle" aria-hidden="true">
<i class="fa-light fa-chevron-down" aria-hidden="true"></i>
</span>
</div>
<div class="filter-rail-section-checkboxes">
<div class="form-check">
<input class="form-check-input" type="checkbox" id="rail-girls-1">
<label class="form-check-label" for="rail-girls-1">Girls</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" id="rail-boys-1">
<label class="form-check-label" for="rail-boys-1">Boys</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" id="rail-mixed-1">
<label class="form-check-label" for="rail-mixed-1">Mixed</label>
</div>
</div>
</div>
<!-- Ofsted Rating section -->
<div class="filter-rail-section">
<div class="filter-rail-section-header">
<span class="filter-rail-section-title">Ofsted Rating</span>
<span class="filter-rail-section-toggle" aria-hidden="true">
<i class="fa-light fa-chevron-up" aria-hidden="true"></i>
</span>
</div>
<p class="filter-rail-warning">
(Applies to school inspected <span class="tw:not-italic tw:font-bold">AFTER</span> September 2024):
</p>
<div class="filter-rail-rating-list">
<div class="filter-rail-rating-row">
<div class="filter-rail-rating-label">1. Quality of Education :</div>
<select class="form-select form-select-sm" aria-label="Quality of Education rating">
<option value="">Select rating</option>
<option value="o">Outstanding</option>
<option value="g">Good</option>
<option value="ri">Requires Improvement</option>
<option value="in">Inadequate</option>
</select>
</div>
<div class="filter-rail-rating-row">
<div class="filter-rail-rating-label">2. Behaviour & Attitudes :</div>
<select class="form-select form-select-sm" aria-label="Behaviour and Attitudes rating">
<option value="">Select rating</option>
<option value="o">Outstanding</option>
<option value="g">Good</option>
<option value="ri">Requires Improvement</option>
<option value="in">Inadequate</option>
</select>
</div>
<div class="filter-rail-rating-row">
<div class="filter-rail-rating-label">3. Personal Development :</div>
<select class="form-select form-select-sm" aria-label="Personal Development rating">
<option value="">Select rating</option>
<option value="o">Outstanding</option>
<option value="g">Good</option>
<option value="ri">Requires Improvement</option>
<option value="in">Inadequate</option>
</select>
</div>
<div class="filter-rail-rating-row">
<div class="filter-rail-rating-label">4. Leadership & Management :</div>
<select class="form-select form-select-sm" aria-label="Leadership and Management rating">
<option value="">Select rating</option>
<option value="o">Outstanding</option>
<option value="g">Good</option>
<option value="ri">Requires Improvement</option>
<option value="in">Inadequate</option>
</select>
</div>
</div>
<p class="filter-rail-warning tw:mt-2">
(Applies to school inspected <span class="tw:not-italic tw:font-bold">BEFORE</span> September 2024):
</p>
<select class="form-select form-select-sm" aria-label="Legacy Ofsted overall rating">
<option value="">Select rating</option>
<option value="o">Outstanding</option>
<option value="g">Good</option>
<option value="ri">Requires Improvement</option>
<option value="in">Inadequate</option>
</select>
</div>
</aside>
<div class="tw:mt-4 tw:text-sm tw:text-gray-600">
<code><aside class="filter-rail">...</aside></code>
</div>
</div>
<!-- 2. Map mode (with collapse chevron) -->
<div class="tw:border-t tw:pt-6">
<h2 class="h4 tw:mb-4">2. Map mode — with collapse toggle</h2>
<div class="callout tw:mb-4">
<p class="tw:mb-0 tw:text-sm">
<strong>Map mode:</strong> When the results list is replaced by a map, a
collapse chevron button appears in the header alongside the "Clear All" link.
Clicking it switches the rail to the collapsed button state.
</p>
</div>
<aside class="filter-rail">
<div class="filter-rail-header">
<span class="filter-rail-title">
<span class="filter-rail-title-text">Advanced Filter</span>
<span class="filter-rail-count" aria-label="2 active filters">2</span>
</span>
<div class="filter-rail-header-actions">
<a class="filter-rail-clear" role="button">Clear All</a>
<button class="filter-rail-toggle" type="button" aria-label="Collapse filter rail">
<i class="fa-light fa-chevrons-left" aria-hidden="true"></i>
</button>
</div>
</div>
<div class="filter-rail-quick">
<div class="form-check">
<input class="form-check-input" type="checkbox" id="rail-map-eligible" checked>
<label class="form-check-label" for="rail-map-eligible">Eligible course only</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" id="rail-map-quick" checked>
<label class="form-check-label" for="rail-map-quick">Quick Apply only</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" id="rail-map-online">
<label class="form-check-label" for="rail-map-online">Exclude online providers</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" id="rail-map-nursery">
<label class="form-check-label" for="rail-map-nursery">Primary has nursery</label>
</div>
</div>
<div class="filter-rail-section">
<div class="filter-rail-section-header">
<span class="filter-rail-section-title">Gender of Provider</span>
<span class="filter-rail-section-toggle" aria-hidden="true">
<i class="fa-light fa-chevron-down" aria-hidden="true"></i>
</span>
</div>
</div>
<div class="filter-rail-section">
<div class="filter-rail-section-header">
<span class="filter-rail-section-title">Ofsted Rating</span>
<span class="filter-rail-section-toggle" aria-hidden="true">
<i class="fa-light fa-chevron-down" aria-hidden="true"></i>
</span>
</div>
</div>
</aside>
<div class="tw:mt-4 tw:text-sm tw:text-gray-600">
<code><!-- Add filter-rail-toggle button in header-actions for map mode --></code>
</div>
</div>
<!-- 3. Collapsed button state -->
<div class="tw:border-t tw:pt-6">
<h2 class="h4 tw:mb-4">3. Collapsed button state</h2>
<div class="callout tw:mb-4">
<p class="tw:mb-0 tw:text-sm">
<strong>Collapsed:</strong> The entire rail collapses to a 44×44 sky-blue icon
button with a sliders icon. A red 16×16 badge in the top-right corner shows
the active filter count. Clicking restores the expanded rail.
</p>
</div>
<div class="tw:flex tw:items-start tw:gap-4">
<!-- Collapsed with 3 active filters -->
<button class="filter-rail-collapsed-btn" type="button" aria-label="Show filter rail (3 active filters)">
<i class="fa-light fa-sliders" aria-hidden="true"></i>
<span class="filter-rail-collapsed-badge" aria-hidden="true">3</span>
</button>
<!-- Collapsed with 1 active filter -->
<button class="filter-rail-collapsed-btn" type="button" aria-label="Show filter rail (1 active filter)">
<i class="fa-light fa-sliders" aria-hidden="true"></i>
<span class="filter-rail-collapsed-badge" aria-hidden="true">1</span>
</button>
</div>
<div class="tw:mt-4 tw:text-sm tw:text-gray-600">
<code><button class="filter-rail-collapsed-btn" type="button" aria-label="Show filter rail"><br>
  <i class="fa-light fa-sliders" aria-hidden="true"></i><br>
  <span class="filter-rail-collapsed-badge" aria-hidden="true">3</span><br>
</button></code>
</div>
</div>
<!-- 4. In-context demo -->
<div class="tw:border-t tw:pt-6">
<h2 class="h4 tw:mb-4">4. In-context: filter rail beside results</h2>
<div class="callout tw:mb-4">
<p class="tw:mb-0 tw:text-sm">
<strong>In context:</strong> The rail sits in a flex row alongside the results
column. Use <code>tw:flex tw:items-start tw:gap-5</code> on the parent to
position the 280px rail and the fluid results column side by side.
</p>
</div>
<div class="tw:flex tw:items-start tw:gap-5">
<!-- Filter rail -->
<aside class="filter-rail tw:border tw:border-line-card tw:rounded-md">
<div class="filter-rail-header">
<span class="filter-rail-title">
<span class="filter-rail-title-text">Advanced Filter</span>
<span class="filter-rail-count" aria-label="1 active filter">1</span>
</span>
<div class="filter-rail-header-actions">
<a class="filter-rail-clear" role="button">Clear All</a>
</div>
</div>
<div class="filter-rail-quick">
<div class="form-check">
<input class="form-check-input" type="checkbox" id="ctx-quick" checked>
<label class="form-check-label" for="ctx-quick">Quick Apply only</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" id="ctx-online">
<label class="form-check-label" for="ctx-online">Exclude online providers</label>
</div>
</div>
<div class="filter-rail-section">
<div class="filter-rail-section-header">
<span class="filter-rail-section-title">Gender of Provider</span>
<span class="filter-rail-section-toggle" aria-hidden="true">
<i class="fa-light fa-chevron-down" aria-hidden="true"></i>
</span>
</div>
<div class="filter-rail-section-checkboxes">
<div class="form-check">
<input class="form-check-input" type="checkbox" id="ctx-girls">
<label class="form-check-label" for="ctx-girls">Girls</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" id="ctx-boys">
<label class="form-check-label" for="ctx-boys">Boys</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" id="ctx-mixed">
<label class="form-check-label" for="ctx-mixed">Mixed</label>
</div>
</div>
</div>
</aside>
<!-- Results column (placeholder cards) -->
<div class="tw:flex-1 tw:flex tw:flex-col tw:gap-3">
<div class="card">
<div class="card-body">
<p class="tw:font-semibold tw:text-sm tw:mb-1">Greenford High School</p>
<p class="tw:text-sm text-muted tw:mb-0">Greenford, UB6 · 2.4 km away</p>
</div>
</div>
<div class="card">
<div class="card-body">
<p class="tw:font-semibold tw:text-sm tw:mb-1">Ealing Fields High School</p>
<p class="tw:text-sm text-muted tw:mb-0">Ealing, W13 · 3.8 km away</p>
</div>
</div>
<div class="card">
<div class="card-body">
<p class="tw:font-semibold tw:text-sm tw:mb-1">Villiers High School</p>
<p class="tw:text-sm text-muted tw:mb-0">Southall, UB1 · 4.1 km away</p>
</div>
</div>
</div>
</div>
<div class="tw:mt-4 tw:text-sm tw:text-gray-600">
<code><div class="tw:flex tw:items-start tw:gap-5"><br>
  <aside class="filter-rail">...</aside><br>
  <div class="tw:flex-1">results...</div><br>
</div></code>
</div>
</div>
</div>
</div>
</div>
</div>
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
<div class="tw:p-6 tw:max-w-7xl tw:mx-auto tw:space-y-8">
<div class="callout">
<p class="tw:mb-1 tw:text-sm tw:font-mono">
<strong>FILTERS:</strong> Consumer results-filtering surfaces<br>
<strong>VARIANTS:</strong> Advanced panel | Rail
</p>
<p class="tw:mb-0 tw:text-sm">
Consolidated entry for the two filtering patterns. Advanced panel is the collapsible
zone below the hero pill; Rail is the 280px left-aside filter panel for results pages.
</p>
</div>
<div data-controller="tabs">
<div class="tabs" role="tablist">
<button class="tab" role="tab" aria-selected="true" data-tabs-target="tab" data-tabs-anchor="advanced-panel" data-action="click->tabs#select keydown->tabs#keydown" type="button">Advanced panel</button>
<button class="tab" role="tab" aria-selected="false" data-tabs-target="tab" data-tabs-anchor="rail" data-action="click->tabs#select keydown->tabs#keydown" type="button">Rail</button>
</div>
<div class="tab-content">
<div class="tab-panel" role="tabpanel" data-tabs-target="panel">
<div class="callout">
<p class="tw:mb-1 tw:text-sm tw:font-mono">
<strong>PATTERN:</strong> Advanced Filters Panel (consumer-only)<br>
<strong>COMPOSES:</strong> form-check + form-select
</p>
<p class="tw:mb-0 tw:text-sm">
Collapsible filter zone that drops below the Hero Search pill.
White card with sky-blue border. Sections: quick-toggle checkboxes,
Gender chip-buttons (3-col grid), Ofsted rating selects (2-col grid with orange warnings).
</p>
</div>
<!-- ── Full panel demo ───────────────────────────────────────── -->
<div class="tw:border-t tw:pt-6">
<h2 class="h4 tw:mb-4">Full panel — all sections visible</h2>
<div class="callout tw:mb-4">
<p class="tw:mb-0 tw:text-sm">
<strong>Demo:</strong> Panel with 3 active filters indicated by the count badge.
Quick Apply is pre-checked. Gender + Ofsted sections fully rendered.
</p>
</div>
<div class="advanced-filters-panel">
<!-- Header row -->
<div class="advanced-filters-panel-header">
<!-- Title + count badge -->
<div class="advanced-filters-panel-title">
<span class="advanced-filters-panel-title-text">Advanced Filter</span>
<span class="advanced-filters-panel-count" aria-label="3 active filters">3</span>
</div>
<!-- Quick-toggle checkboxes -->
<div class="advanced-filters-panel-quick">
<div class="form-check form-check-inline">
<input class="form-check-input" type="checkbox" id="adv-eligible" value="1">
<label class="form-check-label" for="adv-eligible">
Eligible course only
<i class="fa-light fa-circle-info tw:text-neutral-400 tw:ml-1" aria-label="What is eligible course?" ></i>
</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="checkbox" id="adv-quick-apply" value="1" checked>
<label class="form-check-label" for="adv-quick-apply">Quick Apply only</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="checkbox" id="adv-nursery" value="1">
<label class="form-check-label" for="adv-nursery">Primary has nursery</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="checkbox" id="adv-no-online" value="1">
<label class="form-check-label" for="adv-no-online">Exclude online providers</label>
</div>
</div>
</div>
<!-- Gender of school section -->
<div class="advanced-filters-panel-section">
<div class="advanced-filters-panel-section-label">Gender of school :</div>
<div class="advanced-filters-panel-chip-row">
<!-- Girls -->
<label class="advanced-filters-panel-chip" for="gender-girls">
<span class="tw:inline-flex tw:items-center tw:gap-2">
<input class="form-check-input tw:m-0" type="checkbox" id="gender-girls" value="girls">
<span class="tw:text-sm tw:text-neutral-700">Girls</span>
</span>
<i class="fa-light fa-venus tw:text-neutral-400" aria-hidden="true"></i>
</label>
<!-- Boys -->
<label class="advanced-filters-panel-chip" for="gender-boys">
<span class="tw:inline-flex tw:items-center tw:gap-2">
<input class="form-check-input tw:m-0" type="checkbox" id="gender-boys" value="boys">
<span class="tw:text-sm tw:text-neutral-700">Boys</span>
</span>
<i class="fa-light fa-mars tw:text-neutral-400" aria-hidden="true"></i>
</label>
<!-- Mixed -->
<label class="advanced-filters-panel-chip" for="gender-mixed">
<span class="tw:inline-flex tw:items-center tw:gap-2">
<input class="form-check-input tw:m-0" type="checkbox" id="gender-mixed" value="mixed" checked>
<span class="tw:text-sm tw:text-neutral-700">Mixed</span>
</span>
<i class="fa-light fa-venus-mars tw:text-neutral-400" aria-hidden="true"></i>
</label>
</div>
</div>
<!-- Ofsted Rating section -->
<div class="advanced-filters-panel-section">
<div class="advanced-filters-panel-section-label">Ofsted Rating :</div>
<p class="advanced-filters-panel-warning">
(Applies to school inspected <span class="tw:not-italic">AFTER</span> September 2024):
</p>
<div class="advanced-filters-panel-rating-grid">
<!-- 1. Quality of Education -->
<div>
<div class="advanced-filters-panel-rating-label">1. Quality of Education :</div>
<select class="form-select form-select-sm" id="ofsted-quality" aria-label="Quality of Education rating">
<option value="">Select rating</option>
<option value="o">Outstanding</option>
<option value="g">Good</option>
<option value="r">Requires Improvement</option>
<option value="i">Inadequate</option>
</select>
</div>
<!-- 2. Behaviour & Attitudes -->
<div>
<div class="advanced-filters-panel-rating-label">2. Behaviour & Attitudes :</div>
<select class="form-select form-select-sm" id="ofsted-behaviour" aria-label="Behaviour and Attitudes rating">
<option value="">Select rating</option>
<option value="o">Outstanding</option>
<option value="g" selected>Good</option>
<option value="r">Requires Improvement</option>
<option value="i">Inadequate</option>
</select>
</div>
<!-- 3. Personal Development -->
<div>
<div class="advanced-filters-panel-rating-label">3. Personal Development :</div>
<select class="form-select form-select-sm" id="ofsted-personal" aria-label="Personal Development rating">
<option value="">Select rating</option>
<option value="o">Outstanding</option>
<option value="g">Good</option>
<option value="r">Requires Improvement</option>
<option value="i">Inadequate</option>
</select>
</div>
<!-- 4. Leadership & Management -->
<div>
<div class="advanced-filters-panel-rating-label">4. Leadership & Management :</div>
<select class="form-select form-select-sm" id="ofsted-leadership" aria-label="Leadership and Management rating">
<option value="">Select rating</option>
<option value="o">Outstanding</option>
<option value="g">Good</option>
<option value="r">Requires Improvement</option>
<option value="i">Inadequate</option>
</select>
</div>
</div>
<!-- Before Sept 2024 warning + single select -->
<p class="advanced-filters-panel-warning advanced-filters-panel-warning-below">
(Applies to school inspected <span class="tw:not-italic">BEFORE</span> September 2024):
</p>
<div class="tw:mt-2 tw:w-1/2">
<select class="form-select form-select-sm" id="ofsted-legacy" aria-label="Legacy Ofsted overall rating">
<option value="">Select rating</option>
<option value="o">Outstanding</option>
<option value="g">Good</option>
<option value="r">Requires Improvement</option>
<option value="i">Inadequate</option>
</select>
</div>
</div>
</div>
<div class="tw:mt-4 tw:text-sm tw:text-gray-600">
<code><div class="advanced-filters-panel"><div class="advanced-filters-panel-header">...</div>...</div></code>
</div>
</div>
<!-- ── In context below Hero Search ─────────────────────────── -->
<div class="tw:border-t tw:pt-6">
<h2 class="h4 tw:mb-4">In context — below Hero Search</h2>
<div class="callout tw:mb-4">
<p class="tw:mb-0 tw:text-sm">
The panel drops 16px below the hero pill. Together they sit inside the consumer hero wash.
</p>
</div>
<div class="consumer-hero-wash tw:py-10 tw:px-6 tw:rounded-lg">
<!-- Hero search pill (abbreviated, Providers filled) -->
<div class="hero-search">
<div class="hero-search-pill">
<div class="hero-search-field tw:flex-[1.4]">
<span class="hero-search-field-label">Type of school</span>
<div class="hero-search-field-value-row">
<div class="hero-search-field-tags">
<span class="hero-search-field-tag">
Sixth Form & Colleges
<span class="hero-search-field-tag-dismiss" aria-hidden="true">×</span>
</span>
</div>
</div>
</div>
<div class="hero-search-field tw:flex-[2]">
<span class="hero-search-field-label">What to study</span>
<div class="hero-search-field-value-row">
<span class="hero-search-field-value">Mathematics A-Level</span>
</div>
</div>
<div class="hero-search-field tw:flex-[1.3]">
<span class="hero-search-field-label">Near to</span>
<div class="hero-search-field-value-row">
<span class="hero-search-field-value">KA30 8LD</span>
</div>
</div>
<button type="button" class="hero-search-submit" aria-label="Search providers">
<i class="fa-light fa-magnifying-glass" class="tw:text-lg" aria-hidden="true"></i>
</button>
</div>
<div class="hero-search-meta">
<a href="#" class="hero-search-toggle" aria-label="Filters open, 2 active">
<i class="fa-light fa-sliders" aria-hidden="true"></i>
Advanced Filters
<span class="hero-search-toggle-badge" aria-hidden="true">2</span>
<i class="fa-light fa-chevron-up tw:text-xs" aria-hidden="true"></i>
</a>
<span class="hero-search-results">
<i class="fa-light fa-magnifying-glass" aria-hidden="true"></i>
63 potential results
</span>
</div>
</div>
<!-- Advanced filters panel (16px below) -->
<div class="tw:mt-4">
<div class="advanced-filters-panel">
<div class="advanced-filters-panel-header">
<div class="advanced-filters-panel-title">
<span class="advanced-filters-panel-title-text">Advanced Filter</span>
<span class="advanced-filters-panel-count">2</span>
</div>
<div class="advanced-filters-panel-quick">
<div class="form-check form-check-inline">
<input class="form-check-input" type="checkbox" id="ctx-quick-apply" value="1" checked>
<label class="form-check-label" for="ctx-quick-apply">Quick Apply only</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="checkbox" id="ctx-no-online" value="1">
<label class="form-check-label" for="ctx-no-online">Exclude online providers</label>
</div>
</div>
</div>
<div class="advanced-filters-panel-section">
<div class="advanced-filters-panel-section-label">Gender of school :</div>
<div class="advanced-filters-panel-chip-row">
<label class="advanced-filters-panel-chip" for="ctx-girls">
<span class="tw:inline-flex tw:items-center tw:gap-2">
<input class="form-check-input tw:m-0" type="checkbox" id="ctx-girls" value="girls">
<span class="tw:text-sm tw:text-neutral-700">Girls</span>
</span>
<i class="fa-light fa-venus tw:text-neutral-400" aria-hidden="true"></i>
</label>
<label class="advanced-filters-panel-chip" for="ctx-boys">
<span class="tw:inline-flex tw:items-center tw:gap-2">
<input class="form-check-input tw:m-0" type="checkbox" id="ctx-boys" value="boys">
<span class="tw:text-sm tw:text-neutral-700">Boys</span>
</span>
<i class="fa-light fa-mars tw:text-neutral-400" aria-hidden="true"></i>
</label>
<label class="advanced-filters-panel-chip" for="ctx-mixed">
<span class="tw:inline-flex tw:items-center tw:gap-2">
<input class="form-check-input tw:m-0" type="checkbox" id="ctx-mixed" value="mixed" checked>
<span class="tw:text-sm tw:text-neutral-700">Mixed</span>
</span>
<i class="fa-light fa-venus-mars tw:text-neutral-400" aria-hidden="true"></i>
</label>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="tab-panel" role="tabpanel" data-tabs-target="panel">
<!-- Intro callout -->
<div class="callout">
<p class="tw:mb-1 tw:text-sm tw:font-mono">
<strong>PATTERN: filter-rail</strong><br>
<strong>COMPOSES:</strong> form-check, form-select<br>
<strong>STATES:</strong> Expanded (default) · Expanded with collapse toggle (map mode) · Collapsed button
</p>
<p class="tw:mb-0 tw:text-sm">
280px-wide left-aside filter panel for ApplicaaOne results pages. Quick-toggle
checkboxes, gender section, and Ofsted rating selects. In map mode a collapse
chevron appears in the header. When collapsed the entire rail shrinks to a
44×44 sky-blue icon button with a red active-count badge.
</p>
</div>
<!-- 1. Default expanded rail -->
<div class="tw:border-t tw:pt-6">
<h2 class="h4 tw:mb-4">1. Default expanded rail</h2>
<div class="callout tw:mb-4">
<p class="tw:mb-0 tw:text-sm">
<strong>Expanded (default):</strong> Full content — header with title + active-count badge
and "Clear All" link, four quick-toggle checkboxes, Gender section, and Ofsted Rating section
with four dimension selects, warning notices, and a legacy (before-2024) select.
</p>
</div>
<aside class="filter-rail">
<!-- Header -->
<div class="filter-rail-header">
<span class="filter-rail-title">
<span class="filter-rail-title-text">Advanced Filter</span>
<span class="filter-rail-count" aria-label="1 active filter">1</span>
</span>
<div class="filter-rail-header-actions">
<a class="filter-rail-clear" role="button">Clear All</a>
</div>
</div>
<!-- Quick toggles -->
<div class="filter-rail-quick">
<div class="form-check">
<input class="form-check-input" type="checkbox" id="rail-eligible-1">
<label class="form-check-label" for="rail-eligible-1">
Eligible course only
<i class="fa-light fa-circle-info tw:text-neutral-400 tw:ml-1" aria-hidden="true"></i>
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" id="rail-quick-apply-1" checked>
<label class="form-check-label" for="rail-quick-apply-1">Quick Apply only</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" id="rail-online-1">
<label class="form-check-label" for="rail-online-1">Exclude online providers</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" id="rail-nursery-1">
<label class="form-check-label" for="rail-nursery-1">Primary has nursery</label>
</div>
</div>
<!-- Gender section -->
<div class="filter-rail-section">
<div class="filter-rail-section-header">
<span class="filter-rail-section-title">Gender of Provider</span>
<span class="filter-rail-section-toggle" aria-hidden="true">
<i class="fa-light fa-chevron-down" aria-hidden="true"></i>
</span>
</div>
<div class="filter-rail-section-checkboxes">
<div class="form-check">
<input class="form-check-input" type="checkbox" id="rail-girls-1">
<label class="form-check-label" for="rail-girls-1">Girls</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" id="rail-boys-1">
<label class="form-check-label" for="rail-boys-1">Boys</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" id="rail-mixed-1">
<label class="form-check-label" for="rail-mixed-1">Mixed</label>
</div>
</div>
</div>
<!-- Ofsted Rating section -->
<div class="filter-rail-section">
<div class="filter-rail-section-header">
<span class="filter-rail-section-title">Ofsted Rating</span>
<span class="filter-rail-section-toggle" aria-hidden="true">
<i class="fa-light fa-chevron-up" aria-hidden="true"></i>
</span>
</div>
<p class="filter-rail-warning">
(Applies to school inspected <span class="tw:not-italic tw:font-bold">AFTER</span> September 2024):
</p>
<div class="filter-rail-rating-list">
<div class="filter-rail-rating-row">
<div class="filter-rail-rating-label">1. Quality of Education :</div>
<select class="form-select form-select-sm" aria-label="Quality of Education rating">
<option value="">Select rating</option>
<option value="o">Outstanding</option>
<option value="g">Good</option>
<option value="ri">Requires Improvement</option>
<option value="in">Inadequate</option>
</select>
</div>
<div class="filter-rail-rating-row">
<div class="filter-rail-rating-label">2. Behaviour & Attitudes :</div>
<select class="form-select form-select-sm" aria-label="Behaviour and Attitudes rating">
<option value="">Select rating</option>
<option value="o">Outstanding</option>
<option value="g">Good</option>
<option value="ri">Requires Improvement</option>
<option value="in">Inadequate</option>
</select>
</div>
<div class="filter-rail-rating-row">
<div class="filter-rail-rating-label">3. Personal Development :</div>
<select class="form-select form-select-sm" aria-label="Personal Development rating">
<option value="">Select rating</option>
<option value="o">Outstanding</option>
<option value="g">Good</option>
<option value="ri">Requires Improvement</option>
<option value="in">Inadequate</option>
</select>
</div>
<div class="filter-rail-rating-row">
<div class="filter-rail-rating-label">4. Leadership & Management :</div>
<select class="form-select form-select-sm" aria-label="Leadership and Management rating">
<option value="">Select rating</option>
<option value="o">Outstanding</option>
<option value="g">Good</option>
<option value="ri">Requires Improvement</option>
<option value="in">Inadequate</option>
</select>
</div>
</div>
<p class="filter-rail-warning tw:mt-2">
(Applies to school inspected <span class="tw:not-italic tw:font-bold">BEFORE</span> September 2024):
</p>
<select class="form-select form-select-sm" aria-label="Legacy Ofsted overall rating">
<option value="">Select rating</option>
<option value="o">Outstanding</option>
<option value="g">Good</option>
<option value="ri">Requires Improvement</option>
<option value="in">Inadequate</option>
</select>
</div>
</aside>
<div class="tw:mt-4 tw:text-sm tw:text-gray-600">
<code><aside class="filter-rail">...</aside></code>
</div>
</div>
<!-- 2. Map mode (with collapse chevron) -->
<div class="tw:border-t tw:pt-6">
<h2 class="h4 tw:mb-4">2. Map mode — with collapse toggle</h2>
<div class="callout tw:mb-4">
<p class="tw:mb-0 tw:text-sm">
<strong>Map mode:</strong> When the results list is replaced by a map, a
collapse chevron button appears in the header alongside the "Clear All" link.
Clicking it switches the rail to the collapsed button state.
</p>
</div>
<aside class="filter-rail">
<div class="filter-rail-header">
<span class="filter-rail-title">
<span class="filter-rail-title-text">Advanced Filter</span>
<span class="filter-rail-count" aria-label="2 active filters">2</span>
</span>
<div class="filter-rail-header-actions">
<a class="filter-rail-clear" role="button">Clear All</a>
<button class="filter-rail-toggle" type="button" aria-label="Collapse filter rail">
<i class="fa-light fa-chevrons-left" aria-hidden="true"></i>
</button>
</div>
</div>
<div class="filter-rail-quick">
<div class="form-check">
<input class="form-check-input" type="checkbox" id="rail-map-eligible" checked>
<label class="form-check-label" for="rail-map-eligible">Eligible course only</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" id="rail-map-quick" checked>
<label class="form-check-label" for="rail-map-quick">Quick Apply only</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" id="rail-map-online">
<label class="form-check-label" for="rail-map-online">Exclude online providers</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" id="rail-map-nursery">
<label class="form-check-label" for="rail-map-nursery">Primary has nursery</label>
</div>
</div>
<div class="filter-rail-section">
<div class="filter-rail-section-header">
<span class="filter-rail-section-title">Gender of Provider</span>
<span class="filter-rail-section-toggle" aria-hidden="true">
<i class="fa-light fa-chevron-down" aria-hidden="true"></i>
</span>
</div>
</div>
<div class="filter-rail-section">
<div class="filter-rail-section-header">
<span class="filter-rail-section-title">Ofsted Rating</span>
<span class="filter-rail-section-toggle" aria-hidden="true">
<i class="fa-light fa-chevron-down" aria-hidden="true"></i>
</span>
</div>
</div>
</aside>
<div class="tw:mt-4 tw:text-sm tw:text-gray-600">
<code><!-- Add filter-rail-toggle button in header-actions for map mode --></code>
</div>
</div>
<!-- 3. Collapsed button state -->
<div class="tw:border-t tw:pt-6">
<h2 class="h4 tw:mb-4">3. Collapsed button state</h2>
<div class="callout tw:mb-4">
<p class="tw:mb-0 tw:text-sm">
<strong>Collapsed:</strong> The entire rail collapses to a 44×44 sky-blue icon
button with a sliders icon. A red 16×16 badge in the top-right corner shows
the active filter count. Clicking restores the expanded rail.
</p>
</div>
<div class="tw:flex tw:items-start tw:gap-4">
<!-- Collapsed with 3 active filters -->
<button class="filter-rail-collapsed-btn" type="button" aria-label="Show filter rail (3 active filters)">
<i class="fa-light fa-sliders" aria-hidden="true"></i>
<span class="filter-rail-collapsed-badge" aria-hidden="true">3</span>
</button>
<!-- Collapsed with 1 active filter -->
<button class="filter-rail-collapsed-btn" type="button" aria-label="Show filter rail (1 active filter)">
<i class="fa-light fa-sliders" aria-hidden="true"></i>
<span class="filter-rail-collapsed-badge" aria-hidden="true">1</span>
</button>
</div>
<div class="tw:mt-4 tw:text-sm tw:text-gray-600">
<code><button class="filter-rail-collapsed-btn" type="button" aria-label="Show filter rail"><br>
  <i class="fa-light fa-sliders" aria-hidden="true"></i><br>
  <span class="filter-rail-collapsed-badge" aria-hidden="true">3</span><br>
</button></code>
</div>
</div>
<!-- 4. In-context demo -->
<div class="tw:border-t tw:pt-6">
<h2 class="h4 tw:mb-4">4. In-context: filter rail beside results</h2>
<div class="callout tw:mb-4">
<p class="tw:mb-0 tw:text-sm">
<strong>In context:</strong> The rail sits in a flex row alongside the results
column. Use <code>tw:flex tw:items-start tw:gap-5</code> on the parent to
position the 280px rail and the fluid results column side by side.
</p>
</div>
<div class="tw:flex tw:items-start tw:gap-5">
<!-- Filter rail -->
<aside class="filter-rail tw:border tw:border-line-card tw:rounded-md">
<div class="filter-rail-header">
<span class="filter-rail-title">
<span class="filter-rail-title-text">Advanced Filter</span>
<span class="filter-rail-count" aria-label="1 active filter">1</span>
</span>
<div class="filter-rail-header-actions">
<a class="filter-rail-clear" role="button">Clear All</a>
</div>
</div>
<div class="filter-rail-quick">
<div class="form-check">
<input class="form-check-input" type="checkbox" id="ctx-quick" checked>
<label class="form-check-label" for="ctx-quick">Quick Apply only</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" id="ctx-online">
<label class="form-check-label" for="ctx-online">Exclude online providers</label>
</div>
</div>
<div class="filter-rail-section">
<div class="filter-rail-section-header">
<span class="filter-rail-section-title">Gender of Provider</span>
<span class="filter-rail-section-toggle" aria-hidden="true">
<i class="fa-light fa-chevron-down" aria-hidden="true"></i>
</span>
</div>
<div class="filter-rail-section-checkboxes">
<div class="form-check">
<input class="form-check-input" type="checkbox" id="ctx-girls">
<label class="form-check-label" for="ctx-girls">Girls</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" id="ctx-boys">
<label class="form-check-label" for="ctx-boys">Boys</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" id="ctx-mixed">
<label class="form-check-label" for="ctx-mixed">Mixed</label>
</div>
</div>
</div>
</aside>
<!-- Results column (placeholder cards) -->
<div class="tw:flex-1 tw:flex tw:flex-col tw:gap-3">
<div class="card">
<div class="card-body">
<p class="tw:font-semibold tw:text-sm tw:mb-1">Greenford High School</p>
<p class="tw:text-sm text-muted tw:mb-0">Greenford, UB6 · 2.4 km away</p>
</div>
</div>
<div class="card">
<div class="card-body">
<p class="tw:font-semibold tw:text-sm tw:mb-1">Ealing Fields High School</p>
<p class="tw:text-sm text-muted tw:mb-0">Ealing, W13 · 3.8 km away</p>
</div>
</div>
<div class="card">
<div class="card-body">
<p class="tw:font-semibold tw:text-sm tw:mb-1">Villiers High School</p>
<p class="tw:text-sm text-muted tw:mb-0">Southall, UB1 · 4.1 km away</p>
</div>
</div>
</div>
</div>
<div class="tw:mt-4 tw:text-sm tw:text-gray-600">
<code><div class="tw:flex tw:items-start tw:gap-5"><br>
  <aside class="filter-rail">...</aside><br>
  <div class="tw:flex-1">results...</div><br>
</div></code>
</div>
</div>
</div>
</div>
</div>
</div>