schedules:
  SA100:
    - "(?i)dividend(s)?|bank interest|savings income|gift aid|student loan|HICBC|child benefit"
  SA103:
    - "(?i)self[- ]?employment|sole trader|trading income|accounts|turnover|cash basis|simplified expenses"
  SA105:
    - "(?i)landlord|uk property|rental|letting|section 24|mortgage interest|furnished holiday letting|FHL"
  SA108:
    - "(?i)capital gain(s)?|CGT|disposal|share matching|bed and breakfast|section 104 pool|allowable cost|AEA"

pages:
  # page_id: [regexes that trigger it]
  SA103S:
    - "(?i)self[- ]?employment.*short|turnover.*below.*VAT threshold"
  SA103F:
    - "(?i)self[- ]?employment.*full|complex accounts|over.*VAT threshold"
  SA105:
    - "(?i)UK property|property income|rental"
  SA108:
    - "(?i)capital gains|SA108|disposals?"

fields:
  # stable field_id → {page_id, form_id?, box_number?, synonyms[]}
  "SA100:UK_Dividends_Total":
    form_id: "SA100"
    page_id: null
    box_number: null
    synonyms:
      - "(?i)UK dividends( total)?"
      - "(?i)enter.*total.*dividends"
  "SA100:UK_Interest_Total":
    form_id: "SA100"
    synonyms:
      - "(?i)UK interest( total)?"
      - "(?i)bank.*interest"
  "SA105:FinanceCostReducer":
    page_id: "SA105"
    form_id: "SA100"
    synonyms:
      - "(?i)mortgage interest|finance cost(s)?|section 24 reducer"
  "SA105:Rental_Income_Total":
    page_id: "SA105"
    form_id: "SA100"
    synonyms:
      - "(?i)total rents received|rental income|letting income"
  "SA108:Disposals_Summary":
    page_id: "SA108"
    form_id: "SA100"
    synonyms:
      - "(?i)disposal(s)? summary|total proceeds|capital gains summary"
  "SA108:Losses_Brought_Forward":
    page_id: "SA108"
    form_id: "SA100"
    synonyms:
      - "(?i)loss(es)? brought forward"
