# ATO generator — locked 13 Nov 2026 (Africa/Johannesburg)

- **Latest locked Option A branch (v2):** `locked/ato-option-a-v2-13nov`, branched off `locked/ato-option-a-13nov` (`db98fd1`, PR #1 -> `preview/ato-agreed-v2-12nov`).
- **Previous Option A lock (v1):** `locked/ato-option-a-13nov` (`db98fd1`).

Wait for MT to confirm the themes before generating or publishing real ATO school pages.

## Option 1 (Primary locked design, updated 13 Nov 2026 night)

**Option A (Hero-first)** is the primary locked design. It lives in this folder: `ato-generator-v2-test/`.

Applied templates and styles:

- `generator.py`
- `shared/page.css`
- `shared/page.js`
- `template/ato.html.j2`
- `template/parts/about_contact.j2`
- `template/parts/courses.j2`
- `template/parts/hero.j2`
- `template/parts/review_form.j2`
- `template/parts/reviews.j2`

What Option A locks (base + 13 Nov night updates):

- Identification card is full width (`is-longname` scales names >40 chars cleanly at 32/36px on phone, 40/44px from 700px).
- Hero rating score sits once beside the star pyramid: on phone (<=819px) the big score fills the leftover row beside the star pyramid (fluid size, ~147px at 390px); on iPad (820–1023px) it steps up to 120px; on desktop (>=1024px) it stays 88px. Review count shows once as “from N reviews”. Certificates and bases are counted once in the hero facts line.
- Call / Email / Website contact row uses one centred borderless 3-slot rule (44px row height, max 148px per slot, 8px vertical spacing): rendered in the hero below 1024px and beside About from 1024px upward. Missing or rejected values render disabled (`opacity: .38`), never links.
- An unclaimed school gets a claim step in the hero (“Is this your school?” / “Claim this page”).
- Courses grid uses 1 column below 700px, 2 columns from 700px, 3 columns from 1024px.
- Write a review keeps category names + wrapped descriptions on the left with 22×44 tap-target stars on the right (`member/04` layout), Overall number stacked above its stars, and a live 22px Clash Display `tabular-nums` score (`4.0`, `–` when unrated) to the right of every category row.
- Stars-only rule: members can rate any subset of the 7 categories without writing a review and add written text later. Stars-only ratings render only as a private author-only “Your rating” card (never in the public feed, with no upvote/downvote or report controls).
- The rating card no longer repeats the score, the review total, or the certificate count. Written reviews, Rated 4.0+, and the 5-to-1 bars stay, from the server summary.
- Official replies on the guest page are own-school only.
- Under 3 reviews, or when the server `shown` flag is off, the score stays hidden.

## Option 2 (Preserved locked v2 from 12 Nov 2026)

The previous locked v2 look is kept intact as Option 2:

- `ato-generator-v2-test/option-2-locked-v2/` — the `shared/` and `template/` files as they stood on `preview/ato-agreed-v2-12nov` (`67459e0`), preserved alongside Option A.
- `ato-agreed-v2-12nov/` — the agreed-generator v2 mockup from 12 Nov 2026.

Do not treat Option 2 as the primary design. It is the fallback locked v2.

## Tests

From `ato-generator-v2-test/`:

```
python3 -m pytest -q tests/
```

118 passed, 0 failed (13 Nov 2026).
