/* Bhakti Sagar: sandalwood paper, sindoor and marigold, temple-stone dark. */
:root {
  --paper: #FBF3E4;
  --paper-2: #F3E3C7;
  --card: #FFFAF1;
  --ink: #2A140C;
  --ink-2: #4A2C1C;
  --muted: #7A5B45;
  --line: #E6D2B0;
  --sindoor: #B3261E;
  --sindoor-2: #8E1B15;
  --marigold: #E8871E;
  --haldi: #E9B824;
  --tulsi: #3E6B3A;
  --shadow: 0 1px 0 rgba(122, 61, 20, .08), 0 10px 30px -12px rgba(122, 61, 20, .28);
  --r: 20px;
  --scale: 1;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #150D09; --paper-2: #21150F; --card: #1E140E; --ink: #F7EAD7; --ink-2: #E9D6BC; --muted: #C2A587;
    --line: #3A291D; --sindoor: #FF6F5E; --sindoor-2: #FF8E7E; --marigold: #FFA63D; --haldi: #F2C94C; --tulsi: #8BC487;
    --shadow: 0 10px 30px -14px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: calc(18.5px * var(--scale)); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); background-color: var(--paper);
  background-image: var(--grain);
  font-family: 'Mukta', 'Noto Sans Devanagari', system-ui, sans-serif; line-height: 1.55;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}
h1, h2, h3, .display { font-family: 'Tiro Devanagari Hindi', Georgia, serif; font-weight: 400; letter-spacing: 0; }
h1 { font-size: 1.75rem; line-height: 1.25; margin: .3rem 0 .5rem; }
h2 { font-size: 1.35rem; line-height: 1.3; margin: 0 0 .7rem; }
h3 { font-size: 1.12rem; line-height: 1.35; margin: 0 0 .25rem; }
p { margin: .35rem 0; }
a { color: var(--sindoor); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
.ic { width: 1.35em; height: 1.35em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sym { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--paper); }
.bar { display: flex; align-items: center; gap: 8px; max-width: 1040px; margin: 0 auto; padding: 10px 16px 8px; }
.toran { height: 18px; background-repeat: repeat-x; background-size: 40px 22px; background-position: center top; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--sindoor-2); margin-right: auto; min-width: 0; }
.brand .mark { width: 36px; height: 36px; flex: none; color: var(--marigold); }
.brand .word { font-family: 'Tiro Devanagari Hindi', Georgia, serif; font-size: 1.3rem; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tools { display: flex; gap: 4px; flex: none; }
.tool { min-width: 42px; height: 42px; padding: 0 8px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-weight: 700; font-size: .85rem; }

.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--card); border-top: 1.5px solid var(--line); padding: 6px 4px calc(8px + env(safe-area-inset-bottom));
}
.nav a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 0 2px; color: var(--muted); text-decoration: none; font-size: .74rem; }
.nav a .ic { width: 27px; height: 27px; }
.nav a.on { color: var(--sindoor); font-weight: 700; }
.nav a.on::before { content: ''; position: absolute; top: -7px; width: 22px; height: 4px; border-radius: 0 0 6px 6px; background: var(--marigold); }
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .nav { position: static; display: flex; gap: 2px; background: none; border: 0; padding: 0; }
  .nav a { flex-direction: row; gap: 7px; padding: 9px 13px; font-size: .9rem; border-radius: 12px; }
  .nav a .ic { width: 21px; height: 21px; }
  .nav a.on { background: var(--paper-2); }
  .nav a.on::before { display: none; }
}

main { max-width: 1040px; margin: 0 auto; padding: 14px 16px 40px; outline: none; }
section + section { margin-top: 26px; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.divider { display: flex; justify-content: center; margin: 26px 0 18px; color: var(--marigold); }
.divider svg { width: 150px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }

/* ---------- home leaf ---------- */
.leaf {
  position: relative; overflow: hidden; border-radius: 26px; color: #FFF3DC; padding: 20px 20px 16px;
  background:
    radial-gradient(140% 90% at 85% 0%, rgba(255, 196, 92, .45) 0%, transparent 55%),
    linear-gradient(160deg, #A8321A 0%, #7E1710 55%, #4A0E0B 100%);
  box-shadow: 0 18px 40px -18px rgba(126, 23, 16, .75);
}
.leaf::after { content: ''; position: absolute; right: -70px; top: -70px; width: 230px; height: 230px; background: var(--rangoli-light) center / contain no-repeat; opacity: .22; pointer-events: none; }
.leaf .hd { position: relative; z-index: 1; display: flex; gap: 14px; align-items: flex-start; }
.leaf .hd > div:first-child { flex: 1; min-width: 0; }
.leaf .when { margin: 0; font-size: .92rem; opacity: .9; }
.leaf h1 { color: #FFF3DC; font-size: 2.5rem; line-height: 1.15; margin: .1rem 0 .05rem; }
.leaf .sub { margin: 0; font-size: 1rem; color: #FFD9A0; }
.moon { width: 70px; flex: none; text-align: center; font-size: .7rem; line-height: 1.2; color: #FFE4BA; }
.moon svg { width: 62px; height: 62px; display: block; margin: 0 auto 3px; filter: drop-shadow(0 0 12px rgba(255, 236, 190, .5)); }
.arc { position: relative; z-index: 1; margin: 10px -4px 2px; }
.arc svg { width: 100%; height: auto; display: block; overflow: visible; }
.arc text { font-family: 'Mukta', sans-serif; font-size: 10.5px; fill: #FFE4BA; }
.arc .legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .78rem; color: #FFE4BA; margin-top: 2px; }
.arc .legend i { display: inline-block; width: 14px; height: 4px; border-radius: 2px; margin-right: 6px; vertical-align: 2px; }
.pills { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 10px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: .84rem; background: rgba(255, 243, 220, .13); border: 1px solid rgba(255, 243, 220, .22); }
.leaf .cta { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }


@media (min-width: 900px) {
  .leaf { display: grid; grid-template-columns: 1.05fr 1fr; grid-template-areas: "hd arc" "cta arc"; gap: 8px 40px; padding: 30px 34px; align-items: center; }
  .leaf .hd { grid-area: hd; } .leaf .arc { grid-area: arc; margin: 0; } .leaf .cta { grid-area: cta; align-self: start; }
  .leaf h1 { font-size: 3.4rem; }
  .moon { width: 84px; } .moon svg { width: 76px; height: 76px; }
}

/* ---------- festival banner ---------- */
.fest { display: flex; gap: 14px; align-items: center; padding: 16px 18px 16px 22px; border-radius: var(--r); background: var(--card); border: 1.5px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.fest::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 6px; background: linear-gradient(var(--marigold), var(--sindoor)); }
.fest .days { flex: none; width: 70px; text-align: center; }
.fest .days b { display: block; font-family: 'Tiro Devanagari Hindi', serif; font-size: 2.2rem; line-height: 1; color: var(--sindoor); font-weight: 400; }
.fest .days span { font-size: .78rem; color: var(--muted); }
.fest .txt { flex: 1; min-width: 0; }
.fest .txt h3 { font-size: 1.2rem; }
.fest .links { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .9rem; margin-top: 4px; }

/* ---------- today notes ---------- */
.notes { display: grid; gap: 10px; }
@media (min-width: 760px) { .notes { grid-template-columns: repeat(3, 1fr); } }
.note-card { display: flex; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--card); border: 1.5px solid var(--line); }
.note-card .badge { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--sindoor); background: var(--paper-2); }
.note-card h3 { font-size: 1.02rem; }
.note-card p { font-size: .93rem; color: var(--ink-2); }

/* ---------- actions ---------- */
.acts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px 4px; }
@media (min-width: 760px) { .acts { grid-template-columns: repeat(10, 1fr); } }
.act { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); text-align: center; font-size: .82rem; line-height: 1.25; }
.act .ring { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: var(--sindoor); background: var(--card); border: 1.5px solid var(--line); box-shadow: inset 0 0 0 4px var(--card), inset 0 0 0 5.5px rgba(232, 135, 30, .4); }
.act .ring .ic { width: 28px; height: 28px; }
.act:active .ring { transform: scale(.96); }

/* ---------- cards, lists ---------- */
.card { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.list { display: flex; flex-direction: column; gap: 10px; }
.ev { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; padding: 10px 14px 10px 10px; }
.ev .d { flex: none; width: 56px; text-align: center; border-radius: 13px; padding: 6px 2px 5px; line-height: 1.15; background: var(--paper-2); color: var(--sindoor-2); }
.ev .d b { display: block; font-family: 'Tiro Devanagari Hindi', serif; font-weight: 400; font-size: 1.5rem; }
.ev .d span { font-size: .72rem; }
.ev.festival .d { background: var(--sindoor); color: #FFF3DC; }
.ev .t { flex: 1; min-width: 0; }
.ev .t b { display: block; font-weight: 600; }
.ev .t span { font-size: .84rem; color: var(--muted); }
.ev .a { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: .84rem; }
.month-h { font-family: 'Tiro Devanagari Hindi', serif; color: var(--muted); font-size: 1.05rem; margin: 14px 2px 2px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 10px 20px; border-radius: 16px; border: 0; background: var(--sindoor); color: #FFF6E8; font-weight: 700; text-decoration: none; cursor: pointer; font-size: 1rem; line-height: 1.2; text-align: center; }
@media (prefers-color-scheme: dark) { .btn { background: #C93A2D; } }
.btn.ghost { background: transparent; color: var(--sindoor); box-shadow: inset 0 0 0 1.8px var(--sindoor); }
.btn.soft { background: var(--paper-2); color: var(--ink); }
.btn.light { background: #FFF3DC; color: #7E1710; }
.btn.clear { background: rgba(255, 243, 220, .14); color: #FFF3DC; box-shadow: inset 0 0 0 1.5px rgba(255, 243, 220, .35); }
.btn.wide { width: 100%; }
.btn:active { transform: translateY(1px); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.chip { border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 14px; cursor: pointer; font-size: .9rem; line-height: 1.3; text-align: left; }
.chip.on { background: var(--sindoor); color: #FFF6E8; border-color: var(--sindoor); }
.tag { display: inline-block; font-size: .7rem; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--paper-2); color: var(--sindoor-2); margin-left: 6px; vertical-align: 2px; }

.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.fact { background: var(--card); border: 1.5px solid var(--line); border-radius: 16px; padding: 11px 14px; }
.fact small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.35; }
.fact b { font-size: 1.05rem; font-weight: 600; }

.rules { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.rules ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.rules li { margin: .25rem 0; }
.rules li::marker { color: var(--marigold); }
.yes h3 { color: var(--tulsi); }
.no h3 { color: var(--sindoor); }
.note { border-left: 4px solid var(--haldi); background: var(--paper-2); padding: 12px 14px; border-radius: 12px; margin: 14px 0; font-size: .93rem; }

.shloka { font-family: 'Tiro Devanagari Hindi', serif; font-size: 1.18rem; line-height: 1.65; white-space: pre-line; color: var(--sindoor-2); margin: .2rem 0 .4rem; }
.roman { font-style: italic; color: var(--muted); font-size: .92rem; white-space: pre-line; }
.framed { position: relative; overflow: hidden; }
.framed::after { content: ''; position: absolute; right: -46px; bottom: -46px; width: 150px; height: 150px; background: var(--rangoli) center / contain no-repeat; opacity: .5; pointer-events: none; }

label { display: block; font-weight: 600; margin: 14px 0 6px; }
input, select, textarea { width: 100%; min-height: 52px; padding: 10px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); }
textarea { min-height: 96px; resize: vertical; }
:focus-visible { outline: 3px solid var(--haldi); outline-offset: 2px; }

.page-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.page-h a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--ink); }
.page-h h1 { margin: 0; }

/* ---------- ask ---------- */
.chat { display: flex; flex-direction: column; gap: 12px; margin: 10px 0 16px; }
.msg { max-width: 88%; padding: 12px 16px; border-radius: 20px; white-space: pre-wrap; line-height: 1.6; }
.msg.me { align-self: flex-end; background: var(--sindoor); color: #FFF6E8; border-bottom-right-radius: 6px; }
.msg.pt { align-self: flex-start; background: var(--card); border: 1.5px solid var(--line); border-bottom-left-radius: 6px; }
.msg .who { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); margin-bottom: 3px; }
.msg .who .ic { width: 16px; height: 16px; color: var(--marigold); }
.msg .say { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--sindoor); cursor: pointer; padding: 8px 0 0; font-size: .86rem; }
.msg .say .ic { width: 18px; height: 18px; }
.composer { position: sticky; bottom: calc(86px + env(safe-area-inset-bottom)); display: flex; gap: 8px; align-items: flex-end; background: var(--paper); padding: 8px 0; }
@media (min-width: 900px) { .composer { bottom: 0; } }
.composer textarea { min-height: 56px; height: 56px; }
.composer .btn { min-width: 56px; height: 56px; padding: 0 14px; }
.typing::after { content: ''; display: inline-block; width: 1.2em; text-align: left; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

/* ---------- darshan, bhajan ---------- */
.temple .head { display: flex; gap: 12px; align-items: center; }
.temple .head .s { width: 46px; height: 46px; flex: none; color: var(--sindoor-2); padding: 6px; border-radius: 14px; background: var(--paper-2); }
.frame { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; margin: 12px 0; display: grid; place-items: center;
  background: radial-gradient(70% 90% at 50% 100%, #8E3A12 0%, #2A100A 70%); }
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.frame .play { display: inline-flex; align-items: center; gap: 8px; color: #FFF3DC; background: rgba(0, 0, 0, .25); border: 1.5px solid rgba(255, 243, 220, .7); border-radius: 999px; padding: 12px 22px; cursor: pointer; font-weight: 700; }
.song { display: flex; gap: 12px; align-items: center; }
.song .n { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); color: var(--sindoor-2); }
.song .t { flex: 1; min-width: 0; }
.song .t b { display: block; font-weight: 600; }

/* ---------- room ---------- */
.room { text-align: center; }
.sanctum { position: relative; margin: 6px auto 14px; max-width: 460px; aspect-ratio: 1 / .8; border-radius: 200px 200px 26px 26px; overflow: hidden;
  background: radial-gradient(70% 60% at 50% 42%, #FFCF7A 0%, #E9821B 30%, #8A2512 62%, #2B0D08 100%);
  box-shadow: inset 0 0 0 6px rgba(255, 214, 140, .25), inset 0 0 0 9px rgba(0, 0, 0, .25), 0 20px 50px -20px rgba(120, 30, 10, .8); }
.sanctum .glow { position: absolute; inset: 0; background: radial-gradient(40% 35% at 50% 40%, rgba(255, 240, 200, .55), transparent 70%); animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .55; } }
.sanctum .deity { position: absolute; left: 50%; top: 12%; width: 32%; transform: translateX(-50%); color: #FFF1D0; filter: drop-shadow(0 0 18px rgba(255, 220, 150, .9)); }
.sanctum .deity .sym { stroke-width: 2.4; }
.thali { position: absolute; left: 50%; bottom: 10%; width: 130px; height: 50px; margin-left: -65px; }
.thali .plate { position: absolute; bottom: 0; width: 130px; height: 24px; border-radius: 50%; background: linear-gradient(#FFE6A0, #C1902A); box-shadow: 0 4px 0 #7d5a12, inset 0 -3px 6px rgba(0, 0, 0, .2); }
.flame { position: absolute; left: 50%; bottom: 15px; width: 18px; height: 34px; margin-left: -9px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 50% 72%, #fff 0 16%, #FFE066 28%, #FF9F1C 58%, rgba(255, 90, 0, 0) 72%); animation: flick .16s infinite alternate; transform-origin: 50% 100%; }
@keyframes flick { to { transform: scaleY(1.12) scaleX(.9) rotate(2deg); } }
.sanctum.circling .thali { animation: aarti 3.4s linear infinite; }
@keyframes aarti {
  0% { transform: translate(0, 0); } 25% { transform: translate(70px, -60px); } 50% { transform: translate(0, -118px); }
  75% { transform: translate(-70px, -60px); } 100% { transform: translate(0, 0); }
}
.petal { position: absolute; top: -20px; width: 14px; height: 10px; border-radius: 60% 0; animation: fall 3.2s linear forwards; }
@keyframes fall { to { transform: translateY(380px) rotate(340deg); opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .sanctum.circling .thali, .flame, .sanctum .glow { animation: none; } }
.now { min-height: 8.5rem; display: grid; place-items: center; padding: 14px; }
.now .line { font-family: 'Tiro Devanagari Hindi', serif; font-size: 1.4rem; color: var(--sindoor-2); line-height: 1.55; }
.now .line.say { font-family: 'Mukta', sans-serif; font-size: 1.12rem; color: var(--ink); }
.now .rom { font-style: italic; color: var(--muted); font-size: .95rem; margin-top: 4px; }
.now .label { font-size: .85rem; color: var(--muted); }
.progress { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 6px 0 14px; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--marigold), var(--sindoor)); transition: width .5s; }
.count { font-size: 2.4rem; font-family: 'Tiro Devanagari Hindi', serif; color: var(--sindoor-2); line-height: 1.2; }
.lyrics { text-align: left; margin-top: 18px; }
.lyrics p { margin: .1rem 0; padding: 3px 10px; border-radius: 10px; }
.lyrics p .roman { display: block; font-size: .82rem; }
.lyrics p.cur { background: var(--paper-2); font-weight: 600; }
.room .btns { justify-content: center; }

/* ---------- language picker ---------- */
.picker { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(30, 12, 6, .6); }
.picker .box { width: min(420px, 100%); background: var(--card); border-radius: 26px; padding: 26px 22px; text-align: center; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.picker .box .mark { width: 64px; height: 64px; margin: 0 auto 6px; color: var(--marigold); }
.picker .box .btn { width: 100%; margin-top: 10px; font-size: 1.15rem; }

footer.foot { max-width: 1040px; margin: 0 auto; padding: 4px 16px 28px; color: var(--muted); font-size: .8rem; text-align: center; }

@media (max-width: 699px) { .spacer { display: none; } }

/* ---------- japa mala ---------- */
.mala { display: flex; flex-direction: column; align-items: center; margin: 4px 0 18px; }
.bead { position: relative; width: min(78vw, 300px); aspect-ratio: 1; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 50%; -webkit-tap-highlight-color: transparent; }
.bead svg { width: 100%; height: 100%; }
.bead .face { fill: var(--card); stroke: var(--line); stroke-width: 2; }
.bead .b { stroke: var(--line); stroke-width: 3; stroke-linecap: round; }
.bead .b.on { stroke: var(--sindoor); }
.bead:active .face { fill: var(--paper-2); }
.bead .num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.bead .num b { font-family: 'Tiro Devanagari Hindi', serif; font-weight: 400; font-size: 4rem; line-height: 1; color: var(--sindoor-2); }
.bead .num small { font-size: .95rem; color: var(--muted); }
.mala .rounds { margin: 10px 0 0; text-align: center; }
#mchips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 8px; scrollbar-width: none; }
#mchips::-webkit-scrollbar { display: none; }
#mchips .chip { white-space: nowrap; flex: none; }

/* ---------- month grid ---------- */
.month { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); padding: 12px 10px 10px; box-shadow: var(--shadow); }
.month-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.month-nav h3 { margin: 0; font-size: 1.2rem; text-align: center; }
.mhead, .mdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.mhead span { text-align: center; font-size: .74rem; color: var(--muted); padding: 2px 0 4px; }
.cell { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 0; min-height: 58px; padding: 4px 1px 3px; border-radius: 12px; text-decoration: none; color: var(--ink); background: var(--paper); border: 1.5px solid transparent; line-height: 1.15; }
.cell b { font-family: 'Tiro Devanagari Hindi', serif; font-weight: 400; font-size: 1.12rem; }
.cell .tn { font-size: .56rem; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell em { display: flex; gap: 2px; min-height: 7px; margin-top: 2px; }
.cell.krishna { background: color-mix(in srgb, var(--paper-2) 80%, transparent); }
.cell.purn { background: radial-gradient(circle at 50% 38%, #FFF1C2 0 34%, transparent 36%), var(--paper); box-shadow: inset 0 0 0 1.5px var(--haldi); }
.cell.amav { background: var(--ink-2); color: var(--paper); }
.cell.amav .tn { color: var(--paper); opacity: .8; }
.cell.today { border-color: var(--sindoor); }
.cell.today b { color: var(--sindoor); }
.cell:active { transform: scale(.97); }
.month u { display: inline-block; width: 6px; height: 6px; border-radius: 50%; }
.month u.f { background: var(--sindoor); }
.month u.v { background: var(--haldi); }
.mlegend u { margin-right: 2px; vertical-align: 1px; }
@media (min-width: 700px) { .cell { min-height: 74px; } .cell .tn { font-size: .72rem; } .cell b { font-size: 1.3rem; } }
