/* היום (design/home alternative A): tonight's meal, what is missing, one saffron action, the conversation row and the week. */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
svg.i { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[data-primary] { scroll-margin-block-end: calc(var(--chrome-h) + var(--sp-4)); }

.hm { padding-block: var(--sp-2) var(--sp-5); }
.hm-cols { display: block; }
.hm-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.hm-kicker { color: var(--ink-2); font-size: var(--fs-sm); margin: 0; }
.hm-more { width: var(--tap-min); height: var(--tap-min); margin-inline-end: calc(var(--sp-2) * -1); border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink-2); display: grid; place-items: center; }
.hm-dish { font-size: var(--fs-2xl); font-weight: var(--fw-regular); line-height: var(--lh-tight); margin: var(--sp-1) 0 var(--sp-2); text-wrap: balance; overflow-wrap: anywhere; }
.hm-dish a { color: inherit; text-decoration: none; border-radius: var(--r-sm); }
/* min-height: the servings and time arrive after the first paint (fillFacts); the line keeps its room so the buttons under
   it do not jump (that jump was most of the home screen's layout shift) */
.hm-meta { color: var(--ink-2); margin: 0 0 var(--sp-3); display: flex; flex-wrap: wrap; gap: 0 var(--sp-3); min-height: 1.5em; }
.hm-meta > span:empty { display: none; }
/* the "continue the conversation" row is drawn after the first paint; when this device saw a conversation last time its room
   is kept from the start (the week under it would otherwise move) */
#hm-conv.hm-conv-wait { min-height: calc(64px + var(--sp-4)); }
.hm-meta .hm-why { flex-basis: 100%; }
.hm-chips { margin: var(--sp-2) 0 var(--sp-4); }
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.hm .chip { min-height: 36px; padding: 0 var(--sp-3); font-size: var(--fs-sm); font-weight: var(--fw-medium); border: 1px solid var(--line-strong); box-shadow: none; max-width: 100%; white-space: normal; }
.hm .chip.have { background: var(--herb-soft); color: var(--on-herb-soft); border-color: transparent; }
.hm .chip.now { background: var(--accent-soft); color: var(--on-accent-soft); border-color: transparent; } /* today in the week: a highlight, not a state (green is have / done) */
.hm .chip.prop { border-style: dashed; }
.hm a.chip { text-decoration: none; min-height: 44px; }
.hm .btn { width: 100%; }
.hm .btn.quiet { width: auto; flex: 1 1 auto; box-shadow: none; background: transparent; color: var(--accent-ink); }
.hm .btn.primary { width: 100%; }
.hm .btn:focus-visible { box-shadow: var(--focus); }
.hm-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-2); }
.hm-row .btn.quiet { justify-content: center; }
.hm-done { margin: 0 0 var(--sp-3); }
.hm-sec { font-family: var(--font); font-size: var(--fs-lg); font-weight: var(--fw-bold); margin: var(--sp-5) 0 var(--sp-2); }
.hm-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4); margin: var(--sp-2) 0 0; }
.hm .link, a.link { color: var(--accent-ink); font-weight: var(--fw-bold); text-decoration: none; display: inline-flex; align-items: center; min-height: var(--tap-min); }
.hm-wd { color: var(--ink-2); font-weight: var(--fw-regular); }
.hm-week .chip.now .hm-wd { color: inherit; }
.hm-conv { display: flex; align-items: center; gap: var(--sp-3); width: 100%; min-height: 64px; margin-block: var(--sp-4) 0; padding: var(--sp-2) 0; background: none; border: 0; border-block: 1px solid var(--line); text-align: start; color: inherit; }
.hm-av { width: 40px; height: 40px; border-radius: 50%; background: var(--info-soft); color: var(--on-info-soft); display: grid; place-items: center; font-weight: var(--fw-bold); flex: none; }
.hm-conv-t { flex: 1; min-width: 0; }
.hm-conv-t b { display: block; }
.hm-conv-t span { display: block; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm .tx-ask, .hm .tx-now, .hm .tx-push { margin-block: 0 var(--sp-3); }

@media (min-width: 900px) {
  .hm { padding-block: var(--sp-4) var(--sp-6); }
  .hm-cols { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--sp-7); align-items: start; }
  .hm-dish { font-size: var(--fs-3xl); }
  .hm .btn.primary { width: auto; min-width: 320px; }
  .hm-conv { margin-top: 0; }
  .hm-sec:first-child { margin-top: var(--sp-5); }
}
/* portrait tablet (tall): one column, as a phone with more room */
@media (min-width: 900px) and (min-height: 1200px) { .hm-cols { grid-template-columns: 1fr; gap: var(--sp-5); } }
:root[data-density="fridge"] .hm .chip { min-height: 56px; }
