package main import ( "bytes" "context" ) // CorporateModernistCardBlock renders the built-in `card` block with a flat // surface, hairline border, no elevation, and an optional accent top rule. // Content shape: {"title":"...","body":"...","accent": true|false}. func CorporateModernistCardBlock(ctx context.Context, content map[string]any) string { title := getString(content, "title") body := getString(content, "body") if body == "" { body = getString(content, "text") } accent := getBool(content, "accent", false) var buf bytes.Buffer _ = cardOverrideComponent(title, body, accent).Render(ctx, &buf) return buf.String() }