/* VedicSamay: one bold element (the running-now panel), everything else quiet. */
:root {
  --ink: #1C1A17; --muted: #5C574F; --paper: #FFFFFF; --stone: #F1EFEA; --line: #ECE9E2; --edge: #D9D5CC;
  --tulsi: #1F6B3A; --tulsi-dark: #174F2B; --tulsi-tint: #E5F1E8;
  --kumkum: #B3122E; --kumkum-tint: #FBE7EA;
  --slate: #3D5A80; --slate-tint: #E6ECF4;
  --haldi: #E8A317; --haldi-paper: #FFF3D1; --haldi-light: #F5C451;
  --font: 'Anek Gujarati', 'Noto Sans Gujarati', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 18px; line-height: 1.45; }
a { color: var(--tulsi); }
a:hover { color: var(--tulsi-dark); }
:focus-visible { outline: 3px solid var(--haldi); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.page { max-width: 520px; margin: 0 auto; padding-bottom: 96px; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 6px 16px 0; height: 52px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--kumkum); font-size: 23px; font-weight: 720; font-stretch: 88%; }
.brand:hover { color: var(--kumkum); }
.lang { min-width: 48px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--edge); border-radius: 12px; color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 600; }
.city-row { margin: 8px 16px 0; min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 12px; background: var(--stone); color: var(--ink); text-decoration: none; }
.city-name { flex-grow: 1; font-weight: 600; }
.city-change { font-size: 16px; color: var(--tulsi); font-weight: 600; }

/* date + tithi */
.dateline { margin: 10px 16px; display: flex; flex-direction: column; gap: 2px; }
.tithi-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tithi-line strong { font-size: 21px; font-weight: 720; font-stretch: 90%; }
.tithi-line .muted { font-size: 15px; }
.dateline > .muted { font-size: 16px; }
.alert { margin: 4px 0; padding: 6px 10px; border-radius: 10px; background: var(--kumkum-tint); color: var(--kumkum); font-weight: 650; font-size: 16px; }

/* running now */
.now { margin: 0 16px; padding: 16px 18px 14px; border-radius: 22px; color: #FFFFFF; display: flex; flex-direction: column; gap: 4px; }
.now.k-good { background: var(--tulsi); }
.now.k-bad { background: var(--kumkum); }
.now.k-neutral { background: var(--slate); }
.now-top { display: flex; justify-content: space-between; align-items: center; font-size: 17px; }
.tag { display: flex; align-items: center; gap: 6px; font-size: 15px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,0.16); }
.now-name { margin-top: 2px; font-size: 54px; line-height: 1.05; font-weight: 760; font-stretch: 82%; }
.now-meaning { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 600; }
.now-time { margin-top: 6px; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.now-left { font-size: 18px; color: var(--haldi-light); font-weight: 650; }
.now.k-bad .now-left { color: #FFD27A; }
.band { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.band-bar { display: flex; gap: 3px; height: 14px; }
.seg { flex: 1 1 0; border-radius: 4px; }
.seg.k-good { background: #8FD19E; }
.seg.k-neutral { background: #B9C8DC; }
.seg.k-bad { background: #F2A7A7; }
.seg.is-now { --pos: 50%; outline: 2px solid #FFFFFF; outline-offset: 2px; background-image: linear-gradient(90deg, rgba(255,255,255,0.9) 0 var(--pos), var(--haldi) var(--pos) calc(var(--pos) + 6%), transparent calc(var(--pos) + 6%)); }
.band-labels { display: flex; gap: 3px; }
.band-labels span { flex: 1 1 0; text-align: center; font-size: 11.5px; opacity: 0.85; overflow: hidden; white-space: nowrap; }
.band-labels .is-now { font-weight: 700; opacity: 1; }
.band-edges { display: flex; justify-content: space-between; font-size: 14px; opacity: 0.92; }
.rule { margin: 10px 20px 0; font-size: 15px; line-height: 1.45; color: var(--muted); }

/* next auspicious */
.next { margin: 12px 16px 0; padding: 14px 16px 6px; border: 1.5px solid var(--edge); border-radius: 18px; display: flex; flex-direction: column; }
.next-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.next-main { display: flex; flex-direction: column; gap: 2px; }
.next-main .muted { font-size: 16px; }
.next-name { font-size: 28px; line-height: 1.1; font-weight: 740; font-stretch: 85%; color: var(--tulsi); }
.next-time { font-size: 19px; font-weight: 600; }
.next-wait { text-align: right; padding-top: 4px; display: flex; flex-direction: column; }
.next-in { font-size: 26px; font-weight: 700; font-stretch: 85%; }
.next-link { margin-top: 8px; min-height: 48px; display: flex; align-items: center; justify-content: center; border-top: 1px solid var(--line); font-size: 17px; font-weight: 600; text-decoration: none; }

/* timetable */
.timetable { margin-top: 28px; }
.tt-title { margin: 0 16px; font-size: 22px; font-weight: 700; }
.dates { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px 4px; }
.pill { min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; border: 1.5px solid var(--edge); border-radius: 999px; background: var(--paper); font-family: inherit; font-size: 16px; color: var(--ink); text-decoration: none; cursor: pointer; }
.pill.on { border-color: var(--ink); background: var(--ink); color: #FFFFFF; font-weight: 650; }
.date-form { display: flex; gap: 6px; }
.date-form input { min-height: 44px; padding: 0 10px; border: 1.5px solid var(--edge); border-radius: 999px; font-family: inherit; font-size: 16px; color: var(--ink); background: var(--paper); }
.facts { display: flex; flex-direction: column; gap: 8px; margin: 12px 16px 4px; padding: 12px 14px; border-radius: 14px; background: var(--stone); font-size: 17px; }
.facts-tithi { display: flex; flex-direction: column; gap: 1px; padding-bottom: 8px; border-bottom: 1px solid #DEDAD1; }
.facts-sun { display: flex; gap: 12px; }
.facts-sun span { flex: 1 1 0; }
.list-title { margin: 18px 16px 6px; font-size: 21px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.rows { list-style: none; margin: 0; padding: 0 16px; }
.row { display: flex; align-items: center; gap: 6px; min-height: 52px; padding: 0 8px; border-bottom: 1px solid var(--line); }
.row-time { width: 172px; flex-shrink: 0; font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.row-name { flex-grow: 1; min-width: 0; font-size: 19px; font-weight: 650; }
.chip { font-size: 13.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.row.k-good .row-name, .row.k-good .chip { color: var(--tulsi); }
.row.k-good .chip { background: var(--tulsi-tint); }
.row.k-neutral .row-name, .row.k-neutral .chip { color: var(--slate); }
.row.k-neutral .chip { background: var(--slate-tint); }
.row.k-bad .row-name, .row.k-bad .chip { color: var(--kumkum); }
.row.k-bad .chip { background: var(--kumkum-tint); }
.row.is-now { border-radius: 12px; border-bottom-color: transparent; outline: 2px solid currentColor; }
.row.is-now.k-good { background: var(--tulsi-tint); color: var(--tulsi); }
.row.is-now.k-bad { background: var(--kumkum-tint); color: var(--kumkum); }
.row.is-now.k-neutral { background: var(--slate-tint); color: var(--slate); }
.row.is-now .row-time { color: var(--ink); }
.row.is-now .row-name { font-weight: 760; }
.row.is-now .chip { background: #FFFFFF; }

/* panchak / vinchhudo */
.moon-ranges { margin: 28px 16px 0; }
.moon-ranges h2, .cities h2, .hub h1 { font-size: 22px; font-weight: 700; }
.ok { margin: 4px 0 10px; display: flex; align-items: center; gap: 8px; font-size: 16px; color: var(--tulsi); font-weight: 600; }
.mr-card { margin-top: 8px; border: 1.5px solid var(--edge); border-radius: 18px; }
.mr-item { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; }
.mr-item + .mr-item { border-top: 1px solid var(--line); }
.mr-item.is-active { background: var(--kumkum-tint); }
.mr-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mr-name { font-size: 24px; font-weight: 740; font-stretch: 88%; }
.mr-when { font-size: 15px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--stone); }
.mr-item.is-active .mr-when { background: var(--kumkum); color: #FFFFFF; }
.mr-time { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ads: fixed height so nothing jumps */
.ad { margin: 22px 16px 0; display: flex; flex-direction: column; gap: 4px; }
.ad-label { font-size: 13px; color: var(--muted); }
.ad-box { min-height: 250px; border-radius: 12px; background: #F7F6F2; }

/* cities */
.cities { margin: 28px 16px 0; }
.cities h2 + .chips { margin-top: 10px; }
.chips + h2 { margin-top: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.city-chip { min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; border: 1.5px solid var(--edge); border-radius: 999px; font-size: 16px; font-weight: 600; text-decoration: none; color: var(--ink); }
.city-chip[hidden] { display: none; }
.hub { margin: 16px; display: flex; flex-direction: column; gap: 12px; }
.search { min-height: 52px; padding: 0 16px; border: 1.5px solid var(--edge); border-radius: 14px; font-family: inherit; font-size: 18px; }
.btn-geo { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid var(--tulsi); border-radius: 14px; background: var(--paper); color: var(--tulsi); font-family: inherit; font-size: 17px; font-weight: 650; }

.foot { margin: 32px 16px 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }

/* share bar */
.share-bar { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -6px 16px rgba(28,26,23,0.06); display: flex; gap: 10px; justify-content: center; }
.btn-wa { flex: 1 1 auto; max-width: 400px; min-height: 50px; border-radius: 14px; background: var(--tulsi); color: #FFFFFF; font-size: 16px; min-width: 0; line-height: 1.25; font-weight: 650; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; padding: 0 12px; text-align: center; }
.btn-wa:hover { color: #FFFFFF; background: var(--tulsi-dark); }
.btn-photo { flex-shrink: 0; min-height: 50px; padding: 0 16px; border: 1.5px solid var(--edge); border-radius: 14px; background: var(--paper); font-family: inherit; font-size: 17px; font-weight: 600; color: var(--ink); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
