%%{init: {'theme': 'base', 'themeVariables': {'fontSize': '18px', 'primaryColor': '#4a7c6f', 'primaryTextColor': '#1e293b', 'lineColor': '#334155', 'primaryBorderColor': '#334155'}, 'flowchart': {'useMaxWidth': true, 'nodeSpacing': 40, 'rankSpacing': 55}}}%%
flowchart TD
A["<b>Liberal Democracy</b>"] --> B["<b>Competitive<br/>Elections</b>"]
A --> C["<b>Liberal<br/>Rights</b>"]
A --> D["<b>Rule of<br/>Law</b>"]
B --> B1["Gerrymandering"]
B --> B2["Media capture"]
B --> B3["Electoral rule changes"]
C --> C1["Press freedom curtailed"]
C --> C2["Civil society squeezed"]
C --> C3["Minority rights eroded"]
D --> D1["Court packing"]
D --> D2["Prosecutors politicized"]
D --> D3["Constitutional rewrites"]
style A fill:#e8f5e9,stroke:#4a7c6f,stroke-width:3px
style B fill:#fff3e0,stroke:#b7943a,stroke-width:2px
style C fill:#fff3e0,stroke:#b7943a,stroke-width:2px
style D fill:#fff3e0,stroke:#b7943a,stroke-width:2px
style B1 fill:#fbe9e7,stroke:#b44527,stroke-width:1px
style B2 fill:#fbe9e7,stroke:#b44527,stroke-width:1px
style B3 fill:#fbe9e7,stroke:#b44527,stroke-width:1px
style C1 fill:#fbe9e7,stroke:#b44527,stroke-width:1px
style C2 fill:#fbe9e7,stroke:#b44527,stroke-width:1px
style C3 fill:#fbe9e7,stroke:#b44527,stroke-width:1px
style D1 fill:#fbe9e7,stroke:#b44527,stroke-width:1px
style D2 fill:#fbe9e7,stroke:#b44527,stroke-width:1px
style D3 fill:#fbe9e7,stroke:#b44527,stroke-width:1px