/* AstroDivy — readability pass (21 Oct 2026, Vandan: "that marketplace thing looks odd, also font, font color
   looks odd due to background"). Loaded LAST so it wins over style/galaxy/glass/ios.css.
   1. A dark veil over the moving galaxy (behind all content), so text never sits on the bright nebula.
   2. Calmer text colours: warm white, brighter secondary text, gold for small accent labels instead of icy blue.
   3. Headings in a classic serif (Fraunces; Hindi falls back to Noto Serif Devanagari) to match the gold mandala;
      body text stays the clean sans.
   4. Pandit cards: one simple vertical card (photo, name, speciality, method · languages, price, Chat) in a
      3-up grid; compact rows on phones. Chat uses the brand violet, not blue. Category chips wrap on wide screens. */
:root {
  --serif: 'Fraunces', 'Noto Serif Devanagari', Georgia, serif;
  --moon: #F5F2FA;
  --mist: #CDD2EA;
  --mist-2: #A6ACCC;
  --gold-soft: #F2D38A;
}

/* 1. veil: sits above the galaxy canvas (z 0, earlier in the DOM) and below main / header (z 1+) */
body::after { content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 35%, rgba(5, 6, 15, .28), rgba(5, 6, 15, .62)); }
@media print { body::after { display: none; } }

/* 2. colours */
body { color: var(--moon); }
.section-lead, .hero-sub, .problems .section-lead, .pandits .section-lead { color: var(--mist); }
.pc2-area, .pc-area, .prob em, .prob .pr-cat, .pd .pr-cat { color: var(--gold-soft) !important; }
.prob span { color: var(--mist); }

/* 3. type */
h1, h2, .hero-h, .si-title, .pd h2, .sc-copy h2, .co-empty h2 {
  font-family: var(--serif) !important; font-weight: 600 !important; letter-spacing: -.012em !important;
  font-optical-sizing: auto; font-variation-settings: 'SOFT' 30, 'WONK' 0; }
.hero-h { line-height: 1.08 !important; }
:lang(hi) h1, :lang(hi) h2, :lang(hi) .hero-h { letter-spacing: 0 !important; line-height: 1.3 !important; }

/* 4. category chips: wrap on wide screens instead of running off the right edge */
@media (min-width: 701px) {
  .ps-cats { flex-wrap: wrap; overflow: visible; padding-bottom: 2px; }
}

/* 4. pandit cards */
.pandits .pan-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.pc2 { grid-template-columns: 1fr; grid-template-rows: auto 1fr; justify-items: center; text-align: center; gap: 0; padding: 22px 18px 16px; }
/* column flex so Chat sits on the same line in every card, even when a long name wraps */
.pc2-body { display: flex; flex-direction: column; align-items: center; width: 100%; }
.pc2-face { width: 96px; height: 96px; margin-bottom: 12px; }
.pc2-face .av { width: 90px !important; height: 90px !important; }
.pc2 h3 { font-size: 18.5px !important; font-weight: 650 !important; padding: 0 30px !important; }
.pc2-area { margin: 4px 0 0; font-size: 14px; line-height: 1.35; min-height: 2.7em; }
.pc2-meta { margin: 8px 0 0; font-size: 13.5px; color: var(--mist-2); }
.pc2-price { margin: 10px 0 0; font-size: 14px; color: var(--mist); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; }
.pc2-price b { font-weight: 500; }
.pc2-price strong { font-size: 19px; font-weight: 700; color: var(--moon); font-variant-numeric: tabular-nums; }
.pc2-price span { padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #A6F2C4;
  background: rgba(43, 212, 107, .12); border: 1px solid rgba(43, 212, 107, .32); }
.pc2-acts { display: grid; width: 100%; gap: 2px; margin-top: auto; padding-top: 14px; }
.pc2-btn.b-chat { width: 100%; justify-content: center; background: linear-gradient(135deg, #7C5CFF, #A54BE2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 10px 24px -12px rgba(124, 92, 255, .9); }
.pc2-read { margin: 0 auto; font-size: 13px; color: var(--mist-2); }

/* 5. free sample kundli (21 Oct, "show 1-2 pages and show index page"): page 1 their charts, page 2 the index */
.smp-head { text-align: center; margin-bottom: 4%; }
.smp-head .smp-brand { color: #9A6A35; letter-spacing: .25em; font-size: 11px; }
.smp-head b { display: block; margin-top: 2%; font: 600 clamp(18px, 2.2vw, 24px)/1.2 Georgia, 'Noto Serif Devanagari', serif; color: #7A281C; }
.smp-head p { margin: 1% 0 0; font-size: 12px; color: #6A4A3A; }
.smp-idx { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 6%; }
.smp-idx > li { break-inside: avoid; margin: 0 0 5%; }
.smp-idx > li > b { display: block; padding-bottom: 2px; border-bottom: 1px solid #C9A46A; font: 600 13.5px Georgia, 'Noto Serif Devanagari', serif; color: #7A281C; }
.smp-idx ul { list-style: none; margin: 4px 0 0; padding: 0 0 0 8px; }
.smp-idx ul li { font-size: 12px; line-height: 1.45; color: #3A2A20; margin: 2px 0; }
@media (max-width: 700px) { .smp-idx { columns: 1; } }

/* 6. home "Talk to a pandit": area tabs like the problems section */
.top-cats { margin: 18px 0 0; }
.top-pandits #topAll { display: flex; margin: 22px auto 0; }
.top-pandits #topAll[hidden] { display: none; }

/* 8. pandit marketplace page (21 Oct, "restyle this"): a store layout. Laptop: the areas as a list on the left,
   one toolbar on a solid panel on top, cards 3 to a row. Phone/tablet: one column, areas as a swipe row. */
#pandits .pf-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px; border-radius: 18px;
  background: rgba(14, 15, 38, .88); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 14px 34px -22px rgba(0, 0, 0, .8); }
#pandits .pf-tools .pf-q { flex: 1 1 170px; margin: 0; min-height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); box-shadow: none; }
#pandits .pf-tools .pf-q input { font-size: 15.5px; padding: 8px 0; width: 100%; min-width: 0; }
#pandits .pf-tools .pf-q { min-width: 0; }
#pandits .pf-tools .pf-q svg { width: 19px; height: 19px; }
#pandits .pf-tools .pf-sel { flex: 0 1 158px; min-width: 128px; }
#pandits .pf-tools .pf-sel select { height: 44px; min-height: 44px; border-radius: 12px !important; background-color: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .08); font-size: 15px;
  padding: 0 34px 0 14px !important; background-position: right 10px center, 0 0 !important; }
#pandits .pf-tools .pf-g { height: 44px; border-radius: 12px; padding: 3px; background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .08); }
#pandits .pf-tools .pf-g button { min-height: 36px; border-radius: 9px; padding: 0 14px; }
#pandits .pf-tools .pf-fav { height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .08); }
#pandits .ps-count { margin: 14px 0 0; font-size: 14px; color: var(--mist-2); }
#pandits .pan-grid { margin-top: 12px; }

@media (min-width: 1000px) {
  #pandits { display: grid; grid-template-columns: 250px minmax(0, 1fr); column-gap: 24px; align-items: start; }
  #pandits > h2, #pandits > .section-lead { grid-column: 1 / -1; }
  #pandits > .pf { display: contents !important; }
  /* areas: a vertical list on its own panel, stays in view while the cards scroll */
  #pandits .pf-cats { grid-column: 1; grid-row: 3 / span 4; position: sticky; top: 84px; margin: 24px 0 0; flex-direction: column; flex-wrap: nowrap; gap: 2px;
    overflow: visible; padding: 8px; border-radius: 18px; background: rgba(14, 15, 38, .88); border: 1px solid rgba(255, 255, 255, .1); }
  #pandits .pf-cats button { width: 100%; justify-content: flex-start; gap: 10px; padding: 9px 12px; min-height: 40px; border-radius: 10px; border: 0;
    background: none; box-shadow: none; font-size: 14.5px; line-height: 1.25; color: var(--mist); text-align: left; white-space: normal; }
  #pandits .pf-cats button svg { flex: none; }
  #pandits .pf-cats button i { margin-left: auto; font-size: 12.5px; color: var(--mist-2); }
  #pandits .pf-cats button:hover { background: rgba(255, 255, 255, .06); color: var(--moon); }
  #pandits .pf-cats button[aria-pressed="true"] { background: linear-gradient(90deg, rgba(124, 92, 255, .38), rgba(124, 92, 255, .12)); color: #fff;
    box-shadow: inset 3px 0 0 var(--gold-soft); }
  #pandits .pf-cats button[aria-pressed="true"] i { color: var(--gold-soft); }
  #pandits .pf-tools { grid-column: 2; margin-top: 24px; }
  #pandits > .ps-count, #pandits > .pan-grid, #pandits > .ps-more { grid-column: 2; }
  #pandits .pan-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
}
@media (max-width: 999px) {
  #pandits .pf-cats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 20px 0 10px; padding-bottom: 2px; }
  #pandits .pf-cats::-webkit-scrollbar { display: none; }
}
@media (max-width: 700px) {
  #pandits .pf-tools .pf-q { flex-basis: 100%; }
  #pandits .pf-tools .pf-sel { flex: 1 1 calc(50% - 4px); min-width: 0; }
  #pandits .pf-tools .pf-g { flex: 1 1 auto; }
}

/* 9. phone check by SMS inside the chat (22 Oct): send code → type it → the free chat starts again */
.ch-verify { display: grid; gap: 10px; }
.ch-verify .btn-main, .ch-verify .btn-line { width: 100%; justify-content: center; min-height: 46px; }
.ph-enter { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.ph-enter[hidden] { display: none; }
.ph-enter input { width: 100%; min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06); color: var(--moon); font: 600 20px/1 var(--text); letter-spacing: .3em; text-align: center; }
.ph-enter input::placeholder { letter-spacing: normal; font-size: 15px; font-weight: 400; color: var(--mist-2); }
.ph-enter .btn-line { grid-column: 1 / -1; }
.ph-enter .btn-main { width: auto; padding: 0 20px; }
#phMsg:empty { display: none; }

/* 7. report cards: "See what's inside (index)" opens the report's index (report-index.js) */
button.pc-sample { background: none; border: 0; border-bottom: 1px dashed rgba(242, 211, 138, .5); border-radius: 0; padding: 0; cursor: pointer; font: inherit; font-size: 14px; color: var(--gold-soft); }
button.pc-sample::after { content: '→'; }
.rix { width: min(720px, calc(100% - 24px)); max-height: min(86vh, 900px); padding: 0; border: 1px solid rgba(255, 255, 255, .16); border-radius: 22px;
  background: #121433; color: var(--moon); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .85); }
.rix::backdrop { background: rgba(4, 5, 14, .7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.rix-in { position: relative; padding: 26px 26px 22px; }
.rix h2 { margin: 0 40px 6px 0; font-size: clamp(22px, 3vw, 28px); }
.rix-lead { margin: 0 0 18px; color: var(--mist); font-size: 15px; }
.rix-x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06); color: var(--moon); font-size: 22px; line-height: 1; cursor: pointer; }
.rix-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 28px; }
.rix-list > li { break-inside: avoid; margin: 0 0 16px; }
.rix-list > li > b { display: block; padding-bottom: 4px; margin-bottom: 6px; border-bottom: 1px solid rgba(242, 211, 138, .35); color: var(--gold-soft); font: 600 15px var(--serif); }
.rix-list ul { list-style: none; margin: 0; padding: 0; }
.rix-list ul li { font-size: 14px; line-height: 1.45; color: var(--mist); padding: 2px 0 2px 14px; position: relative; }
.rix-list ul li::before { content: '•'; position: absolute; left: 2px; color: rgba(242, 211, 138, .6); }
.rix-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.rix-acts > * { min-height: 46px; padding: 0 22px; display: inline-flex; align-items: center; }
@media (max-width: 700px) { .rix-list { columns: 1; } .rix-in { padding: 22px 18px 18px; } .rix-acts > * { flex: 1 1 100%; justify-content: center; } }

@media (max-width: 700px) {
  .pandits .pan-grid { grid-template-columns: 1fr; gap: 10px; }
  .pc2 { grid-template-columns: 68px minmax(0, 1fr); grid-template-rows: none; justify-items: stretch; text-align: left; gap: 0 12px; padding: 14px; }
  .pc2-body { display: contents; }
  .pc2-face { grid-row: 1 / span 4; align-self: start; width: 68px; height: 68px; margin: 0; }
  .pc2-face .av { width: 64px !important; height: 64px !important; }
  .pc2-body > h3, .pc2-area, .pc2-meta, .pc2-price { grid-column: 2; }
  .pc2 h3 { font-size: 17px !important; padding: 0 42px 0 0 !important; }
  .pc2-area { min-height: 0; font-size: 13.5px; margin-top: 2px; }
  .pc2-meta { margin-top: 4px; font-size: 13px; }
  .pc2-price { justify-content: flex-start; margin-top: 6px; }
  .pc2-acts { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; align-items: center; gap: 8px; margin-top: 12px; padding-top: 0; }
  .pc2-read { margin: 0; min-height: 44px; }
}
