# ATO page generator: design audit, 19 Nov 2026 (SAST)

**Source:** `ato-generator/` at `codex/14-master-rules-db` · `afc8b26` · 19 Nov 2026 17:59 SAST · Moahmed T maghlawy. This is the generator with today's date. Pages were rendered with `python3 generator.py`, served with `site/ato-v6/v6.css` and `/ato/_shared/*`, and checked at 390 / 820 / 1440 in day and night for all three example schools. Result: 0 JS errors, 0 horizontal overflow, 112 tests passing.

**Measured against:** the locked Option A (`locked/ato-option-a-v2-13nov`, `d5a1a87`, `LOCKED-13NOV.md`) and the design rules.

## Changed on this branch (Option A locks this generator was missing)
1. **The score shows once.** The small "★ 4.3 (9)" row under the name is gone. The hero already shows the score beside the pyramid, and the line under it now reads "from 9 reviews" instead of "4.3 from 9 reviews".
2. **The facts line counts certificates and bases only.** The review total already appears once above it.
3. **Clear waiting states.** "2 of 3 reviews needed for a rating", or "No reviews yet" when there are none. When there are enough reviews but the server hasn't shown the rating yet: "The rating appears once 3 reviewers have held their accounts for 7 days". The rating card says the same instead of showing dashes.
4. **The rating card stops repeating the hero.** No second score, review total or certificate count. "Written reviews" and "Rated 4.0+" sit beside the 5-to-1 bars.
5. **Contact row in the top card below 1024 px.** Call / Email / Website, three equal centred slots. Missing values are disabled, never links. From 1024 px the row stays beside About, as locked.
6. **Courses in aligned columns:** 1 on phones, 2 from 700 px, 3 from 1024 px.
7. **Long names over 40 characters step down** to 32/36 px, or 40/44 px from 700 px.
8. **Phone hero number** fills the row beside the pyramid (up to 147 px). 120 px on iPad.
9. **Small grey text** moves from `--tx3` (about 2.5:1 on Pearl) to `--tx2` (about 5:1).
10. **The sign-in gate's "Sign in free"** is now ink on the page colour. Before, the primary pill matched the card on Midnight.

Tests were updated to the Option A wording. Rule coverage is the same: the counts come from the server summary, the server's `shown` flag and minimum are respected, contacts never become links, and nothing is invented for a school with no reviews. `test_name_rating_row_stars_then_number` was replaced by `test_score_shows_once_in_the_hero`.

## Needs MT's call (not changed)
- **Top bar (ATO-20, `/ato/_shared/topbar.js`).** The blue "GA" logo on Midnight/black is about 2:1 contrast. go-around-design PR #19 has the one-bar version. Clock in or out?
- **Official replies.** Option A shows own-school replies only (DECISIONS-MASTER §4). This generator shows other verified ATOs' replies on verified pages. Which rule stands?
- **Unclaimed schools.** Option A puts a "Claim this page" step in the hero. This generator keeps Codex's small text link under Courses.
- **Desktop About.** The contact row is pinned to the bottom of the About column (`margin-top:auto` in `v6.css`), which leaves a tall empty gap next to a long Bases list. Option: let it follow the text.
- **The dash for a hidden rating** (2 reviews) reads like a grey bar at 56 px. Option: drop the big dash and keep only the waiting line.
