   alias Jumubase.Showtime.Results
 
   @border_style "1px solid black"
+  @certificate_font_size 16
+  @line_height_factor 1.3
   @muted_color "#666"
 
   @doc """

      for group <- result_groups(p) do
        for a <- group do
          group_size = length(group)
          [:div, %{style: style(%{"page-break-before" => "always"})},
            [:p,
              [:b, group |> Enum.map(&([:span, appearance_info(&1)])) |> to_lines],
            ],
            [:p,
              [
                [:span, contest_text(contest, group_size)],
                [:span, "für das instrumentale und vokale Musizieren der Jugend"],
                [:span, category_text(contest.round, a, p)],
              ] |> to_lines
            ],
            [:p,
              [
                [:span, "in der Altersgruppe #{a.age_group}"],
                [:span, rating_points_text(contest.round, a.points, group_size)],
              ] |> to_lines
            ],
            [:p, prize_text(contest.round, a)],
            [:p, date_text(contest)],
            [:p, signatures_text(contest.round)],
          ]
        end

    ] |> to_lines
  end
  defp category_text(_round, %Appearance{}, %Performance{} = p) do
    [[:span, "in der Wertung für "], [:i, category_name(p)], [:br]]
  end

  defp rating_points_text(0, _, _), do: "teilgenommen."
