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

/* common */
.mo-top { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 6px; }
.mo-top h1 { margin: 6px 2px 2px; }
.mo-top .sub { margin-bottom: 4px; }
.mo-back { margin-top: 2px; font-size: 1.2em; }
.mo-gap { margin-top: 10px; }
.mo-lead { font-size: 1.06em; line-height: 1.6; margin: 0 0 6px; }
.mo-ul { padding-left: 1.25em; margin: 6px 0; }
.mo-ul li { margin: 7px 0; }
.mo-chev { color: var(--muted); font-size: 1.35em; line-height: 1; flex: none; padding-left: 4px; }
.btn.mo-wrap { white-space: normal; line-height: 1.3; text-align: center; }
.mo .btn.block + .btn.block { margin-top: 8px; }
.mo .stack > .btn.block + .btn.block { margin-top: 8px; }
.mo .list .t { line-height: 1.35; }
.mo .list .d { line-height: 1.4; margin-top: 2px; }
.mo .note { font-size: .88em; }
.mo h3 { color: var(--maroon); }

/* hub: big tappable rows */
.mo-hub > h1 { margin-top: 10px; }
.mo-group { padding: 6px 14px 4px; }
.mo-gh { font-size: .8em; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 8px 2px 2px; }
.mo-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 68px; padding: 10px 2px; border: 0; border-bottom: 1px solid var(--line);
  background: none; color: var(--ink); text-align: left; cursor: pointer; text-decoration: none; font: inherit; }
.mo-group .mo-row:last-child { border-bottom: 0; }
.mo-row:active { background: var(--soft2); }
.mo-row .t { display: block; font-weight: 700; line-height: 1.3; }
.mo-row .d { display: block; font-size: .85em; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.mo-x { display: inline-block; margin-top: 4px; font-size: .8em; font-weight: 700; color: var(--saffron2); background: var(--soft); border-radius: 999px; padding: 1px 10px; }
.mo-foot { margin: 16px 8px 4px; }

/* teachings */
.mo-tlist { margin-top: 8px; }
.mo-tcard { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; color: var(--ink); margin: 10px 0; min-height: 72px; }
.mo-tcard .t { display: block; font-weight: 700; line-height: 1.3; }
.mo-tcard .d { display: block; font-size: .86em; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.mo-body p { line-height: 1.65; margin: 0 0 10px; }
.mo-body p:last-child { margin-bottom: 0; }
.mo-links .t { font-weight: 650; }

/* dhyan */
.mo-method b { display: block; font-size: 1.02em; line-height: 1.45; }
.mo-method p { margin: 6px 0 0; }
.mo-mins { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 6px 0 4px; }
.mo-mins button { border: 2px solid var(--line); background: var(--card); border-radius: 14px; min-height: 70px; font-size: 1.35em; font-weight: 800; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; color: var(--ink); }
.mo-mins button small { font-size: .5em; font-weight: 600; color: var(--muted); margin-top: 2px; }
.mo-mins button.on { background: var(--saffron); border-color: var(--saffron); color: #fff; }
.mo-mins button.on small { color: #fff; }
.btn.mo-start { min-height: 60px; font-size: 1.1em; margin-top: 12px; }
.mo-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; margin-top: 8px; }
.mo-wk { text-align: center; font-size: .78em; color: var(--muted); }
.mo-wk b { display: block; min-height: 1.3em; color: var(--ink); font-size: .95em; }
.mo-wk-bar { height: 80px; background: var(--soft); border-radius: 8px; display: flex; align-items: flex-end; overflow: hidden; margin: 2px 0 4px; }
.mo-wk-bar i { display: block; width: 100%; background: linear-gradient(0deg, var(--saffron), var(--gold)); border-radius: 8px 8px 0 0; }
.mo-wk.today span { color: var(--saffron2); font-weight: 750; }
.mo-rem { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mo-rem:last-of-type { border-bottom: 0; }
.mo-rem .check-row { margin: 0; font-size: 1em; font-weight: 650; align-items: center; min-height: 44px; }
.mo-rem input[type=time] { width: 9em; }
.mo-rem .pill { grid-column: 1 / -1; justify-self: start; }

/* dhyan: the calm full-screen timer */
.mo-run { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: max(20px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom)); text-align: center;
  background: radial-gradient(circle at 50% 38%, #3A1A0E 0%, #1C0F09 62%, #120A06 100%); color: #F6E7D6; }
.mo-run-note { max-width: 30em; margin: 0; font-size: .92em; color: #E8C9A8; line-height: 1.5; }
.ring.mo-ring { width: 230px; height: 230px; background: conic-gradient(#E0A040 calc(var(--p) * 1%), rgba(255, 226, 184, .14) 0); transition: background .4s; }
.ring.mo-ring > div { width: 204px; height: 204px; background: #1F110A; }
.mo-ring .seal.big { margin: 0; width: 110px; height: 110px; font-size: 1.9em; }
.mo-time { font-size: 3.2em; font-weight: 750; letter-spacing: .03em; font-variant-numeric: tabular-nums; line-height: 1; }
.mo-state { font-size: .95em; color: #D9B994; margin-top: -6px; }
.mo-run-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 360px; margin-top: 6px; }
.mo-run-btns .btn { min-height: 58px; font-size: 1.05em; background: rgba(255, 255, 255, .12); color: #FFF4E6; }
.mo-run-btns .btn.ghost { background: transparent; border: 1px solid rgba(255, 226, 184, .35); }
.mo-run-btns .btn:only-child { grid-column: 1 / -1; }
.mo-run.paused .mo-time { opacity: .55; }
.mo-run.paused .ring.mo-ring { opacity: .7; }
.mo-run.done .seal.big { width: 110px; height: 110px; font-size: 1.9em; }
.mo-done-t { font-size: 1.5em; margin: 0; }
.mo-done { font-size: 1.15em; margin: 0; }

/* Naam Deeksha, Sadhana Satsang */
.mo-known li, .mo-evs li { align-items: flex-start; }
.mo-evs .pill { margin-top: 4px; }
.mo-pack { min-height: 44px; align-items: center; font-size: 1em; margin: 4px 0; }
.mo-ss .bar { margin: 4px 0 8px; }
.mo-tt li { align-items: flex-start; gap: 10px; }
.mo-tt-time { flex: none; width: 6.6em; font-weight: 700; color: var(--maroon); line-height: 1.35; }
.mo-tt-time small { display: block; font-weight: 600; color: var(--muted); }
.mo-tt .d { display: block; }

/* special days */
.mo-month { display: block !important; padding: 10px 4px 6px !important; font-weight: 750; color: var(--maroon); font-size: .95em; border-bottom: 2px solid var(--soft) !important; }
.mo-sd { align-items: flex-start !important; }
.mo-sd-date { flex: none; width: 56px; border-radius: 12px; background: var(--soft); text-align: center; padding: 6px 2px; line-height: 1.1; }
.mo-sd-date b { display: block; font-size: 1.35em; color: var(--maroon); }
.mo-sd-date span { display: block; font-size: .74em; color: var(--muted); font-weight: 650; }
.mo-sd.today .mo-sd-date { background: var(--saffron); }
.mo-sd.today .mo-sd-date b, .mo-sd.today .mo-sd-date span { color: #fff; }
.mo-sd.past { opacity: .72; }
.mo-sd-pills { margin: 4px 0 0; }
.mo-sd-pills .pill { white-space: normal; }
.mo-sd-what { margin: 4px 0 0; line-height: 1.45; }
.mo-past summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 700; color: var(--muted); }
.mo-past[open] summary { margin-bottom: 4px; }

/* app: alarms that cannot ring (notifications, exact alarms or the full-screen switch off) */
.mo-fix h2 { margin-top: 0; }
.mo-fix p { margin: 0 0 8px; line-height: 1.45; }
.mo-fix .btn + p { margin-top: 14px; }
.mo-fixbox:empty { display: none; }
.mo-dh .mo-fixbox .mo-fix { margin: 8px 0; }

/* routine */
.mo-rti { flex-direction: column; align-items: stretch !important; gap: 6px !important; }
.mo-rti.wake { background: var(--soft2); border-radius: 12px; padding: 12px 10px !important; margin: 4px 0; border-bottom: 0 !important; }
.mo-rt-top { display: flex; gap: 10px; align-items: flex-start; }
.mo input[type=time].mo-rt-time { width: 8.4em; flex: none; font-weight: 700; padding: 8px 8px; }
.mo-rt-bot { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; }
.mo-rt-bot .check-row { margin: 0; align-items: center; min-height: 44px; }
.mo-rt-bot .btn { flex: none; }

/* gurus */
.mo-br { margin: 4px 0 6px; }
.mo-br .pill { white-space: normal; }
.mo-guru-h { align-items: flex-start; gap: 12px; }
.mo-guru h2 { margin: 2px 0 0; }
.mo-gnum { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--soft); color: var(--maroon); font-weight: 800; }
.mo-yrs { margin: 2px 0 0; color: var(--muted); font-weight: 650; font-size: .9em; }
.mo-role { color: var(--maroon); font-weight: 650; margin: 8px 0 4px; }
.mo-guru p { line-height: 1.6; }
.mo-guru .btn { margin-top: 6px; }

/* videos and the pravachan archive */
.mo-vd .subnav { margin-bottom: 2px; }
.mo-prav-t { font-size: 1.1em; margin: 4px 0 2px; }
.mo-prav .btn.primary { margin-top: 8px; }
.mo-vg .card-h { flex-wrap: wrap; }
.mo-playic { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--saffron); color: #fff; font-size: .95em; }
.mo-playic.mo-ext { background: var(--soft); color: var(--saffron2); font-weight: 800; }
.mo-ar-tools input[type=search] { font-size: 1.05em; }
.mo-ar-tools .f:first-child { margin-top: 0; }
.mo .list > li.tap:focus-visible { outline: 2px solid var(--saffron); outline-offset: 2px; border-radius: 8px; }

/* settings */
.mo-st .seg button { min-height: 50px; }
.mo-eg { margin: 10px 0 0; padding: 10px 12px; background: var(--soft2); border-radius: 10px; }
.mo-big { font-size: 1em; margin: 2px 0; align-items: center; min-height: 44px; }
.mo-st .check-row { min-height: 44px; align-items: center; margin: 4px 0; }   /* the blessing choices: 44px targets */

/* about */
.mo-ab .card.hero h2 { margin-top: 0; }

/* narrow phones */
@media (max-width: 380px) {
  .mo-mins button { min-height: 62px; font-size: 1.2em; }
  .ring.mo-ring { width: 200px; height: 200px; }
  .ring.mo-ring > div { width: 176px; height: 176px; }
  .mo-time { font-size: 2.8em; }
  .mo-tt-time { width: 5.6em; }
  .mo input[type=time].mo-rt-time { width: 7.6em; }
}
@media (max-height: 560px) {
  .mo-run { gap: 8px; }
  .ring.mo-ring { width: 160px; height: 160px; }
  .ring.mo-ring > div { width: 140px; height: 140px; }
  .mo-ring .seal.big { width: 80px; height: 80px; font-size: 1.4em; }
}
