%%{init: {"theme":"base","themeVariables":{"fontSize":"20px","fontFamily":"Helvetica Neue, Helvetica, Arial, sans-serif","primaryColor":"#f1f5f9","primaryTextColor":"#1e293b","primaryBorderColor":"#334155","lineColor":"#64748b"},"flowchart":{"useMaxWidth":true,"htmlLabels":false,"nodeSpacing":110,"rankSpacing":75,"padding":40,"curve":"basis"},"width":1180,"height":600}}%%
flowchart LR
A["Close PAN win:<br/>new mayor,<br/>new police chief"]
B["The trafficker<br/>holding the town<br/>is weakened"]
C["But the route<br/>through it is still<br/>worth taking"]
D["Is a rival<br/>close enough<br/>to take it?"]
E["Rivals move in:<br/>war over the<br/>territory"]
F["Nobody comes:<br/>the town stays<br/>quiet"]
A --> B
B --> C
C --> D
D -->|"borders a rival"| E
D -->|"allies, or a local gang only"| F
classDef pol fill:#e2eaf3,stroke:#334155,stroke-width:3px,color:#1e293b
classDef crm fill:#f7e2db,stroke:#b44527,stroke-width:3px,color:#1e293b
classDef unc fill:#f0e6c9,stroke:#b7943a,stroke-width:4px,color:#1e293b
classDef ok fill:#e2ede9,stroke:#4a7c6f,stroke-width:3px,color:#1e293b
class A pol
class B,C crm
class D unc
class E crm
class F ok