/* v26.css — SPEC-v2.6 §5 "ארוחות" in the menus tab (ui/menus.js): the "🍽️ הארוחות שלנו" card
   above the menus, the meals screen (a card per meal), the meal editor, and the dish editor's
   "🍽️ חלק מארוחה" chips. (The meal picker's meals tab and upgrade bar are in v26b.css.)
   Like v24.css / v25.css: built only from the app's shared variables (style.css), which
   theme-clean.css already points at its own tokens, so the fridge look (default) and
   html[data-theme="clean"] both follow it; the few clean rules below only take away the fridge's
   paper-stack shadow and match the clean look's font weights. Font sizes follow the text-size
   slider (var(--ts) / var(--ts2)).
   The meal editor reuses the picker's own parts as they are (style.css / theme-clean.css):
   .ptabs / .ptab (a tab per menu), .pcard / .pk-list / .pk-dish / .cb (a ✓ per dish) and
   .sel-row / .sel-chip (the chosen dishes, ✕ to take one off). */

/* ---------------- a meal = a little stack of index cards ---------------- */
/* .menu-card (style.css) is a paper index card with a coloured strip (--nb); a meal's card has a
   second card peeking out under it (two extra shadows: a paper-coloured copy, and its outline) */
.meals-card, .meal-card {
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.06), 0 5px 12px rgba(60, 45, 20, 0.14),
    5px 6px 0 -1px var(--paper), 5px 6px 0 0 rgba(0, 0, 0, 0.10), 5px 11px 12px -4px rgba(60, 45, 20, 0.14);
}

/* the entry card on "שלי" (above the menus): a tomato strip and a lemon magnet, so it never
   reads as one more menu */
.meals-entry { margin: 2px 0 20px; }
.meals-entry .menu-li { margin-bottom: 0; }
.meals-card { --nb: var(--tom); }
.meals-card .menu-emoji { background: var(--g-lemon); box-shadow: var(--rim-lemon); }

/* the meals screen: a card per meal — its name, its dishes, how many */
.meal-cards .menu-li { margin-bottom: 18px; }
.ml-dishes {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font: 600 calc(15px * var(--ts))/1.35 var(--font); color: var(--ink); overflow-wrap: anywhere;
}

/* ---------------- the meal editor (SHEETS.mealEdit, a full sheet) ---------------- */
.ml-sel { min-height: 44px; margin-bottom: 4px; }
.ml-sel .sel-chip span { overflow-wrap: anywhere; }
.ml-none { margin-bottom: 4px; }
.ml-pick { margin-top: 14px; }   /* (its tabs stay in view while the dishes scroll: sticky, as in the picker) */
.ml-pick .pcard { min-height: 120px; }

/* ---------------- the dish editor: "🍽️ חלק מארוחה" ---------------- */
.meal-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.meal-chip {
  min-height: 46px; max-width: 100%;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: 999px;
  background: var(--g-white); box-shadow: var(--sh-white); color: var(--ink);
  font: 700 calc(16px * var(--ts))/1.2 var(--font);
}
.meal-chip svg { flex: none; width: 18px; height: 18px; }
.mc-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meal-chip.on { color: var(--member-ink); font-weight: 800; background: var(--g-member); box-shadow: var(--rim-on-color); }
.meal-chip.add {
  background: transparent; box-shadow: none;
  border: 2px dashed var(--ink-mute); color: var(--ink-soft);
}
.meal-chip.add[aria-expanded="true"] { border-style: solid; color: var(--ink); }
.meal-chip:active { transform: translateY(1px) scale(0.98); }

/* ---------------- the clean look ---------------- */
/* flat grey cards: no paper stack; the entry card is the lemon one */
html[data-theme="clean"] .meals-card, html[data-theme="clean"] .meal-card { box-shadow: none; }
html[data-theme="clean"] .meals-card { background: var(--c-lemon-soft); }
html[data-theme="clean"] .meals-card:active { background: var(--c-lemon-soft); filter: brightness(0.97); }
html[data-theme="clean"] .meals-card .menu-emoji { background: var(--c-lemon); }
html[data-theme="clean"] .ml-dishes { font-weight: 500; color: var(--c-ink); }
html[data-theme="clean"] .meal-chip { font-weight: 500; font-size: calc(15.5px * var(--ts)); }
/* "on" = ink, as the clean look's .opt-btn / .like-chip (app.js puts the board's --member-ink on
   <body> inline, which would win over the clean look's own --member-ink) */
html[data-theme="clean"] .meal-chip.on { background: var(--c-ink); color: var(--c-bg); box-shadow: none; font-weight: 600; }
html[data-theme="clean"] .meal-chip.add { border: 1.5px dashed var(--c-ink4); background: transparent; color: var(--c-ink2); }
html[data-theme="clean"] .meal-chip.add[aria-expanded="true"] { border-style: solid; color: var(--c-ink); }
