/* v29f.css — SPEC-v2.9 §4–§5 in the family cookbook (ui/family.js): the "💬 N" pill on a recipe
   card, the comments under a recipe (the list, "כתיבת תגובה…" + "שליחה", 🗑️ on a comment of mine),
   the "📕 הורדה כספר PDF" button and its window (the picker's own ✓ rows — .pk-list / .pk-dish /
   .cb / .pk-name / .hl / .pk-ingr — reused as they are, with "הכל" on top).
   Like v28.css: built only from the app's shared variables (style.css), which theme-clean.css
   points at its own tokens (--sheet / --ink / --ink-soft / --rule / --g-round-white / --sh-round /
   --font), so the fridge look (default, where a sheet and a recipe card stay light paper objects
   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.
   Every font-size follows the text-size slider (var(--ts)); every tap target >= 44px. */

/* ---------------- the recipe card: "💬 N" (a small round magnet, like "שלי") ---------------- */
.rc-cm {
  flex: none; padding: 4px 9px; border-radius: 999px;
  font: 700 calc(13px * var(--ts))/1.2 var(--font); color: var(--ink-soft);
  background: var(--g-round-white); box-shadow: var(--sh-round);
  white-space: nowrap;
}

/* ---------------- the cookbook page: "📕 הורדה כספר PDF" under "+ הוספת מתכון" ---------------- */
.book-pdf { margin-top: 10px; }

/* ---------------- the comments under a recipe ---------------- */
.cm-sec { margin-top: 22px; border-top: 1.5px solid var(--rule); }
.rc-body .cm-sec .ed-h { margin-top: 16px; }
.cm-list { list-style: none; }
.cm { padding: 8px 2px 10px; border-bottom: 1px solid var(--rule); }
.cm-head { display: flex; align-items: center; gap: 8px; min-height: 30px; }
.cm-who {
  flex: 1; min-width: 0;
  font: 700 calc(14px * var(--ts))/1.3 var(--font); color: var(--ink);
  overflow-wrap: anywhere;
}
.cm-when { font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
/* 🗑️ on my own comment: a 44px target that does not make the row taller (RTL: at the left edge) */
.cm-del {
  flex: none; width: 44px; height: 44px; margin: -7px 0 -7px -8px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: calc(17px * var(--ts2)); line-height: 1;
}
.cm-del:active { background: var(--g-round-white); box-shadow: var(--sh-round); }
.cm-text {
  margin-top: 2px;
  font: 500 calc(15.5px * var(--ts))/1.5 var(--font); color: var(--ink);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.cm-none { margin: 0 2px 4px; }
/* "כתיבת תגובה…" + "שליחה" side by side (360px: the field keeps most of the row) */
.cm-write { display: flex; align-items: flex-end; gap: 8px; margin-top: 12px; }
.cm-write textarea.input { flex: 1; min-width: 0; min-height: 50px; resize: none; }
.cm-write .btn { flex: none; width: auto; margin-top: 0; padding: 10px 18px; }

/* ---------------- the "📕 ספר המתכונים ב־PDF" window ---------------- */
.bk-list { margin-top: 10px; }
.bk-list .bk-all { border-bottom: 1.5px solid var(--rule); }   /* "הכל" above the recipes */
.bk-list .bk-all .pk-name { font-family: var(--font); font-weight: 800; }
/* "מכין את הספר…" in place of the button: the same height, so nothing jumps */
.bk-busy { flex: 1; min-width: 0; min-height: 50px; margin: 0; flex-wrap: wrap; gap: 4px 10px; text-align: center; }
.bk-prog { font: 600 calc(13.5px * var(--ts))/1.2 var(--font); color: var(--ink-soft); white-space: nowrap; }
.bk-prog:empty { display: none; }

/* ---------------- the clean look ("לבן ולימון") ---------------- */
/* flat: the pill is the page's colour with a hairline, the lines are hairlines, the text Heebo-weight */
html[data-theme="clean"] .rc-cm {
  background: var(--c-surface); box-shadow: 0 0 0 1px var(--c-line);
  font: 600 calc(12.5px * var(--ts))/1.2 var(--c-sans); color: var(--c-ink2);
}
html[data-theme="clean"] .cm-sec { border-top: 1px solid var(--c-line); }
html[data-theme="clean"] .cm { border-bottom: 1px solid var(--c-line); }
html[data-theme="clean"] .cm-who { font-weight: 600; }
html[data-theme="clean"] .cm-when { font-weight: 500; color: var(--c-ink2); }
html[data-theme="clean"] .cm-text { font-weight: 400; }
html[data-theme="clean"] .cm-del:active { background: var(--c-fill); box-shadow: none; }
html[data-theme="clean"] .bk-list .bk-all { border-bottom: 1px solid var(--c-line); }
html[data-theme="clean"] .bk-list .bk-all .pk-name { font-weight: 700; }
html[data-theme="clean"] .bk-prog { font-weight: 500; color: var(--c-ink2); }
