How to reduce line spacing between entities in entities card?

Does anyone know how to reduce the vertical spacing between entities in the entities card using CSS?

I have installed card_mod and can update card’s CSS styling, like this:

                style: |
                  ha-card {
                  margin-right: 20px; 
                  margin-top: 20px;
                  }:

I am however unable to find out what CSS code reduces the line spacing in the entities card. It appears many have similar question and it should be configurable in the card I think.

:small_blue_diamond: Card-mod - Add css styles to any lovelace card - Share your Projects! / Dashboards & Frontend - Home Assistant Community (home-assistant.io)

there’s a couple of ways described in the post linked above

I use this for my markdown cards:

    style: |
      ha-card {
        box-shadow: none;
        border: none;
        margin: 0;
      }
      ha-markdown.no-header {
        box-shadow: none;
        padding: 0 0 0 16px;
        border: none;
        margin: 0;
      }

thanks much appreciated!