/* Divya Granth · cohesive product design system, scoped to 11 public tools.
   No content, calculations, form identifiers, reading views or SEO text changed.
   Existing festival illustrations, data visualisations and specialty colour
   palettes remain. Theme variables unify surface depth, type and controls. */

/* Light, high-contrast accents against the existing deep-forest background. */
body.pgBody[data-dg-product]{
 --pd-accent:#f1d39a;
 --pd-aura:rgba(124,151,107,.28);
 --pd-outline:rgba(236,218,175,.24);
 --pd-surface:#163d31;
 --pd-field-focus:#f1d39a;
 --pg-gold:var(--pd-accent);
 --pg-mute:#c7d3c7;
 background:radial-gradient(ellipse 95% 42% at 50% 0%,var(--pd-aura),transparent 72%),
            linear-gradient(170deg,#14392f 0%,#0b221c 65%,#0a1e19 100%);
 background-attachment:scroll;
 color:var(--pg-ink);
}
body.pgBody[data-dg-product="panchang"],
body.pgBody[data-dg-product="calendar"],
body.pgBody[data-dg-product="muhurat"]{
 --pd-accent:#f1d39a;--pd-aura:rgba(122,155,105,.31);
}
body.pgBody[data-dg-product="kundali"]{
 --pd-accent:#e1ccfa;--pd-aura:rgba(121,101,188,.31);
 --pd-outline:rgba(225,204,250,.25);--pd-field-focus:#e1ccfa;
}
body.pgBody[data-dg-product="rashifal"]{
 --pd-accent:#cbd7ff;--pd-aura:rgba(93,115,194,.31);
 --pd-outline:rgba(203,215,255,.25);--pd-field-focus:#cbd7ff;
}
body.pgBody[data-dg-product="naam"]{
 --pd-accent:#ffe0ad;--pd-aura:rgba(187,128,78,.27);
}
body.pgBody[data-dg-product="samagri"]{
 --pd-accent:#f2d8ad;--pd-aura:rgba(165,121,77,.26);
}
body.pgBody[data-dg-product="mandir"]{
 --pd-accent:#ffd4a0;--pd-aura:rgba(184,103,54,.28);
}
body.pgBody[data-dg-product="vastu"]{
 --pd-accent:#c7e2ba;--pd-aura:rgba(93,148,102,.28);
 --pd-outline:rgba(199,226,186,.22);--pd-field-focus:#c7e2ba;
}
body.pgBody[data-dg-product="greet"]{
 --pd-accent:#ffd1dc;--pd-aura:rgba(164,72,101,.28);
 --pd-outline:rgba(255,209,220,.23);--pd-field-focus:#ffd1dc;
}
body.pgBody[data-dg-product="dhyan"]{
 --pd-accent:#bce7d8;--pd-aura:rgba(75,154,138,.26);
 --pd-outline:rgba(188,231,216,.23);--pd-field-focus:#bce7d8;
}

/* Stable top chrome and refined typographic scale: one identity, not 11 clones. */
body.pgBody[data-dg-product] .pgHeader{
 background:linear-gradient(180deg,rgba(13,39,32,.97),rgba(13,39,32,.93));
 border-bottom:1px solid var(--pd-outline);
 box-shadow:0 5px 24px -20px rgba(0,0,0,.85);
}
body.pgBody[data-dg-product] .pgBrand strong{
 color:var(--pd-accent);font-weight:650;letter-spacing:.01em;
}
body.pgBody[data-dg-product] .pgBrand small{
 color:#d2ddcf;letter-spacing:.025em;
}
body.pgBody[data-dg-product] .pgMain{
 padding-inline:clamp(14px,2.5vw,26px);
 padding-top:clamp(17px,2.3vw,26px);
 min-width:0;
}
body.pgBody[data-dg-product] .pgMain :is(h1,h2,h3){
 text-wrap:pretty;letter-spacing:-.012em;
}
body.pgBody[data-dg-product] .pgMain :is(.pgH2,.smH2,.hcMonth h2,.kCard h3,.muCh h3,.vaTips summary){
 color:var(--pd-accent);
}
body.pgBody[data-dg-product] .pgMain :is(.pgH2,.smH2){
 font-weight:750;line-height:1.45;
}
body.pgBody[data-dg-product] .pgMain .pgH2::before{
 content:"";height:1.08em;width:4px;border-radius:5px;
 background:var(--pd-accent);flex:none;opacity:.94;
}
body.pgBody[data-dg-product] .pgMain .smH2{
 display:flex;align-items:center;gap:11px;
}
body.pgBody[data-dg-product] .pgMain .smH2::before{
 content:"";height:1.08em;width:4px;flex:none;
 border-radius:5px;background:var(--pd-accent);
}

/* Individual products retain their original hero illustration/gradient and text. */
body.pgBody[data-dg-product] .pgMain :is(
 .pgHero,.hcHero,.muHero,.kHero,.rfHero,.nmHero,.smHero,
 .mdHero,.vaHero,.grHero,.dhHero
){
 border-radius:clamp(20px,3vw,28px);
 box-shadow:inset 0 1px 0 rgba(255,255,255,.15),
            0 22px 48px -30px rgba(0,0,0,.80),
            0 0 0 1px var(--pd-outline);
}
body.pgBody[data-dg-product] .pgMain :is(
 .pgHero h1,.hcHero h1,.muHero h1,.kHero h1,.rfHero h1,
 .nmHero h1,.smHero h1,.mdHero h1,.vaHero h1,
 .grHero h1,.dhHero h1
){
 font-weight:750;line-height:1.27;
}
body.pgBody[data-dg-product] .pgMain :is(
 .pgKicker,.hcMonth h2 small,.smHero small,.mdBar .mdCount
){
 letter-spacing:.02em;
}
/* Compact luxury surfaces: preserve existing light panels and foreground colours. */
body.pgBody[data-dg-product] .pgMain :is(
 .pgFact,.pgMuhurat,.pgSky,.muCard,.kForm,.kCard,.rfFind,
 .nmForm,.nmCard,.vaWheelBox,.vaCheckBox,.grPanel,.dhCard,
 .mdCard,.smGroup
){
 border-color:var(--pd-outline);
 box-shadow:0 16px 32px -29px rgba(0,0,0,.78),
            inset 0 1px 0 rgba(255,255,255,.07);
}
body.pgBody[data-dg-product] .pgMain :is(.pgFact,.pgMuhurat,.muCard,.kCard,.nmForm,.vaCheckBox,.grPanel,.dhCard,.mdCard){
 border-radius:clamp(16px,2vw,22px);
}
body.pgBody[data-dg-product] .pgMain :is(.pgFact span,.kFacts dt){
 color:#cfddce;
}
body.pgBody[data-dg-product] .pgMain :is(
 .pgFact b,.pgAnga b,.hcCounts b,.kFacts dd,.smCount,
 .pgSkyTimes b
){font-variant-numeric:tabular-nums;}
/* Beautiful but restrained form treatment, without modifying values or behaviour. */
body.pgBody[data-dg-product] .pgMain :is(
 input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]),
 select,textarea
){
 min-width:0;max-width:100%;border-radius:clamp(11px,1.6vw,15px);
 transition:border-color .16s ease,box-shadow .16s ease;
}
body.pgBody[data-dg-product] .pgMain :is(
 .pgControls button,.pgChip,.kTabs button,.rfTabs button,.nmTabs button,
 .mdChips button,.grChips button,.dhChips button,.grActions button,
 .smActs button,.mdActs button
){min-height:44px;}
body.pgBody[data-dg-product] :is(
 button,a,input,select,textarea,summary
):focus-visible{
 outline:3px solid var(--pd-field-focus);outline-offset:3px;
}
body.pgBody[data-dg-product] .pgMain :is(
 .pgControls,.hcControls,.muResults,.kForm,.grPanel,.dhMixer,.smGroup
){scroll-margin-top:calc(var(--dg-header-height,78px) + 12px);}

/* Safety/context stays readable, secondary to the actual product. */
body.pgBody[data-dg-product] .pgMain .pgNote{
 font-size:13px;line-height:1.75;
 padding:10px 13px;border-radius:0 12px 12px 0;
 border-left:3px solid var(--pd-accent);
 background:rgba(255,255,255,.045);color:#d0ddd2;
 margin-top:20px;
}

/* Clear full-width tap targets, no horizontal clipping on small phones. */
@media(max-width:620px){
 body.pgBody[data-dg-product] .pgMain{
  padding-inline:14px;padding-top:16px;
 }
 body.pgBody[data-dg-product] .pgMain :is(
  .pgHero,.hcHero,.muHero,.kHero,.rfHero,.nmHero,.smHero,
  .mdHero,.vaHero,.grHero,.dhHero
 ){border-radius:20px;}
 body.pgBody[data-dg-product] .pgMain :is(
  .pgAngas,.pgFacts,.hcCounts,.rfGrid,.smGrid,.mdYatra,
  .kPair,.grOcc,.dhPresets,.nmRow
 )>*{min-width:0;}
 body.pgBody[data-dg-product] .pgMain .pgH2{margin-top:24px;}
}
@media(max-width:375px){
 body.pgBody[data-dg-product] .pgMain{padding-inline:12px;}
 body.pgBody[data-dg-product] .pgMain :is(
  .pgHero,.hcHero,.muHero,.kHero,.rfHero,.nmHero,.smHero,
  .mdHero,.vaHero,.grHero,.dhHero
 ){border-radius:17px;}
}
@media(prefers-reduced-motion:reduce){
 body.pgBody[data-dg-product] .pgMain :is(input,select,textarea){
  transition:none;
 }
}
@media print{
 body.pgBody[data-dg-product]{background:#fff;color:#132b20;}
 body.pgBody[data-dg-product] .pgMain .pgNote{color:#244638;}
}


/* Active segmented controls inherit their own product accent, not generic gold. */
body.pgBody[data-dg-product] .pgMain :is(
 .kTabs button[aria-selected=true],.rfTabs button[aria-selected=true],
 .nmTabs button[aria-selected=true],.nmGender button[aria-pressed=true],
 .nmChip[aria-pressed=true],.mdChips button[aria-pressed=true],
 .grChips button[aria-pressed=true],.dhChips button[aria-pressed=true]
){
 background:linear-gradient(140deg,#fff8e8,var(--pd-accent));
 color:#24382e;border-color:transparent;
 box-shadow:0 3px 14px -9px rgba(0,0,0,.58);
}
/* On a phone the primary navigation can wrap; don't force a scrolling page. */
body.pgBody[data-dg-product] .pgMain :is(.pgControls,.hcControls,.mdBar){
 min-width:0;
}
body.pgBody[data-dg-product] .pgMain :is(.pgH2,.smH2,.hcMonth h2){
 overflow-wrap:anywhere;
}
