/* Special dates: countdown, plans, suggestions from memories, family history, calendar export.
   (The base date cards and "Coming up" cards are in app.css.) */

/* the next big day, counting down */
.dt-hero {
  margin: 10px 0 14px; padding: 16px 16px 14px; border-radius: 22px; color: #1a1405;
  background: linear-gradient(135deg, #ffcf24 0%, #ffb15c 55%, #ff8fb1 100%);
}
.dt-hero-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; opacity: .7; }
.dt-hero-title { font-size: 22px; font-weight: 800; letter-spacing: -.01em; margin-top: 2px; overflow-wrap: anywhere; }
.dt-hero-when { font-size: 14px; opacity: .8; margin-top: 1px; }
.dt-count { display: flex; gap: 8px; margin: 14px 0 12px; }
.dt-unit { flex: 1; min-width: 0; text-align: center; background: rgba(255,255,255,.55); border-radius: 14px; padding: 8px 4px 6px; }
.dt-unit b { display: block; font-size: 30px; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; }
.dt-unit span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; opacity: .75; }
.dt-today { flex: 1; text-align: center; font-size: 26px; font-weight: 800; background: rgba(255,255,255,.55); border-radius: 14px; padding: 12px 6px; }
.dt-hero-plans {
  display: block; width: 100%; text-align: left; border: 0; border-radius: 12px; padding: 9px 12px;
  background: rgba(255,255,255,.4); color: inherit; font-size: 14px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* plans and notes on a date card */
.dt-plans, .dt-add-plans {
  display: block; width: 100%; text-align: left; border: 0; margin-top: 10px; border-radius: 12px; color: var(--fg);
}
.dt-plans { background: var(--bg); padding: 9px 12px; }
.dt-plans.old { opacity: .7; }
.dt-plans-label { display: block; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.dt-plans-text {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  white-space: pre-line; font-size: 14px; overflow-wrap: anywhere;
}
.dt-add-plans { background: transparent; padding: 4px 2px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.dt-textarea {
  width: 100%; border-radius: 13px; border: 1.5px solid var(--line); background: var(--bg); color: var(--fg);
  padding: 10px 14px; font: inherit; font-size: 16px; resize: vertical; min-height: 110px;
}
.dt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 14px; }
.dt-chips .tab { font-size: 13px; padding: 6px 11px; }
.dt-past { margin-top: 4px; }
.dt-past-row { display: flex; gap: 10px; padding: 8px 2px; border-top: 1px solid var(--line); font-size: 14px; }
.dt-past-row b { flex: none; width: 44px; color: var(--muted); }
.dt-past-row span { white-space: pre-line; overflow-wrap: anywhere; min-width: 0; }

/* calendar export */
.dt-cal { margin: 6px 0 4px; }
.dt-cal-help { margin: 12px 0 10px; }

/* suggestions from memories */
.dt-section { margin-top: 18px; }
.dt-sug { display: flex; gap: 12px; align-items: center; padding: 10px 2px; border-top: 1px solid var(--line); }
.dt-sug .date-txt span { overflow-wrap: anywhere; }
.mini.dt-thumb { width: 46px; height: 46px; border-radius: 12px; }
.dt-x {
  flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--muted);
  font-size: 22px; line-height: 1; display: grid; place-items: center; padding: 0 0 2px; margin-left: -6px;
}

/* family history (read-only dates from other parts of the app) */
.dt-note { margin: -4px 4px 6px; }
.dt-family { border-radius: 16px; background: var(--chip); overflow: hidden; }
.dt-frow {
  display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; border: 0; background: transparent;
  color: var(--fg); padding: 10px 12px; border-top: 1px solid var(--line);
}
.dt-frow:first-child { border-top: 0; }
.dt-frow .date-badge { background: var(--bg); color: var(--fg); }
.dt-more { margin: 8px 12px 12px; }
.coming-card.dt-coming-family { background: linear-gradient(135deg, #d9e6ff, #e9dcff); color: #141a2a; }
.coming-card .txt .dt-coming-plans { font-weight: 700; opacity: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
