========================================================
 TileAF Layouts – User Guide
========================================================

This program reads window layouts from the file:
    TileAF_layouts.json
located in the same folder as the TileAF executable.

--------------------------------------------------------
 HOW TO CREATE OR EDIT LAYOUTS
--------------------------------------------------------
1. Open TileAF_layouts.json in a text editor (Notepad, VS Code, etc.).
2. Inside the "layouts" section, each layout is defined by a name
   (must start with "layout") and an array of cells.
3. Each cell is an object with four keys:
       x = horizontal start (0 = left edge)
       y = vertical start   (0 = top edge)
       w = width (fraction of screen)
       h = height (fraction of screen)
4. Values can be plain numbers (0.5) or fractions written as strings ("1/2").
5. To enable a layout, add its name to the "enabled" array at the bottom.
   Only layouts listed in "enabled" will be active.

Alternatively:
Show the json to some AI and ask it to create layouts for you.

--------------------------------------------------------
 EXAMPLE
--------------------------------------------------------
"layouts": {
  "layoutTwoHalves": [
    {"x":"0",   "y":"0", "w":"1/2", "h":"1"},   // left half
    {"x":"1/2", "y":"0", "w":"1/2", "h":"1"}    // right half
  ]
},

"enabled": [
  "layoutTwoHalves"
]

--------------------------------------------------------
 TIPS
--------------------------------------------------------
- Coordinates are relative: (0,0) is top-left, (1,1) is bottom-right.
- Fractions like "1/3" or "2/3" are supported.
- Layout names must match exactly between "layouts" and "enabled".
- You can define as many layouts as you like, but only those in "enabled"
  will be used by TileAF.
- If TileAF_layouts.json is missing or empty, the program will fall back
  to two built-in layouts.

--------------------------------------------------------
 INCLUDED LAYOUTS
--------------------------------------------------------

Layout 1: Master + Stack
+--------------+--------------+
|              |              |
|              |      Top     |
|       L      |              |
|     (1/2)    +--------------+
|              |              |
|              |    Bottom    |
|              |              |
+--------------+--------------+

Layout 2: Master + Split Right
+--------------+-------+------+
|              |   R1  |   R2 |
|              | (1/4) | (1/4)|
|              |-------+------|
|              |              |
|              |        R3    |
|              |      (1/2)   |
+--------------+--------------+

Layout 3: 2x2 Grid
+--------------+--------------+
|       A      |       B      |
|     (1/2)    |     (1/2)    |
|              |              |
+--------------+--------------+
|       C      |       D      |
|     (1/2)    |     (1/2)    |
|              |              |
+--------------+--------------+

Layout 4: Triple Split
+---------+---------+---------+
|    L    |    M    |    R1   |
|  (1/3)  |  (1/3)  |  (1/3)  |
|         |         |         |
|         |         +---------+
|         |         |         |
|         |         |    R2   |
|         |         |  (1/3)  |
+---------+---------+---------+

Layout 5: Top 2 / Bottom 3
+--------------+--------------+
|       T1     |       T2     |
|     (1/2)    |     (1/2)    |
|     2/3 h    |     2/3 h    |
|              |              |
|              |              |
+---------+---------+---------+
|    B1   |   B2    |    B3   |
|   1/3   |  1/3    |   1/3   |
+---------+---------+---------+


========================================================
 END OF GUIDE
========================================================