/* ==========================================================================
   SahiVidhi design system — "The Living Manuscript", v2
   Every value comes from the tokens below. Do not add raw px/hex values in
   components: if something new is needed, add a token.
   ========================================================================== */

/* 0. TOKENS --------------------------------------------------------------- */
:root {
  /* colour — each has ONE job */
  --ink: #17151F;          /* text, dark sections */
  --ink-2: #2A2738;        /* dark surfaces on dark */
  --bg: #F6EFE2;           /* page (parchment) */
  --surface: #FCF8F1;      /* cards */
  --surface-2: #EFE5D3;    /* recessed / hover */
  --line: rgba(23, 21, 31, .10);
  --line-2: rgba(23, 21, 31, .20);
  --muted: #6B6255;        /* secondary text */
  --on-dark: #F6EFE2;
  --on-dark-muted: rgba(246, 239, 226, .68);
  --accent: #A8231B;       /* kumkum — the single action/brand accent */
  --gold: #E2A93B;         /* haldi — highlight only (now, current, numbers) */
  --gold-tint: #FBEFD2;
  --gold-text: #8A5A00;    /* haldi for TEXT on light backgrounds: 5.2:1 on parchment (bright --gold is for dark backgrounds/decoration) */
  --jain: #1D6B63;
  --jain-tint: #E3EFEA;
  --good: #2E7A4E;   --good-tint: #E7F2EA;
  --ok: #B9852A;     --ok-tint: #F7EED9;
  --bad: #B3372F;    --bad-tint: #F8E6E3;

  /* type */
  --serif: "Instrument Serif", "Instrument Serif Fallback", Georgia, serif;
  --sans: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --deva: "Tiro Devanagari Hindi", "Noto Serif Gujarati", "Noto Serif Devanagari", serif;
  --guj: "Noto Serif Gujarati", "Tiro Devanagari Hindi", serif;
  --fs-xs: .75rem;                              /* 12 — labels, meta */
  --fs-sm: .875rem;                             /* 14 — secondary */
  --fs-md: 1rem;                                /* 16 — body */
  --fs-lg: 1.125rem;                            /* 18 — lead */
  --fs-xl: 1.375rem;                            /* 22 — card titles */
  --fs-2xl: clamp(1.75rem, 3vw, 2.25rem);       /* 28–36 — sub-section */
  --fs-3xl: clamp(2.25rem, 4.5vw, 3.25rem);     /* 36–52 — section */
  --fs-4xl: clamp(2.75rem, 6.5vw, 5rem);        /* 44–80 — page title */
  --fs-hero: clamp(3.5rem, 10.5vw, 10rem);       /* 56–160 — home hero */

  /* space (4-pt grid) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 72px; --s-9: 112px;

  /* shape */
  --r-sm: 10px;    /* chips, inputs, small rows */
  --r-md: 16px;    /* cards, list rows */
  --r-lg: 28px;    /* feature panels, hero blocks */
  --r-pill: 999px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 18px 40px -28px rgba(23, 21, 31, .45);

  /* layout */
  --max: 1120px;
  --narrow: 720px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* 1. BASE ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* smooth only for in-page clicks — arriving from a link to #verse jumps there instantly */
html:focus-within { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--fs-md)/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: -.01em; margin: 0; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--accent); }
p { margin: 0 0 var(--s-4); }
.deva { font-family: var(--deva); }
.gu, .gu-title { font-family: var(--guj); }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: var(--r-sm); }
/* on dark surfaces the outline switches to light haldi so it stays visible */
.story :focus-visible, .site-footer :focus-visible, .why-band :focus-visible, .tsheet :focus-visible { outline-color: #FFE6A8; }
/* Skip link: hidden until a keyboard user tabs to it */
.skip { position: absolute; left: var(--s-3); top: -100px; z-index: 200; background: var(--ink); color: var(--on-dark); padding: 12px 16px; border-radius: var(--r-sm); font: 600 var(--fs-sm)/1 var(--sans); text-decoration: none; }
.skip:focus { top: var(--s-3); }

/* 2. LAYOUT --------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--s-5); }
.narrow { max-width: var(--narrow); }
section.block { padding: var(--s-9) 0; }
section.block + section.block { padding-top: 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-5); margin-bottom: var(--s-6); flex-wrap: wrap; }
.section-head h2 { font-size: var(--fs-3xl); max-width: 16ch; margin-top: var(--s-3); }
.section-head p { color: var(--muted); max-width: 36ch; margin: 0; }
.eyebrow { display: inline-block; font: 600 var(--fs-xs)/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.eyebrow.jain { color: var(--jain); }
.lead { font-size: var(--fs-lg); color: var(--muted); max-width: 52ch; }
.muted, .small-note, .fineprint { color: var(--muted); }
.small-note, .fineprint { font-size: var(--fs-sm); margin: var(--s-3) 0 0; }

/* 3. CONTROLS ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-5); border-radius: var(--r-pill); border: 0; cursor: pointer;
  background: var(--ink); color: var(--on-dark); font: 600 var(--fs-sm)/1 var(--sans); text-decoration: none;
  transition: transform .2s var(--ease), background .2s;
}
.btn:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }
.btn.light { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn.light:hover { box-shadow: inset 0 0 0 1.5px var(--ink); background: transparent; color: var(--ink); }
.btn.haldi { background: var(--gold); color: var(--ink); }
.btn.haldi:hover { background: #F0BC55; color: var(--ink); }
.btn.wa { background: var(--good); color: #fff; }
.btn.wa:hover { background: #24653F; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.g-actions, .cta { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.tag, .badge-box, .tg, .tier-tag, .chip {
  display: inline-flex; align-items: center; gap: var(--s-1); padding: var(--s-1) var(--s-3);
  border-radius: var(--r-pill); font: 600 var(--fs-xs)/1.4 var(--sans); white-space: nowrap;
}
.tag.parvi { background: var(--jain-tint); color: var(--jain); }
.badge-box { background: var(--ink); color: var(--gold); margin-left: var(--s-2); vertical-align: middle; }
.tier-tag { background: var(--bad-tint); color: var(--accent); margin-top: var(--s-3); }
.tg.vela { background: var(--bad-tint); color: var(--bad); }
.tg.rahu { background: var(--bad); color: #fff; }
.tg.now { background: var(--gold); color: var(--ink); }

/* 4. HEADER & FOOTER ------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 40; height: var(--header-h); background: rgba(246, 239, 226, .86); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); }
.brand { display: flex; align-items: center; gap: var(--s-3); color: var(--ink); text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.brand .word { display: flex; flex-direction: column; line-height: 1; }
.brand .word b { font: 400 var(--fs-xl)/1 var(--serif); }
.brand .word b i { color: var(--accent); }
.brand .word small { font: var(--fs-xs)/1 var(--deva); color: var(--muted); margin-top: var(--s-1); white-space: nowrap; }
.nav { display: flex; align-items: center; gap: var(--s-5); }
.nav a { color: var(--ink); text-decoration: none; font-size: var(--fs-sm); font-weight: 500; }
.nav a:hover { color: var(--accent); }
.nav a.btn { color: var(--on-dark); min-height: 40px; padding: 0 var(--s-4); white-space: nowrap; }

.site-footer { margin-top: var(--s-9); padding: var(--s-8) 0 var(--s-6); background: var(--ink); color: var(--on-dark); }
.site-footer .wrap { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: var(--s-6); }
.site-footer .brand { color: var(--on-dark); }
.site-footer .brand .word small, .site-footer p, .site-footer a { color: var(--on-dark-muted); }
.site-footer p, .site-footer a { font-size: var(--fs-sm); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer h4 { margin: 0 0 var(--s-3); font: 600 var(--fs-xs)/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.site-footer .bottom { grid-column: 1 / -1; border-top: 1px solid rgba(246, 239, 226, .14); padding-top: var(--s-5); font-size: var(--fs-xs); color: var(--on-dark-muted); }

/* 5. SURFACES ------------------------------------------------------------- */
.card, .tile, .dos > div, .toc {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-5);
}
.card h3 { font: 700 var(--fs-xs)/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 0 0 var(--s-4); }
.jain-card h3 { color: var(--jain); }
.note { background: var(--gold-tint); border-radius: var(--r-md); padding: var(--s-4) var(--s-5); margin: var(--s-5) 0; font-size: var(--fs-sm); }
.status { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: var(--gold-tint); font-size: var(--fs-sm); margin: var(--s-5) 0; }
.status.ok { background: var(--jain-tint); }
.dark { background: var(--ink); color: var(--on-dark); }

/* 6. LIST ROWS (one pattern for every list on the site) -------------------- */
.fl, .cl, .best li, .day-fests li, .includes li, .samagri li label, .cd-list button[data-pick] {
  display: grid; align-items: center; gap: var(--s-4);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--s-3) var(--s-4); color: var(--ink); text-decoration: none;
}
.flist3, .cls, .best, .day-fests, .includes, .samagri, .cd-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
a.fl:hover, .cd-list button[data-pick]:hover { border-color: var(--line-2); background: #fff; }
/* left accent stripe = category */
.fl, .cl, .day-fests li { border-left-width: 4px; }
.fl.hindu, .day-fests li.hindu { border-left-color: var(--accent); }
.fl.jain, .day-fests li.jain, .day-fests li.digambar { border-left-color: var(--jain); }
.fl.vrat, .day-fests li.vrat { border-left-color: var(--gold); }

/* 7. HOME ----------------------------------------------------------------- */
/* section-page hero (Hindu, Jain, Kits …) */
.hero { position: relative; overflow: hidden; padding: var(--s-8) 0 var(--s-5); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1fr; }
.hero .watermark { position: absolute; right: -2vw; bottom: -4vw; font: clamp(8rem, 22vw, 20rem)/1 var(--deva); color: var(--ink); opacity: .05; white-space: nowrap; pointer-events: none; }
.hero h1 { font-size: var(--fs-4xl); margin: var(--s-5) 0; }
.hero .lead { margin-bottom: var(--s-6); }

/* home hero — "the lit diya at dawn": headline top, object centre, caption + actions bottom */
.home-hero {
  --hh-glow: #F7D7A6;
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(calc(100svh - var(--header-h)), 900px);
  display: grid; grid-template-rows: auto 1fr auto; padding: var(--s-7) 0 var(--s-6);
  background:
    radial-gradient(60% 55% at 62% 58%, var(--hh-glow), transparent 70%),
    linear-gradient(180deg, var(--surface-2) 0%, var(--bg) 55%, var(--surface) 100%);
}
.hh-top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-6); position: relative; z-index: 2; }
.home-hero h1 { font-size: min(var(--fs-hero), 15svh); line-height: .86; letter-spacing: -.035em; }
.hh-tag { margin: var(--s-3) 0 0; text-align: right; font: 400 var(--fs-2xl)/1.05 var(--serif); }
.hh-tag .deva { display: block; margin-bottom: var(--s-2); font-size: var(--fs-sm); color: var(--accent); letter-spacing: .04em; }

.hh-art { position: relative; z-index: 1; display: grid; place-items: center; width: 100%; max-width: var(--max); margin: calc(var(--s-6) * -1) auto 0; padding: 0 var(--s-5); }
.diya { width: clamp(260px, calc(100svh - 400px), 440px); height: auto; overflow: visible; }
.diya .flame { transform-origin: 200px 214px; }
.diya .halo { transform-origin: 200px 180px; }

.chip-glass {
  position: absolute; z-index: 2; display: flex; flex-direction: column; gap: 2px;
  padding: var(--s-3) var(--s-5); border-radius: var(--r-md); text-decoration: none; color: var(--ink);
  background: rgba(252, 248, 241, .62); border: 1px solid rgba(255, 255, 255, .8);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: var(--shadow); transition: transform .3s var(--ease), background .3s;
}
.chip-glass:hover { transform: translateY(-3px); background: rgba(252, 248, 241, .9); }
.chip-glass small { font: 600 var(--fs-xs)/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.chip-glass small.jain { color: var(--jain); }
.chip-glass b { font: 400 var(--fs-xl)/1.15 var(--serif); }
.chip-glass b::after { content: " →"; color: var(--accent); font-family: var(--sans); font-size: var(--fs-md); }
.chip-glass .deva { font-size: var(--fs-sm); color: var(--muted); }
.chip-glass.c1 { left: var(--s-5); top: 40%; }
.chip-glass.c2 { right: var(--s-5); top: 62%; }

.hh-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-6); position: relative; z-index: 2; }
.hh-foot p { margin: 0; max-width: 40ch; font-size: var(--fs-sm); color: var(--muted); }
.home-hero .btn.light { background: rgba(252, 248, 241, .5); }

@media (prefers-reduced-motion: no-preference) {
  .diya .flame { animation: flicker 3.2s ease-in-out infinite; }
  .diya .halo { animation: breathe 6s ease-in-out infinite; }
  .chip-glass.c1 { animation: float 7s ease-in-out infinite; }
  .chip-glass.c2 { animation: float 8s ease-in-out -3s infinite; }
  .chip-glass:hover { animation-play-state: paused; }
}
@keyframes flicker { 0%, 100% { transform: scale(1, 1) rotate(0); } 30% { transform: scale(.97, 1.04) rotate(-1.5deg); } 60% { transform: scale(1.02, .97) rotate(1deg); } }
@keyframes breathe { 50% { transform: scale(1.04); opacity: .7; } }
@keyframes float { 50% { translate: 0 -8px; } }

/* manuscript leaves — straight, evenly spaced */
.leaf-stack { display: grid; gap: var(--s-3); }
.leaf {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  min-height: 96px; padding: var(--s-4) var(--s-8); border-radius: var(--r-pill);
  background: linear-gradient(180deg, #FFFBF3, var(--surface-2)); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .3s var(--ease);
}
.leaf::before, .leaf::after { content: ""; position: absolute; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); transform: translateY(-50%); opacity: .8; }
.leaf::before { left: var(--s-6); } .leaf::after { right: var(--s-6); }
a.leaf:hover { transform: translateX(6px); }
.leaf .lt { display: flex; flex-direction: column; gap: 2px; }
.leaf .lt small { font: 600 var(--fs-xs)/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.leaf .lt small.jain { color: var(--jain); }
.leaf .lt b { font: 400 var(--fs-xl)/1.15 var(--serif); }
.leaf .lt span { font: var(--fs-sm)/1.3 var(--deva); color: var(--muted); }
.leaf .go { font-size: var(--fs-xl); color: var(--accent); }
.leaf.soon { opacity: .5; box-shadow: none; }
.leaf-list { display: grid; gap: var(--s-3); }

.marquee { overflow: hidden; background: var(--surface); color: var(--ink); padding: var(--s-4) 0; border-block: 1px solid var(--line); }
.marquee .track { display: flex; gap: var(--s-7); width: max-content; animation: scroll 40s linear infinite; font: italic 400 var(--fs-xl)/1 var(--serif); }
.marquee .track span::after { content: "✦"; font-style: normal; color: var(--accent); margin-left: var(--s-7); font-size: var(--fs-sm); vertical-align: middle; }
@keyframes scroll { to { transform: translateX(-50%); } }

.traditions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.tradition { position: relative; overflow: hidden; min-height: 340px; padding: var(--s-6); border-radius: var(--r-lg); display: flex; flex-direction: column; justify-content: space-between; color: var(--on-dark); text-decoration: none; transition: transform .3s var(--ease); }
.tradition:hover { transform: translateY(-3px); }
.tradition.hindu { background: radial-gradient(120% 100% at 100% 0%, #C8402E, var(--accent) 45%, #5E1510); }
.tradition.jain { background: radial-gradient(120% 100% at 100% 0%, #2C8D84, var(--jain) 45%, #0F3D38); }
.tradition .big { position: absolute; right: -10px; bottom: -40px; font: 12rem/1 var(--deva); opacity: .12; }
.tradition h3 { font-size: var(--fs-4xl); }
.tradition ul { list-style: none; padding: 0; margin: var(--s-4) 0 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.tradition li { font-size: var(--fs-xs); border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--r-pill); padding: var(--s-1) var(--s-3); }
.tradition .go { font-weight: 600; font-size: var(--fs-sm); }
.more-trad { text-align: center; color: var(--muted); font-size: var(--fs-sm); margin-top: var(--s-4); }

/* feature grid — 3 equal columns, equal heights */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: var(--s-2); min-height: 220px; padding: var(--s-5); border-radius: var(--r-lg); }
.tile h3 { font-size: var(--fs-2xl); }
.tile p { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.tile.dark { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.tile.dark p { color: var(--on-dark-muted); }
.tile.haldi { background: var(--gold); border-color: var(--gold); }
.tile.haldi p, .tile.haldi .eyebrow { color: var(--ink); }
a.tile { color: var(--ink); text-decoration: none; transition: transform .3s var(--ease); }
a.tile:hover { transform: translateY(-3px); }
.tile .go { margin-top: auto; font-weight: 600; font-size: var(--fs-sm); }
.mini-check { margin-top: auto; display: grid; gap: var(--s-2); }
.mini-check div { display: flex; justify-content: space-between; gap: var(--s-3); background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: var(--s-2) var(--s-3); font-size: var(--fs-sm); }
.mini-check i { font-style: normal; color: var(--jain); font-size: var(--fs-xs); text-align: right; }
.mini-check .done b { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.story-bars { display: flex; gap: var(--s-1); margin: var(--s-2) 0; }
.story-bars span { flex: 1; height: 3px; border-radius: 3px; background: rgba(246, 239, 226, .25); }
.story-bars span.on { background: var(--gold); }
.mantra-big { font: var(--fs-2xl)/1.4 var(--deva); color: var(--accent); }
.seal { position: absolute; right: -20px; top: -20px; width: 112px; height: 112px; border-radius: 50%; border: 1.5px dashed var(--line-2); display: grid; place-items: center; font-family: var(--deva); transform: rotate(-12deg); color: var(--muted); }

.how, .pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); counter-reset: how; }
.how > div { counter-increment: how; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-5); }
.how > div::before { content: counter(how, devanagari); display: block; font: var(--fs-2xl)/1 var(--deva); color: var(--gold); margin-bottom: var(--s-4); }
.how h3 { font-size: var(--fs-xl); margin-bottom: var(--s-2); }
.how p, .pillars p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.pillars > div { border-top: 2px solid var(--ink); padding-top: var(--s-4); }
.pillars b { display: block; font: 400 var(--fs-xl)/1.2 var(--serif); margin-bottom: var(--s-2); }

.why-band { position: relative; overflow: hidden; isolation: isolate; background: var(--ink); color: var(--on-dark); border-radius: var(--r-lg); padding: var(--s-8) var(--s-7); }
.why-band .eyebrow { color: var(--gold); }
.why-band blockquote { margin: var(--s-4) 0 0; font: 400 var(--fs-3xl)/1.1 var(--serif); max-width: 22ch; }
.why-band blockquote em { color: var(--gold); }
.why-band cite { display: block; margin-top: var(--s-5); font: 600 var(--fs-xs)/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-muted); }
.why-band .ring { position: absolute; z-index: -1; right: -160px; bottom: -220px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(closest-side, rgba(226, 169, 59, .5), rgba(226, 169, 59, .12) 55%, transparent); pointer-events: none; }

.join { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--s-7); align-items: center; }
.join h2 { font-size: var(--fs-3xl); margin: var(--s-3) 0 var(--s-4); }
.join .cards { display: grid; gap: var(--s-2); }
.join .cards a { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink); text-decoration: none; font-weight: 600; }
.join .cards a:hover { border-color: var(--line-2); background: #fff; }
.join .cards small { display: block; font-weight: 400; font-size: var(--fs-sm); color: var(--muted); }

/* 8. GUIDE PAGES ---------------------------------------------------------- */
.g-hero { padding: var(--s-8) 0 var(--s-5); }
.crumbs { font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--s-4); }
.crumbs a { color: var(--muted); }
.g-hero h1 { font-size: var(--fs-4xl); margin: var(--s-3) 0 var(--s-2); }
.deva-title { font: var(--fs-xl)/1.4 var(--deva); color: var(--muted); }
.g-meta { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-5) 0; }
.g-meta span { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); padding: var(--s-1) var(--s-3); font-size: var(--fs-sm); }
.g-layout { display: grid; grid-template-columns: 200px 1fr; gap: var(--s-8); margin-top: var(--s-7); }
.g-toc { position: sticky; top: calc(var(--header-h) + var(--s-5)); align-self: start; font-size: var(--fs-sm); }
.g-toc b { font: 600 var(--fs-xs)/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.g-toc ol { list-style: none; padding: 0; margin: var(--s-3) 0 0; border-left: 2px solid var(--line); }
.g-toc a { display: block; padding: var(--s-1) 0 var(--s-1) var(--s-3); margin-left: -2px; border-left: 2px solid transparent; color: var(--ink); text-decoration: none; }
.g-toc a:hover, .g-toc a.active { border-color: var(--accent); color: var(--accent); }
.g-body { min-width: 0; }
.g-body h2 { font-size: var(--fs-3xl); margin: var(--s-8) 0 var(--s-4); scroll-margin-top: calc(var(--header-h) + var(--s-5)); }
.g-body h2:first-child { margin-top: 0; }
.g-body h2 .num { font-family: var(--deva); color: var(--gold); margin-right: var(--s-3); }
.g-body p, .g-body li { font-size: var(--fs-md); }
.sources { color: var(--muted); font-size: var(--fs-sm); }

.box-callout { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-4); align-items: center; background: var(--ink); color: var(--on-dark); border-radius: var(--r-md); padding: var(--s-4) var(--s-5); margin: var(--s-4) 0 var(--s-5); text-decoration: none; }
.box-callout .ic { font-size: var(--fs-2xl); }
.box-callout b { display: block; font: 400 var(--fs-xl)/1.1 var(--serif); }
.box-callout small { color: var(--on-dark-muted); font-size: var(--fs-sm); }

.sam-head { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-3); }
.sam-head .btn { min-height: 34px; padding: 0 var(--s-3); font-size: var(--fs-xs); }
.meter { flex: 1; min-width: 160px; height: 8px; background: var(--surface-2); border-radius: var(--r-pill); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--accent)); transition: width .3s; }
.progress { font-size: var(--fs-sm); color: var(--muted); }
.samagri li label { grid-template-columns: 24px 1fr; align-items: start; cursor: pointer; }
.samagri input { appearance: none; width: 22px; height: 22px; margin: 2px 0 0; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; cursor: pointer; }
.samagri input:checked { background: var(--accent); border-color: var(--accent); }
.samagri input:checked::after { content: "✓"; color: #fff; font-size: var(--fs-xs); }
.samagri .it { display: grid; gap: var(--s-1); min-width: 0; }
.samagri .it-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-1) var(--s-2); }
.samagri .it-h b { font-weight: 600; }
.samagri .it-h .dv { font: var(--fs-sm)/1.3 var(--deva); color: var(--muted); }
.samagri .qty { font: 600 var(--fs-xs)/1.4 var(--sans); color: var(--ink); background: var(--surface-2); border-radius: var(--r-pill); padding: 0 var(--s-2); }
.samagri .it-h .badge-box { margin-left: 0; }
.samagri .why { color: var(--muted); font-size: var(--fs-sm); }
.alts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1); font-size: var(--fs-sm); }
.alts em { font: 600 var(--fs-xs)/1.4 var(--sans); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--jain); margin-right: var(--s-1); }
.alts span { background: var(--jain-tint); color: var(--jain); border-radius: var(--r-pill); padding: 0 var(--s-2); }
.alts.must em, .alts.must span { color: var(--accent); }
.alts.must span { background: var(--bad-tint); }
.alts.ask em { color: var(--muted); }
.alts.ask a { color: var(--muted); }
.proof { justify-self: start; display: inline-flex; align-items: center; gap: var(--s-1); font: 600 var(--fs-xs)/1.4 var(--sans); color: var(--ink); text-decoration: none; border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 0 var(--s-2); }
.proof::before { content: "📜"; }
.proof:hover { border-color: var(--ink); }
.samagri li.done .it-h b { text-decoration: line-through; color: var(--muted); }
.sam-group { margin: var(--s-6) 0 var(--s-3); display: flex; align-items: baseline; gap: var(--s-3); font: 400 var(--fs-xl)/1.2 var(--serif); }
.sam-group small { font: var(--fs-sm)/1 var(--deva); color: var(--muted); }
.sam-tools { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; margin: var(--s-4) 0 0; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: var(--r-pill); padding: 3px; }
.seg button { border: 0; background: none; border-radius: var(--r-pill); padding: var(--s-2) var(--s-3); font: 600 var(--fs-xs)/1 var(--sans); color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(23, 21, 31, .12); }
.samagri li[hidden], .sam-group[hidden] { display: none; }
.sam-tools .btn { min-height: 34px; padding: 0 var(--s-3); font-size: var(--fs-xs); }

/* pramaan — the proof behind a step: shastra (verse quoted) or parampara (practice, citation pending) */
.pramaan { display: flex; align-items: flex-start; gap: var(--s-3); margin: var(--s-6) 0; padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--good); border-radius: var(--r-md); }
.pramaan h3 { font-size: var(--fs-xl); margin-bottom: var(--s-2); }
.pramaan p { font-size: var(--fs-sm); color: var(--muted); margin: var(--s-2) 0 0; }
.legend { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin: var(--s-3) 0 0; font-size: var(--fs-sm); color: var(--muted); }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: var(--s-4); }
.steps > li { counter-increment: step; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-5) var(--s-5) var(--s-5) var(--s-9); }
.steps > li::before { content: counter(step, devanagari); position: absolute; left: var(--s-5); top: var(--s-4); font: var(--fs-3xl)/1 var(--deva); color: var(--gold); }
.steps h3 { font-size: var(--fs-2xl); margin-bottom: var(--s-2); }
.steps ol { padding-left: var(--s-5); }
.ref { display: flex; align-items: flex-start; gap: var(--s-3); margin: var(--s-4) 0 0; padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); background: var(--surface-2); font-size: var(--fs-sm); color: var(--muted); }
.ref + .ref { margin-top: var(--s-2); }
.ref b { color: var(--ink); }
.ref a { font-weight: 600; white-space: nowrap; }
.rk { flex: none; font: 600 var(--fs-xs)/1.6 var(--sans); letter-spacing: .08em; text-transform: uppercase; border-radius: var(--r-pill); padding: 0 var(--s-2); }
.rk.shastra { background: var(--good-tint); color: var(--good); }
.rk.parampara { background: var(--ok-tint); color: var(--gold-text); }
.ref .sk { display: block; font-family: var(--deva); color: var(--ink); margin: var(--s-1) 0; }

/* mantra index */
.m-index { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.m-index .mantra { margin: 0; }
.m-index .m-foot { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid rgba(246, 239, 226, .14); font-size: var(--fs-xs); }
.m-index .m-foot a { color: var(--gold); }
.mantra .src { margin-top: var(--s-2); font-size: var(--fs-xs); color: var(--on-dark-muted); }
.mantra .src a { color: var(--gold); }
.mantra { margin: var(--s-4) 0 var(--s-2); padding: var(--s-4) var(--s-5); background: var(--ink); color: var(--on-dark); border-radius: var(--r-md); }
.mantra .dev { font: var(--fs-xl)/1.6 var(--deva); color: #FFE3A3; }
.mantra .roman { font-style: italic; color: var(--on-dark-muted); margin-top: var(--s-1); font-size: var(--fs-sm); }
.mantra .meaning { margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid rgba(246, 239, 226, .14); font-size: var(--fs-sm); }
.lines { display: grid; gap: var(--s-3); } .lines .mantra { margin: 0; }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.dos h3 { font-size: var(--fs-2xl); }
.dos ul { padding-left: var(--s-5); margin: var(--s-3) 0 0; }

/* story mode */
.story { position: fixed; inset: 0; z-index: 90; display: none; flex-direction: column; background: radial-gradient(120% 80% at 50% 0%, var(--ink-2), var(--ink) 60%); color: var(--on-dark); user-select: none; }
.story.open { display: flex; }
.story .bars { display: flex; gap: var(--s-1); padding: var(--s-3) var(--s-4) 0; }
.story .bars span { flex: 1; height: 3px; border-radius: 3px; background: rgba(246, 239, 226, .22); }
.story .bars span.seen { background: var(--gold); }
.story .top { display: flex; justify-content: space-between; align-items: center; padding: var(--s-3) var(--s-4); font-size: var(--fs-sm); }
.story .top .who { display: flex; align-items: center; gap: var(--s-2); }
.story .top img { width: 28px; height: 28px; }
.story .x { background: none; border: 0; color: var(--on-dark); font-size: var(--fs-2xl); cursor: pointer; line-height: 1; }
.story .stage { position: relative; flex: 1; overflow-y: auto; width: 100%; max-width: 640px; margin: 0 auto; padding: var(--s-3) var(--s-5) var(--s-7); }
.story .stage .n { font: 4rem/1 var(--deva); color: var(--gold); }
.story .stage h3 { font-size: var(--fs-3xl); margin: var(--s-2) 0 var(--s-4); color: #fff; }
.story .stage p, .story .stage li { font-size: var(--fs-lg); line-height: 1.7; }
.story .stage .mantra { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.story .stage .ref { background: rgba(255, 255, 255, .06); color: var(--on-dark-muted); }
.story .stage .ref b, .story .stage .ref .sk { color: var(--on-dark); }
.story .stage .ref a { color: var(--gold); }
.story .stage .mantra .src a { color: var(--gold); }
.story .tap { position: fixed; top: 96px; bottom: 96px; width: 28%; z-index: 1; }
.story .tap.l { left: 0; } .story .tap.r { right: 0; }
.story .foot { position: relative; z-index: 2; display: flex; gap: var(--s-3); padding: var(--s-3) var(--s-4) var(--s-5); }
.story .foot .btn { flex: 1; }
.story .foot .btn.light { color: var(--on-dark); box-shadow: inset 0 0 0 1.5px rgba(246, 239, 226, .4); }
.story .stage.in { animation: storyIn .35s var(--ease); }
@keyframes storyIn { from { opacity: 0; transform: translateY(12px); } }

/* 8b. GRANTH LIBRARY ----------------------------------------------------- */
.granths { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--s-4); }
.granth { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-6); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .3s var(--ease), border-color .3s; }
a.granth:hover { transform: translateY(-3px); border-color: var(--line-2); }
.granth .gd { position: absolute; right: calc(var(--s-2) * -1); bottom: calc(var(--s-5) * -1); font: 6rem/1 var(--deva); color: var(--gold); opacity: .16; pointer-events: none; }
.granth > :not(.gd) { position: relative; }
.granth h3 { font-size: var(--fs-2xl); }
.granth p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.granth .go { margin-top: auto; padding-top: var(--s-3); font-weight: 600; font-size: var(--fs-sm); color: var(--accent); }
.granth.jain .eyebrow, .granth.jain .go { color: var(--jain); }

.verse { scroll-margin-top: calc(var(--header-h) + var(--s-5)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6); margin: 0 0 var(--s-4); }
.verse:target { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-tint); }
.verse .vn { font: 600 var(--fs-xs)/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.verse .sk { font: var(--fs-xl)/1.7 var(--deva); margin: var(--s-3) 0 var(--s-2); }
.verse .tr { font-style: italic; color: var(--muted); font-size: var(--fs-sm); }
.verse .mn { margin: var(--s-4) 0 0; padding-top: var(--s-4); border-top: 1px solid var(--line); }
.verse .ctx { margin: var(--s-3) 0 0; font-size: var(--fs-sm); color: var(--muted); }
.verse .used { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; margin-top: var(--s-4); font-size: var(--fs-sm); }
.verse .used b { font: 600 var(--fs-xs)/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.verse .used a { background: var(--gold-tint); color: var(--ink); border-radius: var(--r-pill); padding: var(--s-1) var(--s-3); text-decoration: none; }
.verse .used a.ext { background: none; box-shadow: inset 0 0 0 1px var(--line-2); }
.chapters { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); counter-reset: ch; }
.chapters a { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink); text-decoration: none; height: 100%; }
.chapters a:hover { border-color: var(--line-2); background: #fff; }
.chapters .n { font: var(--fs-2xl)/1 var(--deva); color: var(--gold); }
.chapters b { display: block; font: 400 var(--fs-lg)/1.2 var(--serif); }
.chapters small { display: block; margin-top: 2px; line-height: 1.4; color: var(--muted); font-size: var(--fs-xs); }
.read-links { display: grid; gap: var(--s-2); margin-top: var(--s-4); }
.read-links .fl { grid-template-columns: 1fr; }

/* 8c. SCRIPTURE READER (Gita chapters, Rig Veda hymns) ------------------- */
.rd-tools { display: inline-flex; background: var(--surface-2); border-radius: var(--r-pill); padding: 3px; margin-top: var(--s-2); }
.rd-tools button { border: 0; background: none; border-radius: var(--r-pill); padding: var(--s-2) var(--s-4); font: 600 var(--fs-xs)/1 var(--sans); color: var(--muted); cursor: pointer; }
.rd-tools button:first-child { font: var(--fs-sm)/1 var(--deva); }
.rd-tools button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(23, 21, 31, .12); }
.jump { display: flex; flex-wrap: wrap; gap: var(--s-1); margin-top: var(--s-5); }
.jump a { min-width: 34px; padding: var(--s-1) var(--s-2); text-align: center; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.jump a:hover { border-color: var(--ink); }
.jump a.cited { background: var(--gold-tint); border-color: var(--gold); }
.gv-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); margin-top: var(--s-6); }
.gv .sk, .gv .tr { overflow-wrap: anywhere; }
.gv { position: relative; scroll-margin-top: calc(var(--header-h) + var(--s-4)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-5) var(--s-6) var(--s-5) var(--s-9); }
.gv:target { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-tint); }
.gv.cited { border-left: 4px solid var(--gold); }
.gvn { position: absolute; left: var(--s-5); top: var(--s-5); font: var(--fs-lg)/1.2 var(--deva); color: var(--gold); text-decoration: none; }
.gv .spk { display: block; font: var(--fs-sm)/1.4 var(--deva); color: var(--accent); margin-bottom: var(--s-2); }
.gv .spk i { font: italic var(--fs-xs)/1 var(--sans); color: var(--muted); margin-left: var(--s-1); }
.gv .sk { font: var(--fs-xl)/1.75 var(--deva); }
.gv .sk span, .gv .tr span { display: block; }
.gv .tr { margin-top: var(--s-2); font-style: italic; color: var(--muted); font-size: var(--fs-sm); line-height: 1.7; }
.gv .en { margin: var(--s-3) 0 0; padding-top: var(--s-3); border-top: 1px solid var(--line); }
.gv .sv-note { margin-top: var(--s-4); padding: var(--s-3) var(--s-4); background: var(--gold-tint); border-radius: var(--r-sm); font-size: var(--fs-sm); }
.gv .sv-note b { font: 600 var(--fs-xs)/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ok); }
.gv .sv-note p { margin: var(--s-2) 0; }
.gv .sv-note .used { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.gv .sv-note .used a { background: var(--surface); color: var(--ink); border-radius: var(--r-pill); padding: var(--s-1) var(--s-3); text-decoration: none; }
.reader.hide-sk .gv .sk, .reader.hide-sk .gv .spk span:not(i), .reader.hide-tr .gv .tr, .reader.hide-en .gv .en { display: none; }
.reader.hide-sk .gv .tr { margin-top: 0; font-size: var(--fs-md); }
.reader.hide-sk.hide-tr .gv .en { border-top: 0; padding-top: 0; margin-top: 0; }
.ts-toc { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-2); margin-top: var(--s-5); }
.ts-toc a { display: flex; align-items: baseline; gap: var(--s-2); padding: var(--s-2) var(--s-3); border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: var(--fs-sm); }
.ts-toc a b { font: var(--fs-lg)/1 var(--deva); color: var(--jain); font-weight: 400; }
.ts-toc a small { margin-left: auto; color: var(--muted); }
.ts-ch { margin-top: var(--s-8); scroll-margin-top: calc(var(--header-h) + var(--s-4)); }
.ts-ch h2 { font-size: var(--fs-3xl); }
.ts-ch h2 .num { font-family: var(--deva); color: var(--jain); margin-right: var(--s-3); }
.ts .gvn { color: var(--jain); }
.ts .gv .sk { font-size: var(--fs-lg); }
.ch-nav { display: flex; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; margin: var(--s-7) 0 var(--s-5); }

/* 9. COMMERCE ------------------------------------------------------------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: start; padding: var(--s-8) 0 var(--s-5); }
.box-visual { position: sticky; top: calc(var(--header-h) + var(--s-5)); aspect-ratio: 1; border-radius: var(--r-lg); background: radial-gradient(120% 90% at 30% 10%, var(--ink-2), var(--ink) 70%); display: grid; place-items: center; overflow: hidden; }
.box-visual .lid { width: 70%; aspect-ratio: 1.35; border-radius: var(--r-md); background: linear-gradient(160deg, #FFFBF3, var(--surface-2)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-2); box-shadow: 0 50px 80px -30px rgba(0, 0, 0, .7); transform: perspective(900px) rotateX(12deg); }
.box-visual .lid img { width: 26%; }
.box-visual .lid b { font: 400 var(--fs-2xl)/1 var(--serif); }
.box-visual .lid span { font-family: var(--deva); color: var(--muted); }
.box-visual .lid i { font: normal 600 var(--fs-xs)/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
.box-visual .note-ph { position: absolute; bottom: var(--s-4); font-size: var(--fs-xs); color: var(--on-dark-muted); }
.p-info h1 { font-size: var(--fs-4xl); margin: var(--s-3) 0 var(--s-2); }
.price { display: flex; align-items: baseline; gap: var(--s-3); margin: var(--s-5) 0 var(--s-2); }
.price b { font: 400 var(--fs-3xl)/1 var(--serif); }
.price small { color: var(--muted); font-size: var(--fs-sm); }
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin: var(--s-4) 0; }
.tier { border: 1.5px solid var(--line); border-radius: var(--r-md); padding: var(--s-4); background: var(--surface); cursor: pointer; }
.tier input { display: none; }
.tier:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(168, 35, 27, .12); }
.tier b { display: block; } .tier small { color: var(--muted); font-size: var(--fs-sm); }
.includes { margin: var(--s-5) 0; }
.includes li { grid-template-columns: auto 1fr; background: transparent; border: 0; padding: var(--s-1) 0; }
.includes li::before { content: "✦"; color: var(--gold); }
.inside { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); counter-reset: item; }
.inside > div { counter-increment: item; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-4); }
.inside > div::before { content: counter(item, devanagari); position: absolute; right: var(--s-4); top: var(--s-3); font: var(--fs-xl)/1 var(--deva); color: var(--gold); }
.inside b { display: block; padding-right: var(--s-6); }
.inside .dv { font: var(--fs-sm)/1.4 var(--deva); color: var(--muted); }
.inside p { margin: var(--s-2) 0 0; font-size: var(--fs-sm); color: var(--muted); }
.you-add { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.you-add span { background: #fff; border: 1px dashed var(--line-2); border-radius: var(--r-pill); padding: var(--s-1) var(--s-3); font-size: var(--fs-sm); }
.faq details { border-bottom: 1px solid var(--line); padding: var(--s-4) 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: var(--s-3); }
.faq summary::after { content: "+"; font-size: var(--fs-xl); color: var(--accent); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: var(--s-3) 0 0; }
.ask-fab { position: fixed; right: var(--s-4); bottom: var(--s-4); z-index: 60; display: flex; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-4) var(--s-2) var(--s-2); border-radius: var(--r-pill); background: var(--ink); color: var(--on-dark); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); box-shadow: 0 16px 30px -12px rgba(23, 21, 31, .6); }
.ask-fab img { width: 32px; height: 32px; }
.ask-fab:hover { background: var(--accent); }
body:has(.story.open) .ask-fab { display: none; }

/* 10. CALENDAR ------------------------------------------------------------ */
.cal2 { padding-top: var(--s-6); padding-bottom: var(--s-7); }
.cal-loading { padding: var(--s-9) 0; text-align: center; color: var(--muted); }
#cal-app.busy { min-height: 70vh; }
.cal-top { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); }
.city-btn { display: flex; align-items: baseline; gap: var(--s-2); max-width: 75%; overflow: hidden; min-height: 44px; padding: 0 var(--s-4); border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--surface); font: 500 var(--fs-md)/44px var(--sans); color: var(--ink); cursor: pointer; }
.city-btn b { font-weight: 700; white-space: nowrap; }
.city-btn small { color: var(--muted); font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lang { display: flex; padding: 3px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line-2); }
.lang button { border: 0; background: transparent; min-width: 40px; height: 36px; border-radius: var(--r-pill); font: 600 var(--fs-sm)/1 var(--sans); cursor: pointer; color: var(--ink); }
.lang button.on { background: var(--ink); color: var(--on-dark); }
.cal-nav { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-1); margin: var(--s-4) 0 var(--s-5); padding: var(--s-1); border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); }
.cal-nav a { display: grid; place-items: center; min-height: 40px; border-radius: var(--r-pill); color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); }
.cal-nav a:hover { background: var(--surface-2); }
.cal-nav a.on { background: var(--ink); color: var(--on-dark); }

.dnav { display: grid; grid-template-columns: 44px 1fr 44px; gap: var(--s-3); align-items: center; margin-bottom: var(--s-4); }
.dnav .arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: var(--fs-xl); line-height: 1; }
.dnav .arrow:hover { border-color: var(--ink); }
.dpick, .mtitle { position: relative; text-align: center; padding: var(--s-2) var(--s-4); border-radius: var(--r-pill); background: transparent; }
.dpick { font: 400 var(--fs-2xl)/1.2 var(--serif); cursor: pointer; }
.dpick input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.mtitle b { display: block; font: 400 var(--fs-2xl)/1.2 var(--serif); }
.mtitle small { color: var(--muted); font-size: var(--fs-sm); }
.to-today { text-align: center; margin: 0 0 var(--s-4); font-size: var(--fs-sm); }

.hero-day { display: grid; grid-template-columns: auto 1fr; gap: var(--s-5); align-items: center; background: var(--ink); color: var(--on-dark); border-radius: var(--r-lg); padding: var(--s-5) var(--s-6); margin-bottom: var(--s-4); }
.hero-day.jain { background: linear-gradient(135deg, #0F3D38, var(--jain)); }
.hd-date { font: 400 var(--fs-3xl)/1.05 var(--serif); color: #FFE3A3; }
.hd-sub { font-size: var(--fs-sm); color: var(--on-dark-muted); margin-top: var(--s-1); }
.hd-tags { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.moon { flex: none; }
.moon-dark { fill: #3A3755; } .moon-lit { fill: #F7E5AE; }
.mc .moon-dark { fill: #4A4663; } .mc .moon-lit { fill: var(--gold); }

.day-fests { margin-bottom: var(--s-4); }
.day-fests li { display: block; }
.day-fests span, .day-fests small { color: var(--muted); }
.day-fests small { display: block; font-size: var(--fs-xs); }
.now { background: #fff; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-tint); margin-bottom: var(--s-4); }
.now-row { display: grid; grid-template-columns: 120px 1fr auto; gap: var(--s-3); align-items: baseline; padding: var(--s-2) 0; border-bottom: 1px solid var(--line); }
.now-row:last-child { border: 0; }
.now-row > span { color: var(--muted); font-size: var(--fs-sm); }
.now-row b { font-size: var(--fs-lg); }
.now-row small { color: var(--muted); font-size: var(--fs-sm); }
.now-row small span { color: var(--ink); font-weight: 700; }
.q-good { color: var(--good); } .q-ok { color: var(--ok); } .q-bad { color: var(--bad); }

.day-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s-4); align-items: start; margin-bottom: var(--s-4); }
.stack { display: grid; gap: var(--s-4); }
.ptab { display: grid; }
.pr { display: grid; grid-template-columns: 38% 1fr; gap: var(--s-3); padding: var(--s-2) 0; border-bottom: 1px solid var(--line); }
.pr:last-child { border: 0; }
.pk { color: var(--muted); font-size: var(--fs-sm); }
.pvs { display: grid; gap: var(--s-1); }
.pv { display: flex; justify-content: space-between; gap: var(--s-3); font-weight: 600; }
.pv .pe { font-weight: 400; font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; }
.pv.bad span { color: var(--bad); }
sup { font-size: .65em; color: var(--accent); }
.notes { margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--muted); }

/* ribbon */
.rib { display: flex; gap: 2px; height: 40px; border-radius: var(--r-sm); overflow: hidden; }
.rib-s { display: grid; place-items: center; min-width: 0; color: #fff; text-decoration: none; font: 600 var(--fs-xs)/1 var(--sans); }
.rib-s span { overflow: hidden; white-space: nowrap; padding: 0 2px; font-size: .68rem; }
.rib-s.q-good { background: var(--good); } .rib-s.q-ok { background: var(--ok); } .rib-s.q-bad { background: var(--bad); }
.rib-s.n { filter: brightness(.7) saturate(.9); }
.rib-s.cur { outline: 3px solid var(--gold); outline-offset: -3px; filter: none; }
.rib-t { display: flex; justify-content: space-between; margin-top: var(--s-2); font-size: var(--fs-xs); color: var(--muted); }
.rib-link { margin: var(--s-3) 0 0; text-align: right; font-weight: 600; font-size: var(--fs-sm); }

/* month grid */
.mgrid2 { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-3); }
.mh, .mb { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--s-2); }
.mh span { text-align: center; padding: var(--s-1) 0 var(--s-2); font: 700 var(--fs-xs)/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mc { display: flex; flex-direction: column; gap: 2px; min-height: 96px; padding: var(--s-2); border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; overflow: hidden; }
.mc.empty { background: transparent; border: 0; }
.mc:hover { border-color: var(--line-2); }
.mc-top { display: flex; justify-content: space-between; align-items: center; }
.mc-top b { font: 400 var(--fs-xl)/1 var(--serif); }
.mc.big .mc-top b { color: var(--accent); }
.mc-t { font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; }
.mc-f { font-size: .7rem; font-weight: 600; line-height: 1.25; color: var(--accent); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mc-dots { display: flex; gap: 3px; margin-top: auto; }
.mc.parvi { background: linear-gradient(180deg, #fff 55%, var(--jain-tint)); }
.mc.today { border: 2px solid var(--gold); box-shadow: 0 0 0 3px var(--gold-tint); }
.mc.sel { border: 2px solid var(--ink); }
.mc-dots i, .mlegend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
i.hindu { background: var(--accent); } i.jain { background: var(--jain); } i.vrat { background: var(--gold); }
i.good { background: var(--good); } i.ok { background: var(--ok); } i.bad { background: var(--bad); }
i.rahu { background: #6E1C22; } i.abhijit { background: var(--gold); }
.mlegend { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); margin: var(--s-3) 0 0; font-size: var(--fs-sm); color: var(--muted); }
.mlegend i { margin-right: calc(var(--s-2) * -1 + 2px); }
.pk-key { background: var(--jain-tint); padding: 2px var(--s-2); border-radius: var(--r-sm); }
.sec { font-size: var(--fs-2xl); margin: var(--s-7) 0 var(--s-4); }

/* list rows used by calendar */
.fl { grid-template-columns: 56px 1fr auto; }
.fl-d { text-align: center; }
.fl-d b { display: block; font: 400 var(--fs-2xl)/1 var(--serif); }
.fl-d small, .fl-n small { color: var(--muted); font-size: var(--fs-xs); }
.fl-n b { display: block; font-weight: 600; } .fl-n small { display: block; }
.fl-in { font-size: var(--fs-xs); font-weight: 700; color: var(--accent); white-space: nowrap; }
.chips2 { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chips2 a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--s-4); border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); }
.chips2 a.on { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.cal-foot { margin-top: var(--s-7); padding-top: var(--s-4); border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--muted); }

/* choghadiya */
.chog-top { display: grid; grid-template-columns: minmax(300px, 440px) 1fr; gap: var(--s-6); align-items: start; margin-bottom: var(--s-4); }
.dial { position: relative; width: 100%; max-width: 440px; margin: 0 auto; }
.dl-svg { width: 100%; height: auto; overflow: visible; }
.dl-rim { fill: var(--surface); stroke: var(--line); }
.dl-day { fill: #FFF3D6; } .dl-night { fill: var(--ink-2); }
.dl-seg { stroke: var(--surface); stroke-width: 2; }
.dl-seg.q-good { fill: var(--good); } .dl-seg.q-ok { fill: var(--ok); } .dl-seg.q-bad { fill: var(--bad); }
.dl-seg.cur { stroke: var(--gold); stroke-width: 4; filter: drop-shadow(0 0 6px rgba(226, 169, 59, .9)); }
.dl-lbl { fill: #fff; font: 600 10.5px var(--sans); text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.dl-rahu { fill: #6E1C22; } .dl-abhijit { fill: var(--gold); }
.dl-hr { fill: var(--muted); font: 600 9px var(--sans); text-anchor: middle; dominant-baseline: middle; }
.dl-tick { stroke: rgba(107, 98, 85, .45); stroke-width: 1; }
.dl-sun { fill: var(--gold); stroke: #fff; stroke-width: 2; } .dl-set { fill: #4A4663; stroke: #fff; stroke-width: 2; }
.dl-hand { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; } .dl-handdot { fill: var(--gold); stroke: var(--ink); stroke-width: 2; }
.dial-c { position: absolute; left: 50%; top: 50%; width: 42%; aspect-ratio: 1; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--s-2); border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 1px var(--line), 0 10px 30px -12px rgba(23, 21, 31, .4); }
.dial-c b { font: 400 var(--fs-3xl)/1 var(--serif); }
.dc-k { font: 700 .62rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.dc-m { font-size: var(--fs-xs); color: var(--muted); margin-top: 2px; }
.dc-t { font-size: var(--fs-xs); margin-top: var(--s-1); }
.dc-cd { font-weight: 700; font-size: var(--fs-sm); color: var(--accent); }
.dc-date { color: var(--accent); }
.chog-side { display: grid; gap: var(--s-4); }
.next-good b { font-size: var(--fs-xl); }
.next-good div { margin-top: var(--s-1); font-weight: 600; }
.best li { grid-template-columns: 80px 1fr auto; background: var(--good-tint); border-color: transparent; padding: var(--s-2) var(--s-3); }
.best li.past { opacity: .45; }
.best small { color: var(--muted); font-size: var(--fs-xs); }
.best.avoid li { grid-template-columns: 110px 1fr; background: var(--bad-tint); }
.best.avoid b { color: var(--bad); }
.chog-lists { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.cl { grid-template-columns: 110px 1fr; gap: var(--s-3); background: #fff; }
.cl.q-good { border-left-color: var(--good); } .cl.q-ok { border-left-color: var(--ok); } .cl.q-bad { border-left-color: var(--bad); }
.cl-n b { display: block; } .cl-n small { color: var(--muted); font-size: var(--fs-xs); }
.cl.q-good .cl-n b { color: var(--good); } .cl.q-ok .cl-n b { color: var(--ok); } .cl.q-bad .cl-n b { color: var(--bad); }
.cl-t { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); text-align: right; }
.cl.cur { background: var(--gold-tint); border-color: var(--gold); }
.cl.past { opacity: .5; }

/* city dialog */
.city-dlg { width: min(560px, 94vw); max-height: 86vh; padding: 0; border: 0; border-radius: var(--r-lg); background: var(--bg); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.city-dlg::backdrop { background: rgba(23, 21, 31, .55); }
.city-dlg > * { margin-left: var(--s-5); margin-right: var(--s-5); }
.cd-head { display: flex; justify-content: space-between; align-items: center; margin-top: var(--s-5); }
.cd-head b { font: 400 var(--fs-2xl)/1 var(--serif); }
.cd-head button { border: 0; background: none; font-size: var(--fs-2xl); cursor: pointer; line-height: 1; }
#city-q { width: calc(100% - 2 * var(--s-5)); min-height: 48px; margin-top: var(--s-3); padding: 0 var(--s-4); border-radius: var(--r-md); border: 1.5px solid var(--ink); background: #fff; font: var(--fs-md) var(--sans); }
.cd-loc { width: calc(100% - 2 * var(--s-5)); min-height: 44px; margin-top: var(--s-2); border-radius: var(--r-md); border: 1px dashed var(--accent); background: transparent; color: var(--accent); font: 600 var(--fs-sm) var(--sans); cursor: pointer; }
.cd-status { min-height: 1em; margin-top: var(--s-1); font-size: var(--fs-xs); color: var(--muted); }
.city-dlg h4 { margin: var(--s-4) var(--s-5) var(--s-2); font: 700 var(--fs-xs)/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.cd-list li { display: flex; gap: var(--s-1); }
.cd-list button[data-pick] { flex: 1; display: block; text-align: left; cursor: pointer; font: inherit; }
.cd-list b { display: block; } .cd-list small { color: var(--muted); font-size: var(--fs-xs); }
.cd-list .rm { border: 0; background: none; font-size: var(--fs-xl); color: var(--muted); cursor: pointer; padding: 0 var(--s-2); }
.cd-list .none { color: var(--muted); font-size: var(--fs-sm); }
.cd-credit { margin-top: var(--s-4); margin-bottom: var(--s-5); font-size: var(--fs-xs); color: var(--muted); }

/* Gujarati: no letter-spacing / uppercase on Indic script */
html[lang="gu"] .cal2 { font-family: var(--guj), var(--sans); }
html[lang="gu"] .card h3, html[lang="gu"] .dc-k, html[lang="gu"] .mh span, html[lang="gu"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: var(--fs-sm); }
html[lang="gu"] .hd-date { font: 600 var(--fs-2xl)/1.3 var(--guj); }
html[lang="gu"] .dial-c b { font: 600 var(--fs-2xl)/1.1 var(--guj); }
html[lang="gu"] .dl-lbl { font-family: var(--guj); font-size: 11px; }

/* 11. MOTION -------------------------------------------------------------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
    @keyframes rise { from { opacity: 0; transform: translateY(32px); } }
  }
}
@media (prefers-reduced-motion: reduce) {
  .marquee .track { animation: none; }
  html, html:focus-within { scroll-behavior: auto; }
}

/* 12. RESPONSIVE — two breakpoints only ----------------------------------- */
@media (max-width: 900px) {
  :root { --s-8: 56px; --s-9: 80px; }
  .join, .traditions, .product, .chog-top, .day-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .how, .pillars { grid-template-columns: 1fr 1fr; }
  .inside { grid-template-columns: repeat(2, 1fr); }
  .g-layout { grid-template-columns: 1fr; gap: 0; }
  .g-toc { display: none; }
  .box-visual { position: relative; top: 0; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap > div:first-child { grid-column: 1 / -1; }
  .rib-s span { display: none; }
  .granths { grid-template-columns: 1fr; }
  .chapters { grid-template-columns: 1fr 1fr; }
  .home-hero { min-height: 0; }
  .hh-art { margin-top: 0; padding: var(--s-6) 0; }
  .chip-glass.c1 { top: 10%; } .chip-glass.c2 { top: auto; bottom: 8%; }
  .hh-foot { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  :root { --s-7: 36px; --s-8: 44px; --s-9: 64px; }
  .wrap { padding: 0 var(--s-4); }
  .home-hero { padding-top: var(--s-6); }
  .hh-top { flex-direction: column; gap: var(--s-4); }
  .hh-tag { text-align: left; font-size: var(--fs-xl); margin: 0; }
  .hh-tag .deva { display: inline; margin: 0 var(--s-2) 0 0; }
  .hh-tag br { display: none; }
  .hh-art { padding: var(--s-5) 0 var(--s-8); }
  .diya { width: min(72vw, 300px); }
  .chip-glass { padding: var(--s-2) var(--s-4); }
  .chip-glass b { font-size: var(--fs-lg); }
  .chip-glass .deva { display: none; }
  .chip-glass.c1 { left: var(--s-4); top: 4%; } .chip-glass.c2 { right: var(--s-4); bottom: 4%; }
  .hh-foot .cta, .hh-foot .btn { width: 100%; }
  .nav a:not(.btn) { display: none; }
  .site-header .brand .word small { display: none; }
  .chapters { grid-template-columns: 1fr; }
  .verse, .granth { padding: var(--s-5); }
  .pramaan { flex-direction: column; }
  .gv { padding: var(--s-7) var(--s-4) var(--s-4); }
  .gvn { left: var(--s-4); top: var(--s-3); }
  .gv .sk { font-size: var(--fs-lg); }
  .ref { flex-direction: column; gap: var(--s-2); }
  .tile { min-height: 0; }
  .bento, .how, .pillars, .tiers, .dos, .chog-lists, .inside { grid-template-columns: 1fr; }
  .leaf { padding: var(--s-3) var(--s-7); min-height: 84px; }
  .leaf::before { left: var(--s-4); } .leaf::after { right: var(--s-4); }
  .steps > li { padding: var(--s-8) var(--s-4) var(--s-4); }
  .steps > li::before { left: var(--s-4); }
  .why-band { padding: var(--s-7) var(--s-5); }
  .hero-day { grid-template-columns: 1fr; padding: var(--s-5); }
  .box-callout { grid-template-columns: 1fr; }
  .cal-nav a { font-size: var(--fs-xs); }
  .city-btn small { display: none; }
  .mh, .mb { gap: var(--s-1); }
  .mgrid2 { padding: var(--s-2); }
  .mc { min-height: 64px; padding: var(--s-1); }
  .mc-top b { font-size: var(--fs-md); }
  .mc-top .moon { width: 12px; height: 12px; }
  .mc-t { font-size: .6rem; }
  .mc-f { display: none; }
  .now-row { grid-template-columns: 96px 1fr; }
  .now-row small { grid-column: 2; }
  .fl { grid-template-columns: 44px 1fr; }
  .fl-in { grid-column: 2; }
  .cl { grid-template-columns: 1fr; }
  .cl-t { justify-content: flex-start; text-align: left; }
  .best li { grid-template-columns: 72px 1fr; }
  .best small { grid-column: 2; }
  .ask-fab span { display: none; }
  .ask-fab { padding: var(--s-2); }
  .dpick, .mtitle b { font-size: var(--fs-xl); }
}

/* 13. PRINT --------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .g-actions, .g-toc, .story, .marquee, .ask-fab, .box-callout, .cal-top, .cal-nav, .dnav .arrow, .city-dlg { display: none !important; }
  body { background: #fff; }
  .g-layout { display: block; }
  .mantra { background: #fff; color: #000; border: 1px solid #999; }
  .mantra .dev { color: #000; }
  .steps > li, .samagri li { break-inside: avoid; }
}
/* "coming soon" leaves read as outlines, never as greyed-out fills */
.leaf.soon { opacity: 1; background: transparent; border: 1px dashed var(--line-2); box-shadow: none; color: var(--muted); }
.leaf.soon::before, .leaf.soon::after { opacity: .3; }
.hero .leaf.soon { border-color: rgba(246, 239, 226, .25); color: var(--on-dark-muted); }
.hero .leaf.soon::before, .hero .leaf.soon::after { background: var(--on-dark); }
.hero .leaf.soon .lt small { color: var(--gold); opacity: .8; }
.hero .leaf.soon .lt span { color: var(--on-dark-muted); }
/* half-width columns get one step smaller titles */
.p-info h1 { font-size: var(--fs-3xl); }
.price b { font-size: var(--fs-2xl); }
/* list rows: only the name carries the quality colour */
.cl.q-good, .cl.q-ok, .cl.q-bad { color: var(--ink); }
/* dial follows the scroll on wide screens so the two columns stay balanced */
@media (min-width: 901px) { .chog-top .dial { position: sticky; top: calc(var(--header-h) + var(--s-5)); align-self: start; } }

/* ==========================================================================
   Ask Sahayak — AI helper chat (/ask/)
   ========================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ask-hero { padding: var(--s-8) 0 var(--s-6); }
.ask-hero h1 { font-size: var(--fs-4xl); margin: var(--s-3) 0 var(--s-4); }
.ask-chat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: var(--s-5); }
.ask-log { display: flex; flex-direction: column; gap: var(--s-5); min-height: 180px; }
.ask-try { font: 600 var(--fs-xs)/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 var(--s-3); }
.ask-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.ask-chip { font: 500 var(--fs-sm)/1.35 var(--sans); text-align: left; color: var(--ink); background: var(--bg); border: 1px solid var(--line-2);
  border-radius: var(--r-md); padding: var(--s-2) var(--s-3); cursor: pointer; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.ask-chip:hover { border-color: var(--accent); transform: translateY(-1px); }

.msg { max-width: 100%; font-size: var(--fs-md); line-height: 1.6; }
.msg.user { align-self: flex-end; max-width: 85%; background: var(--ink); color: var(--on-dark); padding: var(--s-3) var(--s-4); border-radius: var(--r-md) var(--r-md) var(--r-sm) var(--r-md); white-space: pre-wrap; }
.msg.bot { align-self: stretch; }
.msg.bot .who { font: 600 var(--fs-xs)/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--s-2); }
.msg.bot p { margin: 0 0 var(--s-3); }
.msg.bot ol, .msg.bot ul { margin: 0 0 var(--s-3); padding-left: var(--s-5); }
.msg.bot li { margin-bottom: var(--s-1); }
.msg.bot a { color: var(--accent); }
.msg.bot .typing::after { content: "●●●"; letter-spacing: .3em; color: var(--gold); animation: ask-pulse 1.2s infinite; }
@keyframes ask-pulse { 50% { opacity: .3; } }
.msg.bot .err { background: var(--bad-tint); color: var(--bad); border-radius: var(--r-sm); padding: var(--s-2) var(--s-3); font-size: var(--fs-sm); }
.ref-tag { display: inline; font: 600 var(--fs-xs)/1 var(--sans); color: var(--jain); background: var(--jain-tint); border: 0; border-radius: var(--r-pill);
  padding: 3px var(--s-2); cursor: pointer; vertical-align: 1px; white-space: nowrap; }
.ref-tag:hover { background: var(--jain); color: var(--surface); }

.verses { display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.verse { background: var(--gold-tint); border-left: 3px solid var(--gold); border-radius: var(--r-sm); padding: var(--s-3) var(--s-4); scroll-margin: var(--s-8); }
.verse.flash { animation: ask-flash 1.2s var(--ease); }
@keyframes ask-flash { 0% { box-shadow: 0 0 0 4px var(--gold); } 100% { box-shadow: 0 0 0 0 transparent; } }
.verse h4 { margin: 0 0 var(--s-2); font: 600 var(--fs-xs)/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.verse .sa { font-family: var(--deva); font-size: var(--fs-lg); line-height: 1.6; margin: 0; }
.verse .ro { font-style: italic; font-size: var(--fs-sm); color: var(--muted); margin: var(--s-1) 0 0; }
.verse .en { font-size: var(--fs-sm); margin: var(--s-2) 0 0; }
.verse a { display: inline-block; margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--accent); }

.ask-form { display: flex; gap: var(--s-3); align-items: flex-end; margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.ask-form textarea { flex: 1; resize: none; font: var(--fs-md)/1.5 var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line-2);
  border-radius: var(--r-md); padding: var(--s-3) var(--s-4); max-height: 180px; }
.ask-form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.ask-form .btn[disabled] { opacity: .5; pointer-events: none; }
.ask-foot { display: flex; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-3); font-size: var(--fs-xs); color: var(--muted); }
.ask-new { font: 600 var(--fs-xs)/1 var(--sans); color: var(--accent); background: none; border: 0; cursor: pointer; padding: 0; white-space: nowrap; }
.ask-human { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-6); }
.ask-sources { font-size: var(--fs-sm); color: var(--muted); margin: var(--s-5) 0 var(--s-8); }
.ask-sources a { color: var(--ink); }
@media (max-width: 600px) {
  .ask-chat { padding: var(--s-4); border-radius: var(--r-md); }
  .msg.user { max-width: 92%; }
}

/* Guide extras: short-answer box, diagrams (/hindu/home-mandir-setup/) */
.quick { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--good); border-radius: var(--r-md); padding: var(--s-5); margin: var(--s-5) 0; box-shadow: var(--shadow); }
.quick h2 { font-size: var(--fs-2xl); margin-bottom: var(--s-3); }
.quick ol { margin: 0 0 var(--s-3); padding-left: var(--s-5); display: grid; gap: var(--s-2); }
.quick p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.fig { margin: var(--s-5) 0; }
.fig img { display: block; width: 100%; height: auto; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg); }
.fig a { display: block; }
.fig figcaption { margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--muted); }
.ask-inline { margin-top: var(--s-5); font-size: var(--fs-sm); }
.ask-inline a { color: var(--accent); }

/* Jain Today widget (/jain/today/) */
.jt-app { margin-bottom: var(--s-8); }
.jt-top { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); }
.jt-city { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); }
.jt-city select { font: 500 var(--fs-sm)/1.2 var(--sans); color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: var(--s-2) var(--s-3); max-width: 62vw; }
.jt-lang { font: 600 var(--fs-xs)/1 var(--sans); color: var(--jain); background: var(--jain-tint); border: 0; border-radius: var(--r-pill); padding: var(--s-2) var(--s-3); cursor: pointer; }
.jt-date { color: var(--muted); font-size: var(--fs-sm); margin: var(--s-4) 0; }
.jt-date b { color: var(--ink); }
.jt-next { background: var(--jain); color: var(--on-dark); border-radius: var(--r-lg); padding: var(--s-6) var(--s-5) var(--s-5); box-shadow: var(--shadow); }
.jt-next.night { background: var(--ink); }
.jt-label { font: 600 var(--fs-xs)/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-muted); }
.jt-big { font: 400 var(--fs-3xl)/1.05 var(--serif); margin: var(--s-2) 0; }
.jt-count { font-size: var(--fs-lg); color: var(--on-dark-muted); }
.jt-count b { color: #FFE6A8; font-weight: 600; }
.jt-bar { height: 8px; background: rgba(246, 239, 226, .2); border-radius: var(--r-pill); margin-top: var(--s-5); overflow: hidden; }
.jt-bar i { display: block; height: 100%; background: var(--gold); border-radius: var(--r-pill); }
.jt-bar-l { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--on-dark-muted); margin-top: var(--s-2); }
.jt-plan { background: var(--gold-tint); border-radius: var(--r-md); padding: var(--s-3) var(--s-4); margin-top: var(--s-4); font-size: var(--fs-sm); }
.jt-plan p { margin: var(--s-1) 0; }
.jt-h { font-size: var(--fs-2xl); margin: var(--s-7) 0 var(--s-3); }
.jt-list { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.jt-list li { display: grid; grid-template-columns: 92px 1fr auto; gap: var(--s-3); align-items: baseline; padding: var(--s-3) var(--s-4); border-top: 1px solid var(--line); }
.jt-list li:first-child { border-top: 0; }
.jt-list .jt-t { font-weight: 600; font-variant-numeric: tabular-nums; }
.jt-list .jt-n small { display: block; color: var(--muted); font-size: var(--fs-xs); }
.jt-list .jt-s { font: 600 var(--fs-xs)/1 var(--sans); color: var(--jain); text-transform: uppercase; letter-spacing: .1em; }
.jt-list li.done { color: var(--muted); }
.jt-list li.done .jt-t { text-decoration: line-through; text-decoration-color: var(--line-2); }
.jt-list li.next { background: var(--jain-tint); }
.jt-remind { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 var(--s-5) var(--s-5); margin-top: var(--s-7); }
.jt-remind .jt-h { padding-top: var(--s-5); margin-top: 0; }
.jt-remind p { color: var(--muted); font-size: var(--fs-sm); }
.jt-opts { display: grid; gap: var(--s-2); margin: var(--s-4) 0; font-size: var(--fs-sm); }
.jt-opts input { accent-color: var(--jain); margin-right: var(--s-2); }
.jt-fests { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.jt-fests li { display: grid; grid-template-columns: 1fr auto; gap: 0 var(--s-3); background: var(--jain-tint); border-radius: var(--r-md); padding: var(--s-3) var(--s-4); }
.jt-fests .jt-fd { grid-column: 1 / -1; font-size: var(--fs-xs); color: var(--muted); }
.jt-fests small { color: var(--jain); font-weight: 600; font-size: var(--fs-xs); align-self: center; }
.jt-fine { font-size: var(--fs-xs); color: var(--muted); margin-top: var(--s-4); }
.jt-fine a { color: var(--jain); }
@media (max-width: 600px) { .jt-list li { grid-template-columns: 76px 1fr auto; padding: var(--s-3); } }

/* Festival date for the reader's city + upcoming list (fest-date.js) */
.fest-when { background: var(--ink); color: var(--on-dark); border-radius: var(--r-md); padding: var(--s-4) var(--s-5); margin: var(--s-5) 0; max-width: var(--narrow); }
.fest-when .fw-l { font: 600 var(--fs-xs)/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.fest-when p { margin: var(--s-2) 0; font-size: var(--fs-lg); }
.fest-when b { font-weight: 600; }
.fest-when a { color: var(--gold); }
.fest-when small { color: var(--on-dark-muted); font-size: var(--fs-sm); }
.alt { color: var(--muted); font-size: var(--fs-sm); }
.fest-up { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.fest-up li { display: grid; grid-template-columns: 44px 64px 1fr; gap: var(--s-3); align-items: baseline; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-3) var(--s-4); }
.fest-up .fu-d { font-weight: 600; color: var(--accent); }
.fest-up .fu-n small { display: block; color: var(--muted); font-size: var(--fs-xs); }
.fest-up a { color: var(--ink); font-weight: 600; }
.fu-note { font-size: var(--fs-xs); color: var(--muted); margin-top: var(--s-3); }
.fu-note a { color: var(--accent); }
.jt-arcwrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-4) var(--s-3) var(--s-2); margin-top: var(--s-4); }
.jt-arc { display: block; width: 100%; height: auto; overflow: visible; }
.jt-more { margin-top: var(--s-4); }
.jt-more summary { cursor: pointer; font-weight: 600; color: var(--jain); padding: var(--s-2) 0; }
.jt-more .jt-list { margin-top: var(--s-2); }
.fest-up li { align-items: center; }
.fu-ic { width: 40px; height: 40px; background: var(--bg); border-radius: var(--r-sm); padding: 2px; }
.fig-share { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: calc(-1 * var(--s-2)) 0 var(--s-6); }
.faq.more details > *:not(summary) { color: var(--ink); }
.faq.more .steps { margin-top: var(--s-4); }
/* festival pages: Jain colour for the date box, Gita chapter buttons */
.fest-when.jain { background: var(--jain); }
.fest-when.jain .fw-l, .fest-when.jain a { color: var(--gold-tint); }
.ch-h { font-size: var(--fs-xl); margin: var(--s-5) 0 var(--s-3); }
.ch-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: var(--s-2); }
.ch-grid a { display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); font: 400 var(--fs-xl)/1 var(--serif); text-decoration: none; transition: background .2s var(--ease); }
.ch-grid a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
@media (max-width: 600px) { .ch-grid { grid-template-columns: repeat(6, 1fr); } }

/* ==========================================================================
   Upcoming festival (home) + 30-second story player (fest-story.js)
   ========================================================================== */
.crop { position: relative; display: block; overflow: hidden; width: 100%; border-radius: var(--r-sm); background: var(--bg); }
.crop img { position: absolute; max-width: none; height: auto; }

.upcoming { padding-top: var(--s-7); }
.up-card { display: grid; grid-template-columns: 1fr 1.15fr; gap: var(--s-6); background: var(--ink); color: var(--on-dark); border-radius: var(--r-lg); padding: var(--s-6); box-shadow: var(--shadow); border-top: 6px solid var(--fc, var(--accent)); }
.up-count { display: inline-block; font: 600 var(--fs-xs)/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; background: var(--fc, var(--accent)); color: var(--ink); border-radius: var(--r-pill); padding: var(--s-2) var(--s-3); }
.up-card h3 { font-size: var(--fs-3xl); margin: var(--s-4) 0 var(--s-1); }
.up-deva { font-family: var(--deva); font-size: var(--fs-xl); color: var(--gold); }
.up-tag { color: var(--on-dark-muted); margin: var(--s-3) 0 var(--s-4); }
.up-when { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin: 0 0 var(--s-5); }
.up-when div { background: var(--ink-2); border-radius: var(--r-md); padding: var(--s-3) var(--s-4); }
.up-when dt { font: 600 var(--fs-xs)/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); }
.up-when dd { margin: var(--s-1) 0 0; font-size: var(--fs-lg); font-weight: 600; color: var(--on-dark); }
.up-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.up-actions .btn.light { color: var(--on-dark); box-shadow: inset 0 0 0 1.5px rgba(246, 239, 226, .35); }
.up-steps { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); align-content: start; }
.up-step { display: grid; gap: var(--s-2); text-align: left; background: var(--surface); border: 0; border-radius: var(--r-md); padding: var(--s-2); cursor: pointer; color: var(--ink); font: 500 var(--fs-sm)/1.3 var(--sans); transition: transform .2s var(--ease); }
.up-step:hover { transform: translateY(-2px); }
.up-step b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--fc, var(--accent)); color: var(--ink); font-size: var(--fs-xs); margin-right: var(--s-1); }
.up-next { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s-3); margin-top: var(--s-4); }
.up-mini { display: grid; gap: var(--s-1); background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--fc, var(--accent)); border-radius: var(--r-md); padding: var(--s-3) var(--s-4); color: var(--ink); text-decoration: none; }
.up-mini .um-d { font: 600 var(--fs-xs)/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.up-mini small { color: var(--muted); }
@media (max-width: 900px) { .up-card { grid-template-columns: 1fr; padding: var(--s-5); } }

.fstory { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; background: rgba(23, 21, 31, .92); }
.fstory.open { display: grid; }
.fs-frame { position: relative; width: min(420px, 100vw); height: min(746px, 100dvh); background: var(--bg); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
@media (max-width: 600px) { .fs-frame { border-radius: 0; } }
.fs-bars { display: flex; gap: 4px; padding: var(--s-3) var(--s-3) 0; position: relative; z-index: 3; }
.fs-bars span { flex: 1; height: 3px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.fs-bars i { display: block; height: 100%; width: 0; background: var(--ink); }
.fs-top { display: flex; justify-content: space-between; align-items: center; padding: var(--s-2) var(--s-3); position: relative; z-index: 3; }
.fs-who { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); }
.fs-who img { width: 26px; height: 26px; }
.fs-x { background: none; border: 0; font-size: 30px; line-height: 1; cursor: pointer; color: var(--ink); padding: 0 var(--s-2); }
.fs-stage { flex: 1; display: flex; }
.fs-slide { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: var(--s-5); gap: var(--s-3); animation: fs-in .45s var(--ease); }
@keyframes fs-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.fs-kicker { font: 600 var(--fs-xs)/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.fs-slide h2 { font-size: var(--fs-3xl); }
.fs-slide h3 { font-size: var(--fs-2xl); }
.fs-slide p { margin: 0; color: var(--muted); font-size: var(--fs-lg); }
.fs-pic { box-shadow: var(--shadow); }
.fs-intro, .fs-outro { background: var(--ink); color: var(--on-dark); margin: var(--s-2) var(--s-3) var(--s-3); border-radius: var(--r-md); border-top: 8px solid var(--fc, var(--accent)); }
.fs-intro .fs-kicker, .fs-outro .fs-kicker { color: var(--fc, var(--gold)); }
.fs-intro p, .fs-outro p { color: var(--on-dark-muted); }
.fs-deva { font-family: var(--deva); font-size: var(--fs-2xl); color: var(--gold); }
.fs-date { font-size: var(--fs-xl) !important; color: var(--on-dark) !important; }
.fs-date small { font-size: var(--fs-sm); color: var(--on-dark-muted); }
.fs-hint { font-size: var(--fs-xs); color: var(--on-dark-muted); margin-top: var(--s-4); }
.fs-actions { display: grid; gap: var(--s-2); margin-top: var(--s-3); position: relative; z-index: 3; }
.fs-actions .btn.light { color: var(--on-dark); box-shadow: inset 0 0 0 1.5px rgba(246, 239, 226, .35); }
.fs-tap { position: absolute; top: 80px; bottom: 0; width: 34%; background: none; border: 0; z-index: 2; cursor: pointer; }
.fs-tap.l { left: 0; } .fs-tap.r { right: 0; }
.fs-intro ~ .fs-tap, .fs-outro ~ .fs-tap { pointer-events: auto; }
/* calendar: festivals with a SahiVidhi guide */
.fl-g { font: 600 var(--fs-xs)/1 var(--sans); font-style: normal; color: var(--good); background: var(--good-tint); border-radius: var(--r-pill); padding: 2px var(--s-2); margin-left: var(--s-1); vertical-align: 2px; letter-spacing: .04em; }
.fg { margin-top: var(--s-3); padding: var(--s-3); background: var(--gold-tint); border-radius: var(--r-sm); }
.fg-w { margin: 0 0 var(--s-2); font-size: var(--fs-sm); }
.fg-a { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.fg-a .btn { min-height: 36px; padding: 0 var(--s-3); font-size: var(--fs-sm); }

/* Subscribe to festival calendars (subscribe.js) */
.sub-banner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-4); background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: var(--r-md); padding: var(--s-4) var(--s-5); margin: var(--s-6) 0 var(--s-8); }
.sub-banner b { display: block; font: 400 var(--fs-xl)/1.2 var(--serif); }
.sub-banner span { color: var(--muted); font-size: var(--fs-sm); }
.sub-btns, .up-sub { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.up-sub { margin-top: var(--s-4); }
.sub-dlg { border: 0; border-radius: var(--r-lg); padding: var(--s-6); max-width: min(560px, 94vw); background: var(--bg); color: var(--ink); box-shadow: var(--shadow); }
.sub-dlg::backdrop { background: rgba(23, 21, 31, .6); }
.sub-dlg h2 { font-size: var(--fs-2xl); margin-right: var(--s-6); }
.sub-lead { color: var(--muted); }
.sub-x { position: absolute; top: var(--s-3); right: var(--s-3); margin: 0; }
.sub-x button { background: none; border: 0; font-size: 30px; cursor: pointer; color: var(--ink); }
.sub-kind { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); margin: var(--s-4) 0; }
.sub-kind button { text-align: left; font: 600 var(--fs-md)/1.3 var(--sans); background: var(--surface); border: 1.5px solid var(--line-2); border-radius: var(--r-md); padding: var(--s-3) var(--s-4); cursor: pointer; color: var(--ink); }
.sub-kind button small { display: block; font-weight: 400; color: var(--muted); font-size: var(--fs-xs); }
.sub-kind button.on { border-color: var(--accent); background: var(--bad-tint); }
.sub-city { display: grid; gap: var(--s-1); font-size: var(--fs-sm); font-weight: 600; }
.sub-city select { font: var(--fs-md) var(--sans); padding: var(--s-2) var(--s-3); border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); }
.sub-what { font-size: var(--fs-sm); }
.sub-go { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.sub-go .btn { justify-content: center; }
.sub-fine { font-size: var(--fs-xs); color: var(--muted); margin-top: var(--s-4); }
/* calendar: prepare / what to do (fest-briefs.js) */
.brief { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin-top: var(--s-3); }
.brief h4 { margin: 0 0 var(--s-1); font: 600 var(--fs-xs)/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.br-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1); font-size: var(--fs-sm); line-height: 1.4; }
.br-list li { position: relative; padding-left: 20px; }
.br-list.prep li::before { content: "○"; position: absolute; left: 0; color: var(--gold); }
.br-list.todo li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 700; }
.tmr { border-left: 5px solid var(--gold); margin-bottom: var(--s-5); }
.tmr h3 { margin-bottom: var(--s-3); }
.tmr-f + .tmr-f { margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.tmr-f a { color: var(--ink); }
.tmr-f .br-list { margin-top: var(--s-2); }
@media (max-width: 600px) { .brief { grid-template-columns: 1fr; } }

/* ---- QA fixes (tools/js/qa.mjs, phone review) ---- */
/* calendar: prepare / what-to-do lists inside a festival row are plain lists, not cards */
.day-fests .br-list li, .tmr .br-list li { display: block; background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0 0 0 20px; min-height: 0; }
.day-fests li .brief { padding-top: var(--s-3); border-top: 1px solid var(--line); }
/* home: subscribe buttons */
.up-sub .btn { flex: 1 1 auto; justify-content: center; }
/* Jain Today: subscribe on its own line */
.jt-subs { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.jt-subs p { margin: 0 0 var(--s-2); }
/* Gita / Tattvartha verse numbers: a bigger tap area without moving them */
.gvn { padding: 10px; margin: -10px; }
@media (max-width: 600px) {
  .hero .watermark { opacity: .03; bottom: auto; top: 60%; }
  .site-footer { padding-bottom: 96px; }          /* room for the floating Ask Maharaj button */
  .up-sub { flex-direction: column; }
  .fg-a .btn { flex: 1 1 auto; justify-content: center; }
}
.fl-prep { display: block; margin-top: var(--s-1); color: var(--ok) !important; font-size: var(--fs-xs); }
.fl-prep::before { content: "○ "; }
/* calendar day view: the full vidhi inline */
.howto { margin-top: var(--s-4); border-top: 1px solid var(--line); padding-top: var(--s-3); }
.howto > summary { cursor: pointer; font: 400 var(--fs-xl)/1.2 var(--serif); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.howto > summary::after { content: "–"; color: var(--accent); font-family: var(--sans); }
.howto:not([open]) > summary::after { content: "+"; }
.howto-steps { list-style: none; padding: 0; margin: var(--s-3) 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.howto-steps > li { display: grid; gap: var(--s-2); align-content: start; background: none; border: 0; padding: 0; }
.howto-pic { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: var(--r-sm); overflow: hidden; box-shadow: 0 1px 0 var(--line); }
.howto-steps b { font-size: var(--fs-sm); }
.howto-steps p { margin: var(--s-1) 0 0; font-size: var(--fs-sm); color: var(--muted); }
.howto-sam { margin-top: var(--s-4); }
.howto-sam summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.howto-sam img { display: block; width: 100%; max-width: 520px; height: auto; margin-top: var(--s-3); border-radius: var(--r-md); border: 1px solid var(--line); }
.howto-more { margin: var(--s-4) 0 0; font-size: var(--fs-sm); }
.howto-more a { color: var(--accent); }
.fg-ask { margin: var(--s-3) 0 0; font-size: var(--fs-sm); color: var(--muted); }
.fg-ask a { color: var(--good); font-weight: 600; }
@media (max-width: 600px) { .howto-steps { grid-template-columns: 1fr; } }
.howto-tip { margin: var(--s-3) 0 0; font-size: var(--fs-xs); color: var(--muted); }

/* home "Coming up": heading, and the city chip inside the card */
.up-head { margin-bottom: var(--s-5); }
.up-head h2 { font-size: var(--fs-3xl); margin-top: var(--s-2); }
.nowrap { white-space: nowrap; }
.up-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.up-top .up-count { height: 34px; display: inline-flex; align-items: center; padding: 0 var(--s-3); }
.cp-chip { position: relative; display: inline-flex; align-items: center; gap: var(--s-2); height: 34px; padding: 0 var(--s-3);
  border-radius: var(--r-pill); background: var(--ink-2); box-shadow: inset 0 0 0 1px rgba(246, 239, 226, .22);
  color: var(--on-dark); font-size: var(--fs-sm); cursor: pointer; white-space: nowrap; max-width: 60%; transition: box-shadow .2s var(--ease); }
.cp-chip b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.cp-chip:hover, .cp-chip:focus-within { box-shadow: inset 0 0 0 1.5px var(--gold); }
.cp-caret { color: var(--gold); font-size: var(--fs-xs); }
.cp-chip select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.up-busy .up-card, .up-busy .up-next { opacity: .45; transition: opacity .15s; }
@media (max-width: 600px) {
  .up-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .up-actions .btn { justify-content: center; }
  .up-actions .btn:first-child { grid-column: 1 / -1; }
}

/* ---- home "Coming up": light, festive card (replaces the dark version) ---- */
.up-card { background: linear-gradient(135deg, var(--surface) 0%, var(--gold-tint) 100%); color: var(--ink);
  border: 1px solid var(--line); border-top: 6px solid var(--fc, var(--accent)); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.up-card::after { content: ""; position: absolute; right: -90px; top: -90px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 169, 59, .28), rgba(226, 169, 59, 0) 70%); pointer-events: none; }
.up-card > * { position: relative; z-index: 1; }
.up-count { background: var(--accent); color: #fff; }
.up-deva { color: var(--accent); }
.up-tag { color: var(--muted); }
.up-when div { background: var(--surface); border: 1px solid var(--line); }
.up-when dt { color: var(--muted); }
.up-when dd { color: var(--ink); }
.up-actions .btn.light { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); background: var(--surface); }
.up-actions .btn.light:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.up-actions .btn.haldi { background: var(--accent); color: #fff; }
.up-actions .btn.haldi:hover { background: var(--ink); }
.cp-chip { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.cp-chip:hover, .cp-chip:focus-within { box-shadow: inset 0 0 0 1.5px var(--accent); }
.cp-caret { color: var(--accent); }
.up-step { border: 1px solid var(--line); box-shadow: 0 6px 16px -12px rgba(23, 21, 31, .35); }
.up-card { border-top: 1px solid var(--line); }
.up-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--fc, var(--accent)); z-index: 2; }
.up-actions { display: grid; grid-template-columns: 1fr 1fr; }
.up-actions .btn { justify-content: center; white-space: nowrap; padding: 0 var(--s-3); }
.up-actions .btn:first-child { grid-column: 1 / -1; }

/* ---- shared city picker (city-picker.js) ---- */
.city-chip { display: inline-flex; align-items: center; gap: var(--s-2); height: 40px; padding: 0 var(--s-4); max-width: 100%;
  border: 0; border-radius: var(--r-pill); background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2);
  font: 500 var(--fs-sm)/1 var(--sans); cursor: pointer; white-space: nowrap; transition: box-shadow .2s var(--ease); }
.city-chip b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.city-chip:hover, .city-chip:focus-visible { box-shadow: inset 0 0 0 1.5px var(--accent); outline: none; }
.cc-caret { color: var(--accent); font-size: var(--fs-xs); }
.city-chip.on-card { height: 34px; padding: 0 var(--s-3); }
.city-chip.inline { height: 30px; padding: 0 var(--s-3); vertical-align: middle; margin-left: var(--s-1); font-size: var(--fs-xs); }
.fest-when .city-chip.inline { background: rgba(246, 239, 226, .12); color: var(--on-dark); box-shadow: inset 0 0 0 1px rgba(246, 239, 226, .3); }
.fest-when .city-chip.inline .cc-caret { color: var(--gold); }
.fw-city { display: block; margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--on-dark-muted); }
.cd-why { margin: var(--s-1) var(--s-5) var(--s-3); font-size: var(--fs-sm); color: var(--muted); }
.city-dlg input[type=search] { width: calc(100% - 2 * var(--s-5)); box-sizing: border-box; font: 16px var(--sans); padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md); border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); }
.city-dlg input[type=search]:focus { outline: none; border-color: var(--accent); }
.city-dlg h4 { font: 600 var(--fs-xs)/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: var(--s-5); margin-bottom: var(--s-2); }
.cd-list .none { color: var(--muted); font-size: var(--fs-sm); padding: var(--s-2) 0; }
.cd-list button[data-pick] { width: 100%; text-align: left; cursor: pointer; font: inherit; display: grid; gap: 2px; }
.cd-list button[data-pick] small { color: var(--muted); font-size: var(--fs-xs); }
.city-dlg .cd-list { max-height: none; }
.city-dlg { overflow-y: auto; }
.city-dlg > :last-child { margin-bottom: var(--s-5); }
/* Jain Today top row */
.jt-top { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); }
.jt-top .city-chip { flex: 0 1 auto; }
.jt-lang { height: 40px; padding: 0 var(--s-4); }
/* subscribe dialog city search */
.sub-city { display: grid; gap: var(--s-2); font-size: var(--fs-sm); }
.sub-city > span { font-weight: 600; }
.sub-cur { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-3) var(--s-4); }
.sub-change { border: 0; background: none; color: var(--accent); font: 600 var(--fs-sm) var(--sans); cursor: pointer; }
.sub-search input { width: 100%; box-sizing: border-box; font: 16px var(--sans); padding: var(--s-3) var(--s-4); border-radius: var(--r-md); border: 1.5px solid var(--line-2); background: var(--surface); }
.sub-results { list-style: none; margin: var(--s-2) 0 0; padding: 0; display: grid; gap: var(--s-1); }
.sub-results button { width: 100%; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-sm); padding: var(--s-2) var(--s-3); cursor: pointer; font: inherit; color: var(--ink); }
.sub-results button:hover { border-color: var(--accent); }
.sub-results small { color: var(--muted); }
.sub-results .none { color: var(--muted); font-size: var(--fs-xs); }
.sub-go .btn { white-space: nowrap; padding: 0 var(--s-3); font-size: var(--fs-sm); }
/* home card: actions run along the bottom, under both columns */
.up-card { align-items: start; row-gap: var(--s-5); }
.up-card > .up-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s-3);
  padding-top: var(--s-5); border-top: 1px solid var(--line); }
.up-card > .up-actions .btn:first-child { grid-column: auto; }
.up-steps { align-self: stretch; align-content: center; }
@media (max-width: 900px) {
  .up-card > .up-actions { grid-template-columns: 1fr 1fr; }
  .up-card > .up-actions .btn:first-child { grid-column: 1 / -1; }
  .up-card > .up-actions { order: 2; }
  .up-steps { order: 3; }
}
/* Jain tab: pachchakkhan + Jain parv share the left column, parvi tithis on the right */
.jn-col { display: grid; gap: var(--s-4); align-content: start; }
.jn-col .sec { margin: var(--s-3) 0 0; }
/* Vidhi Box page: the box picture follows you while you read the details */
@media (min-width: 901px) { .product > .box-visual { position: sticky; top: calc(var(--header-h) + var(--s-5)); } }

/* ---- one page width everywhere (.wrap = 1120px, same as the header) ---- */
/* text pages: start at the header's left edge, keep lines readable */
.prose > *:not(.g-hero) { max-width: 760px; }
.prose .g-hero > * { max-width: 760px; }
/* Jain Today: today on the left, plan-ahead on the right */
.jt-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s-7); align-items: start; }
.jt-grid .jt-col > :first-child { margin-top: 0; }
.jt-grid .jt-remind { margin-top: 0; }
.jt .ask-hero .lead { max-width: 60ch; }
/* Ask: chat on the left, "ask a person" + sources on the right */
.ask-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: var(--s-6); align-items: start; }
.ask-side { position: sticky; top: calc(var(--header-h) + var(--s-5)); display: grid; gap: var(--s-4); }
.ask-side .ask-human { margin: 0; flex-direction: column; align-items: flex-start; }
.ask-side .ask-sources { margin: 0; }
@media (max-width: 900px) {
  .jt-grid, .ask-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .ask-side { position: static; }
}
/* Jain Today: upcoming parv as a full-width row of cards */
.jt-coming { margin-top: var(--s-7); }
.jt-coming .jt-h { margin-top: 0; }
@media (min-width: 901px) { .jt-coming .jt-fests { grid-template-columns: repeat(3, 1fr); } }
/* calendar day view: compact choghadiya strip beside the panchang */
.day-grid .rib-s span { display: none; }
.rib-key { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3); margin: var(--s-3) 0 0; font-size: var(--fs-xs); color: var(--muted); }
.rib-key .k { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: -6px; }
.rib-key .k.good { background: var(--good); } .rib-key .k.ok { background: var(--ok); } .rib-key .k.bad { background: var(--bad); }
.rib-key .k.cur { background: transparent; box-shadow: inset 0 0 0 2px var(--gold); }

/* Griha Pravesh box: warm kumkum box with a mango-leaf toran across the top */
.box-visual.gp { background: radial-gradient(120% 90% at 30% 10%, #C2412F, #7A1712 72%); }
.box-visual.gp::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 64px;
  background: radial-gradient(14px 26px at 50% 0, #2E7A4E 96%, transparent 100%) 0 0 / 44px 52px repeat-x,
              linear-gradient(#E2A93B, #E2A93B) 0 0 / 100% 6px no-repeat; }
.box-visual.gp .note-ph { color: rgba(255, 255, 255, .7); }
.gp-steps { list-style: none; padding: 0; margin: 0; counter-reset: gp; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.gp-steps li { counter-increment: gp; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-5) var(--s-5) var(--s-5) calc(var(--s-5) + 44px); }
.gp-steps li::before { content: counter(gp, devanagari); position: absolute; left: var(--s-5); top: var(--s-4); font: var(--fs-2xl)/1 var(--deva); color: var(--gold); }
.gp-steps b { display: block; font: 400 var(--fs-xl)/1.2 var(--serif); margin-bottom: var(--s-2); }
.gp-steps span { color: var(--muted); font-size: var(--fs-sm); }
.gp-more { margin-top: var(--s-4); font-size: var(--fs-sm); }
.gp-more a { color: var(--accent); }
@media (max-width: 900px) { .gp-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .gp-steps { grid-template-columns: 1fr; } }
/* Vidhi Box item pictures (items.svg) */
.inside > div { display: grid; grid-template-columns: 64px 1fr; column-gap: var(--s-3); align-content: start; }
.inside > div > :not(.ii) { grid-column: 2; }
.inside .ii { grid-row: 1 / span 4; width: 64px; height: 64px; padding: 6px; border-radius: var(--r-md); background: var(--gold-tint); }
.inside .tier-tag { justify-self: start; }
@media (max-width: 600px) { .inside > div { grid-template-columns: 56px 1fr; } .inside .ii { width: 56px; height: 56px; } }
.you-add span { display: inline-flex; align-items: center; gap: var(--s-2); padding: var(--s-1) var(--s-3) var(--s-1) var(--s-1); }
.you-add .fi { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--gold-tint); padding: 3px; }
/* Vidhi Box items: picture on top, text full width below (replaces the side-by-side version) */
.inside > div { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: var(--s-4) var(--s-4) var(--s-5); }
.inside > div > :not(.ii) { grid-column: auto; }
.inside .ii { width: 72px; height: 72px; padding: 8px; margin: 0 0 var(--s-3); border-radius: var(--r-md); background: var(--gold-tint); grid-row: auto; }
.inside > div::before { top: var(--s-5); right: var(--s-5); }
.inside b { padding-right: 0; font-size: var(--fs-md); line-height: 1.3; }
.inside .dv { margin-top: 2px; }
.inside p { margin-top: var(--s-2); line-height: 1.5; }
.inside .tier-tag { margin-top: auto; align-self: flex-start; }
.inside p + .tier-tag { margin-top: var(--s-3); }
.inside > div:has(.tier-tag) p { margin-bottom: var(--s-3); }
.inside > div:has(.tier-tag) p + .tier-tag { margin-top: auto; }
@media (max-width: 600px) {
  .inside > div { display: grid; grid-template-columns: 56px 1fr; column-gap: var(--s-3); padding: var(--s-4); }
  .inside > div > :not(.ii) { grid-column: 2; }
  .inside .ii { grid-row: 1 / span 4; width: 56px; height: 56px; margin: 0; padding: 6px; }
  .inside .tier-tag { margin-top: var(--s-2); }
}
.inside-more { display: flex; flex-direction: column; padding: var(--s-4) var(--s-4) var(--s-5); border: 1.5px dashed var(--gold); border-radius: var(--r-md); background: var(--gold-tint); color: var(--ink); text-decoration: none; transition: border-color .2s var(--ease); }
.inside-more:hover { border-color: var(--accent); }
.inside-more .ii { width: 72px; height: 72px; padding: 8px; margin-bottom: var(--s-3); border-radius: var(--r-md); background: var(--surface); }
.inside-more b { font-size: var(--fs-md); }
.inside-more .dv { font: var(--fs-sm)/1.4 var(--deva); color: var(--muted); }
.inside-more p { margin: var(--s-2) 0 0; font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; }
#fresh { scroll-margin-top: calc(var(--header-h) + var(--s-5)); }
@media (max-width: 600px) { .inside-more { display: grid; grid-template-columns: 56px 1fr; column-gap: var(--s-3); padding: var(--s-4); }
  .inside-more > :not(.ii) { grid-column: 2; } .inside-more .ii { grid-row: 1 / span 3; width: 56px; height: 56px; margin: 0; padding: 6px; } }

/* ==========================================================================
   Vidhi Box "What's inside": grouped, compact rows (replaces the card wall)
   ========================================================================== */
.kit { display: grid; gap: var(--s-4); }
.kit-group { display: grid; grid-template-columns: 240px 1fr; gap: var(--s-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6); }
.kit-group header h3 { font: 400 var(--fs-2xl)/1.1 var(--serif); }
.kit-group header .dv { display: block; font: var(--fs-md)/1.4 var(--deva); color: var(--accent); margin-top: var(--s-1); }
.kit-group header p { color: var(--muted); font-size: var(--fs-sm); margin: var(--s-3) 0 var(--s-3); line-height: 1.5; }
.kit-group header small { font: 600 var(--fs-xs)/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.kit-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s-6); }
.kit-items li { display: grid; grid-template-columns: 52px 1fr; gap: var(--s-3); align-items: start; padding: var(--s-4) 0; border-top: 1px solid var(--line); }
.kit-items li:nth-child(-n+2) { border-top: 0; padding-top: 0; }
.kit-items li:last-child:nth-child(odd) { grid-column: 1 / -1; }          /* odd count: last item spans, no gap */
.kit-items li:last-child:nth-child(odd):not(:first-child) { max-width: calc(50% - var(--s-3)); }
.ki { width: 52px; height: 52px; border-radius: var(--r-sm); background: var(--gold-tint); display: grid; place-items: center; }
.ki svg { width: 40px; height: 40px; }
.kit-items b { font-size: var(--fs-md); }
.kit-items .dv { font: var(--fs-sm)/1 var(--deva); color: var(--muted); margin-left: var(--s-1); }
.kit-items p { margin: var(--s-1) 0 0; font-size: var(--fs-sm); color: var(--muted); line-height: 1.45; }
/* Complete Box: a highlighted add-on block */
.kit-group.plus { background: linear-gradient(135deg, var(--surface), var(--gold-tint)); border: 1.5px solid var(--gold); }
.kit-group.plus .ki { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.plus-tag { display: inline-block; font: 600 var(--fs-xs)/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--accent); border-radius: var(--r-pill); padding: var(--s-1) var(--s-3); margin-bottom: var(--s-3); }
@media (max-width: 900px) {
  .kit-group { grid-template-columns: 1fr; gap: var(--s-4); padding: var(--s-5); }
}
@media (max-width: 600px) {
  .kit-items { grid-template-columns: 1fr; }
  .kit-items li:nth-child(2) { border-top: 1px solid var(--line); padding-top: var(--s-4); }
  .kit-items li:last-child:nth-child(odd):not(:first-child) { max-width: none; }
  .kit-group { padding: var(--s-4); border-radius: var(--r-md); }
}
.kit-items li:last-child:nth-child(odd):not(:first-child) { max-width: none; }
.kit-items li:last-child:nth-child(odd):not(:first-child) p { max-width: 62ch; }
/* box contents: summary of what each box includes */
.kit-sum { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); margin-bottom: var(--s-4); }
.ks { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5) var(--s-6); }
.ks.plus { background: linear-gradient(135deg, var(--surface), var(--gold-tint)); border: 1.5px solid var(--gold); }
.ks-l { font: 600 var(--fs-xs)/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ks b { display: block; font: 400 var(--fs-3xl)/1.1 var(--serif); margin: var(--s-2) 0; }
.ks.plus b { color: var(--accent); }
.ks p { margin: 0; color: var(--muted); font-size: var(--fs-sm); line-height: 1.5; }
.ks p strong { color: var(--ink); }
.in-both { display: inline-block; font: 600 var(--fs-xs)/1 var(--sans); letter-spacing: .06em; color: var(--good); background: var(--good-tint); border-radius: var(--r-pill); padding: var(--s-1) var(--s-3); margin-bottom: var(--s-3); }
.kit-group.plus header small { display: block; margin-top: var(--s-3); }
@media (max-width: 600px) { .kit-sum { grid-template-columns: 1fr; } .ks { padding: var(--s-4) var(--s-5); } }
.tier-see { margin: var(--s-2) 0 var(--s-4); font-size: var(--fs-sm); }
.tier-see a { color: var(--accent); font-weight: 600; }
#inside { scroll-margin-top: calc(var(--header-h) + var(--s-5)); }
/* Vidhi Box: tiles are the same choice as the picker at the top */
.ks[data-box] { cursor: pointer; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), opacity .2s var(--ease); display: flex; flex-direction: column; }
.ks[data-box]:hover { border-color: var(--accent); }
.ks[data-box]:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.ks[aria-pressed="true"] { border: 1.5px solid var(--accent); box-shadow: 0 0 0 4px rgba(168, 35, 27, .12); }
.ks-pick { margin-top: var(--s-4); font: 600 var(--fs-sm)/1 var(--sans); }
.ks-on { display: none; color: #fff; background: var(--accent); border-radius: var(--r-pill); padding: var(--s-2) var(--s-3); }
.ks-off { color: var(--accent); }
.ks[aria-pressed="true"] .ks-on { display: inline-block; }
.ks[aria-pressed="true"] .ks-off { display: none; }
/* the list follows the choice */
.not-ess { display: none; margin-left: var(--s-2); font: 600 var(--fs-xs)/1 var(--sans); letter-spacing: .06em; color: var(--muted); background: var(--surface-2); border-radius: var(--r-pill); padding: var(--s-1) var(--s-3); }
.kit[data-sel="Essential Box"] .kit-group.plus { opacity: .55; border-style: dashed; background: var(--surface); }
.kit[data-sel="Essential Box"] .not-ess { display: inline-block; }
.kit[data-sel="Complete Box"] .kit-group:not(.plus) .in-both::after { content: " · in your box"; }

/* ==========================================================================
   APP-STYLE LAYER FOR PHONES (mobile.js). Everything here is ≤ 900px only,
   except the hidden-by-default pieces just below.
   ========================================================================== */
.tabbar, .mtabs, .msticky, .mbox, .msheet, .msheet-bg, .hdr-city { display: none; }
@media (min-width: 901px) {
  .mpanel + .mpanel > h2:first-child { margin-top: var(--s-8); }     /* guides keep their spacing on desktop */
}
@media (max-width: 900px) {
  :root { --header-h: 58px; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  html.has-msticky body { padding-bottom: calc(140px + env(safe-area-inset-bottom)); }
  .ask-fab { display: none; }
  .reveal { opacity: 1 !important; transform: none !important; }   /* no fade-in delays while thumbing through */

  /* header: brand + city, the menu lives in the tab bar */
  .site-header .nav { display: none; }
  .site-header .brand img { width: 30px; height: 30px; }
  .hdr-city { display: block; margin-left: auto; }
  .city-chip.hdr { height: 36px; padding: 0 var(--s-3); max-width: 46vw; }

  /* bottom tab bar */
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: rgba(252, 248, 241, .96); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .tabbar a { display: grid; place-items: center; align-content: center; gap: 4px; color: var(--muted); text-decoration: none; font: 600 11px/1 var(--sans); }
  .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a.on { color: var(--accent); }
  .tabbar a:active { transform: scale(.94); }
  body:has(.story.open) .tabbar, body:has(.fstory.open) .tabbar, body:has(.story.open) .msticky, body:has(.fstory.open) .msticky { display: none; }

  /* sticky bottom action, just above the tab bar */
  .msticky { display: flex; align-items: center; gap: var(--s-3); position: fixed; left: var(--s-3); right: var(--s-3); z-index: 49;
    bottom: calc(72px + env(safe-area-inset-bottom)); padding: 6px 6px 6px var(--s-4); border-radius: var(--r-pill);
    background: var(--ink); color: var(--on-dark); box-shadow: 0 16px 30px -12px rgba(23, 21, 31, .6); }
  .msticky span { flex: 1; min-width: 0; font-size: var(--fs-xs); line-height: 1.3; color: var(--on-dark-muted); }
  .msticky span b { display: block; color: var(--on-dark); font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .msticky .btn { min-height: 44px; padding: 0 var(--s-4); white-space: nowrap; }

  /* guide pages: compact top, sticky section tabs */
  .g-hero { padding: var(--s-5) 0 var(--s-3); }
  .g-hero h1 { font-size: 2.2rem; }
  .g-hero .pramaan, .g-hero .g-actions { display: none; }
  .g-meta { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .g-meta span { white-space: nowrap; }
  .g-layout { margin-top: var(--s-3); }
  .mtabs { display: flex; gap: 4px; position: sticky; top: var(--header-h); z-index: 30; margin: 0 calc(-1 * var(--s-5)) var(--s-4);
    padding: 6px var(--s-4); overflow-x: auto; scrollbar-width: none; background: rgba(246, 239, 226, .96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .mtabs::-webkit-scrollbar { display: none; }
  .mtabs button { flex: none; border: 0; background: transparent; padding: 10px 14px; border-radius: var(--r-pill); font: 600 var(--fs-sm)/1 var(--sans); color: var(--muted); }
  .mtabs button small { margin-left: 5px; font-weight: 500; opacity: .75; }
  .mtabs button.on { background: var(--ink); color: var(--on-dark); }
  .has-mtabs .mpanel:not(.on) { display: none; }
  .has-mtabs .mpanel > h2 { font-size: var(--fs-2xl); margin: var(--s-2) 0 var(--s-4); }

  /* steps: one row each, tap to open */
  .steps.macc { gap: var(--s-2); }
  .steps.macc > li { padding: var(--s-3) var(--s-4) var(--s-3) 64px; }
  .steps.macc > li::before { top: 50%; transform: translateY(-50%); left: var(--s-4); font-size: var(--fs-2xl); }
  .steps.macc > li.open::before { top: var(--s-3); transform: none; }
  .steps.macc > li > h3 { font-size: var(--fs-lg); margin: 0; cursor: pointer; display: flex; justify-content: space-between; gap: var(--s-3); align-items: center; min-height: 34px; }
  .steps.macc > li > h3::after { content: "+"; color: var(--accent); font: 400 26px/1 var(--sans); }
  .steps.macc > li.open > h3::after { content: "–"; }
  .steps.macc > li.open > h3 { margin-bottom: var(--s-2); }
  .steps.macc > li:not(.open) > :not(h3) { display: none; }

  /* Vidhi Box: picture grid instead of the long list */
  .product { padding-top: var(--s-4); gap: var(--s-4); }
  .product > .box-visual { aspect-ratio: 16 / 10; }
  .pillars { display: none; }
  .gp-steps, .how { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--s-5)); padding: 0 var(--s-5) var(--s-2); scrollbar-width: none; }
  .gp-steps > *, .how > * { scroll-snap-align: start; }
  .kit-sum, .kit { display: none; }
  .mbox { display: grid; gap: var(--s-3); }
  .mtier { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: var(--r-pill); background: var(--surface-2); }
  .mtier button { border: 0; background: transparent; border-radius: var(--r-pill); padding: 10px; font: 600 var(--fs-sm)/1.2 var(--sans); color: var(--muted); }
  .mtier button small { display: block; font-weight: 500; font-size: 11px; }
  .mtier button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px rgba(23, 21, 31, .12); }
  .mgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2); }
  .mgrid button { display: grid; justify-items: center; gap: 6px; padding: var(--s-2) 4px var(--s-3); border: 0; border-radius: var(--r-md);
    background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font: 600 11px/1.2 var(--sans); color: var(--ink); text-align: center; transition: opacity .2s; }
  .mgrid svg { width: 44px; height: 44px; }
  .mgrid button.extra { background: var(--gold-tint); box-shadow: inset 0 0 0 1.5px var(--gold); }
  .mbox[data-sel="Essential Box"] .mgrid button.extra { opacity: .35; }
  .mgrid-note { margin: 0; font-size: var(--fs-xs); color: var(--muted); }
  .msheet-bg { display: block; position: fixed; inset: 0; z-index: 70; background: rgba(23, 21, 31, .45); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .msheet-bg.open { opacity: 1; pointer-events: auto; }
  .msheet { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 71; visibility: hidden; transform: translateY(100%); transition: transform .25s var(--ease), visibility .25s;
    background: var(--bg); border-radius: 22px 22px 0 0; padding: var(--s-3) var(--s-5) calc(var(--s-7) + env(safe-area-inset-bottom)); }
  .msheet::before { content: ""; display: block; width: 44px; height: 5px; margin: 0 auto var(--s-4); border-radius: 3px; background: var(--line-2); }
  .msheet.open { transform: none; visibility: visible; }
  .msheet-x { position: absolute; top: var(--s-3); right: var(--s-4); border: 0; background: none; font-size: 28px; color: var(--ink); }
  .msh { display: flex; gap: var(--s-4); align-items: center; }
  .msh svg { flex: none; width: 72px; height: 72px; padding: 8px; border-radius: var(--r-md); background: var(--gold-tint); }
  .msh b { display: block; font: 400 1.5rem/1.1 var(--serif); }
  .msh .dv { font: var(--fs-sm) var(--deva); color: var(--muted); }
  .msh em { display: inline-block; margin-top: var(--s-2); font: 600 11px/1 var(--sans); font-style: normal; color: var(--good); background: var(--good-tint); border-radius: var(--r-pill); padding: 4px var(--s-2); }
  .msh em.x { color: #fff; background: var(--accent); }
  .msheet p { color: var(--muted); line-height: 1.55; }

  /* pages with their own city chip: the header chip is enough */
  .jt-top .city-chip, .up-top .city-chip { display: none; }
}

/* Home: Today card + shortcut tiles (desktop and phone) */
.today-sec { padding: var(--s-7) 0 0; }
.td-wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--s-4); align-items: stretch; }
.td-card { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-5) var(--s-6); border-radius: var(--r-lg); color: var(--ink); text-decoration: none;
  background: linear-gradient(135deg, var(--surface), var(--gold-tint)); border: 1px solid var(--line); box-shadow: var(--shadow); transition: border-color .2s var(--ease); }
.td-card:hover { border-color: var(--accent); }
.td-k { font: 600 var(--fs-xs)/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.td-t { font: 400 var(--fs-3xl)/1.05 var(--serif); }
.td-s { color: var(--muted); font-size: var(--fs-sm); }
.td-pills { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
.td-p { display: inline-flex; flex-direction: column; gap: 2px; padding: var(--s-2) var(--s-3); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.td-p small { font-size: var(--fs-xs); color: var(--muted); }
.td-p b { font-size: var(--fs-sm); }
.td-p.good b { color: var(--good); } .td-p.ok b { color: var(--ok); } .td-p.bad b { color: var(--bad); } .td-p.jain b { color: var(--jain); }
.td-go { margin-top: auto; padding-top: var(--s-2); font: 600 var(--fs-sm)/1 var(--sans); color: var(--accent); }
.td-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.td-tiles a { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-4); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.td-tiles a:hover { border-color: var(--accent); transform: translateY(-2px); }
.td-tiles .qi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; }
.td-tiles b { font-size: var(--fs-md); }
.td-tiles small { color: var(--muted); font-size: var(--fs-xs); line-height: 1.35; }
@media (max-width: 900px) {
  .today-sec { padding-top: var(--s-4); }
  .td-wrap { grid-template-columns: 1fr; }
  .td-card { padding: var(--s-5); }
  .td-t { font-size: 2.1rem; }
  /* compact hero: the headline only */
  .home-hero { padding: var(--s-5) 0 0; }
  .home-hero .hh-art, .home-hero .hh-foot, .marquee, .m-skip { display: none; }
  .home-hero h1 { font-size: 3rem; }
  /* coming up: the card without the step pictures; next festivals swipe sideways */
  .upcoming { padding-top: var(--s-6); }
  .up-steps { display: none; }
  .up-next { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: var(--s-3) calc(-1 * var(--s-5)) 0; padding: 0 var(--s-5) var(--s-2); scrollbar-width: none; }
  .up-next > * { scroll-snap-align: start; }
}

/* calendar day view on phones: week strip + one card at a time */
.cal-week, .day-tabs { display: none; }
@media (max-width: 900px) {
  .cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 0 0 var(--s-3); }
  .cal-week a { display: grid; justify-items: center; gap: 3px; padding: 7px 0 6px; border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; color: var(--muted); }
  .cal-week small { font: 600 10px/1 var(--sans); text-transform: uppercase; }
  .cal-week b { font: 400 1.3rem/1 var(--serif); color: var(--ink); }
  .cal-week span { display: flex; gap: 2px; height: 6px; }
  .cal-week i { width: 6px; height: 6px; border-radius: 50%; }
  .cal-week i.hindu { background: var(--accent); } .cal-week i.jain { background: var(--jain); } .cal-week i.vrat { background: var(--gold); }
  .cal-week a.on { background: var(--ink); box-shadow: none; } .cal-week a.on b, .cal-week a.on small { color: var(--on-dark); }
  .day-tabs { display: flex; gap: 4px; position: sticky; top: var(--header-h); z-index: 20; margin: var(--s-2) calc(-1 * var(--s-5)) var(--s-3); padding: 6px var(--s-4);
    overflow-x: auto; scrollbar-width: none; background: rgba(246, 239, 226, .96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .day-tabs button { flex: none; border: 0; background: transparent; padding: 10px 14px; border-radius: var(--r-pill); font: 600 var(--fs-sm)/1 var(--sans); color: var(--muted); }
  .day-tabs button.on { background: var(--ink); color: var(--on-dark); }
  .day-grid[data-tab] [data-dt] { display: none; }
  .day-grid[data-tab="mu"] [data-dt="mu"], .day-grid[data-tab="ch"] [data-dt="ch"], .day-grid[data-tab="pa"] [data-dt="pa"], .day-grid[data-tab="ja"] [data-dt="ja"] { display: block; }
}

/* phones: shorter pages */
@media (max-width: 900px) {
  /* footer: the tab bar already has the links */
  .site-footer { padding: var(--s-5) 0 var(--s-4); }
  .site-footer .wrap > div:not(:first-child):not(.bottom) { display: none; }
  .site-footer .wrap > div:first-child p { display: none; }
  .site-footer .bottom { margin-top: var(--s-3); padding-top: var(--s-3); }
  /* guide: "everything in one box" as a slim row */
  .box-callout { grid-template-columns: auto 1fr; padding: var(--s-3) var(--s-4); gap: var(--s-3); margin: var(--s-3) 0; }
  .box-callout .ic { font-size: var(--fs-xl); }
  .box-callout b { font-size: var(--fs-lg); }
  .box-callout small { display: none; }
  .box-callout .btn { grid-column: 1 / -1; min-height: 40px; }
  /* home: compact shortcut tiles */
  .td-tiles a { flex-direction: row; align-items: center; gap: var(--s-3); padding: var(--s-3); }
  .td-tiles a small { display: none; }
  .td-tiles .qi { flex: none; width: 36px; height: 36px; font-size: 18px; }
  .td-tiles b { font-size: var(--fs-sm); line-height: 1.2; }
  .td-pills { gap: 6px; }
  .td-p { padding: 6px var(--s-3); }
  /* calendar: one city button (in the header), compact day header */
  .cal-top .city-btn { display: none; }
  .cal-top { justify-content: flex-end; }
  .hero-day { padding: var(--s-4) var(--s-5); gap: var(--s-3); }
  .hero-day svg { width: 54px !important; height: 54px !important; }
}
@media (max-width: 900px) {
  .block { padding: var(--s-6) 0; }
  .section-head { margin-bottom: var(--s-4); }
  .section-head h2 { font-size: 2rem; }
  .includes li { font-size: var(--fs-sm); padding: var(--s-2) 0; }
  .product .includes { margin-top: var(--s-3); }
}
/* the page edge is 16px on small phones: full-bleed strips match it */
@media (max-width: 600px) {
  .mtabs, .day-tabs { margin-left: calc(-1 * var(--s-4)); margin-right: calc(-1 * var(--s-4)); }
  .gp-steps, .how, .up-next { margin-left: calc(-1 * var(--s-4)); margin-right: calc(-1 * var(--s-4)); padding-left: var(--s-4); padding-right: var(--s-4); }
}

/* desktop improvements */
@media (min-width: 901px) {
  .jt-grid > .jt-col:last-child { position: sticky; top: calc(var(--header-h) + var(--s-5)); }   /* reminders stay in view */
  .cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--s-2); max-width: 640px; margin: 0 auto var(--s-4); }
  .cal-week a { display: grid; justify-items: center; gap: 4px; padding: var(--s-2) 0; border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; color: var(--muted); transition: box-shadow .2s var(--ease); }
  .cal-week a:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
  .cal-week small { font: 600 11px/1 var(--sans); text-transform: uppercase; }
  .cal-week b { font: 400 1.5rem/1 var(--serif); color: var(--ink); }
  .cal-week span { display: flex; gap: 3px; height: 6px; }
  .cal-week i { width: 6px; height: 6px; border-radius: 50%; }
  .cal-week i.hindu { background: var(--accent); } .cal-week i.jain { background: var(--jain); } .cal-week i.vrat { background: var(--gold); }
  .cal-week a.on { background: var(--ink); box-shadow: none; } .cal-week a.on b, .cal-week a.on small { color: var(--on-dark); }
}
@media (min-width: 1100px) {
  .hdr-city { display: block; margin-left: var(--s-3); }
  .city-chip.hdr { height: 38px; }
}

/* phones: Guides / More panels from the tab bar */
.tsheet, .tsheet-bg { display: none; }
@media (max-width: 900px) {
  .tsheet-bg { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(23, 21, 31, .4); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .tsheet-bg.open { opacity: 1; pointer-events: auto; }
  .tsheet { display: block; position: fixed; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 48;
    max-height: calc(100dvh - 140px); overflow-y: auto; visibility: hidden; transform: translateY(16px); opacity: 0;
    transition: transform .22s var(--ease), opacity .22s, visibility .22s; background: var(--bg); border-radius: 22px 22px 0 0;
    padding: var(--s-4) var(--s-4) var(--s-4); box-shadow: 0 -12px 40px -16px rgba(23, 21, 31, .45); }
  .tsheet.open { visibility: visible; transform: none; opacity: 1; }
  .ts-h { display: block; font: 400 1.6rem/1 var(--serif); margin: 0 0 var(--s-3); }
  .ts-big { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); margin-bottom: var(--s-3); }
  .ts-big a { position: relative; overflow: hidden; display: grid; gap: 2px; padding: var(--s-4); border-radius: var(--r-md); color: #fff; text-decoration: none; min-height: 108px; align-content: end; }
  .ts-big a.hindu { background: linear-gradient(140deg, #C2412F, #7A1712); } .ts-big a.jain { background: linear-gradient(140deg, #2E8A7E, #134A44); }
  .ts-big a span { position: absolute; right: -6px; top: -10px; font: 3.4rem/1 var(--deva); opacity: .2; }
  .ts-big b { font: 400 1.3rem/1.1 var(--serif); } .ts-big small { opacity: .8; font-size: 11px; line-height: 1.3; }
  .ts-list { display: grid; gap: 6px; }
  .ts-list a { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-3); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
  .ts-i { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 18px; color: var(--ink); }
  .ts-list b { display: block; font-size: var(--fs-sm); } .ts-list small { color: var(--muted); font-size: var(--fs-xs); }
  .ts-follow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-top: var(--s-3); font-size: var(--fs-xs); color: var(--muted); }
  .ts-follow span { font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-right: var(--s-1); }
  .ts-follow a { padding: 6px var(--s-3); border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
  body:has(.tsheet.open) .msticky { display: none; }
  /* guide pages: legend and Save as PDF inside the Sources tab */
  .pramaan.in-src { display: block; margin-top: var(--s-5); }
  .m-print { margin-top: var(--s-4); }
  /* box pages: the four promises as compact tiles */
  .pillars { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
  .pillars > div { padding: var(--s-3); }
  .pillars b { font-size: var(--fs-md); } .pillars p { font-size: var(--fs-xs); margin-top: 4px; }
}

/* Jain Today: today's food guide */
.jf { margin-top: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-4) var(--s-5) var(--s-5); }
.jf .jt-h { margin: 0 0 var(--s-3); }
.jf-top { display: flex; gap: var(--s-3); align-items: center; padding: var(--s-3) var(--s-4); border-radius: var(--r-md); }
.jf.ok .jf-top { background: var(--good-tint); } .jf.avoid .jf-top { background: var(--bad-tint); }
.jf-ic { font-size: 28px; }
.jf-top b { display: block; font-size: var(--fs-lg); }
.jf.ok .jf-top b { color: var(--good); } .jf.avoid .jf-top b { color: var(--bad); }
.jf-top small { color: var(--muted); font-size: var(--fs-sm); }
.jf-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: var(--s-3); }
.jf-d { display: grid; justify-items: center; gap: 2px; padding: 6px 0; border-radius: var(--r-sm); font-size: 11px; }
.jf-d small { color: var(--muted); font-weight: 600; }
.jf-d b { font-size: var(--fs-md); }
.jf-d.ok { background: var(--good-tint); color: var(--good); } .jf-d.avoid { background: var(--bad-tint); color: var(--bad); }
.jf-notes { margin-top: var(--s-3); font-size: var(--fs-sm); background: var(--gold-tint); border-radius: var(--r-sm); padding: var(--s-2) var(--s-3); }
.jf-notes p { margin: var(--s-1) 0; }
.jf-list { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; gap: var(--s-2); font-size: var(--fs-sm); }
.jf-list li { position: relative; padding-left: 26px; }
.jf-list li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.jf-list li.no::before { content: "✕"; color: var(--bad); } .jf-list li.ok::before { content: "✓"; color: var(--good); }
.jf-more { display: inline-block; margin-top: var(--s-3); font-weight: 600; font-size: var(--fs-sm); color: var(--jain); }

/* /jain/food-rules/ */
.tithi-grid { display: grid; gap: var(--s-2); margin: var(--s-4) 0; }
.tithi-grid > div { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.tithi-grid b { width: 150px; font-size: var(--fs-sm); color: var(--muted); }
.tithi-grid span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 var(--s-2); border-radius: var(--r-sm); background: var(--bad-tint); color: var(--bad); font: 600 var(--fs-md)/1 var(--sans); }
.tithi-grid span.pm { background: var(--bad); color: #fff; }
.rule-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); margin: var(--s-4) 0; }
.rc { padding: var(--s-4); border-radius: var(--r-md); border: 1px solid var(--line); }
.rc b { display: block; margin-bottom: var(--s-1); } .rc p { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.rc.avoid { background: var(--bad-tint); } .rc.avoid b { color: var(--bad); }
.rc.warn { background: var(--ok-tint); } .rc.warn b { color: var(--ok); }
.rc.ok { background: var(--jain-tint); } .rc.ok b { color: var(--jain); }
.tip { font-size: var(--fs-sm); background: var(--surface); border-left: 3px solid var(--jain); padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); }
.tip a { color: var(--jain); }
.dd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.dd-grid > div { position: relative; padding: var(--s-4); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.dd-grid span { font-size: 28px; }
.dd-grid b { display: block; margin: var(--s-2) 0 var(--s-1); }
.dd-grid p { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.dd-grid .no b { color: var(--bad); } .dd-grid .ok b { color: var(--good); }
.dd-grid > div::after { position: absolute; top: var(--s-3); right: var(--s-4); font-weight: 700; }
.dd-grid .no::after { content: "✕"; color: var(--bad); } .dd-grid .ok::after { content: "✓"; color: var(--good); }
.season-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); margin: var(--s-4) 0; }
.season-row > div { display: grid; gap: 2px; padding: var(--s-4); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.season-row span { font-size: 26px; } .season-row small { color: var(--muted); font-size: var(--fs-xs); }
.season-row strong { margin-top: var(--s-2); color: var(--jain); }
.pk-table { display: grid; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.pk-table > div { display: grid; grid-template-columns: 200px 1fr; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.pk-table > div:first-child { border-top: 0; }
.pk-table b { color: var(--jain); }
.abh { columns: 2; column-gap: var(--s-6); padding-left: var(--s-5); font-size: var(--fs-sm); }
.abh li { margin-bottom: var(--s-1); break-inside: avoid; }
@media (max-width: 900px) {
  .rule-cards, .dd-grid, .season-row { grid-template-columns: 1fr 1fr; }
  .rule-cards .rc:last-child { grid-column: 1 / -1; }
  .tithi-grid b { width: 100%; }
  .tithi-grid span { min-width: 40px; height: 40px; }
  .pk-table > div { grid-template-columns: 1fr; gap: 2px; }
  .abh { columns: 1; }
}
@media (max-width: 420px) { .dd-grid, .season-row { grid-template-columns: 1fr; } }

/* Show: Both · Hindu · Jain */
.trad-seg { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: var(--r-pill); background: var(--surface-2); }
.trad-seg span { font: 600 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 var(--s-2); }
.trad-seg button { border: 0; background: transparent; border-radius: var(--r-pill); padding: 8px 12px; font: 600 var(--fs-sm)/1 var(--sans); color: var(--muted); cursor: pointer; }
.trad-seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 6px rgba(23, 21, 31, .12); }
.trad-seg button[data-trad="jain"][aria-pressed="true"] { color: var(--jain); }
.trad-seg button[data-trad="hindu"][aria-pressed="true"] { color: var(--accent); }
.cal-top { gap: var(--s-3); flex-wrap: wrap; }
.trad-seg.cal { margin-left: auto; }
.trad-seg.up { float: right; }
/* month: no-greens days in Jain mode */
.mc.nog { box-shadow: inset 0 0 0 2px var(--bad-tint); }
.mc.nog::after { content: "✕"; position: absolute; right: 5px; bottom: 3px; font: 700 10px/1 var(--sans); color: var(--bad); }
.mc { position: relative; }
.nog-key { font-size: var(--fs-xs); color: var(--muted); margin: var(--s-1) 0 0; display: flex; align-items: center; gap: var(--s-2); }
.nog-key span::before { content: "✕"; color: var(--bad); font-weight: 700; }
/* day view: Jain food card */
.jfood { border-left: 5px solid var(--good); }
.jfood.avoid { border-left-color: var(--bad); }
.jfood-top { display: flex; gap: var(--s-3); align-items: center; }
.jfood-top > span { font-size: 26px; }
.jfood-top b { display: block; font-size: var(--fs-lg); }
.jfood.ok .jfood-top b { color: var(--good); } .jfood.avoid .jfood-top b { color: var(--bad); }
.jfood-top small { color: var(--muted); font-size: var(--fs-sm); }
.jfood p { margin: var(--s-2) 0 0; font-size: var(--fs-sm); color: var(--muted); }
.jfood p a { color: var(--jain); font-weight: 600; }
@media (max-width: 900px) {
  .trad-seg.up { float: none; display: flex; width: fit-content; margin-bottom: var(--s-3); }
  .trad-seg.cal { margin-left: 0; }
  .cal-top { justify-content: space-between !important; }
}

/* home "Coming up": fill the left column, tighten gaps, no cut-off cards on tablets */
section.block.upcoming { padding-top: var(--s-7); padding-bottom: var(--s-8); }
.up-info { display: flex; flex-direction: column; align-self: stretch; }
.up-card h3 { margin-top: var(--s-3); }
.up-tag { margin: var(--s-2) 0 var(--s-4); }
.up-when { margin: 0; grid-template-columns: 1.35fr 1fr; }
.up-when dd { font-size: var(--fs-md, 1.05rem); line-height: 1.3; }
.up-todo { margin-top: var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-3) var(--s-4); flex: 1; }
.up-todo-h { font: 600 var(--fs-xs)/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.up-todo ul { list-style: none; margin: var(--s-2) 0 0; padding: 0; display: grid; gap: var(--s-2); }
.up-todo li { position: relative; padding-left: 26px; font-size: var(--fs-sm); line-height: 1.4; color: var(--ink); }
.up-todo li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--fc, var(--accent)); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.up-steps { align-content: center; align-items: start; }
.up-mini { align-content: start; }
.up-sub { margin-top: var(--s-3); }
@media (max-width: 900px) {
  section.block.upcoming { padding-bottom: var(--s-7); }
  .up-card { row-gap: var(--s-4); }
  .up-card > .up-actions { padding-top: var(--s-4); }
  .up-todo { flex: none; }
  .up-next { grid-auto-flow: row; grid-template-columns: 1fr 1fr; grid-auto-columns: auto; overflow: visible; margin: var(--s-3) 0 0; padding: 0; }
}
@media (max-width: 600px) {
  section.block.upcoming { padding-bottom: var(--s-6); }
  .up-head { margin-bottom: var(--s-4); }
  .up-when { grid-template-columns: 1fr 1fr; }
  .up-todo { margin-top: var(--s-3); }
  .up-next { grid-auto-flow: column; grid-auto-columns: 78%; grid-template-columns: none; overflow-x: auto; margin: var(--s-3) calc(-1 * var(--s-4)) 0; padding: 0 var(--s-4) var(--s-2); }
}
@media (min-width: 901px) { .up-card { grid-template-columns: 1.2fr 1fr; } }
@media (max-width: 600px) { .up-next { scroll-padding-left: var(--s-4); scroll-padding-right: var(--s-4); } }
@media (max-width: 600px) {
  .how, .gp-steps { scroll-padding-left: var(--s-4); scroll-padding-right: var(--s-4); }
  .tradition { min-height: 0; gap: var(--s-6); padding: var(--s-5); }
  .tradition .big { font-size: 8rem; bottom: -24px; }
}

/* tighter section rhythm; bento tiles filled to the bottom */
section.block { padding: var(--s-8) 0; }
section.block + section.block { padding-top: 0; }
.story-now { margin-top: auto; display: grid; gap: 2px; background: rgba(246, 239, 226, .08); border: 1px solid rgba(246, 239, 226, .16); border-radius: var(--r-md); padding: var(--s-3) var(--s-4); }
.story-now b { font: 600 var(--fs-xs)/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.story-now span { color: var(--on-dark); font-size: var(--fs-sm); }
.mantra-box { margin-top: auto; display: grid; gap: 2px; background: var(--accent-tint, #F8E6E1); border-radius: var(--r-md); padding: var(--s-3) var(--s-4); }
.mantra-box i { color: var(--accent); font-size: var(--fs-md); }
.mantra-box span { color: var(--ink); font-size: var(--fs-sm); }
.tradition { min-height: 280px; }
/* Samayik: simple "what you need" list and 3-column faults */
.checklist { list-style: none; padding: 0; margin: var(--s-4) 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.checklist li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-3) var(--s-4) var(--s-3) calc(var(--s-4) + 26px); font-size: var(--fs-sm); line-height: 1.45; }
.checklist li::before { content: "✓"; position: absolute; left: var(--s-4); top: var(--s-3); width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--jain); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.checklist li b { display: block; color: var(--ink); }
.dos.three { grid-template-columns: repeat(3, 1fr); }
.dos.three > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-4); }
.dos.three h3 { font-size: var(--fs-xl); }
.dos.three p { margin: var(--s-2) 0 0; font-size: var(--fs-sm); color: var(--muted); }
@media (max-width: 900px) { .checklist, .dos.three { grid-template-columns: 1fr; } }
/* analytics consent (shown only to visitors in Europe/UK) */
.sv-consent { position: fixed; left: var(--s-4); right: var(--s-4); bottom: var(--s-4); z-index: 120; max-width: 560px; margin: 0 auto; display: flex; gap: var(--s-3); align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-md); box-shadow: var(--shadow); padding: var(--s-3) var(--s-4); }
.sv-consent p { margin: 0; font-size: var(--fs-sm); flex: 1 1 260px; }
.sv-consent div { display: flex; gap: var(--s-2); }
@media (max-width: 600px) { .sv-consent { bottom: calc(76px + env(safe-area-inset-bottom)); } }
/* phone sheets v2: Guides + More as an app menu */
@media (max-width: 900px) {
  .tsheet { max-height: calc(100dvh - 64px - env(safe-area-inset-bottom) - 40px); overflow-y: auto; overscroll-behavior: contain; }
  .tsheet::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line-2); margin: -6px auto var(--s-3); }
  .ts-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-3); }
  .ts-top .ts-h { margin: 0; }
  .ts-x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
  .ts-lbl { display: block; margin: var(--s-4) 0 var(--s-2); font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
  .ts-lbl.jain { color: var(--jain); }
  .ts-big { margin-bottom: 0; }
  .ts-big a { min-height: 92px; }
  /* 2×2 compact guide tiles */
  .ts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .ts-grid a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; min-height: 60px; }
  .ts-grid .ts-i { width: 34px; height: 34px; font-size: 17px; border-radius: 10px; }
  .ts-grid b { display: block; font-size: 13.5px; line-height: 1.2; }
  .ts-grid small { display: block; color: var(--muted); font-size: 11px; line-height: 1.3; margin-top: 2px; }
  /* More: help tiles */
  .ts-help { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .ts-help a { display: grid; gap: 2px; align-content: start; padding: var(--s-3) var(--s-4) var(--s-4); border-radius: var(--r-md); text-decoration: none; color: var(--ink); min-height: 112px; }
  .ts-help a.sahayak { background: var(--gold-tint); border: 1px solid #EBD9AE; }
  .ts-help a.maharaj { background: #DCF3E4; border: 1px solid #B9E2C7; }
  .ts-hi { font-size: 24px; margin-bottom: 6px; }
  .ts-help b { font: 400 1.2rem/1.15 var(--serif); }
  .ts-help small { color: var(--muted); font-size: 11.5px; line-height: 1.35; }
  /* More: shop banner */
  .ts-shop { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: 8px; padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--ink); color: var(--on-dark); text-decoration: none; }
  .ts-shop-t { display: grid; gap: 2px; }
  .ts-shop small { font: 600 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
  .ts-shop b { font: 400 1.25rem/1.15 var(--serif); }
  .ts-shop-t span { font-size: 12px; color: var(--on-dark-muted); }
  .ts-shop-go { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; font-weight: 700; }
  /* More: settings */
  .ts-settings { display: grid; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
  .ts-set-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 8px var(--s-3); min-height: 52px; }
  .ts-set-row + .ts-set-row { border-top: 1px solid var(--line); }
  .ts-set-row > span { font-size: var(--fs-sm); font-weight: 600; }
  .ts-set-row .trad-seg { margin: 0; }
  .ts-set-row .city-chip { max-width: 60%; }
  /* More: grouped rows */
  .ts-rows { display: grid; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
  .ts-rows a { display: flex; align-items: center; gap: var(--s-3); padding: 8px var(--s-3); min-height: 52px; color: var(--ink); text-decoration: none; }
  .ts-rows a + a { border-top: 1px solid var(--line); }
  .ts-rows .ts-i { width: 32px; height: 32px; font-size: 15px; border-radius: 9px; }
  .ts-rows b { flex: 1; font-size: var(--fs-sm); font-weight: 600; }
  .ts-rows i { font-style: normal; color: var(--muted); font-size: 20px; }
  /* More: follow icons */
  .ts-follow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: var(--s-4); }
  .ts-follow a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 var(--s-2); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 13px; }
  .ts-follow svg { width: 20px; height: 20px; flex: none; }
  .ts-follow .ig svg { color: #C13584; } .ts-follow .yt svg { color: #E62117; } .ts-follow .wa svg { color: #1DA851; }
}
@media (max-width: 900px) { .ts-follow a span { text-transform: none; letter-spacing: 0; margin: 0; font-weight: 600; font-size: 13px; color: var(--ink); } }
/* phone/tablet home banner v2: headline + small diya art + two buttons, no hard edge */
@media (max-width: 900px) {
  .home-hero { padding: var(--s-5) 0 var(--s-5); min-height: 0;
    background: radial-gradient(70% 60% at 88% 18%, var(--hh-glow), transparent 70%), linear-gradient(180deg, var(--surface-2) 0%, var(--bg) 100%); }
  .home-hero .hh-top { padding-right: 150px; min-height: 150px; justify-content: center; }
  .home-hero h1 { font-size: 2.9rem; }
  .hh-tag { font: 500 var(--fs-sm)/1.4 var(--sans); color: var(--muted); }
  .hh-tag .deva { display: inline; font: 600 var(--fs-sm)/1.4 var(--deva); color: var(--accent); margin: 0; letter-spacing: 0; }
  .hh-tag .deva::after { content: " · "; color: var(--muted); }
  .home-hero .hh-art { display: block; position: absolute; top: var(--s-3); right: 0; width: 170px; margin: 0; padding: 0; z-index: 1; pointer-events: none; }
  .home-hero .hh-art .diya { width: 170px; }
  .home-hero .hh-art .chip-glass { display: none; }
  .home-hero .hh-foot { display: flex; margin-top: var(--s-4); }
  .home-hero .hh-foot p { display: none; }
  .home-hero .hh-foot .cta { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s-2); width: 100%; }
  .home-hero .hh-foot .btn { width: 100%; justify-content: center; }
  .today-sec { padding-top: var(--s-2); }
  /* Today card: times in an even grid; an odd last box spans the row */
  .td-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .td-p:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .home-hero .hh-top { padding-right: 240px; }
  .home-hero .hh-art, .home-hero .hh-art .diya { width: 230px; }
  .home-hero .hh-foot .cta { max-width: 460px; }
}
@media (max-width: 600px) {
  .hh-tag { white-space: nowrap; }
  .hh-tag .hh-grow { display: none; }
  .td-pills { grid-template-columns: 1fr; gap: 6px; }
  .td-p { flex-direction: row; justify-content: space-between; align-items: center; padding: 10px var(--s-3); }
  .td-p b { white-space: nowrap; }
}
@media (max-width: 600px) { .home-hero .hh-foot .btn { white-space: nowrap; padding: 0 var(--s-3); } }
@media (max-width: 380px) { .home-hero .hh-foot .btn { font-size: 14px; gap: 6px; } .home-hero h1 { font-size: 2.6rem; } }
@media (max-width: 900px) {
  .home-hero .hh-top { flex-direction: column; align-items: flex-start; justify-content: center; gap: var(--s-3); }
  .home-hero .hh-tag { text-align: left; margin: 0; }
  .home-hero .hh-tag br { display: none; }
}
@media (min-width: 601px) and (max-width: 900px) { .home-hero h1 { font-size: 4rem; } .home-hero .hh-top { min-height: 230px; } }
/* header: the city button's space is always reserved, so the menu never moves while a page loads */
.site-header .hdr-city { flex: none; min-width: 150px; display: flex; justify-content: flex-end; }
.site-header .nav { flex: none; }
@media (max-width: 600px) { .site-header .hdr-city { min-width: 0; } }
.cal2 #cal-app:has(.cal-loading) { min-height: 100vh; }

/* ---- Accessibility fixes (UX review, Nov 2026) ---- */
/* gold numerals and bullets on light backgrounds use the darker text gold */
.how > div::before, .g-body h2 .num, .steps > li::before, .inside > div::before, .chapters .n, .gvn, .gp-steps li::before,
.includes li::before, .br-list.prep li::before { color: var(--gold-text); }
/* story mode: 44px close button; the tap zones never cover links or buttons inside a step */
.story .x { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; }
.story .stage a, .story .stage button { position: relative; z-index: 2; }
/* story mode: "Welcome back — continue or start over" first screen */
.story-resume-in { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); padding-top: var(--s-5); }
.story-resume-in h3 { font: 400 var(--fs-3xl)/1.05 var(--serif); color: #FFF8EC; margin: 0; }
.story-resume-in p { color: var(--on-dark-muted); margin: 0 0 var(--s-3); }
.story-resume-in .btn { min-height: 48px; }
.story-resume-in .btn.light { color: var(--on-dark); box-shadow: inset 0 0 0 1.5px rgba(246, 239, 226, .4); }
.btn.sm { padding: 10px 14px; min-height: 44px; font-size: var(--fs-sm); }

/* Vidhi Box design mockups */
.box-visual.box-art { aspect-ratio: auto; background: none; padding: 0; margin: 0; display: block; overflow: hidden; }
.box-visual.box-art::before { content: none; }
.box-visual.box-art img { display: block; width: 100%; height: auto; border-radius: var(--r-lg); }
.box-visual.box-art figcaption { position: static; margin-top: var(--s-2); font-size: var(--fs-xs); color: var(--muted); text-align: center; }
.gallery .g-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); margin-top: var(--s-3); }
.gallery .g-thumb { display: block; padding: 0; border: 0; background: var(--surface); border-radius: var(--r-md); overflow: hidden; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); text-align: center; font: 600 var(--fs-xs)/1 var(--sans); color: var(--muted); }
.gallery .g-thumb img { display: block; width: 100%; height: auto; border-radius: 0; opacity: .85; transition: opacity .2s; }
.gallery .g-thumb span { display: block; padding: 8px 4px 10px; }
.gallery .g-thumb:hover img { opacity: 1; }
.gallery .g-thumb[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--accent); color: var(--ink); }
.gallery .g-thumb[aria-pressed="true"] img { opacity: 1; }
/* Vidhi Boxes page: one card per box + "Coming next" */
.kit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
@media (max-width: 1000px) { .kit-grid { grid-template-columns: repeat(2, 1fr); } }
.kit-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--surface); border-radius: var(--r-lg); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line), 0 10px 30px -18px rgba(70,45,20,.35); transition: transform .2s, box-shadow .2s; }
.kit-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line-2), 0 18px 40px -20px rgba(70,45,20,.45); }
.kit-card img { display: block; width: 100%; height: auto; }
.kc-body { display: flex; flex-direction: column; gap: 6px; padding: var(--s-4) var(--s-5) var(--s-5); }
.kc-body small { font: 600 var(--fs-xs)/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.kc-body b { font: 400 var(--fs-2xl)/1.1 var(--serif); }
.kc-dv { font-family: var(--deva); color: var(--muted); }
.kc-line { color: var(--muted); font-size: var(--fs-sm); line-height: 1.5; margin-top: 4px; }
.kc-tiers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.kc-tiers span { font: 600 var(--fs-xs)/1 var(--sans); padding: 8px 10px; border-radius: var(--r-pill); background: var(--surface-2); }
.kc-go { margin-top: 10px; font-weight: 600; color: var(--accent); }
.kit-next-h { margin-top: var(--s-7); font: 400 var(--fs-2xl)/1.1 var(--serif); }
.kit-next-p { color: var(--muted); margin-top: 6px; }
.kit-next { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); margin-top: var(--s-4); }
.kn { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-radius: var(--r-md); border: 1.5px dashed var(--line-2); }
.kn small { display: block; font: 600 var(--fs-xs)/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.kn.jain small { color: var(--jain); }
.kn b { display: block; font: 400 var(--fs-xl)/1.2 var(--serif); margin-top: 4px; }
.kn span span { font-family: var(--deva); color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 700px) { .kit-grid, .kit-next { grid-template-columns: 1fr; } }
/* Chhathi date finder */
.chh-calc .chh-in { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin: var(--s-2) 0; font-weight: 600; }
.chh-calc input[type=date] { font: 600 var(--fs-md)/1 var(--sans); padding: 10px 12px; min-height: 44px; border-radius: var(--r-sm); border: 1.5px solid var(--line-2); background: #fff; color: var(--ink); }
.chh-calc [data-out] strong { color: #FFD58A; }
.chh-calc .chh-alt { display: block; color: var(--on-dark-muted); font-size: var(--fs-sm); margin-top: 4px; }
