.ingredient-table {
  border-collapse: collapse;
  margin: 0 0 1rem;
  font-size: 0.98rem;
  table-layout: auto;
}

.ingredient-table td {
  padding: .2rem .5rem;
  vertical-align: top;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* right-align the "amount" column */
.ingredient-table td:first-child {
  text-align: right;
  white-space: normal;
  min-width: 10ch;
}

/* responsive: stack cells on narrow screens */
@media (max-width: 280px) {
  .ingredient-table, .ingredient-table tbody, .ingredient-table tr {
    display: block;
    width: 100%;
  }
  .ingredient-table tr {
    margin-bottom: .5rem;
  }
  .ingredient-table td {
    display: block;
    width: 100%;
    padding: .15rem 0;
  }
  /* keep the amount visually distinct when stacked */
  .ingredient-table td:first-child {
    text-align: left;
    font-weight: 600;
  }
}