/* ob-today-saarthi.css (V2-T7). Saarthi's line (#ob-saarthi-line), the Next step (#ob-next-step) and the
   Decisions summary (#ob-decisions-summary). Tokens --ob3-* only. Loaded after ob-today.css. */

/* ── Saarthi's line ───────────────────────────────────────────────────────── */
.ob-offline-chip {
  display: inline-flex; align-items: center; padding: 2px 10px; border-radius: var(--ob3-radius-full);
  font-size: var(--ob3-text-label); line-height: var(--ob3-leading-label); font-weight: var(--ob3-weight-semibold);
  background: var(--ob3-attention-tint); color: var(--ob3-ink); border: 1px solid var(--ob3-attention);
}
body.obds-app .ob-today a.ob-saarthi-open { display: block; text-decoration: none; color: var(--ob3-ink) !important; border-radius: var(--ob3-radius-xs); }
.ob-saarthi-open:focus-visible, .ob-saarthi-why:focus-visible, .ob-next-btn:focus-visible, .ob-next-tick:focus-visible, .ob-dec-all:focus-visible {
  outline: var(--ob3-focus-width) solid var(--ob3-focus); outline-offset: var(--ob3-focus-offset);
}
.ob-saarthi-line {
  display: block; font-family: var(--ob3-font-serif); font-size: var(--ob3-text-saarthi-lg); line-height: var(--ob3-leading-saarthi-lg);
  font-weight: var(--ob3-weight-semibold); letter-spacing: var(--ob3-tracking-title); color: var(--ob3-ink);
}
.ob-saarthi-sub { display: block; margin-top: var(--ob3-space-2); font-size: var(--ob3-text-body-sm); line-height: var(--ob3-leading-body-sm); color: var(--ob3-muted); }
body.obds-app .ob-today a.ob-saarthi-why {
  display: inline-flex; align-items: center; margin-top: var(--ob3-space-2); font-size: var(--ob3-text-meta); font-weight: var(--ob3-weight-semibold);
  text-decoration: none; color: var(--ob3-accent-text) !important;
}

/* ── Next step ────────────────────────────────────────────────────────────── */
.ob-next-card {
  box-sizing: border-box; border-radius: var(--ob3-radius-card); padding: var(--ob3-space-4);
  background: var(--ob3-surface); border: 1px solid var(--ob3-line); color: var(--ob3-ink);
}
.ob-next-eyebrow {
  margin: 0 0 var(--ob3-space-2); font-size: var(--ob3-text-label); line-height: var(--ob3-leading-label);
  font-weight: var(--ob3-weight-semibold); letter-spacing: var(--ob3-tracking-label); text-transform: uppercase; color: var(--ob3-muted);
}
.ob-next-row { display: flex; align-items: center; gap: var(--ob3-space-3); }
.ob-next-text { flex: 1; min-width: 0; }
.ob-next-title { margin: 0; font-size: var(--ob3-text-card-title); line-height: var(--ob3-leading-card-title); font-weight: var(--ob3-weight-semibold); color: var(--ob3-ink); overflow-wrap: anywhere; }
.ob-next-meta { margin: 2px 0 0; font-size: var(--ob3-text-meta); line-height: var(--ob3-leading-meta); color: var(--ob3-muted); }
.ob-next-tick {
  flex: 0 0 auto; box-sizing: border-box; width: 28px; height: 28px; padding: 0; border-radius: 50%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 2px solid var(--ob3-line-strong); color: transparent;
  transition: background var(--ob-dur-chip, var(--ob3-dur-short)) var(--ob-ease-chip, var(--ob3-ease)), border-color var(--ob-dur-chip, var(--ob3-dur-short)) var(--ob-ease-chip, var(--ob3-ease));
}
.ob-next-tick:hover { border-color: var(--ob3-accent); }
.ob-next-card.is-done .ob-next-tick { background: var(--ob3-good); border-color: var(--ob3-good); color: var(--ob3-on-accent); }
.ob-next-card.is-done .ob-next-title { text-decoration: line-through; color: var(--ob3-muted); }
.ob-next-tick-mark { font-size: 15px; line-height: 1; font-weight: var(--ob3-weight-bold); }
.ob-next-actions { display: flex; flex-wrap: wrap; gap: var(--ob3-space-2); margin-top: var(--ob3-space-3); }
body.obds-app .ob-today .ob-next-btn, .ob-next-btn {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 32px; padding: 6px 16px;
  border-radius: var(--ob3-radius-full); border: 1px solid var(--ob3-line-strong); background: var(--ob3-surface);
  color: var(--ob3-ink) !important; font: inherit; font-size: var(--ob3-text-body-sm); font-weight: var(--ob3-weight-semibold);
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
body.obds-app .ob-today .ob-next-btn.is-primary, .ob-next-btn.is-primary { background: var(--ob3-accent); border-color: var(--ob3-accent); color: var(--ob3-on-accent) !important; }
.ob-next-btn[disabled] { opacity: 0.6; cursor: default; }
.ob-next-err { margin: var(--ob3-space-3) 0 0; font-size: var(--ob3-text-meta); line-height: var(--ob3-leading-meta); color: var(--ob3-alert); font-weight: var(--ob3-weight-semibold); }

/* ── Decisions summary ────────────────────────────────────────────────────── */
.ob-dec-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--ob3-space-2); }
.ob-dec-item {
  display: flex; align-items: center; gap: var(--ob3-space-3); box-sizing: border-box; padding: var(--ob3-space-3) var(--ob3-space-4);
  border-radius: var(--ob3-radius-card); background: var(--ob3-surface); border: 1px solid var(--ob3-line);
}
.ob-dec-item.is-emergency { border-color: var(--ob3-alert); background: var(--ob3-alert-tint); }
.ob-dec-text { flex: 1; min-width: 0; }
.ob-dec-title { margin: 0; font-size: var(--ob3-text-body-sm); line-height: var(--ob3-leading-body-sm); font-weight: var(--ob3-weight-semibold); color: var(--ob3-ink); overflow-wrap: anywhere; }
.ob-dec-state { box-sizing: border-box; padding: var(--ob3-space-4); border-radius: var(--ob3-radius-card); background: var(--ob3-surface); border: 1px solid var(--ob3-line); }
.ob-dec-state .ob-next-btn { margin-top: var(--ob3-space-3); }
.ob-dec-state-title { margin: 0; font-size: var(--ob3-text-body); font-weight: var(--ob3-weight-semibold); color: var(--ob3-ink); }
.ob-dec-partial { margin-top: var(--ob3-space-2); }
.ob-dec-all {
  display: inline-flex; align-items: center; margin-top: var(--ob3-space-3); padding: 4px 0; background: none; border: 0; cursor: pointer; text-decoration: none;
  font: inherit; font-size: var(--ob3-text-body-sm); font-weight: var(--ob3-weight-semibold); color: var(--ob3-accent-text);
}

@media (max-width: 899px) {
  .ob-next-tick { width: 44px; height: 44px; }
  .ob-next-btn, .ob-dec-all, .ob-saarthi-why { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .ob-next-tick { transition: none; }
}
/* Beats theme.css's `:root[data-theme] button { background/color/border !important }`: the board draws Review all as an accent link, not a boxed button. */
body.obds-app .ob-today a.ob-dec-all, body.obds-app .ob-today button.ob-dec-all { background: transparent !important; border: 0 !important; box-shadow: none !important; color: var(--ob3-accent-text) !important; padding: 4px 0; }
.ob-brief-full { margin-top: var(--ob3-space-3); padding-top: var(--ob3-space-3); border-top: 1px solid var(--ob3-line); }
.ob-brief-full[hidden] { display: none; }
.ob-brief-full-text { margin: 0 0 var(--ob3-space-2); font-size: var(--ob3-text-body-sm); line-height: var(--ob3-leading-body-sm); color: var(--ob3-ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.ob-brief-full-h { margin: var(--ob3-space-3) 0 var(--ob3-space-1); font-size: var(--ob3-text-label); font-weight: var(--ob3-weight-semibold); letter-spacing: var(--ob3-tracking-label); text-transform: uppercase; color: var(--ob3-muted); }
.ob-brief-full-why { margin: 0; padding-left: 18px; font-size: var(--ob3-text-meta); line-height: var(--ob3-leading-meta); color: var(--ob3-muted); }
#ob-notices { margin-top: var(--ob3-space-4); }
.ob-notices-head { margin: 0 0 var(--ob3-space-2); }
.ob-notices-body { display: flex; flex-direction: column; gap: var(--ob3-space-2); }

/* ═════════════════════════════════════════════════════════════════════════════
   R5-T9: the Saarthi card, Next step and the Decisions rows to the boards.
   ═════════════════════════════════════════════════════════════════════════════ */

/* ── Saarthi's card: a larger orb, a chevron at the right (the whole line opens the Full brief) ── */
.ob-saarthi { position: relative; padding: var(--ob3-space-4) 48px var(--ob3-space-4) var(--ob3-space-4); border-radius: 24px; }
.ob-saarthi::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 8px; height: 8px; box-sizing: border-box; pointer-events: none;
  border-top: 2px solid var(--ob3-accent-text); border-right: 2px solid var(--ob3-accent-text); transform: translateY(-50%) rotate(45deg);
}
.ob-saarthi-head { gap: 10px; margin-bottom: var(--ob3-space-2); }
.ob-orb { width: 32px; height: 32px; box-shadow: 0 0 0 3px var(--ob3-surface); }
.ob-saarthi-eyebrow { font-size: var(--ob3-text-meta); letter-spacing: 0.01em; }
@media (min-width: 900px) {
  .ob-saarthi .ob-saarthi-line, .ob-saarthi #ob-today-brief .ob-clamp { font-size: 22px; line-height: 28px; }
}

/* ── Next step: the label sits in the text column; the tick is an empty circle; Start is a 104 x 44 pill ── */
.ob-next-card { border-radius: 22px; padding: var(--ob3-space-3) var(--ob3-space-4); }
.ob-next-row { gap: var(--ob3-space-3); }
.ob-next-text .ob-next-eyebrow {
  margin: 0; font-size: var(--ob3-text-meta); line-height: var(--ob3-leading-meta); letter-spacing: 0; text-transform: none; color: var(--ob3-accent-text);
}
.ob-next-text .ob-next-title { font-size: 15px; line-height: 20px; }
body.obds-app .ob-today .ob-next-tick {
  width: 32px; height: 32px; background: transparent !important; color: transparent !important; border: 2px solid var(--ob3-line-strong) !important;
}
body.obds-app .ob-today .ob-next-card.is-done .ob-next-tick { background: var(--ob3-good) !important; border-color: var(--ob3-good) !important; color: var(--ob3-on-accent) !important; }
body.obds-app .ob-today .ob-next-row .ob-next-btn { width: 104px; min-height: 44px; height: 44px; padding: 0 !important; flex: 0 0 auto; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 899px) { .ob-next-tick { width: 44px; height: 44px; } body.obds-app .ob-today .ob-next-tick { width: 44px; height: 44px; } }

/* (T-VISUAL-TODAY: the old Decisions summary rows (.ob-dec-*) and their reservations were removed; Today draws Needs you,
   ob-today-needs.css.) */

@media (min-width: 1280px) {
  #ob-today-brief:empty { min-height: 112px; }
  #ob-next-step:empty { min-height: 96px; }
}

/* ── t6531: the Morning pass entry on the Saarthi card (replaces "Saarthi · 07:30") ─────────────────────────────── */
html[data-pass-card] #ob-saarthi-line > .ob-saarthi-head, html[data-pass-card] #ob-saarthi-line > #ob-today-brief { display: none; }
.ob-pass-card { display: flex; flex-direction: column; gap: var(--ob3-space-2); text-decoration: none; color: var(--ob3-ink) !important; }
.ob-pass-card:focus-visible { outline: var(--ob3-focus-width) solid var(--ob3-focus); outline-offset: var(--ob3-focus-offset); border-radius: var(--ob3-radius-xs); }
.ob-pass-head { display: flex; align-items: center; gap: var(--ob3-space-2); }
.ob-pass-label { flex: 1 1 auto; font-size: var(--ob3-text-meta); font-weight: var(--ob3-weight-semibold); color: var(--ob3-saarthi); }
.ob-pass-start { font-size: var(--ob3-text-meta); font-weight: var(--ob3-weight-bold); color: var(--ob3-saarthi); }
.ob-pass-n { font-family: var(--ob3-font-serif); font-size: var(--ob3-text-saarthi-lg); line-height: var(--ob3-leading-saarthi-lg); font-weight: var(--ob3-weight-semibold); color: var(--ob3-ink); }
.ob-pass-sub { font-size: var(--ob3-text-body-sm); line-height: var(--ob3-leading-body-sm); color: var(--ob3-muted); }
html[data-pass-card] #ob-saarthi-line::after { content: none; }
html[data-pass-card] #ob-saarthi-line { padding-right: var(--ob3-space-4); }
/* 7.0.1: on a built day the pass card sits in its own slot under the Your day card (Saarthi's card is hidden there). */
.ob-pass-slot::after { content: none; }
.ob-pass-slot { padding-right: var(--ob3-space-4); }
