/* Lagudo free kundli v2 (lane C12): shared styles for 25, 26, 27, 27a-27f.
   Calm and mostly cream (owner: the old kundli was "oversaturated"): maroon only as accent, thin gold lines, lots of
   space, one clear next step. Tokens from ../ds/lagudo.css only. Motion = transform + opacity, brand spring. */

/* Sub-bar under the top bar: "‹ वापस | title" (the pictures) */
.k2-bar{display:flex;align-items:center;gap:var(--s3);min-height:52px;padding:0 var(--s4);border-bottom:1px solid var(--line)}
.k2-bar .back{font-size:16px;text-decoration:none}
.k2-bar-t{flex:1;min-width:0;padding-left:var(--s3);border-left:1px solid var(--gold-deep);font-size:20px;line-height:1.4;font-weight:800;
  color:var(--maroon);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;padding-right:56px}

/* Page body */
.k2{padding:0 var(--s4)}
.k2 a{text-decoration:none}
.k2-who{text-align:center;color:var(--muted);font-size:15px;line-height:1.6;margin-top:var(--s3)}
.k2-who b{color:var(--maroon-deep);font-weight:700}
.k2-h1{font-size:28px;line-height:1.35;font-weight:800;color:var(--maroon)}
.k2-h2{font-size:22px;line-height:1.4;font-weight:800;color:var(--maroon)}
.k2-rule{display:flex;align-items:center;gap:6px;margin:var(--s2) auto;max-width:280px;color:var(--gold-deep)}
.k2-rule::before,.k2-rule::after{content:"";flex:1;height:1px;background:var(--gold-deep);opacity:.8}
.k2-rule i{width:8px;height:8px;border:1.5px solid var(--gold-deep);transform:rotate(45deg)}
.k2-hr{height:1px;border:0;background:var(--line);margin:var(--s4) 0}
.k2-soft{background:var(--card);border:1px solid var(--line);border-radius:var(--r-md)}
.k2-muted{color:var(--muted)}
.k2-ask{display:inline-flex;align-items:center;min-height:48px;font-size:18px;font-weight:800;color:var(--accent)}
.k2-cta{margin-top:var(--s3)}
.k2-cta .btn{width:100%;font-size:18px}

/* List rows (योग/दोष, भाव, और जानकारी) */
.k2-list{list-style:none}
.k2-list>li{border-bottom:1px solid var(--line)}
.k2-list>li:last-child{border-bottom:0}
.k2-row{display:flex;align-items:center;gap:var(--s3);width:100%;min-height:56px;padding:var(--s2) 0;text-align:left;color:var(--ink);font-size:17px;line-height:1.5}
.k2-row .dot{flex:none;width:8px;height:8px;border-radius:50%;background:var(--gold-deep)}
.k2-row .tx{flex:1;min-width:0}
.k2-row b{font-weight:800;color:var(--maroon-deep)}
.k2-row .chev{flex:none;color:var(--maroon);font-size:22px;line-height:1;transition:transform .2s var(--spring)}
.k2-row[aria-expanded="true"] .chev{transform:rotate(90deg)}
.k2-more{padding:0 0 var(--s3) 20px;color:var(--ink);font-size:16px;line-height:1.7}

/* Chart */
.k2-chart{display:block;width:100%;height:auto;overflow:visible}
.k2-chart .k2-lines path{fill:none;stroke:var(--gold-deep);stroke-width:1.6;vector-effect:non-scaling-stroke;stroke-linejoin:round}
.k2-chart .k2-pl{fill:var(--maroon);font-family:var(--font);font-weight:700}
.k2-chart .k2-num{fill:var(--maroon-deep);font-family:var(--font);font-weight:600;font-size:17px;opacity:.75}
.k2-chart .k2-sign{fill:var(--muted);font-family:var(--font);font-size:15px;font-weight:600}
.k2-chart .k2-asc{stroke:var(--accent);stroke-width:1.6;fill:none}
.k2-chart .k2-hl{fill:var(--gold-soft);opacity:0;transition:opacity .35s var(--spring)}
.k2-chart .k2-hl.on{opacity:1}
.k2-chart .k2-hit{fill:transparent;cursor:pointer;outline:none}
.k2-chart .k2-hit:focus-visible{stroke:var(--gold-deep);stroke-width:3;vector-effect:non-scaling-stroke}
.k2-chart .k2-hit[tabindex="-1"]{cursor:default}
/* lines draw in (pathLength=1), then planets fade up */
.k2-chart.k2-drawing .k2-lines path{stroke-dasharray:1;stroke-dashoffset:1}
.k2-chart.k2-drawing .k2-text{opacity:0;transform:translateY(6px)}
.k2-chart.k2-drawing.k2-drawn .k2-lines path{stroke-dashoffset:0;transition:stroke-dashoffset 1s var(--spring)}
.k2-chart.k2-drawing.k2-drawn .k2-lines path:nth-child(2){transition-delay:.12s}
.k2-chart.k2-drawing.k2-drawn .k2-lines path:nth-child(3){transition-delay:.2s}
.k2-chart.k2-drawing.k2-drawn .k2-lines path:nth-child(n+4){transition-delay:.3s}
.k2-chart.k2-drawing.k2-drawn .k2-text{opacity:1;transform:none;transition:opacity .5s .55s var(--spring),transform .5s .55s var(--spring)}

/* House sheet (v4) */
.k2-sheet{padding-left:var(--s5);padding-right:var(--s5);padding-bottom:calc(var(--s5) + env(safe-area-inset-bottom))}
.k2-sheet h2{font-size:22px;line-height:1.4;font-weight:800;color:var(--maroon);padding-right:40px;outline:none}
.k2-sh-here{margin-top:var(--s2);font-size:18px;font-weight:700;color:var(--maroon-deep)}
.k2-sh-line{margin-top:var(--s2);font-size:17px;line-height:1.7;color:var(--ink);font-weight:800}
.k2-sh-lord{margin-top:var(--s2);font-size:15px;color:var(--muted)}
.k2-sh-ask{display:inline-flex;align-items:center;min-height:48px;margin-top:var(--s2);font-size:18px;font-weight:800;color:var(--accent);text-decoration:none}
.k2-sh-x{position:absolute;top:var(--s3);right:var(--s3);width:44px;height:44px;border-radius:50%;font-size:26px;line-height:1;color:var(--maroon)}

/* Chapter page entry: pages slide in from the right (fallback when no View Transition; motion.js also adds lg-enter) */
.k2-in{animation:k2-in .42s var(--spring) both}
@keyframes k2-in{from{opacity:0;transform:translateX(24px)}}

@media (max-width:340px){.k2-bar-t{font-size:18px;padding-right:var(--s2)}.k2-h1{font-size:26px}}
@media (prefers-reduced-motion:reduce){
  .k2-in{animation:none}
  .k2-chart .k2-hl,.k2-row .chev{transition:none}
}

/* C17 grah — "घर | ग्रह" switch, 9 graha rows, graha sheet (27e-bhav). Tokens only; transform + opacity motion. */
.gr-seg{position:relative;display:grid;grid-template-columns:1fr 1fr;max-width:320px;margin:var(--s3) auto 0;padding:3px;
  border:1.5px solid var(--line);border-radius:var(--r-pill);background:var(--card)}
.gr-seg button{position:relative;z-index:1;min-height:48px;border-radius:var(--r-pill);font-size:17px;font-weight:800;line-height:1.4;
  color:var(--maroon-deep);transition:color .2s var(--spring)}
.gr-seg button[aria-selected="true"]{color:var(--gold)}
.gr-seg button:focus-visible{outline:2px solid var(--gold-deep);outline-offset:2px}
.gr-thumb{position:absolute;top:3px;bottom:3px;left:3px;width:calc(50% - 3px);border-radius:var(--r-pill);background:var(--maroon);
  box-shadow:var(--shadow-card);transform:translateX(0)}
.gr-seg[data-on="grah"] .gr-thumb{transform:translateX(100%)}
.gr-seg.gr-live .gr-thumb{transition:transform .28s var(--spring)}
.gr-list{margin-top:var(--s2)}
.gr-row{align-items:center;padding:var(--s2) 0;border-radius:var(--r-sm)}
.gr-ic{flex:none;display:grid;place-items:center;width:40px;height:40px;color:var(--gold-deep)}
.gr-ic svg{width:30px;height:30px}
.gr-t{display:block;font-size:18px;line-height:1.5;font-weight:800;color:var(--maroon-deep)}
.gr-l{display:block;font-size:15px;line-height:1.6;color:var(--ink);font-weight:800;margin-top:2px}
.gr-rise>li{animation:gr-rise .5s var(--spring) both;animation-delay:calc(var(--i) * 60ms)}
@keyframes gr-rise{from{opacity:0;transform:translateY(14px)}}
/* graha sheet */
.gr-sheet{max-height:86vh;overflow-y:auto}
.gr-sh-head{display:flex;align-items:center;gap:var(--s3);padding-right:40px}
.gr-sh-head .gr-ic{width:44px;height:44px;border:1px solid var(--line);border-radius:50%;background:var(--card)}
.gr-sh-head .gr-ic svg{width:26px;height:26px}
.gr-sheet h2{padding-right:0}
.gr-sh-sub{font-size:15px;line-height:1.5;color:var(--muted)}
.gr-sh-lines{list-style:none;margin-top:var(--s3)}
.gr-sh-lines li{padding:var(--s2) 0;border-bottom:1px solid var(--line);font-size:17px;line-height:1.7;color:var(--ink);font-weight:800}
@media (prefers-reduced-motion:reduce){
  .gr-rise>li{animation:none}
  .gr-seg.gr-live .gr-thumb,.gr-seg button{transition:none}
}
/* C18 yogini — "विंशोत्तरी | योगिनी" switch on 27c-dasha, same look as the 27e "घर | ग्रह" switch. Tokens only. */
.yg-seg{position:relative;display:grid;grid-template-columns:1fr 1fr;max-width:320px;margin:var(--s3) auto 0;padding:3px;
  border:1.5px solid var(--line);border-radius:var(--r-pill);background:var(--card)}
.yg-seg button{position:relative;z-index:1;min-height:48px;border-radius:var(--r-pill);font-size:17px;font-weight:800;line-height:1.4;
  color:var(--maroon-deep);transition:color .2s var(--spring)}
.yg-seg button[aria-selected="true"]{color:var(--gold)}
.yg-seg button:focus-visible{outline:2px solid var(--gold-deep);outline-offset:2px}
.yg-thumb{position:absolute;top:3px;bottom:3px;left:3px;width:calc(50% - 3px);border-radius:var(--r-pill);background:var(--maroon);
  box-shadow:var(--shadow-card);transform:translateX(0)}
.yg-seg[data-on="yogini"] .yg-thumb{transform:translateX(100%)}
.yg-seg.yg-live .yg-thumb{transition:transform .28s var(--spring)}
@media (prefers-reduced-motion:reduce){.yg-seg.yg-live .yg-thumb,.yg-seg button{transition:none}}

/* D4 responsive page frame. Phone rules above stay untouched. */
@media (min-width:768px){
  .k2{width:100%;max-width:760px;margin-inline:auto;padding-inline:var(--s5)}
  .k2-who{max-width:680px;margin-inline:auto}
  .k2-sheet{padding:var(--s5)}
  .k2-chart{max-height:620px}
}
@media (min-width:1024px){
  .k2{max-width:920px;padding:var(--s5) var(--s6) var(--s6)}
  .k2-h1{font-size:34px}.k2-h2{font-size:25px}
  .k2-row,.gr-row{padding-inline:var(--s2);border-radius:var(--r-sm)}
  .k2-row:hover,.gr-row:hover{background:var(--gold-soft);box-shadow:var(--shadow-card);transform:translateY(-1px)}
  .k2-cta{max-width:520px;margin-inline:auto}
  .k2-sheet,.gr-sheet{max-height:min(760px,calc(100vh - 96px));overflow-y:auto}
  .k2-sh-x:hover{background:var(--gold-soft);transform:rotate(4deg)}
  .k2 :is(a,button):focus-visible{outline:3px solid var(--gold-deep);outline-offset:3px}
}

/* 27d/27f were 19px wider than the phone (a decoration); clip it on the page column only, never on html/body (2 Dec 2026) */
main#main{overflow-x:clip}

/* Floating 'आपकी Smart और पूरी कुंडली खोलें' on the kundli page and every chapter page (owner 2 Dec 2026 ~10:55 AM).
   Same look as the पूछें page's 'रिपोर्ट बनाएँ' button. */
body:has(.br-open) main.screen{padding-bottom:calc(var(--tabbar-h,88px) + 96px + env(safe-area-inset-bottom))}
/* same look as the पूछें page's 'रिपोर्ट बनाएँ' button (owner 2 Dec 2026): maroon pill, gold edge, cream text */
.br-open{position:fixed;z-index:45;left:50%;bottom:calc(var(--tabbar-b-space,100px) + 4px + env(safe-area-inset-bottom));transform:translateX(-50%);
  width:min(398px,calc(100% - 32px));min-height:54px;display:grid;place-items:center;padding:0 18px;border-radius:999px;
  background:linear-gradient(165deg,#8e1a2e,#5a0d1f);color:#fde9bf;font-size:18px;font-weight:800;text-align:center;text-decoration:none!important;
  box-shadow:inset 0 0 0 1px rgba(246,210,122,.5),0 12px 24px -10px rgba(74,11,28,.85);transition:transform .15s cubic-bezier(.16,1,.3,1)}
.br-open:active{transform:translateX(-50%) scale(.97)}
@media (hover:hover){.br-open:hover{box-shadow:inset 0 0 0 1.5px rgba(246,210,122,.75),0 14px 26px -10px rgba(74,11,28,.9)}}
body:has(.br-open) .wa-help{bottom:calc(var(--tabbar-b-space,100px) + 72px + env(safe-area-inset-bottom))}
@media (min-width:1024px){.br-open{bottom:24px;width:min(520px,calc(100% - 48px))}body:has(.br-open) main.screen{padding-bottom:120px}}
@media print{.br-open{display:none!important}}
