main.container { max-width: 1060px; padding-top: clamp(18px,4vw,44px); }
.tool-head { margin-bottom: 22px; }
.more-options { color: inherit; border-top: 1px solid var(--border,#ccd7d2); margin: 0; }
.more-options > summary, form > details > summary { cursor: pointer; padding: 13px 0; font-weight: 600; line-height: 1.4; }
.more-options > summary:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
main > .more-options { margin: 0 auto; }
.tool + .more-options { margin-top: 28px; }
.result > .more-options { padding-inline: 20px; }
.result > .more-options .result__body,.result > .more-options .result__foot { padding: 0 0 16px; }
.more-options[open] > .section { margin-block: 18px; }
.ingredients-first:not(.is-error):not(.is-empty) .result__main,.ingredients-first .result__grid { display:none; }
.ingredients-first > h2 { font-size: 1.3rem; margin: 0; padding: 19px 20px 0; }
.ingredients-first .result__body { padding: 12px 20px 18px; }
.ingredients-first #recipe tr > :nth-child(2):not(:last-child) { display:none; }
.ingredients-first #recipe td:last-child { font-weight: 650; }
form > details { margin-block: 12px; }
@media(max-width:650px) {
  main:not(.container) { margin: 0 auto; padding: 20px 16px; }
  main:not(.container) h1 { font-size: 2rem; }
  main.container { padding-top:16px; }
  .tool-head { margin-bottom:12px; }
}
#all-matches:not([open]) + table tbody tr:nth-child(n+6) { display:none; }
section:has(#rows) .more-options:has(#map[hidden]),section:has(#rows) .more-options:has(#export[hidden]),section:has(#rows) #all-matches:not(:has(+ table tbody tr:nth-child(6))) { display:none; }
