// sop: a "standard operating procedure" — a methods/steps block.
//
// Contract fields:
//   content: `sop` (required)
//   scalar:  none
//
// Shown for all targets. Lightly boxed for visual separation; not numbered.

#import "common.typ": element-box, tag-line, hue-of

/// Render a sop part.
#let display-sop(part, show-sop: true) = {
  if show-sop {
    element-box(hue-of.sop, {
      tag-line[方法]
      part.sop
    })
  }
}
