/* Design C2 "עוד רגעים ביום": the four extra moment cards (email campaign, call, signature, payroll) in design C's
 * card language, and the wide-screen fold that keeps a full column readable: the oldest cards close to their header
 * line, with the hour, as the day goes on. Loaded after css/test-home-motion-c.css.
 */

/* ---------- wide screens: a column shows the cards whose hour came, the oldest folded ---------- */

@media (min-width: 901px) {
  html.c-hours-fold .c-col { justify-content: flex-start; }
  html.c-hours-fold .c-slot.is-later { display: none; }

  html.c-hours-fold .c-card {
    max-height: var(--full-h, none);
    overflow: hidden;
    transition: max-height 0.55s var(--ease-out), box-shadow 0.3s ease;
  }

  html.c-hours-fold .c-card > :not(.c-card-head) { transition: opacity 0.3s ease; }
  html.c-hours-fold .c-slot.is-folded .c-card { max-height: var(--fold-h, 54px); }
  html.c-hours-fold .c-slot.is-folded .c-card > :not(.c-card-head) { opacity: 0; }
  html.c-hours-fold .c-slot.is-folded .c-card-head { margin-bottom: 0; }
}

/* the card rules carry .c-card, so a still (reduced motion) inside a chapter's text keeps their sizes */
.c-card .c-draft-meta { font-size: 12px; }

/* ---------- 10:00 email campaign ---------- */

.c-card .c-mail { display: grid; gap: 3px; padding: 9px 12px 10px; border-radius: 12px; background: var(--bg); }
.c-card .c-mail-top { display: flex; align-items: baseline; gap: 8px; }
.c-card .c-mail-top small { color: var(--ink-2); font-size: 12px; }
.c-card .c-mail-top b { font-size: 15px; letter-spacing: -0.01em; }
.c-card .c-mail-to { color: var(--ink-2); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.c-card .c-mail-after { margin-top: 8px; min-height: 34px; align-items: center; }
.c-card .c-check { display: flex; align-items: center; gap: 8px; color: #0b7a47; font-size: 13px; font-weight: 500; }
.c-card .c-check::before { content: ''; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--green); }
.c-card .c-stats { display: flex; gap: 8px; }
.c-card .c-stats span { flex: 1; padding: 5px 10px; border-radius: 10px; background: var(--cat-soft); color: var(--cat-ink); font-size: 12.5px; font-weight: 500; font-variant-numeric: tabular-nums; }
.c-card .c-stats b { font-size: 15px; font-weight: 700; }

/* ---------- 14:00 phone call ---------- */

.c-card .c-call { display: flex; align-items: center; gap: 11px; }
.c-card .c-call-sub small { color: var(--ink-2); font-size: 12.5px; }
.c-card .c-call-end { justify-items: end; align-items: center; margin-inline-start: auto; }
.c-card .c-call-btns { display: flex; gap: 6px; }
.c-card .c-call-btn { display: inline-flex; align-items: center; min-height: 32px; padding: 0 13px; border-radius: 99px; color: #fff; font-size: 12.5px; font-weight: 600; transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.32s ease; }
.c-card .c-call-no { background: #c8331f; }
.c-card .c-call-yes { background: var(--green-deep); }
.c-card .c-chip-rec { background: var(--cat-soft); color: var(--cat-ink); white-space: nowrap; }
.c-card .c-chip-agent { white-space: nowrap; }
.c-card .c-ai { margin-top: 9px; padding: 8px 12px 9px; border-radius: 12px; background: var(--cat-soft); }
.c-card .c-ai .c-draft-meta { color: var(--cat-ink); }
.c-card .c-ai .c-morph { justify-items: start; align-items: start; min-height: 40px; }
.c-card .c-ai-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 1px; font-size: 13px; line-height: 1.4; }
.c-card .c-ai-list li { position: relative; padding-inline-start: 13px; }
.c-card .c-ai-list li::before { content: ''; position: absolute; inset-inline-start: 0; top: 0.55em; width: 5px; height: 5px; border-radius: 50%; background: var(--cat); }
.c-card .c-call-ai { min-height: 32px; font-size: 12.5px; background: var(--surface); }

/* ---------- 16:00 signature ---------- */

.c-card .c-doc { display: grid; gap: 2px; padding: 8px 12px 9px; border-radius: 12px; background: var(--bg); }
.c-card .c-doc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.c-card .c-doc-top b { font-size: 14.5px; }
.c-card .c-doc-to { color: var(--ink-2); font-size: 12.5px; }
.c-card .c-pad { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 4px 10px; border-radius: 12px; outline: 1.5px dashed #c9c1f5; outline-offset: -1.5px; background: #faf9ff; }
.c-card .c-pad svg { width: 92px; height: 38px; flex: none; }
.c-card .c-pad path { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.9s var(--ease-out); }
.c-card .c-pad.is-drawn path { stroke-dashoffset: 0; }
.c-card .c-pad p { display: flex; align-items: flex-start; gap: 7px; color: var(--ink-2); font-size: 12px; line-height: 1.35; }
.c-card .c-box { width: 14px; height: 14px; flex: none; margin-top: 1px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px #a59fc4; transition: background 0.3s ease, box-shadow 0.3s ease; }
.c-card .c-pad.is-drawn .c-box { background: var(--indigo); box-shadow: inset 0 0 0 4px var(--indigo), inset 0 0 0 7px #fff; }
.c-card .c-done-line { display: flex; align-items: center; gap: 8px; color: var(--cat-ink); font-size: 13.5px; font-weight: 600; }
.c-card .c-done-line::before { content: ''; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--cat); }

/* ---------- 18:00 payroll ---------- */

.c-card .c-run { display: grid; gap: 6px; padding: 9px 12px 10px; border-radius: 12px; background: var(--bg); }
.c-card .c-run-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.c-card .c-run-top b { font-size: 14.5px; }
.c-card .c-run .c-morph { min-height: 44px; align-items: center; }
.c-card .c-run-empty { color: var(--ink-2); font-size: 12.5px; line-height: 1.4; }
.c-card .c-kpis { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 6px; }
.c-card .c-kpis span { display: grid; padding: 4px 9px; border-radius: 10px; background: var(--surface); }
.c-card .c-kpis small { color: var(--ink-2); font-size: 11.5px; }
.c-card .c-kpis b { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.c-card .c-pill-review { background: #fff5e0; color: #9a5b00; }
.c-card .c-pill-lock { background: var(--ink); color: #fff; }


@media (prefers-reduced-motion: reduce) {
  .c-card .c-pad path { transition: none; }
  html.c-hours-fold .c-card { transition: none; }
}
