#show figure.where(kind: "tytable"): set block(breakable: false)
#figure(
  kind: "tytable",
  supplement: "Table",

  block[
    #let tytable-style-1(body) = [#strong[#emph[#text(fill: rgb("#ff0000"))[#body]]]]

    #table(
      columns: (auto, auto),
      stroke: none,
      rows: auto,
      align: right,
      fill: none,
      inset: 5pt,

      table.hline(y: 0, start: 0, end: 2, stroke: 0.08em + black),
      table.hline(y: 1, start: 0, end: 2, stroke: 0.05em + black),
      table.hline(y: 9, start: 0, end: 2, stroke: 0.08em + black),

      table.header(
        repeat: true,
        [A], [B],
      ),

      table.cell(align: left, fill: rgb("#ffff00"), inset: 0.5em)[#tytable-style-1[0]],
      [#tytable-style-1[8]],
      [#tytable-style-1[1]], [#tytable-style-1[9]],
      [#tytable-style-1[2]], [#tytable-style-1[10]],
      [#tytable-style-1[3]], [#tytable-style-1[11]],
      [#tytable-style-1[4]], [#tytable-style-1[12]],
      [#tytable-style-1[5]], [#tytable-style-1[13]],
      [#tytable-style-1[6]], [#tytable-style-1[14]],
      [#tytable-style-1[7]], [#tytable-style-1[15]],
    )
  ],
)