.recipe-form, #recipe-result, .recipe-examples { max-width: 48rem; }
.recipe-form { display: grid; gap: .85rem; margin-inline: auto; text-align: left; }
.recipe-form[hidden], #recipe-sizes[hidden], #recipe-result[hidden] { display: none; }
.recipe-form h2, #recipe-result h2 { margin: 0; }
.recipe-form label, .recipe-form legend { font-weight: 700; }
.recipe-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.recipe-pair label { display: grid; gap: .35rem; }
.recipe-pair input { width: 100%; min-width: 0; }
.recipe-form .recipe-toggle { display: flex; gap: .6rem; align-items: center; width: fit-content; min-height: 44px; cursor: pointer; }
.recipe-toggle input { accent-color: #0d7044; width: 1.2rem; height: 1.2rem; flex: none; }
#recipe-sizes { margin: 0; min-width: 0; padding: .7rem 1rem 1rem; border: 1px solid #a9c7a4; border-radius: .7rem; }
#recipe-units, #recipe-format, .recipe-result-help { margin: 0; font-size: 1rem; line-height: 1.5; }
#recipe-units { margin-bottom: .75rem; }
#recipe-ingredients { resize: vertical; min-height: 8.5rem; width: 100%; line-height: 1.55; }
.recipe-form .button { justify-self: start; }
.recipe-error { color: #8c2d1a; font-weight: 700; margin: 0; }
.recipe-error:empty { display: none; }
.recipe-form [aria-invalid="true"] { border-color: #9a3a24; }
#recipe-result { margin: 1.25rem auto 0; padding: clamp(1.25rem, 4vw, 2.2rem); border-radius: 1.25rem; background: #eef5e9; color: #10271f; overflow-wrap: anywhere; }
#recipe-result-heading:focus { outline: 2px solid #0d7044; outline-offset: .22rem; }
#recipe-factor { margin: .5rem 0 1rem; font-weight: 700; }
#recipe-list { list-style: none; padding: 0; margin: 0 0 1rem; }
#recipe-list li { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .2rem 1rem; padding: .65rem 0; border-bottom: 1px solid #bacbb7; line-height: 1.55; }
#recipe-list small { font-size: .875rem; color: #43584b; }
.recipe-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1rem; }
.recipe-examples dl { margin: 1.2rem 0; }
.recipe-examples dt { font-weight: 700; }
.recipe-examples dd { margin: .25rem 0 1rem; }
@media (max-width: 25rem) {
  .recipe-pair { gap: .65rem; }
  #recipe-sizes .recipe-pair { grid-template-columns: 1fr; }
}
@media print {
  body:has(#recipe-result:not([hidden])) :is(header, footer, .tool-hero, .recipe-form, main > section:not(.tool-stage), .recipe-actions, .recipe-result-help) { display: none !important; }
  body:has(#recipe-result:not([hidden])) :is(.tool-stage, #recipe-result) { max-width: none; margin: 0; padding: 0; background: white; color: black; }
  #recipe-result-heading:focus { outline: none; }
  #recipe-list li { break-inside: avoid; }
}
