/* v26b.css — SPEC-v2.6 §4 ("ארוחות", צבי): the meal picker's new parts (ui/board.js) — the
   "🍽️ ארוחות" tab and its meal rows, the "✏️ עריכת הארוחות" link in its foot, and the
   "⬆️ לשדרג לארוחה שלמה?" strip at the top of the picker.
   Like v24.css / v25.css: built only from the app's shared variables (style.css), which
   theme-clean.css points at its own tokens (--paper / --sheet / --ink / --ink-soft / --rule /
   --lemon / --g-round-white / --sh-round / --font / --hand), so the fridge look (default, where a
   sheet stays a light paper object even in dark mode) and html[data-theme="clean"] (light and
   dark) both follow it; the few clean-only rules below just swap a fridge object for its flat twin.
   The meal rows reuse the dish rows' own classes (.pk-dish / .cb / .pk-name / .hl / .pk-ingr).
   Every font-size follows the text-size slider (var(--ts) / var(--ts2)); every tap target >= 44px. */

/* ---------------- the "🍽️ ארוחות" tab (first in the picker's menu tabs) ---------------- */
/* a little air between it and the menus' own tabs (RTL: the gap is on its left) */
.ptab.ptab-meals { margin-inline-end: 5px; }

/* ---------------- a meal row: the look of a dish row ---------------- */
.pk-meal .pk-me { margin-inline-end: 6px; font-size: calc(18px * var(--ts2)); line-height: 1; }
/* the meal's dishes under its name: all of them (up to two lines), not cut to one like ingredients */
.pk-meal .pk-mdishes {
  white-space: normal; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* a meal with no dish left in it (its dishes were deleted): grey, "אין בה מנות", no tap */
.pk-meal:disabled { opacity: 0.5; }
.pk-meal:disabled .cb { border-style: dashed; }
@media (hover: hover) {
  .pk-meal:disabled:hover { background: transparent; }
}

/* ---------------- "✏️ עריכת הארוחות" (the foot of the meals tab, in place of "+ מנה חדשה") ---------------- */
.sheet-foot .pk-meals-edit {
  flex: 1.7; min-width: 0; min-height: 50px;
  display: flex; align-items: center; justify-content: center;
  padding: 6px 4px; border-radius: 14px;
  font: 700 calc(15px * var(--ts))/1.2 var(--font); color: var(--ink-soft); text-align: center;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ink-mute);
  text-wrap: balance;
}
.sheet-foot .pk-meals-edit:active { background: var(--g-round-white); }

/* ---------------- "⬆️ לשדרג לארוחה שלמה?" (above "נבחרו גם") ---------------- */
/* noticeable but quiet: a pale lemon strip (the app's lemon over the sheet's own colour) with a
   lemon edge; its buttons are the app's neutral round "magnets" */
.up-strip {
  margin: 2px 0 12px; padding: 8px 10px 10px;
  border-radius: 12px;
  border: 1.5px solid var(--lemon);
  background: var(--paper);
  background: color-mix(in srgb, var(--lemon) 16%, var(--sheet));
}
.up-title { font: 800 calc(15px * var(--ts))/1.3 var(--font); color: var(--ink); }
.up-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.up-btn {
  flex: 0 1 auto; min-width: 0; max-width: 100%; min-height: 48px;
  display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px;
  padding: 6px 14px 7px; border-radius: 14px;
  background: var(--g-round-white); box-shadow: var(--sh-round);
  color: var(--ink); text-align: start;
}
.up-btn:active { transform: translateY(1px); box-shadow: var(--rim-pressed); }
.up-name { font: 700 calc(16.5px * var(--ts))/1.25 var(--hand); color: var(--ink); overflow-wrap: anywhere; }
.up-emoji { margin-inline-end: 5px; }
.up-add { font: 600 calc(13px * var(--ts))/1.3 var(--font); color: var(--ink-soft); overflow-wrap: anywhere; }

/* ---------------- the clean look ("לבן ולימון") ---------------- */
/* its round chips are the very grey of its cells, with no shadow: on the pale lemon strip a
   button is the sheet's own colour with a hairline instead, so it still reads as a button */
html[data-theme="clean"] .up-strip { border: 0; border-radius: 16px; padding: 10px 12px 12px; background: var(--c-lemon-soft); }
html[data-theme="clean"] .up-title { font-weight: 700; }
html[data-theme="clean"] .up-btn { border-radius: 12px; background: var(--c-surface); box-shadow: 0 0 0 1px var(--c-line); }
html[data-theme="clean"] .up-btn:active { transform: scale(0.99); background: var(--c-fill); box-shadow: 0 0 0 1px var(--c-line); }
html[data-theme="clean"] .up-name { font-weight: 600; font-size: calc(15.5px * var(--ts)); }
html[data-theme="clean"] .up-add { font-weight: 500; font-size: calc(12.5px * var(--ts)); color: var(--c-ink2); }
html[data-theme="clean"] .pk-meal .pk-me { font-size: calc(16px * var(--ts2)); }
html[data-theme="clean"] .sheet-foot .pk-meals-edit { font-weight: 600; color: var(--c-ink); text-decoration-color: var(--c-ink4); }
html[data-theme="clean"] .sheet-foot .pk-meals-edit:active { background: var(--c-fill); }
/* its dish rows light up on the row (.pk-li); a meal row is a row of its own */
@media (hover: hover) {
  html[data-theme="clean"] .pk-meal:not(:disabled):hover { background: var(--c-fill); }
}
