digraph retting_test {
  bgcolor="#1a1a2e"
  rankdir=LR
  node [fontname="Helvetica" fontsize=10 style=filled shape=box]
  edge [color="#888888" fontname="Helvetica" fontsize=9 fontcolor="#aaaaaa"]

  label=<<B><FONT COLOR="#cccccc" POINT-SIZE="14">retting: how to tell when stalks are ready</FONT></B>>
  labelloc=t

  subgraph cluster_method {
    label="DEW RETTING" fontcolor="#4CAF50" fontsize=11 fontname="Helvetica Bold"
    color="#4CAF50" style=dashed

    lay [label="lay stalks on grass\nexpose to rain & dew\nturn every few days" fillcolor="#2E7D32" fontcolor="white"]
    temp [label="duration by temperature\n37°C → 3 days\n20°C → 7-8 days\n12°C → 15-17 days\n7°C → 30-45 days" fillcolor="#388E3C" fontcolor="white"]
    lay -> temp
  }

  subgraph cluster_tests {
    label="THREE TESTS" fontcolor="#CDDC39" fontsize=11 fontname="Helvetica Bold"
    color="#CDDC39" style=dashed

    t1 [label="BEND TEST\nbend stalk back & forth\nhurd should crack & fall\nfiber should NOT break" fillcolor="#827717" fontcolor="white"]
    t2 [label="PEEL TEST\npeel fiber at base\nshould separate easily\nfor several inches" fillcolor="#9E9D24" fontcolor="white"]
    t3 [label="COLOR TEST\nfiber bundles\nturning white\nmeans ready" fillcolor="#AFB42B" fontcolor="white"]
  }

  temp -> t1 [label="test"]
  t1 -> t2 [style=invis]
  t2 -> t3 [style=invis]

  under [label="UNDER-RETTED\nfiber sticks to hurd\nhard to separate\n→ keep retting" fillcolor="#B71C1C" fontcolor="white" shape=octagon]
  over [label="OVER-RETTED\nfiber breaks easily\nweak & mushy\n→ start over" fillcolor="#B71C1C" fontcolor="white" shape=octagon]
}
