# ATO directory card — layout C (18 Nov 2026, MT approved 22:22 SAST)

The generator had **no directory card** before 18 Nov (it only builds school pages). This folder adds one, separate
from the school pages:

| File | What |
|---|---|
| `../directory_card.py` | `card_model()` decides everything (state, star, count, Tap to review link); `render_card()`, `render_list()`, `write_preview()`; CLI for a preview page |
| `ato-card-c.j2` | The card markup (draws only) |
| `ato-card-c.css` | Card chrome (live `.c.wx`), locked star rules (`b18669e96`), Option 3 layout C rules |
| `../tests/test_card_c_and_staff_18nov.py` | Card tests (all 5 states, glass/flat, no tick, no `(0)`, Tap to review targets, no nested links, escaping, all 277 into a temp folder) |

Input: one generator school file (`data/ato/*.json`, or `_from_master/*.json` from the master list), with the server's
rating summary in `rating` (same object the school page uses). Viewer: `{"kind": "guest"}` or
`{"kind": "member", "role": "owner"|"staff"|..., "school_slug": "..."}`.

Preview only (nothing is published):

```
python3 directory_card.py --master ../data-master/ato-master-277.json --out /tmp/ato-dir --today 2026-11-18
```

The live directory page must include `ato-card-c.css` (plus the site's theme tokens and fonts) and render one card
per school from D1 (DIR-1). Rules: `rules/ATO-RULES-18nov-v2.md`, "Directory card — FINAL layout C".
