/* v211.css — SPEC-v2.11 "👨‍👩‍👧 כולם" (רותי: "ויש מסך שאפשר לראות את הארוחות של כל המשפחה?"): the whole
   household's board in ui/board.js —
     the "👨‍👩‍👧 כולם" chip first in the boards' strip (its title "כל הבית" seen on a phone too), the
     one-time hint above the board, the week's
     cells with a small line per family member (a dot in their board's colour, their name cut short
     when it must be, the dishes, 📝 their note) and the small "+" for "למי להוסיף?", the month's
     coloured dots per family member (+ how many meals), the "כולם" day sheet (a line per family
     member under every meal, "+ למי להוסיף?") and the "למי להוסיף?" chips.
   Like v27b.css / v28.css: built only from the app's shared variables (style.css), which
   theme-clean.css points at its own tokens, so the fridge look (default, where the whiteboard, the
   notes and the sheets stay light objects even in dark mode) and html[data-theme="clean"] (light and
   dark) both follow it; the clean-only rules below take away the fridge's tilt, dashes and shadows.
   The only value set from the page is --bc (a board's colour, through safeColor). The board zoom
   (v23.css: `zoom` on .wgrid / .mgrid) works on these cells as on any board's.
   Every font-size follows the text-size slider (var(--ts) / var(--ts2)); nothing wider than a 360px
   phone. */

/* ---------------- the "👨‍👩‍👧 כולם" chip ---------------- */
.bchip.hh-chip { gap: 6px; }
.hh-ic { font-size: calc(17px * var(--ts)); line-height: 1; }
.sheet-sub .hh-ic { font-size: calc(15px * var(--ts)); }
/* the title "כל הבית" by the chips: style.css hides the strip's label ("הלוח של") on a narrow phone
   (≤380px) to leave room; "כולם" has no ✏️ there, so its title stays — on a 360px phone too */
.boards-row.hh-row .chips-lbl { display: inline; }

/* ---------------- the one-time hint (an install-hint note, green) ---------------- */
.install-hint.hh-hint { margin: 2px 0 12px; transform: rotate(-0.4deg); }

/* ---------------- the week: a cell = a line per family member ---------------- */
.wb .note.hh-cell:not(.empty) {
  max-width: none; justify-self: stretch;
  flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 2px;
  padding: 13px 3px 5px; text-align: start;
  font: 600 calc(13px * var(--ts2))/1.15 var(--hand); letter-spacing: -0.2px;
}
/* only notes, no dishes: a light dashed spot (nothing is eaten there), like an empty cell */
.wb .note.hh-cell.hh-soft {
  padding-top: 5px;
  background: transparent; box-shadow: none; transform: none;
  border: 2px dashed #C7CCD4;
}
.wb .note.hh-cell.hh-soft::after { display: none; }

.hh-line {
  position: relative; display: block; width: 100%; min-width: 0; min-height: 32px;
  padding: 3px 3px 3px; border-radius: 4px;
  text-align: start; color: var(--ink); font: inherit; letter-spacing: inherit;
  overflow-wrap: anywhere; cursor: pointer;
}
.hh-cell .hh-line + .hh-line { border-top: 1px dashed rgba(0, 0, 0, 0.16); border-radius: 0 0 4px 4px; }
.hh-line:active { background: rgba(0, 0, 0, 0.07); }
@media (hover: hover) { .hh-line:hover { background: rgba(0, 0, 0, 0.05); } }
/* the dot and the name: one line of their own, the name cut short with "…" when it must be */
.hh-head { display: flex; align-items: center; gap: 4px; min-width: 0; }
.hh-line .bdot { flex: none; width: calc(9px * var(--ts2)); height: calc(9px * var(--ts2)); }
.hh-who {
  flex: 0 1 auto; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 800 calc(12px * var(--ts2))/1.25 var(--font); letter-spacing: 0;
}
.hh-dishes { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 1px; }
.hh-line .gone { opacity: 0.55; }
.hh-cn {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 2px;
  font: 600 calc(11px * var(--ts2))/1.2 var(--font); color: var(--ink-soft); letter-spacing: 0;
}
/* the small "+": someone with this meal row still has nothing here (the cell's free room asks too) —
   quiet, in the corner, so a board full of family lines does not become a board of buttons */
.hh-plus {
  align-self: flex-end; flex: none;
  min-width: 30px; min-height: 26px; margin-top: auto; padding: 0 6px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 calc(15px * var(--ts2))/1 var(--font); color: var(--ink-soft);
  border: 1.5px dashed rgba(0, 0, 0, 0.22); opacity: 0.8;
}
.hh-plus:active { background: rgba(0, 0, 0, 0.07); }
.hh-cell[data-act] { cursor: pointer; }
@media (min-width: 700px) {
  .wb .note.hh-cell:not(.empty) { font-size: calc(15px * var(--ts)); padding: 14px 5px 6px; gap: 3px; }
  .hh-who { font-size: calc(13.5px * var(--ts)); }
  .hh-cn { font-size: calc(12.5px * var(--ts)); }
}

/* ---------------- the month: a coloured dot per family member who eats that day ---------------- */
.hh-dots { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 4px; padding: 1px 2px 0; }
.hh-dot {
  display: inline-flex; align-items: center; gap: 1px;
  font: 800 calc(10.5px * var(--ts2))/1 var(--font); color: var(--ink-soft); font-variant-numeric: tabular-nums;
}
.hh-dot::before {
  content: ""; flex: none;
  width: calc(10px * var(--ts2)); height: calc(10px * var(--ts2)); border-radius: 50%;
  background: var(--bc, #6ba368);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5), 0 1px 1px rgba(0, 0, 0, 0.2);
}
.hh-dot i { font-style: normal; }
.hh-legend .bdot { width: calc(11px * var(--ts2)); height: calc(11px * var(--ts2)); }
@media (min-width: 700px) {
  .hh-dots { gap: 4px 6px; padding: 2px 3px 0; }
  .hh-dot { font-size: calc(12.5px * var(--ts)); gap: 2px; }
  .hh-dot::before { width: calc(13px * var(--ts2)); height: calc(13px * var(--ts2)); }
}

/* ---------------- the "כולם" day sheet: every meal, a line per family member ---------------- */
.hh-drow {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 4px; border-bottom: 1.5px solid var(--rule);
}
.hh-drow .ds-name { padding-top: 13px; }
.hh-dlines { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.hh-dline.note.ds-note {
  display: block; max-width: none; min-height: 48px;
  padding: 13px 10px 8px; text-align: start;
  font: 600 calc(16px * var(--ts))/1.25 var(--hand);
}
.hh-dlines .hh-dline:nth-child(even) { transform: rotate(0.7deg); }
.hh-dline .bdot { width: calc(11px * var(--ts2)); height: calc(11px * var(--ts2)); }
.hh-dline .hh-who { max-width: 10em; font-size: calc(14.5px * var(--ts)); }
.hh-dline .hh-cn { font-size: calc(14px * var(--ts)); -webkit-line-clamp: 3; }
.hh-dline .hh-dishes { -webkit-line-clamp: 5; margin-top: 2px; }
.hh-dline.hh-soft { background: transparent; box-shadow: none; transform: none; border: 2px dashed #C7CCD4; padding-top: 8px; }
.hh-dline.hh-soft::after { display: none; }
.hh-dadd {
  display: flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 6px 12px; border-radius: 4px;
  font: 700 calc(15px * var(--ts))/1.2 var(--font); color: var(--ink-soft); text-align: start;
  border: 2px dashed #C7CCD4;
}
.hh-dadd .plus { font-size: calc(22px * var(--ts)); line-height: 1; }
.hh-dadd:active { background: rgba(0, 0, 0, 0.05); }

/* ---------------- "למי להוסיף?" ---------------- */
.hh-choose { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 10px; }
.hh-choose .bchip { min-height: 48px; }
.hh-has { font: 800 calc(15px * var(--ts))/1 var(--font); color: var(--marker-green); }

/* ---------------- the clean look ("לבן ולימון") ---------------- */
/* no paper, tilt, dashes or shadow there: grey cells split by hairlines, flat dots */
html[data-theme="clean"] .install-hint.hh-hint { transform: none; background: var(--c-lemon-soft); }
html[data-theme="clean"] .wb .note.hh-cell:not(.empty) {
  padding: 6px 4px 5px; gap: 1px;
  font: 500 calc(13px * var(--ts2))/1.25 var(--c-sans); letter-spacing: 0;
}
html[data-theme="clean"] .wb .note.hh-cell.hh-soft { background: var(--c-fill); border: 0; }
html[data-theme="clean"] .wrow.today > .note.hh-cell.hh-soft { background: transparent; }
html[data-theme="clean"] .hh-cell .hh-line + .hh-line { border-top: 1px solid var(--c-line); }
html[data-theme="clean"] .hh-line { color: var(--c-ink); border-radius: 8px; }
html[data-theme="clean"] .hh-line:active { background: var(--c-fill2); }
@media (hover: hover) { html[data-theme="clean"] .hh-line:hover { background: var(--c-fill2); } }
html[data-theme="clean"] .hh-who { font: 700 calc(12px * var(--ts2))/1.3 var(--c-sans); }
html[data-theme="clean"] .hh-cn { font-family: var(--c-sans); font-weight: 500; color: var(--c-ink2); }
html[data-theme="clean"] .hh-plus { border: 1.5px solid var(--c-ink4); color: var(--c-ink3); font-family: var(--c-sans); font-weight: 400; }
html[data-theme="clean"] .hh-plus:active { background: var(--c-fill2); }
html[data-theme="clean"] .hh-dot { color: var(--c-ink2); font-family: var(--c-sans); font-weight: 600; }
html[data-theme="clean"] .hh-dot::before { box-shadow: none; }
html[data-theme="clean"] .hh-drow { border-bottom: 1px solid var(--c-line); padding: 8px 0; }
html[data-theme="clean"] .hh-dline.note.ds-note {
  min-height: 48px; padding: 10px 12px; border-radius: 12px; transform: none;
  font: 500 calc(15.5px * var(--ts))/1.3 var(--c-sans);
}
html[data-theme="clean"] .hh-dlines .hh-dline:nth-child(even) { transform: none; }
html[data-theme="clean"] .hh-dline.hh-soft { background: var(--c-fill); border: 0; }
html[data-theme="clean"] .hh-dline .hh-who { font-size: calc(14px * var(--ts)); }
html[data-theme="clean"] .hh-dadd {
  border: 1.5px dashed var(--c-ink4); border-radius: 12px;
  color: var(--c-ink2); font: 600 calc(15px * var(--ts))/1.2 var(--c-sans);
}
html[data-theme="clean"] .hh-dadd:active { background: var(--c-fill); }
html[data-theme="clean"] .hh-has { color: var(--c-ink); }
@media (min-width: 700px) {
  html[data-theme="clean"] .wb .note.hh-cell:not(.empty) { font-size: calc(14.5px * var(--ts)); padding: 7px 6px 6px; }
  html[data-theme="clean"] .hh-who { font-size: calc(13px * var(--ts)); }
}

@media (prefers-reduced-motion: reduce) {
  .hh-dlines .hh-dline:nth-child(even) { transform: none; }
}
