/* Devanagari for the name ज्योतिष and Hindi text, bundled so it shows even when Google Fonts is blocked */
@font-face { font-family: 'Mukta Deva'; font-weight: 400; font-display: swap; src: url(../fonts/Mukta-Devanagari-Regular.woff2) format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: 'Mukta Deva'; font-weight: 600; font-display: swap; src: url(../fonts/Mukta-Devanagari-SemiBold.woff2) format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
/* Baba Jyotish — night-indigo header, saffron for action, gold for sacred detail.
   Layout: sticky header + content column (max 1200px) of cards and tool panels. */
:root {
  --bg: #faf6f3;
  --surface: #ffffff;
  --surface-2: #f4ebe6;
  --ink: #2a1519;
  --muted: #7a5f63;
  --line: #ecdcd5;
  --accent: #d9620c;
  --accent-ink: #ffffff;
  --accent-soft: #fdeede;
  --gold: #b8862a;
  --night: #2c0b14;
  --night-2: #5a1426;
  --good: #1f8a5b;
  --warn: #b7791f;
  --bad: #c0392b;
  --good-bg: rgba(31,138,91,.13); --warn-bg: rgba(183,121,31,.15); --bad-bg: rgba(192,57,43,.12);
  --radius: 12px;
  --shadow: 0 1px 2px rgba(60, 15, 25, .06), 0 6px 20px rgba(60, 15, 25, .06);
  --display: 'Marcellus', 'Mukta Deva', 'Cormorant Garamond', Georgia, serif;
  --body: 'Mukta', 'Mukta Deva', 'Noto Sans', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #170c0f; --surface: #221418; --surface-2: #2e1b20; --ink: #f4e9e6; --muted: #bfa3a5; --line: #3e2a2f;
    --accent: #ff8a3d; --accent-ink: #1a0d02; --accent-soft: #3a2414; --gold: #e0b55a; --night: #12070a; --night-2: #3a0f1b;
    --good: #4cc38a; --warn: #e2a84a; --bad: #ff6b5b; --good-bg: rgba(76,195,138,.16); --warn-bg: rgba(226,168,74,.17); --bad-bg: rgba(255,107,91,.15); --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #170c0f; --surface: #221418; --surface-2: #2e1b20; --ink: #f4e9e6; --muted: #bfa3a5; --line: #3e2a2f;
  --accent: #ff8a3d; --accent-ink: #1a0d02; --accent-soft: #3a2414; --gold: #e0b55a; --night: #12070a; --night-2: #3a0f1b;
  --good: #4cc38a; --warn: #e2a84a; --bad: #ff6b5b; --good-bg: rgba(76,195,138,.16); --warn-bg: rgba(226,168,74,.17); --bad-bg: rgba(255,107,91,.15); --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.2; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.num, table { font-variant-numeric: tabular-nums; }

/* header */
.topbar { background: var(--night); color: #f1d8d3; font-size: .86rem; }
.topbar .wrap { display: flex; gap: 16px; align-items: center; justify-content: space-between; min-height: 34px; flex-wrap: wrap; }
.topbar .tb-left { display: flex; gap: 14px; flex-wrap: wrap; }
.topbar b { color: #fff; font-weight: 600; }
.topbar .tb-right { display: flex; gap: 8px; align-items: center; }
.chip-btn { background: transparent; border: 1px solid rgba(255,255,255,.22); color: #fff; border-radius: 999px; padding: 2px 12px; cursor: pointer; font-size: .82rem; }
.chip-btn:hover { background: rgba(255,255,255,.08); }
.chip-btn[aria-pressed="true"] { background: #fff; color: var(--night); }

header.site { position: sticky; top: 0; z-index: 40; background: var(--night-2); color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
header.site .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--display); font-size: 1.55rem; letter-spacing: .02em; }
.brand:hover { text-decoration: none; }
.brand small { display: block; font-family: var(--body); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #f3c67a; margin-top: -4px; }
nav.main { display: flex; gap: 2px; flex: 1; flex-wrap: wrap; }
nav.main a { color: #f6e3df; padding: 8px 9px; border-radius: 8px; font-size: .95rem; white-space: nowrap; }
nav.main a:hover { background: rgba(255,255,255,.08); text-decoration: none; }
nav.main a.active { background: rgba(255,255,255,.14); color: #fff; }
.cta { background: var(--accent); color: var(--accent-ink); border: 0; padding: 9px 16px; border-radius: 999px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.cta:hover { filter: brightness(1.06); text-decoration: none; }
header .cta { color: #fff; background: #e8731c; }
.burger { display: none; background: transparent; border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 8px; padding: 6px 10px; cursor: pointer; margin-left: auto; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
main { padding: 28px 0 56px; }

@media (max-width: 1180px) {
  .burger { display: block; }
  nav.main { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--night-2); flex-direction: column; padding: 10px 16px 18px; border-top: 1px solid rgba(255,255,255,.1); }
  nav.main.open { display: flex; }
  nav.main a { padding: 11px 12px; }
  header .cta { display: none; }
}

/* generic blocks */
.section { display: grid; gap: 18px; margin-top: 40px; }
.section:first-child { margin-top: 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section-head p { color: var(--muted); max-width: 62ch; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g6 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 620px) { .g2, .g3 { grid-template-columns: 1fr; } .g6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 420px) { .g4 { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 12px; align-content: start; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--surface-2); color: var(--muted); }
.pill.good { background: var(--good-bg); color: var(--good); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.acc { background: var(--accent-soft); color: var(--accent); }
.eyebrow { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); padding: 8px 14px; border-radius: 10px; cursor: pointer; color: var(--ink); }
.btn:hover { border-color: var(--accent); text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.btn.sm { padding: 4px 10px; font-size: .86rem; border-radius: 8px; }
.notice { border-left: 3px solid var(--gold); background: var(--surface-2); padding: 10px 14px; border-radius: 0 8px 8px 0; font-size: .9rem; color: var(--muted); }

/* hero */
.hero { background: radial-gradient(900px 500px at 78% 45%, rgba(232,115,28,.22), transparent 65%), radial-gradient(700px 400px at 10% 110%, rgba(184,134,42,.18), transparent 60%), linear-gradient(160deg, var(--night-2), var(--night)); color: #fff; border-radius: 22px; padding: 34px; display: grid; grid-template-columns: 1fr 1.15fr; gap: 20px; position: relative; overflow: hidden; align-items: center; box-shadow: 0 30px 60px -30px rgba(30,8,14,.7), inset 0 1px 0 rgba(255,255,255,.08); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .8; }
.hero > * { position: relative; }
.hero h1 { color: #fff; }
.hero p.lede { color: #f1d8d3; margin-top: 12px; max-width: 52ch; font-size: 1.06rem; }
.hero .stats { display: flex; gap: 26px; margin-top: 22px; flex-wrap: wrap; }
.hero .stats div { display: grid; }
.hero .stats b { font-family: var(--display); font-size: 1.5rem; color: #f3c67a; font-weight: 400; }
.hero .stats span { font-size: .85rem; color: #dcb9b3; }
.hero .card { color: var(--ink); }
.hero .today { margin-top: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hero .today div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 8px 12px; }
.hero .today small { display: block; color: #dcb9b3; font-size: .78rem; }
.hero .today b { font-weight: 600; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding: 24px 18px; } }

/* forms */
form.f { display: grid; gap: 12px; }
.fields { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .fields { grid-template-columns: 1fr; } }
label.l { display: grid; gap: 4px; font-size: .86rem; color: var(--muted); font-weight: 500; }
.in { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); min-height: 42px; }
.in:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: transparent; padding: 8px 14px; cursor: pointer; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
details.adv summary { cursor: pointer; font-size: .86rem; color: var(--muted); }
details.adv .fields { margin-top: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.err { color: var(--bad); font-size: .9rem; }

/* sign tiles */
.signs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .signs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 520px) { .signs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sign { display: grid; justify-items: center; gap: 2px; padding: 16px 8px 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-align: center; cursor: pointer; transition: transform .15s, border-color .15s; }
.sign:hover { transform: translateY(-2px); border-color: var(--accent); text-decoration: none; }
.sign .glyph { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 1.7rem; background: var(--accent-soft); color: var(--accent); font-family: 'Segoe UI Symbol', 'Noto Sans Symbols', var(--body); }
.sign b { font-weight: 600; margin-top: 6px; }
.sign span { font-size: .76rem; color: var(--muted); }
.sign[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }

/* service tiles */
.svc { display: grid; gap: 8px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.svc:hover { border-color: var(--accent); text-decoration: none; }
.svc .ic { width: 42px; height: 42px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.svc b { font-weight: 600; font-size: 1.02rem; }
.svc span { color: var(--muted); font-size: .9rem; }

/* tables */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: var(--surface-2); font-weight: 600; color: var(--muted); font-size: .82rem; letter-spacing: .03em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
tr.now td { background: var(--accent-soft); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .94rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }

/* tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs button { border: 0; background: transparent; padding: 10px 14px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; font-weight: 500; }
.tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }

/* chart */
.chart-box { display: grid; gap: 8px; justify-items: center; }
.chart-box svg { width: 100%; max-width: 380px; height: auto; }
.chart-box .cap { font-family: var(--display); font-size: 1.05rem; }
svg .ln { stroke: var(--gold); stroke-width: 1.5; fill: none; }
svg .bg { fill: var(--surface); stroke: var(--gold); stroke-width: 2; }
svg .sn { fill: var(--muted); font-size: 12px; font-family: var(--body); }
svg .pl { fill: var(--ink); font-size: 13.5px; font-family: var(--body); font-weight: 600; }
svg .pl.as { fill: var(--accent); }
svg .lg { fill: var(--accent-soft); }

/* score meter */
.meter { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: inherit; }
.score-big { font-family: var(--display); font-size: 3rem; line-height: 1; }

/* timeline */
.choc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 480px) { .choc { grid-template-columns: 1fr; } }
.choc div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 8px; font-size: .88rem; border: 1px solid var(--line); }
.choc .good { background: var(--good-bg); }
.choc .bad { background: var(--bad-bg); }
.choc .now { outline: 2px solid var(--accent); }

/* astrologers */
.astro { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 1.4rem; color: #fff; position: relative; }
.avatar .dot { position: absolute; right: 2px; bottom: 2px; width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--surface); background: var(--muted); }
.avatar .dot.on { background: var(--good); }

/* tarot */
.tarot-row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.tcard { width: 150px; aspect-ratio: 5 / 8; border-radius: 12px; perspective: 900px; cursor: pointer; background: none; border: 0; padding: 0; }
.tcard .in2 { position: relative; width: 100%; height: 100%; transition: transform .6s; transform-style: preserve-3d; }
.tcard.flipped .in2 { transform: rotateY(180deg); }
.tcard .face { position: absolute; inset: 0; border-radius: 12px; backface-visibility: hidden; display: grid; place-items: center; padding: 12px; text-align: center; border: 2px solid var(--gold); }
.tcard .back { background: repeating-linear-gradient(45deg, var(--night-2) 0 8px, var(--night) 8px 16px); }
.tcard .back span { width: 56px; height: 56px; border: 2px solid var(--gold); border-radius: 50%; display: grid; place-items: center; color: var(--gold); font-family: var(--display); font-size: 1.4rem; }
.tcard .front { background: linear-gradient(180deg, var(--surface), var(--accent-soft)); transform: rotateY(180deg); color: var(--ink); }
.tcard .front b { font-family: var(--display); font-weight: 400; font-size: 1.05rem; }
.tcard .front .rn { font-family: var(--display); color: var(--gold); font-size: 1.6rem; }
.tcard.rev .front .content { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .tcard .in2, .sign { transition: none; } }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(30,8,14,.55); display: none; place-items: center; z-index: 80; padding: 16px; }
.modal-bg.open { display: grid; }
.modal { background: var(--surface); color: var(--ink); border-radius: 16px; max-width: 460px; width: 100%; padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.3); display: grid; gap: 12px; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--night-2); color: #fff; padding: 10px 18px; border-radius: 999px; z-index: 90; font-size: .92rem; box-shadow: var(--shadow); display: none; }
.toast.show { display: block; }

/* page header */
.ph { display: grid; gap: 6px; margin-bottom: 22px; }
.ph p { color: var(--muted); max-width: 68ch; }
.crumbs { font-size: .84rem; color: var(--muted); }

/* footer */
footer.site { background: var(--night); color: #dcb9b3; padding: 40px 0 24px; font-size: .92rem; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 24px; }
footer.site h4 { color: #fff; font-family: var(--body); font-weight: 600; font-size: .95rem; margin-bottom: 10px; }
footer.site a { color: #dcb9b3; display: block; padding: 2px 0; }
footer.site a:hover { color: #fff; }
footer.site .legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 28px; padding-top: 16px; font-size: .82rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { footer.site .cols { grid-template-columns: 1fr 1fr; } }

/* bottom app bar on phones */
.appbar { display: none; }
@media (max-width: 720px) {
  .appbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--surface); border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
  .appbar a { display: grid; justify-items: center; gap: 0; font-size: .7rem; color: var(--muted); padding: 6px 0; }
  .appbar a.active { color: var(--accent); }
  .appbar a:hover { text-decoration: none; }
  .appbar svg { width: 22px; height: 22px; }
  body { padding-bottom: 64px; }
  .topbar .tb-left span.hide-sm { display: none; }
}
.list-plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.list-plain li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.list-plain li:last-child { border-bottom: 0; }
.prose { display: grid; gap: 10px; max-width: 72ch; }
.prose p { color: var(--ink); }
.big-glyph { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 2.6rem; background: var(--accent-soft); color: var(--accent); flex: none; }
.horo-area { display: grid; gap: 4px; padding: 14px; border-radius: 10px; background: var(--surface-2); }
.horo-area b { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); }
.stars { color: var(--gold); letter-spacing: 2px; }

/* dropdown menus */
nav.main { align-items: center; }
nav.main .dd { position: relative; }
nav.main .dd .top { background: transparent; border: 0; color: #f6e3df; padding: 8px 10px; border-radius: 8px; font-size: .95rem; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
nav.main .dd .top span { font-size: .7rem; opacity: .7; }
nav.main .dd.active .top, nav.main .dd .top:hover { background: rgba(255,255,255,.12); color: #fff; }
nav.main .menu { display: none; position: absolute; top: calc(100% + 4px); left: 0; min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(30,8,14,.22); padding: 8px; z-index: 70; gap: 2px; }
nav.main .menu.wide { grid-template-columns: repeat(2, minmax(190px, 1fr)); min-width: 440px; }
nav.main .menu a { color: var(--ink); padding: 8px 10px; border-radius: 8px; font-size: .92rem; white-space: nowrap; }
nav.main .menu a:hover { background: var(--accent-soft); color: var(--accent); }
@media (hover: hover) and (min-width: 1181px) { nav.main .dd:hover .menu { display: grid; } }
nav.main .dd.open .menu { display: grid; }
@media (max-width: 1180px) {
  nav.main.open { max-height: calc(100vh - 100px); overflow-y: auto; }
  nav.main .dd { width: 100%; }
  nav.main { align-items: stretch; }
  nav.main .dd .top { width: 100%; justify-content: space-between; padding: 11px 12px; text-align: left; }
  nav.main .menu, nav.main .menu.wide { position: static; box-shadow: none; border: 0; background: rgba(255,255,255,.06); min-width: 0; grid-template-columns: 1fr 1fr; margin: 2px 0 6px; }
  nav.main .menu a { color: #f6e3df; white-space: normal; }
  nav.main .menu a:hover { background: rgba(255,255,255,.1); color: #fff; }
}

/* share bar */
.share { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding-top: 10px; border-top: 1px dashed var(--line); margin-top: 6px; }
.share > .small { margin-right: 4px; }
.sbtn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: .85rem; cursor: pointer; text-decoration: none; }
.sbtn:hover { text-decoration: none; border-color: currentColor; }
.sbtn.wa { color: #128c4a; } .sbtn.fb { color: #1a5fd0; } .sbtn.ig { color: #c13584; } .sbtn.tg { color: #1f8ac0; }
.sbtn.pdf { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.sbtn span { color: var(--ink); } .sbtn.pdf span { color: inherit; }
.share-note { margin-top: -4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-h { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-align: center; padding: 4px 0; }
.cal-c { min-height: 96px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 6px; display: flex; flex-direction: column; gap: 1px; text-align: left; cursor: pointer; color: var(--ink); font: inherit; }
.cal-c.empty { border: 0; background: transparent; cursor: default; }
.cal-c:hover:not(.empty) { border-color: var(--accent); }
.cal-c.today { outline: 2px solid var(--accent); }
.cal-d { font-family: var(--display); font-size: 1.2rem; line-height: 1; }
.cal-t { font-size: .72rem; color: var(--ink); } .cal-n { font-size: .68rem; color: var(--muted); }
.cal-f { font-size: .66rem; border-radius: 4px; padding: 0 4px; background: var(--surface-2); color: var(--muted); margin-top: 1px; }
.cal-f.festival { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
@media (max-width: 620px) { .cal-c { min-height: 64px; padding: 3px; } .cal-n, .cal-f.vrat { display: none; } .cal-t { font-size: .62rem; } .cal-f { font-size: .58rem; } }

/* Lo Shu */
.loshu { display: grid; grid-template-columns: repeat(3, 64px); gap: 4px; }
.loshu div { height: 64px; border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; font-family: var(--display); font-size: 1.2rem; position: relative; color: var(--ink); }
.loshu div.on { background: var(--accent-soft); color: var(--accent); }
.loshu small { position: absolute; right: 5px; bottom: 2px; font-size: .62rem; color: var(--muted); font-family: var(--body); }

/* chat */
.chatlog { display: grid; gap: 8px; align-content: start; align-items: start; max-height: 460px; min-height: 220px; overflow-y: auto; padding: 4px; }
.bubble { padding: 10px 14px; border-radius: 14px; max-width: 88%; white-space: pre-wrap; line-height: 1.5; }
.bubble.ai { background: var(--surface-2); justify-self: start; border-bottom-left-radius: 4px; }
.bubble.me { background: var(--accent); color: var(--accent-ink); justify-self: end; border-bottom-right-radius: 4px; }
@media (max-width: 860px) { #aigrid { grid-template-columns: 1fr !important; } }

/* PDF sheet: always light */
.pdf-sheet { --bg: #ffffff; --surface: #ffffff; --surface-2: #f4ebe6; --ink: #2a1519; --muted: #7a5f63; --line: #ecdcd5; --accent: #d9620c; --accent-ink: #fff; --accent-soft: #fdeede; --gold: #b8862a;
  --good: #1f8a5b; --warn: #b7791f; --bad: #c0392b; --good-bg: #dff1e8; --warn-bg: #f6ead6; --bad-bg: #f7dfdc; color-scheme: light; background: #fff; color: #2a1519; font-family: var(--body); }
.pdf-off { position: fixed; left: -12000px; top: 0; width: 794px; padding: 0 8px; }
.pdf-sheet .pdf-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #b8862a; padding: 8px 0; color: #7a5f63; font-size: 13px; }
.pdf-sheet .pdf-brand { font-family: var(--display); font-size: 22px; color: #5a1426; margin-right: 10px; font-weight: 400; }
.pdf-sheet .pdf-title { font-size: 28px; margin: 14px 0 4px; color: #2a1519; }
.pdf-sheet .pdf-h { font-size: 20px; margin: 16px 0 8px; color: #5a1426; }
.pdf-sheet .pdf-block { padding: 2px 0 6px; }
.pdf-sheet .pdf-foot { color: #7a5f63; font-size: 11px; border-top: 1px solid #ecdcd5; padding-top: 6px; margin-top: 10px; }
.pdf-sheet .share, .pdf-sheet button, .pdf-sheet .share-note { display: none !important; }
.pdf-sheet table { font-size: 12px; } .pdf-sheet th, .pdf-sheet td { padding: 5px 8px; }
.pdf-sheet .tbl-wrap { overflow: visible; }
.pdf-sheet .chart-box svg { max-width: 240px; }
.pdf-sheet .grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pdf-sheet .grid.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pdf-sheet .grid.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pdf-sheet .card { box-shadow: none; }
.pdf-sheet .kp2 { grid-template-columns: 1fr !important; }
#print-root { display: none; }
@media print {
  body > *:not(#print-root) { display: none !important; }
  #print-root { display: block !important; width: auto; }
  #print-root .pdf-block { break-inside: avoid; }
  body { background: #fff; padding: 0; }
}

/* accounts & consultations */
.auth-wrap { max-width: 520px; margin: 10px auto; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span { display: inline-block; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .86rem; cursor: pointer; background: var(--surface); }
.chip input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.avail { display: grid; gap: 6px; }
.avail-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.avail-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot-row { display: inline-flex; align-items: center; gap: 6px; }
.slot-row .in { width: 120px; min-height: 36px; padding: 4px 8px; }
@media (max-width: 560px) { .avail-row { grid-template-columns: 1fr; } }
.appt { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.appt:last-child { border-bottom: 0; }
details.adm summary { list-style: none; cursor: pointer; }
details.adm summary::-webkit-details-marker { display: none; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 2px; }
.stat b { font-family: var(--display); font-weight: 400; font-size: 1.6rem; }
.stat span { color: var(--muted); font-size: .86rem; }
.avatar-img { border-radius: 50%; object-fit: cover; display: block; }
.astro-card .dot { position: absolute; right: 2px; bottom: 2px; width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--surface); background: var(--muted); }
.astro-card .dot.on { background: var(--good); }
.astro-card.sample { border-style: dashed; }
.join-card { color: var(--ink); background: var(--accent-soft); border-color: var(--accent); }
.join-card:hover { text-decoration: none; }
.daystrip { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.day { display: grid; justify-items: center; min-width: 58px; padding: 6px 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; color: var(--ink); font-size: .76rem; }
.day b { font-family: var(--display); font-weight: 400; font-size: 1.25rem; }
.day[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.slots { display: flex; flex-wrap: wrap; gap: 6px; }
.slot { padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font-size: .88rem; font-variant-numeric: tabular-nums; }
.slot:hover:not([disabled]) { border-color: var(--accent); }
.slot.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.slot[disabled] { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.switch { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; cursor: pointer; }
.switch input { width: 20px; height: 20px; accent-color: var(--good); }
.rate { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rate label { cursor: pointer; font-size: 2rem; color: var(--line); }
.rate input { position: absolute; opacity: 0; }
.rate label:has(input:checked), .rate label:has(input:checked) ~ label { color: var(--gold); }
.bubble .ts { display: block; font-size: .7rem; opacity: .7; margin-top: 2px; }
#acct-btn { font-weight: 600; }
@media (max-width: 860px) { #pgrid, #cgrid { grid-template-columns: 1fr !important; } }
@media (max-width: 760px) { footer.site .cols { grid-template-columns: 1fr 1fr; } }

/* ================= 3D ================= */
.hero-cta { margin-top: 20px; }
.btn.ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); }
.btn.ghost:hover { background: rgba(255,255,255,.16); border-color: #fff; }
.hero-sky { position: relative; min-height: 460px; }
.sky3d { position: relative; width: 100%; height: 460px; border-radius: 16px; overflow: hidden; }
.sky3d.tall { height: 520px; background: radial-gradient(ellipse at 50% 40%, #3a1320 0%, #12070a 75%); }
.sky3d canvas { display: block; width: 100% !important; height: 100% !important; }
.sky3d.loading::after { content: 'Loading the 3D sky…'; position: absolute; inset: 0; display: grid; place-items: center; color: #dcb9b3; font-size: .9rem; }
.sky-cap { position: absolute; right: 12px; top: 8px; text-align: right; display: grid; gap: 0; font-size: .82rem; color: #dcb9b3; pointer-events: none; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.sky-cap b { color: #fff; font-family: var(--display); font-weight: 400; font-size: 1.05rem; }
.sky-tip { position: absolute; z-index: 3; background: rgba(20,6,10,.92); color: #fff; border: 1px solid rgba(243,198,122,.5); border-radius: 10px; padding: 8px 11px; font-size: .84rem; line-height: 1.35; pointer-events: none; max-width: 220px; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.sky-tip span { color: #f3c67a; } .sky-tip i { color: #ffb37a; font-style: normal; }
.sky-fallback { padding: 30px; color: #dcb9b3; text-align: center; }
.kundli-quick .fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kundli-quick .fields .full { grid-column: span 2; }
@media (max-width: 900px) { .kundli-quick .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kundli-quick .fields .full { grid-column: 1 / -1; } }
@media (max-width: 520px) { .kundli-quick .fields { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .hero-sky, .sky3d { min-height: 0; height: 380px; } .sky3d.tall { height: 420px; } }

/* moon */
.moon-wrap { display: flex; gap: 14px; align-items: center; }
.moon3d { width: 96px; height: 96px; flex: none; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #1b0e12 60%, transparent 62%); }
.moon3d canvas { width: 96px !important; height: 96px !important; display: block; }
.moon-2d { width: 96px; height: 96px; border-radius: 50%; background: linear-gradient(90deg, #222 calc((1 - var(--i)) * 100%), #e8e4dc 0); }

/* 3D tilt cards */
.sign, .svc, .astro-card, .stat, .chart-box, .horo-area, .join-card { transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; transform-style: preserve-3d; will-change: transform; position: relative; }
.tilting { transition: transform .08s linear, box-shadow .2s; box-shadow: 0 18px 36px -14px rgba(60,15,25,.35); z-index: 2; }
.tilting::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.22), transparent 55%); }
.sign .glyph, .svc .ic { transform: translateZ(22px); }
.sign b, .svc b { transform: translateZ(14px); }

/* zodiac coins */
.sign .glyph { background: radial-gradient(circle at 35% 30%, #fff6e8, #f6c98f 45%, #d9620c 100%); color: #5a1426; box-shadow: inset 0 -4px 8px rgba(90,20,38,.35), inset 0 3px 6px rgba(255,255,255,.7), 0 6px 14px -4px rgba(217,98,12,.55); border: 2px solid #f3c67a; transition: transform .8s cubic-bezier(.3,1.4,.5,1); }
.sign:hover .glyph, .sign:focus-visible .glyph { transform: translateZ(22px) rotateY(360deg); }
.big-glyph { background: radial-gradient(circle at 35% 30%, #fff6e8, #f6c98f 45%, #d9620c 100%); color: #5a1426; box-shadow: inset 0 -6px 12px rgba(90,20,38,.35), inset 0 4px 8px rgba(255,255,255,.7), 0 10px 20px -6px rgba(217,98,12,.6); border: 2px solid #f3c67a; }

/* raised buttons */
.btn.primary, .cta { box-shadow: 0 3px 0 #9c3f05, 0 8px 18px -8px rgba(217,98,12,.7); transition: transform .08s, box-shadow .08s, filter .15s; }
.btn.primary:active, .cta:active { transform: translateY(2px); box-shadow: 0 1px 0 #9c3f05, 0 4px 10px -6px rgba(217,98,12,.7); }
.card { box-shadow: 0 1px 2px rgba(60,15,25,.06), 0 12px 28px -18px rgba(60,15,25,.35); }

/* page transition */
@keyframes gv-rise { from { opacity: .35; transform: perspective(1000px) rotateX(5deg) translateY(16px); } to { opacity: 1; transform: none; } }
#app.enter > * { animation: gv-rise .5s cubic-bezier(.2,.8,.2,1) both; }
#app.enter > *:nth-child(2) { animation-delay: .04s; } #app.enter > *:nth-child(3) { animation-delay: .08s; } #app.enter > *:nth-child(4) { animation-delay: .12s; }

@media (prefers-reduced-motion: reduce) {
  #app.enter > * { animation: none; }
  .sign .glyph, .sign:hover .glyph { transition: none; transform: none; }
  .sign, .svc, .astro-card, .stat, .chart-box, .horo-area, .join-card { transition: none; }
}

/* ================= BLOG ================= */
.post-card { padding: 0; overflow: hidden; color: var(--ink); display: grid; align-content: start; }
.post-card:hover { text-decoration: none; border-color: var(--accent); }
.post-card h3 { font-size: 1.15rem; margin: 0; }
.post-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--surface-2); }
.post-art { display: grid; place-items: end start; padding: 14px; color: #fff; font-family: var(--display); font-size: 1.2rem;
  background: radial-gradient(circle at 80% 20%, hsl(var(--h) 70% 62% / .9), transparent 45%), radial-gradient(circle at 15% 90%, rgba(243,198,122,.55), transparent 40%), linear-gradient(135deg, #5a1426, #2c0b14);
  position: relative; overflow: hidden; }
.post-art::before { content: ''; position: absolute; right: -30px; top: -30px; width: 170px; height: 170px; border-radius: 50%; border: 1px solid rgba(243,198,122,.45); box-shadow: 0 0 0 22px rgba(243,198,122,.08), 0 0 0 46px rgba(243,198,122,.05); }
.post-art span { position: relative; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.post { max-width: 760px; margin: 0 auto; }
.post-head { display: grid; gap: 8px; margin: 10px 0 18px; }
.post-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.post-head .lede { font-size: 1.15rem; color: var(--muted); }
.post-hero { width: 100%; border-radius: 14px; margin-bottom: 18px; aspect-ratio: 16 / 9; object-fit: cover; }
.post-body { font-size: 1.07rem; line-height: 1.75; max-width: none; display: block; }
.post-body > * { margin: 0 0 .85em; }
.post-body > h2, .post-body > h3 { margin: 1.3em 0 .45em; }
.post-body > :first-child { margin-top: 0; }
.post-body h2 { font-size: 1.5rem; margin-top: 1.2em; } .post-body h3 { font-size: 1.2rem; margin-top: 1em; }
.post-body ul, .post-body ol { padding-left: 1.3em; display: grid; gap: 4px; margin: 0; }
.post-body blockquote { margin: 0; padding: 10px 16px; border-left: 3px solid var(--gold); background: var(--surface-2); border-radius: 0 10px 10px 0; color: var(--ink); }
.post-body img { border-radius: 10px; max-width: 100%; }
.post-body figure { margin: 0; } .post-body figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 4px; }
.post-body code { background: var(--surface-2); padding: 1px 5px; border-radius: 5px; font-size: .92em; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }
.post-body a { text-decoration: underline; text-underline-offset: 2px; }
.post-cta { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin: 26px 0 10px; background: var(--accent-soft); border-color: var(--accent); }
/* editor */
.editor { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border-bottom: 1px solid var(--line); background: var(--surface-2); align-items: center; }
.toolbar > button, .toolbar .tbtn { border: 1px solid transparent; background: transparent; padding: 5px 9px; border-radius: 7px; cursor: pointer; font-size: .86rem; color: var(--ink); }
.toolbar > button:hover, .toolbar .tbtn:hover { background: var(--surface); border-color: var(--line); }
.ed-view { margin-left: auto; } .ed-view button { padding: 4px 10px; font-size: .82rem; }
.ed-panes { display: grid; grid-template-columns: 1fr 1fr; min-height: 420px; }
.ed-panes.write { grid-template-columns: 1fr; } .ed-panes.write .ed-prev { display: none; }
.ed-panes.preview { grid-template-columns: 1fr; } .ed-panes.preview .ed-src { display: none; }
.ed-src { border: 0; border-radius: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92rem; line-height: 1.6; resize: vertical; min-height: 420px; }
.ed-src:focus { box-shadow: none; }
.ed-prev { padding: 14px 18px; border-left: 1px solid var(--line); overflow: auto; max-height: 640px; font-size: 1rem; }
.editor > .small { padding: 4px 10px 8px; }
.ecover-img { width: 160px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
@media (max-width: 760px) { .ed-panes, .ed-panes.split { grid-template-columns: 1fr; } .ed-panes.split .ed-prev { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- reports, plans & payments ---------- */
.rep-grid, .plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 10px; }
.rep-card, .plan { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.rep-card.hi, .plan.hi { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset, var(--shadow); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 70%); }
.rep-card b, .plan b { font-family: var(--display); font-weight: 400; font-size: 1.15rem; }
.rep-card ul { margin: 0; padding-left: 18px; color: var(--muted); }
.rep-card li { margin: 2px 0; }
.rep-card .btn, .plan .btn { margin-top: auto; }
.rep-tag, .plan-tag { align-self: flex-start; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.rep-tag.gold, .plan-tag.gold { background: var(--night-2); color: #f3c67a; }
.plan-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 10px 14px; margin-bottom: 14px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid var(--line); font-size: .92rem; }
.plan-strip .btn { margin-left: auto; }
.pay-opt { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 54px; text-align: left; }
.pay-logo { font-weight: 700; font-size: 1.05rem; letter-spacing: .01em; }
.pay-logo.phonepe { color: #5f259f; }
.pay-logo.paytm { color: #00baf2; }
[data-theme="dark"] .pay-logo.phonepe { color: #b48bea; }
.pay-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: gv-spin 0.9s linear infinite; }
@keyframes gv-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pay-spin { animation: none; } }
.pay-ok { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--good-bg); color: var(--good); font-size: 1.6rem; font-weight: 700; }
.brand-mark { width: 52px; height: 52px; margin: -4px 0; flex: none; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }

/* ---------- installable app ---------- */
.install-chip { display: inline-flex; align-items: center; gap: 5px; border-color: #f3c67a; color: #f3c67a; }
.install-chip[hidden] { display: none !important; }
.install-banner { display: flex; align-items: center; gap: 14px; margin: 16px 0 0; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--gold); box-shadow: var(--shadow); }
.install-banner svg { flex: none; }
.install-banner .ib-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.install-banner .ib-text b { font-family: var(--display); font-weight: 400; font-size: 1.1rem; }
.install-banner .ib-text span { font-size: .88rem; color: var(--muted); }
.install-banner .ib-x { background: none; border: 0; font-size: 1.4rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 6px; }
.install-steps { padding-left: 20px; line-height: 1.7; }
@media (max-width: 560px) { .install-banner { flex-wrap: wrap; } .install-banner .ib-text { flex-basis: calc(100% - 90px); } .install-chip span { display: none; } }
/* when opened from the home screen */
html.standalone .topbar { padding-top: env(safe-area-inset-top); }
html.standalone body { padding-top: 0; overscroll-behavior-y: none; }
html.standalone .appbar { padding-bottom: max(6px, env(safe-area-inset-bottom)); }
.chip-btn { white-space: nowrap; }
@media (max-width: 440px) { .topbar .tb-right { gap: 5px; } .topbar .chip-btn { padding: 2px 8px; font-size: .78rem; } }

/* ---------- city search ---------- */
.city-field { position: relative; display: flex; flex-direction: column; gap: 6px; }
.city-ac { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% - 4px); margin: 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(40, 10, 20, .18); max-height: 340px; overflow-y: auto; }
.city-ac li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.city-ac li > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.city-ac li:hover, .city-ac li.on { background: var(--accent-soft); }
.city-ac li.ac-none { cursor: default; color: var(--muted); font-size: .9rem; }
.city-ac li.ac-none:hover { background: none; }
.tzinfo { margin: 0; min-height: 1.2em; }
.city-field .tzinfo:empty { display: none; }
.city-field > label { font-size: .86rem; color: var(--muted); font-weight: 500; }

/* ---------- festival calendar ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: .86rem; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--night-2); border-color: var(--night-2); color: #fff; }
.fest-list li { padding: 0; }
.fest-item { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; width: 100%; padding: 8px 2px; background: none; border: 0; border-bottom: 1px dashed var(--line); font: inherit; color: inherit; text-align: left; cursor: pointer; }
.fest-item:hover .fest-name b, .fest-item:hover .fest-name { color: var(--accent); }
.fest-name { display: flex; flex-direction: column; min-width: 0; padding-left: 14px; position: relative; }
.fest-name .dot { position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.fest-item .num { white-space: nowrap; flex: none; }
.fest-list li.past { opacity: .55; }
.fest-list li.today .fest-item { background: var(--accent-soft); border-radius: 8px; padding-left: 6px; padding-right: 6px; }
.dot.fc-hindu { background: #d9620c; } .dot.fc-vrat { background: #b8862a; } .dot.fc-regional { background: #c2410c; } .dot.fc-sankranti { background: #eab308; }
.dot.fc-sikh { background: #1e40af; } .dot.fc-jain { background: #059669; } .dot.fc-buddhist { background: #a16207; } .dot.fc-islamic { background: #15803d; }
.dot.fc-christian { background: #7c3aed; } .dot.fc-parsi { background: #0e7490; } .dot.fc-jewish { background: #2563eb; } .dot.fc-national { background: #f97316; } .dot.fc-world { background: #64748b; }

/* ---------- personal features ---------- */
.myday-home { display: block; margin: 0 0 16px; border-color: var(--gold); text-decoration: none; color: inherit; }
.myday-home:hover { box-shadow: var(--shadow); }
.myday-n { flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 400; font-size: 1.4rem; background: var(--warn-bg); color: var(--warn); }
.myday-n.good { background: var(--good-bg); color: var(--good); } .myday-n.bad { background: var(--bad-bg); color: var(--bad); }
.tl-wrap { overflow-x: auto; } .tl-wrap svg { min-width: 760px; width: 100%; height: auto; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge-v { font-size: .76rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--good-bg); color: var(--good); }
.badge-v.gold { background: var(--accent-soft); color: var(--gold); } .badge-v.muted { background: var(--surface-2); color: var(--muted); }
.btn.pair.good { border-color: var(--good); color: var(--good); } .btn.pair.bad { border-color: var(--bad); color: var(--bad); }
.bubble .why { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; font-size: .82rem; align-items: center; }
.bubble .speak { background: none; border: 0; cursor: pointer; font-size: 1rem; padding: 2px; margin-top: 4px; opacity: .7; }
.ai-facts { white-space: pre-wrap; font-size: .78rem; background: var(--surface-2); padding: 10px; border-radius: 8px; max-height: 220px; overflow: auto; }
.vt-list li { padding: 4px 0; }
.lang-sel { appearance: none; -webkit-appearance: none; padding-right: 10px; font: inherit; font-size: .82rem; }
.lang-sel option { color: #2a1519; }

/* ---------- blog: social sharing ---------- */
.share-set { border: 1px solid var(--line, #e6d7c9); border-radius: 14px; padding: 14px; display: grid; gap: 10px; }
.share-set legend { padding: 0 6px; font-weight: 600; }
.share-set .tag-row { display: flex; gap: 8px; }
.share-set .tag-row input { flex: 1; min-width: 0; }
.sp-card { display: grid; grid-template-columns: 1fr 120px; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #4a0f20, #2c0b14); color: #fff; min-height: 120px; }
.sp-art { background: #5c1a2b; color: #f3c67a; display: grid; place-items: center; font-family: Marcellus, serif; font-size: .8rem; text-align: center; padding: 6px; order: 2; }
.sp-card > img { width: 100%; height: 100%; object-fit: cover; order: 2; }
.sp-body { padding: 12px 14px; display: grid; gap: 4px; align-content: center; }
.sp-body b { font-family: Marcellus, serif; font-size: 1.05rem; line-height: 1.25; }
.sp-body span { color: #f3c67a; font-size: .88rem; }
.sp-site { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.sp-text { white-space: pre-wrap; background: var(--soft, #faf4ee); border-radius: 10px; padding: 10px 12px; font-size: .85rem; margin: 0; max-height: 180px; overflow: auto; }

/* ---------- policy pages ---------- */
.legal-page { max-width: 820px; display: grid; gap: 10px; line-height: 1.6; }
.legal-page h3 { margin: 12px 0 0; }
.legal-page ul { margin: 0; padding-left: 1.2em; }
.legal-page dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.legal-page dt { font-weight: 600; } .legal-page dd { margin: 0; }
.legal-page .tbl { width: 100%; border-collapse: collapse; } .legal-page .tbl th, .legal-page .tbl td { border-bottom: 1px solid var(--line, #e6d7c9); padding: 8px; text-align: left; vertical-align: top; }
footer.site .legal a { color: inherit; }

/* brand wordmark: "Baba" in Marcellus + "ज्योतिष" in Devanagari */
.brand .bw { white-space: nowrap; }
.brand .bw-hi { font-family: 'Mukta', 'Mukta Deva', sans-serif; font-weight: 600; font-size: .96em; letter-spacing: 0; margin-left: .2em; color: #f6d58e; }
.brand small { letter-spacing: .12em; }
.brand small { white-space: nowrap; }
@media (max-width: 440px) { .brand small { font-size: .56rem; letter-spacing: .06em; } }

/* blog picture and thumbnail */
.thumb-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.thumb-prev { position: relative; width: 320px; max-width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #2c0b14; flex: none; }
.thumb-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-tag { position: absolute; left: 8px; bottom: 8px; background: rgba(0,0,0,.55); color: #fff; font-size: .72rem; padding: 2px 8px; border-radius: 99px; text-transform: capitalize; }
img.post-cover { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; display: block; background: #2c0b14; }
img.post-hero { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; border-radius: 16px; }
