/* ——— Card: equal-height with buttons aligned ——— */
.waesn-unit-card{
  display:flex;
  flex-direction:column;
  height:100%;
  gap:.75rem;
  padding:1rem;
}

/* ——— Thumbnail: cap size ONLY inside a card ——— */
.waesn-unit-card .wp-block-image.waesn-thumb { 
  max-width:220px; 
  margin-inline:auto;   /* center the figure */
}
.waesn-unit-card .wp-block-image.waesn-thumb img{
  max-width:220px;
  width:100%;
  height:auto;
  object-fit:contain;
  display:block;
}

/* ——— Title bar footprint ——— */
.waesn-unit-card .waesn-title{
  min-height:3rem;
  display:flex;
  align-items:center;
  margin:0;
}

/* ——— Blurb flexes; buttons pin to bottom ——— */
.waesn-unit-card .waesn-excerpt{ margin:0; flex:1 1 auto; }
.waesn-unit-card .wp-block-buttons{ margin-top:auto; }
.waesn-unit-card .wp-block-button__link{ 
  font-weight:600; padding:.65rem 1.1rem; border-radius:8px; 
}
/* Make the columns in a row stretch to equal height */
.waesn-card-row { 
  align-items: stretch;               /* columns get same height */
}
.waesn-card-row > .wp-block-column {
  display: flex;                      /* let the column be a flex container */
}
.waesn-card-row > .wp-block-column > .waesn-unit-card {
  flex: 1 1 auto;                     /* card fills the column height */
  display: flex;
  flex-direction: column;
}

/* Inside each card: blurb grows, buttons sit at bottom */
.waesn-unit-card .waesn-excerpt { 
  margin: 0; 
  flex: 1 1 auto; 
}
.waesn-unit-card .wp-block-buttons { 
  margin-top: auto;                   /* pins buttons to the bottom */
}

/* Spacers inside cards cause misalignment. Neutralize them. */
.waesn-unit-card .wp-block-spacer { 
  height: 0 !important; 
  margin: 0 !important; 
}
/* Center the dark green title bar inside each card */
.waesn-unit-card .waesn-title{
  display: inline-block;          /* shrink to content */
  margin: 0 auto .5rem;           /* center horizontally */
  text-align: center;             /* keep text centered */
  max-width: 100%;                /* no overflow on mobile */
}

/* If your theme is forcing full-width headings, nuke it */
.waesn-unit-card .waesn-title.wp-block-heading{
  width: auto;                    /* allow inline-block to work */
}