/* Screen "today" (js/today.js). Uses the tokens in app.css; every class starts with td-. */

/* greeting */
.td-greet { padding: 16px; }
.td-hello { margin: 0 0 2px; font-size: 1.4em; color: var(--maroon); }
.td-date { margin: 0 0 8px; font-weight: 650; }
.td-meta { gap: 6px; }
.td-meta .pill { white-space: normal; font-size: .82em; padding: 3px 10px; }
.td-branch { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px dashed var(--saffron); }
.td-branch p { margin: 0 0 8px; }
.td-branch .btn { min-height: 44px; }

/* notices and announcements */
.td-note { padding: 10px 10px 10px 14px; }
.td-note-row { align-items: flex-start; }
.td-note-t { display: block; }
.td-note p { margin: 2px 0 6px; }
.td-x { width: 44px; height: 44px; background: transparent; font-size: 1em; color: var(--muted); }

/* live now */
.td-live { border: 2px solid #D92D20; background: var(--warnbg); }
.td-live-t { margin: 8px 0 2px; font-size: 1.15em; }
.td-live-part { font-weight: 650; }
.btn.td-join { margin-top: 8px; min-height: 54px; font-size: 1.05em; background: #D92D20; color: #fff; }
.td-live-hint { margin: 12px 0; }

/* jaap */
.td-jaap-row { gap: 14px; align-items: center; }
.td-jaap h2 { margin-bottom: 4px; }
.td-jaap .ring { width: 112px; height: 112px; }
.td-jaap .ring > div { width: 88px; height: 88px; }
.td-jaap .ring.td-full { background: conic-gradient(var(--good) 100%, var(--soft) 0); }
.td-jn { font-size: 1.15em; }
.td-jleft { margin: 2px 0; }
.td-sankalp { margin: 10px 0 4px; padding: 8px 10px; border-radius: 10px; background: var(--soft2); font-size: .92em; }
.td-jaap > .btn { margin-top: 10px; }

/* today's sadhana */
.td-prog .card-h { flex-wrap: wrap; }
.td-prog .bar { margin: 4px 0 10px; }
.td-all { justify-content: flex-start; gap: 12px; min-height: 60px; text-align: left; margin-bottom: 4px; }
.td-all-ic { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .22); flex: none; font-size: 1.05em; }
.td-all-tx { display: flex; flex-direction: column; line-height: 1.25; }
.td-all-tx .small { font-weight: 500; opacity: .92; }
.td-alldone { margin: 6px 0; padding: 8px 10px; border-radius: 10px; background: var(--goodbg); color: var(--good); font-weight: 650; }
.td-item { gap: 10px; }
.td-item .t { line-height: 1.3; }
.td-time { display: inline-block; margin-right: 6px; color: var(--saffron2); font-weight: 700; font-size: .9em; }
.td-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.td-check { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--saffron); background: var(--card); color: #fff; font-size: 1.15em; font-weight: 800; cursor: pointer; flex: none; display: grid; place-items: center; padding: 0; }
.td-item.done .td-check { background: var(--good); border-color: var(--good); }
.td-item.done .t { color: var(--muted); }
.td-play { background: var(--saffron); color: #fff; }

/* pravachan and series */
.td-media { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; margin: 4px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--soft2); color: inherit; text-align: left; cursor: pointer; min-height: 64px; }
.td-media:active { transform: scale(.99); }
.td-media .t, .td-media .d, .td-media .small { display: block; }
.td-media .t { font-weight: 650; line-height: 1.3; }
.td-media .d { font-size: .84em; color: var(--muted); }
.td-aud { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--soft); font-size: 1.4em; flex: none; }
.td-go { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--saffron); color: #fff; flex: none; }
.td-nothumb { background: var(--maroon); }

/* affirmation and blessing */
.td-affirm { font-size: 1.08em; font-weight: 600; line-height: 1.55; margin: 4px 0; }
.td-bless { margin: 6px 0 10px; }

/* next satsang */
.td-cname { margin: 0 0 6px; }
.td-when { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 12px; border-radius: 12px; background: var(--soft); margin: 6px 0; }
.td-day { font-weight: 750; color: var(--maroon); font-size: 1.05em; }
.td-tm { font-weight: 650; }
.td-lines { margin: 6px 0; padding-left: 1.2em; }
.td-lines li { margin: 4px 0; }
.td-rem-on { margin: 8px 0 4px; }
.td-cal { margin-top: 6px; }
.td-next .btn.primary.block { margin-top: 6px; }
.td-next-links { margin-top: 10px; }
.td-next-links .chip { min-height: 44px; }
.td-cpick { justify-content: flex-start; text-align: left; }

/* events */
.td-ev { align-items: flex-start; }
.td-ev .btn { flex: none; align-self: center; }
.td-ev.hi { background: var(--amberbg); border-radius: 12px; padding-left: 8px; padding-right: 8px; border-bottom-color: transparent; margin: 4px 0; }
.td-ev-p { margin-top: 4px; gap: 4px; }
.td-events > .btn { margin-top: 8px; }

/* footer */
.td-foot { margin: 18px 0 8px; }
.td-foot .btn { justify-content: flex-start; text-align: left; }
.td-foot p { margin-top: 12px; line-height: 1.45; }

@media (max-width: 380px) {
  .td-jaap .ring { width: 96px; height: 96px; }
  .td-jaap .ring > div { width: 76px; height: 76px; }
  .td-jn { font-size: 1em; }
  .td-media .vthumb { width: 92px; }
  .td-ev .big-ic { display: none; }
}
