/* ob-plan-panchang.css (R6-T3): the Panchang card, the phone strip and the sheet. Tokens --ob3-* only, Paper and Graphite
   through the themed roles. Every control is at least 44 px high. Loaded after ob-plan.css. */

.obpp-ico { flex: 0 0 auto; }
.obpp-card {
  background: var(--ob3-surface); border: 1px solid var(--ob3-line); border-radius: var(--ob3-radius-card);
  padding: var(--ob3-space-4); color: var(--ob3-ink); box-sizing: border-box;
}
.obpp-head { display: flex; align-items: center; justify-content: space-between; gap: var(--ob3-space-3); min-height: 44px; }
.obpp-title { display: inline-flex; align-items: center; gap: var(--ob3-space-2); font-size: var(--ob3-text-card-title); line-height: var(--ob3-leading-card-title); font-weight: var(--ob3-weight-semibold); }
.obpp-title .obpp-ico { color: var(--ob3-attention); }
.obpp-more {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 var(--ob3-space-3);
  border: 1px solid var(--ob3-line); border-radius: var(--ob3-radius-full); background: var(--ob3-surface);
  color: var(--ob3-ink); font: inherit; font-size: var(--ob3-text-body-sm); font-weight: var(--ob3-weight-medium); cursor: pointer;
}
.obpp-tithi { font-size: var(--ob3-text-body); line-height: var(--ob3-leading-body); margin-top: var(--ob3-space-1); }
.obpp-span { font-size: var(--ob3-text-meta); line-height: var(--ob3-leading-meta); color: var(--ob3-ink); margin-top: 4px; font-variant-numeric: tabular-nums; }
.obpp-sun, .obpp-next, .obpp-india { font-size: var(--ob3-text-meta); line-height: var(--ob3-leading-meta); color: var(--ob3-muted); margin-top: 4px; }
.obpp-next { color: var(--ob3-attention); font-weight: var(--ob3-weight-semibold); }

.obpp-chips { display: flex; flex-wrap: wrap; gap: var(--ob3-space-2); margin: var(--ob3-space-3) 0; }
.obpp-chip {
  min-height: 44px; padding: 0 var(--ob3-space-4); border-radius: var(--ob3-radius-full);
  border: 1px solid var(--ob3-line); background: var(--ob3-surface); color: var(--ob3-ink);
  font: inherit; font-size: var(--ob3-text-body-sm); font-weight: var(--ob3-weight-medium); cursor: pointer;
}
.obpp-chip.is-on { background: var(--ob3-inverse-surface); color: var(--ob3-on-inverse); border-color: var(--ob3-inverse-surface); font-weight: var(--ob3-weight-bold); }

.obpp-obs { display: flex; flex-wrap: wrap; gap: var(--ob3-space-2); margin-top: var(--ob3-space-2); }
.obpp-obs-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 var(--ob3-space-3); border-radius: var(--ob3-radius-full); background: var(--ob3-attention-tint); color: var(--ob3-attention); font-size: var(--ob3-text-meta); font-weight: var(--ob3-weight-semibold); }
.obpp-obs-india { color: var(--ob3-muted); font-weight: var(--ob3-weight-regular); }

.obpp-rows { display: flex; flex-direction: column; gap: var(--ob3-space-2); }
.obpp-card .obpp-row { min-height: 44px; padding: 0 var(--ob3-space-3); border-radius: var(--ob3-radius-control); background: var(--ob3-sunk); }
.obpp-card .obpp-row .obpp-pill { background: none; padding: 0; }
.obpp-card .obpp-row.is-x { background: none; }

.obpp-row { display: flex; align-items: center; justify-content: space-between; gap: var(--ob3-space-3); min-height: 44px; font-size: var(--ob3-text-body-sm); }
.obpp-lbl { min-width: 0; }
.obpp-pill { display: inline-block; padding: 2px var(--ob3-space-3); border-radius: var(--ob3-radius-full); font-variant-numeric: tabular-nums; font-weight: var(--ob3-weight-semibold); white-space: nowrap; }
.obpp-pill.is-good { background: var(--ob3-good-tint); color: var(--ob3-good); }
.obpp-pill.is-avoid {
  background: var(--ob3-attention-tint); color: var(--ob3-attention);
  background-image: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--ob3-attention-vivid) 22%, transparent) 6px 8px);
}
/* In the card the whole row is the tinted band (the board), the pill only carries the time. */
.obpp-card .obpp-row:has(.is-good) { background: var(--ob3-good-tint); color: var(--ob3-good); font-weight: var(--ob3-weight-semibold); }
.obpp-card .obpp-row:has(.is-avoid) { background: var(--ob3-attention-tint); color: var(--ob3-attention); font-weight: var(--ob3-weight-semibold); }
.obpp-card .obpp-pill.is-good, .obpp-card .obpp-pill.is-avoid { background: none; color: inherit; }
.obpp-card .obpp-pill { font-weight: var(--ob3-weight-regular); }

.obpp-approx { margin: var(--ob3-space-2) 0 var(--ob3-space-3); padding: var(--ob3-space-3); border-radius: var(--ob3-radius-control); background: var(--ob3-attention-tint); color: var(--ob3-ink); font-size: var(--ob3-text-body-sm); line-height: var(--ob3-leading-body-sm); }

.obpp-skel { height: 40px; border-radius: var(--ob3-radius-control); background: var(--ob3-sunk); margin-top: var(--ob3-space-2); }
.obpp-skel.is-short { width: 70%; }
.obpp-skel.is-inline { display: inline-block; width: 60%; height: 16px; margin: 0; }

/* City search */
.obpp-city { margin: 0 0 var(--ob3-space-3); }
.obpp-city-row { display: flex; gap: var(--ob3-space-2); }
.obpp-city-in { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 var(--ob3-space-3); border: 1px solid var(--ob3-line-strong); border-radius: var(--ob3-radius-control); background: var(--ob3-surface); color: var(--ob3-ink); font: inherit; font-size: var(--ob3-text-body-sm); box-sizing: border-box; }
.obpp-city-res { display: flex; flex-wrap: wrap; gap: var(--ob3-space-2); margin-top: var(--ob3-space-2); }

/* The phone strip: one 44 px row. */
.obpp-strip {
  display: flex; align-items: center; gap: var(--ob3-space-2); width: 100%; min-height: 44px; box-sizing: border-box;
  padding: 0 var(--ob3-space-4); border: 0; border-radius: var(--ob3-radius-card);
  background: var(--ob3-attention-tint); color: var(--ob3-ink); font: inherit; font-size: var(--ob3-text-body-sm); text-align: left; cursor: pointer;
}
.obpp-strip .obpp-ico:first-child { color: var(--ob3-attention); }
.obpp-strip-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.obpp-strip.is-loading { cursor: default; }

/* The sheet: bottom sheet on a phone, centred dialog from 640 px. */
#obp-sheet:not([hidden]) { position: fixed; inset: 0; z-index: 60; }
.obpp-backdrop { position: absolute; inset: 0; background: var(--ob3-scrim); }
.obpp-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 92%; overflow-y: auto; box-sizing: border-box;
  background: var(--ob3-surface); color: var(--ob3-ink); border-radius: var(--ob3-radius-sheet) var(--ob3-radius-sheet) 0 0;
  padding: var(--ob3-space-2) var(--ob3-space-4) var(--ob3-space-6); outline: none;
}
.obpp-grab { width: 40px; height: 4px; border-radius: 2px; background: var(--ob3-line-strong); margin: var(--ob3-space-2) auto var(--ob3-space-3); }
.obpp-sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--ob3-space-3); }
.obpp-sheet-head h2 { margin: 0; font-size: var(--ob3-text-title); line-height: var(--ob3-leading-title); font-weight: var(--ob3-weight-semibold); }
.obpp-sheet-sub { font-size: var(--ob3-text-meta); line-height: var(--ob3-leading-meta); color: var(--ob3-muted); }
.obpp-x { flex: 0 0 auto; width: 44px; height: 44px; border: 0; border-radius: var(--ob3-radius-full); background: none; color: var(--ob3-ink); font-size: 28px; line-height: 1; cursor: pointer; }
.obpp-facts { border: 1px solid var(--ob3-line); border-radius: var(--ob3-radius-card); padding: var(--ob3-space-2) var(--ob3-space-4); margin-bottom: var(--ob3-space-3); }
.obpp-fact { display: flex; justify-content: space-between; gap: var(--ob3-space-4); min-height: 30px; align-items: center; font-size: var(--ob3-text-body-sm); }
.obpp-fact span:last-child { text-align: right; }
.obpp-note { font-size: var(--ob3-text-meta); color: var(--ob3-muted); padding: 4px 0; }
.obpp-cap { margin: var(--ob3-space-4) 0 var(--ob3-space-2); font-size: var(--ob3-text-label); line-height: var(--ob3-leading-label); letter-spacing: var(--ob3-tracking-label); text-transform: uppercase; color: var(--ob3-muted); font-weight: var(--ob3-weight-semibold); }
.obpp-sub { font-size: var(--ob3-text-label); color: var(--ob3-muted); margin: var(--ob3-space-2) 0 4px; text-transform: uppercase; letter-spacing: var(--ob3-tracking-label); }
.obpp-chog { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ob3-space-2); }
.obpp-chog-slot { display: flex; justify-content: space-between; gap: var(--ob3-space-2); padding: 6px var(--ob3-space-3); border-radius: var(--ob3-radius-control); font-size: var(--ob3-text-meta); background: var(--ob3-sunk); }
.obpp-chog-slot.n-good { background: var(--ob3-good-tint); color: var(--ob3-good); }
.obpp-chog-slot.n-bad { background: var(--ob3-attention-tint); color: var(--ob3-attention); background-image: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--ob3-attention-vivid) 22%, transparent) 6px 8px); }

@media (min-width: 640px) {
  .obpp-sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: min(560px, calc(100% - 32px)); max-height: 86%; transform: translate(-50%, -50%); border-radius: var(--ob3-radius-sheet); padding-top: var(--ob3-space-4); }
  .obpp-grab { display: none; }
}

/* theme.css forces `:root[data-theme] button { background, color, border-color ... !important }`; these outrank it. */
:root[data-theme] .obpp-more, :root[data-theme] .obpp-chip { background: var(--ob3-surface) !important; color: var(--ob3-ink) !important; border-color: var(--ob3-line) !important; }
:root[data-theme] .obpp-chip.is-on { background: var(--ob3-inverse-surface) !important; color: var(--ob3-on-inverse) !important; border-color: var(--ob3-inverse-surface) !important; }
:root[data-theme] .obpp-strip { background: var(--ob3-attention-tint) !important; color: var(--ob3-ink) !important; border-color: transparent !important; }
:root[data-theme] .obpp-x { background: transparent !important; color: var(--ob3-ink) !important; border-color: transparent !important; }

/* T-PLAN-WEB: the one quiet day line (board PlanDayLine) and the muhurat switch row (board SetAutonomyPhone row style). */
.obpp-line { display: flex; align-items: center; box-sizing: border-box; min-height: 44px; min-width: 0; max-width: 100%; padding: 0; border: 0; background: none; color: var(--ob3-muted); font: inherit; font-size: var(--ob3-text-body-sm); line-height: var(--ob3-leading-body-sm); text-align: left; cursor: pointer; }
.obpp-line.is-loading { cursor: default; }
.obpp-line-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.obpp-line:focus-visible { outline: var(--ob3-focus-ring); border-radius: var(--ob3-radius-xs); }
:root[data-theme] .obpp-line { background: transparent !important; color: var(--ob3-muted) !important; border-color: transparent !important; }
.obpp-switchrow { display: flex; align-items: center; justify-content: space-between; gap: var(--ob3-space-4); min-height: 56px; padding: var(--ob3-space-2) 0; margin-bottom: var(--ob3-space-2); border-bottom: 1px solid var(--ob3-line); }
.obpp-switch-l { display: flex; flex-direction: column; min-width: 0; }
.obpp-switch-t { font-size: var(--ob3-text-body); line-height: var(--ob3-leading-body); font-weight: var(--ob3-weight-semibold); color: var(--ob3-ink); }
.obpp-switch-s { font-size: var(--ob3-text-meta); line-height: var(--ob3-leading-meta); color: var(--ob3-muted); }
.obpp-switch { position: relative; flex: 0 0 auto; width: 52px; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.obpp-switch::before { content: ""; position: absolute; left: 0; top: 50%; width: 52px; height: 32px; margin-top: -16px; border-radius: var(--ob3-radius-full); background: var(--ob3-sunk-deep); box-sizing: border-box; }
.obpp-switch.is-on::before { background: var(--ob3-accent); }
.obpp-switch-k { position: absolute; left: 4px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; background: var(--ob3-surface); transition: transform 150ms ease; }
.obpp-switch.is-on .obpp-switch-k { transform: translateX(20px); }
.obpp-switch:focus-visible { outline: var(--ob3-focus-ring); border-radius: var(--ob3-radius-full); }
:root[data-theme] .obpp-switch { background: transparent !important; border-color: transparent !important; }
@media (prefers-reduced-motion: reduce) { .obpp-switch-k { transition: none; } }

/* T-VISUAL-PLAN review: the place chips are a quiet control; the chosen place is tonal, not a black pill */
.obpp-chip.is-on, :root[data-theme] .obpp-chip.is-on { background: var(--ob3-accent-tint) !important; color: var(--ob3-on-accent-tint) !important; border-color: transparent !important; }
