# Original teaching model; not extracted from a running system.
# C4 container-level sketch: applications/data stores, not deployment instances.
canvas: { projection: iso, background: "#FAFAF9", padding: 32 }
nodes:
  scene:
    shape: composite
    parts:
      - id: report_system
        shape: boundary
        label: "Report system [Software system]"
        layout: { mode: row, gap: 4, padding: 1.5 }
        style:
          stroke: { color: "#64726B", width: 1.5, dash: "6 4" }
          text: { size: 16, color: "#34423E" }
        parts:
          - id: report_api
            shape: rectangle
            label: "Report API (Go)"
            geom: { w: 180, d: 120, h: 20 }
            style:
              palette: { top: "#FFFFFF", left: "#DDE6E3", right: "#EAF0EE" }
              stroke: { color: "#0F766E", width: 1.6 }
              text: { size: 16, color: "#202627", weight: "600" }
          - id: report_store
            shape: cylinder
            label: "Report store (PostgreSQL)"
            geom: { w: 180, d: 120, h: 20 }
            style:
              palette: { top: "#FFFFFF", left: "#DDE6E3", right: "#EAF0EE" }
              stroke: { color: "#0F766E", width: 1.6 }
              text: { size: 16, color: "#202627", weight: "600" }
    connectors:
      - from: report_api
        to: report_store
        routing: orthogonal
        arrow: triangle
        label: "Reads/writes reports\nPostgreSQL protocol"
        labelFontFamily: Source Sans Pro
        labelFontSize: 15
        labelColor: "#202627"
        labelBg: "#FFFFFF"
        stroke: { color: "#0F766E", width: 2.5 }
annotations:
  - anchor: report_system
    side: top
    distance: 60
    text: "Container-level sketch\nIllustrative Report system"
    fontSize: 18
    bg: "#FFFFFF"
    border: "#64726B"
    color: "#202627"
