/* Nextych: peacock, turmeric and kumkum on cool paper */
:root {
  --paper: #EEF1EC;
  --paper-2: #E2E8E2;
  --ink: #18231F;
  --muted: #56645F;
  --line: #C3CDC6;
  --peacock: #0F4C4F;
  --peacock-deep: #0A3638;
  --turmeric: #D9971A;
  --kumkum: #8A2140;
  --white: #FBFCFA;

  --display: "Yatra One", "Tiro Devanagari Hindi", Georgia, serif;
  --body: "Hind", "Segoe UI", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: clamp(2.25rem, 4.5vw, 3.5rem);

  --gap: clamp(1rem, 3vw, 2rem);
  --wrap: 72rem;

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: var(--step-3); max-width: 14ch; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; max-width: 62ch; }
a { color: var(--peacock); }
:focus-visible { outline: 3px solid var(--turmeric); outline-offset: 2px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--white); padding: .5rem 1rem; z-index: 10; }

/* Header */
.site-header {
  max-width: var(--wrap); margin: 0 auto; padding: 1.25rem var(--gap);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font: 1.5rem var(--display); }
.brand-mark { width: 30px; height: 30px; fill: none; stroke: var(--peacock); stroke-width: 2.5; }
.site-header { flex-wrap: wrap; }
.site-header nav { display: flex; gap: 1.5rem; align-items: center; }
.site-header nav a { color: var(--muted); text-decoration: none; font-weight: 500; white-space: nowrap; padding: .35rem 0; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--ink); }
.site-header nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--turmeric); }
.site-header nav a.nav-cta { color: var(--white); background: var(--peacock); padding: .45rem .9rem; border-radius: 6px; box-shadow: none; }
.site-header nav a.nav-cta:hover { background: var(--peacock-deep); }
@media (max-width: 720px) {
  .site-header nav { order: 3; width: 100%; overflow-x: auto; gap: 1.25rem; padding-bottom: .25rem; scrollbar-width: none; }
  .site-header nav a.nav-cta { display: none; }
}

main > section { max-width: var(--wrap); margin: 0 auto; padding: var(--gap); }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4.5rem); align-items: start;
  padding-top: clamp(1rem, 4vw, 3rem) !important;
}
.lede { color: var(--muted); font-size: var(--step-1); line-height: 1.5; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .chart-panel { order: -1; max-width: 26rem; }
}

/* Form */
.birth-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; margin-top: 2rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field.full, .form-error, .birth-form .btn { grid-column: 1 / -1; }
label { font-weight: 600; font-size: var(--step--1); }
input {
  font: inherit; color: var(--ink); background: var(--white);
  border: 1.5px solid var(--line); border-radius: 6px; padding: .7rem .85rem; min-height: 48px; width: 100%;
}
input:focus { border-color: var(--peacock); outline: none; box-shadow: 0 0 0 3px rgba(15, 76, 79, .2); }
input[aria-invalid="true"] { border-color: var(--kumkum); }
.hint { font-size: var(--step--1); color: var(--muted); margin: .2rem 0 0; }
.form-error { color: var(--kumkum); font-weight: 500; margin: 0; }
@media (max-width: 420px) { .birth-form { grid-template-columns: 1fr; } }

.btn {
  font: 600 var(--step-0) var(--body); border: 0; border-radius: 6px; cursor: pointer;
  padding: .9rem 1.5rem; min-height: 52px;
}
.btn.primary { background: var(--peacock); color: var(--white); }
.btn.primary:hover { background: var(--peacock-deep); }
.btn.accent { background: var(--turmeric); color: var(--ink); width: 100%; }
.btn.accent:hover { background: #C4850F; }
.btn.ghost { background: transparent; color: var(--peacock); border: 1.5px solid var(--peacock); }
.btn:disabled { opacity: .6; cursor: progress; }

/* Kundli chart: the one bold element */
.chart-panel {
  margin: 0; background: var(--peacock); border-radius: 4px 4px 4px 48px;
  padding: clamp(1.25rem, 3vw, 2rem); color: #CFE0DC; width: 100%;
}
.kundli { display: block; width: 100%; height: auto; }
.kundli-lines * { fill: none; stroke: var(--turmeric); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .kundli-lines * { stroke-dashoffset: 1; animation: draw 1.6s cubic-bezier(.6,.1,.3,1) forwards; }
  .kundli-lines line { animation-delay: .5s; }
  .kundli-lines polygon { animation-delay: .9s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.kundli-signs text { fill: #8FB3AD; font: 500 15px var(--body); }
.kundli-planets text { fill: var(--white); font: 600 17px var(--body); }
.kundli-planets text.asc { fill: var(--turmeric); }
.chart-panel figcaption { font-size: var(--step--1); margin-top: 1rem; max-width: 40ch; }

/* Reading */
.reading { border-top: 1.5px solid var(--line); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0; margin: 1.5rem 0; border-left: 1.5px solid var(--line); }
.facts div { padding: .9rem 1.25rem; border-right: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); }
.facts dt { font-size: var(--step--1); color: var(--muted); }
.facts dd { margin: .15rem 0 0; font: var(--step-1)/1.3 var(--display); color: var(--peacock); }
.facts dd small { display: block; font: 400 var(--step--1)/1.4 var(--body); color: var(--muted); margin-top: .2rem; }
.summary { font-size: var(--step-1); line-height: 1.55; max-width: 60ch; }

.unlock {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--gap);
  margin-top: 2.5rem; padding: clamp(1.25rem, 3vw, 2.25rem); background: var(--paper-2); border-radius: 4px;
}
.contents { margin: 0; padding-left: 1.2rem; }
.contents li { margin-bottom: .45rem; }
.contents li::marker { color: var(--kumkum); }
.buy { display: flex; flex-direction: column; gap: 1rem; }
.price { font: 2.6rem/1 var(--display); color: var(--kumkum); margin: 0; display: flex; flex-direction: column; gap: .35rem; }
.price small { font: 400 var(--step--1) var(--body); color: var(--muted); }
.pay-status { min-height: 1.5em; margin: 0; font-weight: 500; }
.pay-status.error { color: var(--kumkum); }
.fineprint { font-size: var(--step--1); color: var(--muted); margin: 0; }
@media (max-width: 760px) { .unlock { grid-template-columns: 1fr; } }

/* Full report */
.report { border-top: 4px solid var(--peacock); }
.report-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.report-head p { color: var(--muted); margin: 0; }
.report article { padding: 1.5rem 0; border-bottom: 1.5px solid var(--line); }
.report article:last-child { border-bottom: 0; }
.report .kundli-print { max-width: 22rem; background: var(--peacock); padding: 1rem; border-radius: 4px 4px 4px 32px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 26rem; font-size: var(--step--1); }
th, td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--line); }
th { font-weight: 600; color: var(--muted); }
tr.now td { background: rgba(217, 151, 26, .16); font-weight: 600; }
.loshu { display: grid; grid-template-columns: repeat(3, 4.5rem); border: 2px solid var(--peacock); width: max-content; margin: 1rem 0; }
.loshu div { height: 4.5rem; display: grid; place-items: center; border: 1px solid var(--line); font: 1.4rem var(--display); color: var(--peacock); position: relative; }
.loshu div.missing { color: transparent; background: var(--paper-2); }
.loshu div span { position: absolute; top: 4px; left: 6px; font: 500 .7rem var(--body); color: var(--muted); }

/* How */
.how { padding-bottom: 3rem !important; }
.steps { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: var(--gap); counter-reset: s; }
.steps li { counter-increment: s; padding-top: 3.2rem; position: relative; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; font: 2.2rem/1 var(--display); color: var(--turmeric); }
.steps strong { display: block; }

/* Footer */
.site-footer { background: var(--peacock-deep); color: #B9CEC9; padding: 2rem var(--gap); font-size: var(--step--1); }
.site-footer > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.site-footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; margin: 1rem auto; }
.site-footer a { color: var(--white); }
.copy { margin-top: 1rem; }

/* Legal pages */
.legal { max-width: 46rem; margin: 0 auto; padding: var(--gap); }
.legal h1 { font-size: var(--step-2); max-width: none; }
.legal h2 { font-size: var(--step-1); margin-top: 1.5em; }

/* Print: the PDF download */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; font-size: 11pt; }
  .site-header nav, .hero, .reading, .how, .site-footer nav, .no-print, .skip { display: none !important; }
  .report { display: block !important; border: 0; padding: 0; }
  .report article { break-inside: avoid; }
  .site-footer { background: none; color: #444; padding: 0; }
}

/* The report copy of the chart is static, so the PDF never prints a half-drawn chart */
.report .kundli-lines * { animation: none !important; stroke-dashoffset: 0 !important; }

/* ---------- Content pages ---------- */
.article { max-width: var(--wrap); margin: 0 auto; padding: clamp(1rem, 4vw, 3rem) var(--gap) 3rem; }
.article-head { max-width: 48rem; margin-bottom: 2.5rem; }
.article-head h1 { max-width: 20ch; }
.article-head .lede { margin-bottom: 0; }
.article-head .meta { font-size: var(--step--1); color: var(--muted); margin-top: 1rem; }
.prose { max-width: 44rem; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 1.75rem; }
.prose ul, .prose ol { padding-left: 1.2rem; margin: 0 0 1em; }
.prose li { margin-bottom: .45rem; }
.prose li::marker { color: var(--kumkum); }
.wide { margin: 2rem 0; }
.note { border-left: 4px solid var(--turmeric); background: var(--paper-2); padding: 1rem 1.25rem; margin: 1.5rem 0; max-width: 44rem; }
.note p:last-child { margin-bottom: 0; }

/* Ruled key-value grid (shares the look of .facts) */
.grid-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); border-left: 1.5px solid var(--line); border-top: 1.5px solid var(--line); margin: 1.5rem 0; }
.grid-list > div { padding: 1rem 1.25rem; border-right: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); }
.grid-list h3 { font-size: var(--step-0); font-family: var(--body); font-weight: 600; margin: 0 0 .3rem; color: var(--peacock); }
.grid-list h3 small { font-weight: 400; color: var(--muted); }
.grid-list p { margin: 0; font-size: var(--step--1); line-height: 1.55; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; color: var(--kumkum); border: 1px solid currentColor; border-radius: 3px; padding: 0 .35rem; margin-left: .3rem; vertical-align: 1px; }

/* Transit calendar */
.calendar { list-style: none; padding: 0; margin: 1.5rem 0; border-top: 1.5px solid var(--line); max-width: 52rem; }
.calendar li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1.5px solid var(--line); }
.calendar time { font: 1.15rem/1.3 var(--display); color: var(--kumkum); }
.calendar strong { display: block; }
.calendar p { margin: .15rem 0 0; color: var(--muted); font-size: var(--step--1); }

/* Chaldean letter chart */
.chaldean { display: grid; grid-template-columns: repeat(8, minmax(3.2rem, 1fr)); border: 2px solid var(--peacock); width: max-content; max-width: 100%; }
.chaldean div { padding: .6rem .5rem; border: 1px solid var(--line); text-align: center; }
.chaldean b { display: block; font: 1.5rem/1 var(--display); color: var(--peacock); margin-bottom: .3rem; }
.chaldean span { font-size: var(--step--1); letter-spacing: .08em; }

/* Call to action band */
.cta-band { background: var(--peacock); color: #CFE0DC; border-radius: 4px 4px 4px 48px; padding: clamp(1.5rem, 4vw, 2.5rem); margin: 3rem 0 0; display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.cta-band h2 { color: var(--white); margin: 0 0 .3rem; }
.cta-band p { margin: 0; }
.cta-band .btn { background: var(--turmeric); color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; }
@media (max-width: 520px) { .chaldean { grid-template-columns: repeat(4, 1fr); width: 100%; } }
main.article > section { padding: 0; margin-left: 0; margin-right: 0; max-width: none; }

/* ---------- Language switcher ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lang-switch { position: relative; display: inline-flex; align-items: center; }
.lang-switch svg { position: absolute; left: .6rem; width: 18px; height: 18px; fill: none; stroke: var(--peacock); stroke-width: 1.6; pointer-events: none; }
.lang-switch select {
  font: 500 var(--step--1) var(--body); color: var(--ink); background: var(--white);
  border: 1.5px solid var(--line); border-radius: 6px; padding: .45rem 1.9rem .45rem 2.1rem; min-height: 40px; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: right .85rem center, right .55rem center; background-size: 5px 5px; background-repeat: no-repeat;
}
.lang-switch select:hover { border-color: var(--peacock); }
.site-header { gap: 1rem 1.5rem; }
.site-header nav { margin-left: auto; }
@media (max-width: 720px) {
  .lang-switch { margin-left: auto; }
  .site-header nav { margin-left: 0; }
}

/* ---------- Scripts: fonts and spacing per language ---------- */
html[data-lang="te"] { --body: "Hind Guntur", "Noto Sans Telugu", "Hind", system-ui, sans-serif; --display: var(--body); }
html[data-lang="ta"] { --body: "Hind Madurai", "Noto Sans Tamil", "Hind", system-ui, sans-serif; --display: var(--body); }
html[data-lang="bn"] { --body: "Hind Siliguri", "Noto Sans Bengali", "Hind", system-ui, sans-serif; --display: var(--body); }
html[data-lang="kn"] { --body: "Noto Sans Kannada", "Hind", system-ui, sans-serif; --display: var(--body); }
html:is([data-lang="te"], [data-lang="ta"], [data-lang="bn"], [data-lang="kn"]) :is(h1, h2, h3) { font-weight: 600; letter-spacing: -0.01em; }
html:is([data-lang="te"], [data-lang="ta"], [data-lang="bn"], [data-lang="kn"]) body { line-height: 1.75; }
html:is([data-lang="hi"], [data-lang="bho"]) body { line-height: 1.7; }
html:not([data-lang="en"]) h1 { line-height: 1.3; max-width: 18ch; }
html[data-lang="ta"] h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
html:not([data-lang="en"]) .facts dd { line-height: 1.45; }
.report p[lang="en"] { font-family: "Hind", system-ui, sans-serif; }
p.note { max-width: none; }

/* ---------- Devotional banner ---------- */
.blessing {
  background: var(--kumkum); color: #FBE7C2; overflow: hidden; white-space: nowrap;
  font: 1.05rem/1 "Yatra One", Georgia, serif; padding: .6rem 0;
}
.blessing-track { display: flex; width: max-content; animation: blessing 32s linear infinite; }
.blessing-track > div { display: flex; align-items: center; gap: 1.75rem; padding-right: 1.75rem; }
.blessing-track i { font-style: normal; color: var(--turmeric); font-size: .9em; }
.blessing:hover .blessing-track { animation-play-state: paused; }
@keyframes blessing { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .blessing-track { animation: none; width: auto; justify-content: center; }
  .blessing-track > div + div { display: none; }
}

/* ---------- Brand with tagline ---------- */
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name small { font: 500 .78rem/1.2 var(--body); color: var(--kumkum); letter-spacing: .01em; margin-top: .15rem; }
.brand-mark { flex-shrink: 0; }

/* ---------- UPI panel ---------- */
.upi-panel { display: flex; flex-direction: column; gap: .75rem; padding: 1.25rem; background: var(--white); border: 1.5px solid var(--line); border-radius: 6px; }
.upi-panel p { margin: 0; }
.upi-title { font: var(--step-1)/1.3 var(--display); color: var(--peacock); }
.upi-qr { width: 100%; max-width: 240px; height: auto; align-self: center; border: 1px solid var(--line); border-radius: 4px; }
.upi-id { font-size: var(--step--1); overflow-wrap: anywhere; }
.upi-id b { font-weight: 600; }
.upi-app { text-align: center; text-decoration: none; display: inline-flex; justify-content: center; align-items: center; }
.link-btn { font: 600 var(--step--1) var(--body); color: var(--peacock); background: none; border: 0; padding: .25rem .4rem; cursor: pointer; text-decoration: underline; }
@media print { .blessing { display: none; } }
[hidden] { display: none !important; }

/* ---------- Thank-you panel ---------- */
.thanks { display: flex; flex-direction: column; gap: .75rem; padding: 1.25rem; background: var(--white); border: 1.5px solid var(--peacock); border-left-width: 6px; border-radius: 6px; }
.thanks p { margin: 0; }
.thanks-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.thanks-actions .btn { min-height: 44px; padding: .6rem 1rem; font-size: var(--step--1); text-decoration: none; display: inline-flex; align-items: center; }

/* ---------- Owner report maker ---------- */
.maker-bar { background: #FFF6E0; border: 2px dashed var(--turmeric); border-radius: 6px; padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.maker-bar p, .maker-bar ol { margin: 0 0 .75rem; max-width: none; }
.maker-bar ol { padding-left: 1.2rem; }
.maker-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.maker-actions .btn { text-decoration: none; display: inline-flex; align-items: center; }

/* ---------- Delivery choice ---------- */
.deliver { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.deliver legend { font-weight: 600; font-size: var(--step--1); margin-bottom: .4rem; padding: 0; width: 100%; }
.deliver label { display: inline-flex; align-items: center; gap: .45rem; background: var(--white); border: 1.5px solid var(--line); border-radius: 6px; padding: .55rem .9rem; cursor: pointer; font-weight: 500; min-height: 44px; }
.deliver label:has(input:checked) { border-color: var(--peacock); box-shadow: inset 0 0 0 1px var(--peacock); }
.deliver input { accent-color: var(--peacock); width: 1.1rem; height: 1.1rem; }

/* ---------- Main menu bar ---------- */
.site-header .lang-switch { margin-left: auto; }
.site-header .main-nav {
  order: 3; width: 100%; margin: 0; display: flex; gap: .25rem 1.75rem; align-items: center;
  border-top: 1.5px solid var(--line); padding: .55rem 0 0; overflow-x: auto; scrollbar-width: none;
}
.site-header .main-nav::-webkit-scrollbar { display: none; }
.site-header .main-nav a { font-weight: 600; color: var(--muted); padding: .4rem 0; white-space: nowrap; }
.site-header .main-nav a:hover { color: var(--peacock); }
.site-header .main-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--turmeric); }
@media (max-width: 720px) {
  .site-header .main-nav { gap: 1.25rem; margin-left: calc(-1 * var(--gap)); margin-right: calc(-1 * var(--gap)); padding-left: var(--gap); padding-right: var(--gap); width: calc(100% + 2 * var(--gap)); }
}

/* ---------- Footer disclaimer ---------- */
.site-footer .disclaimer { border: 1px solid rgba(255,255,255,.25); border-left: 4px solid var(--turmeric); padding: .9rem 1.1rem; color: #E3ECE9; line-height: 1.6; max-width: var(--wrap); }

/* ---------- PanditJi page ---------- */
.pandit-head { display: flex; gap: 1.5rem; align-items: center; max-width: 52rem; }
.pandit-seal {
  flex-shrink: 0; width: clamp(4.5rem, 12vw, 6.5rem); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; background: var(--kumkum); color: var(--turmeric);
  font: clamp(2.4rem, 6vw, 3.4rem)/1 "Yatra One", serif; box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--turmeric);
}
.pandit-head h1 { margin-bottom: .3rem; }
.pandit-facts { margin-top: 0; }
.pandit-guide h3 { font-size: var(--step-1); font-family: var(--display); font-weight: 400; }
html:not([data-lang="en"]):not([data-lang="hi"]):not([data-lang="bho"]) .pandit-guide h3 { font-weight: 600; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.cta-band .btn.btn-wa { background: transparent; color: var(--white); border: 1.5px solid #CFE0DC; }
.cta-band .btn.btn-wa:hover { background: rgba(255,255,255,.1); }
@media (max-width: 520px) { .pandit-head { flex-direction: column; align-items: flex-start; } }
@media (max-width: 720px) {
  .site-header .main-nav { flex-wrap: wrap; overflow: visible; gap: 0 1.1rem; }
  .site-header .main-nav a { padding: .35rem 0; font-size: .95rem; }
}

/* ---------- Kundli tabs, trio and planet table ---------- */
.chart-tabs { display: flex; gap: .35rem; margin-bottom: 1rem; flex-wrap: wrap; }
.chart-tabs button {
  font: 600 var(--step--1) var(--body); color: #CFE0DC; background: transparent;
  border: 1.5px solid rgba(207, 224, 220, .45); border-radius: 999px; padding: .4rem .9rem; cursor: pointer; min-height: 38px;
}
.chart-tabs button[aria-selected="true"] { background: var(--turmeric); border-color: var(--turmeric); color: var(--ink); }
.chart-tabs button:hover:not([aria-selected="true"]) { border-color: #CFE0DC; }
.kundli-planets text.asc { fill: var(--turmeric); }
.kundli-trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.kundli-trio figure { margin: 0; }
.kundli-trio figcaption { font-weight: 600; margin-bottom: .4rem; color: var(--peacock); }
.kundli-trio .kundli-print { max-width: none; }
.positions-wrap { margin-top: 1.5rem; max-width: 48rem; }
.positions-wrap h3 { margin-bottom: .5rem; }
table.positions td:first-child { font-weight: 600; }
table.positions tr.asc-row td { color: var(--kumkum); }
@media print { .kundli-trio { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Rashifal ---------- */
.rf-tabs { display: inline-flex; border: 1.5px solid var(--peacock); border-radius: 999px; padding: 3px; gap: 3px; margin-bottom: 1.5rem; }
.rf-tabs button { font: 600 var(--step-0) var(--body); background: none; border: 0; border-radius: 999px; padding: .5rem 1.2rem; cursor: pointer; color: var(--peacock); min-height: 42px; }
.rf-tabs button[aria-selected="true"] { background: var(--peacock); color: var(--white); }
.rf-pick p { font-weight: 600; font-size: var(--step--1); margin-bottom: .5rem; }
.rf-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 2rem; }
.rf-chips button { font: 500 var(--step--1) var(--body); background: var(--white); border: 1.5px solid var(--line); border-radius: 6px; padding: .4rem .7rem; cursor: pointer; min-height: 40px; color: var(--ink); }
.rf-chips button[aria-pressed="true"] { border-color: var(--kumkum); background: var(--kumkum); color: var(--white); }
.rf-chips button span { color: var(--turmeric); }
.rf-period { margin-bottom: .3rem; }
.rf-moon { color: var(--muted); margin-bottom: 1.5rem; }
.rf-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); border-left: 1.5px solid var(--line); border-top: 1.5px solid var(--line); }
.rashi-card { padding: 1.1rem 1.25rem; border-right: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); background: var(--paper); }
.rashi-card.mine { background: #FFF6E0; box-shadow: inset 0 0 0 2px var(--turmeric); }
.rashi-card header { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; margin-bottom: .5rem; }
.rashi-card .glyph { font-size: 1.6rem; line-height: 1; color: var(--kumkum); width: 2rem; text-align: center; }
.rashi-card h3 { margin: 0; font-size: var(--step-1); color: var(--peacock); }
.rashi-card h3 small { font: 400 var(--step--1) var(--body); color: var(--muted); }
.rashi-card p, .rashi-card ul { margin: 0 0 .5rem; font-size: var(--step--1); line-height: 1.6; }
.rashi-card ul { padding-left: 1rem; }
.rashi-card li { margin-bottom: .35rem; }
.rashi-card .tag { margin-left: 0; }
.stars { color: var(--turmeric); letter-spacing: .1em; font-size: 1rem !important; }
.stars span { color: var(--line); }
.rf-days { background: var(--paper-2); padding: .5rem .7rem; border-radius: 4px; }
