.hg-recipe-utility {
  background: #f8f5ee;
  border: 1px solid #e3dac9;
  border-radius: 14px;
  box-sizing: border-box;
  margin: 18px auto 26px;
  max-width: 920px;
  padding: 16px 18px;
}

.hg-recipe-utility-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 14px;
}

.hg-recipe-action {
  align-items: center;
  appearance: none;
  background: #2d7a4f;
  border: 1px solid #2d7a4f;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  gap: 7px;
  justify-content: center;
  line-height: 1.2;
  min-height: 44px;
  padding: 10px 18px;
  text-decoration: none;
}

.hg-recipe-action:hover,
.hg-recipe-action:focus-visible {
  background: #235f3e;
  border-color: #235f3e;
  color: #fff;
}

.hg-recipe-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  margin: 0;
  text-align: center;
}

.hg-recipe-summary div {
  background: #fff;
  border-radius: 9px;
  padding: 9px 10px;
}

.hg-recipe-summary dt {
  color: #666;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hg-recipe-summary dd {
  color: #222;
  font-size: 15px;
  font-weight: 700;
  margin: 2px 0 0;
}

.hg-recipe-ingredient-check {
  align-items: flex-start;
  cursor: pointer;
  display: flex;
  gap: 9px;
}

.hg-recipe-ingredient-check input {
  flex: 0 0 auto;
  height: 18px;
  margin: .28em 0 0;
  width: 18px;
}

.hg-recipe-ingredient-check input:checked + span {
  color: #777;
  text-decoration: line-through;
}

.hg-recipe-print-sheet { display: none; }

#recipe-ingredients,
#recipe-method { scroll-margin-top: 110px; }

@media (max-width: 560px) {
  .hg-recipe-utility { margin-left: 10px; margin-right: 10px; padding: 14px; }
  .hg-recipe-utility-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .hg-recipe-action { font-size: 14px; padding-left: 10px; padding-right: 10px; }
  .hg-recipe-summary { grid-template-columns: repeat(2, 1fr); }
}

@media print {
  body.hg-printing-recipe > *:not(.hg-recipe-print-sheet) { display: none !important; }
  body.hg-printing-recipe .hg-recipe-print-sheet {
    color: #111;
    display: block !important;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 11pt;
    line-height: 1.4;
    margin: 0 auto;
    max-width: 7.25in;
  }
  .hg-recipe-print-sheet h1 { font-size: 22pt; margin: 0 0 12pt; }
  .hg-recipe-print-sheet h2 { break-after: avoid; font-size: 16pt; margin: 16pt 0 6pt; }
  .hg-recipe-print-sheet h3 { break-after: avoid; font-size: 12pt; margin: 10pt 0 4pt; }
  .hg-recipe-print-sheet li { break-inside: avoid; margin-bottom: 4pt; }
  .hg-recipe-print-sheet input { display: none; }
  .hg-recipe-print-sheet .hg-recipe-summary { grid-template-columns: repeat(4, 1fr); margin-bottom: 12pt; }
  .hg-recipe-print-sheet .hg-recipe-summary div { border: 1px solid #ccc; }
}
