main { padding-bottom: 100px; }
.recipe-toolbar,.filter-actions{display:flex;align-items:center;gap:8px}.recipe-toolbar input{flex:1;min-width:0}.recipe-toolbar button{max-width:42%}.filter-actions{justify-content:flex-end}
#recipe-filters{margin:10px 0;padding:10px 13px;background:var(--card);border:1px solid var(--line);border-radius:12px}#recipe-filters[hidden]{display:none}
#listing #result-count{font-size:16px;color:var(--muted);font-weight:500}#listing #results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#listing .recipe-result{display:block;padding:0;margin:0;overflow:hidden}
#listing .recipe-result a{display:block;text-decoration:none;color:var(--ink)}
#listing .recipe-result strong,#listing .recipe-result small{display:block;padding:6px 10px 0;overflow-wrap:anywhere}#listing .recipe-result small{padding:1px 10px 9px}
#listing .recipe-result .recipe-picture{width:100%;height:auto;aspect-ratio:4/3;border-radius:0}
#listing .recipe-result figcaption{right:auto;left:0}
#listing .line{margin-top:15px}
#reader details{border-top:1px solid var(--line);padding:12px 0}#reader details summary{cursor:pointer;font-weight:600}
#reader>figure+ h1{margin:6px 0}
@media(min-width:640px){#listing #results{grid-template-columns:repeat(3,minmax(0,1fr))}}
.recipe-result{display:flex;gap:14px;align-items:center}.recipe-result>div{min-width:0;overflow-wrap:anywhere}
.recipe-picture{position:relative;flex:0 0 86px;width:86px;height:74px;border-radius:8px;overflow:hidden;margin:0;background:#e1e9d8}
.recipe-picture img,.ingredient-card{width:100%;height:100%;object-fit:cover;display:block}
.ingredient-card{display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(135deg,#d9e4cd,#e8e3ca);color:#284b32}
.ingredient-card strong{font-size:17px}.ingredient-card small{font-size:11px;color:#415a3d}
.recipe-picture figcaption{position:absolute;bottom:0;right:0;background:#244c3be8;color:white;font-size:11px;padding:1px 5px}
.recipe-picture.large{width:100%;height:clamp(160px,58vw,360px);margin:14px 0}
.recipe-picture.large .ingredient-card strong{font-size:34px}.recipe-picture.large .ingredient-card small{font-size:18px}
.recipe-picture.large{height:auto}
.recipe-picture.large figcaption{position:static;background:#eaf0e3;color:#314936;padding:5px 9px;font-size:14px;overflow-wrap:anywhere}
.recipe-picture.large figcaption a{color:var(--brand)}
.recipe-picture.large img,.recipe-picture.large .ingredient-card{height:clamp(160px,58vw,360px);object-fit:contain}
.audiences,.totals,.food-list {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
.audiences button {display:flex; flex-direction:column; align-items:flex-start; text-align:left; padding:10px 12px; border:1px solid var(--line);background:var(--card); border-radius:12px;}
.audiences strong {font-size:17px} .audiences small {font-size:14px}
.chips,.week {display:flex;gap:6px;flex-wrap:wrap;margin:10px 0 16px}.chips button,.week button {min-height:42px; padding:6px 10px;}
button[aria-pressed=true],.audiences button[aria-pressed=true] {color:white;background:var(--brand);border-color:var(--brand);}
.audiences button[aria-pressed=true] small {color:#ecf2e8}
#dish-search,.food-list select {width:100%} .profile-row,.line {display:flex;flex-wrap:wrap;gap:8px 18px;align-items:baseline;justify-content:space-between;}
.profile-row {padding:14px 0;border-bottom:1px solid var(--line)}.facts,.meal-card,.recipe,.scope-box {border:1px solid var(--line);border-radius:12px;background:var(--card);margin:12px 0;padding:14px;}
.facts dt {font-weight:bold;margin-top:10px}.facts dt:first-child {margin:0}.facts dd {margin:3px 0 0}
.totals {grid-template-columns:repeat(auto-fit,minmax(100px,1fr));}.totals div {padding:6px 9px;background:var(--soft);border-radius:6px}.totals b,.audiences small {display:block}
.facts + label {display:block}.week button {flex:1 1 32px;padding:5px 4px}.meal-card h3 {margin:0 0 10px}.meal-card h3 small {display:block;color:var(--brand);font-weight:600;letter-spacing:.06em}
.food-list label {min-width:0;display:flex;align-items:center}.food-list select {min-height:40px;font-size:15px}.recipe>button:first-child {width:100%;text-align:left;}.recipe ul,.recipe ol{padding-left:1.5em}
@media(min-width:600px){.audiences{grid-template-columns:repeat(4,minmax(0,1fr));}}


.week-filters{margin:12px 0;padding:12px 14px;border:1px solid #dbe0d5;border-radius:12px}.week-filters summary{font-weight:600;cursor:pointer}.week-filters[open] summary{margin-bottom:12px}
